/* ClearCover — hand CSS only.
   Utility classes come from css/tailwind.css (compiled, no CDN).
   This file is fonts, range skins, duotone, print, privacy modal. */

    @font-face {
      font-family: 'Karla';
      src: url('/fonts/Karla-VariableFont_wght.woff2') format('woff2');
      font-weight: 200 800;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'Karla';
      src: url('/fonts/Karla-Italic-VariableFont_wght.woff2') format('woff2');
      font-weight: 200 800;
      font-style: italic;
      font-display: swap;
    }
    @font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
    @font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

    body {
      background-color: #FFFFFF;
      color: rgb(7, 54, 48);
      -webkit-tap-highlight-color: transparent;
      font-family: 'Karla', sans-serif;
    }

    h1, h2, h3, h4, h5, h6, .font-serif {
      font-family: 'Spectral', serif;
    }

    /* Minimal Custom Scrollbar */
    ::-webkit-scrollbar { width: 4px; height: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgb(219, 199, 174); border-radius: 4px; }

    /* Clean Input Styling (Typography focused) */
    .clean-input {
      border: none;
      border-bottom: 1px solid rgba(7, 54, 48, 0.2);
      border-radius: 0;
      background: transparent;
      padding: 0.25rem 0;
      transition: border-color 0.2s;
    }
    .clean-input:focus {
      outline: none;
      border-bottom-color: rgb(7, 54, 48);
      box-shadow: none;
    }
    /* Hide number arrows for clean look */
    input[type="number"]::-webkit-inner-spin-button, 
    input[type="number"]::-webkit-outer-spin-button { 
      -webkit-appearance: none; margin: 0; 
    }
    input[type="number"] { -moz-appearance: textfield; }

    /* Minimal Range Slider */
    input[type=range] {
      -webkit-appearance: none;
      width: 100%;
      background: transparent;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      height: 16px; width: 16px;
      border-radius: 50%;
      background: rgb(7, 54, 48);
      cursor: pointer;
      margin-top: -7px;
    }
    input[type=range]::-webkit-slider-runnable-track {
      width: 100%; height: 2px;
      cursor: pointer;
      background: rgba(7, 54, 48, 0.2);
    }
    input[type=range]::-moz-range-track {
      width: 100%; height: 2px;
      background: rgba(7, 54, 48, 0.2);
      border: none;
    }
    input[type=range]::-moz-range-thumb {
      height: 16px; width: 16px;
      border: none; border-radius: 50%;
      background: rgb(7, 54, 48);
      cursor: pointer;
    }
    .slider-scale {
      display: flex;
      justify-content: space-between;
      margin-top: 0.2rem;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgb(7, 54, 48);
      opacity: 0.4;
      font-family: 'Karla', sans-serif;
    }
    .year-egg {
      background: none;
      border: none;
      padding: 0;
      margin: 0;
      font: inherit;
      color: inherit;
      cursor: pointer;
    }
    .year-egg:hover { color: rgb(7, 54, 48); }

    /* Quiz Radio/Checkboxes */
    .hide-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
    
    .choice-item {
      transition: color 0.2s ease, background 0.2s ease;
      cursor: pointer;
      border-bottom: 1px solid rgba(7, 54, 48, 0.1);
      border-left: 3px solid transparent;
      padding: 1.25rem 0.75rem;
    }
    .choice-item:hover { color: rgb(7, 54, 48); }
    .hide-radio input[type="radio"]:checked + .choice-item {
      border-left-color: rgb(219, 199, 174);
      color: rgb(7, 54, 48);
    }
    
    .multi-choice-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      border-bottom: 1px solid rgba(7, 54, 48, 0.1);
      border-left: 3px solid transparent;
      padding: 1.25rem 0.75rem;
      transition: color 0.2s ease;
    }
    .multi-choice-item.multi-choice-exclusive {
      border-top: 1px solid rgba(7, 54, 48, 0.1);
      margin-top: 0.25rem;
    }
    .multi-choice-item.selected {
      border-left-color: rgb(219, 199, 174);
    }

    .custom-checkbox {
      accent-color: rgb(7, 54, 48);
      width: 1.2rem;
      height: 1.2rem;
      cursor: pointer;
      flex: none;
    }

    /* Animations */
    .fade-in { animation: fadeIn 0.5s ease-out forwards; opacity: 0; }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Quiz Progress Bar — thin line, square corners, matches the flat/no-card language */
    .quiz-progress-track {
      width: 100%;
      height: 2px;
      background: rgba(7, 54, 48, 0.1);
    }
    .quiz-progress-fill {
      height: 100%;
      background: rgb(7, 54, 48);
      transition: width 0.3s ease-out;
    }

    /* Income-required warning state on the Visualizer's income field.
       Stays inside the two-color system (no red) per design-system.md —
       signaled with full-opacity text + a solid heavier border instead of a new hue. */
    .field-warning {
      color: rgb(7, 54, 48);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-top: 0.5rem;
      display: none;
    }
    .field-warning.show { display: block; }
    input.clean-input.input-warning {
      border-bottom-width: 2px;
      border-bottom-color: rgb(7, 54, 48);
    }

    /* Chart Containers - No cards, just space */
    .chart-container {
      position: relative; width: 100%; max-width: 100%; margin: 0 auto;
      height: clamp(280px, 34vh, 380px);
    }


    /* Output panel tracks the control column instead of stretching to match it.
       Only sticks when the viewport is genuinely tall enough to hold the whole
       panel — otherwise it would half-stick and trap the strategy note. */
    @media (min-width: 1024px) and (min-height: 820px) {
      .calc-output-panel {
        position: sticky;
        top: 7rem;
        align-self: start;
      }
    }

    /* Privacy Banner Styling */
    #privacy-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #FDFCFB;
      border-top: 1px solid rgba(7, 54, 48, 0.1);
      padding: 1rem;
      z-index: 50;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
      transform: translateY(100%);
      transition: transform 0.3s ease-out;
    }
    #privacy-banner.show {
      transform: translateY(0);
    }

    @media print {
      .no-print { display: none !important; }
      * { color: black !important; background: transparent !important; }
    }

    /* ---------------------------------------------------------------
       Editorial imagery — duotone, brand-locked
       Two colours only: shadows resolve to brand-text (deep green),
       highlights to brand-accent1 (champagne). The source photograph is
       stripped to luminance first, so no third hue can enter the palette.
       Images are hotlinked, never embedded.
       --------------------------------------------------------------- */
    .duotone {
      position: relative;
      overflow: hidden;
      background-color: rgb(219, 199, 174);
      isolation: isolate;
    }
    .duotone img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(1) contrast(1.08) brightness(1.02);
      mix-blend-mode: multiply;
      transform: scale(1.001);
      transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    .duotone::after {
      content: "";
      position: absolute;
      inset: 0;
      background-color: rgb(7, 54, 48);
      mix-blend-mode: screen;
      opacity: 0.52;
      pointer-events: none;
      transition: opacity 500ms ease;
    }
    .group:hover .duotone img { transform: scale(1.045); }
    .group:hover .duotone::after { opacity: 0.38; }

    /* Full-bleed escape — 100vw is wrong inside the preview iframe (it
       measures the outer viewport and clips the headline). Width 100% of
       the view is enough once the landing wrapper is not max-width boxed. */
    .full-bleed {
      width: 100%;
      max-width: none;
      position: relative;
      left: auto;
      margin-left: 0;
    }
    body { overflow-x: hidden; }

    /* Landing hero — headline overlaid on the image */
    .hero-duotone {
      width: 100%;
      height: clamp(24rem, 42rem, 42rem);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-duotone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .hero-scrim {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(180deg,
        rgba(7, 54, 48, 0.30) 0%,
        rgba(7, 54, 48, 0.62) 55%,
        rgba(7, 54, 48, 0.78) 100%);
      pointer-events: none;
    }
    .hero-copy {
      position: relative;
      z-index: 2;
      text-align: center;
      width: 100%;
      max-width: 46rem;
      padding: 0 1.25rem;
      box-sizing: border-box;
    }
    .hero-copy h1 {
      color: #FFFFFF;
      font-size: clamp(2.15rem, 8.5vw, 4.5rem);
      line-height: 0.95;
      overflow-wrap: break-word;
    }
    .hero-copy p {
      color: rgba(238, 225, 216, 0.92);
      font-size: clamp(1rem, 3.6vw, 1.5rem);
    }

    /* Card imagery — 16:9 on mobile, 4:5 editorial portrait from md up */
    .card-duotone { aspect-ratio: 16 / 9; }
    @media (min-width: 768px) {
      .card-duotone { aspect-ratio: 4 / 5; }
    }

    /* Landing tool rows — landscape, full content width */
    .row-duotone { aspect-ratio: 16 / 9; }
    @media (min-width: 768px) {
      .row-duotone { aspect-ratio: 21 / 9; }
    }

    /* Header — one locked row. Nav never wraps onto the hero.
       z-index hardcoded here because z-50 was purged from the Tailwind build. */
    header.sticky { z-index: 50; }
    .header-bar {
      max-width: 80rem;
      margin: 0 auto;
      padding: 0 1rem;
      height: 5.5rem;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      column-gap: 1.25rem;
    }
    @media (min-width: 640px) {
      .header-bar { padding: 0 1.5rem; }
    }
    @media (min-width: 1024px) {
      .header-bar { padding: 0 2rem; column-gap: 2rem; }
    }
    header .site-nav { display: none; }
    header .menu-btn { display: inline-flex; align-items: center; justify-self: end; }
    @media (min-width: 1024px) {
      header .site-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        gap: 1.15rem;
        height: 100%;
        white-space: nowrap;
        min-width: 0;
      }
      header .menu-btn { display: none; }
      #mobile-menu { display: none !important; }
    }
    @media (min-width: 1280px) {
      header .site-nav { gap: 1.75rem; }
    }
    header nav > a.nav-btn { align-self: center; flex-shrink: 0; }
    button.nav-btn {
      background: transparent;
      border-top: 0;
      border-left: 0;
      border-right: 0;
      font: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
      cursor: pointer;
      padding: 0;
      margin: 0;
      flex-shrink: 0;
    }
    .nav-fly {
      position: relative;
      display: flex;
      align-items: center;
      height: 100%;
      flex-shrink: 0;
    }
    .nav-fly-panel {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      left: auto;
      min-width: 12.5rem;
      background: #FDFCFB;
      border: 1px solid rgba(7, 54, 48, 0.1);
      border-top: 2px solid rgb(7, 54, 48);
      padding: 0.5rem 0;
      z-index: 50;
    }
    .nav-fly:hover .nav-fly-panel,
    .nav-fly:focus-within .nav-fly-panel,
    .nav-fly.is-open .nav-fly-panel {
      display: block;
    }
    .nav-fly:hover button.nav-btn,
    .nav-fly:focus-within button.nav-btn {
      color: rgb(7, 54, 48);
    }
    .nav-sub {
      display: block;
      padding: 0.65rem 1rem;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(7, 54, 48, 0.6);
      text-decoration: none;
    }
    .nav-sub:hover,
    .nav-sub:focus-visible {
      color: rgb(7, 54, 48);
      background: rgba(219, 199, 174, 0.35);
      outline: none;
    }
    .nav-sub-note {
      display: block;
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      font-weight: 700;
      color: rgba(7, 54, 48, 0.4);
      margin-top: 0.15rem;
    }

    @media (prefers-reduced-motion: reduce) {
      .duotone img, .duotone::after { transition: none; }
      .group:hover .duotone img { transform: scale(1.001); }
    }

    @media print {
      .duotone, .hero-scrim { display: none !important; }
    }

    /* Footer licence: sentence on line 1; CC BY-SA + marks glued, centered on line 2. */
    .license-block {
      text-align: center;
      margin-bottom: 0.75rem;
    }
    .license-sentence {
      margin: 0 auto 0.4rem;
      max-width: 40rem;
      text-wrap: balance;
    }
    .license-mark {
      margin: 0;
      display: flex;
      justify-content: center;
    }
    .cc-cluster {
      display: inline-flex;
      align-items: center;
      gap: 0.4em;
      white-space: nowrap;
    }
    .cc-icons {
      display: inline-flex;
      align-items: center;
      gap: 0.12em;
    }
    .cc-icons svg {
      width: 1em;
      height: 1em;
      display: block;
      flex: none;
    }

    .footer-actions {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      margin: 0;
    }
    .footer-text-link {
      background: none;
      border: none;
      box-shadow: none;
      padding: 0;
      margin: 0;
      font: inherit;
      font-weight: 700;
      font-size: 0.7rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      text-decoration: none;
      color: inherit;
      border-bottom: 1px solid currentColor;
      padding-bottom: 1px;
      cursor: pointer;
      line-height: 1.2;
    }
    .footer-text-link:hover {
      color: rgb(7, 54, 48);
    }
    .footer-text-link:focus {
      outline: 1px solid rgb(7, 54, 48);
      outline-offset: 4px;
    }

    body.privacy-open { overflow: hidden; }

    .privacy-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 8vh 1rem 2rem;
      overflow-y: auto;
    }
    .privacy-modal.hidden { display: none; }
    .privacy-modal-scrim {
      position: fixed;
      inset: 0;
      background: rgba(7, 54, 48, 0.72);
    }
    .privacy-modal-panel {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 42rem;
      max-height: 84vh;
      overflow-y: auto;
      background: #FFFFFF;
      color: rgb(7, 54, 48);
      border: 1px solid rgba(7, 54, 48, 0.15);
      padding: 2rem 1.5rem 2.5rem;
    }
    @media (min-width: 640px) {
      .privacy-modal-panel { padding: 2.5rem 2.5rem 3rem; }
    }
    @media print {
      .privacy-modal { display: none !important; }
    }

    .arch-strip {
      width: 100%;
      height: 6.5rem;
      margin: 0 0 1.25rem;
    }
    @media (min-width: 768px) {
      .arch-strip { height: 7.5rem; }
    }

    /* Equation colour — Gross Need is a brick, not a fintech error red.
       Offsets and the gap stay inside the brand green. */
    .eq-gross { color: rgb(122, 52, 42); }
    .eq-offset { color: rgb(7, 54, 48); opacity: 0.62; }
    .eq-gap { color: rgb(7, 54, 48); }

    .eq-label {
      display: block;
      font-family: Karla, sans-serif;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgb(90, 110, 104);
      margin-bottom: 0.35rem;
    }
    .eq-label-strong { color: rgb(7, 54, 48); }
    .eq-figure {
      display: block;
      font-family: Spectral, serif;
      font-weight: 900;
      font-size: clamp(1.35rem, 2.2vw, 1.85rem);
      letter-spacing: -0.03em;
      line-height: 1.15;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
    #card-net.eq-figure {
      font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    }

    .dime-equation {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.1rem 0.55rem;
      align-items: end;
      margin-bottom: 2rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid rgba(7, 54, 48, 0.1);
    }
    .eq-op {
      display: none;
      font-family: Spectral, serif;
      font-weight: 300;
      font-size: 1.5rem;
      line-height: 1;
      color: rgb(90, 110, 104);
      padding-bottom: 0.12em;
    }
    @media (min-width: 640px) {
      .dime-equation {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.15fr);
      }
      .eq-op { display: block; }
    }

    .cover-block {
      margin: 0 0 2rem;
      padding-bottom: 0;
    }
    .cover-block .eq-figure { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 700; }
    .cover-note {
      margin: 0.45rem 0 0;
      max-width: 28rem;
      font-family: Karla, sans-serif;
      font-size: 0.75rem;
      line-height: 1.5;
      color: rgb(90, 110, 104);
    }

    code.formula,
    math.formula {
      font-family: 'Karla', sans-serif;
      font-size: 0.95em;
      font-weight: 600;
      letter-spacing: 0.01em;
      color: rgb(7, 54, 48);
    }

    /* Academic expansions: dashed term, definition sits under it. */
    .term-unit { display: inline; }
    button.term {
      font: inherit;
      color: inherit;
      background: none;
      border: none;
      border-bottom: 1px dashed rgba(7, 54, 48, 0.55);
      padding: 0;
      cursor: help;
      border-radius: 0;
    }
    button.term:hover,
    button.term[aria-expanded="true"] {
      border-bottom-color: rgb(7, 54, 48);
    }
    button.term:focus-visible {
      outline: 1px solid rgb(7, 54, 48);
      outline-offset: 3px;
    }
    .term-def {
      display: block;
      margin: 0.55rem 0 0.75rem;
      padding: 0 0 0 0.85rem;
      border-left: 2px solid rgb(219, 199, 174);
      font-family: 'Karla', sans-serif;
      font-size: 0.92em;
      font-weight: 400;
      font-style: normal;
      letter-spacing: 0;
      text-transform: none;
      color: rgba(7, 54, 48, 0.72);
      line-height: 1.5;
    }
    .term-def.hidden { display: none; }

    details.assumptions-disclosure {
      margin-top: 1.5rem;
    }
    details.assumptions-disclosure summary {
      cursor: pointer;
      font-family: 'Karla', sans-serif;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(7, 54, 48, 0.6);
      list-style: none;
      border-bottom: 1px solid rgba(7, 54, 48, 0.2);
      padding-bottom: 0.35rem;
      display: inline-block;
    }
    details.assumptions-disclosure summary::-webkit-details-marker { display: none; }
    details.assumptions-disclosure summary::after {
      content: " +";
      font-weight: 400;
    }
    details.assumptions-disclosure[open] summary::after { content: " −"; }
    details.assumptions-disclosure summary:hover { color: rgb(7, 54, 48); }

    /* Sticky net-gap bar. Header already owns the top, so this docks bottom.
       ID + .hidden so Tailwind's utility cannot lose to the flex rule. */
    #sticky-result {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 40;
      background: #FFFFFF;
      border-top: 1px solid rgba(7, 54, 48, 0.15);
      padding: 0.7rem 1.25rem;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
      cursor: pointer;
    }
    #sticky-result:not(.hidden) { display: flex; }
    #sticky-result.hidden { display: none; }
    #sticky-result-net {
      font-size: clamp(1.35rem, 4vw, 1.85rem);
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
    @media print {
      #sticky-result { display: none !important; }
      header, footer, .no-print, #privacy-banner, #mobile-menu, nav[aria-label="Visualizer sections"], .nav-fly-panel { display: none !important; }
      aside[aria-label="Visualizer inputs"] { display: none !important; }
      .calc-output-panel { width: 100% !important; }
      body { background: white !important; }
    }

    .cc-search .pagefind-ui { font-family: Karla, sans-serif; }
    .cc-search .pagefind-ui__form {
      background: transparent !important;
      box-shadow: none !important;
      border: 0 !important;
      border-radius: 0 !important;
      padding: 0 !important;
    }
    .cc-search .pagefind-ui__form:before { display: none !important; }
    .cc-search .pagefind-ui__search-input {
      font-family: Spectral, serif !important;
      font-size: 1.5rem !important;
      font-weight: 700 !important;
      color: rgb(7, 54, 48) !important;
      background: transparent !important;
      border: 0 !important;
      border-bottom: 1px solid rgba(7, 54, 48, 0.25) !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      height: auto !important;
      padding: 0.5rem 5rem 0.6rem 0 !important;
      width: 100% !important;
    }
    .cc-search .pagefind-ui__search-input:focus { outline: none !important; border-bottom-color: rgb(7, 54, 48) !important; }
    .cc-search .pagefind-ui__search-clear,
    .cc-search .pagefind-ui__suppressed { font-family: Karla, sans-serif; }
    .cc-search .pagefind-ui__drawer { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
    .cc-search .pagefind-ui__result {
      border: 0 !important;
      border-bottom: 1px solid rgba(7, 54, 48, 0.1) !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      padding: 1.25rem 0 !important;
      background: transparent !important;
    }
    .cc-search .pagefind-ui__result-link {
      font-family: Spectral, serif;
      font-weight: 700;
      color: rgb(7, 54, 48);
      text-decoration: none;
    }
    .cc-search .pagefind-ui__result-excerpt { font-family: Spectral, serif; color: rgb(90, 110, 104); }
    .cc-search .pagefind-ui__button { background: transparent; box-shadow: none; border-radius: 0; }

    .health-bar-row { display: flex; align-items: center; gap: 0.75rem; }
    .health-bar-label {
      width: 7.5rem; flex-shrink: 0;
      font-family: Spectral, serif; font-size: 0.85rem; text-align: right;
    }
    .health-bar-track { flex: 1; height: 1.5rem; background: rgb(238, 225, 216); display: flex; }
    .health-bar-gap { height: 100%; background: rgb(7, 54, 48); }
    .health-bar-off { height: 100%; background: rgb(219, 199, 174); }
    .health-bar-val {
      font-family: Karla, sans-serif; font-size: 0.7rem; font-weight: 700;
      letter-spacing: 0.05em; color: rgba(7, 54, 48, 0.6);
      min-width: 4.5rem; text-align: right; flex-shrink: 0;
    }
    .health-inf-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    .health-inf-table th, .health-inf-table td { padding: 0.45rem 0.6rem; text-align: right; border-bottom: 1px solid rgba(7, 54, 48, 0.1); }
    .health-inf-table th:first-child, .health-inf-table td:first-child { text-align: left; }
    .health-inf-table th {
      font-family: Karla, sans-serif; font-size: 0.7rem; font-weight: 700;
      letter-spacing: 0.1em; text-transform: uppercase; color: rgba(7, 54, 48, 0.6);
      border-bottom: 2px solid rgba(7, 54, 48, 0.2);
    }
    .health-inf-table td { font-family: Spectral, serif; }
    @media (min-width: 1024px) and (min-height: 820px) {
      .health-output-panel { position: sticky; top: 6rem; align-self: start; }
    }

    a.nav-btn { text-decoration: none; }


