:root {
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #b8ccc8;
  --paper: #f8fafc;
  --card: #ffffff;
  --teal: #047857;
  --teal-deep: #065f46;
  --teal-soft: #ecfdf5;
  --orange: #e89949;
  --orange-soft: #fff5e9;
  --danger: #a94032;
  --danger-soft: #fff1ee;
  --shadow: 0 10px 32px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .06);
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.45;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background:
    radial-gradient(circle at 12% 18%, rgba(218, 240, 234, .9), transparent 24rem),
    radial-gradient(circle at 89% 12%, rgba(249, 238, 218, .7), transparent 22rem),
    linear-gradient(115deg, transparent 0 48%, rgba(204, 228, 221, .22) 48% 48.15%, transparent 48.15%);
}

.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--teal);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 7px 16px rgba(15, 118, 110, .2);
}
.brand-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand-name, .brand-subtitle { display: block; }
.brand-name { font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle { margin-top: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.header-note { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 11px; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #166534; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px #dcfce7; }

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 9px;
}
.hero-copy { max-width: 730px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow-line { display: inline-block; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 700px;
  margin-bottom: 4px;
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 820;
  letter-spacing: -.06em;
  line-height: 1.05;
}
h1 em { color: var(--teal); font-style: normal; }
.hero-lede { max-width: 560px; margin-bottom: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.lookup-card {
  position: relative;
  overflow: visible;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.lookup-card::before { display: none; }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 24px 16px; border-bottom: 1px solid #f1f5f9; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-topline > div:first-child { min-width: 0; }
.card-topline h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.card-meta { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.conversion-count { padding: 0; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.conversion-count strong { color: #496762; font-size: 10.5px; font-weight: 820; }
.conversion-count.is-ready strong { color: var(--teal-deep); }
.mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 0 24px; padding: 4px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f1f5f9; }
.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  text-align: center;
  transition: color .16s, background .16s, box-shadow .16s, transform .16s;
}
.mode-tab:hover:not(.is-active) { background: #e2e8f0; }
.mode-tab.is-active { background: var(--teal); color: #fff; box-shadow: 0 3px 10px rgba(4, 120, 87, .2); }
.mode-tab:active { transform: translateY(1px); }
.mode-tab strong { font-size: 12.5px; }

.panel-stack { padding: 20px 24px 16px; }
.lookup-panel { animation: panel-in .18s ease-out; }
@keyframes panel-in { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.panel-intro { margin-bottom: 12px; }
.panel-intro h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.smart-address {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  align-items: center;
  gap: 3px 12px;
  padding: 12px;
  border: 1px solid #a7d9c8;
  border-radius: 12px;
  background: var(--teal-soft);
  box-shadow: 0 3px 12px rgba(4, 120, 87, .06);
}
.smart-address-label { color: var(--teal-deep); font-size: 12px; font-weight: 820; }
.smart-address-control { display: flex; min-width: 0; }
.smart-address-control input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #69a99d;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(18, 69, 63, .05);
}
.smart-address-control input::placeholder { color: #657d79; font-weight: 520; }
.smart-address-control input:hover { border-color: #2d897f; }
.smart-address-control input:focus { position: relative; z-index: 1; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .17); }
.smart-address-control button { flex: 0 0 auto; min-height: 48px; padding: 0 16px; border: 1px solid var(--teal-deep); border-radius: 0 10px 10px 0; background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 800; }
.smart-address-control button:hover { background: #074e49; }
.smart-address-control button:focus-visible { outline: 3px solid rgba(15, 118, 110, .24); outline-offset: 2px; }
.smart-address-help { grid-column: 2; margin: 0; color: #5f7773; font-size: 9.5px; line-height: 1.35; }
.smart-address-feedback { grid-column: 1 / -1; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.smart-address-feedback:empty { display: none; }
.smart-address-feedback.is-ready { color: var(--teal-deep); font-weight: 700; }
.smart-address-feedback.is-warning { color: #8d571d; }
.smart-feedback-message { margin: 5px 0 0; }
.smart-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 7px 0 1px; padding: 0; list-style: none; }
.smart-suggestion { width: 100%; padding: 8px 10px; border: 1px solid #b9d4ce; border-radius: 9px; background: #fff; color: var(--ink); text-align: left; }
.smart-suggestion:hover { border-color: var(--teal); background: #f7fcfa; }
.smart-suggestion strong, .smart-suggestion small { display: block; }
.smart-suggestion strong { font-size: 11.5px; }
.smart-suggestion small { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.fields-grid { display: grid; gap: 16px; }
.old-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.field > label { display: block; margin: 0 0 5px 2px; color: #2c4b49; font-size: 11.5px; font-weight: 800; }
.field > label span { color: var(--orange); }

.combo { position: relative; }
.combo-input-wrap { position: relative; }
.combo-lock { display: none; position: absolute; z-index: 1; top: 50%; left: 13px; width: 16px; height: 16px; color: #8a949f; transform: translateY(-50%); pointer-events: none; }
.combo-lock svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.combo.is-disabled .combo-lock { display: block; }
.combo-input {
  width: 100%;
  min-height: 48px;
  padding: 0 76px 0 14px;
  overflow: hidden;
  border: 1px solid #b8ccc8;
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(18, 69, 63, .04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.combo-input::placeholder { color: #718481; font-weight: 520; }
.combo-input:hover:not(:disabled) { border-color: #3e8d83; box-shadow: 0 2px 7px rgba(15, 118, 110, .09); }
.combo-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(4, 120, 87, .16), 0 2px 8px rgba(4, 120, 87, .1); }
.combo-input:disabled { padding-left: 38px; cursor: not-allowed; border-color: #e1e4e8; background: #e5e7eb; color: #6b7280; }
.combo-input:disabled::placeholder { color: #6b7280; opacity: 1; }
.combo-clear { position: absolute; top: 1px; right: 39px; bottom: 1px; width: 34px; border: 0; background: transparent; color: #64748b; font-size: 22px; line-height: 1; }
.combo-clear:hover { color: var(--teal); }
.combo-clear:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.combo-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 38px; border: 0; border-radius: 0 10px 10px 0; background: transparent; color: var(--muted); font-size: 17px; }
.combo-toggle:disabled { display: none; cursor: not-allowed; }
.combo-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.combo-toggle::before { display: block; content: "⌄"; transform: translateY(-2px); }
.combo.is-open .combo-toggle::before { transform: rotate(180deg) translateY(1px); }
.combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 258px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(23, 68, 63, .16);
  list-style: none;
}
.combo-option { margin: 0; }
.combo-section { position: sticky; top: 0; z-index: 1; padding: 8px 11px 5px; background: rgba(255,255,255,.96); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.combo-option button { width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; text-align: left; }
.combo-option button:hover, .combo-option button[aria-selected="true"] { background: var(--teal-soft); color: var(--teal-deep); }
.combo-option-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-badge { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; background: #fff0d9; color: #8a541a; font-size: 8.5px; font-weight: 800; text-transform: uppercase; }
.combo-option small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 500; }
.combo-empty { padding: 13px 10px; color: var(--muted); font-size: 12px; }
.combo-count { padding: 7px 10px 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.field-hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.selection-hint { min-height: 17px; margin: 8px 2px 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.selection-hint.is-ready { color: var(--teal); font-weight: 700; }
.selection-hint.is-warning { color: #a96827; font-weight: 650; }

.result-region { min-height: 100px; padding: 0 24px 24px; }
.result-empty { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 84px; padding: 12px; border: 1px solid #cbd9d5; border-radius: var(--radius-md); background: #f8faf9; color: var(--ink-soft); text-align: left; }
.empty-illustration { display: block; width: 46px; height: 34px; color: #5e958a; opacity: .9; }
.empty-illustration svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-illustration .map-fill { fill: #e8f1ef; stroke: none; }
.result-empty p { margin: 0; color: #405b58; font-size: 12px; font-weight: 650; }
.loading-spinner { width: 24px; height: 24px; border: 2px solid #d7e7e3; border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-card { padding: 24px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.result-card.warning { border-color: #efd5b0; background: linear-gradient(135deg, #fff9f0, #fffefd); }
.result-eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.result-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.warning .result-eyebrow { color: #a96827; }
.comparison-grid { display: grid; grid-template-columns: minmax(0, .94fr) 34px minmax(0, 1.06fr); align-items: stretch; gap: 10px; }
.comparison-grid.is-current-only { grid-template-columns: minmax(0, 1fr); }
.comparison-grid.is-current-only .comparison-card { max-width: 540px; }
.comparison-card { min-width: 0; padding: 16px 18px; border-radius: 12px; }
.comparison-card-old { border: 1px solid #c7d0d2; background: #eef1f2; }
.comparison-card-new { border: 1px solid #86efac; background: #ecfdf5; box-shadow: inset 4px 0 0 #059669, 0 5px 14px rgba(5, 150, 105, .1); }
.comparison-label { display: block; margin-bottom: 6px; color: #536266; font-size: 9.5px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.comparison-card-new .comparison-label { color: #047857; }
.comparison-card h3 { margin: 0 0 4px; overflow-wrap: anywhere; color: #1f3739; font-size: clamp(17px, 1.7vw, 19px); font-weight: 780; letter-spacing: -.035em; line-height: 1.2; }
.comparison-card-new h3 { color: #047857; font-size: clamp(24px, 2.5vw, 28px); font-weight: 850; }
.comparison-card p { margin: 2px 0 0; color: #4d5f60; font-size: 11px; font-weight: 650; }
.comparison-card-new p { color: #166534; font-weight: 700; }
.current-address-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.current-address-heading .comparison-label { margin-bottom: 0; }
.address-level-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: #d1fae5; color: #065f46; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.comparison-arrow { display: grid; place-self: center; place-items: center; width: 32px; height: 32px; border: 3px solid #e6f5f1; border-radius: 50%; background: #0b6b63; color: #fff; box-shadow: 0 4px 11px rgba(11, 107, 99, .24); }
.comparison-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.warning h3 { max-width: 660px; margin-bottom: 15px; font-size: 18px; }
.office-location { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); background: transparent; }
.office-location.is-review { border-color: #ead6b4; background: transparent; }
.office-location.is-unavailable { border-color: #d7dedf; background: transparent; }
.office-location-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.office-location-topline .comparison-label { margin-bottom: 0; color: #176344; }
.office-location.is-review .office-location-topline .comparison-label { color: #916221; }
.office-location-status { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; background: #d9f1e4; color: #176344; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.office-location.is-review .office-location-status { background: #f8e9cf; color: #916221; }
.office-location.is-unavailable .office-location-status { background: #e7ecec; color: #5e6c6d; }
.office-location-address { margin: 7px 0 0; color: #234d40; font-size: 12px; font-weight: 700; line-height: 1.5; }
.maps-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; width: fit-content; padding: 9px 14px; border: 1px solid #86efac; border-radius: 10px; background: #fff; color: #047857; font-size: 11px; font-weight: 850; text-decoration: none; }
.maps-link:hover { border-color: #34d399; background: #ecfdf5; color: #065f46; }
.maps-link-reference { border-color: #e5c98a; background: #fffaf0; color: #916221; }
.maps-link-reference:hover { border-color: #d6a84f; background: #fff7e6; color: #7c5413; }
.maps-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.office-location-note { margin: 8px 0 0; color: #647875; font-size: 10px; line-height: 1.5; }
.office-location.is-review .office-location-note { color: #806b4e; }
.result-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--teal); border-radius: 10px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .04em; transition: background .15s, transform .15s; }
.copy-button:hover { background: var(--teal-deep); transform: translateY(-1px); }
.copy-button:focus-visible, .source-link:focus-visible, .maps-link:focus-visible, .mode-tab:focus-visible, .combo-clear:focus-visible { outline: 3px solid rgba(4, 120, 87, .25); outline-offset: 3px; }
.copy-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.maps-action-note { color: var(--muted); font-size: 10px; line-height: 1.4; }
.source-link { color: #475569; font-size: 11px; font-weight: 700; text-decoration: none; }
.source-link:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.result-sources { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.result-sources-label { flex: 0 0 auto; font-weight: 800; }
.result-sources-links { display: flex; flex-wrap: wrap; gap: 8px; }
.source-meta { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(226, 232, 240, .9); color: var(--muted); font-size: 10px; }
.history-chain { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.68); color: var(--muted); font-size: 11px; line-height: 1.65; }
.history-chain strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.history-chain span { color: var(--teal-dark); font-weight: 650; }
.history-branches { display: grid; gap: 7px; margin: 0; padding-left: 18px; }
.history-branches li::marker { color: var(--teal); font-weight: 800; }
.candidate-label { margin: 0 0 11px; color: #a96827; font-size: 11px; font-weight: 750; }
.candidate-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.candidate-item { padding: 11px 12px; border: 1px solid #efd5b0; border-radius: 10px; background: rgba(255,255,255,.7); }
.candidate-item strong { display: block; color: var(--ink); font-size: 12px; }
.candidate-item small { display: block; margin-top: 3px; color: #9b7853; font-size: 10px; }
.warning-explanation { max-width: 780px; margin: 16px 0 0; color: #765e42; font-size: 11px; line-height: 1.55; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); overflow: hidden; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: rgba(255,255,255,.82); }
.trust-icon { display: grid; place-items: center; width: 29px; height: 29px; color: var(--teal); background: var(--teal-soft); border-radius: 9px; font-weight: 850; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { color: var(--ink); font-size: 13px; letter-spacing: -.025em; }
.trust-item small { margin-top: 1px; color: var(--muted); font-size: 9px; }

.legal-note { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0 28px; padding: 13px 15px; border: 1px solid #eadfca; border-radius: 13px; background: rgba(255, 250, 240, .66); }
.legal-note-mark { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; color: #a96827; border: 1px solid #d8b78c; border-radius: 50%; font-size: 11px; font-weight: 800; }
.legal-note p { flex: 1; margin: 0; color: #796c58; font-size: 11px; line-height: 1.55; }
.legal-links { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.legal-note a { color: #966c39; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.legal-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 28px; color: var(--muted); font-size: 10px; font-weight: 600; }

.data-details { margin: 16px 0 28px; border-top: 1px solid var(--line); }
.data-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 2px; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 750; list-style: none; }
.data-details summary::-webkit-details-marker { display: none; }
.data-details summary::after { content: "⌄"; color: var(--teal); font-size: 16px; line-height: 1; transition: transform .16s; }
.data-details[open] summary::after { transform: rotate(180deg); }
.data-details-body { padding-top: 2px; }
.data-details .trust-strip { margin-top: 8px; }
.data-details .legal-note { margin-bottom: 0; }

.is-hidden { display: none !important; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, 600px); }
  .site-header { min-height: 58px; }
  .header-note { min-height: 30px; padding: 5px 9px; font-size: 10px; }
  .hero { align-items: flex-start; gap: 10px; padding: 20px 0 18px; }
  .eyebrow { display: none; }
  h1 { margin-bottom: 4px; font-size: clamp(29px, 8.2vw, 36px); line-height: 1.04; }
  .hero-lede { font-size: 12.5px; line-height: 1.35; }
  .card-topline { padding: 18px 16px 13px; }
  .card-topline h2 { font-size: 19px; }
  .card-topline { gap: 10px; }
  .card-meta { align-items: flex-end; }
  .mode-tabs { margin: 0 16px; padding: 4px; }
  .mode-tab { min-height: 44px; padding: 8px 9px; }
  .mode-tab strong { font-size: 12px; }
  .panel-stack { padding: 16px 16px 12px; }
  .panel-intro { margin-bottom: 8px; }
  .panel-intro p { display: none; }
  .panel-intro h3 { font-size: 13.5px; }
  .smart-address { grid-template-columns: 1fr; gap: 6px; padding: 9px; }
  .smart-address-label { font-size: 11.5px; }
  .smart-address-help { grid-column: 1; }
  .smart-address-feedback { grid-column: 1; }
  .smart-address-control input { min-height: 46px; }
  .smart-address-control button { min-height: 46px; padding: 0 12px; }
  .smart-suggestions { grid-template-columns: 1fr; }
  .old-fields { grid-template-columns: 1fr; max-width: none; }
  .field > label { margin-top: 1px; margin-bottom: 4px; }
  .selection-hint { white-space: normal; }
  .result-region { min-height: 98px; padding: 0 16px 16px; }
  .result-empty { min-height: 84px; padding: 11px; }
  .result-card { padding: 16px; }
  .result-card.warning { padding: 16px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 8px; }
  .comparison-arrow { width: 30px; height: 30px; transform: rotate(90deg); }
  .comparison-card { padding: 13px 14px; }
  .comparison-card-new h3 { font-size: 24px; }
  .result-actions { align-items: stretch; }
  .result-actions .copy-button, .result-actions .maps-link { flex: 1 1 180px; }
  .result-sources { align-items: flex-start; flex-direction: column; gap: 4px; }
  .candidate-list { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; gap: 1px; }
  .trust-item { padding: 14px 17px; }
  .legal-note { flex-wrap: wrap; }
  .legal-note p { flex-basis: calc(100% - 31px); }
  .legal-links { align-items: flex-start; margin-left: 29px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .header-note { max-width: 58vw; overflow: hidden; padding: 5px 8px; font-size: 9px; text-overflow: ellipsis; }
  .brand-name { font-size: 13px; }
  .brand-subtitle { display: none; }
  .card-topline h2 { font-size: 19px; }
  .conversion-count { padding: 4px 7px; font-size: 9px; }
  .conversion-count strong { font-size: 9.5px; }
  .mode-tab { gap: 6px; }
}

/* Desktop/laptop refinement. Keep the existing mobile and tablet layout unchanged. */
@media (min-width: 1024px) {
  .site-shell { width: min(1280px, calc(100% - 64px)); }
  .site-header { min-height: 68px; }

  .hero { padding: 18px 0 16px; }
  h1 { font-size: 42px; }

  .card-topline { align-items: center; padding: 18px 28px 14px; }
  .card-topline h2 { font-size: 21px; }
  .conversion-count {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #d6e6e2;
    border-radius: 999px;
    background: #f4fbf8;
    color: #52706b;
    font-size: 11.5px;
    font-weight: 720;
  }
  .conversion-count strong { color: var(--teal-deep); font-size: 15px; font-weight: 850; }

  .mode-tabs {
    gap: 3px;
    margin: 12px 28px 0;
    padding: 3px;
    border-color: #cbd5e1;
    border-radius: 11px;
    background: #eef2f4;
  }
  .mode-tab { min-height: 36px; padding: 6px 12px; border-radius: 8px; }
  .mode-tab.is-active { box-shadow: 0 2px 7px rgba(4, 120, 87, .2); }
  .mode-tab strong { font-size: 12px; }

  .panel-stack { padding: 14px 28px 13px; }
  .panel-intro { margin-bottom: 10px; }
  .fields-grid { gap: 20px; }
  .combo-input { min-height: 46px; }
  .selection-hint { margin-top: 7px; }
  .smart-address { grid-template-columns: 142px minmax(0, 1fr); }
  .smart-address-control input, .smart-address-control button { min-height: 46px; }

  .result-region { min-height: 96px; padding: 0 28px 28px; }
  .result-empty { min-height: 78px; }
  .result-card { width: 100%; padding: 26px 28px 28px; }
  .result-eyebrow { margin-bottom: 12px; font-size: 10.5px; }
  .comparison-grid { grid-template-columns: minmax(0, .78fr) 48px minmax(0, 1.22fr); gap: 14px; }
  .comparison-grid.is-current-only { grid-template-columns: minmax(0, 1fr); }
  .comparison-grid.is-current-only .comparison-card { max-width: none; }
  .comparison-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 128px;
    padding: 20px 22px;
  }
  .comparison-card-new { padding: 22px 26px; }
  .comparison-card h3 { font-size: 19px; }
  .comparison-card-new h3 { font-size: clamp(28px, 2.3vw, 34px); }
  .comparison-card p { font-size: 11.5px; }
  .comparison-arrow { width: 40px; height: 40px; border-width: 4px; }
  .comparison-arrow svg { width: 20px; height: 20px; }

  .office-location { margin-top: 18px; padding-top: 16px; }
  .result-actions { margin-top: 18px; padding-top: 16px; }
  .copy-button { min-width: 168px; min-height: 46px; font-size: 11.5px; }
  .result-sources {
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    background: #f8fafc;
  }
  .result-sources-label { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
  .history-chain { margin-top: 14px; }
}
