/*
 * Header/footer/nav chrome only -- a hand-picked subset of selectors from
 * the verbatim woodapplez.css, for use ONLY on pages whose body content is
 * pre-existing, uncontrolled legacy HTML (Tools/Bookmarks/Over -- see
 * includes/static-pages-template.php).
 *
 * Why this exists: the full woodapplez.css defines .wa-tools as a CSS Grid
 * container (design handoff block 8's tool-card layout). The real Tools
 * page already had its own, unrelated <div class="wa-tools"> wrapper
 * around its own self-contained tool directory/device-checker widgets.
 * Loading the full stylesheet there turned that div into a 2-column grid,
 * scattering "Aanbevolen tools" and "Apple apparaat checker" side by side
 * instead of stacked -- a real accidental class-name collision, confirmed
 * by rendering the page's actual HTML locally. Since arbitrary legacy
 * content can reuse any of the ~150 class names in the full stylesheet,
 * and woodapplez.css itself is never edited (it must stay byte-identical
 * to the design handoff), the only safe fix is to not expose that full
 * class surface to pages we don't fully control -- just the chrome these
 * pages actually need, copied verbatim from the same source.
 *
 * Every value below must stay in sync with woodapplez.css by hand if that
 * file's header/footer/nav section or :root tokens ever change.
 */

:root {
  --wa-ink:        #1d1d1f;
  --wa-body:       #26262a;
  --wa-grey:       #6e6e73;
  --wa-grey-light: #86868b;
  --wa-dim:        #a1a1a6;
  --wa-ground:     #f5f5f7;
  --wa-ground-alt: #fbfbfd;
  --wa-white:      #ffffff;
  --wa-black:      #000000;
  --wa-teal:       #0d6e6e;
  --wa-teal-hover: #08595a;
  --wa-teal-dark:  #5ec8c0;
  --wa-hairline:   rgba(0, 0, 0, 0.09);
  --wa-shadow:     0 1px 3px rgba(0, 0, 0, 0.07);

  --wa-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
             "Helvetica Neue", Helvetica, sans-serif;
  --wa-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wa-measure: 680px;
  --wa-column:  1020px;
}

a { color: var(--wa-teal); text-decoration: none; }
a:hover { color: var(--wa-teal-hover); text-decoration: underline; }

.wa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.wa-header__inner {
  max-width: var(--wa-column);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wa-logo { display: flex; align-items: center; gap: 9px; color: var(--wa-ink); }
.wa-logo:hover { color: var(--wa-ink); text-decoration: none; }
.wa-logo svg { display: block; flex: none; width: 24px; height: 24px; }
.wa-logo span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wa-nav { display: flex; align-items: center; gap: 26px; }
.wa-nav a { font-size: 12px; letter-spacing: -0.01em; color: var(--wa-ink); opacity: 0.85; }
.wa-nav a:hover { opacity: 1; color: var(--wa-ink); text-decoration: none; }
.wa-nav a[aria-current] { color: var(--wa-teal); opacity: 1; font-weight: 500; }

.wa-footer { background: var(--wa-ground); padding: 52px 22px 40px; color: var(--wa-grey); }
.wa-footer__inner { max-width: var(--wa-column); margin: 0 auto; }
.wa-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(0,0,0,0.12); }
.wa-footer__col { display: flex; flex-direction: column; gap: 10px; }
.wa-footer__col > p { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--wa-ink); }
.wa-footer a { font-size: 12px; color: var(--wa-grey); }
.wa-footer a:hover { color: var(--wa-grey); text-decoration: underline; }
.wa-footer__mark { display: block; width: 22px; height: 22px; margin: 22px 0 0; opacity: 0.45; }
.wa-footer__legal { margin: 16px 0 0; font-size: 12px; line-height: 1.5; max-width: 720px; text-wrap: pretty; }

.wa-archive { background: var(--wa-ground); padding: 64px 22px 90px; }
.wa-archive__inner { max-width: var(--wa-column); margin: 0 auto; }
.wa-archive h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
}

/*
 * The banded page header these pages now use (templates/page-static.php),
 * plus the ring field it contains. Without these, the ring's <circle>
 * elements fall back to the SVG default of a solid black fill and render
 * as one enormous black blob over the band -- the rings rely entirely on
 * CSS for their fill/stroke, by design (see wa-ring-cover.php's note about
 * never putting stroke-width in the markup).
 */
.wa-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wa-rings circle {
  vector-effect: non-scaling-stroke;
  fill: none;
}
.wa-rings--cover circle { stroke: rgba(255,255,255,0.15); stroke-width: 5; }
.wa-rings--hero  circle { stroke: rgba(255,255,255,0.11); stroke-width: 10; }
.wa-rings circle.wa-rings__core { fill: rgba(255,255,255,0.25); stroke: none; }
.wa-rings--hero circle.wa-rings__core { fill: rgba(255,255,255,0.17); }
.wa-rings--hero .wa-rings__core { display: none; }

.wa-pillar__band { position: relative; background: var(--wa-ink); color: var(--wa-ground); padding: 60px 44px 56px; overflow: hidden; }
.wa-pillar__band > .wa-rings { width: 150%; top: 14%; left: 74%; }
.wa-pillar__band-inner { position: relative; max-width: 720px; }
.wa-pillar__band h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.028em; font-weight: 600; color: #fff; }
.wa-pillar__band-lead { margin: 22px 0 0; font-size: 21px; line-height: 1.48; color: #b8b8bd; text-wrap: pretty; }
