:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #67717a;
  --line: #d7dde2;
  --panel: #f8fafb;
  --green: #157347;
  --amber: #9a6500;
  --red: #b3261e;
  --brand: #1f4d5a;
  /* shared os- design tokens */
  --os-teal:      #1AACB0;
  --os-teal-dk:   #0f9ca0;
  --os-slate:     #3D4D5C;
  --os-off-white: #f7f9fb;
  --os-border:    #e0e8ec;
  --os-muted:     #6b7a87;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef2f4;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}

.topbar span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 8px;
}

.tabs {
  display: none;
}

.panels {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
  min-height: 0;
}

.panel {
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.conversation-panel {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.history {
  flex: 1;
  overflow: auto;
  padding: 24px;
}

.bubble {
  max-width: 86%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 15px;
}

.bubble.user {
  margin-left: auto;
  background: #dfeef0;
}

.bubble.agent {
  background: #f3f5f6;
  border: 1px solid var(--line);
}

.ask-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.notify-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.notify-panel summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #3f4b53;
  font-size: 14px;
}

.notify-fields {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.notify-fields label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.notify-fields fieldset {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.notify-fields legend {
  padding: 0 0 8px;
}

.notify-fields fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notify-fields input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

input,
button {
  font: inherit;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.secondary-action {
  min-height: 30px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

.topbar {
  height: auto;
  min-height: 62px;
  gap: 16px;
}

.tagline {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(24 32 38 / 0.42);
}

.modal-box {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.22);
}

.modal-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.modal-box button {
  min-height: 42px;
}

.case-history {
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  background: #fbfcfd;
}

.case-history h2 {
  margin: 0 0 10px;
}

.case-history-list {
  display: grid;
  gap: 8px;
}

.history-case {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.history-case span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.case-panel {
  overflow: auto;
  background: var(--panel);
}

.admin-panel {
  grid-column: 1 / -1;
  overflow: auto;
  background: var(--panel);
}

.admin-mode {
  grid-template-columns: 1fr;
}

.admin-mode > .conversation-panel,
.admin-mode > .case-panel {
  display: none;
}

.admin-content {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.metric-grid div,
.admin-list span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-grid span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metric-grid strong {
  font-size: 22px;
}

.admin-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.query-row {
  cursor: pointer;
}

.query-row:hover {
  background: #f5f8fa;
}

.query-detail {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.query-detail h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.case-content,
.empty-state,
.loading {
  padding: 24px;
}

.case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.case-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.notify-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9ded2;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef8f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h2 {
  font-size: 14px;
  margin: 22px 0 10px;
  text-transform: uppercase;
  color: #4e5a62;
}

.confidence {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.confidence.high { background: var(--green); }
.confidence.medium { background: var(--amber); }
.confidence.low { background: var(--red); }

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.evidence-card h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.field strong {
  overflow-wrap: anywhere;
}

details {
  margin-top: 12px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f4f5;
  padding: 10px;
  border-radius: 8px;
}

.missing-list {
  color: var(--red);
  padding-left: 18px;
}

.muted,
.sources,
.empty-state {
  color: var(--muted);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #cfd7dd;
  border-top-color: #1f4d5a;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .tab {
    color: var(--ink);
    background: #fff;
    border-radius: 0;
    padding: 12px;
    border-bottom: 2px solid transparent;
  }

  .tab.active {
    border-bottom-color: var(--brand);
  }

  .panels {
    display: block;
  }

  .panel {
    display: none;
    height: calc(100vh - 105px);
  }

  .panel.active-mobile {
    display: flex;
  }

  .case-panel.active-mobile {
    display: block;
  }

  .admin-panel.active-mobile {
    display: block;
    height: calc(100vh - 105px);
  }
}

/* ============================================================
   HOMEPAGE V2  (.os-home-v2)
   ============================================================ */

.os-home-v2 {
  --os-navy:    #042C53;
  --os-current: #0A2E38;
  --os-mission: #0D1F2D;
  --os-footer:  #060F18;
  --os-teal:    #1AACB0;
  --os-green:   #5BBB2F;
  --os-blue:    #3B82C4;
  --os-gold:    #F5A623;
  --os-slate:   #3D4D5C;

  font-family: system-ui, -apple-system, sans-serif;
}

/* ── NAV V2 ── */

.os-nav-v2 {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1100px) / 2));
  background: var(--os-navy);
}

.os-nav-v2__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.os-nav-v2__logo-img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.os-nav-v2__links {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
}

.os-nav-v2__links > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1;
  transition: color 0.15s;
}

.os-nav-v2__links > a:hover { color: rgba(255, 255, 255, 0.82); }

.os-nav-v2__menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin-top: 0 !important;
}

.os-nav-v2__menu summary {
  display: inline-flex;
  align-items: center;
  height: 100%;
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1;
  transition: color 0.15s;
}

.os-nav-v2__menu summary::-webkit-details-marker {
  display: none;
}

.os-nav-v2__menu summary::after {
  content: "v";
  display: inline-block;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.28);
}

.os-nav-v2__menu[open] summary,
.os-nav-v2__menu summary:hover {
  color: rgba(255, 255, 255, 0.82);
}

.os-nav-v2__dropdown {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #071b2e;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.os-nav-v2__dropdown a {
  display: block;
  height: auto;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  line-height: 1.2;
}

.os-nav-v2__dropdown a:hover {
  background: rgba(26, 172, 176, 0.12);
  color: #ffffff;
}

@media (max-width: 600px) {
  .os-nav-v2__links { display: none; }
}

/* ── HERO V2 ── */

.os-hero-v2 {
  position: relative;
  background: var(--os-navy);
  text-align: center;
  overflow: hidden;
}

.os-hero-v2__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
}

.os-hero-v2__mountains svg {
  width: 100%;
  height: 100%;
}

.os-hero-v2__inner {
  position: relative;
  z-index: 1;
  padding: 36px max(24px, calc((100vw - 1100px) / 2)) 30px;
}

.os-hero-v2__mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.os-hero-v2__h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.42;
  color: #fff;
  margin: 0 0 22px;
}

.os-hero-v2__h1 span { color: var(--os-teal); }

.os-hero-v2__form {
  max-width: 580px;
  margin: 0 auto;
}

.os-hero-v2__input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(26, 172, 176, 0.38);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.os-hero-v2__input-wrap:focus-within {
  border-color: rgba(26, 172, 176, 0.65);
  box-shadow: 0 0 0 3px rgba(26, 172, 176, 0.1);
}

.os-hero-v2__icon {
  flex-shrink: 0;
  margin: 0 0 0 14px;
  opacity: 0.75;
}

.os-hero-v2__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 13px 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.87);
  outline: none;
  transition: opacity 0.35s;
}

.os-hero-v2__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.os-hero-v2__btn {
  flex-shrink: 0;
  padding: 13px 18px;
  background: var(--os-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
  line-height: 1;
  transition: background 0.15s;
}

.os-hero-v2__btn:hover { background: #179ca0; }

.os-hero-v2__bridge {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 11px 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── THE CURRENT ── */

.os-current {
  background: var(--os-current);
  padding: 22px max(26px, calc((100vw - 1100px) / 2)) 28px;
}

@media (max-width: 640px) {
  .os-current { padding: 16px 14px 20px; }
}

.os-current__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.os-current__live-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.os-current__pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--os-teal);
  flex-shrink: 0;
  animation: os-pulse 2s ease-out infinite;
}

@keyframes os-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(26,172,176,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(26,172,176,0); }
  100% { box-shadow: 0 0 0 0   rgba(26,172,176,0); }
}

.os-current__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--os-teal);
}

.os-current__subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.22);
}

.os-current__counter {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.os-current__counter #current-count {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* ── FILTER PILLS ── */

.os-current__filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.os-filter-pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.5;
}

.os-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.os-filter-pill--active {
  background: rgba(26, 172, 176, 0.18);
  border-color: rgba(26, 172, 176, 0.45);
  color: var(--os-teal);
}

/* ── STREAM FEED ── */

.os-current__feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 680px) {
  .os-current__feed { grid-template-columns: 1fr; }
}

/* ── STREAM CARD ── */

.os-current-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.os-current-card--finance   { border-left-color: #F5A623; }
.os-current-card--permits   { border-left-color: #3B82C4; }
.os-current-card--parcels   { border-left-color: #5BBB2F; }
.os-current-card--districts { border-left-color: #1AACB0; }
.os-current-card--planning  { border-left-color: rgba(255,255,255,.18); }
.os-current-card--gis       { border-left-color: rgba(255,255,255,.12); }

.os-current-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.os-current-card__top-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.os-current-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.os-current-card__cat--finance   { background: rgba(245,166,35,.13);  color: #f7be5e; }
.os-current-card__cat--permits   { background: rgba(59,130,196,.18);  color: #6ab0e8; }
.os-current-card__cat--parcels   { background: rgba(91,187,47,.15);   color: #7dd44e; }
.os-current-card__cat--districts { background: rgba(26,172,176,.15);  color: #3dc8cc; }
.os-current-card__cat--planning  { background: rgba(255,255,255,.07); color: rgba(255,255,255,.4); }
.os-current-card__cat--gis       { background: rgba(255,255,255,.05); color: rgba(255,255,255,.32); }

.os-current-card__new {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(26, 172, 176, 0.2);
  color: var(--os-teal);
}

.os-current-card__time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.os-current-card__q {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 0;
}

.os-current-card__a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin: 0;
}

.os-current-card__source {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.14);
  margin-top: 3px;
}

/* ── LOAD MORE ── */

.os-current__loadmore {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.os-current__loadmore-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: color 0.15s;
}

.os-current__loadmore-link:hover { color: rgba(255, 255, 255, 0.45); }

/* ── FEATURE CARDS ── */

.os-features {
  background: #f7f9fb;
  padding: 20px max(24px, calc((100vw - 1100px) / 2));
}

.os-features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .os-features__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .os-features__grid { grid-template-columns: repeat(2, 1fr); }
}

.os-feature-card {
  display: block;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid transparent;
  border-radius: 8px;
  padding: 14px 13px 13px;
  text-decoration: none;
  transition: box-shadow 0.15s;
}

.os-feature-card:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); }

.os-feature-card__q {
  font-size: 11px;
  color: #8a9ba8;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 8px;
}

.os-feature-card__label {
  font-size: 12px;
  font-weight: 500;
  color: #3D4D5C;
  margin: 0;
}

/* ── CITY PILLS ── */

.os-cities {
  background: #f7f9fb;
  padding: 14px max(24px, calc((100vw - 1100px) / 2)) 22px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.os-cities__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8a9ba8;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.os-cities__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.os-city-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  font-size: 12px;
  color: #5a6b79;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.os-city-pill:hover {
  border-color: var(--os-teal);
  color: var(--os-teal);
}

/* ── MISSION STRIP V2 ── */

/* CITY PAGES */

.os-city-page {
  min-height: 100vh;
  background: #042C53;
  color: #ffffff;
}

.os-city-hero {
  position: relative;
  overflow: hidden;
  background: #042C53;
}

.os-city-hero__mountains {
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  pointer-events: none;
}

.os-city-hero__mountains svg {
  width: 100%;
  height: 100%;
}

.os-city-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 94px) 0 42px;
}

.os-city-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--city-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-city-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 9vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.os-city-hero h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--city-accent);
}

.os-city-hero__inner > p:last-of-type {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.os-city-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(900px, 100%);
  margin-top: 32px;
}

@media (max-width: 820px) {
  .os-city-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .os-city-hero__stats {
    grid-template-columns: 1fr;
  }
}

.os-city-stat {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--city-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.os-city-stat span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-city-stat strong {
  display: block;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.os-city-hero__form {
  display: flex;
  align-items: stretch;
  width: min(620px, 100%);
  min-height: 54px;
  margin-top: 30px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 620px) {
  .os-city-hero__form {
    display: grid;
  }
}

.os-city-hero__form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 54px;
  outline: none;
}

.os-city-hero__form button {
  min-width: 92px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 0;
  background: var(--city-accent);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.os-city-overview,
.os-city-prompts,
.os-city-switcher {
  padding-left: max(24px, calc((100vw - 1100px) / 2));
  padding-right: max(24px, calc((100vw - 1100px) / 2));
}

.os-city-overview {
  background: #0A2E38;
  padding-top: 28px;
  padding-bottom: 32px;
}

.os-city-overview__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.os-city-overview__intro h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

.os-city-overview__intro p {
  grid-column: 2;
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.55;
}

.os-city-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 800px) {
  .os-city-lanes {
    grid-template-columns: 1fr;
  }
}

.os-city-lane {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--city-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.05);
}

.os-city-lane span {
  color: var(--city-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.os-city-lane h3 {
  margin: 10px 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.os-city-lane p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 1.55;
}

.os-city-lane strong {
  color: rgba(255, 255, 255, 0.72);
}

.os-city-prompts {
  background: #f7f9fb;
  padding-top: 24px;
  padding-bottom: 28px;
}

.os-city-prompts__head h2 {
  margin: 0 0 14px;
  color: #3D4D5C;
  font-size: 18px;
}

.os-city-prompts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .os-city-prompts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .os-city-prompts__grid {
    grid-template-columns: 1fr;
  }
}

.os-city-prompt {
  display: flex;
  min-height: 96px;
  align-items: center;
  padding: 14px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--city-accent);
  border-radius: 8px;
  background: #ffffff;
  color: #5a6b79;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.os-city-prompt:hover {
  color: #24394a;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.os-city-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #f7f9fb;
  padding-top: 0;
  padding-bottom: 28px;
}

.os-city-switcher span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8a9ba8;
  text-transform: uppercase;
}

.os-city-switcher div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.os-city-switcher a {
  padding: 6px 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  color: #5a6b79;
  font-size: 12px;
  text-decoration: none;
}

.os-city-switcher a:hover,
.os-city-switcher a[aria-current="page"] {
  border-color: var(--city-accent);
  color: var(--city-accent);
}

.os-land-ledger {
  padding: 36px max(24px, calc((100vw - 1100px) / 2)) 44px;
  background: #03213e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.os-land-ledger__eyebrow {
  margin: 0 0 10px;
  color: var(--city-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-land-ledger__head h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 400;
  line-height: 1.15;
}

.os-land-ledger__subtext {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.os-land-ledger__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.os-land-ledger__revenue-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.os-land-ledger__revenue-toggle span {
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.os-ll-toggle-btn {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.os-ll-toggle-btn.is-active {
  border-color: var(--city-accent);
  background: var(--city-accent);
  color: #042c53;
}

.os-land-ledger__revenue-note {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.5;
}

.os-land-ledger__filterbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.os-land-ledger__filterbar span {
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.os-ll-filter-btn {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.os-ll-filter-btn.is-active {
  border-color: var(--city-accent);
  background: var(--city-accent);
  color: #042c53;
}

.os-land-ledger__body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .os-land-ledger__body {
    grid-template-columns: 1fr;
  }
}

.os-land-ledger__map-wrap {
  position: relative;
  min-height: 520px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.os-land-ledger__map {
  width: 100%;
  height: 520px;
  background: #eef2f5;
}

.os-land-ledger__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a2e38;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  pointer-events: none;
}

.os-land-ledger__loading[hidden] {
  display: none;
}

.os-land-ledger__legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.os-land-ledger__legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3d4d5c;
  font-size: 11px;
  font-weight: 600;
}

.os-land-ledger__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.os-ll-intro {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 30, 56, 0.72);
  backdrop-filter: blur(3px);
}

.os-ll-intro[hidden] {
  display: none;
}

.os-ll-intro__card {
  max-width: 440px;
  padding: 22px 24px;
  border-radius: 12px;
  background: #0a2e38;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.os-ll-intro__eyebrow {
  margin: 0 0 8px;
  color: var(--city-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-ll-intro__card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 19px;
}

.os-ll-intro__card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.os-ll-intro__card li {
  margin-bottom: 8px;
}

.os-ll-intro__card li strong {
  color: #ffffff;
}

.os-ll-intro__btn {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: var(--city-accent);
  color: #042c53;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.os-ll-methodology {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.os-ll-methodology summary {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.os-ll-methodology summary::marker {
  color: var(--city-accent);
}

.os-ll-methodology__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .os-ll-methodology__grid {
    grid-template-columns: 1fr;
  }
}

.os-ll-methodology__grid h4 {
  margin: 0 0 6px;
  color: var(--city-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.os-ll-methodology__grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.55;
}

.os-ll-methodology__grid code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.os-land-ledger__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.os-ll-panel__eyebrow {
  margin: 0 0 6px;
  color: var(--city-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-ll-panel__big-number {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.os-ll-panel__caption {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.5;
}

.os-ll-panel__parcel h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.os-ll-parcel-facts {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.os-ll-parcel-facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  align-items: flex-start;
}

.os-ll-parcel-facts dt {
  color: rgba(255, 255, 255, 0.45);
}

.os-ll-parcel-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.os-ll-panel__underperform {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #c9772e;
  border-radius: 0 6px 6px 0;
  background: rgba(201, 119, 46, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.5;
}

.os-ll-panel__scenario-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.os-ll-scenario-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.os-ll-scenario-buttons[hidden] {
  display: none;
}

.os-ll-scenario-btn {
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.os-ll-scenario-btn.is-active {
  border-color: var(--city-accent);
  background: var(--city-accent);
  color: #042c53;
}

.os-ll-scenario-description {
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.5;
}

.os-ll-zone-description {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid #1aacb0;
  border-radius: 0 6px 6px 0;
  background: rgba(26, 172, 176, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.6;
}

.os-ll-filter-hint {
  font-weight: 400;
  opacity: 0.7;
  font-size: 10px;
  display: block;
}

.os-ll-panel__result {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.os-ll-result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.os-ll-result__row strong {
  color: #ffffff;
  font-size: 14px;
  text-align: right;
  overflow-wrap: anywhere;
}

.os-ll-result__row--gain strong {
  color: #5bbb2f;
}

.os-ll-panel__guardrail {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  line-height: 1.5;
}

.os-mission-v2 {
  background: #0D1F2D;
  padding: 56px clamp(20px, 5vw, 40px);
  text-align: center;
}

.os-mission-v2__inner {
  max-width: 500px;
  margin: 0 auto;
}

.os-mission-v2 p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.os-mission-v2 .os-mission-v2__muted   { color: rgba(255, 255, 255, 0.42); }
.os-mission-v2 .os-mission-v2__cta     { color: #1AACB0; }
.os-mission-v2 .os-mission-v2__sources {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  margin-top: 28px;
}
.os-mission-v2 .os-mission-v2__not-ai {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.03em;
  margin-top: 6px;
}

/* ── FOOTER V2 ── */

.os-footer-v2 {
  background: #060F18;
  padding: 18px max(24px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.os-footer-v2__built {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.16);
}

.os-footer-v2__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.os-footer-v2__links a {
  /* Negative margins offset the padding so visual spacing is unchanged,
     while the tap target grows from ~11px tall to a touch-friendly size. */
  padding: 13px 6px;
  margin: -13px -6px;
  text-decoration: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.15s;
}

.os-footer-v2__links a:hover { color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   ASK / ANALYSIS WORKSPACE  (os-ask- prefix)
   ============================================================ */

.os-ask-page {
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 80px);
  min-height: calc(100vh - 64px);
  background: var(--os-off-white);
}

.os-ask-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.os-ask-page__h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--os-slate);
  margin: 0 0 6px;
}

.os-ask-page__sub {
  font-size: 14px;
  color: var(--os-muted);
  margin: 0;
}

/* ── WORKSPACE GRID ── */

.os-ask-workspace {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .os-ask-workspace { grid-template-columns: 1fr; }
}

/* ── SHARED PANEL CHROME ── */

.os-ask-ai,
.os-ask-sql-panel {
  background: #fff;
  border: 1px solid var(--os-border);
  border-radius: 12px;
  padding: 24px;
}

.os-ask-panel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--os-slate);
  margin: 0 0 18px;
}

/* ── FORMS ── */

.os-ask-ai__form,
.os-ask-sql__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.os-ask-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--os-slate);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  box-sizing: border-box;
}

.os-ask-textarea:focus {
  border-color: var(--os-teal);
  box-shadow: 0 0 0 3px rgba(26, 172, 176, 0.12);
}

.os-ask-textarea--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.os-chips--sm { margin-top: -4px; }

/* ── ANSWER ── */

.os-ask-answer {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(26, 172, 176, 0.25);
  border-radius: 8px;
  background: #f5fbfb;
}

.os-ask-answer__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--os-teal);
  margin-bottom: 10px;
}

.os-ask-answer__text {
  font-size: 14px;
  color: var(--os-slate);
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

/* ── SQL DETAILS ── */

.os-ask-details {
  margin-top: 16px;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  overflow: hidden;
}

.os-ask-details summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--os-slate);
  background: rgba(0, 0, 0, 0.02);
  list-style: none;
  user-select: none;
}

.os-ask-details summary::-webkit-details-marker { display: none; }

.os-ask-details summary::before {
  content: "▶ ";
  font-size: 10px;
  opacity: 0.5;
}

.os-ask-details[open] summary::before { content: "▼ "; }

.os-ask-details__body {
  padding: 14px;
  border-top: 1px solid var(--os-border);
}

.os-ask-pre {
  background: var(--os-slate);
  color: #e2f0f1;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

.os-ask-checks {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--os-muted);
  line-height: 1.6;
}

/* ── RESULTS TABLE ── */

.os-ask-results {
  margin-top: 16px;
}

.os-ask-results--inline { margin-top: 20px; }

.os-ask-results__meta {
  font-size: 12px;
  color: var(--os-muted);
  margin-bottom: 8px;
}

.os-ask-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--os-border);
  border-radius: 8px;
}

.os-ask-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.os-ask-table thead {
  background: rgba(0, 0, 0, 0.03);
}

.os-ask-table th {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--os-muted);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--os-border);
}

.os-ask-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--os-border);
  color: var(--os-slate);
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-ask-table tbody tr:last-child td { border-bottom: none; }
.os-ask-table tbody tr:hover { background: var(--os-off-white); }

/* ── SQL HINT ── */

.os-ask-sql-hint {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--os-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 12px;
  color: var(--os-muted);
  line-height: 1.6;
}

.os-ask-sql-hint code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* ── ERROR ── */

.os-ask-error {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  background: #fff5f5;
  color: #b3261e;
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   PUBLIC ASK EXPERIENCE  (os-ask-v2 prefix)
------------------------------------------------------------------ */

.os-ask-v2 {
  min-height: 100vh;
  background: #042C53;
  color: #ffffff;
}

.os-ask-v2__main {
  background: #042C53;
}

.os-ask-v2__shell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 0 36px;
}

.os-ask-v2__mountains {
  position: absolute;
  inset: auto -8vw 0 -8vw;
  height: 120px;
  pointer-events: none;
}

.os-ask-v2__mountains svg {
  width: 100%;
  height: 100%;
}

.os-ask-v2__intro {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.os-ask-v2__eyebrow {
  margin: 0 0 12px;
  color: #1AACB0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.os-ask-v2__intro h1 {
  margin: 0 auto;
  max-width: 560px;
  color: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.os-ask-v2__intro p:last-child {
  max-width: 620px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
}

.os-ask-v2__chat {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.os-ask-v2__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  color: #173544;
}

.os-ask-v2__message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.os-ask-v2__message--user {
  justify-content: flex-end;
}

.os-ask-v2__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #042C53;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.os-ask-v2__bubble {
  max-width: min(680px, 100%);
  padding: 14px 16px;
  border-radius: 8px;
  background: #eef8f8;
  border: 1px solid rgba(26, 172, 176, 0.22);
  color: #173544;
  font-size: 15px;
  line-height: 1.55;
}

.os-ask-v2__message--user .os-ask-v2__bubble {
  background: #042C53;
  border-color: #042C53;
  color: #ffffff;
}

.os-ask-v2__bubble p {
  margin: 0;
}

.os-ask-v2__bubble--error {
  background: #fff5f2;
  border-color: rgba(179, 38, 30, 0.22);
  color: #7a231f;
}

.os-ask-v2__form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px;
  border: 1px solid #dce8ec;
  border-radius: 18px;
  background: #f7fbfc;
}

@media (max-width: 640px) {
  .os-ask-v2__form {
    grid-template-columns: 1fr;
  }
}

.os-ask-v2__input {
  min-height: 46px;
  max-height: 180px;
  width: 100%;
  resize: vertical;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  color: #173544;
  font: 500 16px/1.45 "Inter", system-ui, sans-serif;
  outline: none;
}

.os-ask-v2__input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 172, 176, 0.16);
}

.os-ask-v2__submit {
  min-width: 84px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #1AACB0;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.os-ask-v2__submit:hover {
  background: #179ca0;
}

.os-ask-v2__hint {
  grid-column: 1 / -1;
  margin: -2px 4px 0;
  color: #6b7a87;
  font-size: 12px;
  font-weight: 600;
}

.os-ask-v2__loading {
  display: none;
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: #557181;
  font-size: 14px;
  font-weight: 600;
}

.os-ask-v2__loading.htmx-request {
  display: block;
}

.os-ask-v2__results {
  margin: 0 16px 16px;
  border: 1px solid #dce8ec;
  border-radius: 8px;
  background: #ffffff;
  color: #173544;
}

.os-ask-v2__results summary {
  padding: 10px 14px;
  color: #3d5968;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.os-ask-v2__results[open] summary {
  border-bottom: 1px solid #dce8ec;
}

.os-ask-v2__table-wrap {
  overflow: auto;
  max-height: 320px;
}

.os-ask-v2__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.os-ask-v2__table th,
.os-ask-v2__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f4;
  text-align: left;
  vertical-align: top;
}

.os-ask-v2__table th {
  position: sticky;
  top: 0;
  background: #f7fbfc;
  color: #3d5968;
  font-size: 11px;
  text-transform: uppercase;
}

.os-ask-v2__suggestions {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.os-ask-v2__suggestions-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.os-ask-v2__suggestions-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.os-ask-v2__suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 860px) {
  .os-ask-v2__suggestion-grid {
    grid-template-columns: 1fr;
  }
}

.os-ask-v2__suggestion {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.os-ask-v2__suggestion:hover {
  border-color: rgba(26, 172, 176, 0.5);
  color: #ffffff;
}

/* ============================================================
   TAX TOOL V2  (.os-tax-v2)
   ============================================================ */

.os-tax-v2 {
  min-height: 100vh;
  background: #042C53;
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
}

.os-tax-hero {
  position: relative;
  overflow: hidden;
  background: #042C53;
  text-align: center;
}

.os-tax-hero__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 96px;
  pointer-events: none;
}

.os-tax-hero__mountains svg { width: 100%; height: 100%; }

.os-tax-hero__inner {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0 50px;
}

.os-tax-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--os-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.os-tax-hero__h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.18;
}

.os-tax-hero__sub {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.os-tax-hero__search { position: relative; }

.os-tax-hero__search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(26, 172, 176, 0.4);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.os-tax-hero__search-wrap:focus-within {
  border-color: rgba(26, 172, 176, 0.7);
  box-shadow: 0 0 0 3px rgba(26, 172, 176, 0.14);
}

.os-tax-hero__icon { flex-shrink: 0; margin: 0 14px 0 16px; opacity: 0.6; }

.os-tax-hero__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 16px 16px 16px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.os-tax-hero__input::placeholder { color: rgba(255, 255, 255, 0.34); }

.os-tax-suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.os-tax-suggestions:empty { display: none; }

.os-tax-suggestion {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--os-border);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.os-tax-suggestion:last-child { border-bottom: 0; }

.os-tax-suggestion:hover,
.os-tax-suggestion:focus {
  background: rgba(26, 172, 176, 0.08);
  outline: none;
}

.os-tax-suggestion__addr { font-size: 14px; font-weight: 600; color: #182026; }
.os-tax-suggestion__parcel { margin-top: 2px; font-size: 12px; color: var(--os-muted); }
.os-tax-suggestions__empty { padding: 16px 18px; font-size: 13px; color: var(--os-muted); }

.os-tax-hero__hint {
  margin: 26px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.36);
}

/* ── RESULTS (full-width section, light) ── */

.os-tax-results {
  background: var(--os-off-white);
  color: #182026;
  padding: 40px max(24px, calc((100vw - 1100px) / 2)) 90px;
}

.os-tax-results__top {
  max-width: 1100px;
  margin: 0 auto;
}

.os-tax-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .os-tax-grid { grid-template-columns: 1fr; }
}

.os-tax-card {
  background: #ffffff;
  border: 1px solid var(--os-border);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
}

.os-tax-agency-card { position: sticky; top: 70px; }

@media (max-width: 860px) {
  .os-tax-agency-card { position: static; }
}

.os-tax-agency-card__empty {
  padding: 36px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--os-muted);
}

.os-tax-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Negative margins cancel the padding below so the link's visual position
     and spacing are unchanged, while the actual tap target grows to a
     touch-friendly size (was ~17px tall). */
  margin: -10px -8px 18px -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--os-teal-dk);
  text-decoration: none;
}

.os-tax-back:hover { color: var(--os-teal); }

.os-tax-bill__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-teal-dk);
}

.os-tax-bill__address {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #182026;
}

.os-tax-bill__owner { margin: 4px 0 0; font-size: 13px; color: var(--os-muted); }

.os-tax-bill__total-label { margin: 28px 0 4px; font-size: 13px; color: var(--os-muted); }

.os-tax-bill__total {
  margin: 0 0 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #182026;
}

.os-tax-shock {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid #d7e4e7;
  border-radius: 8px;
  background: #f8fbfb;
}

.os-tax-shock__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.os-tax-shock__eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-muted);
}

.os-tax-shock__number {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.os-tax-shock__number--up { color: #b3261e; }
.os-tax-shock__number--down { color: var(--os-teal-dk); }

.os-tax-shock__driver {
  min-width: 138px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e3ecef;
}

.os-tax-shock__driver span {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-muted);
}

.os-tax-shock__driver strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #182026;
}

.os-tax-shock__meter {
  display: flex;
  width: 100%;
  height: 18px;
  gap: 3px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7eef0;
}

.os-tax-shock__meter-seg {
  min-width: 0;
  height: 100%;
  opacity: 0.72;
}

.os-tax-shock__meter-seg--active { opacity: 1; }
.os-tax-shock__meter-seg--value { background: #2f7df6; }
.os-tax-shock__meter-seg--voter { background: #00a889; }
.os-tax-shock__meter-seg--other { background: #93a2b3; }

.os-tax-shock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #52606b;
}

.os-tax-shock__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.os-tax-shock__key {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.os-tax-shock__key--value { background: #2f7df6; }
.os-tax-shock__key--voter { background: #00a889; }
.os-tax-shock__key--other { background: #93a2b3; }

.os-tax-shock__reason {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #26333c;
}

.os-tax-shock__mover {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--os-muted);
}

.os-tax-shock__mover strong { color: #374149; }
.os-tax-shock__mover span { font-weight: 800; color: #182026; }

@media (max-width: 560px) {
  .os-tax-shock__head { grid-template-columns: 1fr; }
  .os-tax-shock__driver { min-width: 0; }
}

.os-tax-bar {
  display: flex;
  width: 100%;
  height: 38px;
  gap: 2px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.os-tax-bar__seg { flex-shrink: 0; border: 0; cursor: pointer; transition: opacity 0.15s; }
.os-tax-bar__seg:hover { opacity: 0.82; }
.os-tax-bar__seg:disabled { cursor: default; }

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

.os-tax-agency-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }

.os-tax-agency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.os-tax-agency-row:hover { background: var(--os-off-white); }
.os-tax-agency-row:disabled { cursor: default; }
.os-tax-agency-row__dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; }
.os-tax-agency-row__name { flex: 1; font-size: 14px; font-weight: 600; color: #1f2933; }
.os-tax-agency-row__amount { font-size: 14px; color: var(--os-muted); }
.os-tax-agency-row__pct { width: 46px; text-align: right; font-size: 12px; color: #a0aab2; }

.os-tax-medians {
  padding-top: 16px;
  border-top: 1px solid var(--os-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.os-tax-medians p { margin: 0; font-size: 12px; color: #a0aab2; }
.os-tax-medians strong { color: var(--os-muted); font-weight: 600; }

.os-tax-error { font-size: 14px; color: #b3261e; }

.os-tax-loading {
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--os-border);
  background: var(--os-off-white);
}

.os-tax-loading__bar { height: 14px; border-radius: 6px; background: #e3e9ec; animation: os-tax-pulse 1.4s ease-in-out infinite; }
.os-tax-loading__bar + .os-tax-loading__bar { margin-top: 10px; }

@keyframes os-tax-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ── AGENCY PANEL ── */

.os-tax-agency-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--os-teal-dk);
}

.os-tax-agency-panel__back:hover { color: var(--os-teal); }
.os-tax-agency-panel__name { margin: 0 0 6px; font-family: "DM Sans", sans-serif; font-size: 18px; font-weight: 600; color: #182026; }
.os-tax-agency-panel__blurb { margin: 0 0 20px; font-size: 13px; line-height: 1.55; color: #4a5560; }

.os-tax-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.os-tax-stat { padding: 12px; border-radius: 10px; background: var(--os-off-white); text-align: center; }
.os-tax-stat__label { margin: 0 0 4px; font-size: 11px; color: var(--os-muted); }
.os-tax-stat__value { margin: 0; font-size: 15px; font-weight: 700; color: #182026; }
.os-tax-stat__value--deficit { color: #b3261e; }
.os-tax-stat__value--surplus { color: var(--os-teal-dk); }

.os-tax-expenditures { margin-bottom: 18px; }
.os-tax-expenditures__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--os-muted); }
.os-tax-expenditure { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.os-tax-expenditure__cat { flex: 1; color: #374149; }
.os-tax-expenditure__amt { font-weight: 600; color: #182026; }

.os-tax-pct-note { margin: 0 0 16px; font-size: 12px; color: var(--os-muted); }
.os-tax-pct-note strong { color: #374149; }

.os-tax-share {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(26, 172, 176, 0.08);
}

.os-tax-share p { margin: 0; font-size: 13px; color: #0f5a5c; }
.os-tax-share strong { font-weight: 700; }

.os-tax-source-link { font-size: 12px; font-weight: 600; color: var(--os-teal-dk); text-decoration: none; }
.os-tax-source-link:hover { color: var(--os-teal); text-decoration: underline; }

@media (max-width: 480px) {
  .os-tax-stats { grid-template-columns: 1fr 1fr; }
}

/* ---- Tax history button + YoY panel ---- */

.os-tax-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 7px 14px;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--os-teal);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.os-tax-history-btn:hover { background: var(--os-off-white); border-color: var(--os-teal); }

.os-tax-yoy-summary {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a5560;
}
.os-tax-yoy--up   { color: #b3261e; font-weight: 700; }
.os-tax-yoy--down { color: var(--os-teal-dk); font-weight: 700; }

.os-tax-history-table {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.os-tax-history-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 1fr;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f4;
  font-size: 12px;
  color: #374149;
  align-items: center;
}
.os-tax-history-row--header {
  font-weight: 700;
  font-size: 11px;
  color: var(--os-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #d1d9e0;
  padding-bottom: 8px;
}
.os-tax-history-row__year { font-weight: 700; color: #182026; }
.os-tax-history-row__tax  { font-weight: 600; }
.os-tax-history-row__delta--up   { color: #b3261e; font-weight: 600; }
.os-tax-history-row__delta--down { color: var(--os-teal-dk); font-weight: 600; }

/* ---- Tax report redesign ---- */

.os-tax-report {
  background: #f5f9fd;
  padding-top: 28px;
}

.os-tax-v2--report-page {
  background: #f5f9fd;
}

.os-tax-report__top,
.os-tax-report__shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.os-tax-report__shell {
  display: grid;
  gap: 14px;
}

.os-tax-parcel-banner,
.os-tax-story-card {
  border: 1px solid #d7e6f6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 65, 110, 0.06);
}

.os-tax-parcel-banner {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 46%, rgba(241,248,255,0.78) 100%),
    linear-gradient(26deg, transparent 0 33%, rgba(23,105,232,0.11) 33.4% 34.3%, transparent 34.7% 100%),
    linear-gradient(148deg, transparent 0 44%, rgba(19,168,116,0.1) 44.4% 45.2%, transparent 45.6% 100%),
    linear-gradient(74deg, transparent 0 58%, rgba(111,86,217,0.08) 58.4% 59.2%, transparent 59.6% 100%),
    radial-gradient(circle at 82% 28%, rgba(23,105,232,0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 62%, rgba(16,132,68,0.08) 0 2px, transparent 3px),
    #ffffff;
}

.os-tax-parcel-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11,33,70,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,33,70,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 100%);
}

.os-tax-parcel-banner__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 38px);
  max-width: 720px;
}

.os-tax-parcel-banner__eyebrow {
  margin: 0 0 8px;
  color: #1769e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-tax-parcel-banner h1 {
  margin: 0 0 14px;
  color: #0b2146;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: 0;
}

.os-tax-parcel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
  font-size: 13px;
}

.os-tax-parcel-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #bdd6f4;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #0b4fae;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(20, 65, 110, 0.06);
}

.os-tax-scroll-note {
  display: none;
  margin: 8px 0 4px;
  text-align: center;
  color: #748399;
  font-size: 13px;
}

.os-tax-scroll-note span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  color: #1769e8;
}

.os-tax-story-card {
  padding: clamp(22px, 4vw, 34px);
}

.os-tax-story-card h2 {
  margin: 0 0 6px;
  color: #0b2146;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: 0;
}

.os-tax-story-card p {
  margin: 0;
  color: #40516a;
  line-height: 1.55;
}

.os-tax-story-card--hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  background: linear-gradient(120deg, #f6fbff 0%, #ffffff 48%, #eef7ff 100%);
}

.os-tax-hero-copy h2 {
  max-width: 560px;
  font-size: clamp(34px, 5vw, 50px);
}

.os-tax-headline-up { color: #d22d24; }
.os-tax-headline-down { color: #0b8a64; }

.os-tax-kicker {
  margin-top: 18px !important;
  font-weight: 700;
  color: #0b2146 !important;
}

.os-tax-big-number {
  margin: 4px 0 14px !important;
  color: #0b2146 !important;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(58px, 8vw, 78px);
  font-weight: 800;
  line-height: 1;
}

.os-tax-reason {
  max-width: 540px;
  color: #1d2f4c !important;
}

.os-tax-up { color: #108444; }
.os-tax-down { color: #0b6b9f; }

.os-tax-reason-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #cfe3d4;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef9f0, #ffffff);
  box-shadow: inset 5px 0 0 #108444;
}

.os-tax-reason-card--primary .os-tax-step__num {
  width: 44px;
  height: 44px;
  font-size: 12px;
}

.os-tax-reason-card h3 {
  margin: 0 0 4px;
  color: #108444;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
}

.os-tax-reason-card p {
  max-width: 820px;
  color: #26364e;
}

.os-tax-why {
  display: grid;
  gap: 12px;
}

.os-tax-why--inside {
  grid-column: 1 / -1;
}

.os-tax-section-note {
  margin-top: 8px !important;
  color: #52647a !important;
  font-size: 14px;
}

.os-tax-exemption-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d9dfc5;
  border-radius: 8px;
  background: linear-gradient(100deg, #fffdf3, #ffffff 52%, #f7fbff);
  box-shadow: inset 5px 0 0 #d49a00;
}

.os-tax-exemption-card span {
  display: block;
  margin-bottom: 5px;
  color: #8a6200;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-tax-exemption-card h3 {
  margin: 0 0 6px;
  color: #0b2146;
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  line-height: 1.15;
}

.os-tax-exemption-card p {
  color: #26364e;
}

.os-tax-exemption-card__note {
  margin-top: 8px !important;
  color: #6a4a00 !important;
  font-size: 14px;
}

.os-tax-exemption-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e4ebf3;
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.os-tax-exemption-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.os-tax-exemption-card dt {
  color: #64748b;
  font-size: 13px;
}

.os-tax-exemption-card dd {
  margin: 0;
  color: #0b2146;
  font-weight: 800;
  text-align: right;
}

.os-tax-step {
  display: grid;
  grid-template-columns: 36px 92px minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d7eadc;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff, #f2faf4);
}

.os-tax-step--rate {
  border-color: #d1e9ee;
  background: linear-gradient(90deg, #ffffff, #f1fbfd);
}

.os-tax-step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0d9b73;
  color: #ffffff;
  font-weight: 800;
}

.os-tax-step--rate .os-tax-step__num { background: #0e8aa0; }

.os-tax-step__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(16, 132, 68, 0.12);
  color: #108444;
  font-size: 38px;
  font-weight: 800;
}

.os-tax-step__icon svg {
  width: 42px;
  height: 42px;
}

.os-tax-step--rate .os-tax-step__icon {
  background: rgba(14, 138, 160, 0.12);
  color: #0e8aa0;
}

.os-tax-step h2 {
  font-size: 22px;
  color: #108444;
}

.os-tax-step--rate h2 { color: #0e6e84; }

.os-tax-step__effect {
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 132, 68, 0.08);
}

.os-tax-step--rate .os-tax-step__effect { background: rgba(14, 138, 160, 0.08); }
.os-tax-step__effect strong { display: block; color: #108444; font-size: 20px; }
.os-tax-step--rate .os-tax-step__effect strong { color: #0e6e84; }
.os-tax-step__effect span { display: block; margin-top: 4px; color: #243653; }

.os-tax-money__content {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 18px;
}

.os-tax-donut {
  display: grid;
  place-items: center;
  width: 182px;
  height: 182px;
  border-radius: 999px;
  position: relative;
}

.os-tax-donut::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e2eaf4;
}

.os-tax-donut span {
  position: relative;
  z-index: 1;
  color: #0b2146;
  font-size: 25px;
  font-weight: 800;
}

.os-tax-money-list {
  display: grid;
  gap: 12px;
}

.os-tax-money-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 90px 58px;
  gap: 12px;
  align-items: center;
  color: #1d2f4c;
  font-size: 14px;
}

.os-tax-money-row__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.os-tax-money-row strong { text-align: right; }
.os-tax-money-row em { color: #73849b; font-style: normal; text-align: right; }

.os-tax-agency-details--inline {
  display: grid;
  gap: 0;
  width: 100%;
  overflow: visible;
  padding: 0;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
}

.os-tax-agency-details--inline .os-tax-agency-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) minmax(78px, auto) minmax(52px, auto);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  border-bottom: 1px solid #edf3f9;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.os-tax-agency-details--inline .os-tax-agency-row:last-child {
  border-bottom: 0;
}

.os-tax-agency-details--inline .os-tax-agency-row:hover {
  background: #f8fbff;
}

.os-tax-agency-details--inline .os-tax-agency-row:focus-visible {
  outline: 2px solid #1769e8;
  outline-offset: -2px;
}

.os-tax-agency-details--inline .os-tax-agency-row:disabled {
  cursor: default;
}

.os-tax-agency-details--inline .os-tax-agency-row__name {
  min-width: 0;
  line-height: 1.3;
}

.os-tax-agency-details--inline .os-tax-agency-row__amount {
  color: #0b2146;
  font-weight: 700;
  text-align: right;
}

.os-tax-agency-details--inline .os-tax-agency-row__pct {
  width: auto;
  color: #64748b;
}

.os-tax-agency-detail-slot {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #f8fbff;
}

.os-tax-agency-detail-slot > p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.os-tax-agency-detail-slot .os-tax-agency-panel {
  max-width: 900px;
}

.os-tax-agency-detail-slot .os-tax-agency-panel__back {
  margin-bottom: 12px;
}

.os-tax-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.os-tax-compare-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #f0f8f1;
}

.os-tax-compare-note p + p { margin-top: 12px; }
.os-tax-compare-note strong { color: #0b2146; }

.os-tax-rate-report {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.os-tax-rate-verdict {
  padding: 18px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #f8fbff;
}

.os-tax-rate-verdict span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-tax-rate-verdict strong {
  display: block;
  color: #0b2146;
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.os-tax-rate-verdict p {
  margin-top: 6px;
  color: #52647a;
  font-size: 14px;
}

.os-tax-rate-verdict--typical {
  border-color: #cfe3d4;
  background: #f2faf4;
}

.os-tax-rate-verdict--high {
  border-color: #f4d0cb;
  background: #fff6f4;
}

.os-tax-rate-verdict--low {
  border-color: #cde7f1;
  background: #f2fbff;
}

.os-tax-rate-verdict--why {
  border-color: #d8e2ea;
  background: #f8fafc;
}

.os-tax-rate-verdict__yours {
  margin-top: 8px;
  color: #52647a;
  font-size: 13px;
  font-weight: 600;
}

.os-tax-rate-guide__note {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px;
}

.os-tax-compare-map-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.os-tax-compare-map-wrap {
  position: relative;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe7f4;
}

.os-tax-compare-map {
  width: 100%;
  height: 100%;
  background: #eef2f4;
}

.os-tax-compare-map__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #eef2f4;
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.os-tax-compare-map__loading[hidden] {
  display: none;
}

.os-tax-compare-map__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.os-tax-compare-map__legend-bar {
  position: relative;
  flex: 1;
  height: 8px;
  margin-top: 14px;
}

.os-tax-compare-map__legend-gradient {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.os-tax-compare-map__legend-tick {
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #0b2146;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.os-tax-compare-map__legend-tick::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 8px;
  background: #0b2146;
  transform: translateX(-50%);
}

.os-tcm-popup strong {
  display: block;
  margin-bottom: 2px;
  color: #0b2146;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

.os-tcm-popup__code {
  display: block;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.os-tcm-popup__rate {
  margin: 8px 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #0b2146;
}

.os-tcm-popup__rate span {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.os-tcm-popup__tone {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.os-tcm-popup__note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
}

.os-tax-line-chart {
  position: relative;
  margin-top: 16px;
  overflow: visible;
}

.os-tax-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  color: #40516a;
  font-size: 13px;
  font-weight: 700;
}

.os-tax-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.os-tax-chart-legend i {
  width: 22px;
  height: 4px;
  border-radius: 999px;
}

.os-tax-chart-legend__tax { background: #1769e8; }
.os-tax-chart-legend__value { background: #10a97a; }

.os-tax-line-chart svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.os-tax-chart-grid {
  stroke: #c9d5e3;
  stroke-width: 1;
  opacity: 0.8;
}

.os-tax-chart-axis-line {
  stroke: #8fa0b3;
  stroke-width: 1.4;
}

.os-tax-chart-axis {
  fill: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.os-tax-chart-axis--left {
  text-anchor: end;
}

.os-tax-chart-axis--right {
  text-anchor: start;
}

.os-tax-chart-year {
  fill: #64748b;
  font-size: 10px;
  text-anchor: middle;
}

.os-tax-line-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.os-tax-line-chart__tax { stroke: #1769e8; }
.os-tax-line-chart__value { stroke: #10a97a; }

.os-tax-line-chart__tax-dot {
  fill: #ffffff;
  stroke: #1769e8;
  stroke-width: 3;
}

.os-tax-line-chart__tax-hit {
  fill: transparent;
  cursor: pointer;
}

.os-tax-footnote {
  margin-top: 10px !important;
  padding: 10px 14px;
  border-radius: 7px;
  background: #eaf4ff;
  color: #1769e8 !important;
  font-size: 13px;
}

.os-tax-data-sources {
  background: #f8fbff;
}

.os-tax-data-sources h2 {
  font-size: 22px;
}

.os-tax-data-sources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.os-tax-data-sources__grid div {
  padding: 14px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
}

.os-tax-data-sources__grid strong {
  display: block;
  margin-bottom: 5px;
  color: #0b2146;
  font-size: 13px;
}

.os-tax-data-sources__grid a {
  color: #1769e8;
  text-decoration: none;
}

.os-tax-data-sources__grid a:hover {
  text-decoration: underline;
}

.os-tax-data-sources__grid p {
  color: #52647a;
  font-size: 13px;
}

@media (max-width: 900px) {
  .os-tax-parcel-banner,
  .os-tax-compare {
    grid-template-columns: 1fr;
  }

  .os-tax-compare-map-wrap {
    height: 280px;
  }

  .os-tax-money__content {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .os-tax-data-sources__grid {
    grid-template-columns: 1fr;
  }

  .os-tax-agency-details--inline { width: 100%; }

  .os-tax-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .os-tax-exemption-card {
    grid-template-columns: 1fr;
  }

  .os-tax-reason-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .os-tax-reason-card .os-tax-step__icon {
    grid-column: 2;
  }

  .os-tax-step__icon,
  .os-tax-step__effect {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .os-tax-report {
    padding-left: 0;
    padding-right: 0;
  }

  .os-tax-report__top,
  .os-tax-report__shell {
    width: min(100% - 20px, 1120px);
  }

  .os-tax-parcel-banner__body,
  .os-tax-story-card {
    padding: 18px;
  }

  .os-tax-big-number { font-size: 54px; }

  .os-tax-money-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .os-tax-money-row em { grid-column: 2 / -1; text-align: left; }

  .os-tax-agency-details--inline .os-tax-agency-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: start;
    padding: 12px;
  }

  .os-tax-agency-details--inline .os-tax-agency-row__amount {
    text-align: right;
  }

  .os-tax-agency-details--inline .os-tax-agency-row__pct {
    grid-column: 2 / -1;
    text-align: left;
  }
}

/* SIMPLE HOMEPAGE */

.os-home-simple {
  --os-navy: #042C53;
  --os-teal: #00828A;
  --os-green: #7DB61C;
  --os-blue: #0071BC;
  --os-gold: #FDB913;
  --os-ink: #1f2937;
  min-height: 100vh;
  background: #f6f8f8;
  color: var(--os-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.os-home-simple__nav {
  background: rgba(4, 44, 83, 0.98);
}

.os-home-simple__container {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.os-home-simple__hero {
  padding: clamp(64px, 10vw, 112px) 0 clamp(58px, 8vw, 88px);
  background: linear-gradient(180deg, #ecf6f5 0%, #ffffff 72%);
  text-align: center;
}

.os-home-simple__mark {
  display: block;
  width: clamp(66px, 9vw, 86px);
  height: clamp(66px, 9vw, 86px);
  object-fit: contain;
  margin: 0 auto 22px;
}

.os-home-simple h1,
.os-home-simple h2,
.os-home-simple h3,
.os-home-simple p {
  margin-top: 0;
}

.os-home-simple h1 {
  margin-bottom: 18px;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.os-home-simple h1 span {
  color: var(--os-green);
}

.os-home-simple__lede {
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563;
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.62;
}

.os-home-simple__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.os-home-simple__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(0, 130, 138, 0.25);
  border-radius: 8px;
  background: #ffffff;
  color: var(--os-teal);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.os-home-simple__button:hover {
  border-color: rgba(0, 130, 138, 0.55);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
  transform: translateY(-1px);
}

.os-home-simple__button--primary {
  border-color: var(--os-teal);
  background: var(--os-teal);
  color: #ffffff;
}

.os-home-simple__question {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 28px;
  padding: 12px 22px;
  border: 2px solid rgba(0, 130, 138, 0.85);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.14);
}

.os-home-simple__question span:last-child {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.os-home-simple__question span:last-child.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}

.os-home-simple__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--os-green);
  box-shadow: 0 0 0 rgba(125, 182, 28, 0.45);
  animation: os-home-simple-pulse 1.8s infinite;
}

@keyframes os-home-simple-pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 182, 28, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(125, 182, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 182, 28, 0); }
}

.os-home-simple__section,
.os-home-simple__places,
.os-home-simple__contact {
  padding: clamp(52px, 7vw, 78px) 0;
}

.os-home-simple__section {
  background: #f4f7f7;
}

.os-home-simple__section-head {
  max-width: 740px;
  margin: 0 auto 34px;
  text-align: center;
}

.os-home-simple__section-head p {
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.os-home-simple__section-head h2 {
  margin-bottom: 12px;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.15;
}

.os-home-simple__section-head span {
  display: block;
  color: #5f6f82;
  font-size: 16px;
  line-height: 1.65;
}

.os-home-simple__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.os-home-simple__cards article {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(0, 130, 138, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.os-home-simple__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 130, 138, 0.18);
  border-radius: 8px;
  background: rgba(0, 130, 138, 0.08);
  color: var(--os-teal);
}

.os-home-simple__icon--blue {
  border-color: rgba(0, 113, 188, 0.22);
  background: rgba(0, 113, 188, 0.08);
  color: var(--os-blue);
}

.os-home-simple__icon--gold {
  border-color: rgba(253, 185, 19, 0.34);
  background: rgba(253, 185, 19, 0.14);
  color: #a76c00;
}

.os-home-simple__icon svg {
  width: 22px;
  height: 22px;
}

.os-home-simple__cards h3 {
  margin-bottom: 9px;
  color: #111827;
  font-size: 20px;
  line-height: 1.22;
}

.os-home-simple__cards p {
  margin-bottom: 0;
  color: #526173;
  font-size: 14px;
  line-height: 1.65;
}

.os-home-simple__places {
  background: #ffffff;
}

.os-home-simple__city-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.os-home-simple__city-list a {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe7ee;
  border-top: 4px solid var(--city-accent, var(--os-teal));
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.os-home-simple__city-list a:hover {
  border-color: #cbd8e4;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.os-home-simple__city-list strong,
.os-home-simple__city-list span {
  display: block;
}

.os-home-simple__city-list strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.os-home-simple__city-list span {
  color: #667789;
  font-size: 13px;
  line-height: 1.4;
}

.os-home-simple__contact {
  background: linear-gradient(180deg, #ffffff 0%, #e8f5f5 100%);
  text-align: center;
}

.os-home-simple__contact-inner {
  max-width: 760px;
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid rgba(0, 130, 138, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.os-home-simple__contact h2 {
  margin-bottom: 10px;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(27px, 4vw, 36px);
}

.os-home-simple__contact p {
  margin-bottom: 24px;
  color: #526173;
  font-size: 16px;
}

@media (max-width: 880px) {
  .os-home-simple__cards,
  .os-home-simple__city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .os-home-simple__cards,
  .os-home-simple__city-list {
    grid-template-columns: 1fr;
  }

  .os-home-simple__question {
    align-items: flex-start;
    border-radius: 8px;
    text-align: left;
  }
}

/* TAX TOOL DESIGN GUIDE REFRESH */

.os-tax-v2 {
  --os-navy: #042C53;
  --os-current: #0A2E38;
  --os-teal: #00828A;
  --os-teal-bright: #1AACB0;
  --os-green: #7DB61C;
  --os-blue: #0071BC;
  --os-gold: #FDB913;
  --os-slate: #3D4D5C;
  --os-ink: #1f2937;
  --os-muted: #617082;
  --os-border: #dfe7ee;
  --os-surface: #ffffff;
  --os-soft: #f6f8f8;
  background: var(--os-navy);
  color: var(--os-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.os-tax-v2--report-page {
  background: var(--os-soft);
}

.os-tax-hero {
  background: linear-gradient(180deg, var(--os-navy) 0%, #073a5c 100%);
  text-align: center;
}

.os-tax-hero__inner {
  width: min(100% - 32px, 760px);
  padding: clamp(58px, 8vw, 92px) 0 clamp(58px, 7vw, 80px);
}

.os-tax-hero__eyebrow {
  color: var(--os-teal-bright);
  letter-spacing: 0.14em;
}

.os-tax-hero__h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.os-tax-hero__sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 2vw, 18px);
}

.os-tax-hero__search {
  max-width: 640px;
  margin: 0 auto;
}

.os-tax-hero__search-wrap {
  min-height: 58px;
  border-color: rgba(26, 172, 176, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.os-tax-hero__search-wrap:focus-within {
  border-color: var(--os-teal-bright);
  box-shadow: 0 0 0 3px rgba(26, 172, 176, 0.16);
}

.os-tax-hero__icon {
  color: var(--os-teal-bright);
  opacity: 1;
}

.os-tax-hero__input {
  min-height: 58px;
  color: #ffffff;
  font-size: 16px;
}

.os-tax-suggestions {
  border: 1px solid rgba(223, 231, 238, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(4, 44, 83, 0.24);
}

.os-tax-suggestion {
  min-height: 58px;
  padding: 13px 16px;
  font-family: inherit;
}

.os-tax-suggestion__addr {
  color: #111827;
}

.os-tax-suggestion__parcel {
  color: var(--os-muted);
  font-family: "JetBrains Mono", monospace;
}

.os-tax-hero__hint {
  color: rgba(255, 255, 255, 0.42);
}

.os-tax-report {
  background: var(--os-soft);
  padding: 28px 0 90px;
}

.os-tax-report__top,
.os-tax-report__shell {
  width: min(100% - 32px, 1120px);
}

.os-tax-report__shell {
  gap: 18px;
}

.os-tax-back,
.os-tax-agency-panel__back,
.os-tax-source-link {
  color: var(--os-teal);
}

.os-tax-back:hover,
.os-tax-agency-panel__back:hover,
.os-tax-source-link:hover {
  color: var(--os-teal-bright);
}

.os-tax-parcel-banner,
.os-tax-story-card {
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: var(--os-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.os-tax-parcel-banner {
  min-height: auto;
  background: #ffffff;
  box-shadow: inset 0 4px 0 var(--os-teal), 0 12px 28px rgba(15, 23, 42, 0.05);
}

.os-tax-parcel-banner::after {
  display: none;
}

.os-tax-parcel-banner__body {
  max-width: none;
  padding: clamp(24px, 4vw, 36px);
}

.os-tax-parcel-banner__eyebrow,
.os-tax-expenditures__label,
.os-tax-rate-verdict span,
.os-tax-exemption-card span {
  color: var(--os-muted);
  letter-spacing: 0.12em;
}

.os-tax-parcel-banner h1,
.os-tax-story-card h2,
.os-tax-rate-verdict strong,
.os-tax-agency-panel__name,
.os-tax-exemption-card h3 {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
}

.os-tax-parcel-banner h1 {
  max-width: 760px;
  font-size: clamp(24px, 4vw, 36px);
}

.os-tax-parcel-pill {
  border-color: rgba(0, 130, 138, 0.24);
  border-radius: 8px;
  background: rgba(0, 130, 138, 0.08);
  color: var(--os-teal);
  font-family: "JetBrains Mono", monospace;
  box-shadow: none;
}

.os-tax-story-card {
  padding: clamp(22px, 4vw, 34px);
}

.os-tax-story-card p {
  color: #526173;
}

.os-tax-story-card--hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.os-tax-hero-copy h2 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 52px);
}

.os-tax-big-number {
  color: var(--os-navy) !important;
  font-size: clamp(54px, 8vw, 78px);
}

.os-tax-kicker {
  color: #334155 !important;
}

.os-tax-headline-up,
.os-tax-yoy--up,
.os-tax-history-row__delta--up,
.os-tax-yoy-driver__effect--up {
  color: #b3261e;
}

.os-tax-headline-down,
.os-tax-yoy--down,
.os-tax-history-row__delta--down,
.os-tax-yoy-driver__effect--down {
  color: var(--os-teal);
}

.os-tax-reason-card,
.os-tax-step,
.os-tax-step--rate,
.os-tax-exemption-card,
.os-tax-rate-verdict,
.os-tax-agency-detail-slot,
.os-tax-data-sources__grid div {
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.os-tax-reason-card {
  grid-template-columns: 44px minmax(0, 1fr);
  box-shadow: inset 4px 0 0 var(--os-green);
}

.os-tax-reason-card .os-tax-step__icon {
  display: none;
}

.os-tax-reason-card h3 {
  color: #2f7a17;
  font-size: 22px;
  text-transform: none;
}

.os-tax-step {
  grid-template-columns: 36px 54px minmax(0, 1fr) minmax(170px, 240px);
  background: #ffffff;
}

.os-tax-step__num {
  border-radius: 8px;
  background: var(--os-green);
}

.os-tax-step--rate .os-tax-step__num {
  background: var(--os-teal);
}

.os-tax-step__icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 130, 138, 0.18);
  border-radius: 8px;
  background: rgba(0, 130, 138, 0.08);
  color: var(--os-teal);
}

.os-tax-step__icon svg {
  width: 24px;
  height: 24px;
}

.os-tax-step h2,
.os-tax-step--rate h2 {
  color: #111827;
  font-size: 20px;
}

.os-tax-step__effect,
.os-tax-step--rate .os-tax-step__effect {
  background: var(--os-soft);
}

.os-tax-step__effect strong,
.os-tax-step--rate .os-tax-step__effect strong {
  color: #111827;
}

.os-tax-exemption-card {
  background: #fffdf3;
  box-shadow: inset 4px 0 0 var(--os-gold);
}

.os-tax-money__content {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
}

.os-tax-donut {
  width: 182px;
  height: 182px;
}

.os-tax-donut span {
  color: var(--os-navy);
}

.os-tax-agency-details--inline {
  border: 1px solid var(--os-border);
  border-radius: 8px;
}

.os-tax-agency-details--inline .os-tax-agency-row {
  min-height: 50px;
  border-bottom-color: #edf2f7;
}

.os-tax-agency-details--inline .os-tax-agency-row:hover {
  background: var(--os-soft);
}

.os-tax-agency-details--inline .os-tax-agency-row:focus-visible,
.os-tax-suggestion:focus-visible,
.os-tax-agency-panel__back:focus-visible,
.os-tax-back:focus-visible {
  outline: 2px solid var(--os-teal-bright);
  outline-offset: 2px;
}

.os-tax-agency-details--inline .os-tax-agency-row__amount {
  color: #111827;
}

.os-tax-agency-card__empty {
  padding: 26px 12px;
  color: var(--os-muted);
}

.os-tax-agency-detail-slot {
  background: var(--os-soft);
}

.os-tax-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.os-tax-stat {
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: #ffffff;
}

.os-tax-stat__label {
  color: var(--os-muted);
  text-transform: none;
}

.os-tax-stat__value {
  color: #111827;
}

.os-tax-share {
  border: 1px solid rgba(0, 130, 138, 0.16);
  border-radius: 8px;
  background: rgba(0, 130, 138, 0.08);
}

.os-tax-share p {
  color: #0f5a5c;
}

.os-tax-rate-verdict--typical {
  border-color: rgba(125, 182, 28, 0.32);
  background: #f7fbf2;
}

.os-tax-rate-verdict--high {
  border-color: #f0cbc7;
  background: #fff7f6;
}

.os-tax-rate-verdict--low {
  border-color: #cde7f1;
  background: #f2fbff;
}

.os-tax-chart-legend {
  color: #526173;
}

.os-tax-chart-legend__tax,
.os-tax-line-chart__tax {
  stroke: var(--os-blue);
}

.os-tax-chart-legend__tax {
  background: var(--os-blue);
}

.os-tax-chart-legend__value,
.os-tax-line-chart__value {
  stroke: var(--os-green);
}

.os-tax-chart-legend__value {
  background: var(--os-green);
}

.os-tax-line-chart__tax-dot {
  stroke: var(--os-blue);
}

.os-tax-footnote {
  border-radius: 8px;
  background: #eef7fb;
  color: #3D4D5C !important;
}

.os-tax-data-sources {
  background: #ffffff;
}

.os-tax-data-sources__grid a {
  color: var(--os-teal);
}

.os-tax-yoy-section-label {
  margin-top: 18px;
  margin-bottom: 8px;
}

.os-tax-yoy-drivers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.os-tax-yoy-driver {
  text-align: left;
}

.os-tax-yoy-driver__main {
  margin: 4px 0 0;
  color: #374151;
  font-size: 12px;
  line-height: 1.4;
}

.os-tax-yoy-driver__main span {
  font-size: 11px;
}

.os-tax-yoy-driver__sub {
  margin: 2px 0 0;
  color: var(--os-muted);
  font-size: 12px;
}

.os-tax-yoy-driver__effect {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.os-tax-history-row {
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.os-tax-history-row__delta span {
  font-size: 10px;
}

.os-footer-v2 {
  background: #060F18;
}

@media (max-width: 900px) {
  .os-tax-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .os-tax-step__icon,
  .os-tax-step__effect {
    grid-column: 2;
  }

  .os-tax-money__content {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .os-tax-donut {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .os-tax-hero__inner,
  .os-tax-report__top,
  .os-tax-report__shell {
    width: min(100% - 24px, 1120px);
  }

  .os-tax-hero__h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .os-tax-yoy-drivers,
  .os-tax-stats {
    grid-template-columns: 1fr;
  }

  .os-tax-parcel-banner__body,
  .os-tax-story-card {
    padding: 18px;
  }

  .os-tax-agency-details--inline .os-tax-agency-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .os-tax-agency-details--inline .os-tax-agency-row__pct {
    grid-column: 2 / -1;
    text-align: left;
  }

  .os-tax-history-row {
    grid-template-columns: 42px minmax(76px, 1fr) minmax(68px, 0.8fr) minmax(74px, 0.9fr);
    font-size: 11px;
  }
}

/* CITY PAGE DESIGN GUIDE REFRESH */

.os-city-page {
  --os-navy: #042C53;
  --os-current: #0A2E38;
  --os-teal: #00828A;
  --os-teal-bright: #1AACB0;
  --os-green: #7DB61C;
  --os-blue: #0071BC;
  --os-gold: #FDB913;
  --os-slate: #3D4D5C;
  --os-ink: #1f2937;
  --os-muted: #617082;
  --os-border: #dfe7ee;
  --os-surface: #ffffff;
  --os-soft: #f6f8f8;
  min-height: 100vh;
  background: var(--os-soft);
  color: var(--os-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.os-city-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f8 100%);
  border-bottom: 1px solid var(--os-border);
}

.os-city-hero__mountains {
  display: none;
}

.os-city-hero__inner {
  width: min(100% - 32px, 1120px);
  padding: clamp(52px, 8vw, 86px) 0 clamp(34px, 5vw, 52px);
}

.os-city-hero__eyebrow,
.os-land-ledger__eyebrow,
.os-ll-panel__eyebrow,
.os-ll-intro__eyebrow {
  color: var(--city-accent);
  letter-spacing: 0.12em;
}

.os-city-hero h1 {
  max-width: 820px;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 800;
  line-height: 1.02;
}

.os-city-hero h1::after {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--city-accent);
}

.os-city-hero__inner > p:last-of-type {
  color: #526173;
  font-size: clamp(17px, 2vw, 21px);
}

.os-city-hero__stats {
  width: min(940px, 100%);
  gap: 14px;
}

.os-city-stat {
  min-width: 0;
  min-height: 116px;
  border: 1px solid var(--os-border);
  border-top: 4px solid var(--city-accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.os-city-stat span {
  color: var(--os-muted);
}

.os-city-stat strong {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.os-city-page .os-current {
  background: var(--os-current);
}

.os-city-page .os-current-card {
  border-radius: 8px;
}

.os-land-ledger {
  padding: clamp(42px, 6vw, 68px) 0;
  border: 0;
  background: #ffffff;
}

.os-land-ledger__head,
.os-land-ledger__body,
.os-ll-methodology {
  width: min(100% - 32px, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.os-land-ledger__head h2 {
  max-width: 780px;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0;
}

.os-land-ledger__subtext {
  color: #526173;
  font-size: 16px;
  line-height: 1.62;
}

.os-land-ledger__body {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 18px;
}

.os-land-ledger__map-wrap {
  min-height: 540px;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.os-land-ledger__map {
  height: 540px;
  background: #eef3f4;
}

.os-land-ledger__loading {
  background: rgba(4, 44, 83, 0.92);
  color: rgba(255, 255, 255, 0.72);
}

.os-land-ledger__legend {
  border: 1px solid rgba(223, 231, 238, 0.92);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.os-land-ledger__legend span {
  color: #334155;
}

.os-ll-intro {
  background: rgba(4, 44, 83, 0.62);
}

.os-ll-intro__card {
  max-width: 460px;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.os-ll-intro__card h3 {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
}

.os-ll-intro__card ul {
  color: #526173;
}

.os-ll-intro__card li strong {
  color: #111827;
}

.os-ll-intro__btn,
.os-ll-scenario-btn.is-active,
.os-ll-filter-btn.is-active,
.os-ll-toggle-btn.is-active {
  border-radius: 8px;
  background: var(--city-accent);
  color: #ffffff;
}

.os-land-ledger__panel {
  gap: 16px;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.os-ll-panel__big-number,
.os-ll-panel__parcel h3 {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
}

.os-ll-panel__caption,
.os-ll-panel__guardrail,
.os-ll-panel__scenario-label,
.os-ll-scenario-description {
  color: #617082;
}

.os-ll-panel__guardrail {
  border-top: 1px solid var(--os-border);
}

.os-ll-parcel-facts div {
  padding: 7px 0;
  border-bottom: 1px solid #edf2f7;
}

.os-ll-parcel-facts div:last-child {
  border-bottom: 0;
}

.os-ll-parcel-facts dt {
  color: #617082;
}

.os-ll-parcel-facts dd {
  color: #111827;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.os-ll-panel__underperform {
  border-left-color: var(--os-gold);
  background: rgba(253, 185, 19, 0.12);
  color: #5f4700;
}

.os-ll-scenario-btn {
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
}

.os-ll-scenario-description,
.os-ll-zone-description {
  border-radius: 8px;
  background: var(--os-soft);
  color: #526173;
}

.os-ll-zone-description {
  border-left-color: var(--city-accent);
}

.os-ll-panel__result {
  border-top: 1px solid var(--os-border);
}

.os-ll-result__row {
  color: #617082;
}

.os-ll-result__row strong {
  color: #111827;
}

.os-ll-result__row--gain strong {
  color: #2f7a17;
}

.os-ll-methodology {
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: var(--os-soft);
}

.os-ll-methodology summary {
  color: #111827;
}

.os-ll-methodology__grid {
  border-top: 1px solid var(--os-border);
}

.os-ll-methodology__grid h4 {
  color: #111827;
}

.os-ll-methodology__grid p {
  color: #526173;
}

.os-ll-methodology__grid code {
  background: #e8eef2;
  color: #111827;
}

.os-city-prompts,
.os-city-switcher {
  padding-left: 0;
  padding-right: 0;
  background: var(--os-soft);
}

.os-city-prompts {
  padding-top: clamp(42px, 6vw, 64px);
  padding-bottom: 26px;
}

.os-city-prompts__head,
.os-city-prompts__grid,
.os-city-switcher {
  width: min(100% - 32px, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.os-city-prompts__head h2 {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
}

.os-city-prompts__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.os-city-prompt {
  min-width: 0;
  min-height: 104px;
  border: 1px solid var(--os-border);
  border-top: 4px solid var(--city-accent);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.os-city-prompt:hover {
  color: #111827;
  border-color: #cbd8e4;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.os-city-switcher {
  padding-bottom: 42px;
}

.os-city-switcher span {
  color: #617082;
}

.os-city-switcher a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--os-border);
  border-radius: 8px;
  background: #ffffff;
  color: #526173;
}

.os-city-switcher a:hover,
.os-city-switcher a[aria-current="page"] {
  border-color: var(--city-accent);
  background: color-mix(in srgb, var(--city-accent) 10%, white);
  color: #111827;
}

.os-city-page .os-footer-v2 {
  background: #060F18;
}

@media (max-width: 900px) {
  .os-land-ledger__body {
    grid-template-columns: 1fr;
  }

  .os-city-prompts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .os-city-hero__inner,
  .os-land-ledger__head,
  .os-land-ledger__body,
  .os-ll-methodology,
  .os-city-prompts__head,
  .os-city-prompts__grid,
  .os-city-switcher {
    width: min(100% - 24px, 1120px);
  }

  .os-city-hero__stats,
  .os-city-prompts__grid {
    grid-template-columns: 1fr;
  }

  .os-land-ledger__map-wrap {
    min-height: 460px;
  }

  .os-land-ledger__map {
    height: 460px;
  }

  .os-land-ledger__legend {
    right: 12px;
  }

  .os-city-switcher {
    align-items: flex-start;
  }
}

/* TAX HOME LIGHT REFRESH */

.os-tax-v2--home {
  min-height: 100vh;
  background: var(--os-soft);
}

.os-tax-v2--home .os-tax-hero {
  min-height: calc(100vh - 108px);
  display: grid;
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f8 100%);
  border-bottom: 1px solid var(--os-border);
  text-align: center;
}

.os-tax-v2--home .os-tax-hero__inner {
  width: min(100% - 32px, 760px);
  padding: clamp(74px, 10vw, 132px) 0 clamp(60px, 8vw, 96px);
}

.os-tax-v2--home .os-tax-hero__eyebrow {
  color: var(--os-teal);
}

.os-tax-v2--home .os-tax-hero__h1 {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
}

.os-tax-v2--home .os-tax-hero__sub {
  color: #526173;
  font-size: clamp(17px, 2vw, 19px);
}

.os-tax-v2--home .os-tax-hero__search-wrap {
  min-height: 58px;
  border: 1px solid rgba(0, 130, 138, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.os-tax-v2--home .os-tax-hero__search-wrap:focus-within {
  border-color: var(--os-teal);
  box-shadow: 0 0 0 3px rgba(0, 130, 138, 0.12), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.os-tax-v2--home .os-tax-hero__icon {
  color: var(--os-teal);
}

.os-tax-v2--home .os-tax-hero__input {
  color: #111827;
}

.os-tax-v2--home .os-tax-hero__input::placeholder {
  color: #8a98a8;
}

.os-tax-v2--home .os-tax-hero__hint {
  color: #617082;
}

.os-tax-v2--home .os-footer-v2 {
  background: #060F18;
}

@media (max-width: 640px) {
  .os-tax-v2--home .os-tax-hero {
    min-height: auto;
  }

  .os-tax-v2--home .os-tax-hero__inner {
    width: min(100% - 24px, 760px);
    padding: 54px 0 64px;
  }

  .os-tax-v2--home .os-tax-hero__h1 {
    font-size: clamp(36px, 11vw, 48px);
  }
}

/* TAXSHIFT HOME */

.taxshift-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(26, 172, 176, 0.14), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, #eaf4f5 58%, #ffffff 100%);
  color: #081a35;
  font-family: "Inter", system-ui, sans-serif;
}

.taxshift-nav {
  width: min(100% - 40px, 1100px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.taxshift-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.taxshift-brand__mark {
  display: inline-grid;
  place-items: center;
  color: #081a35;
}

.taxshift-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.taxshift-nav__links a {
  color: #132946;
  text-decoration: none;
}

.taxshift-nav__links a:hover {
  color: #0e9aa4;
}

.taxshift-nav__resume {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.taxshift-nav__resume[hidden] {
  display: none;
}

.taxshift-nav__account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.taxshift-nav__account-arrow {
  color: #132946;
  font-size: 12px;
  line-height: 1;
}

.taxshift-nav__account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 118px;
  padding: 8px;
  border: 1px solid rgba(19, 41, 70, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(4, 44, 83, 0.16);
}

.taxshift-nav__account-menu[hidden] {
  display: none;
}

.taxshift-nav__account-menu a {
  display: block;
  padding: 7px 9px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
}

.taxshift-nav__account:not(:hover):not(:focus-within) .taxshift-nav__account-menu {
  display: none;
}

.taxshift-nav__cta {
  padding: 11px 15px;
  border-radius: 7px;
  background: #18b7ca;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(24, 183, 202, 0.24);
}

.taxshift-hero {
  position: relative;
  width: min(100% - 36px, 1040px);
  margin: 14px auto 0;
  padding: clamp(18px, 3vw, 30px) 0 56px;
  /* ::before is a rotateX() "grid floor" decoration — its rendered bounding
     box extends well past this section's edges even though nothing is
     visible there, which was blowing out the page's horizontal scroll
     range on mobile. Clip it to the section it's already meant to sit in. */
  overflow: hidden;
}

.taxshift-hero::before,
.taxshift-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.taxshift-hero::before {
  inset: 4% 3% 18% 3%;
  background-image:
    linear-gradient(rgba(8, 26, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 26, 53, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(56deg);
  transform-origin: center top;
}

.taxshift-hero::after {
  left: 8%;
  right: 8%;
  bottom: 34px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 26, 53, 0.16);
  filter: blur(18px);
}

.taxshift-hero__panel {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 74px) clamp(22px, 7vw, 90px) clamp(30px, 5vw, 54px);
  border: 1px solid rgba(8, 26, 53, 0.08);
  border-radius: 16px;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.94)),
    linear-gradient(120deg, transparent 0 49%, rgba(26, 172, 176, 0.08) 49% 51%, transparent 51% 100%);
  box-shadow: 0 30px 60px rgba(8, 26, 53, 0.14);
}
.taxshift-eyebrow {
  margin: 0 0 12px;
  color: #0e9aa4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.taxshift-hero h1 {
  margin: 0;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.taxshift-hero__sub {
  max-width: 650px;
  margin: 14px auto 24px;
  color: #20334f;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.taxshift-search {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.taxshift-search__wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 2px solid #18b7ca;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(24, 183, 202, 0.14), 0 12px 30px rgba(8, 26, 53, 0.13);
}

.taxshift-search__icon {
  flex-shrink: 0;
  margin-left: 10px;
  color: #18aabd;
}

.taxshift-search__input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #10233f;
  font-size: 16px;
}

.taxshift-search__input::placeholder {
  color: #7b8ca1;
}

.taxshift-search__button,
.taxshift-signup__form button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: #18b7ca;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.taxshift-search__button {
  padding: 0 18px;
  white-space: nowrap;
}

.taxshift-hero__note {
  margin: 14px 0 0;
  color: #526173;
  font-size: 13px;
  font-weight: 700;
}

.taxshift-suggestions {
  top: calc(100% + 10px);
  text-align: left;
}

.taxshift-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 4vw, 52px);
  margin-top: clamp(38px, 6vw, 62px);
}

.taxshift-feature-row article {
  min-width: 0;
}

.taxshift-feature-row span.taxshift-feature-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #081a35;
  color: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
}

.taxshift-feature-row h2 {
  margin: 0 0 6px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
}

.taxshift-feature-row p {
  margin: 0;
  color: #42536a;
  font-size: 13px;
  line-height: 1.42;
}

.taxshift-signup,
.taxshift-data {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
}

.taxshift-signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid rgba(24, 183, 202, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(8, 26, 53, 0.96), rgba(10, 67, 82, 0.94)),
    radial-gradient(circle at 18% 15%, rgba(24, 183, 202, 0.35), transparent 32%);
  box-shadow: 0 24px 55px rgba(8, 26, 53, 0.18);
}

.taxshift-signup h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.taxshift-signup p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.taxshift-signup__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.taxshift-signup__form label {
  display: grid;
  gap: 7px;
  text-align: left;
}

.taxshift-signup__form label span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.taxshift-signup__form input,
.taxshift-contact__form input,
.taxshift-contact__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(8, 26, 53, 0.16);
  border-radius: 7px;
  color: #10233f;
  font-size: 14px;
}

.taxshift-signup__form button {
  padding: 0 15px;
}

.taxshift-signup__search {
  max-width: none;
  margin: 0;
}

.taxshift-signup__search .taxshift-search__wrap {
  min-height: 46px;
  padding: 0 6px;
}

.taxshift-signup__search .taxshift-search__input {
  min-height: 44px;
  padding: 0;
}

.taxshift-signup__form .os-tax-suggestion {
  min-height: 0;
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid rgba(223, 231, 238, 0.8);
  border-radius: 0;
  background: #ffffff;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.taxshift-signup__form .os-tax-suggestion:hover,
.taxshift-signup__form .os-tax-suggestion:focus {
  background: #f6fbfb;
}

.taxshift-signup__result {
  grid-column: 1 / -1;
  min-height: 20px;
  font-size: 14px;
}

.taxshift-signup__ok,
.taxshift-signup__error {
  margin: 0;
  font-weight: 700;
}

.taxshift-signup__ok { color: #0b7b5c; }
.taxshift-signup__error { color: #b3261e; }


.taxshift-signup .taxshift-eyebrow {
  color: #77e5ef;
}

.taxshift-contact {
  width: min(100% - 40px, 1040px);
  margin: 24px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.taxshift-contact__copy {
  padding-top: clamp(24px, 5vw, 54px);
}

.taxshift-contact h1 {
  margin: 0 0 14px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
}

.taxshift-contact__copy p:not(.taxshift-eyebrow) {
  max-width: 520px;
  margin: 0;
  color: #42536a;
  font-size: 18px;
  line-height: 1.55;
}

.taxshift-contact__form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(8, 26, 53, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 55px rgba(8, 26, 53, 0.14);
}

.taxshift-contact__form label {
  display: grid;
  gap: 7px;
}

.taxshift-contact__form label span {
  color: #42536a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.taxshift-contact__form textarea {
  min-height: 170px;
  padding-top: 12px;
  resize: vertical;
}

.taxshift-contact__form button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: #18b7ca;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.taxshift-contact__success,
.taxshift-contact__errors {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.taxshift-contact__success {
  background: rgba(11, 123, 92, 0.1);
  color: #0b7b5c;
}

.taxshift-contact__errors {
  background: rgba(179, 38, 30, 0.09);
  color: #b3261e;
}

.taxshift-contact__errors p {
  margin: 0;
}

.taxshift-contact__errors p + p {
  margin-top: 4px;
}

.taxshift-data {
  padding: 22px 0 42px;
  color: #5c6a7d;
  font-size: 13px;
  line-height: 1.6;
}

.taxshift-data p {
  max-width: 760px;
  margin: 0;
}

.taxshift-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px;
  background: #060f18;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.taxshift-footer span {
  color: #ffffff;
  font-weight: 800;
}

.taxshift-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.taxshift-footer a:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  .taxshift-nav {
    width: min(100% - 28px, 1100px);
    align-items: flex-start;
    padding: 18px 0;
  }

  .taxshift-nav__links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 13px;
  }

  .taxshift-hero {
    width: min(100% - 22px, 1040px);
    padding-top: 4px;
  }

  .taxshift-hero__panel {
    border-radius: 13px;
  }

  .taxshift-search__wrap,
  .taxshift-signup__form,
  .taxshift-signup {
    grid-template-columns: 1fr;
  }

  .taxshift-search__wrap {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .taxshift-search__icon {
    margin-top: 13px;
  }

  .taxshift-search__input {
    flex-basis: calc(100% - 48px);
  }

  .taxshift-search__input {
    min-height: 46px;
  }

  .taxshift-search__button {
    width: 100%;
  }

  .taxshift-feature-row {
    grid-template-columns: 1fr;
  }

  .taxshift-signup,
  .taxshift-contact {
    width: min(100% - 28px, 1040px);
  }

  .taxshift-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .taxshift-nav {
    display: grid;
  }

  .taxshift-nav__links {
    justify-content: flex-start;
  }

  .taxshift-nav__secondary {
    display: none;
  }

  .taxshift-hero__panel {
    padding: 34px 14px 28px;
  }

  .taxshift-hero h1 {
    font-size: 38px;
  }

  .taxshift-footer {
    flex-wrap: wrap;
  }
}

/* TAXSHIFT METHODOLOGY */

.taxshift-methodology {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 38px 0 70px;
}

.taxshift-methodology__hero {
  padding: clamp(34px, 6vw, 64px) 0 28px;
}

.taxshift-methodology__hero h1 {
  max-width: 780px;
  margin: 0;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
}

.taxshift-methodology__hero p:not(.taxshift-eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #42536a;
  font-size: 18px;
  line-height: 1.62;
}

.taxshift-methodology__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 34px;
}

.taxshift-methodology__stats div,
.taxshift-methodology__section,
.taxshift-methodology__note {
  border: 1px solid rgba(8, 26, 53, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(8, 26, 53, 0.05);
}

.taxshift-methodology__stats div {
  padding: 18px;
}

.taxshift-methodology__stats strong {
  display: block;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.taxshift-methodology__stats span {
  display: block;
  margin-top: 8px;
  color: #526173;
  font-size: 13px;
  line-height: 1.4;
}

.taxshift-methodology__section,
.taxshift-methodology__note {
  margin-top: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.taxshift-methodology__section h2 {
  margin: 0 0 12px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 24px;
}

.taxshift-methodology__section p,
.taxshift-methodology__section li,
.taxshift-methodology__note p {
  color: #42536a;
  font-size: 15px;
  line-height: 1.65;
}

.taxshift-methodology__section p,
.taxshift-methodology__note p {
  margin: 0;
}

.taxshift-methodology__section p + p {
  margin-top: 12px;
}

.taxshift-methodology__section ul {
  margin: 0;
  padding-left: 20px;
}

.taxshift-methodology__section li + li {
  margin-top: 8px;
}

.taxshift-faq__intro a {
  color: var(--os-teal);
  font-weight: 700;
  text-decoration: none;
}

.taxshift-faq__intro a:hover {
  text-decoration: underline;
}

.taxshift-faq__section {
  display: grid;
  gap: 10px;
}

.taxshift-faq__section h2 {
  margin-bottom: 4px;
}

.taxshift-faq__section details {
  border: 1px solid rgba(8, 26, 53, 0.1);
  border-radius: 8px;
  background: #fff;
}

.taxshift-faq__section summary {
  cursor: pointer;
  list-style-position: outside;
  padding: 16px 18px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.taxshift-faq__section details[open] summary {
  border-bottom: 1px solid rgba(8, 26, 53, 0.08);
}

.taxshift-faq__section details p {
  margin: 0;
  padding: 16px 18px 18px;
}
.taxshift-data a,
.os-tax-footnote a {
  color: var(--os-teal);
  font-weight: 700;
  text-decoration: none;
}

.taxshift-data a:hover,
.os-tax-footnote a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .taxshift-methodology {
    width: min(100% - 28px, 980px);
    padding-top: 12px;
  }

  .taxshift-methodology__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .taxshift-methodology__stats {
    grid-template-columns: 1fr;
  }
}

/* TaxShift parcel report refinements */
.os-tax-report__shell {
  gap: 16px;
  /* Without an explicit column track, this grid's implicit column defaults to
     "auto" sizing, which never shrinks below the max-content width of the
     widest card inside it — that's what was forcing every card to ~700px
     wide and overflowing on mobile regardless of the shell's own width. */
  grid-template-columns: minmax(0, 1fr);
}

.os-tax-report__shell > .os-tax-parcel-banner {
  display: none;
}

.os-tax-story-card--hero {
  gap: 24px;
}

.os-tax-report-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--os-border);
}

.os-tax-report-identity h1 {
  max-width: 820px;
  margin: 0;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: 0;
}

.os-tax-report-identity .os-tax-parcel-pill {
  flex-shrink: 0;
  margin-top: 2px;
}

.os-tax-hero-copy h2 {
  margin-top: 0;
}

.os-tax-step {
  grid-template-columns: 42px 54px minmax(0, 1fr) minmax(170px, 240px);
}

.os-tax-step__num,
.os-tax-step--rate .os-tax-step__num {
  display: grid;
  visibility: visible;
  opacity: 1;
  color: #ffffff;
  place-items: center;
  align-self: center;
  justify-self: center;
  z-index: 1;
}

.os-tax-money__content {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
}

.os-tax-donut {
  width: clamp(220px, 30vw, 300px);
  height: clamp(220px, 30vw, 300px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.os-tax-donut::after {
  inset: 28%;
}

.os-tax-donut span {
  font-size: clamp(28px, 4vw, 38px);
}

.os-tax-agency-details--inline {
  width: min(100%, 760px);
  overflow: hidden;
  border-color: #d8e4ee;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.os-tax-agency-details--inline .os-tax-agency-row {
  grid-template-columns: 14px minmax(0, 1fr) minmax(82px, auto) minmax(58px, auto);
  gap: 14px;
  min-height: 58px;
  padding: 13px 16px;
}

.os-tax-agency-details--inline .os-tax-agency-row__dot {
  width: 10px;
  height: 10px;
}

.os-tax-agency-details--inline .os-tax-agency-row__name {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.os-tax-agency-details--inline .os-tax-agency-row__amount {
  font-size: 14px;
  font-weight: 800;
}

.os-tax-agency-details--inline .os-tax-agency-row__pct {
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

.os-tax-agency-detail-slot {
  width: min(100%, 860px);
  margin: 22px auto 0;
  padding: 22px;
}

.os-tax-agency-detail-slot .os-tax-agency-panel {
  max-width: none;
}

.os-tax-stats {
  gap: 12px;
  margin: 16px 0 18px;
}

.os-tax-stat {
  padding: 14px 16px;
  text-align: left;
}

.os-tax-stat__label {
  margin: 0 0 4px !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-tax-stat__value {
  margin: 0 !important;
  font-size: 20px;
}

.os-tax-expenditures {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.os-tax-expenditure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.os-tax-expenditure__cat {
  color: #334155;
}

.os-tax-expenditure__amt {
  color: #111827;
  font-weight: 800;
}

.os-tax-pct-note {
  margin-top: 12px !important;
}

.os-tax-share {
  margin-top: 14px;
}

.os-tax-source-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
}

.os-tax-chart-legend i {
  display: inline-block;
}

.os-tax-chart-legend__tax {
  background: #0071BC !important;
}

.os-tax-chart-legend__value {
  background: #7DB61C !important;
}

.os-tax-line-chart__tax {
  stroke: #0071BC !important;
  stroke-width: 4.5 !important;
}

.os-tax-line-chart__value {
  stroke: #7DB61C !important;
  stroke-width: 4.5 !important;
}

.os-tax-line-chart__tax-dot {
  fill: #ffffff !important;
  stroke: #0071BC !important;
  stroke-width: 3.5 !important;
}

.os-tax-line-chart__tax-hit {
  fill: rgba(255, 255, 255, 0.01);
  pointer-events: all;
  cursor: help;
}

.os-tax-line-chart__tax-hit:focus {
  outline: none;
  stroke: #0071BC;
  stroke-width: 2;
}

@media (max-width: 900px) {
  .os-tax-report-identity {
    display: grid;
  }

  .os-tax-step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .os-tax-step__icon,
  .os-tax-step__effect {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .os-tax-report-identity h1 {
    font-size: 22px;
  }

  .os-tax-agency-details--inline .os-tax-agency-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }
}

/* TaxShift parcel report interaction refinements */
.taxshift-nav--report {
  padding-top: 8px;
}

.os-tax-report-identity {
  position: relative;
}

.os-tax-report-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.os-tax-share-report {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 130, 138, 0.24);
  border-radius: 8px;
  background: rgba(0, 130, 138, 0.08);
  color: var(--os-teal);
  cursor: pointer;
}

.os-tax-share-report:hover,
.os-tax-share-report:focus-visible {
  background: var(--os-teal);
  color: #ffffff;
  outline: none;
}

.os-tax-share-report--copied {
  background: var(--os-green);
  color: #ffffff;
}

.os-tax-money {
  background: linear-gradient(180deg, #ffffff 0%, #f3fafa 100%);
}

.os-tax-money__content {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(0, 130, 138, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.os-tax-donut {
  margin: 0 auto;
}

.os-tax-donut::after {
  inset: 34%;
  background: #ffffff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.72), inset 0 0 0 1px #e2eaf4;
}

.os-tax-agency-details--inline {
  background: #ffffff;
}

.os-tax-agency-detail-slot {
  border-color: rgba(0, 130, 138, 0.18);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

/* Each row now has its own slot right beneath it (inline expand instead of
   one shared panel far below the list) — collapse it to nothing when empty
   so unclicked rows don't show a blank padded card. */
.os-tax-agency-detail-slot:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.os-tax-chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 190px;
  display: none;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 26, 53, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.os-tax-chart-tooltip.is-visible {
  display: grid;
}

.os-tax-chart-tooltip strong {
  color: var(--os-teal);
  font-size: 13px;
}

.os-tax-chart-tooltip span {
  display: block;
}

.os-tax-signup-card.taxshift-signup {
  width: auto;
  margin: 0;
}

.os-tax-signup-card .taxshift-signup__form {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.os-tax-signup-card--tracked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.os-tax-signup-card__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #18b7ca;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.os-tax-signup-card__action:hover {
  background: #0e9aa4;
}

.os-tax-data-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, #ffffff 0%, #f1fbfd 100%);
}

.os-tax-data-callout h2 {
  margin-bottom: 6px;
}

.os-tax-data-callout a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--os-teal);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.os-tax-data-callout a:hover {
  background: var(--os-teal-bright);
}

@media (max-width: 820px) {
  .os-tax-data-callout,
  .os-tax-report-identity {
    display: grid;
  }

  .os-tax-signup-card .taxshift-signup__form {
    grid-template-columns: 1fr;
  }
}

/* TaxShift reason history */
.os-tax-reason-history {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(0, 130, 138, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
}

.os-tax-reason-history__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.os-tax-reason-history__head h3 {
  margin: 0;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 21px;
}

.os-tax-reason-history__head p {
  max-width: 420px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.os-tax-reason-history__list {
  display: grid;
  gap: 12px;
}

.os-tax-reason-history__row {
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.os-tax-reason-history__row summary {
  list-style: none;
  cursor: pointer;
}

.os-tax-reason-history__row summary::-webkit-details-marker {
  display: none;
}

.os-tax-reason-history__row-summary {
  display: grid;
  grid-template-columns: 150px 1fr 1.5fr auto;
  align-items: stretch;
  gap: 18px;
}

.os-tax-reason-history__tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 16px;
  color: #ffffff;
}

.os-tax-reason-history__tile--up {
  background: var(--red);
}

.os-tax-reason-history__tile--down {
  background: var(--os-teal-dk);
}

.os-tax-reason-history__tile-years {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.os-tax-reason-history__tile-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.os-tax-reason-history__tile-amount {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.os-tax-reason-history__reason {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 0;
  min-width: 0;
}

.os-tax-reason-history__reason-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.os-tax-reason-history__reason-text {
  color: #111827;
  font-size: 15px;
}

.os-tax-reason-history__driver-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  min-width: 0;
}

.os-tax-reason-history__driver-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.os-tax-reason-history__bar {
  --os-tax-value: #5bbb2f;
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f4;
}

.os-tax-reason-history__bar-seg--value {
  background: var(--os-tax-value);
}

.os-tax-reason-history__bar-seg--rate {
  background: var(--os-teal);
}

.os-tax-reason-history__driver-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.os-tax-reason-history__driver-labels-value {
  color: #3f8f1f;
}

.os-tax-reason-history__driver-labels-rate {
  color: var(--os-teal-dk);
}

.os-tax-reason-history__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: var(--os-teal);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.os-tax-reason-history__chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.os-tax-reason-history__row[open] .os-tax-reason-history__chevron {
  transform: rotate(-135deg);
}

.os-tax-reason-history__details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px;
  border-top: 1px solid rgba(8, 26, 53, 0.08);
  background: #f8fafb;
}

.os-tax-reason-history__details-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.os-tax-reason-history__details-col span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.os-tax-reason-history__details-col strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.os-tax-reason-history__details-col strong i {
  margin: 0 2px;
  color: #94a3b8;
  font-style: normal;
}

.os-tax-reason-history__details-col strong small {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.os-tax-reason-history__details-col em {
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.os-tax-reason-history__footnote {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .os-tax-reason-history__row-summary {
    grid-template-columns: 1fr;
  }

  .os-tax-reason-history__tile {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
  }

  .os-tax-reason-history__reason,
  .os-tax-reason-history__driver-col {
    padding: 10px 16px;
  }

  .os-tax-reason-history__toggle {
    justify-content: center;
    padding: 10px 16px;
    border-top: 1px solid #eef2f4;
  }
}

/* Money section integrated chart/legend polish */
.os-tax-money {
  background: #ffffff;
}

.os-tax-money > div:first-child {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(8, 26, 53, 0.1);
}

.os-tax-money__content {
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  justify-items: stretch;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.os-tax-donut {
  width: min(100%, 330px);
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none;
}

.os-tax-donut::after {
  display: none;
}

.os-tax-donut__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.08));
}

.os-tax-donut__track,
.os-tax-donut__slice {
  fill: none;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}

.os-tax-donut__track {
  stroke: #e7eef5;
  stroke-width: 20;
}

.os-tax-donut__slice {
  stroke-width: 24;
  transition: stroke-width 160ms ease, filter 160ms ease, opacity 160ms ease;
  cursor: pointer;
}

.os-tax-donut__slice.is-linked-hover {
  stroke-width: 30;
  filter: brightness(1.08) saturate(1.12);
}

.os-tax-donut:has(.os-tax-donut__slice.is-linked-hover) .os-tax-donut__slice:not(.is-linked-hover) {
  opacity: 0.42;
}

.os-tax-donut span {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 37%;
  height: 37%;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.9), inset 0 0 0 1px #e2eaf4;
  color: var(--os-navy);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1;
}

.os-tax-agency-details--inline {
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.os-tax-agency-details--inline .os-tax-agency-row {
  grid-template-columns: 12px minmax(0, 1fr) minmax(90px, auto) minmax(54px, auto);
  gap: 14px;
  min-height: 50px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(8, 26, 53, 0.09);
  background: transparent;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.os-tax-agency-details--inline .os-tax-agency-row:last-child {
  border-bottom: 0;
}

.os-tax-agency-details--inline .os-tax-agency-row:hover,
.os-tax-agency-details--inline .os-tax-agency-row.is-linked-hover {
  background: rgba(0, 130, 138, 0.06);
  box-shadow: -12px 0 0 rgba(0, 130, 138, 0.06), 12px 0 0 rgba(0, 130, 138, 0.06);
}

.os-tax-agency-details--inline .os-tax-agency-row__dot {
  width: 9px;
  height: 9px;
  align-self: center;
}

.os-tax-agency-details--inline .os-tax-agency-row__name {
  color: #26364e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.os-tax-agency-details--inline .os-tax-agency-row__amount {
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: right;
}

.os-tax-agency-details--inline .os-tax-agency-row__pct {
  color: #718096;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 820px) {
  .os-tax-money__content {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .os-tax-donut {
    width: min(100%, 420px);
  }

  .os-tax-agency-details--inline {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .os-tax-agency-details--inline .os-tax-agency-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }

  .os-tax-agency-details--inline .os-tax-agency-row__pct {
    grid-column: 2 / -1;
    text-align: left;
  }
}

/* Main reason history driver drilldown */
.os-tax-reason-history__driver-list {
  display: grid;
  margin-top: 8px;
}

.os-tax-reason-history__driver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto) minmax(100px, auto);
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid rgba(8, 26, 53, 0.06);
}

.os-tax-reason-history__driver span {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.os-tax-reason-history__driver strong {
  margin: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.os-tax-reason-history__driver em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

@media (max-width: 760px) {
  .os-tax-reason-history__driver {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .os-tax-reason-history__driver strong,
  .os-tax-reason-history__driver em {
    text-align: left;
  }
}

/* Mobile report readability pass */
.os-tax-reason-history__driver-empty {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .os-tax-story-card {
    padding: 18px;
  }

  .os-tax-reason-card,
  .os-tax-step,
  .os-tax-step--rate {
    grid-template-columns: 1fr !important;
    gap: 14px;
    align-items: start;
    padding: 16px;
  }

  .os-tax-reason-card {
    box-shadow: inset 0 4px 0 var(--os-green);
  }

  .os-tax-reason-card .os-tax-step__num {
    width: auto;
    height: auto;
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(47, 122, 23, 0.12);
    color: #2f7a17;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
  }

  .os-tax-reason-card h3 {
    font-size: 23px;
    line-height: 1.15;
  }

  .os-tax-reason-card p {
    font-size: 16px;
    line-height: 1.55;
  }

  .os-tax-step__num,
  .os-tax-step--rate .os-tax-step__num,
  .os-tax-step__icon,
  .os-tax-step__effect,
  .os-tax-step--rate .os-tax-step__effect {
    grid-column: auto !important;
  }

  .os-tax-step__num,
  .os-tax-step--rate .os-tax-step__num {
    justify-self: start;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 15px;
  }

  .os-tax-step__icon {
    justify-self: start;
    width: 50px;
    height: 50px;
  }

  .os-tax-step h2,
  .os-tax-step--rate h2 {
    font-size: 25px;
    line-height: 1.08;
  }

  .os-tax-step p {
    font-size: 16px;
    line-height: 1.45;
  }

  .os-tax-step__effect,
  .os-tax-step--rate .os-tax-step__effect {
    width: 100%;
    padding: 12px 14px;
  }

  .os-tax-step__effect strong,
  .os-tax-step--rate .os-tax-step__effect strong {
    font-size: 22px;
    line-height: 1.15;
  }

  .os-tax-line-chart {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .os-tax-scroll-note {
    display: block;
  }

  .os-tax-line-chart svg {
    width: 700px;
    max-width: none;
  }

  .os-tax-chart-year,
  .os-tax-chart-axis {
    font-size: 13px;
  }

  .os-tax-chart-legend {
    gap: 12px;
  }

  .os-tax-chart-legend span {
    font-size: 14px;
    line-height: 1.25;
  }

  .os-tax-footnote {
    font-size: 14px;
    line-height: 1.45;
  }

  .os-tax-reason-history {
    padding: 16px;
  }

  .os-tax-reason-history__head {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .os-tax-reason-history__head h3 {
    font-size: 27px;
    line-height: 1.1;
  }

  .os-tax-reason-history__head p {
    max-width: none;
    font-size: 15px;
  }

  .os-tax-reason-history__tile-amount {
    font-size: 22px;
  }

  .os-tax-reason-history__driver {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
  }

  .os-tax-reason-history__driver em {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Consolidated, non-!important rule for the "1" / "2" step badges — several
   earlier passes above styled .os-tax-step__num with CSS variables and
   !important overrides across duplicate blocks; pinning the colors here as
   plain hex removes any doubt about variable scope or cascade order. */
.os-tax-step__num {
  background: #7DB61C;
}

.os-tax-step--rate .os-tax-step__num {
  background: #00828A;
}

/* Signup verification modal */
.taxshift-modal {
  width: min(90vw, 420px);
  padding: 28px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(8, 26, 53, 0.22);
}

.taxshift-modal::backdrop {
  background: rgba(8, 26, 53, 0.55);
}

/* Qualified with .taxshift-modal (rather than a bare class) so these beat
   .taxshift-signup__form button — the modal gets swapped inside that form's
   result slot, and a bare class selector loses to that descendant rule. */
.taxshift-modal .taxshift-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.taxshift-modal__eyebrow {
  margin: 0 0 8px;
  color: #0e9aa4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.taxshift-modal h3 {
  margin: 0 0 12px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 24px;
}

.taxshift-modal p {
  margin: 0 0 20px;
  color: #42536a;
  font-size: 15px;
  line-height: 1.55;
}

.taxshift-modal .taxshift-modal__ok {
  width: auto;
  height: auto;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: #0e9aa4;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.taxshift-modal .taxshift-modal__ok:hover {
  background: #0c8790;
}

/* Verification landing page */
.taxshift-verify {
  width: min(100% - 40px, 640px);
  margin: 64px auto 96px;
  text-align: center;
}

.taxshift-verify h1 {
  margin: 0 0 14px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}

.taxshift-verify p {
  margin: 0 auto 24px;
  max-width: 480px;
  color: #42536a;
  font-size: 16px;
  line-height: 1.55;
}

.taxshift-verify__cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: #0e9aa4;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.taxshift-verify__cta:hover {
  background: #0c8790;
}

/* TaxShift auth/account/legal additions */
.taxshift-captcha,
.taxshift-signup__fineprint {
  grid-column: 1 / -1;
}

.taxshift-signup__fineprint {
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 12px;
  line-height: 1.45 !important;
}

.taxshift-signup__fineprint a {
  color: #9af0f6;
  font-weight: 800;
}

.taxshift-account,
.taxshift-legal {
  width: min(100% - 40px, 980px);
  margin: 24px auto 72px;
}

.taxshift-account__head,
.taxshift-legal {
  padding-top: clamp(24px, 5vw, 54px);
}

.taxshift-account__head h1,
.taxshift-legal h1 {
  margin: 0 0 12px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.03;
}

.taxshift-account__head p,
.taxshift-legal > p,
.taxshift-legal section p {
  color: #42536a;
  font-size: 16px;
  line-height: 1.65;
}

.taxshift-account__messages,
.taxshift-account__empty,
.taxshift-account__parcel,
.taxshift-legal section {
  border: 1px solid rgba(8, 26, 53, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(8, 26, 53, 0.08);
}

.taxshift-account__messages {
  margin: 18px 0;
  padding: 12px 14px;
  color: #0b7b5c;
  font-weight: 800;
}

.taxshift-account__messages p {
  margin: 0;
}

.taxshift-account__list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.taxshift-account__parcel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 3vw, 26px);
}

.taxshift-account__parcel span {
  color: #0e9aa4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.taxshift-account__parcel h2 {
  margin: 4px 0 6px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 24px;
  text-transform: none;
}

.taxshift-account__parcel h2 a {
  color: inherit;
}

.taxshift-account__parcel p,
.taxshift-account__empty p {
  margin: 0;
  color: #526173;
  line-height: 1.55;
}

.taxshift-account__prefs {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.taxshift-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #20334f;
  font-size: 14px;
  font-weight: 800;
}

.taxshift-toggle input {
  width: 18px;
  height: 18px;
}

.taxshift-account__prefs button,
.taxshift-account__empty a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: #18b7ca;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.taxshift-account__empty {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.taxshift-account__empty h2,
.taxshift-legal h2 {
  margin: 0 0 8px;
  color: #081a35;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 22px;
  text-transform: none;
}

.taxshift-account__empty a {
  margin-top: 18px;
}

.taxshift-legal__updated {
  margin-top: 0;
  font-size: 13px !important;
  font-weight: 800;
}

.taxshift-legal section {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.taxshift-legal section p {
  margin: 0;
}

.taxshift-legal a {
  color: #0e9aa4;
  font-weight: 800;
}

@media (max-width: 760px) {
  .taxshift-account,
  .taxshift-legal {
    width: min(100% - 28px, 980px);
  }

  .taxshift-account__parcel {
    grid-template-columns: 1fr;
  }

  .taxshift-account__prefs {
    justify-items: start;
  }
}

/* Staff dashboard */
.os-dash {
  width: min(100% - 32px, 1180px);
  margin: 28px auto 72px;
}

.os-dash__head {
  margin-bottom: 24px;
}

.os-dash__head h1 {
  margin: 0 0 6px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--ink);
}

.os-dash__meta {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.os-dash__meta a { color: var(--os-teal-dk); }

.os-dash__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.os-dash__stat {
  background: #ffffff;
  padding: 16px;
}

.os-dash__stat-num {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.os-dash__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-dash__panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.os-dash__panel h2 {
  margin: 0 0 14px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  color: var(--ink);
}

.os-dash__panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-dash__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.os-dash__panel-head h2 { margin-bottom: 0; }

.os-dash__panel-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.os-dash__panel-note code {
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 4px;
}

.os-dash__substats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--muted);
}

.os-dash__substats strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.os-dash__jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.os-dash__job {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.os-dash__job strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.os-dash__job p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.os-dash__job-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}

.os-dash__job.is-ok .os-dash__job-dot { background: var(--green); }
.os-dash__job.is-bad .os-dash__job-dot { background: var(--red); }
.os-dash__job.is-bad { border-color: rgba(179, 38, 30, 0.3); }

.os-dash__sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  margin: 4px 0 18px;
  padding: 0 2px;
}

.os-dash__sparkline span {
  flex: 1;
  min-height: 2px;
  background: var(--os-teal);
  border-radius: 2px 2px 0 0;
}

.os-dash__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.os-dash__table-wrap {
  overflow-x: auto;
}

.os-dash__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.os-dash__table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.os-dash__table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--panel);
  color: var(--ink);
  white-space: nowrap;
}

.os-dash__table tbody tr:hover { background: var(--panel); }

.os-dash__table a { color: var(--os-teal-dk); }

.os-dash__pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--panel);
  color: var(--muted);
}

.os-dash__pill--resolved { background: rgba(21, 115, 71, 0.12); color: var(--green); }
.os-dash__pill--pending { background: rgba(154, 101, 0, 0.12); color: var(--amber); }
.os-dash__pill--unresolved,
.os-dash__pill--ambiguous { background: rgba(179, 38, 30, 0.1); color: var(--red); }

@media (max-width: 760px) {
  .os-dash__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-dash__cols { grid-template-columns: minmax(0, 1fr); }
}
/* Parcel report mobile reason-card polish */
@media (max-width: 640px) {
  .os-tax-why--inside {
    gap: 10px;
  }

  .os-tax-why--inside .os-tax-step,
  .os-tax-why--inside .os-tax-step--rate {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px 12px;
    align-items: start;
    padding: 14px;
    border-radius: 8px;
  }

  .os-tax-why--inside .os-tax-step__num,
  .os-tax-why--inside .os-tax-step--rate .os-tax-step__num {
    grid-column: 1 !important;
    grid-row: 1;
    width: 34px;
    height: 34px;
    justify-self: start;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
  }

  .os-tax-why--inside .os-tax-step__icon {
    grid-column: 1 !important;
    grid-row: 2;
    width: 42px;
    height: 42px;
    justify-self: start;
  }

  .os-tax-why--inside .os-tax-step__icon svg {
    width: 22px;
    height: 22px;
  }

  .os-tax-why--inside .os-tax-step__body {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .os-tax-why--inside .os-tax-step h2,
  .os-tax-why--inside .os-tax-step--rate h2 {
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.08;
  }

  .os-tax-why--inside .os-tax-step p {
    font-size: 15px;
    line-height: 1.45;
  }

  .os-tax-why--inside .os-tax-step__effect,
  .os-tax-why--inside .os-tax-step--rate .os-tax-step__effect {
    grid-column: 2 !important;
    grid-row: 3;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    background: transparent;
  }

  .os-tax-why--inside .os-tax-step__effect strong,
  .os-tax-why--inside .os-tax-step--rate .os-tax-step__effect strong {
    font-size: 20px;
    line-height: 1.15;
  }

  .os-tax-why--inside .os-tax-step__effect span {
    margin-top: 3px;
    font-size: 14px;
  }
}