/*
  shell.css — the app chrome: tokens, reset, topbar, nav, layout, buttons,
  banners, toasts, install UI.

  Hand-written (spec §0/§3.4). Custom properties on :root, system font stack, no
  preprocessor, no framework, no web font (a web font is a third-party origin
  and a render-blocking request — both barred by §9).

  ACCESSIBILITY CONTRACT (spec §10, WCAG 2.2 AA)
  -------------------------------------------------
  Light is the default (DPS club website cream palette). Dark is an explicit
  member choice via the theme toggle. Every foreground pair is checked against
  its real background; body copy is >=16px, focus is never colour-only and
  never removed, and every control keeps a 44px target. Club white-label
  colours (admin setting) will override brand tokens later with contrast checks.
*/

/* Light default — "clubhouse paper": cream canvas, warm-white surfaces,
   hunter-green chrome, and brass used as an accent rather than as body link
   ink. The green topbar anchors the supplied gold/olive wordmark art.

   ACCESSIBILITY (WCAG 2.2 AA) — light surfaces:
     --c-ink        on --c-bg        #22261e on #f7f2e9  13.8:1
     --c-ink-muted  on --c-bg        #5c594f on #f7f2e9   6.3:1
     --c-link       on --c-surface   #7a5c22 on #fffdf9   6.1:1
     --c-on-brand   on --c-brand     #ffffff on #35422a  10.7:1
   Focus is a 3px brass-ink ring with a 2px offset, never colour-only and never
   removed. */
:root {
  color-scheme: light;

  --c-brand: #35422a;
  --c-brand-dark: #232b1b;
  --c-brand-soft: #e6e9df;

  --c-bg: #f7f2e9;            /* page canvas */
  --c-bg-sunk: #efe8db;       /* wells, table heads, hover wash */
  --c-surface: #fffdf9;       /* cards, fields, drawer */
  --c-ink: #22261e;
  --c-ink-muted: #5c594f;
  --c-placeholder: #6f6a5f;
  --c-line: #e6dfd1;          /* hairlines */
  --c-border: #cfc6b6;        /* component hairline */
  --c-border-strong: #8a8070; /* 3.5:1 — form-control boundaries */
  --c-on-brand: #ffffff;

  --c-accent: #c4a35a;
  --c-link: #7a5c22;
  --c-link-hover: #654a18;

  --c-danger-ink: #8b1e1e;
  --c-danger-bg: #f8e8e8;
  --c-danger-border: #d4a0a0;
  --c-warn-ink: #6b4e0f;
  --c-warn-bg: #f7efd8;
  --c-warn-border: #d4c08a;
  --c-ok-ink: #1e4d2b;
  --c-ok-bg: #e4f0e7;
  --c-ok-border: #8fbf9c;

  --c-focus: #7a5c22;
  --c-focus-on-dark: #ffd166;
  --c-topbar-bg: color-mix(in srgb, #232b1b 96%, transparent);
  --c-topbar-ink: #f7f2e9;
  --c-topbar-line: color-mix(in srgb, var(--c-accent) 45%, transparent);
  --shadow-card: 0 1px 2px rgba(53, 44, 28, 0.05),
    0 14px 34px -22px rgba(53, 44, 28, 0.28);
  --shadow-card-hover: 0 2px 4px rgba(53, 44, 28, 0.06),
    0 22px 44px -24px rgba(53, 44, 28, 0.32);
}

/* Dark theme — previous range-side palette (member toggle). */
html[data-theme="dark"] {
  color-scheme: dark;

  --c-brand: #35422a;
  --c-brand-dark: #232b1b;
  --c-brand-soft: #161a15;

  --c-bg: #0d0f0c;
  --c-bg-sunk: #121412;
  --c-surface: #151815;
  --c-ink: #ffffff;
  --c-ink-muted: #c5c8c0;
  --c-placeholder: #8a9088;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-border: rgba(255, 255, 255, 0.16);
  --c-border-strong: rgba(255, 255, 255, 0.3);
  --c-on-brand: #ffffff;

  --c-accent: #c9a05a;
  --c-link: #dcc08e;
  --c-link-hover: #f0d7a6;

  --c-danger-ink: #ffc9c9;
  --c-danger-bg: #361a1a;
  --c-danger-border: #7a3b3b;
  --c-warn-ink: #ffe1a3;
  --c-warn-bg: #33290f;
  --c-warn-border: #7a6330;
  --c-ok-ink: #bfe3c8;
  --c-ok-bg: #17251a;
  --c-ok-border: #3f6b4b;

  --c-focus: #e7c98c;
  --c-focus-on-dark: #ffd166;
  --c-topbar-bg: rgba(13, 15, 12, 0.86);
  --c-topbar-ink: #ffffff;
  --c-topbar-line: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.55),
    0 10px 24px -18px rgba(0, 0, 0, 0.9);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.6),
    0 18px 36px -20px rgba(0, 0, 0, 0.95);
}

:root {
  /* Shared non-colour tokens (both themes). */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* Body copy is never below 16px (spec §6). The scale is deliberately narrow:
     four sizes, all legible, none decorative. */
  --font-body: 1rem;
  --font-small: 0.9375rem;
  --font-lead: 1.125rem;
  --font-title: 1.5rem;
  --font-display: 1.875rem;

  --radius: 14px;             /* cards, panels */
  --radius-sm: 10px;          /* inputs, small chips */
  --radius-control: 10px;     /* buttons, selects */
  --radius-md: var(--radius); /* alias used by views.css photo/UI shells */
  --c-muted: var(--c-ink-muted); /* alias for secondary copy */
  --tap: 44px; /* minimum tap target, spec §6 */
  --measure: 68ch;

  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-display-stack: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Palatino, "Times New Roman", Georgia, serif;

  --focus-ring: 3px solid var(--c-focus);
}

/* ------------------------------------------------------------------ reset */

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

/* The `hidden` attribute has to beat component display rules — .c-btn sets
   display: inline-flex, which otherwise wins over the user agent's [hidden]
   rule and leaves "Sign out" visible to signed-out visitors. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-stack);
  font-size: var(--font-body);
  line-height: 1.5;
  /* Standalone mode on iOS: keep chrome clear of the notch and home bar.
     The top inset moves onto the topbar so the green chrome runs under the
     status bar (black-translucent) instead of leaving a strip of cream. */
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

h1 { font-size: var(--font-display); }
h2 { font-size: var(--font-title); }
h3 { font-size: var(--font-lead); }

p { margin: 0 0 var(--space-4); max-width: var(--measure); }

a {
  color: var(--c-link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--c-link-hover);
}

/* Focus: visible, high contrast, and never suppressed. :focus-visible so a
   mouse click does not leave a ring behind, while keyboard users always see it
   (WCAG 2.2 SC 2.4.7 Focus Visible). */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The old WebKit trick is deliberately NOT used here — this app has no custom
   focus styling that needs to suppress the default. */

/* Skip link: first in the DOM, visible only on focus. */
.c-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-brand);
  color: var(--c-on-brand);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius) 0;
}

.c-skip:focus {
  left: 0;
}

/* --------------------------------------------------------------- topbar */

.c-topbar {
  background: var(--c-topbar-bg);
  color: var(--c-topbar-ink);
}

.c-topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--space-3) + env(safe-area-inset-top, 0px)) var(--space-4) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.c-brand {
  color: var(--c-topbar-ink);
  font-weight: 700;
  font-size: var(--font-lead);
  text-decoration: none;
  margin-right: auto;
  /* Comfortable target even though it is a wordmark. */
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
}

/* Reticle wordmark. The header mark is a drawn crosshair (inline SVG, no image
   request, sharp at every zoom) and the doubled "o" of ShootHQ is drawn as two
   mini reticles. Stroke is currentColor, so both track --c-on-brand here and
   --c-accent wherever the wordmark lands on light paper. */
.c-brand .brand-mark { width: 1.625rem; height: 1.625rem; flex: none; display: block; }
.brand-logo { display: block; height: 1.75rem; width: auto; max-width: 10rem; object-fit: contain; }
.brand-o {
  width: 0.66em; height: 0.66em; display: inline-block;
  vertical-align: -0.06em; margin: 0 0.02em;
}
/* The product's own name is the supplied gold/olive wordmark art
   (web/icons/wordmark.webp). It is an image because the reticles are part of
   the brand artwork; the live-text path above still runs for any configured
   name other than the product's own. */
.brand-wordmark {
  height: 1.75rem;
  width: auto;
  display: block;
}

/* Both themes now use dark chrome, so the pale ring is the right one. */
.c-topbar :focus-visible {
  outline: 3px solid var(--c-focus-on-dark);
  outline-offset: 2px;
}

.c-topbar__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- layout */

.c-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4);
  display: block;
}

.c-main {
  min-height: 60vh;
}

/* Focused by the router on navigation; the ring would be noise there. */
.c-main:focus {
  outline: none;
}

.c-main--narrow {
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

/* --------------------------------------------------------------- nav */

/* Collapsed-by-default slide-over drawer on every viewport. The main column
   keeps the full width until the member opens Menu from the top bar. */
.c-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: min(20rem, 92vw);
  margin: 0;
  padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--space-3)
    calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
  box-shadow: 8px 0 32px rgb(53 44 28 / 16%);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-105%);
  transition: transform 160ms ease;
  visibility: hidden;
}

.c-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.c-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 45%);
  cursor: pointer;
}

.c-nav-backdrop[hidden] {
  display: none;
}

.c-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.c-nav__heading {
  display: block;
  margin: 0 0 var(--space-3);
  padding: 0 var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-link);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-nav__close {
  display: flex;
  width: 100%;
  margin: 0 0 var(--space-3);
}

/* Account actions at the foot of the drawer. Sign out is a button, not a
   link, so it is separated from the page list by a rule. */
.c-nav__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-line);
}

.c-nav__signout {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.c-phonelink {
  color: var(--c-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.c-nav__link,
.c-nav__summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  min-height: var(--tap);
  min-width: var(--tap);
  padding: var(--space-2) var(--space-3);
  color: var(--c-ink-muted);
  text-decoration: none;
  font-size: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* Dropdown group header. Native <details> gives keyboard and screen-reader
   behaviour for free; the marker is replaced with a chevron that turns. */
.c-nav__summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.c-nav__summary::-webkit-details-marker {
  display: none;
}

.c-nav__summary::after {
  content: '';
  width: 0.5em;
  height: 0.5em;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}

.c-nav__group[open] > .c-nav__summary::after {
  transform: rotate(45deg);
}

.c-nav__group[open] > .c-nav__summary {
  color: var(--c-brand);
  background: var(--c-bg-sunk);
}

/* Child links sit behind a rule so the hierarchy is visible, not implied by
   indentation alone. */
.c-nav__sublist {
  list-style: none;
  margin: var(--space-1) 0 var(--space-2) var(--space-3);
  padding: 0 0 0 var(--space-3);
  border-left: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.c-nav__summary:hover {
  background: var(--c-bg-sunk);
}

.c-nav__link[aria-current="page"] {
  color: var(--c-brand);
  /* Not colour alone: the current item also carries a bar, which survives
     greyscale and colour-vision deficiency (spec §10). */
  box-shadow: inset 3px 0 0 0 var(--c-accent);
  background: var(--c-brand-soft);
}

.c-nav__link:hover {
  background: var(--c-bg-sunk);
}

/* Full-width main column — the drawer overlays rather than reserving a rail. */
.c-layout {
  display: block;
  padding-bottom: var(--space-6);
}

body.is-nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------- buttons */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-control);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(53, 44, 28, 0.04);
  transition: background-color 120ms ease, border-color 120ms ease,
    box-shadow 120ms ease, transform 120ms ease;
}

.c-btn:hover:not(:disabled) {
  background: var(--c-bg-sunk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.c-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.c-btn--primary {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-on-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(35, 43, 27, 0.22);
}

.c-btn--primary:hover:not(:disabled) {
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
}

/* Topbar chrome: quiet outlines on both dark grounds. */
.c-btn--onDark {
  background: transparent;
  border-color: color-mix(in srgb, var(--c-topbar-ink) 30%, transparent);
  box-shadow: none;
  color: var(--c-topbar-ink);
}

.c-btn--onDark:hover:not(:disabled) {
  background: color-mix(in srgb, var(--c-topbar-ink) 12%, transparent);
  border-color: color-mix(in srgb, var(--c-topbar-ink) 45%, transparent);
  box-shadow: none;
}

.c-btn--onDark:active:not(:disabled) {
  transform: translateY(0);
}

/* Icon cluster: notifications, appearance and menu at brand height in the
   top-right corner, out of the text-action flow so it never wraps below the
   wordmark on a phone. */
.c-topbar__icons {
  position: absolute;
  top: calc(var(--space-3) + env(safe-area-inset-top, 0px));
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
}

/* Reserve the cluster's width so the text actions never slide under it.
   Signed out only the theme switch shows, so one slot is enough. */
.c-topbar__inner {
  position: relative;
  padding-right: calc(var(--space-4) + var(--tap) + var(--space-2));
}

.c-topbar__inner:has(#nav-toggle:not([hidden])) {
  padding-right: calc(var(--space-4) + (var(--tap) * 3) + (var(--space-2) * 3));
}

/* Extra slot while the download icon is still offering install. */
.c-topbar__inner:has(#install-button:not([hidden])):has(#nav-toggle:not([hidden])) {
  padding-right: calc(var(--space-4) + (var(--tap) * 4) + (var(--space-2) * 4));
}

/* Shared 44px round top-bar icon control. */
.c-iconbtn {
  position: relative;
  inline-size: var(--tap);
  block-size: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border-radius: 999px;
  flex: 0 0 auto;
}

.c-iconbtn__glyph,
.c-iconbtn__burger,
.c-iconbtn__close {
  display: grid;
  place-items: center;
  line-height: 0;
}

.c-iconbtn__close {
  display: none;
}

.c-nav-toggle[aria-expanded="true"] .c-iconbtn__burger {
  display: none;
}

.c-nav-toggle[aria-expanded="true"] .c-iconbtn__close {
  display: grid;
}

.c-iconbtn svg {
  inline-size: 1.15rem;
  block-size: 1.15rem;
}

/* Unread count on the bell. Gold on the dark chrome, legible in both themes. */
.c-iconbtn__badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-inline-size: 1.125rem;
  block-size: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--c-focus-on-dark);
  color: #232b1b;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
}

/* The moon offers dark, the sun offers light; CSS swaps them from
   data-theme so the control is correct on first paint. */


.c-theme-toggle__icon {
  display: none;
  line-height: 0;
}

html:not([data-theme="dark"]) .c-theme-toggle__moon,
html[data-theme="dark"] .c-theme-toggle__sun {
  display: block;
}

.c-theme-toggle svg {
  inline-size: 1.05rem;
  block-size: 1.05rem;
}

.c-btn--danger {
  border-color: var(--c-danger-border);
  color: var(--c-danger-ink);
  background: var(--c-danger-bg);
}

.c-btn:disabled,
.c-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Buttons that are mid-request. The label carries the state; the styling is
   only reinforcement. */
.c-btn[aria-busy="true"] {
  cursor: progress;
}

/* --------------------------------------------------------------- banner */

.c-offline {
  background: var(--c-warn-bg);
  color: var(--c-warn-ink);
  border-bottom: 1px solid var(--c-warn-border);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-small);
  text-align: center;
}

/* --------------------------------------------------------------- toasts */

.c-toasts {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.c-toast {
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-small);
  box-shadow: var(--shadow-card-hover);
  pointer-events: auto;
}

.c-toast--error {
  background: var(--c-danger-ink);
}

.c-toast--ok {
  background: var(--c-brand);
}

/* Action button sitting inline in a toast ("Update now"). A class rather than
   an inline style attribute, so the CSP can keep style-src free of
   'unsafe-inline'. */
.c-toast__action {
  min-height: auto;
  padding: 0.25rem 0.75rem;
  margin-left: var(--space-2);
}

@media (min-width: 1024px) {
  .c-toasts {
    left: auto;
    right: var(--space-6);
    bottom: var(--space-6);
    max-width: 24rem;
  }
}

/* --------------------------------------------------------- install UI */

.c-installpopup {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  max-width: 26rem;
}

.c-installpopup h2 {
  font-size: var(--font-lead);
  margin-bottom: var(--space-2);
}

.c-installpopup__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

@media (min-width: 1024px) {
  .c-installpopup {
    left: auto;
    right: var(--space-6);
    bottom: var(--space-6);
  }
}

/* --------------------------------------------------------- utility */

/* Visually hidden but available to assistive tech. Used for status text that
   must be announced without being seen (never used to hide content that a
   sighted user needs). */
.c-visuallyhidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.c-hint {
  color: var(--c-ink-muted);
  font-size: var(--font-small);
}

/* Motion: honour the OS preference. There are no decorative animations in v1
   (spec §9.4), so this only removes the few transitions that exist. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .c-btn:hover:not(:disabled),
  .c-btn:active:not(:disabled) {
    transform: none !important;
  }
}

/* ---------------------------------------------------- brand layer 2026
   The tokens above carry the palette. These rules cover components whose
   assumptions are not expressible as tokens: the editorial serif headings,
   the green chrome bar and the image wordmark. */

h1,
h2 {
  font-family: var(--font-display-stack);
  font-weight: 500;
  letter-spacing: -0.018em;
}

/* Sticky blurred chrome — deep hunter green in both themes; the gold/olive
   wordmark was drawn for a dark ground. */
.c-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-topbar-bg);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--c-topbar-line);
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%);
  color: var(--c-topbar-ink);
}

.c-brand .brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
  flex: none;
}

#brand-wordmark {
  display: inline-flex;
  align-items: center;
}

/* A renamed club still renders as live text; the image rule above only
   applies while the baked product art is present. */
#brand-wordmark:not([data-wordmark="baked"]) {
  font-weight: 700;
  font-size: var(--font-lead);
  letter-spacing: -0.01em;
}

/* Club logo must win over the brand-layer display:block / inline-flex rules
   above, otherwise the ShootHQ reticle stays visible beside the club mark. */
.c-brand--logo .brand-mark,
.c-brand--logo #brand-wordmark {
  display: none;
}

.c-nav__link[aria-current="page"] {
  color: var(--c-brand);
  background: var(--c-brand-soft);
  box-shadow: inset 3px 0 0 0 var(--c-accent);
}

.c-btn--primary:hover:not(:disabled) {
  background: var(--c-brand-dark);
}

.c-toast {
  background: var(--c-ink);
  color: var(--c-bg);
}

.c-toast--error {
  background: #8a1c1c;
  color: #ffffff;
}

.c-toast--ok {
  background: var(--c-brand);
  color: #ffffff;
}

::placeholder {
  color: var(--c-placeholder);
  opacity: 1;
}

.c-installpopup {
  background: var(--c-surface);
}

/* Native widgets follow the active theme (set on <html>), not a hard-coded
   dark scheme — forcing dark here made light-mode fields paint light-on-cream. */
input,
select,
textarea,
button {
  color-scheme: inherit;
}
