/* AffiliaThor — redesigned shell for the PHP pages (header, footer, tokens).
   Mirrors the header and footer of the redesign templates (style.css, site.css,
   continuity.css, localized.css) without their global resets, so the previous
   page styles keep their layout underneath. Loaded only on shell pages. */
@font-face{font-family:Archivo;src:url('../archivo-redesign.ttf') format('truetype');font-weight:100 900;font-stretch:62% 125%;font-display:swap}

:root{
  --paper:#f6f5f1;--white:#fffefa;--ink:#23251f;--muted:#5f625a;--line:#d4d5cd;--orange:#fa542b;--soft:#eaeae2;
  --focus:#873518;--dark:#25281f;--sage:#e3e8d7;--apricot:#f2decc;--footer-track:#dedfd4;--on-orange:#20231b;
  /* Tokens of the previous theme, mapped onto the redesign. */
  --bg:var(--paper);--fg:var(--ink);--brand:var(--orange);--brand-600:var(--focus);--brand-50:var(--apricot);
  --radius:0px;--shadow:none;
  color-scheme:light;background:var(--paper);color:var(--ink);font-family:Archivo,Arial,sans-serif;font-synthesis:none;
  scroll-padding-top:24px
}
:root[data-theme=dark]{
  --paper:#20231e;--white:#2a2e26;--ink:#f1f0e8;--muted:#b9beb1;--line:#484d42;--soft:#34392f;--focus:#ffa17f;
  --dark:#151812;--sage:#30392a;--apricot:#403329;--footer-track:#3f4638;color-scheme:dark
}
html:has(body.site-shell){background:var(--paper)}
body.site-shell{margin:0;background:var(--paper);color:var(--ink);font-family:Archivo,Arial,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
.site-shell :is(button,input,select,textarea){font-family:inherit}
.site-shell ::selection{color:#20231e;background:#ffa07f}
.site-shell :focus-visible{outline:2px solid var(--focus);outline-offset:5px}
.site-shell .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0}
.site-shell .skip{position:fixed;left:16px;top:12px;transform:translateY(-160%);z-index:60;padding:16px 22px;background:var(--ink);color:var(--paper);text-decoration:none}
.site-shell .skip:focus{transform:none}
.site-shell > main{display:block;background:var(--paper);overflow-x:clip}
.site-shell .eyebrow{font-size:11px;line-height:1.5;text-transform:uppercase;letter-spacing:.105em;font-weight:550}

/* Header ---------------------------------------------------------------- */
.site-shell .site-header{
  position:relative;top:auto;z-index:30;display:flex;align-items:center;gap:28px;height:112px;padding:0 44px;
  background:var(--paper);border-bottom:1px solid var(--line);backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--ink)
}
.site-shell .site-header a{color:inherit;text-decoration:none}
.site-shell .site-header button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.site-shell .wordmark{display:flex;align-items:center;font-size:42px;font-weight:650;letter-spacing:-2px;line-height:1;white-space:nowrap}
.site-shell .wordmark svg{display:block;width:32px;height:32px;margin-right:14px;fill:none;stroke:var(--orange);stroke-width:5;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.site-shell .wordmark:hover svg{transform:translate(3px,-3px)}
.site-shell .wordmark sup{align-self:flex-start;font-size:18px;margin-left:5px;line-height:1.2;color:var(--orange);vertical-align:baseline}
.site-shell .site-header nav#main-nav{display:flex;gap:26px;align-items:center;margin-left:auto}
.site-shell .site-header nav#main-nav a{position:relative;font-size:14px;font-weight:400;display:flex;gap:10px;align-items:center;min-height:44px}
.site-shell .site-header nav#main-nav a span{color:var(--muted);font-size:10px;align-self:flex-start;margin-top:10px}
/* One orange mark only: the sliding indicator (site-motion.js) or, without it, an orange underline. */
.site-shell .site-header nav#main-nav a:hover{text-decoration:none}
.site-shell .site-header nav#main-nav:not(.nav-motion-ready) a:not([aria-current]):hover{text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:8px}
.site-shell .site-header nav#main-nav a:is([aria-current=page],[aria-current=location])::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--orange)}
.site-shell .header-tools{display:flex;gap:12px;align-items:center}
.site-shell .menu-toggle{display:none}
.site-shell .theme-toggle{display:flex;flex-shrink:0;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid var(--line)!important;border-radius:50%}
.site-shell .theme-orb{width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;background:linear-gradient(90deg,var(--ink) 50%,transparent 50%);transition:transform .35s ease}
.site-shell .theme-toggle:hover .theme-orb{transform:rotate(180deg)}
.site-shell .site-header .language-links{
  position:static;display:flex;flex-flow:row nowrap;gap:2px;margin:0;padding:2px;align-items:center;
  background:transparent;border:1px solid var(--line);box-shadow:none;border-radius:4px
}
.site-shell .site-header .language-links a{
  position:relative;display:grid;place-items:center;min-width:29px;min-height:36px;padding:0 4px;
  font-size:10px;font-weight:600;line-height:1;border-radius:2px
}
.site-shell .site-header .language-links a[aria-current]{color:var(--ink);background:var(--soft)}
.site-shell .site-header .language-links a[aria-current]::after{content:'';position:absolute;bottom:0;height:2px;left:6px;right:6px;background:var(--orange)}
.site-shell .site-header .language-links a:hover{background:var(--soft)}
:root:not(.js) .site-shell .theme-toggle,:root:not(.js) .site-shell .menu-toggle{display:none}

/* Footer ---------------------------------------------------------------- */
.site-shell .site-footer{position:relative;padding:0 44px 20px;border-top:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:16px;line-height:1.5}
.site-shell .site-footer a{color:inherit;text-decoration:none}
.site-shell .site-footer :is(p,h2){margin:0}
.site-shell .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}
.site-shell .footer-heading .eyebrow{color:var(--muted);margin-bottom:20px}
.site-shell .footer-heading h2{font-size:clamp(34px,3.4vw,50px);line-height:1.06;letter-spacing:-.05em;font-weight:500}
.site-shell .footer-route{display:block;width:100%;height:auto;overflow:visible;stroke-linecap:round;stroke-linejoin:round;align-self:center}
.site-shell .footer-route-track{stroke:var(--footer-track);stroke-width:7}
.site-shell .footer-route-line,.site-shell .footer-route-arrow{stroke:var(--orange);stroke-width:7}
.site-shell .footer-route-dot{fill:var(--orange);stroke:var(--paper);stroke-width:3}
.site-shell .footer-next-links{display:grid;gap:6px}
.site-shell .footer-next-links>a{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}
.site-shell .footer-next-links>a>span:first-child{flex:1}
.site-shell .footer-next-links strong{display:block;font-size:18px;line-height:1.4;font-weight:500;letter-spacing:-.02em}
.site-shell .footer-next-links small{display:block;font-size:11px;line-height:1.65;color:var(--muted);margin-top:6px}
.site-shell .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}
.site-shell .footer-next-links>a:is(:hover,:focus-visible) .footer-link-arrow{background:var(--orange);color:var(--on-orange);border-color:var(--orange);transform:rotate(45deg)}
.site-shell .site-footer .footer-meta{max-width:1406px;margin:auto;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start;gap:36px;padding:32px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.site-shell .site-footer .footer-signature{display:block;color:var(--ink)}
.site-shell .site-footer .footer-brand{width:max-content;max-width:100%;display:flex;gap:12px;align-items:center;font-size:36px;font-weight:600;letter-spacing:-.055em;line-height:1.2;padding:0;white-space:nowrap}
.site-shell .site-footer .footer-brand span{font-size:35px;line-height:1;color:var(--orange);font-weight:350;letter-spacing:0}
.site-shell .site-footer .footer-signature p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:9px}
.site-shell .footer-navigation--groups{display:grid;grid-template-columns:repeat(3,minmax(0,max-content));justify-content:end;gap:0 48px}
.site-shell .footer-group{display:flex;flex-direction:column;min-width:0}
.site-shell .footer-group-title{font-size:10px!important;line-height:1.5;text-transform:uppercase;letter-spacing:.105em;font-weight:600;color:var(--muted);margin:0 0 6px!important}
.site-shell .footer-navigation--groups a{display:flex;align-items:center;min-height:34px;font-size:12px;color:var(--ink)}
.site-shell .footer-navigation--groups a:hover{text-decoration:underline;text-underline-offset:5px}
.site-shell .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}
.site-shell .footer-colophon>a{display:flex;align-items:center;gap:14px;min-height:40px}
.site-shell .footer-colophon>a span{display:grid;place-items:center;width:28px;height:28px;font-size:18px;transition:transform .2s;color:var(--ink)}
.site-shell .footer-colophon>a:hover span{transform:translateY(-3px)}

/* View transition used by the theme switch (shell.js). */
.theme-changing::view-transition-old(root),.theme-changing::view-transition-new(root){animation:none;mix-blend-mode:normal}
.theme-changing::view-transition-new(root){z-index:2}

/* Responsive ------------------------------------------------------------ */
@media(min-width:1600px){.site-shell .site-header,.site-shell .site-footer{padding-left:64px;padding-right:64px}}
@media(max-width:1150px){
  .site-shell .site-header{padding:0 28px;gap:20px;height:96px}
  .site-shell .wordmark{font-size:32px}
  .site-shell .site-header nav#main-nav{gap:16px}
  .site-shell .site-header nav#main-nav a{font-size:13px}
  .site-shell .site-footer{padding-left:28px;padding-right:28px}
  .site-shell .footer-invitation{grid-template-columns:minmax(260px,1fr) minmax(100px,.55fr) minmax(260px,1fr);gap:24px}
  .site-shell .footer-navigation--groups{gap:0 28px}
}
@media(max-width:1024px) and (min-width:801px){.site-shell .site-header{gap:14px}.site-shell .site-header nav#main-nav{gap:14px}}
@media(max-width:950px){
  .site-shell .footer-invitation{grid-template-columns:1fr 210px;gap:26px 35px;padding-top:40px;padding-bottom:32px}
  .site-shell .footer-next-links{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:30px}
  .site-shell .site-footer .footer-meta{grid-template-columns:1fr;gap:26px}
  .site-shell .footer-navigation--groups{justify-content:start}
}
@media(max-width:880px){
  .site-shell .site-header{height:90px}
  .site-shell .wordmark svg{width:26px;height:26px;margin-right:10px}
  .site-shell .site-header nav#main-nav a{font-size:12px}
  .site-shell .site-header nav#main-nav a span{display:none}
}
@media(max-width:800px){
  .site-shell .menu-toggle{display:block;font-size:12px!important;padding:12px!important;margin-left:auto;border:1px solid var(--line)!important;white-space:nowrap}
  .site-shell .site-header{gap:14px}
  .site-shell .site-header nav#main-nav{
    display:none;position:absolute;top:100%;left:0;right:0;z-index:25;padding:22px;margin:0;
    background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 10px 18px #0001
  }
  .site-shell .site-header nav#main-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:6px}
  .site-shell .site-header nav#main-nav a{font-size:16px;justify-content:space-between}
  .site-shell .site-header nav#main-nav a span{display:inline}
  :root:not(.js) .site-shell .site-header{height:auto;flex-wrap:wrap;padding-top:20px;padding-bottom:12px}
  :root:not(.js) .site-shell .site-header nav#main-nav{position:static;display:flex;flex-wrap:wrap;box-shadow:none;border:0;padding:10px 0}
}
@media(max-width:640px){
  .site-shell .site-header{
    display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:2px 10px;
    height:auto;min-height:98px;padding:10px 20px 8px
  }
  .site-shell .site-header .wordmark{grid-area:1/1;font-size:27px;letter-spacing:-1.6px}
  .site-shell .wordmark svg{width:22px;height:22px;margin-right:8px}
  .site-shell .wordmark sup{display:none}
  .site-shell .site-header .header-tools{display:contents}
  .site-shell .site-header .menu-toggle{grid-area:1/2;padding:9px!important;font-size:11px!important}
  .site-shell .site-header .theme-toggle{grid-area:1/3;width:38px;height:38px}
  .site-shell .site-header .language-links{grid-column:1/-1;grid-row:2;justify-self:end;padding:0;border:0}
  .site-shell .site-header .language-links a{min-height:30px;min-width:32px}
  .site-shell .site-footer{padding:0 22px 14px}
  .site-shell .footer-invitation{grid-template-columns:minmax(0,1fr) 90px;gap:24px 16px;padding-top:34px;padding-bottom:26px}
  .site-shell .footer-heading .eyebrow{font-size:9px;margin-bottom:16px}
  .site-shell .footer-heading h2{font-size:32px}
  .site-shell .footer-route{transform:rotate(-90deg);width:134px;max-width:none;justify-self:center}
  .site-shell .footer-route-track,.site-shell .footer-route-line,.site-shell .footer-route-arrow{stroke-width:11}
  .site-shell .footer-next-links{grid-template-columns:1fr;gap:0}
  .site-shell .footer-next-links>a{padding:17px 0}
  .site-shell .footer-next-links strong{font-size:17px}
  .site-shell .site-footer .footer-meta{padding:25px 0;gap:22px}
  .site-shell .site-footer .footer-brand{font-size:32px}
  .site-shell .site-footer .footer-brand span{font-size:30px}
  .site-shell .footer-navigation--groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
  .site-shell .footer-navigation--groups a{font-size:12px;min-height:40px}
  .site-shell .footer-colophon{font-size:9px;gap:18px;align-items:flex-start}
  .site-shell .footer-colophon p{max-width:190px;padding-top:8px}
  .site-shell .footer-colophon>a{gap:5px;white-space:nowrap}
}
@media(max-width:360px){
  .site-shell .site-header{padding:10px 15px 8px;gap:2px 8px}
  .site-shell .site-header .wordmark{font-size:25px}
  .site-shell .wordmark svg{width:20px;height:20px}
  .site-shell .site-header .menu-toggle{font-size:10px!important;padding:7px!important}
  .site-shell .site-header .theme-toggle{width:34px;height:34px}
  .site-shell .site-footer{padding-left:18px;padding-right:18px}
  .site-shell .footer-invitation{grid-template-columns:minmax(0,1fr) 66px;gap:20px 8px}
  .site-shell .footer-heading h2{font-size:29px}
  .site-shell .footer-route{width:115px}
}
@media(prefers-reduced-motion:reduce){
  .site-shell .wordmark svg,.site-shell .footer-link-arrow,.site-shell .footer-colophon>a span,.site-shell .theme-orb{transition:none;transform:none!important}
}
/* Labels in the footer keep the redesign style on pages that still load previous sheets. */
.site-shell .site-footer .eyebrow{display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--muted);font-size:11px;font-weight:550;letter-spacing:.105em;text-transform:uppercase}
.site-shell .site-footer .eyebrow::before{content:none}

.site-shell .site-header .language-links.with-indicator { position:relative; isolation:isolate; }
.site-shell .language-links.with-indicator::before {
  content:''; position:absolute; z-index:-1; top:2px; bottom:2px; left:0;
  width:var(--tab-width); transform:translateX(var(--tab-left)); background:var(--soft); border-radius:2px;
}
.site-shell .site-header .language-links.with-indicator a { background:transparent; }
@media (prefers-reduced-motion:no-preference) {
  .site-shell .language-links.with-indicator::before { transition:transform 250ms cubic-bezier(.22,1,.36,1),width 250ms; }
  .site-shell .menu-toggle[aria-expanded=true] + nav { animation:shell-menu-arrive 210ms cubic-bezier(.22,1,.36,1); transform-origin:top; }
}
@keyframes shell-menu-arrive { from { opacity:.35; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@media(max-width:640px){
  :root:not(.js) .site-shell .site-header { display:flex; }
  :root:not(.js) .site-shell .site-header nav#main-nav { order:2; width:100%; gap:6px 16px; }
}
