/* Public website layout. Match the trail network frame: 1120px including
   20px side gutters. Keep text measures separate from the page frame. */
:root {
  --site-max-width: 1120px;
  --site-gutter: 20px;
  --site-content-width: calc(var(--site-max-width) - 2 * var(--site-gutter));
  --site-reading-width: 68ch;
}

/* Neutral placeholders never imply a verdict. Geometry follows the trail hero
   and tidal chart, with the same 1120px frame as the finished page. */
.navigation-loading{position:fixed;inset:0;z-index:10000;overflow:auto;background:#191f1a;color:#f3f6f2;font-family:'National Park',sans-serif}
.navigation-loading-inner{box-sizing:border-box;max-width:1120px;margin:0 auto;padding:64px 20px 40px}
.navigation-loading-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}
.navigation-loading p{font-size:16px;margin:0}
.navigation-skeleton>div{position:relative;overflow:hidden;background:rgba(243,246,242,.07);border-radius:8px;margin-bottom:20px}
.navigation-skeleton>div:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(243,246,242,.07),transparent);transform:translateX(-100%);animation:navigation-shimmer 1.6s linear infinite}
.navigation-skeleton-title{height:56px;max-width:560px}
.navigation-skeleton-meta{height:18px;max-width:280px}
.navigation-skeleton-verdict{height:76px;max-width:360px;margin-top:40px}
.navigation-skeleton-chart{height:300px;margin-top:32px}
.navigation-loading button{min-height:44px;padding:10px 16px;border:1px solid rgba(243,246,242,.25);border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer;flex-shrink:0}
.navigation-loading button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.navigation-loading-paused .navigation-skeleton>div:after{animation-play-state:paused}
@keyframes navigation-shimmer{to{transform:translateX(100%)}}
@media(max-width:600px){.navigation-loading-inner{padding-top:40px}.navigation-skeleton-title{height:44px;width:85%}.navigation-skeleton-chart{height:260px}}
@media(prefers-reduced-motion:reduce){.navigation-skeleton>div:after{animation:none;display:none}}

.navigation-skeleton-row{height:76px}

/* Browser surfaces, once for every page that loads this file. Selection and caret
   carry the brand green; the selection is translucent so selected text keeps its
   own color and stays readable on every surface. Underlines sit clear of
   descenders. */
::selection{background:rgba(65,212,122,.28);color:#f3f6f2}
input,textarea{caret-color:#41d47a}
/* Default links, including visited links, use the brand color. Component rules
   can still supply their own navigation, card, or button colors. */
a{color:#41d47a;text-underline-offset:.18em}

/* Press feedback. Hover alone says nothing on a phone, so the things people tap
   answer the press: a short scale-down, never below .97, and none at all under
   reduced motion. */
@media(prefers-reduced-motion:no-preference){
  .btn:active,.btn-primary:active,.btn-secondary:active,.applink:active,a.button:active,.nav-cta:active,.store-badges a:active img,a.status-row:active,button:not(:disabled):active{transform:scale(.98);transition:transform .1s cubic-bezier(.23,1,.32,1)}
}

/* The site footer (landing/shared/siteFooter.js), styled once. Colors are the
   shared muted/faint/hairline values every page defines, written out so the
   footer reads the same whatever a page names its custom properties. Pages style
   bare nav, p and a for their own purposes (the homepage's sticky header is a
   plain `nav` rule), so every property those rules set is reset here, and the
   selectors carry two classes to outrank page rules like `main a`. */
.site-footer{box-sizing:border-box;border-top:1px solid rgba(240,248,236,.09);margin-top:52px;padding:24px 0 44px;font:12px/1.6 'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;color:#637969;text-align:left}
.site-footer .site-footer-lead,.site-footer .site-footer-note{margin:0;padding:0;max-width:none;font:inherit;color:inherit}
.site-footer .site-footer-lead{margin-bottom:10px}
.site-footer .site-footer-lead a{color:#8a9887}
.site-footer .site-footer-note{margin-top:14px}
.site-footer .site-footer-links{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:6px 22px;margin:0;padding:0;position:static;z-index:auto;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0}
.site-footer .site-footer-links a{display:inline;margin:0;padding:0;border:0;border-radius:0;min-height:0;background:none;font:inherit;color:#8a9887;text-decoration:none}
.site-footer .site-footer-links a:hover{color:#f3f6f2;text-decoration:underline}
.site-footer .site-footer-links a:focus-visible{outline:2px solid #41d47a;outline-offset:3px;border-radius:2px}
@media(max-width:600px){.site-footer .site-footer-links a{display:inline-block;padding:6px 0}}

/* Mobile spatial system: 20px frame, 20px card inset, 16/24px group rhythm.
   Keep official badge proportions while giving both stores equal layout slots. */
@media(max-width:680px){
  html body .topbar{min-height:76px;padding:16px 0;gap:16px}
  html body .brand{flex-shrink:0}
  html body .applinks{gap:8px;min-width:0;flex-wrap:nowrap}
  html body .applink{min-height:44px;justify-content:center}
  html body .store-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px;width:100%;max-width:360px}
  html body .store-badges a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px}
  html body .store-badges img{display:block;width:auto;max-width:100%;height:clamp(32px,11vw,44px)}
  html body .site-footer{margin-top:40px;padding-top:24px;padding-bottom:32px}
  html body .site-footer .site-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:start}
  html body .site-footer .site-footer-links a{display:flex;align-items:center;min-height:44px;padding:8px 0}
}
@media(max-width:360px){html body .applink{padding-left:8px;padding-right:8px;font-size:11px;gap:5px}html body .topbar{gap:8px}html body .brand{gap:8px}html body .brand b{font-size:16px}}

/* Preferences change the material, not the brand or the verdict palette.
   These rules outrank each page's local header styles, including mobile menus. */
@media(prefers-reduced-transparency:reduce), (prefers-contrast:more){
  html body>nav,html body .nav-links,html body .subnav{
    background:#191f1a;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}
@media(prefers-contrast:more){
  html body>nav,html body .nav-links,html body .subnav{border-color:#8a9887}
  html body .status-loc,html body .v2-proof>p,html body .site-footer{color:#8a9887}
  html body button:not(:disabled),html body input,html body select,html body textarea{border-color:#8a9887}
  html body :focus-visible{outline:2px solid #f3f6f2;outline-offset:3px}
}
