.it-article-trust,
.it-research-box,
.it-author-profile {
  width: min(100%, 48rem);
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #ddd3ca;
  border-radius: 0.9rem;
  background: #faf7f3;
}

.it-article-trust p,
.it-research-box p,
.it-author-profile p {
  margin-block: 0.55rem;
}

.it-method-badge {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #684638;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.it-research-box {
  margin-block: 3rem;
}

.it-research-box h2,
.it-author-profile h2 {
  margin-block: 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.it-author-profile h3 {
  margin-block: 1.25rem 0.35rem;
  font-size: 1.15rem;
}

.it-author-profile__intro {
  max-width: 72ch;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.it-author-profile__links {
  margin-top: 1.25rem !important;
  font-weight: 600;
}

/* Author archive: keep the identity card prominent and make the biography
   read as a lighter editorial section instead of a second competing card. */
.author .main-content {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.author .page-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(135deg, #fcfaf7 0%, #f7f1eb 100%);
  box-shadow: 0 18px 45px rgb(63 48 41 / 0.07);
}

.author .post-archive .archive-main > .it-author-profile {
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border: 0;
  border-top: 1px solid #ddd3ca;
  border-bottom: 1px solid #ddd3ca;
  border-radius: 0;
  background: transparent;
}

.author .it-author-profile h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.author .it-author-profile__intro {
  max-width: 68ch;
  margin-bottom: 0;
  color: #463f3a;
}

.author .it-author-profile__focus {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.author .it-author-profile__focus h3,
.author .it-author-profile__details h3 {
  margin: 0 0 0.7rem;
  color: #53382e;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.author .it-author-profile__focus ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.author .it-author-profile__focus li {
  padding: 0.48rem 0.75rem;
  border: 1px solid #ded2c8;
  border-radius: 999px;
  background: #faf7f3;
  color: #584c45;
  font-size: 0.84rem;
  line-height: 1.25;
}

.author .it-author-profile__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid #e5ddd6;
}

.author .it-author-profile__details section {
  min-width: 0;
}

.author .it-author-profile__details p {
  margin: 0;
  color: #5e5752;
  font-size: 0.98rem;
  line-height: 1.65;
}

.author .it-author-profile__links {
  display: flex;
  margin: 1.4rem 0 0 !important;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  font-size: 0.9rem;
}

.author .it-author-profile__links a {
  text-underline-offset: 0.2em;
}

.author .archive-main > .it-author-articles-heading {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 0;
}

.it-author-articles-heading h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.it-author-articles-heading > p:last-child {
  max-width: 64ch;
  margin: 0;
  color: #665f5a;
}

@media (max-width: 44rem) {
  .author .main-content {
    padding-top: 2rem;
  }

  .author .page-header {
    padding: 1.25rem;
  }

  .author .post-archive .archive-main > .it-author-profile {
    padding-block: 1.75rem;
  }

  .author .it-author-profile__details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.it-ga-avatar {
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem #f5efe9;
}

.it-cookie-settings {
  width: min(calc(100% - 2rem), 34rem);
  padding: 1.5rem;
  border: 1px solid #ddd3ca;
  border-radius: 1rem;
}

.it-cookie-settings::backdrop {
  background: rgb(0 0 0 / 0.45);
}

.it-cookie-settings fieldset {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid #ddd3ca;
  border-radius: 0.65rem;
}

.it-cookie-settings label {
  display: block;
  margin-block: 0.55rem;
}

.it-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.it-cookie-actions button {
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #684638;
  border-radius: 0.5rem;
  background: #fff;
  color: #3f3029 !important;
  font-weight: 700;
}

.it-cookie-actions button:is(:hover, :focus-visible) {
  outline: 3px solid #d8b8a8;
  outline-offset: 2px;
}

.it-cookie-status {
  min-height: 1.5em;
}

.it-consent-prompt {
  position: fixed;
  z-index: 99999;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(calc(100% - 2rem), 42rem);
  padding: 1.25rem;
  border: 1px solid #d6c8bd;
  border-radius: 1rem;
  background: #fffdf9;
  color: #302823;
  box-shadow: 0 1rem 3rem rgb(34 27 23 / 0.2);
}

.it-consent-prompt[hidden] {
  display: none;
}

.it-consent-prompt h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.it-consent-prompt p {
  margin: 0;
  color: #625b55;
  font-size: 0.95rem;
  line-height: 1.55;
}

.it-consent-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.it-consent-prompt__actions button {
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #684638;
  border-radius: 0.55rem;
  background: #fff;
  color: #3f3029 !important;
  font-weight: 700;
}

.it-consent-prompt__actions button:is(:hover, :focus-visible) {
  outline: 3px solid #d8b8a8;
  outline-offset: 2px;
}

.it-newsletter-page .main-content {
  overflow: hidden;
}

.it-newsletter-page .page-header,
.it-newsletter-page .entry-content {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.it-newsletter-page .page-header {
  padding-bottom: 1rem;
}

.it-newsletter-page .entry-content {
  color: #39332f;
  font-size: 1.05rem;
  line-height: 1.75;
}

.it-newsletter-page .entry-content > p:first-child {
  max-width: 64ch;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: #5e5751;
}

.it-newsletter-embed {
  width: min(100%, 38rem);
  margin: 2rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #ddd3ca;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #fffdf9, #f5ede6);
  box-shadow: 0 1rem 2.5rem rgb(74 54 43 / 0.08);
}

.it-newsletter-embed__placeholder {
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;
}

.it-newsletter-embed__placeholder[hidden],
.it-newsletter-embed__frame[hidden] {
  display: none;
}

.it-newsletter-embed__eyebrow {
  margin: 0 0 0.4rem;
  color: #684638;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.it-newsletter-embed__placeholder h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.it-newsletter-embed__placeholder .it-button {
  margin-top: 0.75rem;
  border: 1px solid #684638;
  background: #684638;
  color: #fff;
}

.it-newsletter-embed__frame iframe {
  display: block;
  width: min(100%, 480px);
  height: 320px;
  margin-inline: auto;
  border: 1px solid #eee;
  border-radius: 0.75rem;
  background: #fff;
}

.it-sources {
  width: min(100%, 48rem);
  margin: 3rem auto;
  padding: 1.5rem;
  border: 1px solid #ddd3ca;
  border-radius: 0.9rem;
  background: #fffdf9;
}

.it-sources h2 {
  margin-block: 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.it-sources ol {
  margin: 0;
  padding-inline-start: 1.35rem;
}

.it-sources li + li {
  margin-block-start: 1rem;
}

.it-sources a {
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

.it-sources small {
  color: #6d6861;
  line-height: 1.5;
}

/* Keep interactive privacy copy and supporting content comfortably readable
   on phones without inflating intentionally compact desktop metadata. */
@media (max-width: 45rem) {
  .it-cookie-settings,
  .it-cookie-settings label,
  .it-cookie-actions button,
  .it-consent-prompt p,
  .it-consent-prompt__actions button,
  .it-newsletter-page .entry-content,
  .it-newsletter-embed__placeholder p,
  .it-sources,
  .it-legal-warning {
    font-size: max(1rem, 16px);
  }

  .it-cookie-settings {
    max-height: calc(100dvh - 1rem);
    padding: 1.125rem;
    overflow-y: auto;
  }

  .it-cookie-actions {
    grid-template-columns: 1fr;
  }
}

.it-legal-warning {
  margin-block: 0 2rem;
  padding: 1rem 1.25rem;
  border: 2px solid #9a654f;
  border-radius: 0.75rem;
  background: #fff6ef;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem;
  border: 1px solid #ddd3ca;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 30rem) {
  .it-article-trust,
  .it-research-box,
  .it-author-profile {
    padding: 1rem;
  }

  .it-cookie-actions {
    grid-template-columns: 1fr;
  }

  .it-consent-prompt {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 1rem;
  }

  .it-consent-prompt__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .it-newsletter-embed {
    padding: 1rem;
  }
}
