/* shell.css: small site-wide pieces added 2026-11-17 (skip link, screen-reader text, trade link rows),
   plus the few layout rules that used to match "body > X" and now need to match "body > main > X"
   on the hand-built pages, whose content sits inside <main id="main" class="hand-main">. Loaded last on every page. */

/* Skip link: off-screen until focused by keyboard, then a gold-on-navy pill at the top left. */
.skip-link{position:fixed;top:.75rem;left:.75rem;z-index:2147483647;padding:.7rem 1.2rem;border-radius:999px;background:#0B1528;color:#D4B874;font:600 .95rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;box-shadow:0 0 0 2px #D4B874,0 8px 24px rgba(0,0,0,.35);transform:translateY(-200%);opacity:0;pointer-events:none;transition:none}
.skip-link:focus,.skip-link:focus-visible{transform:none;opacity:1;pointer-events:auto;outline:none}

/* Text for screen readers only. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* "Websites by trade:" row under the demo builds (homepage and small-business page). */
.trade-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:.1rem 1.1rem;max-width:1100px;margin:1.6rem auto 0;padding:0 1rem;font-size:.92rem;line-height:1.4;text-align:center}
.trade-row-k{color:#7C6522;font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:.75rem;margin-right:.2rem}
.trade-row a{color:#1C2742;text-decoration:none;padding:.2rem 0;transition:color .2s}
@media (hover:hover){.trade-row a:hover{color:#7C6522;text-decoration:underline;text-underline-offset:3px}}
.trade-row a:focus-visible{outline:2px solid #7C6522;outline-offset:2px}
#work .wrap > .trade-row{order:99}   /* small-business: on phones that box is a flex column with numbered blocks; keep the row last */
@media (max-width:900px),(pointer:coarse){.trade-row{gap:0 1rem}.trade-row a{display:inline-flex;align-items:center;min-height:40px;padding:0}.trade-row-k{flex-basis:100%;margin:0 0 .2rem}}

/* Footer group titles became <p class="sf-h"> (they were <h2>, which made every page end with three unrelated
   headings). Keep the heading settings they had (line height, balanced wrapping, font axes), so the footer looks the same. */
p.sf-h{line-height:1.02;text-wrap:balance;font-variation-settings:"SOFT" 0,"WONK" 0}

/* Layout rules from atlas-theme.css and wow-pages.css that only match direct children of <body> ("body > X",
   "body:has(> X)", ".wp-about > X"). The hand-built pages now hold X inside <main class="hand-main">, so each rule
   is repeated here for "main > X", in its original order. :where() keeps every copy's specificity identical to the
   original. If one of the original rules changes, change its copy here too. */
/* atlas-theme.css section 7 */
body:has(> :where(main.hand-main) > .page-hero){background:var(--t-ivory)}
body > :where(main.hand-main) > .page-hero{position:relative;background:#0B1528;box-shadow:0 0 0 100vmax #0B1528;clip-path:inset(0 -100vmax);margin-bottom:3.5rem}
body:has(> :where(main.hand-main) > .page-hero) > footer{background:#080F1E}
body:has(> :where(main.hand-main) > .page-hero) .mobile-menu{background:rgba(11,21,40,.97)}
body:has(> :where(main.hand-main) > .page-hero) > nav:not(.scrolled){background:rgba(11,21,40,.94)}
/* atlas-theme.css section 9 */
body:has(> :where(main.hand-main) > .page-hero) > footer{background:var(--g-deep)}
body > :where(main.hand-main) > .page-hero{background:var(--g-mid);box-shadow:0 0 0 100vmax var(--g-mid)}
body:has(> :where(main.hand-main) > .page-hero) .mobile-menu{background:rgba(10,19,36,.98)}
/* atlas-theme.css, wide screens */
@media (min-width:901px){
  html body>:where(main.hand-main)>.page-hero,html body>:where(main.hand-main)>.product-hero{padding-left:var(--pad-x)!important;padding-right:var(--pad-x)!important}
  html body>:where(main.hand-main)>.page-hero{padding-top:7.4rem;padding-bottom:5rem}
  html body>:where(main.hand-main)>section.hero:first-of-type,html body>:where(main.hand-main)>.hero{padding-top:8.4rem}
}
/* atlas-theme.css ".tone-accent + footer": the footer now follows <main>, so match a main whose last block is a .tone-accent band */
:where(main.hand-main:has(> .tone-accent:last-child)) + footer.tone-dark{border-top-color:var(--t-band-rule)}
/* wow-pages.css */
body > :where(main.hand-main) > .page-hero .tag{border-radius:999px;padding:.45rem 1.1rem}
body > :where(main.hand-main) > .page-hero{box-shadow:none;clip-path:none;border-image:linear-gradient(var(--g-mid),var(--g-mid)) fill 0 / 0 / 0 100vmax}
:is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero,:is(.wp-about,.wp-diff) > :where(main.hand-main) > .content{max-width:1240px}
@media (min-width:901px){
  :is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero,:is(.wp-about,.wp-diff) > :where(main.hand-main) > .content{max-width:none;padding-left:var(--pad-x);padding-right:var(--pad-x)}
  :is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);column-gap:clamp(3rem,6vw,6rem);align-items:start;padding-top:8rem;padding-bottom:5.5rem}
  :is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero > :not(.wp-load,.wp-chapters){grid-column:1}
  :is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero .tag{justify-self:start}
  :is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero > :is(.wp-load,.wp-chapters){grid-column:2;grid-row:1 / span 3;align-self:center}
}
:is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero .lead{font-size:1.12rem;color:#C2CADB}
@media (max-width:900px){
  :is(.wp-about,.wp-diff) > :where(main.hand-main) > .page-hero{padding-left:1.2rem;padding-right:1.2rem}
}

/* ===== Finish layer, 2026-11-18 (hand-made polish). Small, site-wide, no words and no layout structure changed. ===== */
/* form caret and ticks in the brand colour instead of the browser's blue */
:root{accent-color:#D4B874;caret-color:#D4B874}
/* one curve for every hover, press and focus change (the scroll and hero animations already use it and are untouched) */
:where(a,button,summary,label,input,select,textarea,[role="button"]),
:where(a,button,summary,label,[role="button"])::before,
:where(a,button,summary,label,[role="button"])::after{transition-timing-function:cubic-bezier(.16,1,.3,1)!important}
/* digits that count up or sit in a row keep one width, so they do not jitter */
.num,.val,.amt,.tl-num,.proof-v,.sr-v,output{font-variant-numeric:tabular-nums lining-nums}
/* the top-bar button uses the same letter spacing as every other gold button */
html body a.nav-cta{letter-spacing:.09em}
/* trade pages: answers stay a comfortable line length on tablets */
@media (min-width:701px) and (max-width:1100px){section#questions .pain p{max-width:62ch}}

/* ==== SEVEN-ITEM MENU (2026-11-19) START. The top menu gained a seventh item (AI Receptionist). With the old spacing
   (about 40 to 57 px between words) the row no longer fitted beside the logo and the button: from 1101 to 1240 px wide
   the button was pushed off the right edge.
   Now the row takes exactly the room between the logo and the button and shares it out evenly: the gap between two
   words, the gap from the logo to the first word and the gap from the last word to the button are all the same
   (about 26 to 39 px with the fonts of 2026-11-19, measured at nine widths on nine page types). Because the gaps are
   shared out, not fixed, a wider or narrower typeface cannot push the button off the bar; the gaps just change.
   Browsers without :has() get fixed, tighter padding that fits with the 2026-11-19 fonts.
   The gold line under the current page follows the word. To undo: delete from START to END (and take the seventh
   item out of MENU in site-wide/post_build.py). ==== */
@media (min-width:1101px){
  html body nav .nav-center{gap:0!important}
  html body nav .nav-center .nav-link{padding-left:12px;padding-right:12px}
  html body nav .nav-center .nav-link.active::after{left:12px;right:12px}
  html body > nav:has(> .nav-center){grid-template-columns:max-content minmax(0,1fr) max-content;column-gap:0}
  html body > nav:has(> .nav-center) > .nav-center{justify-self:stretch;min-width:0;justify-content:space-evenly}
  html body > nav:has(> .nav-center) > .nav-center .nav-link{padding-left:0;padding-right:0}
  html body > nav:has(> .nav-center) > .nav-center .nav-link.active::after{left:0;right:0}
}
/* ==== SEVEN-ITEM MENU (2026-11-19) END ==== */

/* ==== LOGO ROOM IN THE MENU (2026-11-19) START. On wide computers the gap from the logo to the first menu word was
   the same as the gap between two menu words, so the logo read as one more menu word. The logo now gets extra room
   and the menu words are a touch smaller, so the gaps between words stay about what they were.
   Undo: delete from START to END. ==== */
@media (min-width:1241px){
  html body > nav:has(> .nav-center) > .nav-center{padding-left:clamp(.7rem,1.1vw,1.2rem)}
  html body > nav:has(> .nav-center) > .nav-center .nav-link{font-size:.78rem}
}
/* ==== LOGO ROOM IN THE MENU (2026-11-19) END ==== */
