/* ==========================================================================
   GTX — site styles
   Tokens first. Change the palette in one place; everything else follows.
   ========================================================================== */

:root {
  /* Palette and type live in brand.css — this file only holds layout tokens. */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom of a short page. */
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--brand-deep); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Text for screen readers only, such as "(opens in a new tab)" on links
   eleventy.config.js marks. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.eyebrow a { color: inherit; }

.lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .7rem 1.5rem;
  border: 2px solid var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--brand-primary); }
.btn--ghost:hover { background: var(--brand-primary); color: #fff; }

.btn--light { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.btnrow { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  border-bottom: 3px solid var(--brand-metal);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: .625rem;
}
.brand { display: block; }
/* The logo's tagline is its smallest text: 180px wide keeps it legible on a
   phone without crowding the nav. */
.brand img { display: block; width: clamp(180px, 22vw, 240px); height: auto; }
.masthead__link {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; color: var(--ink);
  padding: .5rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.masthead__link:hover,
.masthead__link[aria-current="page"] { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

.navtoggle {
  display: none;
  align-items: center; gap: .5rem;
  background: none; border: 0; padding: .5rem;
  font-family: var(--display); font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink); cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); content: "";
}
.navtoggle__bars { position: relative; }
.navtoggle__bars::before { position: absolute; top: -7px; }
.navtoggle__bars::after  { position: absolute; top: 7px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__item > a {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; color: var(--ink);
  padding: .5rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.nav__item > a:hover,
.nav__item > a[aria-current="page"] { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

.subnav {
  position: absolute; top: 100%; left: -1rem;
  min-width: 230px; margin: 0; padding: .5rem 0;
  list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-top: 2px solid var(--brand-primary);
  box-shadow: 0 12px 28px rgb(16 26 36 / .12);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a {
  display: block; padding: .5rem 1rem;
  text-decoration: none; color: var(--ink); font-size: .95rem;
}
.subnav a:hover { background: var(--paper-alt); color: var(--brand-primary); }

.nav__phone { margin: 0; font-family: var(--mono); font-size: .85rem; }
.nav__phone a { color: var(--ink); text-decoration: none; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  background: var(--brand-deep);
  color: #fff;
  background-image: linear-gradient(160deg, rgb(11 34 51 / .93), rgb(11 34 51 / .99));
  background-size: cover;
  background-position: center;
}
.hero__inner { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem); }
.hero .eyebrow { color: rgb(255 255 255 / .6); }
.hero__title { color: #fff; margin-bottom: .35em; }
.hero__lead {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
  color: rgb(255 255 255 / .82);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .45); }
.hero .btn--ghost:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

/* The ticker: a form-guide strip of the numbers that matter. */
.ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / .16);
  background: rgb(0 0 0 / .18);
}
.ticker > div {
  padding: 1.25rem var(--gutter);
  border-right: 1px solid rgb(255 255 255 / .1);
}
.ticker > div:last-child { border-right: 0; }
.ticker dt {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgb(255 255 255 / .55); margin-bottom: .3rem;
}
.ticker dd {
  margin: 0;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  color: var(--brand-metal);
}

/* --- Sections ------------------------------------------------------------- */

.section { padding-block: var(--band); }
.section--alt { background: var(--paper-alt); }

.section__title {
  margin-bottom: 2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--brand-primary);
  display: inline-block;
}

.pagehead {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

/* --- Cards ---------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .15s ease;
}
.card:hover { background: var(--paper-alt); color: inherit; }
.card h3 { margin: 0; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.card__more {
  margin-top: auto; padding-top: .75rem;
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary);
}

/* --- Split + checklist ---------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  padding: .75rem 0 .75rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 1.25rem;
  width: 12px; height: 12px;
  background: var(--brand-primary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* --- Prose ---------------------------------------------------------------- */

.prose { padding-block: clamp(2.5rem, 5vw, 4rem); max-width: 74ch; }
.prose h2 { margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand-metal);
  background: var(--paper-alt);
  color: var(--ink-soft);
}
.prose figure { margin: 2.5rem 0; }
.prose figcaption {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-soft); margin-top: .6rem;
}
.prose img { border: 1px solid var(--line); }

/* --- Manual --------------------------------------------------------------- */

.manual {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
/* Sticks below the masthead: its 84px min-height plus 3px border. */
.manual__nav {
  position: sticky; top: calc(87px + 1rem);
  max-height: calc(100vh - 87px - 2rem); overflow-y: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: .92rem;
}
.manual__nav summary {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  cursor: pointer; padding: .35rem 0;
}
.manual__nav ul { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .75rem; border-left: 1px solid var(--line); }
.manual__nav a { display: block; padding: .2rem 0; text-decoration: none; color: var(--ink-soft); }
.manual__nav a:hover { color: var(--brand-primary); }
.manual__nav a[aria-current="page"] { color: var(--brand-primary); font-weight: 500; }
.manual__nav .manual__single { font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: .35rem 0; color: var(--ink); }
.manual__nav .manual__single:hover, .manual__nav .manual__single[aria-current="page"] { color: var(--brand-primary); }
.pagehead--compact { padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem); }
.pagehead--compact .eyebrow { margin-bottom: 1rem; }
.pagehead--compact h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin: 0; }
/* Manual search: beside the title on wide screens, under it on phones. */
.manual-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2.5rem; }
.manual-search { flex: 0 1 22rem; min-width: min(100%, 16rem); }
/* Until Pagefind's script defines it (never, without JavaScript). */
pagefind-searchbox:not(:defined) { display: none; }
/* Pagefind's Component UI reads these; mapping them to the brand tokens
   carries light and dark mode with no theme attribute. */
.manual-search {
  --pf-text: var(--ink);
  --pf-text-secondary: var(--ink-soft);
  --pf-text-muted: var(--ink-soft);
  --pf-background: var(--paper);
  --pf-border: var(--line);
  --pf-border-focus: var(--brand-primary);
  --pf-hover: var(--paper-alt);
  --pf-skeleton: var(--paper-alt);
  --pf-skeleton-shine: var(--line);
  --pf-mark: var(--brand-primary);
  --pf-outline-focus: var(--brand-primary);
  --pf-font: var(--body);
  --pf-input-height: 44px;
  --pf-border-radius: var(--radius);
  --pf-searchbox-max-width: 100%;
  --pf-dropdown-z-index: 40;
}
.manual__body { min-width: 0; }
/* Screenshots and icons sit inline, as in the original pages: an icon
   beside the heading it labels, a button beside its explanation. */
.manual__body img { display: inline-block; vertical-align: middle; border: 0; }

/* A row of columns from the old layout tables: text beside its screenshot.
   An image-only column keeps its natural width and scales down when the row
   is too tight; text columns share the rest equally, so the rows of one
   table line up. A tight row takes width from text and image alike. */
.manual__body { container-type: inline-size; max-width: none; }
.m-cols { display: flex; gap: 1.25rem; align-items: flex-start; margin-block: 1rem; }
.m-col { flex: 1 1 14rem; min-width: min(7rem, 100%); overflow-wrap: anywhere; }
.m-col--fit { flex: 0 1 auto; min-width: 0; }
/* Rows that sat beside one tall image: spread over its height, as the old
   table did, so each row stays level with the part of the image it labels. */
.m-col--rows { align-self: stretch; display: flex; flex-direction: column; justify-content: space-around; }
.m-col--rows > .m-cols { margin-block: .35rem; }
.m-col--rows > p { margin: 0; line-height: 1.25; }
.m-col > :first-child { margin-top: 0; }
.m-col > :last-child { margin-bottom: 0; }
/* A heading with its icon at the far end of the row. */
.m-cols--head { align-items: center; margin-top: 2.25em; }
.m-cols--head h2 { margin: 0; }
/* On a phone, rows wrap rather than squeeze: an icon stays beside its text
   and a wide screenshot drops below it. A heading row never wraps. */
@container (max-width: 34rem) {
  .m-cols { flex-wrap: wrap; }
  .m-col:not(.m-col--fit) { flex-basis: 15rem; }
  .m-cols--head { flex-wrap: nowrap; }
  .m-cols--head .m-col:not(.m-col--fit) { flex-basis: 0; min-width: 0; }
  .m-left, .m-right { max-width: 45%; }
  .m-float--wide { float: none; display: block; margin: 0 0 .75rem; max-width: 100%; }
}
.m-box { border: 2px solid var(--brand-primary); padding: 1rem 1.25rem; margin-block: 1rem; }
.m-left { float: left; margin: .25rem 1rem .5rem 0; }
.m-right { float: right; margin: .25rem 0 .5rem 1rem; }
/* An image alone in its column has nothing to float beside. */
.m-col--fit .m-left, .m-col--fit .m-right { float: none; margin: 0; max-width: 100%; }
.manual__body .m-cols, .manual__body details { clear: both; }
.manual__body h2 { font-size: 1.5rem; }
/* A wide screenshot opens at full size. */
.m-zoom { display: block; width: fit-content; max-width: 100%; cursor: zoom-in; }

/* Annotated screenshots: the callouts are links laid over the image in
   percentages, so they scale with it. The same links are listed below. */
.m-map { margin: 1.5rem 0; }
.m-map__img { position: relative; }
.m-map__img img { width: 100%; }
.m-map__spot { position: absolute; border-radius: 2px; }
.m-map__spot:hover { outline: 2px solid var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, transparent); }
.m-map figcaption { font-family: var(--body); font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; }
.m-map figcaption ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: .25rem 0 0; }

/* A screenshot cut into slices and reassembled in a table. */
.m-slices { overflow-x: auto; margin-block: 1rem; }
.manual__body .m-slices table { border-collapse: collapse; margin: 0; }
.manual__body .m-slices td { border: 0; padding: 0; line-height: 0; }
.manual__body .m-slices img { display: block; }
/* A slice's rollover: the labelled version the old script swapped in. */
.m-slices td > a, .m-slices td > span { display: block; position: relative; }
.m-slices .m-roll { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.m-slices :is(a, span):is(:hover, :focus-visible) > .m-roll { opacity: 1; }

.manual__body details { border-bottom: 1px solid var(--line); padding-block: .75rem; }
.manual__body summary { cursor: pointer; font-weight: 500; }
.manual__body table { border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; }
/* Markdown needs a header row; the manual's tables have none, so the
   converter leaves it empty and it is hidden. */
.manual__body thead:not(:has(th:not(:empty))) { display: none; }
.manual__body th, .manual__body td { border: 1px solid var(--line); padding: .25rem .6rem; line-height: 1.4; text-align: left; vertical-align: top; }
/* The A-Z index: a row of letters to jump by, then each letter's entries
   in columns. */
.m-letters { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.m-letters a { text-decoration: none; }
.manual__body .m-index { list-style: none; padding: 0; columns: 22rem; column-gap: 2.5rem; }
.m-index li { break-inside: avoid; padding-block: .15rem; }
/* A video tutorial: full column width, keeping its aspect ratio. */
.m-video { margin: 0 0 2rem; }
.m-video video { display: block; width: 100%; height: auto; background: var(--paper-alt); }
.m-video figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; }
.manual__pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}

/* --- Post lists ----------------------------------------------------------- */

.postlist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.postlist li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.postlist time {
  display: block;
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .2rem;
}
.postlist a {
  font-family: var(--display); font-size: 1.4rem; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.postlist a:hover { color: var(--brand-primary); }
.postlist p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.postlist--full { margin-bottom: 0; }

.backlink {
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
}

/* --- CTA band ------------------------------------------------------------- */

.cta { background: var(--brand-deep); color: #fff; padding-block: clamp(2.75rem, 6vw, 4rem); }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgb(255 255 255 / .78); margin: 0; max-width: 52ch; }
.cta__inner {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  align-items: center; justify-content: space-between;
}

/* --- Contact -------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact__aside {
  background: var(--paper-alt);
  padding: 1.75rem;
  border-top: 3px solid var(--brand-primary);
}
.contact__aside h2 { font-size: 1.5rem; }
address { font-style: normal; margin-bottom: 1rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .35rem;
}
.field .opt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  color: var(--ink-soft); text-transform: uppercase;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--brand-primary); background: #fff6f7; }

.err { color: var(--brand-primary-dark); font-size: .88rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile renders its own iframe at a fixed size; this just gives it room
   and stops the layout jumping while it loads. */
.field--turnstile { min-height: 74px; }
.cf-turnstile { color-scheme: light dark; }

.formstatus { margin-top: 1rem; font-weight: 500; }
.formstatus[data-state="ok"] { color: var(--ok); }
.formstatus[data-state="error"] { color: var(--brand-primary-dark); }

.fineprint { font-size: .88rem; color: var(--ink-soft); }

/* --- Footer --------------------------------------------------------------- */

.footer { background: var(--brand-deep); color: rgb(255 255 255 / .74); }
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 2.5rem;
}
.footer__head {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em;
  color: #fff; margin-bottom: .9rem;
}
.footer__mark { margin: 0 0 .9rem; }
.footer__mark img { width: 262px; height: auto; }

.social { display: flex; gap: .6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rev-line);
  border-radius: var(--radius);
  color: var(--rev-text);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.social a:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }
.social svg { width: 19px; height: 19px; }
.footer__note { font-size: .92rem; max-width: 24ch; }
.footer a { color: rgb(255 255 255 / .74); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .45rem; font-size: .95rem; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: 1.25rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
}
.footer__base p { margin: 0; }

/* Theme switch: System, Light or Dark. Hidden until site.js shows it. */
.theme { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.theme[hidden] { display: none; }
.theme label { position: relative; }
.theme input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.theme label span {
  display: block;
  padding: .3rem .6rem;
  border: 1px solid var(--rev-line);
  border-radius: var(--radius);
  color: var(--rev-muted);
}
.theme input:hover + span { color: var(--rev-text); }
.theme input:checked + span { background: var(--rev-line); color: var(--rev-text); border-color: var(--rev-muted); }
.theme input:focus-visible + span { outline: 2px solid var(--rev-text); outline-offset: 2px; }

/* --- Landing -------------------------------------------------------------- */

.landing { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 40rem; }
.landing .lead { max-width: none; color: var(--ink); }
.landing__links { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.landing__links a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-metal);
  border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
}
.landing__links a:hover { background: var(--paper-alt); }

/* --- Mobile --------------------------------------------------------------- */

@media (max-width: 860px) {
  .masthead__inner { flex-wrap: wrap; min-height: 64px; }
  .navtoggle { display: inline-flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1rem;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item > a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__item > a[aria-current="page"] { border-bottom-color: var(--brand-primary); }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: var(--paper-alt);
    padding: .25rem 0 .5rem;
  }
  .subnav a { padding-left: 1rem; }
  .nav__phone { padding-top: 1rem; }
  .contact { grid-template-columns: 1fr; }
  .manual { grid-template-columns: 1fr; gap: 0; }
  /* Page text first on phones; the contents follow it. */
  .manual__nav { order: 2; position: static; max-height: none; padding-block: 0 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }  .cta__inner { align-items: flex-start; }
}
