:root {
    --navy: #17243A;
    --navy-soft: #2E3A4E;
    --gold: #F1B208;
    --gold-hover: #DFA300;
    --green: #23864B;
    --green-dark: #176B3C;
    --green-soft: #EAF6EC;
    --ink: #142033;
    --muted: #667085;
    --muted-light: #8A94A4;
    --page: #F7F9FC;
    --surface: #FFFFFF;
    --surface-soft: #FBFCFE;
    --border: #DDE3EB;
    --border-strong: #C9D1DC;
    --danger: #A23D45;
    --gold-soft: #FFF8DD;
    --shadow-control: 0 5px 16px rgba(20, 32, 51, 0.07);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
    color: var(--ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    letter-spacing: -0.025em;
}

h1 {
    font-weight: 800;
}

h2,
h3 {
    font-weight: 700;
}

a {
    color: inherit;
}

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

.app-shell > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.content-shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.results-shell {
    max-width: 1040px;
}

.narrow-page,
.narrow-shell {
    max-width: 720px;
}

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

/* Header */
.site-header {
    position: relative;
    z-index: 40;
    min-height: 62px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand strong {
    font-size: 0.98rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.primary-nav a {
    position: relative;
    padding: 20px 0 18px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--ink);
}

.primary-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 11px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold);
}

/* Controls */
.btn {
    min-height: 48px;
    padding: 10px 17px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: none !important;
}

.btn-primary {
    color: var(--navy);
    background: var(--gold);
    border-color: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: var(--navy) !important;
    background: var(--gold-hover) !important;
    border-color: var(--gold-hover) !important;
}

.btn-outline-primary {
    color: var(--navy);
    background: var(--surface);
    border-color: var(--border-strong);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: var(--navy) !important;
    background: #F3F6F9 !important;
    border-color: #8F9AAA !important;
}

.btn:focus-visible,
.form-control:focus-visible,
.office-button:focus-visible,
.feedback-choice:focus-visible,
.backup-toggle:focus-visible,
.text-button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(241, 178, 8, 0.38);
    outline-offset: 2px;
}

.form-control {
    min-height: 50px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.form-control::placeholder {
    color: #8C95A3;
}

.form-control:focus {
    color: var(--ink);
    background: var(--surface);
    border-color: #6C788A;
    box-shadow: 0 0 0 3px rgba(46, 58, 78, 0.10);
}

.eyebrow,
.page-kicker,
.result-data-line {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* Homepage */
.home-page {
    flex: 1 0 auto;
    background: var(--surface);
}

.home-hero {
    padding: 70px 0 56px;
    background: var(--surface);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 54px;
    align-items: center;
}

.home-search-shell {
    min-width: 0;
}

.home-eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-search-shell h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.8rem, 4.7vw, 3.55rem);
    line-height: 1.035;
    text-wrap: balance;
}

.home-lead {
    max-width: 650px;
    margin: 18px 0 0;
    color: #475467;
    font-size: 1.08rem;
    line-height: 1.58;
}

.property-search {
    margin-top: 26px;
}

.property-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 10px;
    align-items: stretch;
}

.property-search-input-wrap {
    position: relative;
    min-width: 0;
}

.property-search-input {
    width: 100%;
    min-height: 56px;
    padding: 13px 44px 13px 16px;
    font-size: 0.96rem;
    box-shadow: var(--shadow-control);
}

.property-search-button {
    min-height: 56px;
    width: 100%;
}

.home-search-shell .property-search-control {
    grid-template-columns: minmax(0, 1fr) 192px;
}

.home-search-shell .property-search-input {
    min-height: 58px;
    padding-left: 17px;
    font-size: 0.98rem;
    border-color: var(--border-strong);
    box-shadow: 0 7px 22px rgba(20, 32, 51, 0.075);
}

.home-search-shell .property-search-input:focus {
    border-color: #8691A1;
    box-shadow: 0 0 0 3px rgba(46, 58, 78, 0.10), 0 7px 22px rgba(20, 32, 51, 0.075);
}

.home-search-shell .property-search-button {
    min-height: 58px;
    box-shadow: 0 7px 18px rgba(241, 178, 8, 0.18);
}

.property-search-compact {
    max-width: 650px;
    margin-inline: 0;
}

.search-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid #D9DEE6;
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.address-suggestions {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 14px 30px rgba(20, 32, 51, 0.14);
}

.address-suggestion {
    width: 100%;
    display: block;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.address-suggestion:hover,
.address-suggestion.active {
    background: #F2F5F8;
}

.address-suggestion span,
.address-suggestion small {
    display: block;
}

.address-suggestion span {
    font-weight: 700;
}

.address-suggestion small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.validation-message {
    margin: 8px 2px 0;
    color: var(--danger);
    font-size: 0.84rem;
}

.home-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.home-trust-strip span {
    position: relative;
    padding-left: 14px;
}

.home-trust-strip span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.46em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.home-value-line {
    margin: 11px 0 0;
    color: #344054;
    font-size: 0.88rem;
}

.home-value-line strong {
    color: var(--ink);
}

.home-guarantee-line {
    margin: 5px 0 0;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 650;
}

.home-guarantee-line a {
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-proof-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(20, 32, 51, 0.09);
}

.home-proof-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.home-proof-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.home-proof-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.home-proof-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #E1C967;
    border-radius: 999px;
    background: var(--gold-soft);
    color: #675A2A;
    font-size: 0.68rem;
    font-weight: 800;
}

.home-proof-signal {
    margin-top: 20px;
    padding: 17px 18px;
    background: #F5F8FB;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}

.home-proof-signal > strong,
.home-proof-signal > span {
    display: block;
}

.home-proof-signal > strong {
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 1rem;
}

.home-proof-signal > span {
    margin-top: 4px;
    color: #475467;
    font-size: 0.83rem;
}

.home-proof-signal b {
    color: var(--green-dark);
    font-size: 1.05rem;
}

.home-proof-list {
    margin-top: 11px;
}

.home-proof-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 11px 2px;
    border-bottom: 1px solid #E9EDF2;
}

.home-proof-row:last-child {
    border-bottom: 0;
}

.home-proof-row strong,
.home-proof-row span {
    display: block;
}

.home-proof-row strong {
    font-size: 0.82rem;
}

.home-proof-row span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
}

.home-proof-metric {
    text-align: right;
}

.home-proof-metric strong {
    color: var(--green-dark);
}


.home-proof-more {
    padding: 9px 2px 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.home-proof-note {
    margin: 14px 0 0;
    padding-top: 12px;
    color: var(--muted);
    border-top: 1px solid #E9EDF2;
    font-size: 0.69rem;
    line-height: 1.45;
}

.home-process {
    padding: 36px 0 44px;
    background: var(--page);
    border-top: 1px solid #EEF1F5;
}

.home-process-shell {
    display: grid;
    grid-template-columns: 0.72fr 1.8fr;
    gap: 46px;
    align-items: start;
}

.home-process-heading h2 {
    max-width: 310px;
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.home-process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-process-steps article {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.home-step-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: #FFFFFF;
    font-size: 0.73rem;
    font-weight: 800;
}

.home-process-steps h3 {
    margin: 2px 0 4px;
    font-size: 0.9rem;
}

.home-process-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.sample-package-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sample-package-trigger:hover {
    color: #111A2A;
}

.filing-kit-offer .sample-package-trigger {
    color: #FFFFFF;
    text-decoration-color: rgba(255, 255, 255, 0.45);
}

.filing-kit-offer .sample-package-trigger:hover {
    color: var(--gold);
}

.sample-package-modal .modal-content {
    overflow: hidden;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(20, 32, 51, 0.20);
}

.sample-package-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid var(--border);
}

.sample-package-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sample-package-modal .sample-package-modal-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.42rem;
}

.sample-package-modal-header p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.sample-package-pages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px 26px;
    background: #F4F6F9;
}

.sample-package-page {
    position: relative;
    min-height: 390px;
    padding: 22px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #D9E0E8;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(20, 32, 51, 0.08);
}

.sample-package-page::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    height: 1px;
    background: #E6EAF0;
}

.sample-page-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.sample-page-brand > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 900;
}

.sample-page-brand strong {
    color: var(--navy);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 0.75rem;
    line-height: 1.05;
}

.sample-package-page > small,
.sample-page-section-label {
    color: var(--green-dark);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sample-package-page h3 {
    margin: 8px 0 18px;
    color: var(--navy);
    font-size: 1.02rem;
    line-height: 1.25;
}

.sample-page-address {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 0.69rem;
    font-weight: 800;
}

.sample-page-hero {
    padding: 16px;
    background: var(--navy);
    color: #FFFFFF;
}

.sample-page-hero span,
.sample-page-hero strong,
.sample-page-hero small {
    display: block;
}

.sample-page-hero span {
    color: #CAD3DF;
    font-size: 0.56rem;
    font-weight: 800;
}

.sample-page-hero strong {
    margin-top: 6px;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 1.55rem;
}

.sample-page-hero small {
    margin-top: 5px;
    color: #F6C84B;
    font-size: 0.68rem;
    font-weight: 800;
}

.sample-page-note {
    margin-top: 18px;
    padding: 11px 12px;
    background: var(--gold-soft);
    border-left: 3px solid var(--gold);
    color: #4E482F;
    font-size: 0.67rem;
    line-height: 1.4;
}

.sample-page-comp {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 2px 10px;
    padding: 14px 0;
    border-top: 1px solid #E8ECF1;
}

.sample-page-comp strong {
    grid-row: 1 / span 2;
    color: var(--green-dark);
    font-size: 0.78rem;
}

.sample-page-comp span {
    color: var(--ink);
    font-size: 0.71rem;
    font-weight: 800;
}

.sample-page-comp small {
    color: var(--muted);
    font-size: 0.62rem;
}

.sample-page-foot {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.62rem;
}

.sample-page-checklist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sample-page-checklist li {
    position: relative;
    padding-left: 22px;
    color: #475467;
    font-size: 0.7rem;
    line-height: 1.35;
}

.sample-page-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #EAF5EF;
    color: var(--green-dark);
    font-size: 0.58rem;
    font-weight: 900;
}

.sample-package-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 26px 18px;
}

.sample-package-modal-footer span {
    color: var(--muted);
    font-size: 0.72rem;
}

.capacity-panel {
    margin-top: 25px;
    padding: 18px 20px;
    background: var(--gold-soft);
    border: 1px solid #ECD47D;
    border-radius: 9px;
}

.capacity-panel h2 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.capacity-panel p {
    margin: 0;
    color: #675A2A;
}

/* Results */
.results-page {
    padding: 26px 0 54px;
    background: var(--page);
}

.results-utility {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.back-link {
    color: #50627D;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.back-link:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.result-data-line {
    margin: 0;
    text-align: right;
    letter-spacing: 0;
    font-weight: 600;
}

.result-intro {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    margin: 22px 0 19px;
}

.result-signal-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
}

.result-intro h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.95rem, 3.2vw, 2.35rem);
    line-height: 1.12;
}

.result-intro h1 span,
.result-intro h1 strong {
    display: block;
}

.result-intro h1 strong {
    color: var(--green);
}

.result-property-name {
    margin: 9px 0 0;
    font-weight: 700;
}

.result-property-facts {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.result-pin {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.result-metric {
    min-width: 0;
    padding: 14px 16px;
    border-left: 1px solid var(--border);
}

.result-metric:first-child {
    border-left: 0;
}

.result-metric span,
.result-metric strong,
.result-metric small {
    display: block;
}

.result-metric span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.result-metric strong {
    margin-top: 3px;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.25;
}

.result-metric small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.71rem;
    line-height: 1.25;
}

.result-metric-emphasis {
    background: #F7FBF8;
}

.result-metric-emphasis strong {
    color: var(--green);
}

.result-metric-secondary {
    background: var(--surface-soft);
}

.result-metric-secondary strong {
    color: #435066;
}

.comparison-section {
    margin-top: 21px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 9px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.comparable-list {
    display: grid;
    gap: 9px;
}

.comparable-card {
    display: grid;
    grid-template-columns: 92px minmax(220px, 1.12fr) minmax(250px, 1fr) 160px;
    gap: 17px;
    align-items: center;
    min-height: 112px;
    padding: 15px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.comparable-card-backup {
    background: var(--surface-soft);
}

.comp-difference {
    padding-right: 13px;
    border-right: 1px solid var(--border);
}

.comp-difference strong,
.comp-difference span,
.comp-difference small {
    display: block;
}

.comp-difference strong {
    color: var(--green);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 1.78rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.comp-difference span {
    margin-top: 3px;
    color: var(--green-dark);
    font-weight: 700;
    line-height: 1.1;
}

.comp-difference small {
    margin-top: 3px;
    color: var(--ink);
    font-size: 0.72rem;
}

.comp-property {
    min-width: 0;
}

.comp-property h3 {
    margin: 0;
    color: #194A98;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.comp-locality {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 0.82rem;
}

.comp-value-line {
    margin: 9px 0 0;
    color: var(--ink);
    font-size: 0.79rem;
    line-height: 1.35;
}

.comp-value-line strong {
    font-size: 0.88rem;
}

.comp-value-line span {
    padding-inline: 3px;
    color: var(--muted-light);
}

.comp-assessment-split {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.35;
}

.comp-assessment-split span {
    padding-inline: 3px;
    color: var(--muted-light);
}

.comp-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 13px;
    padding-inline: 15px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: #435066;
    font-size: 0.73rem;
}

.comp-details span:last-child {
    grid-column: 1 / -1;
}

.comp-verification {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.match-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 1.15;
}

.match-excellent {
    color: #257342;
    background: #E6F5E9;
}

.match-strong {
    color: #745D13;
    background: #FFF4C9;
}

.match-good {
    color: #315D78;
    background: #E8F2F7;
}

.comp-verification small {
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.35;
}

.backup-matches-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 13px 2px 2px;
}

.backup-matches-heading strong {
    font-size: 0.92rem;
}

.backup-matches-heading span {
    color: var(--muted);
    font-size: 0.76rem;
}

.additional-matches-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 2px 0;
}

.additional-matches-panel strong {
    display: block;
    font-size: 0.88rem;
}

.additional-matches-panel p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.backup-toggle {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #194A98;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.backup-toggle:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Email unlock */
.email-unlock-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.78fr) minmax(420px, 1.35fr);
    gap: 24px;
    align-items: center;
    margin-top: 14px;
    padding: 18px 20px;
    color: var(--surface);
    background: var(--navy);
    border-radius: 9px;
}

.unlock-copy h3 {
    margin: 0;
    color: var(--surface);
    font-size: 1.05rem;
    line-height: 1.3;
}

.unlock-copy p {
    margin: 7px 0 0;
    color: #D5DCE7;
    font-size: 0.78rem;
    line-height: 1.5;
}

.unlock-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--surface);
    font-size: 0.76rem;
    font-weight: 700;
}

.unlock-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.unlock-input-row .form-control,
.unlock-input-row .btn {
    min-height: 47px;
}

.unlock-input-row .btn {
    min-width: 166px;
}

.unlock-form small {
    display: block;
    margin-top: 7px;
    color: #BBC5D4;
    font-size: 0.68rem;
    line-height: 1.45;
}

.code-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.code-heading label,
.code-heading span {
    display: block;
}

.code-heading span {
    color: #C9D2DF;
    font-size: 0.72rem;
}

.code-input {
    letter-spacing: 0.18em;
    font-weight: 700;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #F8D65E;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.email-delivery-hint {
    margin: 8px 0 10px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #25344D;
    color: #DCE3EC;
    font-size: 0.72rem;
}

.email-delivery-hint strong {
    color: var(--surface);
}

.resend-button {
    margin-top: 7px;
}

.unlock-message {
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: #C8ECD9;
    font-size: 0.76rem;
}

.unlock-message.unlock-error {
    color: #FFD1D3;
}

.unlock-status {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #CBD2DD;
}

.mini-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #566278;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.unlock-success {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.unlock-success-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
}

.unlock-success strong {
    display: block;
    color: var(--surface);
}

.unlock-success p {
    margin: 1px 0 0;
    color: #CBD2DD;
    font-size: 0.74rem;
}

.unlock-success-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

/* Appeal preparation */
.appeal-panel {
    margin-top: 28px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.appeal-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.appeal-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.office-fieldset {
    min-width: 0;
    margin: 17px 0 0;
    padding: 14px;
    border: 1px solid #D6DEE8;
    border-radius: 10px;
    background: #F5F7FA;
}

.office-fieldset legend {
    margin: 0 0 10px;
    padding: 0 4px;
    color: #25344A;
    font-size: 0.83rem;
    font-weight: 800;
}

.office-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.office-button {
    position: relative;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    border: 1px solid #C5CFDB;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 1px 2px rgba(23, 36, 55, 0.05);
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.office-button:hover {
    border-color: #7F91A8;
    background: #FAFCFF;
    box-shadow: 0 2px 5px rgba(23, 36, 55, 0.08);
}

.office-button.selected {
    border-color: #2957A4;
    background: #EDF4FD;
    box-shadow: inset 0 0 0 1px #2957A4, 0 2px 5px rgba(41, 87, 164, 0.10);
}

.office-choice-indicator {
    position: absolute;
    top: 11px;
    left: 11px;
    width: 15px;
    height: 15px;
    border: 1.5px solid #9AA5B4;
    border-radius: 50%;
}

.office-button.selected .office-choice-indicator {
    border: 4px solid #2957A4;
    background: #FFFFFF;
}

.office-button.selected strong {
    color: #1E4B8D;
}

.office-button strong {
    max-width: 170px;
    font-size: 0.82rem;
    line-height: 1.3;
}

.office-button small {
    max-width: 190px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.35;
}

.appeal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.appeal-actions .btn {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 0.78rem;
}

.statement-preview {
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.statement-preview summary {
    padding: 11px 0 5px;
    color: #40516B;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.appeal-draft-text {
    min-height: 230px;
    margin-top: 7px;
    resize: vertical;
    background: #FBFCFD;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
}

.official-resources {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.official-resources h3 {
    margin: 0 0 8px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.resource-links a {
    padding: 10px 11px;
    border-radius: 7px;
    background: #F4F6F9;
    color: var(--ink);
    text-decoration: none;
}

.resource-links a:hover {
    background: #EDF1F5;
}

.resource-links strong,
.resource-links span {
    display: block;
}

.resource-links strong {
    font-size: 0.75rem;
}

.resource-links span {
    margin-top: 2px;
    color: #52627A;
    font-size: 0.67rem;
}

.appeal-note {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 0.69rem;
}


.filing-path-note {
    margin-top: 13px;
    padding: 11px 13px;
    border-left: 3px solid var(--gold);
    background: #FFF9E8;
}

.filing-path-note strong {
    display: block;
    font-size: 0.8rem;
}

.filing-path-note p {
    margin: 2px 0 0;
    color: #5D6470;
    font-size: 0.72rem;
    line-height: 1.4;
}

.filing-comparables {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.filing-comparables-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.filing-comparables-header h3 {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0;
}

.filing-comparables-header p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.selection-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #EEF3FA;
    color: #315D91;
    font-size: 0.68rem;
    font-weight: 800;
}

.filing-comparable-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.filing-comparable-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #FBFCFD;
    cursor: pointer;
}

.filing-comparable-option:hover {
    border-color: #AAB4C1;
}

.filing-comparable-option.selected {
    border-color: #7594BF;
    background: #F4F8FD;
}

.filing-comparable-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2957A4;
}

.filing-comparable-main,
.filing-comparable-metrics {
    min-width: 0;
}

.filing-comparable-main strong,
.filing-comparable-main small,
.filing-comparable-metrics strong,
.filing-comparable-metrics small {
    display: block;
}

.filing-comparable-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.76rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filing-comparable-main small,
.filing-comparable-metrics small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.64rem;
}

.filing-comparable-metrics {
    text-align: right;
}

.filing-comparable-metrics strong {
    color: var(--green-dark);
    font-size: 0.75rem;
}

.filing-selection-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.filing-selection-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.filing-selection-footer .selection-warning {
    color: #8B5A18;
    font-weight: 700;
}

.requested-value-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FBFCFD;
    overflow: hidden;
}

.requested-value-panel > div {
    padding: 11px 12px;
    border-left: 1px solid var(--border);
}

.requested-value-panel > div:first-child {
    border-left: 0;
}

.requested-value-panel span,
.requested-value-panel strong {
    display: block;
}

.requested-value-panel span {
    color: var(--muted);
    font-size: 0.65rem;
}

.requested-value-panel strong {
    margin-top: 3px;
    color: var(--ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 0.9rem;
}

.requested-value-panel p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.65rem;
}

.filing-reminder {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #FFF6D8;
    color: #5B4A14;
    font-size: 0.7rem;
}

.filing-reminder strong {
    flex: 0 0 auto;
}


.report-options-panel {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.report-options-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.report-options-heading h3 {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0;
}

.report-options-heading > span {
    color: var(--muted);
    font-size: 0.66rem;
}

.report-option-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}


.report-option-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FBFCFD;
}

.report-option-card > label:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px 10px;
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
}

.report-option-card > label:first-child span {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
}


.report-option-card > p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.45;
}

.currency-input-wrap {
    position: relative;
}

.currency-input-wrap > span {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    color: #5D6B7D;
    font-size: 0.8rem;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.currency-input-wrap input {
    width: 100%;
    height: 42px;
    padding: 8px 11px 8px 27px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.8rem;
}

.currency-input-wrap input:focus {
    border-color: #587AA9;
    outline: 2px solid rgba(41, 87, 164, 0.12);
    outline-offset: 0;
}

.tax-impact-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #C7E4D3;
    border-radius: 7px;
    background: #F0F8F3;
}

.tax-impact-preview div span,
.tax-impact-preview div strong {
    display: block;
}

.tax-impact-preview div span {
    color: #52705F;
    font-size: 0.61rem;
}

.tax-impact-preview div strong {
    margin-top: 2px;
    color: var(--green-dark);
    font-size: 0.75rem;
}

.tax-impact-preview p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 7px;
    border-top: 1px solid #D6EADF;
    color: #607269;
    font-size: 0.61rem;
}



.board-filing-guide {
    margin-top: 16px;
    padding: 17px;
    border: 1px solid #C9D7E8;
    border-radius: 10px;
    background: #F7FAFD;
}

.board-filing-guide-heading h3 {
    margin: 2px 0 0;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0;
}

.board-filing-guide-heading > p:last-child {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.board-filing-steps {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.board-filing-steps li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 10px 11px;
    border: 1px solid #D9E1EA;
    border-radius: 8px;
    background: #FFFFFF;
}

.board-filing-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
}

.board-filing-steps strong,
.board-filing-steps p {
    display: block;
}

.board-filing-steps strong {
    color: var(--ink);
    font-size: 0.75rem;
}

.board-filing-steps p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.4;
}

.board-filing-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 13px;
}

.board-filing-links .btn {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 0.78rem;
}

.board-guide-link {
    color: #365D91;
    font-size: 0.71rem;
    font-weight: 750;
    text-decoration: none;
}

.board-guide-link:hover {
    text-decoration: underline;
}

.board-comparable-note {
    margin: 11px 0 0;
    padding-top: 10px;
    border-top: 1px solid #D9E1EA;
    color: var(--muted);
    font-size: 0.65rem;
    line-height: 1.4;
}

.report-actions {
    align-items: stretch;
}

.report-actions .btn-primary {
    flex: 1 1 290px;
}

.report-actions .btn-outline-primary {
    flex: 0 1 190px;
}

.report-download-note,
.field-error {
    margin: 8px 0 0;
    font-size: 0.67rem;
    line-height: 1.4;
}

.report-download-note {
    color: var(--muted);
}

.field-error {
    color: #A13E34;
    font-weight: 700;
}

.report-error {
    padding: 8px 10px;
    border-radius: 6px;
    background: #FFF0EE;
}

/* Feedback */
.feedback-panel {
    margin-top: 14px;
    padding: 15px 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.feedback-panel .eyebrow {
    display: none;
}

.feedback-panel h2 {
    margin: 0 0 9px;
    font-size: 0.98rem;
}

.feedback-actions {
    display: flex;
    gap: 7px;
}

.feedback-choice {
    padding: 7px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
}

.feedback-choice:hover,
.feedback-choice.selected {
    color: var(--surface);
    background: var(--navy);
    border-color: var(--navy);
}

.feedback-panel label {
    display: block;
    margin-top: 13px;
    font-weight: 700;
}

.feedback-panel label span {
    color: var(--muted);
    font-weight: 400;
}

.feedback-select {
    max-width: 620px;
    margin-top: 6px;
}

.feedback-panel textarea {
    max-width: 720px;
    min-height: 86px;
    margin-top: 6px;
}

.feedback-thanks {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-thanks > span {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}

.feedback-thanks p {
    margin: 1px 0 0;
    color: var(--muted);
}

/* Loading, empty and error states */
.loading-panel,
.error-panel,
.empty-state {
    margin-top: 22px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.loading-panel {
    display: flex;
    align-items: center;
    gap: 13px;
}

.loading-panel strong,
.loading-panel span {
    display: block;
}

.loading-panel span {
    color: var(--muted);
}

.loading-mark {
    width: 30px;
    height: 30px;
    border: 4px solid #E1E5EB;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.error-panel h1,
.empty-state h2 {
    margin: 0 0 7px;
    font-size: 1.45rem;
}

.error-panel > p,
.empty-state > p {
    color: var(--muted);
}

/* Supporting pages */
.article-page,
.static-page {
    padding: 54px 0 72px;
}

.how-page {
    max-width: 760px;
}

.article-heading {
    text-align: center;
}

.article-heading h1,
.static-page h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    line-height: 1.15;
}

.article-heading p,
.article-lead {
    margin: 9px auto 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.simple-steps {
    margin-top: 27px;
    border-top: 1px solid var(--border);
}

.simple-steps article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}

.step-number {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--green);
    color: var(--surface);
    font-size: 0.72rem;
    font-weight: 800;
}

.simple-steps h2 {
    margin: 0;
    font-size: 1rem;
}

.simple-steps p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.quiet-callout {
    margin-top: 20px;
    padding: 12px 14px;
    background: #F1F4F7;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.79rem;
}

.source-list {
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.source-list article {
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.source-list h2 {
    margin: 0;
    font-size: 1rem;
}

.source-list p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.method-card {
    margin-top: 17px;
    padding: 19px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.method-card h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.method-card p,
.method-card small {
    color: var(--muted);
}

.method-card .eyebrow {
    display: block;
    margin-bottom: 6px;
}

/* Footer */
.site-footer {
    flex: 0 0 auto;
    padding: 18px 0 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    gap: 8px;
}

.footer-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.footer-brand strong {
    font-size: 0.78rem;
}

.footer-brand span {
    color: var(--muted);
    font-size: 0.74rem;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 17px;
}

.footer-inner nav a {
    color: #53627A;
    text-decoration: none;
    font-size: 0.72rem;
}

.footer-inner nav a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-inner > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.7rem 1.25rem;
    background: #FFF3CD;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.16);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 0.75rem;
    cursor: pointer;
}

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

@media (max-width: 980px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
        gap: 34px;
    }

    .home-process-shell {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-process-heading h2 {
        max-width: 560px;
    }

    .results-shell {
        max-width: 900px;
    }

    .comparable-card {
        grid-template-columns: 84px minmax(230px, 1fr) minmax(220px, 0.9fr);
    }

    .comp-verification {
        grid-column: 2 / -1;
        align-self: auto;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 9px;
        border-top: 1px solid var(--border);
    }

    .email-unlock-panel {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

@media (max-width: 780px) {
    .sample-package-pages {
        grid-template-columns: 1fr;
    }

    .sample-package-page {
        min-height: 330px;
    }

    .home-hero {
        padding: 52px 0 42px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-search-shell {
        max-width: 690px;
    }

    .home-proof-card {
        max-width: 640px;
    }

    .home-process-steps {
        gap: 18px;
    }

    .result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-metric:nth-child(3) {
        border-left: 0;
    }

    .result-metric:nth-child(3),
    .result-metric:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .comparable-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 13px;
    }

    .comp-property {
        padding-right: 0;
    }

    .comp-details {
        grid-column: 2;
        padding: 10px 0 0;
        border: 0;
        border-top: 1px solid var(--border);
    }

    .comp-verification {
        grid-column: 2;
    }

    .email-unlock-panel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .office-choice {
        grid-template-columns: 1fr;
    }

    .office-button {
        min-height: 84px;
    }

    .resource-links {
        grid-template-columns: 1fr;
    }

    .requested-value-panel {
        grid-template-columns: 1fr;
    }

    .requested-value-panel > div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .requested-value-panel > div:first-child {
        border-top: 0;
    }
}

@media (max-width: 620px) {
    .sample-package-modal .modal-dialog {
        margin: 10px;
    }

    .sample-package-modal-header {
        padding: 20px 18px 15px;
    }

    .sample-package-modal .sample-package-modal-header h2 {
        font-size: 1.2rem;
    }

    .sample-package-pages {
        gap: 12px;
        padding: 16px 18px;
    }

    .sample-package-page {
        padding: 18px;
    }

    .sample-package-modal-footer {
        align-items: flex-start;
        padding: 12px 18px 16px;
    }

    body {
        font-size: 14px;
    }

    .content-shell {
        width: min(calc(100% - 28px), 1120px);
    }

    .site-header,
    .header-inner {
        min-height: 56px;
    }

    .header-inner {
        gap: 12px;
    }

    .brand {
        gap: 7px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .brand strong {
        font-size: 0.88rem;
    }

    .primary-nav {
        gap: 12px;
    }

    .primary-nav a {
        padding: 17px 0 15px;
        font-size: 0.72rem;
    }

    .primary-nav a.active::after {
        bottom: 8px;
    }

    .home-hero {
        padding: 40px 0 34px;
    }

    .home-hero-grid {
        gap: 28px;
    }

    .home-eyebrow {
        margin-bottom: 8px;
        font-size: 0.66rem;
    }

    .home-search-shell h1 {
        max-width: 520px;
        font-size: 2.22rem;
        line-height: 1.07;
    }

    .home-lead {
        max-width: 540px;
        margin-top: 14px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .home-trust-strip {
        display: grid;
        gap: 6px;
        margin-top: 12px;
        font-size: 0.75rem;
    }

    .home-proof-card {
        padding: 19px;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(20, 32, 51, 0.08);
    }

    .home-proof-heading {
        gap: 10px;
    }

    .home-proof-heading h2 {
        font-size: 1.08rem;
    }

    .home-proof-signal {
        margin-top: 16px;
        padding: 14px 15px;
    }

    .home-proof-row {
        gap: 10px;
        padding: 10px 1px;
    }

    .home-process {
        padding: 30px 0 36px;
    }

    .home-process-shell {
        gap: 20px;
    }

    .home-process-heading h2 {
        font-size: 1.3rem;
    }

    .home-process-steps {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .home-process-steps article {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .property-search {
        margin-top: 20px;
    }

    .property-search-control {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-search-shell .property-search-control {
        grid-template-columns: 1fr;
    }

    .property-search-input,
    .property-search-button {
        min-height: 50px;
    }

    .results-page {
        padding: 17px 0 42px;
    }

    .results-utility {
        align-items: flex-start;
    }

    .result-data-line {
        max-width: 160px;
        font-size: 0.67rem;
        line-height: 1.3;
    }

    .result-intro {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        margin: 18px 0 15px;
    }

    .result-signal-icon {
        width: 29px;
        height: 29px;
        font-size: 1.25rem;
    }

    .result-intro h1 {
        font-size: 1.52rem;
        line-height: 1.15;
    }

    .result-property-name {
        margin-top: 8px;
        font-size: 0.84rem;
    }

    .result-property-facts {
        font-size: 0.73rem;
    }

    .result-metrics {
        grid-template-columns: 1fr;
    }

    .result-metric {
        display: grid;
        grid-template-columns: minmax(100px, 1fr) auto;
        align-items: baseline;
        gap: 2px 12px;
        padding: 10px 12px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .result-metric:first-child {
        border-top: 0;
    }

    .result-metric:nth-child(3),
    .result-metric:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .result-metric strong {
        margin: 0;
        text-align: right;
        font-size: 0.88rem;
    }

    .result-metric small {
        grid-column: 2;
        margin: 0;
        text-align: right;
        font-size: 0.65rem;
    }

    .comparison-section {
        margin-top: 18px;
    }

    .section-heading {
        margin-bottom: 7px;
    }

    .section-heading p {
        display: none;
    }

    .comparable-card {
        grid-template-columns: 1fr;
        gap: 11px;
        min-height: 0;
        padding: 14px;
    }

    .comp-difference {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: baseline;
        gap: 5px;
        padding: 0;
        border: 0;
    }

    .comp-difference strong,
    .comp-difference span,
    .comp-difference small {
        display: inline;
    }

    .comp-difference strong {
        font-size: 1.55rem;
    }

    .comp-difference span {
        margin: 0;
    }

    .comp-property h3 {
        font-size: 0.96rem;
    }

    .comp-value-line {
        margin-top: 8px;
    }

    .comp-details {
        grid-column: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 10px;
        padding-top: 10px;
    }

    .comp-verification {
        grid-column: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding-top: 9px;
    }

    .email-unlock-panel {
        margin-top: 11px;
        padding: 16px 14px;
    }

    .unlock-copy h3 {
        font-size: 0.98rem;
    }

    .unlock-input-row {
        grid-template-columns: 1fr;
    }

    .unlock-input-row .btn {
        width: 100%;
    }

    .unlock-success {
        display: flex;
        flex-wrap: wrap;
    }

    .unlock-success-actions {
        width: 100%;
        align-items: flex-start;
        padding-left: 44px;
    }

    .additional-matches-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .appeal-panel {
        margin-top: 22px;
        padding: 16px 14px;
    }

    .appeal-heading h2 {
        font-size: 1.2rem;
    }

    .office-button {
        min-height: 78px;
        align-items: flex-start;
        text-align: left;
        padding: 13px 13px 13px 38px;
    }

    .office-button strong,
    .office-button small {
        max-width: none;
    }

    .filing-comparables-header,
    .filing-selection-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .filing-comparable-option {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .filing-comparable-metrics {
        grid-column: 2;
        text-align: left;
    }

    .filing-reminder {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .appeal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .appeal-actions .btn {
        width: 100%;
    }

    .report-options-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }


    .tax-impact-preview {
        grid-template-columns: 1fr;
    }

    .tax-impact-preview p {
        grid-column: 1;
    }



    .board-filing-guide {
        padding: 14px;
    }

    .board-filing-links {
        align-items: stretch;
        flex-direction: column;
    }

    .board-filing-links .btn,
    .board-guide-link {
        width: 100%;
        text-align: center;
    }

    .article-page,
    .static-page {
        padding: 38px 0 52px;
    }

    .article-heading {
        text-align: left;
    }

    .article-heading h1,
    .static-page h1 {
        font-size: 1.72rem;
    }

    .simple-steps {
        margin-top: 22px;
    }

    .footer-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .footer-inner nav {
        justify-content: flex-start;
        gap: 7px 14px;
    }

    .footer-brand {
        flex-wrap: wrap;
    }
}

/* Paid filing-kit access */
.filing-kit-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 18px 20px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.filing-kit-access-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 34px;
    padding: 15px 18px;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid #CDE7D2;
    border-radius: 10px;
}

.filing-kit-access-note > span {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    font-weight: 800;
}

.filing-kit-access-note strong {
    display: block;
    margin-bottom: 2px;
    color: var(--green-dark);
}

.filing-kit-access-note p {
    margin: 0;
    color: #3E694E;
    font-size: 14px;
}

.filing-kit-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    margin-top: 36px;
    padding: 28px;
    color: #fff;
    background: var(--navy);
    border-radius: 12px;
}

.filing-kit-offer .page-kicker {
    margin-bottom: 7px;
    color: #D9E2EF;
}

.filing-kit-offer h2 {
    max-width: 620px;
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.14;
}

.filing-kit-offer-copy > p:not(.page-kicker) {
    max-width: 650px;
    margin-bottom: 18px;
    color: #D9E2EF;
}

.filing-kit-feature-list {
    display: grid;
    gap: 7px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.filing-kit-feature-list li {
    position: relative;
    padding-left: 22px;
    color: #F3F6FA;
    font-size: 14px;
}

.filing-kit-feature-list li::before {
    position: absolute;
    left: 0;
    color: var(--gold);
    content: "✓";
    font-weight: 800;
}

.filing-kit-checkout-card {
    display: flex;
    flex-direction: column;
    align-self: center;
    padding: 22px;
    color: var(--ink);
    background: #fff;
    border-radius: 10px;
}

.filing-kit-price {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.filing-kit-checkout-card > strong {
    margin-top: 7px;
    font-size: 14px;
}

.filing-kit-checkout-card > p {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.filing-kit-buy-button {
    width: 100%;
    min-height: 50px;
    margin-bottom: 11px;
}

.filing-kit-checkout-card small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.filing-kit-checkout-card small a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.private-offer-note {
    margin: 0 0 12px;
    padding: 8px 10px;
    color: var(--green-dark);
    background: var(--green-soft);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.filing-kit-message {
    margin: 12px 0 0;
    color: var(--danger);
    font-size: 13px;
}

.checkout-result-page {
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
    padding: 70px 0 90px;
}

.checkout-result-card {
    padding: 38px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.checkout-result-card h1 {
    margin: 8px auto 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.checkout-result-card p:not(.page-kicker) {
    max-width: 520px;
    margin: 0 auto 22px;
    color: var(--muted);
}

.checkout-success-mark {
    display: grid;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 800;
}

.article-note {
    margin-top: 26px;
    padding: 13px 15px;
    color: var(--muted);
    background: var(--surface-soft);
    border-left: 3px solid var(--gold);
    font-size: 13px;
}

@media (max-width: 800px) {
    .filing-kit-offer {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }

    .filing-kit-checkout-card {
        align-self: stretch;
    }
}

@media (max-width: 560px) {
    .filing-kit-offer {
        margin-top: 28px;
        padding: 18px;
    }

    .filing-kit-offer h2 {
        font-size: 25px;
    }

    .checkout-result-page {
        padding: 40px 0 64px;
    }

    .checkout-result-card {
        padding: 25px 18px;
    }
}

/* Paid evidence boundary */
.filing-kit-unavailable {
    margin-top: 30px;
    padding: 16px 18px;
    color: #6B4E00;
    background: #FFF8E1;
    border: 1px solid #EAD38A;
    border-radius: 10px;
}

.filing-kit-unavailable strong {
    display: block;
    color: #4D3A00;
}

.filing-kit-unavailable p {
    margin: 3px 0 0;
    color: #6B5B2A;
    font-size: 13px;
}

/* Private offer clarity */
.private-offer-fallback {
    margin-top: 10px;
}

.filing-kit-standard-price {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.private-offer-note {
    margin: 10px 0 12px;
    padding: 10px 11px;
    border: 1px solid #D6C16B;
    border-radius: 7px;
    background: #FFF9E5;
    color: #4D4320;
    font-size: 0.73rem;
    line-height: 1.45;
}

/* Progressive comparable proof */
.locked-comparable-list {
    display: grid;
    gap: 8px;
}

.locked-more-count {
    margin: 9px 2px 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.locked-comparable-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 190px;
    gap: 16px;
    align-items: center;
    min-height: 82px;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.locked-comparable-card-backup {
    background: var(--surface-soft);
}

.locked-comp-rate {
    padding-right: 12px;
    border-right: 1px solid var(--border);
}

.locked-comp-rate strong,
.locked-comp-rate span {
    display: block;
}

.locked-comp-rate strong {
    color: var(--green);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 1.48rem;
    line-height: 1;
    letter-spacing: -0.035em;
}

.locked-comp-rate span {
    margin-top: 2px;
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

.locked-comp-copy {
    min-width: 0;
}

.locked-comp-copy strong,
.locked-comp-copy span {
    display: block;
}

.locked-comp-copy strong {
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.35;
}

.locked-comp-copy span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.35;
}

.locked-comp-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.locked-comp-status small {
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.35;
}

.comp-trust-line {
    margin: 8px 0 0;
    color: #435066;
    font-size: 0.75rem;
    line-height: 1.4;
}

.comp-trust-line strong {
    color: var(--ink);
}

@media (max-width: 760px) {
    .locked-comparable-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .locked-comp-status {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .locked-comparable-card {
        grid-template-columns: 62px minmax(0, 1fr);
        padding: 12px;
    }

    .locked-comp-rate strong {
        font-size: 1.28rem;
    }

    .locked-comp-copy strong {
        font-size: 0.78rem;
    }
}

/* Assessment value translation */
.assessment-explainer {
    margin: 9px 0 0;
    padding: 0 2px;
    color: #526071;
    font-size: 0.72rem;
    line-height: 1.5;
}

.assessment-explainer summary {
    width: fit-content;
    color: #526071;
    cursor: pointer;
    font-weight: 750;
}

.assessment-explainer span {
    display: block;
    max-width: 820px;
    margin-top: 7px;
    padding: 9px 11px;
    background: #F1F5F9;
    border: 1px solid #DCE3EB;
    border-radius: 8px;
}

/* Assessment reduction guarantee and filing deadlines */
.filing-kit-guarantee {
    display: grid;
    gap: 4px;
    margin: 1px 0 12px;
    padding: 11px 12px;
    color: #214D31;
    background: #EEF8F1;
    border: 1px solid #B9DEC4;
    border-radius: 8px;
}

.filing-kit-guarantee strong {
    font-size: 13px;
    line-height: 1.3;
}

.filing-kit-guarantee span {
    color: #3E694E;
    font-size: 11px;
    line-height: 1.45;
}

.filing-kit-guarantee a {
    color: #214D31;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filing-kit-deadline-note {
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.filing-kit-deadline-note strong {
    color: var(--ink);
    font-size: 12px;
}

.filing-kit-deadline-note > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.filing-kit-deadline-note > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 13px;
    margin-top: 3px;
}

.filing-kit-deadline-note a {
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.filing-kit-deadline-note a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Search-facing appeal guides */
.guide-page,
.guide-index-page {
    max-width: 860px;
}

.guide-hero {
    max-width: 760px;
}

.guide-hero h1 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: clamp(2rem, 4.1vw, 2.65rem);
    line-height: 1.1;
}

.guide-hero > p {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.guide-search-panel {
    margin: 30px 0 38px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #F8FAFC;
}

.guide-search-copy h2 {
    margin: 5px 0 0;
    font-size: 1.28rem;
}

.guide-search-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.guide-search-panel .property-search {
    margin-top: 16px;
}

.guide-search-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.74rem;
}

.guide-section {
    padding: 27px 0;
    border-top: 1px solid var(--border);
}

.guide-section h2 {
    margin: 0;
    font-size: 1.32rem;
}

.guide-section > p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #4C5869;
    line-height: 1.7;
}

.guide-checklist,
.guide-numbered-list {
    display: grid;
    gap: 10px;
    margin: 15px 0 0;
    padding-left: 22px;
    color: #3F4C5E;
}

.guide-checklist li,
.guide-numbered-list li {
    padding-left: 4px;
    line-height: 1.58;
}

.guide-example {
    max-width: 620px;
    margin-top: 17px;
    padding: 17px 18px;
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    background: #FFF9E8;
}

.guide-example span,
.guide-example strong {
    display: block;
}

.guide-example span {
    color: #756421;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.guide-example strong {
    margin-top: 4px;
    color: var(--ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 1.05rem;
}

.guide-example p {
    margin: 5px 0 0;
    color: #605731;
    font-size: 0.82rem;
}

.guide-example-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}

.guide-example-split p {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid #E8DCA8;
}

.guide-inline-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 800;
}

.guide-source-block {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 20px;
    background: #FBFCFD;
}

.guide-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 13px;
}

.guide-source-links a {
    font-size: 0.84rem;
    font-weight: 750;
}

.guide-factor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.guide-factor-grid > div {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.guide-factor-grid strong,
.guide-factor-grid span {
    display: block;
}

.guide-factor-grid strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.guide-factor-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.48;
}

.guide-comparison-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.guide-comparison-row {
    display: grid;
    grid-template-columns: 160px repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
}

.guide-comparison-row:first-child {
    border-top: 0;
}

.guide-comparison-row > * {
    margin: 0;
    padding: 13px 14px;
    border-left: 1px solid var(--border);
    font-size: 0.79rem;
    line-height: 1.45;
}

.guide-comparison-row > *:first-child {
    border-left: 0;
    color: var(--muted);
    font-weight: 750;
}

.guide-comparison-heading {
    background: var(--navy);
    color: white;
}

.guide-comparison-heading > * {
    color: white !important;
    font-weight: 800;
}

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

.guide-option-grid article {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
}

.guide-option-grid article > span {
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 800;
}

.guide-option-grid h2 {
    margin-top: 6px;
    font-size: 1rem;
}

.guide-option-grid ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.guide-related {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.guide-related > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.guide-related > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 9px;
}

.guide-related a {
    font-size: 0.8rem;
    font-weight: 750;
}

.guide-disclaimer {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.55;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.guide-card {
    display: block;
    min-height: 170px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.guide-card:hover {
    color: inherit;
    border-color: #A9B3C0;
    box-shadow: 0 9px 20px rgba(25, 37, 54, 0.07);
    transform: translateY(-1px);
}

.guide-card > span {
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-card h2 {
    margin: 8px 0 0;
    font-size: 1.08rem;
}

.guide-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.52;
}

.deadline-feature {
    display: grid;
    gap: 5px;
    margin-top: 25px;
    padding: 17px 18px;
    border: 1px solid #E3CE73;
    border-radius: 9px;
    background: #FFF9E4;
    color: inherit;
    text-decoration: none;
}

.deadline-feature:hover {
    color: inherit;
    border-color: #CDB24C;
}

.deadline-feature strong {
    font-size: 0.98rem;
}

.deadline-feature > span:last-child {
    color: #65581F;
    font-size: 0.78rem;
}

.deadline-status {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #E8F5ED;
    color: var(--green-dark);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.deadline-countdown {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin: 22px 0 0;
    padding: 13px 15px;
    border: 1px solid #E3CE73;
    border-radius: 8px;
    background: #FFF9E4;
}

.deadline-countdown strong {
    color: #51430E;
}

.deadline-countdown span {
    color: #75672B;
    font-size: 0.74rem;
}

.stale-deadline-links {
    margin-top: 24px;
}

@media (max-width: 760px) {
    .guide-factor-grid,
    .guide-card-grid,
    .guide-option-grid,
    .guide-example-split {
        grid-template-columns: 1fr;
    }

    .guide-example-split p {
        grid-column: 1;
    }

    .guide-comparison-row {
        grid-template-columns: 1fr;
    }

    .guide-comparison-row > * {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .guide-comparison-row > *:first-child {
        border-top: 0;
        background: #F4F6F8;
    }

    .guide-comparison-heading > *:first-child {
        display: none;
    }

    .guide-comparison-heading > * {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        background: var(--navy);
    }

    .guide-comparison-heading > *:nth-child(2)::before {
        content: "Assessor: ";
    }

    .guide-comparison-heading > *:nth-child(3)::before {
        content: "Board: ";
    }

    .deadline-countdown {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 620px) {
    .guide-hero h1 {
        font-size: 1.85rem;
    }

    .guide-hero > p {
        font-size: 0.9rem;
    }

    .guide-search-panel {
        margin: 23px 0 30px;
        padding: 17px;
    }

    .guide-section {
        padding: 22px 0;
    }

    .guide-card {
        min-height: 0;
        padding: 17px;
    }
}

.guide-search-unavailable {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #E3CE73;
    border-radius: 8px;
    background: #FFF9E4;
}

.guide-search-unavailable strong {
    color: #51430E;
    font-size: 0.82rem;
}

.guide-search-unavailable a {
    font-size: 0.76rem;
    font-weight: 800;
}

.guide-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding: 20px 22px;
    border-radius: 9px;
    background: var(--navy);
    color: white;
}

.guide-bottom-cta h2 {
    margin: 5px 0 0;
    color: white;
    font-size: 1.18rem;
}

.guide-bottom-cta .eyebrow {
    color: #C6CFDA;
}

.guide-bottom-cta .btn {
    flex: 0 0 auto;
}

@media (max-width: 620px) {
    .guide-search-unavailable,
    .guide-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .guide-bottom-cta .btn {
        width: 100%;
    }
}

/* Closed-loop filing workflow */
.filing-closed-loop {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #C9D7E8;
    border-radius: 10px;
    background: #F7FAFD;
}

.filing-loop-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.filing-loop-heading h3 {
    margin: 2px 0 0;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.filing-loop-subtitle {
    max-width: 520px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.filing-deadline-status {
    display: grid;
    gap: 2px;
    max-width: 300px;
    padding: 9px 11px;
    border: 1px solid #D8E0EA;
    border-radius: 8px;
    background: #FFFFFF;
}

.filing-deadline-status.verified {
    border-color: #B9DEC4;
    background: #EEF8F1;
}

.filing-deadline-status.closed {
    border-color: #E7C9C5;
    background: #FFF4F2;
}

.filing-deadline-status strong {
    color: var(--ink);
    font-size: 0.75rem;
    line-height: 1.35;
}

.filing-deadline-status span,
.filing-deadline-status a {
    color: var(--muted);
    font-size: 0.65rem;
    line-height: 1.4;
}

.filing-deadline-status a {
    color: #365D91;
    font-weight: 750;
    text-decoration: none;
}

.filing-deadline-status a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filing-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.filing-identity-grid > div {
    padding: 12px 13px;
    border: 1px solid #D9E1EA;
    border-radius: 8px;
    background: #FFFFFF;
}

.filing-identity-grid span,
.filing-identity-grid strong {
    display: block;
}

.filing-identity-grid span {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filing-identity-grid strong {
    margin-top: 3px;
    color: var(--ink);
    font-size: 0.87rem;
    line-height: 1.3;
}

.filing-upload-box {
    display: grid;
    gap: 3px;
    margin-top: 9px;
    padding: 11px 13px;
    border-left: 3px solid var(--gold);
    background: #FFF9E8;
}

.filing-upload-box span {
    color: #6E5A1F;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filing-upload-box strong {
    color: var(--ink);
    font-size: 0.76rem;
    line-height: 1.35;
}

.filing-upload-item {
    display: grid;
    gap: 1px;
    padding-top: 4px;
}

.filing-upload-item + .filing-upload-item {
    margin-top: 3px;
    padding-top: 7px;
    border-top: 1px solid #E8DDAF;
}

.filing-upload-item small {
    color: #6E5A1F;
    font-size: 0.68rem;
}

.filing-upload-item small b {
    color: var(--ink);
}

.filing-loop-actions {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.filing-loop-actions.three-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filing-loop-actions.four-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filing-loop-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 12px;
    text-align: center;
    font-size: 0.74rem;
    line-height: 1.25;
}

.filing-how-to {
    margin-top: 12px;
    border-top: 1px solid #D9E1EA;
}

.filing-how-to summary,
.filing-adjustments > summary {
    padding: 11px 0 4px;
    color: #40516B;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 800;
}

.filing-how-to ol {
    display: grid;
    gap: 6px;
    margin: 8px 0 7px;
    padding-left: 21px;
    color: #45536A;
    font-size: 0.71rem;
    line-height: 1.45;
}

.filing-how-to > a {
    color: #365D91;
    font-size: 0.69rem;
    font-weight: 750;
    text-decoration: none;
}

.filing-how-to > a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filing-support-note {
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid #D9E1EA;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.45;
}

.optional-support-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #D9E1EA;
}

.optional-support-download strong,
.optional-support-download span {
    display: block;
}

.optional-support-download strong {
    color: var(--ink);
    font-size: 0.72rem;
}

.optional-support-download span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.4;
}

.optional-support-download .text-button {
    flex: 0 0 auto;
}

.filing-adjustments {
    margin-top: 13px;
    padding: 0 14px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FBFCFD;
}

.filing-adjustments .filing-comparables,
.filing-adjustments .report-options-panel {
    margin-top: 7px;
    padding-top: 10px;
}

.filing-adjustments.optional-adjustment {
    margin-top: 9px;
}

@media (max-width: 760px) {
    .filing-loop-heading,
    .optional-support-download {
        align-items: stretch;
        flex-direction: column;
    }

    .filing-deadline-status {
        max-width: none;
    }

    .filing-loop-actions.three-actions,
    .filing-loop-actions.four-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .filing-closed-loop {
        padding: 14px;
    }

    .filing-identity-grid {
        grid-template-columns: 1fr;
    }

    .filing-adjustments {
        padding-inline: 11px;
    }
}

@media (max-width: 420px) {
    .primary-nav a:last-child {
        display: none;
    }
}
