/*
 * Nuhet reskin (card #2957): design tokens, fonts and base reset.
 * Source of truth: DESIGN.md front matter. Change a value there first, then here.
 * Every other file in resources/assets/css/nuhet/ uses these custom properties
 * and never a raw colour, size or radius.
 *
 * Breakpoints (media queries cannot read custom properties, so they are
 * written as literals in the other files): tablet 700px, desktop 1024px.
 */

/* ---------- fonts: Instrument Sans, self-hosted (OFL, see ../fonts/instrument-sans/OFL.txt) ---------- */
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/instrument-sans/instrument-sans-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  /* ---------- colors (DESIGN.md colors.*) ---------- */
  --nh-primary:#1F3A63;
  --nh-primary-hover:#172C4D;
  --nh-on-primary:#FFFFFF;
  --nh-accent:#A1CF35;
  --nh-accent-soft:#EEF5D9;
  --nh-ground:#EEF1F4;
  --nh-surface:#FFFFFF;
  --nh-surface-hover:#F5F7FA;
  --nh-surface-sunken:#F7F8FA;
  --nh-ink:#16213A;
  --nh-muted:#56627A;
  --nh-line:#D6DCE4;
  --nh-line-strong:#AEB8C6;
  --nh-line-hover:#8A97A8;
  --nh-info:#2563A8;
  --nh-info-bg:#E3ECF8;
  --nh-ok:#1F7A45;
  --nh-ok-bg:#E2F3E8;
  --nh-warn:#9A5B00;
  --nh-warn-bg:#FBEFD6;
  --nh-bad:#A83232;
  --nh-bad-bg:#F8E3E3;
  --nh-focus:#2563A8;
  --nh-placeholder-block:#C5CDD8;

  /* ---------- elevation (DESIGN.md Elevation & Depth prose) ---------- */
  --nh-shadow-menu:0 8px 16px rgba(22,33,58,.10);
  --nh-shadow-bar:0 -4px 8px rgba(22,33,58,.06);
  --nh-scrim:rgba(22,33,58,.45);

  /* ---------- typography (DESIGN.md typography.*) ---------- */
  --nh-font-family:"Instrument Sans",system-ui,"Segoe UI",sans-serif;
  --nh-weight-regular:400;
  --nh-weight-medium:500;
  --nh-weight-semibold:600;
  --nh-weight-bold:700;

  --nh-size-display:26px;
  --nh-size-headline-lg:28px;
  --nh-size-headline-lg-phone:24px;
  --nh-size-headline-md:20px;
  --nh-size-headline-sm:18px;
  --nh-size-body-lg:17px;
  --nh-size-body-md:16px;
  --nh-size-body-md-strong:16px;
  --nh-size-body-sm:15px;
  --nh-size-label-md:14px;
  --nh-size-label-md-regular:14px;
  --nh-size-label-sm:12px;
  --nh-size-label-sm-regular:12px;
  --nh-size-nav-desktop:16px;
  --nh-size-nav-tablet:11px;
  --nh-size-nav-phone:12px;
  --nh-size-numeral:16px;

  /* font shorthands: weight size/line-height family */
  --nh-font-display:600 26px/1.15 var(--nh-font-family);
  --nh-font-headline-lg:600 28px/1.2 var(--nh-font-family);
  --nh-font-headline-lg-phone:600 24px/1.2 var(--nh-font-family);
  --nh-font-headline-md:600 20px/1.3 var(--nh-font-family);
  --nh-font-headline-sm:600 18px/1.3 var(--nh-font-family);
  --nh-font-body-lg:600 17px/1.4 var(--nh-font-family);
  --nh-font-body-md:400 16px/1.5 var(--nh-font-family);
  --nh-font-body-md-strong:600 16px/1.5 var(--nh-font-family);
  --nh-font-body-sm:400 15px/1.4 var(--nh-font-family);
  --nh-font-label-md:600 14px/1.3 var(--nh-font-family);
  --nh-font-label-md-regular:400 14px/1.3 var(--nh-font-family);
  --nh-font-label-sm:500 12px/1.2 var(--nh-font-family);
  --nh-font-label-sm-regular:400 12px/1.2 var(--nh-font-family);
  --nh-font-nav-desktop:500 16px/1.3 var(--nh-font-family);
  --nh-font-nav-tablet:500 11px/1.2 var(--nh-font-family);
  --nh-font-nav-phone:500 12px/1.2 var(--nh-font-family);
  --nh-font-numeral:600 16px/1.5 var(--nh-font-family);
  --nh-numeral-feature:"tnum";

  /* ---------- radii (DESIGN.md rounded.*) ---------- */
  --nh-radius-xs:2px;
  --nh-radius-sm:6px;
  --nh-radius-md:8px;
  --nh-radius-lg:10px;
  --nh-radius-xl:12px;
  --nh-radius-full:999px;

  /* ---------- spacing and layout (DESIGN.md spacing.*) ---------- */
  --nh-space-xs:4px;
  --nh-space-sm:8px;
  --nh-space-md:12px;
  --nh-space-lg:16px;
  --nh-space-xl:24px;
  --nh-space-2xl:32px;
  --nh-space-3xl:40px;
  --nh-space-gutter-phone:16px;
  --nh-space-gutter-tablet:24px;
  --nh-space-gutter-desktop:32px;
  --nh-space-content-max:1180px;
  --nh-newsletter-preview-width:640px;
  --nh-newsletter-preview-height:426px;
  --nh-space-rail-desktop:232px;
  --nh-space-rail-tablet:72px;
  --nh-space-topbar:56px;
  --nh-space-mobilebar-offset:62px;
  --nh-space-touch:44px;
  --nh-space-control-lg:52px;
  --nh-space-summary-panel:320px;
  --nh-space-list-actions:256px;

  /*
   * In-between steps used by the b.html prototype (not in the YAML scale).
   * Kept as tokens so component files stay free of raw sizes.
   */
  --nh-space-2xs:2px;
  --nh-space-xs-sm:6px;
  --nh-space-sm-md:10px;
  --nh-space-md-lg:14px;
  --nh-space-lg-xl:20px;

  /* ---------- component tokens (DESIGN.md components.*, raw values only) ---------- */
  --nh-btn-padding:10px 18px;
  --nh-btn-quiet-padding:10px 10px;
  --nh-btn-compact-height:40px;
  --nh-btn-compact-padding:6px 14px;
  --nh-card-padding:var(--nh-space-lg);
  --nh-tile-padding:12px 14px;
  --nh-input-padding:8px 12px;
  --nh-menu-padding:6px;
  --nh-total-padding:12px 14px;
  --nh-banner-padding:12px 14px;
  --nh-progress-height:6px;
  --nh-progress-height-usage:10px;
  --nh-progress-height-metric:12px;
  --nh-datechip-size:56px;
  --nh-stepnum-size:32px;
  --nh-focus-width:3px;
  --nh-focus-offset:2px;

  /* ---------- sizes derived from DESIGN.md prose and b.html ---------- */
  --nh-icon-xs:14px;
  --nh-icon-sm:16px;
  --nh-icon-md:20px;
  --nh-icon-lg:24px;
  --nh-indicator:3px;
  --nh-toast-edge:4px;
  --nh-dot:8px;
  --nh-control-check:22px;
  --nh-check-border:2px;
  --nh-check-circle:24px;
  --nh-pill-height:28px;
  --nh-mark:28px;
  --nh-mark-lg:36px;
  --nh-nav-phone-height:56px;
  --nh-nav-tablet-height:60px;
  --nh-nav-desktop-height:46px;
  --nh-railhead-height:68px;
  --nh-thumb-list:72px;
  --nh-list-date-col:190px;
  --nh-menu-min:200px;
  --nh-tile-min:240px;
  --nh-dialog-max:440px;
  --nh-toast-max:360px;
  --nh-step-anchor-offset:72px;
  --nh-summary-sticky-top:24px;
  --nh-choice-indent:34px;

  /* chevron for native selects; stroke is --nh-muted (data URIs cannot read custom properties) */
  --nh-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356627A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  /* ---------- motion ---------- */
  --nh-duration:180ms;
}

/* ---------- base reset (scoped to the .nh shell root; :where keeps it at zero specificity so components win) ---------- */
.nh,.nh *,.nh *::before,.nh *::after{box-sizing:border-box}
.nh{
  margin:0;
  font:var(--nh-font-body-md);
  color:var(--nh-ink);
  background:var(--nh-ground);
  -webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
:where(.nh) :where(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,figure,blockquote){margin:0}
:where(.nh) :where(h1,h2,h3,h4,h5,h6){font-size:inherit;font-weight:var(--nh-weight-semibold)}
:where(.nh) :where(ul,ol){padding:0;list-style:none}
:where(.nh) :where(img,svg,video,canvas){display:block;max-width:100%}
:where(.nh) :where(svg){flex:none}
:where(.nh) :where(a){color:var(--nh-primary)}
:where(.nh) :where(button,input,select,textarea){font:inherit;color:inherit}
:where(.nh) :where(button){cursor:pointer}
.nh :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:var(--nh-focus-width) solid var(--nh-focus);
  outline-offset:var(--nh-focus-offset);
}
.nh .nh-num{font-variant-numeric:tabular-nums}
.nh .nh-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.nh [hidden]{display:none !important}

@media (prefers-reduced-motion: reduce){
  .nh *,.nh *::before,.nh *::after{
    animation-duration:1ms !important;
    animation-iteration-count:1 !important;
    transition-duration:1ms !important;
    scroll-behavior:auto !important;
  }
}
