/* RC4: consolidation before decoration. Two type families, smaller title fields, calmer portraits. */
body.as-rc4 {
  --rc4-display:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --rc4-body:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --rc3-title:clamp(2.25rem,2.45vw,2.625rem);
  --rc3-head-space:clamp(12px,1.35vw,18px);
  font-family:var(--rc4-body);
}

/* One typographic grammar: display for headings, sans for reading/UI. */
body.as-rc4 #main-content :is(h1,h2,h3,h4,h5,h6),
body.as-rc4 #main-content :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong,em),
body.as-rc4 .site-footer :is(h2,h3,h4),
body.as-rc4 .as100-hero h1,
body.as-rc4 .as100-hero h1 * {
  font-family:var(--rc4-display)!important;
  font-kerning:normal;
  font-variant-ligatures:common-ligatures;
}
body.as-rc4 :is(p,li,dd,dt,figcaption,label,input,textarea,select,button,summary,.main-nav__link,.as95-languages,.as100-label,.as100-role,.as95-kicker,.eyebrow,.section-tag,.as95-meta,.as95-breadcrumb,.breadcrumb,.as95-edition,.as95-editions,.as95-topic-nav,.btn,.editorial-link,.cookie-btn) {
  font-family:var(--rc4-body)!important;
}
body.as-rc4 :is(.as95-prose,.as95-reading,.as93-prose,.post-content,.page-content) {
  font-size:clamp(1.0625rem,1.02rem + .14vw,1.125rem);
  line-height:1.75;
}

/* Internal title areas: less background, more hierarchy. */
body.as-rc4 #main-content :is(.as95-journal > .as95-masthead,.as95-hub .as95-article-head,.as1026-article .as95-article-head,.archive-hero,.privacy-header,.as93-detail-header) {
  padding-block:var(--rc3-head-space)!important;
  background:#f5f6f4!important;
  border-top:1px solid #b8a181;
  border-bottom:1px solid #dce1e4;
}
body.as-rc4 #main-content :is(.as95-masthead,.as95-article-head,.archive-hero,.single-post__header,.page-header,.archive-header,.privacy-header,.as93-detail-header,.press-single) h1 {
  margin:4px 0 8px!important;
  line-height:1.13!important;
  max-width:38ch!important;
}
body.as-rc4 #main-content :is(.as95-masthead,.as95-article-head,.archive-hero,.privacy-header) :is(.as95-kicker,.eyebrow,.section-tag) {
  margin:4px 0 3px;
}
body.as-rc4 #main-content :is(.as95-masthead,.archive-hero,.as95-article-head) :is(.as95-breadcrumb,.breadcrumb,.as95-back) {
  margin-bottom:6px;
}
body.as-rc4 #main-content :is(.as95-masthead,.as95-article-head,.archive-hero,.single-post__header,.privacy-header,.as93-detail-header) :is(.as95-deck,.as95-subtitle,.section-header__desc,.lead),
body.as-rc4 #main-content .as95-masthead > p {
  margin-top:6px;
  line-height:1.58;
}
body.as-rc4 #main-content .as95-journal > .as95-masthead {margin-bottom:12px;}
body.as-rc4 #main-content :is(.as95-journal,.as95-article) {padding-top:calc(var(--header-h,76px) + 16px);}
body.as-rc4 #main-content .archive-hero {margin-top:calc(var(--header-h,76px) + 14px);}

/* Language switch remains visible and stable at all breakpoints. */
body.as-rc4 #masthead .as95-languages {display:flex;align-items:center;gap:2px;flex:0 0 auto;}
body.as-rc4 #masthead .as95-languages a {
  min-width:34px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.75rem;
  letter-spacing:.07em;
  text-decoration:none;
}
body.as-rc4 #masthead .as95-languages a[aria-current="true"] {font-weight:700;text-decoration:underline;text-underline-offset:4px;}

/* Portrait direction: existing photographs read as authored editorial portraits, not UI placeholders. */
body.as-rc4 :is(.as100-hero-image,.as100-profile figure,.as96-photo-pair figure,.as93-profile .as93-photo) .as94-picture {
  background:#e9e7e2;
  border:1px solid rgba(25,44,67,.14);
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
}
body.as-rc4 :is(.as100-hero-image,.as100-profile figure,.as96-photo-pair figure,.as93-profile .as93-photo) .as94-picture img {
  filter:saturate(.78) contrast(1.045) brightness(.99);
}
body.as-rc4 .as100-profile figure figcaption,
body.as-rc4 .as96-photo-pair figure figcaption {
  margin-top:9px;
  color:#536272;
  font-size:.75rem;
  letter-spacing:.025em;
}
body.as-rc4 .as1026-photo-placeholder {
  background:#f0f1ef;
  border:1px solid #d9dee1;
  color:#536272;
  box-shadow:none;
}

/* Tablet: preserve whitespace without oversized title panels. */
@media (max-width:1100px) {
  body.as-rc4 #masthead .header-inner {gap:10px;}
  body.as-rc4 #masthead .as95-languages {margin-left:auto;}
  body.as-rc4 #masthead .nav-toggle {flex:0 0 auto;}
  body.as-rc4 #masthead .main-nav.open {overflow-y:auto;overscroll-behavior:contain;}
}
@media (min-width:761px) and (max-width:1100px) {
  body.as-rc4 {--rc3-title:clamp(2rem,4vw,2.375rem);--rc3-head-space:14px;}
  body.as-rc4 #main-content :is(.as95-article-head,.privacy-header,.as95-journal > .as95-masthead) {padding-inline:24px;}
}

/* Smartphone: 28-34px titles, compact title field, no horizontal pressure. */
@media (max-width:760px) {
  body.as-rc4 {--rc3-title:clamp(1.8rem,7.5vw,2.125rem);--rc3-head-space:12px;}
  body.as-rc4 #main-content :is(.as95-journal,.as95-article) {padding-top:calc(var(--header-h,76px) + 10px);}
  body.as-rc4 #main-content .archive-hero {margin-top:calc(var(--header-h,76px) + 10px);}
  body.as-rc4 #main-content :is(.as95-masthead,.as95-article-head,.archive-hero,.privacy-header) h1 {max-width:100%!important;}
  body.as-rc4 #main-content :is(.as95-article-head,.privacy-header,.as95-journal > .as95-masthead) {padding-inline:16px;}
  body.as-rc4 #masthead .as95-languages a {min-width:30px;padding-inline:4px;}
  body.as-rc4 :is(.as95-prose,.as95-reading,.as93-prose,.post-content,.page-content) {font-size:1.0625rem;line-height:1.72;}
  body.as-rc4 .as100-profile figure .as94-picture,
  body.as-rc4 .as96-photo-pair figure .as94-picture {aspect-ratio:4/5;}
}
@media (max-width:390px) {
  body.as-rc4 #masthead .header-inner {padding-inline:14px;gap:6px;}
  body.as-rc4 #masthead .as95-languages {gap:0;}
  body.as-rc4 #masthead .as95-languages a {min-width:28px;font-size:.6875rem;}
}

@media (prefers-reduced-motion:reduce) {
  body.as-rc4 *, body.as-rc4 *::before, body.as-rc4 *::after {scroll-behavior:auto!important;}
}

/* RC4 consolidation: the JS-enhanced mobile/tablet header has one unambiguous state.
   The legacy no-JS fallback remains untouched because these rules require html.as-js. */
@media (max-width:1100px) {
  html.as-js body.as-rc4 #masthead .main-nav:not(.open) {display:none !important;}
  html.as-js body.as-rc4 #masthead .nav-toggle {display:flex !important;}
  html.as-js body.as-rc4 #masthead .main-nav.open {display:block !important;}
}
