/* TASK-180 slice 1b (TASK-198): the one public header and footer (lib/site-chrome.ts). The editorial pages' dark masthead
   and sunk footer band (public/aeo/editorial-d.css) are the visual reference; nothing here is new. The React surfaces
   import this file; the prerender copies it to /aeo/site-chrome.css for the static pages (style-src 'self'). */
.tk-site-header { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--tk-space-7);
  min-height: 64px; padding: 0 max(var(--tk-space-6), calc((100% - 1280px) / 2 + var(--tk-space-6)));
  background: var(--tk-dark-ground); color: var(--tk-dark-text); border-bottom: 1px solid var(--tk-dark-rule);
  font-family: var(--tk-font-sans); --tk-focus: var(--tk-dark-focus); --tk-loss: var(--tk-dark-loss); }
/* The brand colour is explicit and scoped (0,2,0): on the static pages `.aeo-page a` (0,1,1, editorial-d.css) beat a bare
   `.tk-site-brand` with `inherit`, and drew the wordmark #214E45 on the dark header at 1.95:1 (Design, #773). */
.tk-site-brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.tk-site-header .tk-site-brand, .tk-site-footer .tk-site-brand { color: var(--tk-dark-text); }
.tk-site-brand .tk-wordmark { display: block; height: 13.5px; width: auto; fill: currentColor; }
.tk-site-nav { display: flex; align-items: center; gap: var(--tk-space-5); flex: 1 1 auto; }
.tk-site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--tk-type-label-size); color: var(--tk-dark-text-muted); text-decoration: none; }
.tk-site-nav a:hover, .tk-site-nav a[aria-current=page] { color: var(--tk-dark-text); }
.tk-site-nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tk-site-nav a.tk-site-signin { margin-left: auto; padding: 0 var(--tk-space-4); border-radius: var(--tk-radius-sm); background: var(--tk-dark-accent); color: var(--tk-dark-on-accent); font-weight: var(--tk-type-button-weight); }
.tk-site-nav a.tk-site-signin:hover { background: color-mix(in srgb, var(--tk-dark-accent) 86%, var(--tk-bone)); }
.tk-site-header a:focus-visible, .tk-site-footer a:focus-visible { outline: 2px solid var(--tk-focus); outline-offset: 2px; }

.tk-site-footer { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--tk-space-6);
  padding: var(--tk-space-8) max(var(--tk-space-6), calc((100% - 1280px) / 2 + var(--tk-space-6)));
  background: var(--tk-dark-sunk); color: var(--tk-dark-text-muted); border-top: 1px solid var(--tk-dark-rule);
  font-family: var(--tk-font-sans); font-size: var(--tk-type-body-size); --tk-focus: var(--tk-dark-focus); --tk-loss: var(--tk-dark-loss); }
.tk-site-footer a { color: var(--tk-dark-text); text-underline-offset: 3px; }
.tk-site-footer nav { display: grid; gap: 4px; align-content: start; }
.tk-site-footer nav a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.tk-site-footer nav a:hover { text-decoration: underline; }
.tk-site-footer p { margin: 4px 0 0; }
.tk-site-footer .tk-site-disclaimer, .tk-site-footer [data-legal-links] { grid-column: 1 / -1; max-width: 60em; }
/* TASK-201 (Design): the boundary rule spans the footer's full width, edge to edge with the header at 1280; the line's
   measure stays 60em through its right padding. */
.tk-site-footer .tk-site-disclaimer[data-boundary] { max-width: none; margin-top: 0; padding-top: var(--tk-space-5); padding-right: max(0px, calc(100% - 60em)); border-top: 1px solid var(--tk-dark-rule); }
.tk-site-footer [data-legal-links] { display: flex; flex-wrap: wrap; gap: var(--tk-space-4); }
.tk-site-footer .footer-identity { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tk-site-footer .footer-identity > div { flex: 1 1 0; min-width: min-content; }

@media (max-width: 899px) {
  .tk-site-header { position: static; gap: 0 var(--tk-space-4); min-height: 0; padding-inline: var(--tk-space-4); }
  .tk-site-nav { order: 2; flex: 1 0 100%; flex-wrap: wrap; gap: 0 var(--tk-space-4); border-top: 1px solid var(--tk-dark-rule); }
  .tk-site-nav a.tk-site-signin { margin-left: 0; margin-block: var(--tk-space-2); }
  .tk-site-footer { grid-template-columns: minmax(0, 1fr); padding-inline: var(--tk-space-4); }
}
@media (max-width: 899px) and (min-width: 480px) {
  .tk-site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-site-footer > div:first-child { grid-column: 1 / -1; }
}
