@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/inter-400.8909904ab6.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/inter-500.f3779f1efc.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/inter-600.f9a06e79cd.woff2') format('woff2')}
/* FlatDesk design tokens — single source of truth for all UI.
   Use these variables everywhere (toolbar, side panel, dashboard, setup).
   Never hard-code colours, radii or font sizes in components. */

:root {
  /* ---------- Brand (Swiss navy and blue) ----------
     A deep navy for headings and the mark, one clear bright blue for what can
     be pressed. Checked for contrast: white on 700 is 6.3:1, 500 links on
     white 5.2:1, navy headings 17:1. */
  --fd-brand-900: #000A26;
  --fd-brand-800: #001155;   /* wordmark, headings on light: Swiss navy */
  --fd-brand-700: #0A5CC2;   /* primary buttons: the one bright blue */
  --fd-brand-600: #0850A8;   /* primary hover */
  --fd-brand-500: #0B6BD3;   /* links, focus ring */
  --fd-brand-200: #C4DBF6;
  --fd-brand-100: #E3EEFC;   /* neutral badges */
  --fd-brand-50:  #F2F7FE;   /* subtle backgrounds */

  /* Text and icons sitting ON a brand-coloured surface. Not the same thing as
     --fd-white: that one flips to a near-black surface colour in dark mode,
     which would put black text on a blue button. */
  --fd-on-brand: #FFFFFF;

  /* ---------- Neutrals (cool grey) ---------- */
  --fd-gray-900: #111827;    /* body text */
  --fd-gray-800: #1F2937;
  --fd-gray-700: #374151;
  --fd-gray-600: #4B5563;    /* secondary text, light labels */
  --fd-gray-500: #6B7280;    /* hints */
  --fd-gray-400: #9CA3AF;
  --fd-gray-300: #D1D5DB;    /* borders */
  --fd-gray-200: #E5E7EB;    /* dividers */
  --fd-gray-100: #F3F4F6;
  --fd-gray-50:  #F9FAFB;
  --fd-white:    #FFFFFF;

  /* ---------- States — reserved for the lights and status. Never decorative. ---------- */
  --fd-good-500:  #23A46A;   /* dot */
  --fd-good-600:  #1D8F5C;   /* form controls on success-tinted panels */
  --fd-good-700:  #16794C;   /* text on white or tint */
  --fd-good-200:  #B9E8CF;   /* soft border on success-tinted panels */
  --fd-good-50:   #E8F6EF;   /* tint */

  --fd-tight-500: #E3A21A;   /* dot — also used for "unknown" */
  --fd-tight-700: #8A5B00;
  --fd-tight-50:  #FDF4E1;

  --fd-no-500:    #D0453A;
  --fd-no-700:    #A32D24;
  --fd-no-50:     #FCEBE9;

  --fd-idle-500:  var(--fd-gray-400);  /* no profile yet */
  --fd-idle-700:  var(--fd-gray-600);
  --fd-idle-50:   var(--fd-gray-100);

  /* ---------- Federal noise-map scale ----------
     Official FOEN map colours, kept separate from product states: these
     encode modelled dB bands and must never look like FlatDesk scoring. */
  --fd-noise-quiet:   #19431F;
  --fd-noise-45:      #F7EB3A;
  --fd-noise-50:      #FFB34F;
  --fd-noise-55:      #F15A2B;
  --fd-noise-60:      #E84445;
  --fd-noise-65:      #9F3046;
  --fd-noise-loud:    #343A8F;
  --fd-noise-border:  rgba(15, 23, 42, 0.18);
  --fd-map-green-low: rgba(34, 197, 94, 0.15);
  --fd-map-green-high: rgba(22, 101, 52, 0.9);
  --fd-map-housing-very-low: #B91C1C;
  --fd-map-housing-low: #E11D48;
  --fd-map-housing-mid: #F59E0B;
  --fd-map-housing-good: #22C55E;
  --fd-map-housing-high: #0F766E;
  --fd-map-traffic: #DC2626;
  --fd-map-traffic-shadow: rgba(15, 23, 42, 0.35);
  --fd-map-transport-long: #9B2F7F;
  --fd-map-transport-mid-long: #D95F59;
  --fd-map-transport-mid: #F4B75F;
  --fd-map-transport-mid-short: #5AA469;
  --fd-map-transport-short: #237A57;

  /* ---------- Typography ---------- */
  --fd-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fd-text-xs:   11px;      /* uppercase labels */
  --fd-text-sm:   12px;
  --fd-text-base: 13px;      /* toolbar */
  --fd-text-md:   14px;      /* side panel, dashboard body */
  --fd-text-table: 15px;     /* dashboard table cells: read across a wide row */
  --fd-text-lg:   16px;
  --fd-text-xl:   20px;
  --fd-text-2xl:  24px;
  --fd-weight-regular:  400;
  --fd-weight-medium:   500;
  --fd-weight-semibold: 600;
  --fd-label-tracking:  0.06em;

  /* ---------- Shape & space ---------- */
  --fd-radius-sm:   6px;
  --fd-radius-md:   8px;     /* buttons, inputs */
  --fd-radius-lg:   12px;    /* cards, panels */
  --fd-radius-xl:   18px;    /* floating cards: the listing toolbar */
  --fd-radius-pill: 999px;   /* lights, badges */
  --fd-space-1: 4px;
  --fd-space-2: 8px;
  --fd-space-3: 12px;
  --fd-space-4: 16px;
  --fd-space-6: 24px;
  --fd-space-8: 32px;

  --fd-toolbar-height: 44px;
  --fd-shadow-toolbar: 0 1px 2px rgba(15, 31, 54, 0.08), 0 4px 16px rgba(15, 31, 54, 0.10);
  --fd-shadow-panel:   0 8px 32px rgba(15, 31, 54, 0.16);
  --fd-shadow-switch:  0 1px 2px rgba(0, 0, 0, 0.22);
  --fd-shadow-segment: 0 1px 3px rgba(15, 23, 42, 0.14);
  --fd-focus-ring:     0 0 0 2px var(--fd-white), 0 0 0 4px var(--fd-brand-500);

  --fd-motion: 150ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  :root { --fd-motion: 0ms linear; }
}

/* Dark theme — dashboard & side panel only (the in-page toolbar always uses light). */
[data-fd-theme="dark"] {
  /* The brand ramp has to flip too. Without this, headings and links keep the
     dark navy --fd-brand-800 and disappear into the background, and the primary
     button keeps a dark fill. Added 21 Sep 2026 after the dashboard shipped
     with unreadable headings in dark mode. */
  --fd-brand-800: #E8F1FD;   /* headings, link text */
  --fd-brand-700: #1E6BCF;   /* primary buttons: white text at 5.2:1 */
  --fd-brand-600: #3A86E6;   /* primary hover */
  --fd-brand-500: #7AB4F5;   /* links, focus ring */
  --fd-brand-200: #1D3A6B;

  --fd-gray-900: #F3F4F6;
  --fd-gray-800: #E5E7EB;
  --fd-gray-700: #D1D5DB;
  --fd-gray-600: #9CA3AF;
  --fd-gray-500: #8B93A1;
  --fd-gray-300: #374151;
  --fd-gray-200: #2A3140;
  --fd-gray-100: #1C2230;
  --fd-gray-50:  #151A24;
  --fd-white:    #0F141D;
  --fd-brand-50:  #0B1733;
  --fd-brand-100: #12264D;
  --fd-good-700:  #5BD39A;  --fd-good-50:  #10291F;
  --fd-tight-700: #F2C25A;  --fd-tight-50: #2E2410;
  --fd-no-700:    #F08A80;  --fd-no-50:    #33161A;
  --fd-noise-border: rgba(226, 232, 240, 0.24);
  --fd-map-green-low: rgba(34, 197, 94, 0.22);
  --fd-map-green-high: rgba(134, 239, 172, 0.8);
  --fd-map-traffic-shadow: rgba(2, 6, 23, 0.55);
}

/* Tabular figures for every price, percentage and m² value */
.fd-num { font-variant-numeric: tabular-nums; }

:root{color-scheme:light dark}
@media (prefers-color-scheme: dark){:root{
  /* The brand ramp has to flip too. Without this, headings and links keep the
     dark navy --fd-brand-800 and disappear into the background, and the primary
     button keeps a dark fill. Added 21 Sep 2026 after the dashboard shipped
     with unreadable headings in dark mode. */
  --fd-brand-800: #E8F1FD;   /* headings, link text */
  --fd-brand-700: #1E6BCF;   /* primary buttons: white text at 5.2:1 */
  --fd-brand-600: #3A86E6;   /* primary hover */
  --fd-brand-500: #7AB4F5;   /* links, focus ring */
  --fd-brand-200: #1D3A6B;

  --fd-gray-900: #F3F4F6;
  --fd-gray-800: #E5E7EB;
  --fd-gray-700: #D1D5DB;
  --fd-gray-600: #9CA3AF;
  --fd-gray-500: #8B93A1;
  --fd-gray-300: #374151;
  --fd-gray-200: #2A3140;
  --fd-gray-100: #1C2230;
  --fd-gray-50:  #151A24;
  --fd-white:    #0F141D;
  --fd-brand-50:  #0B1733;
  --fd-brand-100: #12264D;
  --fd-good-700:  #5BD39A;  --fd-good-50:  #10291F;
  --fd-tight-700: #F2C25A;  --fd-tight-50: #2E2410;
  --fd-no-700:    #F08A80;  --fd-no-50:    #33161A;
  --fd-noise-border: rgba(226, 232, 240, 0.24);
  --fd-map-green-low: rgba(34, 197, 94, 0.22);
  --fd-map-green-high: rgba(134, 239, 172, 0.8);
  --fd-map-traffic-shadow: rgba(2, 6, 23, 0.55);}}
/* The calculator site. Built on src/styles/tokens.css (prepended by
   build.mjs, together with a prefers-color-scheme copy of its dark theme) and
   the same button and pill rules as the extension's components.css.

   The only sizes not in tokens.css are the two display sizes below: the
   extension never shows a number this large, and the total on this page has to
   be the heaviest thing on it. */

:root {
  --site-total: clamp(40px, 9vw, 60px);
  --site-h1: clamp(24px, 4.4vw, 32px);
  --site-max: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fd-gray-50);
  color: var(--fd-gray-900);
  font-family: var(--fd-font);
  font-size: var(--fd-text-lg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--fd-brand-500); }
a:focus-visible { outline: none; box-shadow: var(--fd-focus-ring); border-radius: var(--fd-radius-sm); }

.wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--fd-space-4);
}

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

/* ---------- Header: logo and languages, nothing else ---------- */

.site-header {
  border-bottom: 1px solid var(--fd-gray-200);
  background: var(--fd-white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fd-space-3);
  min-height: 56px;
}

/* Wordmark lockup (brand-style.md §2): gap = half the icon's height. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fd-brand-800);
  font-size: var(--fd-text-xl);
  font-weight: var(--fd-weight-semibold);
  letter-spacing: -0.01em;
}
.brand svg { display: block; flex: none; }

/* Same look as the dashboard's language bar, as links. */
.lang-bar { display: flex; gap: var(--fd-space-1); }
.lang-bar__flag {
  display: flex;
  align-items: center;
  gap: var(--fd-space-1);
  min-height: 32px;
  padding: 2px var(--fd-space-2) 2px 4px;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-sm);
  color: var(--fd-gray-600);
  font-size: var(--fd-text-xs);
  font-weight: var(--fd-weight-semibold);
  letter-spacing: var(--fd-label-tracking);
  text-decoration: none;
  transition: background var(--fd-motion), color var(--fd-motion);
}
.lang-bar__flag svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--fd-gray-200) inset;
  opacity: 0.55;
  transition: opacity var(--fd-motion);
}
.lang-bar__flag:hover { background: var(--fd-gray-100); color: var(--fd-gray-900); }
.lang-bar__flag:hover svg,
.lang-bar__flag[aria-current='page'] svg { opacity: 1; }
.lang-bar__flag[aria-current='page'] {
  border-color: var(--fd-gray-200);
  background: var(--fd-white);
  color: var(--fd-gray-900);
}
@media (max-width: 420px) {
  .lang-bar__flag svg { display: none; }
  .lang-bar__flag { padding: 2px var(--fd-space-2); }
}

/* ---------- Page ---------- */

main { padding: var(--fd-space-6) 0 var(--fd-space-8); }

h1 {
  margin: 0;
  font-size: var(--site-h1);
  line-height: 1.2;
  font-weight: var(--fd-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--fd-brand-800);
  text-wrap: balance;
}

.lead {
  margin: var(--fd-space-2) 0 var(--fd-space-6);
  max-width: 62ch;
  color: var(--fd-gray-600);
  font-size: var(--fd-text-lg);
}

.card {
  background: var(--fd-white);
  border: 1px solid var(--fd-gray-200);
  border-radius: var(--fd-radius-lg);
  padding: var(--fd-space-6);
}

/* Phones: stacked, inputs first. Wide screens: inputs beside the result. */
.calc {
  display: grid;
  gap: var(--fd-space-4);
  align-items: start;
}
/* The example and privacy notes sit under the inputs on wide screens and after
   the result on phones, so the total reaches the first screen. */
.calc__notes { order: 3; }
.calc__notes .note:first-child { margin-top: 0; }
@media (min-width: 820px) {
  .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: var(--fd-space-6); row-gap: var(--fd-space-4); }
  .inputs { grid-column: 1; grid-row: 1; }
  .result { grid-column: 2; grid-row: 1 / span 2; }
  .calc__notes { grid-column: 1; grid-row: 2; padding: 0 var(--fd-space-2); }
}
@media (max-width: 480px) {
  .card { padding: var(--fd-space-4); }
  main { padding-top: var(--fd-space-4); }
  .lead { font-size: var(--fd-text-md); margin-bottom: var(--fd-space-4); }
  .field + .field { margin-top: var(--fd-space-2); }
  .field__box { height: 48px; }
  .calc__notes { padding: 0 var(--fd-space-1); }
}

/* ---------- Inputs ---------- */

.field + .field { margin-top: var(--fd-space-4); }

.field__label {
  display: block;
  font-size: var(--fd-text-md);
  font-weight: var(--fd-weight-semibold);
  color: var(--fd-gray-900);
}

.field__hint {
  margin: 2px 0 var(--fd-space-2);
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-600);
}

.field__box {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--fd-gray-300);
  border-radius: var(--fd-radius-md);
  background: var(--fd-white);
  transition: border-color var(--fd-motion), box-shadow var(--fd-motion);
}
.field__box:hover { border-color: var(--fd-gray-400); }
.field__box:focus-within { border-color: var(--fd-brand-500); box-shadow: var(--fd-focus-ring); }
.field__box:has([aria-invalid='true']) { border-color: var(--fd-no-500); }

.field__unit {
  padding: 0 0 0 var(--fd-space-3);
  font-size: var(--fd-text-md);
  font-weight: var(--fd-weight-semibold);
  color: var(--fd-gray-500);
}

.field__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 var(--fd-space-3) 0 var(--fd-space-2);
  border: 0;
  background: transparent;
  color: var(--fd-gray-900);
  /* 16 px or more, so iOS does not zoom into the field. */
  font: inherit;
  font-size: var(--fd-text-xl);
  font-weight: var(--fd-weight-medium);
  font-variant-numeric: tabular-nums;
}
.field__input:focus { outline: none; }

.field__status {
  min-height: 1.5em;
  margin: var(--fd-space-1) 0 0;
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-600);
  font-variant-numeric: tabular-nums;
}
.field__status--error { color: var(--fd-no-700); }

.note {
  margin: var(--fd-space-4) 0 0;
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-600);
}
.note--privacy {
  display: flex;
  gap: var(--fd-space-2);
  padding-top: var(--fd-space-3);
  border-top: 1px solid var(--fd-gray-100);
}
.note--privacy svg { flex: none; margin-top: 2px; color: var(--fd-brand-700); }

/* ---------- Result ---------- */

.result__sentence { margin: 0; }

.result__pre,
.result__post {
  display: block;
  font-size: var(--fd-text-lg);
  color: var(--fd-gray-600);
  min-height: 1.5em;
}

.result__total {
  display: block;
  margin: 2px 0;
  font-size: var(--site-total);
  line-height: 1.05;
  font-weight: var(--fd-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--fd-brand-800);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result[data-state='needRent'] .result__total,
.result[data-state='invalid'] .result__total { color: var(--fd-gray-400); }
.result[data-state='invalid'] .result__pre { color: var(--fd-no-700); }
.result[data-state='needRent'] .result__post,
.result[data-state='invalid'] .result__post { visibility: hidden; }

/* Deposit vs rent: what is held and what is spent, at a glance. */
.bar {
  display: block;
  width: 100%;
  height: 10px;
  margin: var(--fd-space-4) 0 var(--fd-space-2);
  border-radius: var(--fd-radius-pill);
  background: var(--fd-gray-100);
  overflow: hidden;
}
.bar rect { transition: width var(--fd-motion), x var(--fd-motion); }
.bar__deposit { fill: var(--fd-brand-200); }
.bar__rent { fill: var(--fd-brand-700); }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  column-gap: var(--fd-space-3);
  padding: var(--fd-space-3) 0;
  border-top: 1px solid var(--fd-gray-100);
}
.row:first-child { border-top: 0; }
.row__key {
  width: 10px; height: 10px;
  margin-top: 7px;
  border-radius: var(--fd-radius-pill);
}
.row--deposit .row__key { background: var(--fd-brand-200); box-shadow: 0 0 0 1px var(--fd-brand-700) inset; }
.row--rent .row__key { background: var(--fd-brand-700); }
.row__label { font-weight: var(--fd-weight-semibold); font-size: var(--fd-text-md); }
.row__value {
  font-weight: var(--fd-weight-semibold);
  font-size: var(--fd-text-md);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.row__note {
  grid-column: 2 / 4;
  margin: 2px 0 0;
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-600);
}
/* The deposit note changes with the input (held / none / still open / months?).
   Two lines are always reserved, so the card does not jump while typing. */
.row--deposit .row__note { min-height: 3em; }
/* Unknown ≠ good: a missing deposit is amber, never a blank that reads as 0. */
.result[data-state='noDeposit'] #row-deposit-value { color: var(--fd-tight-700); }
.result[data-state='noDeposit'] .row--deposit .row__note,
.result[data-hint='months'] .row--deposit .row__note { color: var(--fd-tight-700); }

.scope {
  margin: var(--fd-space-2) 0 0;
  padding: var(--fd-space-2) var(--fd-space-3);
  border-radius: var(--fd-radius-md);
  background: var(--fd-gray-50);
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-700);
}

/* ---------- Call to action ---------- */

.cta {
  margin-top: var(--fd-space-6);
  padding-top: var(--fd-space-4);
  border-top: 1px solid var(--fd-gray-200);
}
.cta__lead {
  margin: 0 0 var(--fd-space-3);
  font-size: var(--fd-text-md);
  font-weight: var(--fd-weight-medium);
  color: var(--fd-gray-900);
}
.cta__note {
  margin: var(--fd-space-2) 0 0;
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-600);
}

.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fd-space-2);
  min-height: 44px;
  padding: 0 var(--fd-space-4);
  border-radius: var(--fd-radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--fd-text-md);
  font-weight: var(--fd-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fd-motion), border-color var(--fd-motion), box-shadow var(--fd-motion), transform var(--fd-motion);
}
.fd-btn:hover { transform: translateY(-1px); }
.fd-btn:active { transform: translateY(0); }
.fd-btn:focus-visible { outline: none; box-shadow: var(--fd-focus-ring); }
.fd-btn--primary { background: var(--fd-brand-700); color: var(--fd-on-brand); }
.fd-btn--primary:hover { background: var(--fd-brand-600); box-shadow: var(--fd-shadow-segment); }
@media (prefers-reduced-motion: reduce) {
  .fd-btn:hover, .fd-btn:active { transform: none; }
}
@media (max-width: 480px) { .cta .fd-btn { width: 100%; } }

/* Desktop: the store button. Phones: copy the link; the store stays a link. */
.cta__copy,
.cta__mobile-note,
.cta__store-text { display: none; }
.cta[data-device='mobile'] .cta__copy { display: inline-flex; }
.cta[data-device='mobile'] .cta__store { display: none; }
.cta[data-device='mobile'] .cta__store-text { display: inline; }
.cta[data-device='mobile'] .cta__mobile-note { display: block; }
.cta[data-device='mobile'] .cta__desktop-note { display: none; }

.cta__status { min-height: 1.5em; margin: var(--fd-space-2) 0 0; font-size: var(--fd-text-sm); color: var(--fd-good-700); }
.cta__status:empty { min-height: 0; margin: 0; }
.cta__status--error { color: var(--fd-gray-700); }
.cta__field {
  width: 100%;
  margin-top: var(--fd-space-2);
  padding: var(--fd-space-2);
  border: 1px solid var(--fd-gray-300);
  border-radius: var(--fd-radius-md);
  background: var(--fd-gray-50);
  color: var(--fd-gray-900);
  font: inherit;
  font-size: var(--fd-text-sm);
}

/* ---------- The product sample ---------- */

.sample { margin: var(--fd-space-8) 0 0; }
.sample__heading {
  margin: 0;
  font-size: var(--fd-text-xl);
  font-weight: var(--fd-weight-semibold);
  letter-spacing: -0.01em;
  color: var(--fd-brand-800);
}
.sample__caption { margin: var(--fd-space-1) 0 var(--fd-space-4); font-size: var(--fd-text-md); color: var(--fd-gray-600); max-width: 70ch; }

.sample__stage {
  display: grid;
  justify-items: center;
  gap: var(--fd-space-3);
  padding: var(--fd-space-6) var(--fd-space-4);
  border: 1px dashed var(--fd-gray-300);
  border-radius: var(--fd-radius-lg);
  background: var(--fd-gray-100);
  font-size: var(--fd-text-base);
  line-height: 1.2;
}
@media (min-width: 820px) { .sample__stage { padding: var(--fd-space-8); } }

.sample__badge { justify-self: end; margin: calc(-1 * var(--fd-space-4)) calc(-1 * var(--fd-space-2)) 0 0; }
@media (min-width: 820px) { .sample__badge { margin: calc(-1 * var(--fd-space-6)) calc(-1 * var(--fd-space-6)) 0 0; } }

.fd-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--fd-space-2);
  border-radius: var(--fd-radius-pill);
  background: var(--fd-brand-100);
  color: var(--fd-brand-800);
  font-size: var(--fd-text-sm);
  font-weight: var(--fd-weight-medium);
  white-space: nowrap;
}

/* The listing toolbar (src/ui/toolbar-styles.ts), drawn static. */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fd-space-2);
  max-width: 100%;
  padding: var(--fd-space-2) var(--fd-space-3);
  background: var(--fd-white);
  border: 1px solid var(--fd-gray-300);
  border-radius: var(--fd-radius-xl);
  box-shadow: var(--fd-shadow-panel);
  color: var(--fd-gray-900);
}
.demo-bar__logo { line-height: 0; }
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--fd-space-1);
  height: 28px;
  padding: 0 var(--fd-space-3);
  border-radius: var(--fd-radius-pill);
  border: 1px solid var(--fd-brand-200);
  background: var(--fd-brand-50);
  color: var(--fd-brand-700);
  font-weight: var(--fd-weight-medium);
  white-space: nowrap;
}
.fd-light {
  display: inline-flex;
  align-items: center;
  gap: var(--fd-space-2);
  height: 28px;
  padding: 0 var(--fd-space-3) 0 10px;
  border-radius: var(--fd-radius-pill);
  background: var(--fd-light-tint);
  border: 1px solid color-mix(in srgb, var(--fd-light-dot) 35%, transparent);
  white-space: nowrap;
}
.fd-light--good { --fd-light-dot: var(--fd-good-500); --fd-light-text: var(--fd-good-700); --fd-light-tint: var(--fd-good-50); }
.fd-light__dot { width: 8px; height: 8px; border-radius: var(--fd-radius-pill); background: var(--fd-light-dot); flex: none; }
.fd-label {
  font-size: var(--fd-text-xs);
  font-weight: var(--fd-weight-semibold);
  letter-spacing: var(--fd-label-tracking);
  text-transform: uppercase;
  color: var(--fd-gray-600);
}
.fd-light__value { display: inline-flex; gap: var(--fd-space-1); font-weight: var(--fd-weight-semibold); color: var(--fd-light-text); }
.fd-light__symbol { font-size: var(--fd-text-xs); }
.demo-cost {
  display: inline-flex;
  align-items: center;
  gap: var(--fd-space-2);
  height: 28px;
  padding: 0 var(--fd-space-2);
  border: 1px solid var(--fd-brand-200);
  border-radius: var(--fd-radius-md);
  white-space: nowrap;
}
.demo-cost__value { font-weight: var(--fd-weight-semibold); font-variant-numeric: tabular-nums; }
.demo-cost svg { color: var(--fd-gray-400); }

/* Its cost panel (src/ui/cost-panel.ts), "Cash to move in" section only. */
.demo-pop {
  width: 340px;
  max-width: 100%;
  background: var(--fd-white);
  border: 1px solid var(--fd-gray-200);
  border-radius: var(--fd-radius-lg);
  box-shadow: var(--fd-shadow-panel);
  font-size: var(--fd-text-md);
  line-height: 1.45;
  overflow: hidden;
}
.demo-pop__head { padding: var(--fd-space-3) var(--fd-space-4); border-bottom: 1px solid var(--fd-gray-200); }
.demo-pop__title { margin: 0; font-size: var(--fd-text-lg); font-weight: var(--fd-weight-semibold); letter-spacing: -0.01em; color: var(--fd-brand-800); }
.demo-pop__body { padding: var(--fd-space-1) var(--fd-space-4) var(--fd-space-3); }
.demo-pop__section {
  padding: var(--fd-space-2) 0 var(--fd-space-1);
  font-size: var(--fd-text-xs);
  font-weight: var(--fd-weight-semibold);
  letter-spacing: var(--fd-label-tracking);
  text-transform: uppercase;
  color: var(--fd-gray-600);
}
.demo-pop ul { list-style: none; margin: 0; padding: 0; }
.fd-cost-row { padding: var(--fd-space-2) 0; border-top: 1px solid var(--fd-gray-100); }
.fd-cost-row:first-child { border-top: 0; }
.fd-cost-row__top { display: flex; justify-content: space-between; gap: var(--fd-space-3); }
.fd-cost-row__top span:last-child { font-variant-numeric: tabular-nums; }
.fd-cost-row--total .fd-cost-row__top { font-weight: var(--fd-weight-semibold); }
.fd-cost-row__detail { margin: 2px 0 0; font-size: var(--fd-text-sm); color: var(--fd-gray-600); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--fd-gray-200);
  padding: var(--fd-space-4) 0 var(--fd-space-6);
  font-size: var(--fd-text-sm);
  color: var(--fd-gray-600);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--fd-space-2) var(--fd-space-4); }
.site-footer a { color: var(--fd-gray-600); }
.site-footer a:hover { color: var(--fd-brand-500); }

/* ---------- Language chooser (/) and 404 ---------- */

.chooser { list-style: none; margin: var(--fd-space-6) 0 0; padding: 0; display: grid; gap: var(--fd-space-3); max-width: 560px; }
.chooser a {
  display: flex;
  align-items: center;
  gap: var(--fd-space-3);
  padding: var(--fd-space-4);
  background: var(--fd-white);
  border: 1px solid var(--fd-gray-200);
  border-radius: var(--fd-radius-lg);
  color: var(--fd-gray-900);
  text-decoration: none;
  transition: border-color var(--fd-motion);
}
.chooser a:hover { border-color: var(--fd-brand-500); }
.chooser strong { display: block; color: var(--fd-brand-800); }
.chooser span { color: var(--fd-gray-600); font-size: var(--fd-text-md); }
.chooser svg { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--fd-gray-200) inset; }
