/* Navigate Boats — 2.0 components, from the kit's web/nb-components.css.
   GENERATED-EQUIVALENT: owned by the Common repo, replaced by sync-core.sh.

   R0 ships these rules; R1 is what puts the markup on them. Corrections to the
   kit as delivered are marked. Requires core/tokens.css. */

.nb-board{font-family:var(--nb-font);color:var(--nb-ink);background:#fff;
  border-radius:var(--nb-r-board);overflow:hidden}

/* ---- verdict block: the level colours the ground above the wave ---- */
.nb-verdict{position:relative;padding:15px 18px 22px;background:var(--nb-v0);color:var(--nb-v0-ink);
  font-family:var(--nb-font)}
.nb-verdict[data-level="1"]{background:var(--nb-v1);color:var(--nb-v1-ink)}
.nb-verdict[data-level="2"]{background:var(--nb-v2);color:var(--nb-v2-ink)}
.nb-verdict[data-level="3"]{background:var(--nb-v3);color:var(--nb-v3-ink)}
/* correction 5 · the kit ships the condition tints unscoped and the night rule
   last, so it beat levels 2 and 3 — a level-3 Bura after sunset lost its verdict
   colour. Every tint, night included, is scoped to levels 0-1. */
.nb-verdict[data-cond="overcast"]:is([data-level="0"],[data-level="1"]){background:var(--nb-c-overcast)}
.nb-verdict[data-cond="rain"]:is([data-level="0"],[data-level="1"]){background:var(--nb-c-rain)}
.nb-verdict[data-cond="fog"]:is([data-level="0"],[data-level="1"]){background:var(--nb-c-fog)}
.nb-verdict[data-cond="snow"]:is([data-level="0"],[data-level="1"]){background:var(--nb-c-snow)}
.nb-verdict[data-cond="night"]:is([data-level="0"],[data-level="1"]){background:var(--nb-c-night);color:#fff}
/* correction 3 · 11 px, not the kit's .6rem (9.6 px) */
.nb-verdict .nb-label{font-weight:600;font-size:var(--nb-label-size);letter-spacing:.12em;
  text-transform:uppercase;opacity:.74}
/* correction 4 · the kit's max-width:330px runs under the motif at 375 px, where
   the block is 339 px inside its padding and the motif starts at x=253. The text
   holds a column clear of it instead. */
.nb-verdict .nb-text{max-width:calc(100% - 104px)}
/* .nb-text already holds the motif column clear; the headline must not subtract
   it a second time or it wraps to four lines at 375 px. */
.nb-verdict .nb-headline{text-transform:none;color:inherit;font-weight:800;letter-spacing:-.03em;
  line-height:.95;font-size:clamp(30px,8.6vw,44px);margin:9px 0 0}
.nb-verdict .nb-lede{font-size:1rem;line-height:1.45;margin:9px 0 0;opacity:.88}
.nb-verdict[data-level="2"] .nb-lede{opacity:1;color:var(--label-on-caution)}
.nb-verdict .nb-motif{position:absolute;right:20px;top:58px;width:88px;height:88px;pointer-events:none}
.nb-verdict .nb-motif img{width:100%;height:100%;display:block}
.nb-kv{display:flex;gap:18px;margin-top:16px;max-width:calc(100% - 104px)}
.nb-kv b{display:block;font-size:1.3rem;font-weight:800;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;line-height:1.1}
.nb-kv span{font-size:.66rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;opacity:.72}

/* ---- the wave: sits ON the coloured block, so its fill cuts into it ---- */
.nb-wave{display:block;width:100%;height:14px;margin-top:-14px;position:relative;z-index:1;color:#fff}
.nb-wave svg{display:block;width:100%;height:14px}

/* ---- under the wave: white, and the whole reading of the hour ---- */
.nb-readings{background:#fff;color:var(--nb-ink);padding:14px 18px 18px;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,45%),1fr));gap:13px 16px}
.nb-readings b{display:block;font-size:1.55rem;font-weight:800;letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;line-height:1.08}
.nb-readings b small{font-size:.8rem;font-weight:600;color:var(--label3);letter-spacing:0}
.nb-readings span{display:block;font-size:var(--nb-label-size);font-weight:600;letter-spacing:.09em;
  text-transform:uppercase;color:var(--label3);margin-top:2px}

/* ---- 48 h / 7-day strip ---- */
.nb-strip{display:flex;gap:3px}
.nb-strip>div{flex:none;border-radius:6px;background:var(--nb-s-easy);
  font-size:.6rem;text-align:center;font-weight:600;position:relative}
.nb-strip .breezy{background:var(--nb-s-breezy)}
.nb-strip .windy{background:var(--nb-s-windy)}
.nb-strip .caution{background:var(--nb-s-caution)}
/* correction 1 · the kit sets white on #8fa3b3, which is 2.61:1. Ink is 5.63:1
   and the cell colour is unchanged. */
.nb-strip .stay{background:var(--nb-s-stay);color:var(--nb-ink)}
.nb-strip .win{outline:2px solid var(--nb-ink);outline-offset:1px}
.nb-strip i{position:absolute;left:3px;right:3px;bottom:3px;height:3px;border-radius:2px;
  background:var(--nb-sea)}

/* ---- trip tiles and pills ---- */
.nb-trips{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.nb-trip{padding:12px;border-radius:var(--nb-r-card);background:var(--nb-sea-tint)}
.nb-trip b{display:block;font-size:.95rem;font-weight:600}
.nb-trip span{font-size:.75rem;color:var(--label3)}
.nb-trip.exposed{background:var(--nb-sun-tint)}
.nb-trip.off{background:#f3f4f6;opacity:.6}
.nb-pill{display:inline-block;padding:.35em .9em;border-radius:var(--nb-r-pill);
  font-weight:600;background:#fff;color:var(--nb-ink)}
.nb-pill--on{background:var(--nb-ink);color:#fff}

@media (prefers-reduced-motion:reduce){
  .nb-verdict .nb-motif img{animation:none}
}
