/* Sail Tactician — shared page chrome for every page except the React homepage:
   the sticky top bar (.gbar) and the hero title block (.ghead).
   Tokens come from /colors_and_type.css. Class names are prefixed so they can't
   collide with a page's own .wrap or bare `header` rules. */

.gwrap { width: 100%; max-width: 760px; padding: 0 24px; margin: 0 auto; box-sizing: border-box; }
.gwrap--wide { max-width: 1040px; }

/* ---- Top bar ------------------------------------------------------------
   Mirrors the homepage's .snav in site/site.css value for value: the bar must
   not move, resize or change type as you go between the homepage and here. */
.gbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,17,28,.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline-soft);
  line-height: 1.55; /* the homepage body's; pages with their own body line-height must not move the bar */
}
.gbar .gwrap {
  max-width: 1320px; padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (max-width: 720px) { .gbar .gwrap { padding: 14px 20px; } }
.gbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 17px; font-weight: 400; letter-spacing: -.01em;
  color: var(--fg); text-decoration: none;
}
.gbar .brand:hover { color: var(--fg); text-decoration: none; }
.gbar .brand img { width: 28px; height: 28px; display: block; }
.gbar .brand b { font-weight: 800; }
.gbar .glinks { display: flex; align-items: center; gap: 28px; }
.gbar .glinks a {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--fg-2); text-decoration: none;
}
.gbar .glinks a:hover { color: var(--fg); text-decoration: none; }
.gbar .glinks a[aria-current="page"] { color: var(--fg); }
.gbar .gright { display: flex; align-items: center; gap: 10px; }
.gbar a.store, .gbar a.store:hover { color: #06111C; }

/* Phone menu — the same fold point and dropdown as the homepage's .snav. */
.gmenu {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--hairline); background: rgba(255,255,255,.04);
  color: var(--fg); cursor: pointer; padding: 0;
}
.gmenu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gmenu .i-close, .gbar.open .gmenu .i-open { display: none; }
.gbar.open .gmenu .i-close { display: block; }
@media (max-width: 900px) {
  .gbar .glinks { display: none; }
  .gmenu { display: inline-flex; }
  .gbar.open .glinks {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; padding: 8px 20px 16px;
    background: rgba(6,17,28,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline-soft); box-shadow: 0 24px 48px rgba(0,0,0,.5);
  }
  .gbar.open .glinks a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--hairline-soft); }
  .gbar.open .glinks a:last-child { border-bottom: none; }
}
@media (max-width: 420px) { .gbar .store { padding: 8px 12px; } }

/* App Store pill — the same as .store in site/site.css. */
.store {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F4F7FA; color: #06111C; border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  white-space: nowrap; text-decoration: none;
  transition: transform 80ms var(--ease-out), background 120ms var(--ease-out);
}
.store:hover { color: #06111C; background: #FFFFFF; text-decoration: none; }
.store:active { transform: scale(.98); }
.store svg { width: 18px; height: 18px; flex: none; }

/* ---- Hero title block ---------------------------------------------------- */
.ghead {
  position: relative; isolation: isolate;
  padding: 72px 0 40px;
  background: url("/assets/hero-bg.png") center / cover no-repeat, var(--brand-deep);
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--font-body);
}
.ghead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,17,28,.35) 0%, rgba(6,17,28,.8) 65%, var(--ground) 100%);
}
.crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 18px; }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: none; }
.eyebrow {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700;
  font-size: 13px; letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--eyebrow); margin: 0 0 12px;
}
.ghead h1 {
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: var(--tr-tight);
  margin: 0 0 16px; text-wrap: balance; color: var(--fg);
}
.dek { font-size: 1.1875rem; line-height: 1.5; color: var(--fg-2); margin: 0 0 22px; max-width: 640px; }
.ghead .dek:last-child { margin-bottom: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--fg-3); }
.byline b { color: var(--fg-2); font-weight: 600; }

@media (max-width: 560px) {
  .gwrap { padding: 0 16px; }
  .ghead { padding: 48px 0 32px; }
}
