/* Shared header, footer, focus and button styles for every page (John Murdock, November 5, 2026: "have it follow the
   homepage a little more especially with links and stuff"). Copied from the home page's inline styles, which stay
   the reference; tools/check_chrome.py fails if a page's header or footer markup, or these computed styles, drift
   from the home page's. Loaded after styles.css on every page but the home page, which keeps its rules inline so
   its first screen needs no extra request. */
:root { --top-h: 64px; }
html { background: var(--plan); scroll-padding-top: calc(var(--top-h) + 1rem); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--draft); outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
.skip {
  position: absolute; left: 0.5rem; top: -100px; z-index: 20;
  padding: 0.75rem 1rem; background: var(--plan); color: #fff;
}
.skip:focus { top: 0.5rem; }
/* header: logo left, nav right, one row at every width; sticky at a fixed height */
.top {
  position: sticky; top: 0; z-index: 10;
  height: var(--top-h);
  background: var(--plan); color: #fff;
  border-bottom: 1px solid var(--rule-dark);
  --mark-field: #e9eae5; --mark-ink: #15222f; --mark-accent: #2c6489;
}
.top-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: var(--mark-size, 28px); height: var(--mark-size, 28px); margin-inline-end: 0.6em; flex: none; }
.brand-mark .mark-field { fill: var(--mark-field, #15222f); }
.brand-mark .mark-n { fill: var(--mark-ink, #e4ebf1); }
.brand-mark .mark-wedge { fill: var(--mark-accent, #79add2); }
.top-nav { display: flex; align-items: center; gap: 0.25rem; }
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.55rem;
  font-family: "Archivo", system-ui, sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.top-nav a:hover { color: var(--draft-lit); }
.top a:focus-visible, .hero-band a:focus-visible { outline-color: var(--draft-lit); }
@media (max-width: 26rem) {
  .mark { font-size: 0.86rem; letter-spacing: 0.1em; --mark-size: 26px; }
  .brand-mark { margin-inline-end: 0.45em; }
  .top-nav { gap: 0; }
  .top-nav a { font-size: 0.875rem; padding-inline: 0.45rem; }
}
/* below 352px the wordmark text gives way to the tile alone (the link keeps its name) */
@media (max-width: 21.99rem) {
  .mark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 48rem) {
  :root { --top-h: 76px; }
  .mark { font-size: 1.15rem; letter-spacing: 0.16em; --mark-size: 32px; }
  .top-nav { gap: 1rem; }
  .top-nav a { font-size: 1rem; }
}
.top { background: var(--plan); border-bottom-color: var(--rule-dark); color: #efe6d2; --mark-field: #efe6d2; --mark-ink: #15222f; --mark-accent: #79add2; }
.top .mark, .top-nav a { color: #efe6d2; }
.top-nav a:hover { color: #fff; }
.send {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0.8rem 1.6rem; margin-top: 0.5rem;
  font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 106;
  font-weight: 700; font-size: 1.05rem; color: #fff; background: var(--plan);
  border: 0; border-radius: 4px; cursor: pointer;
}
.send:hover { background: var(--draft); }
footer { background: var(--plan); color: var(--plan-soft); padding-block: 4rem 2.5rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem 4rem; }
.foot-brand { max-width: 24rem; }
.foot-mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Archivo", system-ui, sans-serif; font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-decoration: none;
  --mark-size: 40px; --mark-field: #e9eae5; --mark-ink: #15222f; --mark-accent: #79add2;
}
.foot-line { margin: 0.85rem 0 0; font-size: 1rem; line-height: 1.55; }
.foot-head {
  display: block; margin-bottom: 0.25rem;
  font-family: "Northwork Mono", ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.foot-links a { display: flex; align-items: center; min-height: 44px; color: #e4ebf1; text-decoration: none; font-size: 1rem; }
.foot-links a:hover, .foot-bottom a:hover { color: var(--draft-lit); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 2rem;
  margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule-dark);
  font-family: "Northwork Mono", ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.foot-legal { display: flex; gap: 1.5rem; }
.foot-bottom a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: inherit; text-decoration: none; }
.btn, .send { transition: transform 0.08s ease, background-color 0.15s ease; }
.btn:active, .send:active { transform: scale(0.97); }
/* the links drawn as buttons (How it works, "Talk with John"; the thanks page, "Read the record") takes the home page's button look */
.price-cta, .price-cta:visited, .mailto, .mailto:visited {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0.8rem 1.6rem;
  font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 106;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0; color: #fff; background: var(--plan);
  border: 0; border-radius: 4px; text-decoration: none; transition: transform 0.08s ease, background-color 0.15s ease;
}
.price-cta:hover, .price-cta:focus-visible, .mailto:hover, .mailto:focus-visible { color: #fff; background: var(--draft); }
.price-cta:active, .mailto:active { transform: scale(0.97); }

/* Links (John Murdock, November 5, 2026, relayed from HQ: "no underlined links of any kind in any state. Links are the
   light blue of 'on the homepage' on the market pages, not underlined, with a visible non-underline focus ring for
   keyboard users"). No link has an underline or a rule under it, visited, hovered, focused or pressed. On navy the
   link color is that light blue (#79add2, 6.8:1 on #15222f); on the light sections the same light blue measures
   about 2:1 against the paper, below AA's 4.5:1, so there text links take the darker blue of the same family
   (--draft, 5.6:1) and a heavier weight, so they still stand apart from the text without an underline. The focus
   ring is a 2px outline, light blue on navy and dark blue on paper. */
a, a:visited, a:hover, a:focus, a:active { text-decoration: none !important; }
main a:not(.mark):not(.foot-mark):not(.price-cta):not(.mailto):not(.v3-btn),
main a:not(.mark):not(.foot-mark):not(.price-cta):not(.mailto):not(.v3-btn):visited {
  text-decoration: none; color: var(--draft);
}
main p a:not([class]), main dd a:not([class]), main .more a { font-weight: 700; }
main a:not(.mark):not(.foot-mark):not(.price-cta):not(.mailto):not(.v3-btn):hover { color: var(--ink); }
.record a, .record a:visited, .band--dark a, .band--dark a:visited, .v3 a:not(.v3-btn), .hero-band a:not(.price-cta):not(.mailto) { color: #79add2 !important; }
.record a:hover, .band--dark a:hover, .v3 a:not(.v3-btn):hover { color: #fff !important; }
.foot-links a, .foot-links a:visited { color: #79add2; }
.foot-links a:hover, .foot-bottom a:hover { color: #fff; }
.record-head .meta a, .lede a, .legal a, .terms b a { border-bottom: 0 !important; }
a:focus-visible { outline: 2px solid var(--draft); outline-offset: 3px; }
.top a:focus-visible, footer a:focus-visible, .record a:focus-visible, .band--dark a:focus-visible, .v3 a:focus-visible, .hero-band a:focus-visible { outline-color: #79add2; }
/* the contact block: phone and email set large, each a 44px target */
.contact-direct { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin: 0 0 1.25rem; }
.contact .contact-direct { margin: 0 0 1.25rem; }
a.contact-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Archivo", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.75rem); letter-spacing: -0.01em; overflow-wrap: anywhere;
}
/* a phone number never breaks across lines */
a[href^="tel:"] { white-space: nowrap; }
/* inside a sentence (the thanks page): the body's size, still a 44px target */
a.contact-link--inline { display: inline-flex; min-height: 44px; font-size: inherit; letter-spacing: 0; vertical-align: middle; }

/* Markets menu: opens on hover or keyboard focus on desktop, on tap on touch screens (assets/nav.js).
   Positioned over the page, so opening it never moves anything (no layout shift). */
.nav-drop { position: relative; display: inline-flex; }
.top-nav > :last-child { margin-inline-end: -0.55rem; }
.top-nav .nav-drop-btn { gap: 0.35em; }
.nav-caret { width: 0.62em; height: 0.62em; transition: transform 0.15s; }
.nav-menu {
  position: absolute; top: 100%; right: 0; min-width: 13.5rem;
  display: flex; flex-direction: column; padding: 0.4rem 0;
  background: var(--plan); border: 1px solid var(--rule-dark); border-top: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0s linear 0.15s;
  z-index: 11;
}
.top-nav .nav-menu a { padding: 0 1rem; margin: 0; min-height: 44px; font-weight: 500; }
.top-nav .nav-menu a:hover, .top-nav .nav-menu a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.07); }
.top-nav .nav-menu .nav-all { border-top: 1px solid var(--rule-dark); margin-top: 0.3rem; padding-top: 0.15rem; font-weight: 600; }
@media (hover: hover) { .nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.15s, transform 0.15s; } .nav-drop:hover .nav-caret { transform: rotate(180deg); } }
.nav-drop:focus-within .nav-menu, .nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.15s, transform 0.15s; }
.nav-drop.open .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
@media (max-width: 26rem) { .top-nav > :last-child { margin-inline-end: -0.45rem; } .nav-menu { right: -0.45rem; } }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-caret { transition: none; } }
