/* ==========================================================================
   NeedThese · new.needthese.com
   Brand source: the Dynamics quote/order template (gen_order.py).
     NAVY  #1F3864  · header colour used throughout the printed paperwork
     FONT  Arial    · the typeface the paperwork is set in
   Everything below derives from those two facts so the website and the
   paperwork read as one company.
   ========================================================================== */

:root {
  /* --- brand core --- */
  --navy:        #1F3864;   /* straight from the PDF template */
  --navy-deep:   #142744;
  --navy-ink:    #0E1C33;
  --blue:        #2E6FD9;   /* the light end of the logo gradient */
  --blue-bright: #4A8BF0;

  /* --- neutrals, biased cool toward the navy so they read as chosen --- */
  --paper:       #F4F7FB;
  --surface:     #FFFFFF;
  --surface-2:   #EAF0F8;
  --ink:         #16233A;
  --ink-soft:    #4E6076;
  --ink-faint:   #8195AC;
  --rule:        #D3DDEA;
  --rule-soft:   #E5ECF4;

  /* --- semantic, kept separate from the brand accent --- */
  --deal:        #C8102E;   /* clearance / urgency, used for text on light grounds */
  --deal-bg:     #FDEAEC;
  /* Filled red surfaces need their own pair. In dark mode --deal lightens to a
     pink that cannot carry white text, so the bar/button/pill read from these. */
  --deal-solid:  #C8102E;
  --deal-on:     #FFFFFF;
  --save:        #1E7A46;   /* savings */
  --save-bg:     #E4F3EA;
  --warn:        #9A5B08;
  --warn-bg:     #FBEEDA;

  --shadow-sm:   0 1px 2px rgba(20,39,68,.07);
  --shadow:      0 2px 4px rgba(20,39,68,.06), 0 10px 28px rgba(20,39,68,.07);
  --shadow-lg:   0 4px 8px rgba(20,39,68,.08), 0 24px 56px rgba(20,39,68,.13);

  /* --- type: Arial first, because that is what the paperwork uses --- */
  --sans:    Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --display: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  --serif:   Georgia, "Times New Roman", serif;   /* echoes the logo tagline */
  --mono:    "Cascadia Mono", Consolas, ui-monospace, monospace;

  --wrap:    1140px;
  --radius:  10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:       #7FA6E8;
    --navy-deep:  #0B1626;
    --navy-ink:   #E9F0FA;
    --blue:       #6BA5F5;
    --blue-bright:#8FBEFF;

    --paper:      #0B1421;
    --surface:    #121F30;
    --surface-2:  #1A2941;
    --ink:        #E9F0FA;
    --ink-soft:   #A5B7CD;
    --ink-faint:  #73879F;
    --rule:       #29394F;
    --rule-soft:  #203046;

    --deal:       #FF8A94;
    --deal-bg:    #3A1418;
    --deal-solid: #FF8A94;
    --deal-on:    #2A0A0E;
    --save:       #6FCB97;
    --save-bg:    #12301F;
    --warn:       #E0A94D;
    --warn-bg:    #33250F;

    --shadow-sm:  0 1px 2px rgba(0,0,0,.45);
    --shadow:     0 2px 4px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.3);
    --shadow-lg:  0 4px 8px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.42);
  }
}

:root[data-theme="dark"] {
  --navy:       #7FA6E8;
  --navy-deep:  #0B1626;
  --navy-ink:   #E9F0FA;
  --blue:       #6BA5F5;
  --blue-bright:#8FBEFF;

  --paper:      #0B1421;
  --surface:    #121F30;
  --surface-2:  #1A2941;
  --ink:        #E9F0FA;
  --ink-soft:   #A5B7CD;
  --ink-faint:  #73879F;
  --rule:       #29394F;
  --rule-soft:  #203046;

  --deal:       #FF8A94;
  --deal-bg:    #3A1418;
  --deal-solid: #FF8A94;
  --deal-on:    #2A0A0E;
  --save:       #6FCB97;
  --save-bg:    #12301F;
  --warn:       #E0A94D;
  --warn-bg:    #33250F;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.45);
  --shadow:     0 2px 4px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.3);
  --shadow-lg:  0 4px 8px rgba(0,0,0,.45), 0 24px 56px rgba(0,0,0,.42);
}

/* ==========================================================================
   base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--ink);
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; }

/* ==========================================================================
   type
   ========================================================================== */
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-family: var(--display); font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.04; }
h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.12; }
h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
p  { margin: 0; text-wrap: pretty; }

.lede { font-size: clamp(1.06rem, 2.1vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
}
.tagline { font-family: var(--serif); font-style: italic; }

/* ==========================================================================
   header / nav
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: #C9D9F0;
  font-size: .82rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  align-items: center; justify-content: flex-end;
  padding-block: .5rem;
}
.topbar a { color: #DCE8FA; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .tb-left { margin-right: auto; color: #9DB6DA; }

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
}
.masthead .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: .7rem;
}
.brand { display: flex; align-items: center; flex: none; }
/* The logo artwork is a JPEG with a baked-in white background, so it always sits
   on a white chip. On light grounds the chip is invisible; on dark grounds it is
   what stops the wordmark disappearing. One rule, no theme branching.
   Replace with a transparent PNG or SVG and this can go. */
.brand img {
  width: 168px;
  background: #fff; border-radius: 6px; padding: 4px 6px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem;
  padding: .55rem .8rem; border-radius: 7px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--surface-2); }
.nav a.is-deal { color: var(--deal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
  padding: .72rem 1.35rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover  { background: var(--navy); border-color: var(--navy); }
.btn-deal     { background: var(--deal-solid); color: var(--deal-on); border-color: var(--deal-solid); }
.btn-deal:hover { filter: brightness(1.1); }
.btn-ghost    { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-onnavy   { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn-onnavy:hover { background: #DCE8FA; border-color: #DCE8FA; }
.btn-onnavy-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-onnavy-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-lg { font-size: 1.03rem; padding: .9rem 1.7rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.navtoggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--rule); border-radius: 7px;
  padding: .5rem .7rem; cursor: pointer; color: var(--ink);
  font-size: 1.1rem; line-height: 1;
}

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem clamp(1rem, 4vw, 2rem) 1rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem .6rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
  .nav .btn { margin-top: .75rem; border-radius: 8px; }
}

/* ==========================================================================
   sections
   ========================================================================== */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-navy { background: var(--navy-deep); color: #EAF1FB; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lede { color: #B9CDEA; }
.section-navy .eyebrow { color: var(--blue-bright); }
.section-alt { background: var(--surface-2); }

.section-head { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2.25rem; max-width: 62ch; }

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(46,111,217,.38), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 62%, #0A1526 100%);
  color: #fff;
  padding-block: clamp(3.25rem, 8vw, 6rem);
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--blue-bright); }
.hero .lede { color: #C2D5EF; margin-top: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-trust {
  margin-top: 2.4rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
}
.hero-trust div { display: flex; flex-direction: column; gap: .1rem; }
.hero-trust b { font-family: var(--display); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.hero-trust span { font-size: .82rem; color: #A9C2E4; }

/* the deal card that sits in the hero */
.hero-card {
  background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1rem;
}
.hero-card .hc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-card h3 { font-family: var(--display); font-size: 1.22rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.hero-card li { display: flex; gap: .7rem; align-items: baseline; font-size: .95rem; }
.hero-card li::before {
  content: "✓"; color: var(--save); font-weight: 700; flex: none;
}

/* ==========================================================================
   cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem;
  display: flex; flex-direction: column; gap: .6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--navy); }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card-link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }

.card-ico {
  width: 2.6rem; height: 2.6rem; border-radius: 8px;
  background: var(--surface-2); color: var(--blue);
  display: grid; place-items: center; font-size: 1.3rem; flex: none;
}

/* numbered "how it works" */
.steps { counter-reset: s; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.steps li::before {
  counter-increment: s; content: counter(s);
  font-family: var(--display); font-size: .95rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
}
.section-navy .steps li::before { background: var(--blue-bright); color: var(--navy-deep); }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .93rem; color: var(--ink-soft); }
.section-navy .steps p { color: #B9CDEA; }

/* ==========================================================================
   flash sale product cards
   ========================================================================== */
.deal-bar {
  background: var(--deal-solid); color: var(--deal-on);
  padding-block: .6rem; font-size: .9rem; font-weight: 700;
  text-align: center;
}
.deal-bar span { opacity: .85; font-weight: 400; }

.products { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }

.product {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}
.product:hover { box-shadow: var(--shadow); border-color: var(--blue); }

/* Placeholder tile until real product photography exists. Kept short on
   purpose: a tall empty box reads as a broken image. */
.product-media {
  height: 8.5rem; background: var(--surface-2);
  display: grid; place-items: center; position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: 3.4rem; line-height: 1; color: var(--ink-faint);
}
.product-flag {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--deal-solid); color: var(--deal-on);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 4px;
}
.product-body { padding: 1.05rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.product h3 { font-size: 1rem; line-height: 1.32; }
.product-sku { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); }

.price-row { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.price-now  { font-family: var(--display); font-size: 1.55rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.price-was  { font-size: .9rem; color: var(--ink-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-save { font-size: .76rem; font-weight: 700; color: var(--save); background: var(--save-bg); padding: .16rem .45rem; border-radius: 4px; }

.stock { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: .4rem; }
.stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--save); flex: none; }
.stock.is-low { color: var(--deal); font-weight: 700; }
.stock.is-low::before { background: var(--deal); }

.qty-row { display: flex; gap: .5rem; align-items: stretch; }
.qty-row input {
  width: 4.4rem; text-align: center; font-family: var(--sans); font-size: .95rem;
  border: 1px solid var(--rule); border-radius: 7px; background: var(--surface); color: var(--ink);
  padding: .5rem .4rem; font-variant-numeric: tabular-nums;
}
.qty-row .btn { flex: 1; padding-inline: .8rem; }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip {
  font-family: var(--sans); font-size: .88rem; font-weight: 700;
  padding: .48rem .95rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--rule); transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ==========================================================================
   quote drawer
   ========================================================================== */
.quote-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 120;
  background: var(--deal-solid); color: var(--deal-on); border: none; border-radius: 999px;
  padding: .95rem 1.5rem; font-family: var(--sans); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-lg); cursor: pointer;
  display: flex; align-items: center; gap: .6rem;
  transition: transform .15s;
}
.quote-fab:hover { transform: translateY(-2px); }
.quote-fab[hidden] { display: none; }
.quote-fab .count {
  background: var(--deal-on); color: var(--deal-solid); border-radius: 999px;
  min-width: 1.6rem; height: 1.6rem; padding-inline: .4rem;
  display: grid; place-items: center; font-size: .85rem; font-variant-numeric: tabular-nums;
}

.drawer-scrim {
  position: fixed; inset: 0; background: rgba(10,21,38,.55);
  z-index: 130; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(30rem, 100%);
  background: var(--paper); z-index: 140; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer-head {
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 1rem; background: var(--surface);
}
.drawer-head h2 { font-size: 1.15rem; font-family: var(--display); }
.drawer-close {
  margin-left: auto; background: transparent; border: 1px solid var(--rule);
  border-radius: 7px; width: 2.2rem; height: 2.2rem; cursor: pointer;
  color: var(--ink); font-size: 1.15rem; line-height: 1;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--rule); background: var(--surface); display: flex; flex-direction: column; gap: .85rem; }

.line {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem .9rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--rule-soft);
}
.line h4 { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.34; }
.line .line-sku { font-family: var(--mono); font-size: .73rem; color: var(--ink-faint); }
.line .line-ext { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line-ctl { display: flex; align-items: center; gap: .45rem; margin-top: .35rem; }
.line-ctl button {
  width: 1.85rem; height: 1.85rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  font-size: 1rem; line-height: 1; display: grid; place-items: center;
}
.line-ctl button:hover { border-color: var(--blue); color: var(--blue); }
.line-ctl .q { font-variant-numeric: tabular-nums; min-width: 2rem; text-align: center; font-weight: 700; }
.line-ctl .rm { margin-left: auto; font-size: .8rem; color: var(--ink-faint); background: none; border: none; width: auto; cursor: pointer; text-decoration: underline; }
.line-ctl .rm:hover { color: var(--deal); }

.totals { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .t-save { color: var(--save); font-weight: 700; }
.totals .t-total { font-family: var(--display); font-size: 1.3rem; color: var(--navy); padding-top: .5rem; border-top: 1px solid var(--rule); }
.totals .t-total span:last-child { font-variant-numeric: tabular-nums; }

.empty { text-align: center; color: var(--ink-soft); padding: 2.5rem 1rem; display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.empty .big { font-size: 2.5rem; }

/* ==========================================================================
   forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--ink-faint); font-weight: 400; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: .97rem;
  padding: .68rem .8rem; border-radius: 8px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field textarea { min-height: 5.5rem; resize: vertical; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--deal); }
/* Error text stays hidden until JS marks the field bad. Without this it shows
   on first paint and the form looks broken before anyone has typed. */
.field .err { display: none; font-size: .78rem; color: var(--deal); font-weight: 700; }
.field.is-bad .err { display: block; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.notice { border-radius: 8px; padding: .85rem 1rem; font-size: .9rem; display: flex; gap: .6rem; }
.notice-info { background: var(--surface-2); color: var(--ink-soft); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-bad  { background: var(--deal-bg); color: var(--deal); font-weight: 700; }
.notice-good { background: var(--save-bg); color: var(--save); font-weight: 700; }

/* ==========================================================================
   contracts
   ========================================================================== */
.contract {
  background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--navy);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow-sm);
}
.contract-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.contract-head h3 { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.contract-no {
  font-family: var(--mono); font-size: .82rem; background: var(--surface-2);
  color: var(--ink-soft); padding: .22rem .55rem; border-radius: 5px;
}
.contract ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.contract li { font-size: .95rem; color: var(--ink-soft); }
.contract li strong { color: var(--ink); }

/* ==========================================================================
   tables
   ========================================================================== */
.tscroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
thead th {
  text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; padding: .8rem 1rem;
  background: var(--surface-2); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   footer
   ========================================================================== */
.footer { background: var(--navy-deep); color: #B9CDEA; padding-block: 3rem 2rem; }
.footer a { color: #DCE8FA; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; }
.footer-brand img { width: 170px; background: #fff; border-radius: 6px; padding: 6px 8px; }
.footer-brand p { font-size: .9rem; margin-top: .9rem; max-width: 30ch; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .82rem; color: #8FAAD0;
}
.footer-legal .fl-right { margin-left: auto; }

/* ==========================================================================
   utility
   ========================================================================== */
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: .5rem; } .gap-md { gap: 1rem; } .gap-lg { gap: 1.75rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.center { text-align: center; margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
