/* fairshare-ui.css — styles for the shared Fair Share Calculator renderer
   (fairshare-ui.js). Loaded by BOTH the root app (before its inline styles,
   which therefore win any conflict) and the SSR /fairshare/{slug} pages
   (where this file is the only source for these classes). Self-sufficient:
   tokens are declared here with the brand values. */

:root {
  --forest-deep: #1a3a2a;
  --forest: #2d5a3d;
  --warm-white: #fdfcfa;
  --gold: #b8965a;
  --sage-line: #d9e4dc;
  --gold-soft: #f4ecdd;
  --muted: #5c6f63;
  --lk-radius: 14px;
  --lk-shadow: 0 1px 2px rgba(26,58,42,.05), 0 8px 24px -12px rgba(26,58,42,.18);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── host-page primitives the renderer leans on ── */
.lk-card {
  background: var(--warm-white);
  border: 1.5px solid var(--sage-line);
  border-radius: var(--lk-radius);
  box-shadow: var(--lk-shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.lk-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--forest);
}
.lk-card h3 .lk-src { float: right; color: #5c6f63; letter-spacing: 0.02em; text-transform: none; font-weight: 600; }
.lk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.lk-chip-unclaimed { color: #7d6335; border: 1.5px solid var(--gold); background: var(--gold-soft); }
.lk-rec-head { margin-bottom: 18px; }
.lk-rec-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 30px; line-height: 1.08; margin: 10px 0 4px;
  color: var(--forest-deep);
}
.lk-addr { color: var(--muted); font-weight: 600; font-size: 16px; margin: 0 0 24px; }
/* Doubled selector (.lk-card.lk-cta-claim) on purpose: host pages load their
   own styles AFTER this file, and a host's plain `.lk-card { background: … }`
   ties on specificity and wins by order — which turned this card white under
   its white text on / (found 2026-08-21). The compound selector outranks any
   single-class host rule regardless of order. */
.lk-card.lk-cta-claim { background: var(--forest-deep); border: 0; color: #e9efe9; }
.lk-card.lk-cta-claim h3 { color: #9db8a5; }
.lk-big {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700; line-height: 1.15;
  color: var(--warm-white); margin: 0 0 14px;
  text-wrap: balance;
}
.lk-fine { font-size: 14px; color: #b7c6ba; margin: 12px 0 0; line-height: 1.5; }
.lk-hint { font-size: 13.5px; color: #5c6f63; margin: 26px 0 0; font-weight: 500; }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest); color: var(--warm-white);
  border: 0; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 16.5px;
  border-radius: 10px; padding: 14px 20px; width: 100%;
  transition: background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.pbtn:hover { background: #24492f; }
.pbtn:focus-visible { outline: 3px solid #8ab89a; outline-offset: 2px; }
.pbtn-gold { background: var(--gold); color: #2a2214; }
.pbtn-gold:hover { background: #a8874e; }
.fs-new {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #2a2214; background: var(--gold);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}

/* ── report pieces ── */
.fs-step-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: #5c6f63; margin: 0 0 6px;
}
.fs-big {
  font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 32px; letter-spacing: -0.015em; line-height: 1.1;
  color: var(--forest-deep); margin: 6px 0 2px;
  font-family: var(--font-sans);
}
.fs-big .fs-unit { font-size: 0.52em; font-weight: 600; color: #5c6f63; letter-spacing: 0; }
.fs-body { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.fs-math { margin: 10px 0 0; font-size: 13.5px; color: #5c6f63; font-variant-numeric: tabular-nums; font-weight: 600; }
.fs-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 12px; margin-top: 12px;
  font-family: var(--font-sans);
}
.fs-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fs-chip-drifts { background: #f5ecdb; color: #96742f; }
.fs-chip-fixed { background: #e9f1ea; color: #14572d; }
.fs-chip-frozen { background: #e8eaef; color: #3d4c66; }
.fs-delta {
  margin-top: 12px; background: #f5ecdb; border-radius: 10px;
  padding: 10px 14px; font-size: 14px; color: #96742f; font-weight: 600;
}
.fs-delta strong { color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.fs-between {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #7d6335; margin: -8px 0 12px 22px;
}
.fs-ratebar { margin-top: 14px; }
.fs-ratebar .fs-track { display: flex; gap: 2px; height: 38px; border-radius: 8px; overflow: hidden; }
.fs-ratebar .fs-seg-school { background: #17703a; }
.fs-ratebar .fs-seg-county { background: #bd7a1c; }
.fs-ratebar .fs-seg-muni { background: #4fae72; }
.fs-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; }
.fs-legend .fs-lg { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; }
.fs-legend .fs-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fs-legend b { color: var(--forest-deep); font-variant-numeric: tabular-nums; }
.fs-split { margin-top: 14px; border-top: 1px solid var(--sage-line); }
.fs-split .fs-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--sage-line); font-size: 14.5px;
}
.fs-split .fs-row .fs-who { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.fs-split .fs-row .fs-amt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--forest-deep); }
.fs-split .fs-row-total { border-bottom: none; font-size: 15.5px; }
.fs-split .fs-row-total .fs-amt { font-size: 18px; }
.fs-spectrum-wrap { margin-top: 40px; }
.fs-spectrum { position: relative; height: 12px; border-radius: 6px; display: flex; margin-top: 44px; }
.fs-zone-under { background: #e9f1ea; border-radius: 6px 0 0 6px; }
.fs-zone-fair { background: #e3e8e4; }
.fs-zone-above { background: #f5ecdb; }
.fs-zone-appeal { background: #f3e4dc; border-radius: 0 6px 6px 0; }
.fs-marker { position: absolute; top: -7px; bottom: -7px; width: 2px; background: #9caea1; }
.fs-marker-legal { background: transparent; width: 0; border-left: 2px dashed #a1502e; }
.fs-marker .fs-tag {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px;
  white-space: nowrap; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #5c6f63;
}
.fs-marker-legal .fs-tag { color: #a1502e; }
.fs-youband {
  position: absolute; top: -3px; height: 18px; border-radius: 9px;
  background: rgba(26, 58, 42, 0.14); border: 1.5px solid var(--forest);
}
.fs-youdot {
  position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--forest-deep); border: 3px solid var(--warm-white);
  transform: translate(-50%, -50%); box-shadow: 0 1px 5px rgba(26, 58, 42, 0.4); z-index: 2;
}
.fs-youdot .fs-tag {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--forest-deep); white-space: nowrap;
}
.fs-zone-labels { display: flex; margin-top: 42px; font-size: 11px; font-weight: 600; color: #5c6f63; }
.fs-zone-labels div { padding-right: 6px; }
.fs-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #5c6f63; font-variant-numeric: tabular-nums; font-weight: 600; }
.fs-dotfield { position: relative; height: 46px; margin-top: 12px; }
.fs-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); opacity: 0.7; transform: translate(-50%, -50%);
}
.fs-verdict { margin-top: 20px; border-radius: 14px; padding: 20px 22px; }
.fs-verdict .fs-v-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.fs-verdict .fs-v-head::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: currentColor; flex: none; }
.fs-verdict p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.fs-verdict p strong { color: var(--forest-deep); }
.fs-verdict-under, .fs-verdict-fair { background: #e9f1ea; }
.fs-verdict-under .fs-v-head, .fs-verdict-fair .fs-v-head { color: #14572d; }
.fs-verdict-above { background: #f5ecdb; }
.fs-verdict-above .fs-v-head { color: #96742f; }
.fs-verdict-appeal { background: #f3e4dc; }
.fs-verdict-appeal .fs-v-head { color: #a1502e; }
.fs-verdict-info { background: #e8eaef; }
.fs-verdict-info .fs-v-head { color: #3d4c66; }
.fs-comps { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.fs-comps th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #5c6f63; padding: 6px 8px 6px 0; border-bottom: 1.5px solid var(--sage-line);
}
.fs-comps td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--sage-line); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.fs-comps td:first-child { color: var(--forest-deep); font-weight: 600; }
.fs-comps .fs-num { text-align: right; }
.fs-comps th.fs-num { text-align: right; }
.fs-comps-scroll { overflow-x: auto; }
@media (max-width: 480px) { .fs-comps .fs-optional { display: none; } }

/* editable figures */
.fs-editwrap { display: inline-flex; align-items: baseline; gap: 6px; }
.fs-num-input {
  font: inherit; color: inherit; background: transparent;
  border: none; border-bottom: 2px dashed var(--gold);
  border-radius: 0; padding: 0 1px; margin: 0;
  font-variant-numeric: tabular-nums; min-width: 3ch; max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.fs-num-input:focus { outline: none; border-bottom: 2px solid var(--forest); }
.fs-undo {
  font-family: var(--font-sans); font-size: 0.55em; font-weight: 700;
  line-height: 1; color: #7d6335; background: #faf8f5;
  border: 1.5px solid var(--gold); border-radius: 50%;
  width: 1.6em; height: 1.6em; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center;
}
.fs-math .fs-undo { font-size: 0.9em; }
.fs-undo:hover { background: var(--gold); color: #2a2214; }
.fs-undo:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.fs-edited-note {
  margin: 14px 0 6px; background: #f5ecdb; border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: #96742f;
}
.fs-edited-note button {
  font: inherit; font-weight: 700; color: #96742f; background: none;
  border: none; padding: 0; text-decoration: underline; cursor: pointer;
}

/* SID membership toggle — the roll can't know, the owner's bill can */
.fs-sid { margin-top: 14px; border-top: 1px dashed var(--sage-line); padding-top: 12px; }
.fs-sid-row {
  display: flex; align-items: center; gap: 9px; margin-top: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  font-family: var(--font-sans);
}
.fs-sid-row input { width: 17px; height: 17px; accent-color: #2d5a3d; flex: none; cursor: pointer; }
