/*
 * NordPack Board Room. Layered over Pico 2, which supplies the reset, the typographic scale and the
 * light/dark handling. Everything here is project identity and the few components Pico has no
 * opinion about.
 *
 * A note on the selectors below. Pico declares its colour tokens under
 * `:root:not([data-theme=dark])` and, in the dark media query, `:root:not([data-theme])`. Both are
 * specificity (0,2,0), so a plain `:root` block here loses to them however late it loads, and the
 * page comes out project-coloured with Pico-blue controls. The overrides therefore mirror Pico's
 * own selectors rather than fighting them.
 */

:root {
  --np-ink: #16211c;
  --np-paper: #f6f4ef;
  --np-rule: #d9d4c7;
  --np-accent: #1f5d4c;      /* the board's green, used once per screen */
  --np-accent-soft: #e4ede9;
  --np-muted: #6c7a72;
  --np-warn: #8a5a12;
  --np-bad: #9c2f2f;

  --pico-font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --pico-font-size: 106%;
  --pico-border-radius: 3px;
  --pico-form-element-spacing-vertical: 0.8rem;
}

/* Light, and the explicit light choice. */
:root:not([data-theme="dark"]),
:root[data-theme="light"] {
  --pico-primary: #16493c;
  --pico-primary-background: #1f5d4c;
  --pico-primary-hover-background: #17493b;
  --pico-primary-border: #1f5d4c;
  --pico-primary-hover-border: #17493b;
  --pico-primary-underline: rgba(31, 93, 76, 0.4);
  --pico-primary-focus: rgba(31, 93, 76, 0.28);
  --pico-primary-inverse: #ffffff;
  --pico-form-element-active-border-color: #1f5d4c;
  --pico-form-element-focus-color: #1f5d4c;
  --pico-muted-color: #6c7a72;
  --pico-muted-border-color: #d9d4c7;
  --pico-background-color: #f6f4ef;
  --pico-color: #16211c;
  --pico-h1-color: #16211c;
  --pico-h2-color: #16211c;
  --pico-h3-color: #16211c;
}

/* Dark by system setting, unless the reader has explicitly asked for light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --np-ink: #e6e9e6;
    --np-paper: #121715;
    --np-rule: #2c3733;
    --np-accent: #6dbfa4;
    --np-accent-soft: #1a2622;
    --np-muted: #93a29b;
    --np-warn: #d8a24a;
  --np-bad: #e38a80;

    --pico-primary: #8fd4bb;
    --pico-primary-background: #23705c;
    --pico-primary-hover-background: #2b846d;
    --pico-primary-border: #23705c;
    --pico-primary-hover-border: #2b846d;
    --pico-primary-underline: rgba(143, 212, 187, 0.4);
    --pico-primary-focus: rgba(143, 212, 187, 0.28);
    --pico-primary-inverse: #06120e;
    --pico-form-element-active-border-color: #6dbfa4;
    --pico-form-element-focus-color: #6dbfa4;
    --pico-muted-color: #93a29b;
    --pico-muted-border-color: #2c3733;
    --pico-background-color: #121715;
    --pico-color: #e6e9e6;
    --pico-h1-color: #e6e9e6;
    --pico-h2-color: #e6e9e6;
    --pico-h3-color: #e6e9e6;
  }
}

/* Dark by explicit choice, whatever the system says. */
:root[data-theme="dark"] {
  --np-ink: #e6e9e6;
  --np-paper: #121715;
  --np-rule: #2c3733;
  --np-accent: #6dbfa4;
  --np-accent-soft: #1a2622;
  --np-muted: #93a29b;
  --np-warn: #d8a24a;
  --np-bad: #e38a80;

  --pico-primary: #8fd4bb;
  --pico-primary-background: #23705c;
  --pico-primary-hover-background: #2b846d;
  --pico-primary-border: #23705c;
  --pico-primary-hover-border: #2b846d;
  --pico-primary-underline: rgba(143, 212, 187, 0.4);
  --pico-primary-focus: rgba(143, 212, 187, 0.28);
  --pico-primary-inverse: #06120e;
  --pico-form-element-active-border-color: #6dbfa4;
  --pico-form-element-focus-color: #6dbfa4;
  --pico-muted-color: #93a29b;
  --pico-muted-border-color: #2c3733;
  --pico-background-color: #121715;
  --pico-color: #e6e9e6;
  --pico-h1-color: #e6e9e6;
  --pico-h2-color: #e6e9e6;
  --pico-h3-color: #e6e9e6;
}

body { background: var(--np-paper); color: var(--np-ink); }

main.container { max-width: 62rem; }

/* --- Masthead ------------------------------------------------------------ */

.np-masthead {
  border-bottom: 1px solid var(--np-rule);
  margin-bottom: 2rem;
}

.np-masthead .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  max-width: 62rem;
}

.np-masthead-meta {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.np-wordmark {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  margin: 0;
  min-width: 0;
}

/* On a phone the full wordmark and the controls will not both fit, and the controls win. */
@media (max-width: 30rem) {
  .np-wordmark { font-size: 0.95rem; }
  .np-masthead-meta { gap: 0.7rem; }
}

.np-wordmark a { color: inherit; text-decoration: none; }

.np-masthead form { margin: 0; }

.np-masthead button {
  background: none;
  border: none;
  color: var(--np-muted);
  padding: 0;
  font-size: 0.85rem;
  width: auto;
}

.np-masthead button:hover { color: var(--np-accent); }

/* --- Sign-in ------------------------------------------------------------- */

.np-signin { max-width: 27rem; margin-inline: auto; padding-block: 2rem 4rem; }

.np-signin h1 { font-size: 1.6rem; margin-bottom: 0.2rem; }

.np-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--np-muted);
  margin-bottom: 0.4rem;
  font-family: system-ui, sans-serif;
}

/* The code is read off a printed slip and typed once. Wide tracking makes 8 and B distinguishable. */
input[name="access_code"] {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

input[name="access_code"]::placeholder { letter-spacing: 0.22em; opacity: 0.35; }

.np-help {
  font-size: 0.85rem;
  color: var(--np-muted);
  margin-top: 1.4rem;
  line-height: 1.5;
}

/* --- Notices ------------------------------------------------------------- */

.np-notice {
  border-left: 3px solid var(--np-accent);
  background: var(--np-accent-soft);
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.np-privacy {
  border: 1px solid var(--np-rule);
  padding: 1rem 1.2rem;
  max-height: 17rem;
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.np-privacy h2 { font-size: 0.95rem; margin-top: 1rem; }
.np-privacy h2:first-child { margin-top: 0; }
.np-privacy p, .np-privacy li { margin-bottom: 0.5rem; }

/* --- Board landing ------------------------------------------------------- */

.np-seat {
  border: 1px solid var(--np-rule);
  border-top: 3px solid var(--np-accent);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
}

.np-seat h2 { font-size: 1.25rem; margin-bottom: 0.1rem; }

.np-seat .np-eyebrow { margin-bottom: 0.5rem; }

.np-roster { list-style: none; padding: 0; margin: 0; }

.np-roster li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--np-rule);
}

.np-roster li:last-child { border-bottom: none; }

.np-roster .np-role {
  color: var(--np-muted);
  font-size: 0.85rem;
  font-family: system-ui, sans-serif;
}

.np-empty {
  border: 1px dashed var(--np-rule);
  padding: 1.4rem;
  color: var(--np-muted);
  font-size: 0.92rem;
}

footer.np-footer {
  border-top: 1px solid var(--np-rule);
  margin-top: 3rem;
  padding-block: 1.2rem 2.5rem;
  font-size: 0.78rem;
  color: var(--np-muted);
  font-family: system-ui, sans-serif;
}

/* --- Signature panel ----------------------------------------------------- */

.np-lede { color: var(--np-muted); font-size: 0.95rem; margin-bottom: 1.8rem; }

.np-notice-warn {
  border-left-color: var(--np-warn);
  background: transparent;
  border: 1px solid var(--np-warn);
  border-left-width: 3px;
  color: var(--np-warn);
}

.np-card {
  border: 1px solid var(--np-rule);
  border-left: 3px solid var(--np-rule);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
  background: transparent;
}

/* Signed is the resting state a board is working towards, so it is the one that gets the colour. */
.np-card.is-signed { border-left-color: var(--np-accent); }

/*
 * Pico bleeds an article's header out to the article's edges with negative margins and puts the
 * padding back on the header itself. Resetting the padding alone leaves the header hanging a
 * block-spacing to the left of the text underneath it, which is what it did.
 */
.np-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.6rem;
  padding: 0;
  background: none;
  border: none;
}

.np-card h2 { font-size: 1.15rem; margin: 0; }
.np-card .np-eyebrow { margin-bottom: 0.15rem; }

.np-stamp {
  flex: 0 0 auto;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.18rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}

.np-stamp.is-signed { color: var(--np-accent); }
.np-stamp.is-open { color: var(--np-muted); }

.np-card-summary { font-size: 0.92rem; margin-bottom: 0.5rem; }

.np-owed {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--np-muted);
  margin-bottom: 0.8rem;
}

.np-signatures {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  border-top: 1px solid var(--np-rule);
  font-size: 0.86rem;
}

.np-signatures li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--np-rule);
}

.np-signatures li > :first-child { flex: 1 1 8rem; }
.np-signatures time { color: var(--np-muted); font-variant-numeric: tabular-nums; }

.np-card > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.np-card > footer form { margin: 0; }
.np-card > footer button { width: auto; margin: 0; font-size: 0.9rem; }

.np-hint {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--np-muted);
}

.np-note {
  border-top: 1px solid var(--np-rule);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.87rem;
  color: var(--np-muted);
}

.np-note p { margin-bottom: 0.6rem; }

.np-back { margin-top: 1.5rem; font-size: 0.9rem; }

.np-feed {
  border-left: 3px solid var(--np-accent);
  background: var(--np-accent-soft);
  padding: 0.8rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.np-feed .np-eyebrow { margin-bottom: 0.25rem; }

/* --- Contract builder and board meeting ---------------------------------- */

.np-desktop-note {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--np-muted);
  margin-top: -1.2rem;
  margin-bottom: 1.6rem;
}

/* Wide screens do not need the note; a phone does. */
@media (min-width: 62rem) { .np-desktop-note { display: none; } }

.np-owner {
  font-family: system-ui, sans-serif;
  font-size: 0.84rem;
  color: var(--np-muted);
  margin-bottom: 1rem;
}

.np-owner strong { color: var(--np-accent); }

.np-builder-card form > footer { margin-top: 1rem; }

.np-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 1.2rem;
}

.np-check {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.np-check small {
  display: block;
  margin-left: 1.9rem;
  color: var(--np-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.np-builder-card fieldset, .np-part fieldset { margin-bottom: 1.2rem; }

.np-builder-card legend, .np-part legend {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--np-muted);
  margin-bottom: 0.5rem;
}

.np-measures {
  border-top: 1px solid var(--np-rule);
  padding-top: 0.8rem;
}

.np-measure-row {
  display: grid;
  grid-template-columns: minmax(12rem, 2.2fr) minmax(5rem, 0.8fr) minmax(5rem, 0.9fr) auto;
  gap: 0 0.8rem;
  align-items: end;
}

.np-measure-row button {
  width: auto;
  margin-bottom: var(--pico-spacing);
  font-size: 0.8rem;
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
}

/* On a phone the row stacks, and the button sits under the three fields it serves. */
@media (max-width: 40rem) {
  .np-measure-row { grid-template-columns: 1fr 1fr; }
  .np-measure-row > label:first-child { grid-column: 1 / -1; }
  .np-measure-row button { grid-column: 1 / -1; }
}

.np-weight-total {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.6rem;
}

.np-weight-total output {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0 0.2rem;
}

.np-weight-total output[data-state="ok"] { color: var(--np-accent); }
.np-weight-total output[data-state="off"] { color: var(--np-warn); }

.np-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.6rem 1.4rem;
  margin: 0 0 0.6rem;
}

.np-terms > div { border-top: 1px solid var(--np-rule); padding-top: 0.45rem; }
.np-terms-wide { grid-column: 1 / -1; }

.np-terms dt {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--np-muted);
  margin-bottom: 0.15rem;
}

.np-terms dd { margin: 0; font-size: 0.95rem; }

.np-scroll { overflow-x: auto; }

.np-measure-table, .np-diff { font-size: 0.9rem; margin-bottom: 0.8rem; }
.np-measure-table td, .np-measure-table th, .np-diff td, .np-diff th { padding: 0.4rem 0.6rem; }
.np-diff .np-was { color: var(--np-muted); text-decoration: line-through; text-decoration-color: var(--np-rule); }

.np-part { border-top: 1px solid var(--np-rule); padding-top: 0.9rem; margin-top: 0.9rem; }
.np-part h3 { font-size: 1rem; margin-bottom: 0.5rem; }

/* --- The estimate -------------------------------------------------------- */

.np-preview {
  border-top: 3px solid var(--np-ink);
  margin-top: 2.2rem;
  padding-top: 1rem;
}

.np-preview h2 { font-size: 1.15rem; }

.np-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--np-rule);
  border: 1px solid var(--np-rule);
  margin: 0.8rem 0 1rem;
}

.np-figures > div { background: var(--np-paper); padding: 0.8rem 0.9rem; }

.np-figures dt {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--np-muted);
}

.np-figures dd {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.np-figures p { font-size: 0.8rem; color: var(--np-muted); margin: 0; line-height: 1.45; }

.np-figure-verdict.is-yes dd { color: var(--np-accent); }
.np-figure-verdict.is-no dd { color: var(--np-warn); }

.np-preview-problems {
  border-left: 3px solid var(--np-warn);
  padding: 0.6rem 1rem;
  margin: 0.8rem 0;
  font-size: 0.92rem;
}

.np-preview-problems ul { margin: 0.4rem 0 0; }

/* htmx marks the region while a preview is in flight; dimming it says the figures are about to move. */
#contract-preview.htmx-request { opacity: 0.55; transition: opacity 120ms ease; }

@media (prefers-reduced-motion: reduce) { #contract-preview.htmx-request { transition: none; } }

.np-submit { border-top: 1px solid var(--np-rule); margin-top: 1.6rem; padding-top: 1rem; }
.np-submit h2 { font-size: 1.1rem; }
.np-submit button { width: auto; }
.np-cards-link { font-size: 0.92rem; margin-top: 0.8rem; }
.np-section { margin-bottom: 2rem; }
.np-summary-card { font-size: 1rem; margin: 1.2rem 0 0.4rem; }

/* --- Materiality form ---------------------------------------------------- */

.np-rating { padding: 0.9rem 1.1rem; margin-bottom: 0.9rem; }
.np-rating legend { font-weight: 600; font-size: 1.02rem; padding: 0 0.3rem; }
.np-radio-row { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0.3rem 0 0.4rem; }
.np-check.np-inline { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 0.2rem; }
.np-priority { border-top: 1px solid var(--np-rule); padding-top: 0.7rem; margin-bottom: 0.4rem; }
.np-named { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 1.2rem; }

/* --- Annual report ------------------------------------------------------- */

.np-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* justify-content overrides Pico's nav rule, which spreads the years across the page. */
.np-years { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.4rem 0.9rem; margin: -0.6rem 0 1.4rem; font-family: system-ui, sans-serif; font-size: 0.88rem; }
.np-years [aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--np-accent); }

.np-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }

.np-tile {
  border: 1px solid var(--np-rule);
  border-top: 3px solid var(--np-accent);
  padding: 0.9rem 1rem;
  margin: 0;
}

.np-tile h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.np-tile-value { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 0 0.3rem; }
.np-tile-value small { font-size: 0.8rem; font-weight: 400; color: var(--np-muted); }
.np-tile-line { font-family: system-ui, sans-serif; font-size: 0.82rem; color: var(--np-muted); margin: 0 0 0.3rem; }

.np-spark { display: block; color: var(--np-accent); margin-top: 0.4rem; }

.np-bridge-title { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.np-bridge { font-size: 0.9rem; }
.np-bridge th, .np-bridge td { padding: 0.35rem 0.6rem; vertical-align: middle; }
.np-bridge tfoot th, .np-bridge tfoot td { font-weight: 700; border-top: 2px solid var(--np-rule); }
.np-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-bar { display: block; }
.np-bar.is-up { color: var(--np-accent); }
.np-bar.is-down { color: var(--np-bad); }

.np-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.5rem 1rem; }
.np-strip li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; border-left: 3px solid var(--np-rule); padding: 0.3rem 0.6rem; }
.np-strip li.is-better { border-left-color: var(--np-accent); }
.np-strip li.is-worse { border-left-color: var(--np-warn); }

.np-letter { border-left: 3px solid var(--np-rule); padding-left: 1rem; font-size: 1rem; }

/* A tile's state is in its words as well as its colour: the chip says what the rule says. */
.np-tile { box-shadow: none; border-radius: 0; background: transparent; }
.np-tile[data-state="good"], .np-tile[data-state="cap"] { border-top-color: var(--np-accent); }
.np-tile[data-state="amber"] { border-top-color: var(--np-warn); }
.np-tile[data-state="bad"] { border-top-color: var(--np-bad); }
.np-tile[data-state="none"] { border-top-color: var(--np-rule); }
.np-tile-weight {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--np-muted);
  margin: 0 0 0.25rem;
}
.np-tile-state {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.05rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin: 0 0 0.45rem;
}
.np-tile[data-state="good"] .np-tile-state, .np-tile[data-state="cap"] .np-tile-state { color: var(--np-accent); }
.np-tile[data-state="amber"] .np-tile-state { color: var(--np-warn); }
.np-tile[data-state="bad"] .np-tile-state { color: var(--np-bad); }
.np-tile[data-state="none"] .np-tile-state { color: var(--np-muted); }

.np-bridge tr.is-residual th, .np-bridge tr.is-residual td { color: var(--np-muted); font-style: italic; }
.np-more { margin-top: 1.4rem; }
.np-more summary { cursor: pointer; font-family: system-ui, sans-serif; font-size: 0.9rem; }
.np-tag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--np-muted);
  border: 1px solid var(--np-rule);
  padding: 0.05rem 0.5rem;
  margin: 0 0 0.6rem;
}
.np-doc-title { font-size: 0.98rem; margin: 1.3rem 0 0.3rem; }
.np-paid { color: var(--np-accent); }

/* Six headline figures fill three columns, or two on a narrow screen, with no empty cell left over. */
.np-figures.np-figures-six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 36rem) { .np-figures.np-figures-six { grid-template-columns: repeat(2, 1fr); } }

/* --- Utilities ----------------------------------------------------------- */

/*
 * These stand in for style="" attributes, which no view may carry. The Content-Security-Policy in
 * public/.htaccess has style-src 'self', and that covers style attributes as well as <style>
 * elements: a browser drops a blocked one without a visible error. php artisan serve sends no
 * policy at all, so an inline style looks right locally and is silently gone on the server, which
 * is why tests/Unit/ContentSecurityPolicyTest.php fails on one. Last in the file, so that a
 * utility wins a tie with a component rule above.
 */
.np-m-0 { margin: 0; }
.np-mt-1 { margin-top: 1rem; }

/* --- Forecasts ------------------------------------------------------------ */

.np-forecast { border: 1px solid var(--np-rule); padding: 0.8rem 1rem 0.4rem; margin: 0 0 1rem; }
.np-forecast legend { font-weight: 600; padding: 0 0.3rem; }
.np-forecast-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.1rem; margin: 0.3rem 0 0.5rem; }
.np-forecast-row .np-check { margin: 0; }
.np-forecast select { max-width: 32rem; }

.np-figures.np-figures-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 36rem) { .np-figures.np-figures-two { grid-template-columns: 1fr; } }

.np-forecast-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.np-forecast-list li { display: flex; flex-direction: column; gap: 0.15rem; border-left: 3px solid var(--np-rule); padding: 0.35rem 0.7rem; }
.np-forecast-list li.is-right { border-left-color: var(--np-accent); }
.np-forecast-list li.is-wrong { border-left-color: var(--np-bad); }
