/*
  The site's plain pages, made by docs/pages/make-pages.py: the eight service pages, About, the legal pages and the
  sitemap (Industries and the quiz once they are written). A Night header (the same block as /services and /work) with the title and a line, then, where
  a page has more, a white band. The legal pages are hand-made once written; their text styles are the .legal block at the
  end. Load after type.css, nav.css and blog.css, which supply the page width and gutters, the colors (--night, --fg,
  --muted), the reset, the focus rings and the nav's current-page rule. No motion.
*/

/* ── Night header ── */
.page-hero { padding-top: 112px; padding-bottom: 56px; }
@media (min-width: 768px) { .page-hero { padding-top: 140px; padding-bottom: 72px; } }
@media (min-width: 1250px) { .page-hero { padding-top: 160px; padding-bottom: 88px; } }
.page-hero__title { color: var(--fg); }
.page-hero__intro { max-width: 34em; margin-top: 20px; color: var(--muted); }
@media (min-width: 768px) { .page-hero__intro { margin-top: 24px; } }

/* ── White band ── */
.page-body { padding-top: 56px; padding-bottom: 80px; }
@media (min-width: 768px) { .page-body { padding-top: 80px; padding-bottom: 112px; } }
@media (min-width: 1250px) { .page-body { padding-top: 112px; padding-bottom: 144px; } }
.page-body__title { margin-bottom: 20px; color: var(--night); }
@media (min-width: 768px) { .page-body__title { margin-bottom: 28px; } }

/* What a service covers: plain lines, as on /services. The nav's Local SEO pills land on three of them, clear of the bar. */
.page-list { display: grid; gap: 12px; font-weight: 500; color: var(--night); }
.page-list li { scroll-margin-top: 16px; }

/* ── The sitemap: its groups in columns, one on a phone, two from 768 px, three from 1250 px ── */
.sitemap { display: grid; gap: 40px; }
@media (min-width: 768px) { .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 56px; } }
@media (min-width: 1250px) { .sitemap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sitemap__title { margin-bottom: 16px; color: var(--night); }
/* Each link a 40 px row or taller (8 px above and below its line), so the rows are tap targets, not 24 px lines 10 px apart */
.sitemap__list { display: grid; gap: 0; }
.sitemap__link { display: inline-block; padding-block: 8px; color: var(--night); text-decoration: underline; text-decoration-color: rgb(12 14 18 / 0.25); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sitemap__link:hover { text-decoration-color: currentColor; } }
/* A page's subpages sit under it, indented behind a hairline */
.sitemap__list--sub { margin: 10px 0 4px 2px; padding-left: 18px; border-left: 1px solid rgb(12 14 18 / 0.15); }

/* ── The legal pages (/privacy, /terms, /accessibility): long text in one column of about 70 characters, on the white band ──
   Type comes from the .t-* roles in the markup (h2 t-h3, h3 t-h4, text t-body, tables t-small); this file sets the
   spacing and the few things the roles do not. Links are blue and underlined, never color alone (WCAG 1.4.1). The "Last updated"
   date is the Night header's line under the title (.page-hero__intro with t-small), not part of this block. Sections are flat:
   numbered h2s, a part inside one led by a bold label in its first sentence, h3 only for the policy's regional rights and the cookie list ("Cookies in use"), whose script writes h4s under it. */
.legal { max-width: 46rem; }
.legal > * + * { margin-top: 16px; }
.legal > :first-child { margin-top: 0; }
.legal__h2 { margin-top: 56px; scroll-margin-top: 16px; color: var(--night); }
.legal__h3 { margin-top: 32px; color: var(--night); }
.legal > :is(.legal__h2, .legal__h3) + * { margin-top: 16px; }   /* the first line under a heading sits close to it */
.legal__list { padding-left: 1.5em; list-style: disc; }
.legal__list > li + li { margin-top: 10px; }
.legal strong, .legal__bold { font-weight: 600; }
.legal__nowrap { white-space: nowrap; }   /* a phone number never breaks at its hyphens */
.legal a { color: var(--anchor); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .legal a:hover { color: var(--anchor-deep); } }
.legal__notice { padding: 16px 20px; border: 2px solid var(--night); border-radius: 12px; }   /* the Terms' no-refund line */

/* A table that is wider than the screen scrolls inside its own box; the box is a named region with a tab stop so the keyboard can scroll it (axe: scrollable-region-focusable).
   Since 2026-11-11 the only table on a legal page is CookieScript's cookie list (.legal__cookies): the policy's retention and provider tables
   became lists. .legal__table-wrap and .legal__table stay for the next table a legal page needs (their print rules are in blog.css). */
.legal__table-wrap, .legal__cookies { overflow-x: auto; }
/* A table wider than the screen (the cookie list on a phone) shows a soft shadow at the edge that has more to scroll
   to, and none once you reach that end: two white covers that scroll with the table hide two shadows that stay put (2026-11-09) */
.legal__table-wrap, .legal__cookies {
  background:
    linear-gradient(to right, #fff 30%, rgb(255 255 255 / 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgb(255 255 255 / 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(12 14 18 / 0.16), rgb(12 14 18 / 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(12 14 18 / 0.16), rgb(12 14 18 / 0)) right center / 14px 100% no-repeat scroll;
}
.legal__table-wrap:focus-visible, .legal__cookies:focus-visible { outline: 2px solid var(--anchor); outline-offset: 2px; }
.legal__table { width: 100%; border-collapse: collapse; text-align: left; }
/* The cookie list is drawn by CookieScript's script: on a phone its four columns left the description a word wide and each row about a
   screen tall, so below 640 px it keeps a readable width and scrolls sideways in its box like the tables above */
@media (max-width: 639px) { .legal__cookies table { min-width: 48rem; } }
.legal__table--wide { min-width: 34rem; }
.legal__table th, .legal__table td { padding: 12px 20px 12px 0; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.legal__table :is(th, td):last-child { padding-right: 0; }
.legal__table thead th { border-bottom-color: var(--slate); font-weight: 600; }
.legal__table tbody th { font-weight: 400; }
/* CookieScript's live cookie list brings its own styles (Arial, a 12 px caption); this brings it into the page's type and keeps a wide table inside its box */
.legal__cookies ._CookieScriptReportPageTable { font-family: inherit; font-size: 0.9375rem; line-height: 1.5; }

/* The cookie list's fallback line shows until CookieScript's table is in the box, so a blocked script never leaves it empty; the
   script's group names (h4 under the h3 "Cookies in use") read as labels with room around them */
.legal__cookies-fallback { margin: 0; color: var(--slate); }
.legal__cookies:has(table) .legal__cookies-fallback { display: none; }
.legal__cookies h4 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 600; color: var(--night); }
.legal__cookies h4:first-of-type { margin-top: 0; }

/* ── About (/about): the person first. The hero has his portrait beside the line and the two ways to reach him; the body is four short
   blocks, two across from 1024 px ── */
.about-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .about-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; } }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.about-ghost { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 9999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); color: #fff; transition: background-color 150ms var(--ease-out), scale 160ms var(--ease-out); }
.about-ghost svg { width: 18px; height: 18px; }
.about-ghost:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .about-ghost:hover { background-color: rgb(255 255 255 / 0.08); } }
@media (max-width: 639.98px) { .about-actions { flex-direction: column; align-items: stretch; } .about-actions > a { justify-content: center; } }
.about-hero :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.about-portrait { margin: 0; max-width: 400px; }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 24px; object-fit: cover; }
.about-portrait figcaption { margin-top: 12px; color: var(--muted); }
.about-cols { display: grid; gap: 48px; }
@media (min-width: 1024px) { .about-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 80px; } }
.about-block { max-width: 36rem; color: var(--night); }
.about-block > p + p { margin-top: 12px; }
.about-steps, .about-results { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-steps { counter-reset: step; }
.about-steps li { position: relative; padding-left: 40px; counter-increment: step; }
.about-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9999px; background-color: rgb(37 99 235 / 0.1); color: var(--anchor); font-size: 0.875rem; font-weight: 600; }
.about-vary { margin-top: 12px; color: var(--slate); font-style: italic; }
.about-link { color: var(--anchor); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .about-link:hover { color: var(--anchor-deep); } }

