/* V3.5 — one canvas, colour where it gives a point of reference. */
:root[data-theme=light] body{
  --paper:#f6f5f1;--white:#fffefa;--line:#d4d5cd;--soft:#eaeae2;
  --sage:#e3e8d7;--apricot:#f2decc;--footer-track:#dedfd4;
  background:var(--paper);
}
:root[data-theme=dark] body{
  --sage:#30392a;--apricot:#403329;--footer-track:#3f4638;
  background:var(--paper);
}
:root[data-theme] :is(.site-header,.site-footer,.program-decision,.program-body){background:var(--paper);border-color:var(--line)}
.site-header{position:relative}
.site-header .wordmark svg{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.site-header .wordmark:hover svg{transform:translate(3px,-3px)}

/* Keep the orange entry rail; remove the frames around long-form reading. */
:root[data-theme=light] .page-intro{border-color:var(--line)}
:root[data-theme=light] :is(.prose,.faq-page){background:transparent;border:0;padding-left:0;padding-right:0}
:root[data-theme=light] .prose section:first-child{border-top:1px solid var(--line)}
:root[data-theme=light] .faq-page details:first-child{border-top:1px solid var(--line)}
:root[data-theme=light] .faq-page summary>span{background:var(--soft);color:var(--ink);transition:background .25s,transform .25s}
:root[data-theme=light] .faq-page details[open] summary>span{background:var(--orange);color:#23251f}
:root[data-theme=light] .editorial-note{background:transparent;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-left:3px solid var(--orange)}
:root[data-theme=light] .toc{background:var(--sage)}
:root[data-theme=light] .toc .eyebrow{color:#39412f}
:root[data-theme=light] .toc a{color:#4d5543}
:root[data-theme=light] .toc a:hover{color:#23251f}

/* A recurring, contained palette instead of changing the whole page. */
:root[data-theme] .editorial-grid{gap:16px;border:0}
:root[data-theme] .editorial-link{margin:0;padding:28px;min-height:300px;border:1px solid var(--line);background:var(--white);transition:border-color .25s}
:root[data-theme=light] .editorial-link{--muted:#55594f}
:root[data-theme] .editorial-link:nth-child(3n+2){background:var(--sage)}
:root[data-theme] .editorial-link:nth-child(3n){background:var(--apricot)}
:root[data-theme] .editorial-link:first-child{background:#25281f;color:#f6f4eb;border-color:#25281f}
:root[data-theme] .editorial-link:first-child :is(.eyebrow,p:not(.eyebrow)){color:#c4c9b8}
:root[data-theme] .editorial-link:hover{border-color:var(--orange)}
:root[data-theme] .editorial-link>.eyebrow{align-self:flex-start;border-bottom:2px solid var(--orange);padding-bottom:8px;color:var(--muted)}
:root[data-theme] .editorial-link h2{font-size:34px;max-width:360px}
:root[data-theme] .editorial-link p:not(.eyebrow){padding-bottom:28px}
:root[data-theme] .editorial-link .large-arrow{display:grid;place-items:center;width:46px;height:46px;margin-top:auto;padding:0;background:var(--paper);color:var(--ink);font-size:30px}
:root[data-theme] .editorial-link:first-child .large-arrow{background:var(--orange);color:#23251f}
:root[data-theme=light] .guide-list{background:transparent;border:0}
:root[data-theme=light] .guide-link{background:transparent;padding-left:0;padding-right:0;transition:background .25s}
:root[data-theme=light] .guide-link:last-child{border-bottom:1px solid var(--line)}
:root[data-theme=light] .guide-link:hover{background:color-mix(in srgb,var(--sage) 38%,transparent)}
:root[data-theme=light] .guide-link>span:last-child{background:var(--sage);color:var(--ink)}
:root[data-theme=light] .guide-link:nth-child(even)>span:last-child{background:var(--apricot)}

/* The footer continues the sheet. Its drawing belongs to the same arrow system. */
.site-footer{padding:0 44px 20px;position:relative;border-top:1px solid var(--line)}
.footer-invitation{max-width:1406px;margin:auto;display:grid;grid-template-columns:minmax(280px,1.2fr) minmax(180px,.85fr) minmax(290px,1fr);align-items:center;gap:40px;padding:52px 0 48px}
.footer-heading .eyebrow{color:var(--muted);margin-bottom:20px}
.footer-heading h2{font-size:clamp(34px,3.4vw,50px);line-height:1.06;letter-spacing:-.05em;font-weight:500}
.footer-route{width:100%;height:auto;overflow:visible;stroke-linecap:round;stroke-linejoin:round;align-self:center}
.footer-route-track{stroke:var(--footer-track);stroke-width:7}
.footer-route-line,.footer-route-arrow{stroke:var(--orange);stroke-width:7}
.footer-route-dot{fill:var(--orange);stroke:var(--paper);stroke-width:3}
.footer-next-links{display:grid;gap:6px}
.footer-next-links>a{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}
.footer-next-links>a>span:first-child{flex:1}
.footer-next-links strong{display:block;font-size:18px;line-height:1.4;font-weight:500;letter-spacing:-.02em}
.footer-next-links small{display:block;font-size:11px;line-height:1.65;color:var(--muted);margin-top:6px}
.footer-link-arrow{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:23px;transition:background .25s,transform .3s,border-color .25s;flex:none}
.footer-next-links>a:is(:hover,:focus-visible) .footer-link-arrow{background:var(--orange);color:#23251f;border-color:var(--orange);transform:rotate(45deg)}
.site-footer .footer-meta{max-width:1406px;margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:36px;padding:32px 0;border-top:1px solid var(--line)}
.site-footer .footer-signature{display:block;max-width:none;color:var(--ink)}
.site-footer .footer-brand{width:max-content;max-width:100%;display:flex;gap:12px;justify-content:flex-start;font-size:36px;font-weight:600;letter-spacing:-.055em;line-height:1.2;padding:0}
.site-footer .footer-brand span{font-size:35px;line-height:1}
.site-footer .footer-signature p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:9px}
.footer-navigation{display:grid;grid-template-columns:repeat(3,max-content);justify-content:end;gap:4px 32px}
.footer-navigation a{display:flex;align-items:center;min-height:36px;font-size:12px}
.footer-navigation a:hover{color:var(--ink)}
.footer-colophon{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1406px;margin:auto;border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:10px;line-height:1.6}
.footer-colophon>a{display:flex;align-items:center;gap:14px;min-height:40px}
.footer-colophon>a span{display:grid;place-items:center;width:28px;height:28px;font-size:18px;transition:transform .2s;color:var(--ink)}
.footer-colophon>a:hover span{transform:translateY(-3px)}

@media(min-width:1600px){.site-footer{padding-left:64px;padding-right:64px}}
@media(max-width:1150px){
 .site-footer{padding-left:28px;padding-right:28px}
 .footer-invitation{grid-template-columns:minmax(260px,1fr) minmax(100px,.55fr) minmax(260px,1fr);gap:24px}
 .footer-navigation{gap:4px 22px}
}
@media(max-width:950px){
 .footer-invitation{grid-template-columns:1fr 210px;gap:26px 35px;padding-top:40px;padding-bottom:32px}
 .footer-next-links{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:30px}
 .site-footer .footer-meta{grid-template-columns:1fr;gap:24px;align-items:start}
 .footer-navigation{justify-content:start}
}
@media(max-width:640px){
 :root[data-theme] .editorial-link{padding:25px;min-height:255px}
 :root[data-theme] .editorial-link h2{font-size:30px}
 .site-footer{padding:0 22px 14px}
 .footer-invitation{grid-template-columns:minmax(0,1fr) 90px;gap:24px 16px;padding-top:34px;padding-bottom:26px}
 .footer-heading .eyebrow{font-size:9px;margin-bottom:16px}
 .footer-heading h2{font-size:32px}
 .footer-route{transform:rotate(-90deg);width:134px;max-width:none;justify-self:center}
 .footer-route-track,.footer-route-line,.footer-route-arrow{stroke-width:11}
 .footer-next-links{grid-template-columns:1fr;gap:0}
 .footer-next-links>a{padding:17px 0}
 .footer-next-links strong{font-size:17px}
 .site-footer .footer-meta{padding:25px 0;gap:22px}
 .site-footer .footer-brand{font-size:32px}
 .site-footer .footer-brand span{font-size:30px}
 .footer-navigation{grid-template-columns:1fr 1fr;gap:0 20px}
 .footer-navigation a{font-size:11px;min-height:40px}
 .footer-colophon{font-size:9px;gap:18px;align-items:flex-start}
 .footer-colophon p{max-width:170px;padding-top:8px}
 .footer-colophon>a{gap:5px;white-space:nowrap}
}
@media(max-width:360px){
 .site-footer{padding-left:18px;padding-right:18px}
 .footer-invitation{grid-template-columns:minmax(0,1fr) 66px;gap:20px 8px}
 .footer-heading h2{font-size:29px}
 .footer-route{width:115px}
}
@media(prefers-reduced-motion:reduce){
 .site-header .wordmark svg,.footer-link-arrow,.footer-colophon>a span{transition:none;transform:none!important}
}
