/* Home's editorial language, scoped to public interior pages only.
   Saved user typography/crops remain authoritative. No Home/editor selectors. */
body.interior-refresh{
  --refresh-gutter:var(--page-left,clamp(24px,4.5vw,88px));
  --refresh-right:var(--section-right,var(--refresh-gutter));
  --refresh-space:clamp(72px,8vw,128px);
  --refresh-soft:color-mix(in srgb,var(--ink) 6%,var(--paper));
  --refresh-muted:color-mix(in srgb,var(--ink) 65%,var(--paper));
  --refresh-rule:color-mix(in srgb,var(--ink) 18%,var(--paper));
  --canvas-bg:var(--paper);--canvas-fg:var(--ink);
  --why-card-line:var(--refresh-rule);--why-body:var(--refresh-muted);
  --why-muted:var(--refresh-muted);--why-soft:var(--refresh-soft);
  padding:0;background:var(--paper);color:var(--ink);
}
body.interior-refresh main{margin:0;background:var(--paper);color:var(--ink)}
body.interior-refresh.spa-smooth-active .page-smooth-content{padding:0}
body.interior-refresh.drawer-navigation>spa-header{height:0!important}
body.interior-refresh.drawer-navigation .site-header{--drawer-header-ink:var(--ink)}
body.interior-refresh.drawer-navigation.refresh-header-on-dark:not(.drawer-open) .site-header{--drawer-header-ink:var(--paper)}
body.interior-refresh.drawer-navigation:not(.refresh-header-on-dark):not(.drawer-open) .site-header{background:color-mix(in srgb,var(--paper) 94%,transparent)!important;-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important}
/* The appearance layer supplies a black vector on light interiors. Invert
   that same vector only while the transparent header crosses a dark surface. */
:root body.interior-refresh.drawer-navigation.refresh-header-on-dark:not(.drawer-open) .site-header[data-drawer-header] .brand img{filter:brightness(0) invert(1)!important}
body.interior-refresh:is(.interior-page,.legal-page) main :is(p,li){font-size:16px;line-height:1.55;letter-spacing:0}
body.interior-refresh main :is(h1,h2,h3){font-weight:400;overflow-wrap:break-word}
body.interior-refresh:is(.interior-page,.legal-page) main h2{font-size:clamp(36px,4.2vw,68px);line-height:1.04;letter-spacing:-.045em}
body.interior-refresh:is(.interior-page,.legal-page) main h3{font-size:clamp(24px,2.2vw,34px);line-height:1.15;letter-spacing:-.03em}
body.interior-refresh main :is(.content-index,.page-kicker,.section-number,.item-index,.label){font-size:14px;font-weight:400;line-height:1.4;letter-spacing:.02em}
body.interior-refresh main :is(figcaption,.story-status,.member-source-note){font-size:14px;line-height:1.5}
body.interior-refresh:is(.interior-page,.legal-page) :is(.page-hero,.news-masthead){
  display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:0;
  min-height:clamp(510px,76svh,840px);margin:0;
  padding:clamp(132px,12vw,192px) var(--refresh-right) clamp(48px,6vw,88px) var(--refresh-gutter);
  background:var(--ink);color:var(--paper);border:0;
}
body.interior-refresh main :is(.page-hero,.news-masthead) h1{
  max-width:16ch;margin:30px 0 0;color:var(--paper);
  font-size:clamp(48px,6.4vw,106px);line-height:1;letter-spacing:-.05em;
}
body.interior-refresh.interior-light :is(.page-hero,.news-masthead) .colour-word{color:inherit}
body.interior-refresh :is(.page-hero,.news-masthead) .page-kicker{display:flex;align-items:center;gap:10px;margin:0;color:var(--paper);text-transform:uppercase}
body.interior-refresh .page-kicker::before{content:"";width:4px;height:4px;flex:none;background:var(--copper)}
body.interior-refresh .page-hero-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:clamp(32px,7vw,112px);margin-top:clamp(56px,7vw,104px);align-items:end}
body.interior-refresh.news-page .news-masthead .page-hero-bottom{display:grid;flex-direction:initial;width:100%;max-width:none;gap:clamp(32px,7vw,112px);margin-top:clamp(56px,7vw,104px)}
body.interior-refresh.interior-light main :is(.page-hero-intro,.page-hero-index){margin:0;color:var(--paper);font-weight:400;letter-spacing:0}
body.interior-refresh.interior-light main .page-hero-intro{max-width:46ch;font-size:clamp(18px,1.65vw,24px);line-height:1.4}
body.interior-refresh.interior-light main .page-hero-index{max-width:30ch;font-size:14px;line-height:1.6;opacity:.66}
body.interior-refresh :is(.interior-section,.editorial-feature,.record-section,.people-section,.milestone-section,.category-section,.committee-archive,.application-process,.journal-archive-section,.archive-section){padding:var(--refresh-space) var(--refresh-right) var(--refresh-space) var(--refresh-gutter);border-color:var(--refresh-rule)}
body.interior-refresh .editorial-feature{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(40px,6vw,100px);border:0;align-items:center}
body.interior-refresh .content-index{display:block;margin-bottom:24px;color:var(--copper)}
body.interior-refresh .editorial-feature-copy h2{margin:0 0 36px}
body.interior-refresh .editorial-feature-copy p{max-width:48ch;color:var(--refresh-muted)}
body.interior-refresh main .feature-lead{font-size:clamp(20px,1.8vw,27px);line-height:1.4;color:var(--ink)}
body.interior-refresh :is(.editorial-media-frame,.why-media-frame,.impact-photo){border-radius:20px;overflow:hidden}
body.interior-refresh .editorial-media-frame{min-height:0;aspect-ratio:4/3;background:var(--refresh-soft)}
body.interior-refresh .editorial-media img{min-height:0;width:100%;height:100%;object-fit:cover}
body.interior-refresh .editorial-media figcaption{display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:16px;color:var(--refresh-muted)}
body.interior-refresh .record-heading,body.interior-refresh .people-heading{grid-template-columns:52px minmax(0,1fr) minmax(0,1fr);gap:24px 36px;margin-bottom:64px}
body.interior-refresh :is(.record-heading,.people-heading) p{max-width:48ch;color:var(--refresh-muted)}
body.interior-refresh .timeline-entry{grid-template-columns:minmax(100px,.48fr) minmax(0,.95fr) minmax(0,1fr);gap:32px;padding:36px 0;border-color:var(--refresh-rule)}
body.interior-refresh .timeline-entry h3{font-size:clamp(24px,2.1vw,32px)}
body.interior-refresh .timeline-entry p{color:var(--refresh-muted)}
body.interior-refresh .people-section{background:var(--refresh-soft);border:0}
body.interior-refresh .record-notice{padding:28px 32px;border:0;border-radius:20px;background:var(--paper);color:var(--ink)}
body.interior-refresh :is(.outline-action,.primary-link){display:inline-flex;width:fit-content;max-width:100%;align-items:center;justify-content:space-between;gap:32px;margin-top:24px;padding:12px 0;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;color:var(--ink);font-size:16px;text-decoration:none;transform:none;transition:color .25s ease,gap .35s ease}
/* Saved global hover text is white: retain an accent fill on interaction
   while the resting action remains a quiet, underlined editorial link. */
body.interior-refresh :is(.outline-action,.primary-link):is(:hover,:focus-visible){background:var(--copper);color:var(--on-accent);border-color:var(--copper);transform:none;gap:44px}
body.interior-refresh :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--copper);outline-offset:5px}
body.interior-refresh [hidden]{display:none!important}
body.interior-refresh :is(section[id],article[id]){scroll-margin-top:calc(var(--drawer-header-height,64px) + 32px)}

/* Why SPA: a quiet directory beside unframed chapters, not nested cards. */
body.interior-refresh.why-spa-page .page-hero h1{max-width:17ch}
body.interior-refresh .why-hero-support{display:flex;flex-direction:column;gap:24px}
body.interior-refresh .why-hero-media{max-width:420px;margin:0}
body.interior-refresh .why-hero-media .why-media-frame{height:auto;aspect-ratio:16/9}
body.interior-refresh .why-hero-media figcaption{color:var(--paper);font-size:12px;opacity:.7}
body.interior-refresh .why-directory{padding:var(--refresh-space) var(--refresh-right) var(--refresh-space) var(--refresh-gutter);background:var(--paper)}
body.interior-refresh .why-directory>.section-menu{padding:14px 0}
body.interior-refresh .section-menu-label{display:block;margin-bottom:20px;color:var(--refresh-muted);font-size:12px;text-transform:uppercase}
body.interior-refresh .section-menu a{color:var(--refresh-muted);font-size:14px}
body.interior-refresh .section-menu a.is-active{color:var(--copper)}
body.interior-refresh .why-section-panels>.interior-section{padding:0 0 var(--refresh-space);border:0;background:transparent}
body.interior-refresh .why-section-panels>.interior-section:last-child{padding-bottom:0}
body.interior-refresh .why-section-panels .section-grid-no-number{grid-template-columns:minmax(0,1fr);gap:28px}
body.interior-refresh .why-section-panels .section-grid-no-number :is(.section-heading,.section-copy){grid-column:1;margin:0;max-width:58ch}
body.interior-refresh main .section-copy .lead{font-size:clamp(22px,2.1vw,32px);line-height:1.35;color:var(--ink)}
body.interior-refresh .why-section-panels .split-statements{grid-template-columns:1fr 1fr;gap:16px;border:0;margin-top:48px;background:transparent}
body.interior-refresh .why-section-panels .statement{padding:32px;min-height:320px;border-radius:20px;background:var(--refresh-soft)}
body.interior-refresh .why-section-panels .statement:last-child{background:var(--copper);color:var(--on-accent)}
body.interior-refresh .why-section-panels .statement .label{margin-bottom:44px;color:inherit}
body.interior-refresh .why-section-panels .statement :is(h3,p){color:inherit}
body.interior-refresh .why-section-panels .statement h3{font-size:clamp(26px,2.5vw,36px);line-height:1.12}
body.interior-refresh .why-section-panels .expanded-work-item{grid-template-columns:32px minmax(0,1fr);gap:20px 24px;padding:40px 0}
body.interior-refresh .why-section-panels .expanded-work-item h3{grid-column:2;margin:0}
body.interior-refresh .why-section-panels .expanded-work-item .item-detail{grid-column:2;max-width:60ch}
body.interior-refresh .work-boundary{border:0;border-radius:16px;padding:24px;background:var(--refresh-soft);color:var(--refresh-muted)}
body.interior-refresh .why-section-panels .impact-record{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin:0;padding:44px 0;border-top:1px solid var(--refresh-rule)}
body.interior-refresh .why-section-panels .impact-record>*{grid-column:1;grid-row:auto;min-width:0}
body.interior-refresh .why-section-panels .impact-record h3{margin:0;font-size:clamp(28px,2.9vw,42px)}
body.interior-refresh .impact-photo{margin:12px 0 0;border-radius:0}
body.interior-refresh .impact-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:20px}
body.interior-refresh .impact-photo figcaption{padding-top:14px}

/* Home-style footer. Existing editable nodes are moved, never duplicated. */
body.interior-refresh .refresh-footer{margin:0;padding:72px var(--refresh-right) 40px var(--refresh-gutter);background:var(--ink);color:var(--paper);border:0}
body.interior-refresh .refresh-footer-main{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,1.5fr);gap:48px;align-items:start}
body.interior-refresh .refresh-footer :is(.brand,.site-footer-logo){width:var(--spa-footer-logo-width,100px);max-width:100%;margin:0;filter:none}
body.interior-refresh .refresh-footer :is(.brand,.site-footer-logo) img{width:100%;height:auto;filter:brightness(0) invert(1)}
:root body.interior-refresh .refresh-footer :is(.brand,.site-footer-logo) img{filter:brightness(0) invert(1)!important}
body.interior-refresh .refresh-footer :is(.footer-nav,.site-footer-nav){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;font-size:14px;line-height:1.5}
body.interior-refresh .refresh-footer :is(.footer-nav,.site-footer-nav)>div{display:flex;flex-direction:column;gap:10px}
body.interior-refresh .refresh-footer :is(.footer-nav-title,.site-footer-nav-title){color:#999;font-size:12px;line-height:1.5;margin-bottom:10px;font-weight:400}
body.interior-refresh .refresh-footer :is(.footer-nav,.site-footer-nav) a{color:var(--paper)}
body.interior-refresh .refresh-footer-meta{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:44px 0 28px;color:#aaa;font-size:12px}
body.interior-refresh .refresh-footer-meta :is(.social-links,.site-footer-social){margin:0;color:inherit}
body.interior-refresh .refresh-footer-meta :is(.social-links,.site-footer-social) a{display:grid;place-items:center;width:28px;height:28px;border:1px solid #777;border-radius:50%;font-size:16px;color:var(--paper)}
body.interior-refresh .refresh-footer-information{display:grid;grid-template-columns:1.2fr 1.2fr 1fr;gap:32px;border-top:1px solid #424242;padding-top:28px;color:#aaa}
body.interior-refresh .refresh-footer-information :is(p,a,span){color:inherit!important;font-size:12px!important;line-height:1.8!important}
body.interior-refresh .refresh-footer-information p{width:auto;max-width:100%;margin:0!important;overflow-wrap:anywhere}
body.interior-refresh .refresh-footer :is(.footer-contact,.site-footer-contact){display:inline-block;width:auto;height:auto;margin:0;padding:10px 0;border:0;border-bottom:1px solid currentColor;background:none;color:var(--paper);font-size:16px}
body.interior-refresh .refresh-footer a{text-decoration:none}
body.interior-refresh .refresh-footer a:is(:hover,:focus-visible){color:var(--paper);text-decoration:underline;text-underline-offset:5px}

/* Legal text uses normal reading flow; no overlapping/stuck clauses. */
body.interior-refresh.legal-page .content{padding:var(--refresh-space) var(--refresh-right) var(--refresh-space) var(--refresh-gutter);background:var(--paper)}
body.interior-refresh.legal-page .legal-sections{min-height:0}
body.interior-refresh.legal-page .legal-section{position:relative;top:auto;translate:none;grid-template-columns:48px minmax(0,.8fr) minmax(0,1.4fr);gap:28px;min-height:0;padding:40px 0 56px;background:var(--paper);border-color:var(--refresh-rule);opacity:1;transform:none}
body.interior-refresh.legal-page .legal-section h2{color:var(--ink);font-size:clamp(24px,2.4vw,34px);line-height:1.15}
body.interior-refresh.legal-page .legal-section-copy{padding:0}
body.interior-refresh.legal-page .legal-section-copy :is(p,ul){color:var(--refresh-muted);max-width:65ch}
body.interior-refresh.legal-page .legal-section-copy>.notice{display:block;white-space:normal;transform:none;border:0;border-radius:16px;background:var(--refresh-soft);color:var(--ink);font-size:14px}
body.interior-refresh .legal-hero{min-height:500px}
body.interior-refresh .legal-hero>.eyebrow{margin:0;color:var(--paper);font-size:14px;letter-spacing:.02em;text-transform:uppercase}
body.interior-refresh .legal-hero>.intro{width:auto;max-width:54ch;margin:40px 0 0;padding:0;background:none;color:var(--paper);font-size:20px;line-height:1.5}
body.interior-refresh .legal-hero>.legal-meta{margin:20px 0 0;color:var(--paper);font-size:14px;opacity:.65}

/* Progressive enhancement: content is readable before scripts run or if they fail. */
body.interior-refresh .reveal{opacity:1;transform:none;transition:none}
body.interior-refresh.refresh-motion-ready .reveal:not(.is-visible){opacity:0;transform:translate3d(0,20px,0)}
body.interior-refresh.refresh-motion-ready .reveal{transition:opacity .75s ease var(--reveal-delay,0ms),transform .85s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms)}
body.interior-refresh.refresh-motion-ready .reveal:not(.is-visible) :is(.editorial-media-frame,.why-media-frame) img{transform:scale(1.035)}
body.interior-refresh.refresh-motion-ready .reveal.is-visible :is(.editorial-media-frame,.why-media-frame) img{transform:scale(1);transition:transform 1.2s cubic-bezier(.22,1,.36,1)}
@media(min-width:1200px){body.interior-refresh .why-directory{display:grid;grid-template-columns:minmax(160px,.33fr) minmax(0,1fr);gap:clamp(40px,6vw,96px)}}
@media(max-width:1199px){
  body.interior-refresh{--refresh-gutter:clamp(24px,5vw,64px);--refresh-right:var(--refresh-gutter)}
  body.interior-refresh .why-directory{padding-top:0}
  body.interior-refresh .why-section-panels>.interior-section{padding-top:64px}
  body.interior-refresh .mobile-explore{padding-inline:0;background:var(--paper)}
  body.interior-refresh .refresh-footer :is(.footer-nav,.site-footer-nav){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  body.interior-refresh{--refresh-gutter:24px;--refresh-right:24px;--refresh-space:72px}
  body.interior-refresh:is(.interior-page,.legal-page) :is(.page-hero,.news-masthead){min-height:480px;padding-top:128px;padding-bottom:48px}
  body.interior-refresh main :is(.page-hero,.news-masthead) h1{font-size:clamp(42px,10vw,66px);line-height:1.04}
  body.interior-refresh .page-hero-bottom{grid-template-columns:1fr;gap:28px;margin-top:44px}
  body.interior-refresh.news-page .news-masthead .page-hero-bottom{gap:28px;margin-top:44px}
  body.interior-refresh main .page-hero-index{max-width:none}
  body.interior-refresh .editorial-feature{grid-template-columns:1fr;gap:40px}
  body.interior-refresh :is(.record-heading,.people-heading){grid-template-columns:1fr;gap:20px;margin-bottom:40px}
  body.interior-refresh :is(.record-heading,.people-heading)>*{grid-column:1;margin:0}
  body.interior-refresh .timeline-entry{grid-template-columns:1fr;gap:16px;padding:32px 0}
  body.interior-refresh .why-section-panels .split-statements{grid-template-columns:1fr}
  body.interior-refresh .why-section-panels .statement{min-height:0;padding:28px}
  body.interior-refresh .why-hero-media{max-width:100%}
  body.interior-refresh .refresh-footer-main{grid-template-columns:1fr;gap:40px}
  body.interior-refresh .refresh-footer-information{grid-template-columns:1fr;gap:24px}
  body.interior-refresh.legal-page .legal-section{grid-template-columns:28px minmax(0,1fr);gap:20px;padding:32px 0 40px}
  body.interior-refresh.legal-page .legal-section-copy{grid-column:2}
}
@media(prefers-reduced-motion:reduce){
  body.interior-refresh.refresh-motion-ready .reveal,body.interior-refresh.refresh-motion-ready .reveal:not(.is-visible){opacity:1;transform:none;transition:none}
  body.interior-refresh :is(.reveal img,.outline-action,.primary-link){transform:none;transition:none}
}
