.tnr-page { width: min(1120px, calc(100% - 2rem)); margin: 2.25rem auto 4rem; }
.tnr-hero { max-width: 760px; margin: 0 auto 1.5rem; text-align: center; }
.tnr-hero h1, .tnr-confirmation-card h1 { margin: .25rem 0 .75rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; color: #173f75; }
.tnr-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #85510d; }
.tnr-form-card, .tnr-confirmation-card { background: rgba(255,255,255,.97); border: 1px solid rgba(23,63,117,.18); border-radius: 28px; box-shadow: 0 20px 60px rgba(31,48,76,.14); padding: clamp(1rem, 4vw, 2.75rem); }
.tnr-privacy-note, .tnr-emergency-note { padding: 1rem 1.15rem; border-radius: 16px; background: #eef6ff; border-left: 5px solid #214f97; margin-bottom: 1.35rem; }
.tnr-emergency-note { background: #fff8e8; border-left-color: #b56b00; }
.tnr-error-summary { border-radius: 16px; padding: 1rem 1.15rem; background: #fff0ef; border: 1px solid #d92d20; color: #7a271a; margin-bottom: 1.25rem; }
.tnr-error-summary h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.tnr-progress { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.tnr-progress li { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .55rem; border-radius: 999px; background: #f1f3f5; color: #5a6573; font-weight: 700; font-size: .9rem; }
.tnr-progress span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; border: 1px solid currentColor; }
.tnr-progress .is-active { background: #214f97; color: #fff; }
.tnr-progress .is-complete { background: #e8f5ec; color: #24623a; }
.tnr-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.tnr-step.is-active { display: block; }
.tnr-step legend { width: 100%; margin: 0 0 .35rem; color: #173f75; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; }
.tnr-step-intro { color: #536173; margin: 0 0 1.5rem; }
.tnr-grid { display: grid; gap: 1rem 1.25rem; }
.tnr-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tnr-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tnr-field { margin-bottom: 1.15rem; min-width: 0; }
.tnr-field label { display: block; margin-bottom: .45rem; color: #20334f; font-weight: 800; }
.tnr-field input:not([type=checkbox]), .tnr-field select, .tnr-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #aeb8c6; border-radius: 12px; background: #fff; padding: .8rem .9rem; font: inherit; color: #14233a; }
.tnr-field input[type=file] { padding: .7rem; background: #f8fafc; }
.tnr-field input:focus, .tnr-field select:focus, .tnr-field textarea:focus { outline: 3px solid rgba(33,79,151,.2); border-color: #214f97; }
.tnr-field--error input, .tnr-field--error select, .tnr-field--error textarea { border-color: #d92d20; }
.tnr-help { margin: .35rem 0 0; color: #657184; font-size: .88rem; }
.tnr-error { margin: .35rem 0 0; color: #b42318; font-weight: 700; }
.tnr-subheading { color: #173f75; margin: 1rem 0 .9rem; font-size: 1.25rem; }
.tnr-step-actions { display: flex; justify-content: flex-end; gap: .75rem; border-top: 1px solid #e2e7ed; margin-top: 1rem; padding-top: 1.25rem; }
.tnr-primary-button, .tnr-secondary-button, .tnr-location-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border-radius: 999px; border: 1px solid transparent; padding: .72rem 1.25rem; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.tnr-primary-button { background: #214f97; color: #fff; }
.tnr-primary-button:hover { background: #173f75; color: #fff; }
.tnr-secondary-button { background: #fff; border-color: #8794a5; color: #26384f; }
.tnr-location-button { margin: 0 0 1rem; background: #fff7dd; border-color: #c98a13; color: #5d3b00; }
.tnr-location-status { min-height: 1.5rem; color: #24623a; font-weight: 700; }
.tnr-location-status.is-error { color: #b42318; }
.tnr-coordinate-details { margin: 1rem 0; padding: .8rem 1rem; border-radius: 14px; background: #f6f8fb; }
.tnr-coordinate-details summary { cursor: pointer; font-weight: 800; color: #214f97; }
.tnr-review dl { display: grid; gap: .75rem; }
.tnr-review dl > div { display: grid; grid-template-columns: minmax(135px, .35fr) 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e4e8ee; }
.tnr-review dt { font-weight: 800; color: #173f75; }
.tnr-review dd { margin: 0; white-space: pre-wrap; }
.tnr-consent .tnr-field { padding: .9rem 1rem; border-radius: 14px; background: #f7f9fc; }
.tnr-consent .tnr-field label { display: flex; gap: .7rem; align-items: flex-start; }
.tnr-submit-note { color: #5b6675; font-size: .93rem; }
.tnr-community-cta { width: min(1080px, calc(100% - 2rem)); margin: 2rem auto; padding: clamp(1.25rem, 4vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-radius: 24px; background: linear-gradient(135deg, #fff8dc, #eef6ff); border: 1px solid rgba(33,79,151,.2); box-shadow: 0 16px 42px rgba(31,48,76,.1); }
.tnr-community-cta h2 { margin: .25rem 0 .5rem; color: #173f75; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.tnr-community-cta p:not(.tnr-eyebrow) { max-width: 720px; margin: 0; }
.tnr-page--confirmation { max-width: 780px; }
.tnr-confirmation-card { text-align: center; }
.tnr-confirmation-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: #e8f5ec; color: #24623a; font-size: 2rem; font-weight: 900; }
.tnr-reference { display: inline-grid; gap: .25rem; margin: 1rem auto 1.5rem; padding: 1rem 1.5rem; border-radius: 16px; background: #f5f7fb; }
.tnr-reference dt { color: #5b6675; font-weight: 700; }
.tnr-reference dd { margin: 0; color: #173f75; font-size: 1.45rem; font-weight: 900; letter-spacing: .06em; }
@media (max-width: 780px) { .tnr-progress { grid-template-columns: repeat(4, minmax(44px, 1fr)); } .tnr-progress li { font-size: 0; padding: .4rem; } .tnr-progress span { font-size: .86rem; } .tnr-grid--two, .tnr-grid--three { grid-template-columns: 1fr; } .tnr-community-cta { align-items: flex-start; flex-direction: column; } .tnr-review dl > div { grid-template-columns: 1fr; gap: .2rem; } }
@media (max-width: 520px) { .tnr-page { width: min(100% - 1rem, 1120px); margin-top: 1rem; } .tnr-form-card, .tnr-confirmation-card { border-radius: 18px; padding: 1rem; } .tnr-step-actions { flex-direction: column-reverse; } .tnr-step-actions button { width: 100%; } }


.tnr-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(33,79,151,.2);
    border-radius: 18px;
    background: #f8fbff;
}
.tnr-account-card h2 { margin: .15rem 0 .25rem; color: #173f75; font-size: 1.3rem; }
.tnr-account-card p { margin: 0; color: #536173; overflow-wrap: anywhere; }
.tnr-account-label { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 900; color: #85510d !important; }
@media (max-width: 680px) {
    .tnr-account-card { align-items: flex-start; flex-direction: column; }
}

/* BEGIN COMMUNITY GOLD NAVY CARDS */
.community-program-grid {
    --community-gold: #c6a44d;
    --community-gold-dark: #8a6415;
    --community-gold-light: #fbf5e5;
    --community-navy: #173f75;
    --community-navy-dark: #102f59;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: min(1180px, calc(100% - 2rem));
    margin: clamp(1.5rem, 3vw, 2.5rem) auto;
}

.community-program-grid__card {
    min-width: 0;
    min-height: 100%;
    padding: clamp(1.35rem, 3vw, 2rem);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    overflow: hidden;

    border: 3px solid var(--community-gold);
    border-top: 9px solid var(--community-navy);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            var(--community-gold-light) 100%
        );
    box-shadow:
        0 18px 42px rgb(16 47 89 / 14%);

    color: var(--community-navy-dark);
}

.community-program-grid__card--program > *,
.community-program-grid__card--tnr > .tnr-community-cta {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}

.community-program-grid__card--tnr
.tnr-community-cta {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1.25rem;
}

.community-program-grid h1,
.community-program-grid h2,
.community-program-grid h3 {
    color: var(--community-navy-dark) !important;
}

.community-program-grid .eyebrow,
.community-program-grid .tnr-eyebrow {
    color: var(--community-gold-dark) !important;
    font-weight: 900;
}

.community-program-grid p {
    color: #31465f;
}

.community-program-grid .tnr-cta-actions {
    display: grid !important;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0.75rem;

    width: 100% !important;
    margin-top: auto !important;
}

.community-program-grid
.tnr-cta-actions:not(:has(a + a)) {
    grid-template-columns: 1fr;
}

.community-program-grid .primary-button,
.community-program-grid .tnr-primary-button,
.community-program-grid .tnr-secondary-button {
    width: 100%;
    min-height: 56px;
    padding: 0.85rem 1.25rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 2px solid var(--community-gold) !important;
    border-radius: 999px !important;

    background: var(--community-navy) !important;
    color: #ffffff !important;

    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.community-program-grid .tnr-secondary-button {
    border-color: var(--community-navy) !important;
    background: var(--community-gold) !important;
    color: var(--community-navy-dark) !important;
}

.community-program-grid .primary-button:hover,
.community-program-grid .primary-button:focus,
.community-program-grid .tnr-primary-button:hover,
.community-program-grid .tnr-primary-button:focus {
    border-color: var(--community-navy-dark) !important;
    background: var(--community-navy-dark) !important;
    color: #ffffff !important;
}

.community-program-grid .tnr-secondary-button:hover,
.community-program-grid .tnr-secondary-button:focus {
    border-color: var(--community-gold-dark) !important;
    background: #d5b65f !important;
    color: var(--community-navy-dark) !important;
}

@media (max-width: 900px) {
    .community-program-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .community-program-grid {
        width: min(100% - 1rem, 1180px);
    }

    .community-program-grid .tnr-cta-actions {
        grid-template-columns: 1fr;
    }
}
/* END COMMUNITY GOLD NAVY CARDS */

/* BEGIN MATCHED COMMUNITY REPORT BUTTON */
.community-program-grid .community-report-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 56px !important;
    height: auto !important;
    aspect-ratio: auto !important;

    margin-top: auto !important;
    padding: 0.85rem 1.25rem !important;
    box-sizing: border-box !important;

    border: 2px solid var(--community-gold) !important;
    border-radius: 999px !important;

    background: var(--community-navy) !important;
    color: #ffffff !important;

    font-size: inherit !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;

    transform: none !important;
}

.community-program-grid .community-report-button:hover,
.community-program-grid .community-report-button:focus {
    border-color: var(--community-navy-dark) !important;
    background: var(--community-navy-dark) !important;
    color: #ffffff !important;
    transform: none !important;
}
/* END MATCHED COMMUNITY REPORT BUTTON */

/* BEGIN COMMUNITY REPORT BUTTON FINAL FIX */

/* Give both cards enough room and keep them equal in height. */
.community-program-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr;
}

.community-program-grid__card {
    height: 100% !important;
    min-height: 400px;
}

/* Make the Community Cat Program card use a vertical layout. */
.community-program-grid__card--program {
    display: flex !important;
    flex-direction: column !important;
}

.community-program-grid__card--program > * {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

/*
Find every wrapper that contains the report button and allow
the button area to move to the bottom of the card.
*/
.community-program-grid__card--program *:has(.community-report-button) {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

.community-program-grid__card--program
*:has(> .community-report-button) {
    justify-content: flex-end !important;
    margin-top: auto !important;
    width: 100% !important;
}

/* Match the report button to the TNR pill buttons exactly. */
.community-program-grid
.community-program-grid__card--program
.community-report-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 56px !important;
    max-height: none !important;

    aspect-ratio: auto !important;

    margin: auto 0 0 !important;
    padding: 0.85rem 1.25rem !important;

    box-sizing: border-box !important;

    border: 2px solid var(--community-gold) !important;
    border-radius: 9999px !important;

    background: var(--community-navy) !important;
    color: #ffffff !important;

    font: inherit !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;

    overflow: visible !important;
    clip-path: none !important;
    transform: none !important;
}

/* Remove decorative circles or icons inherited from the old button. */
.community-program-grid
.community-report-button::before,
.community-program-grid
.community-report-button::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* Match the hover behavior of the first TNR button. */
.community-program-grid
.community-report-button:hover,
.community-program-grid
.community-report-button:focus {
    border-color: var(--community-navy-dark) !important;
    border-radius: 9999px !important;
    background: var(--community-navy-dark) !important;
    color: #ffffff !important;
    transform: none !important;
}

@media (max-width: 900px) {
    .community-program-grid__card {
        min-height: auto;
    }

    .community-program-grid__card--program > * {
        min-height: 0 !important;
    }
}

/* END COMMUNITY REPORT BUTTON FINAL FIX */

/* BEGIN MATCHED COMMUNITY CARD TYPOGRAPHY */

/* Match the small uppercase labels. */
.community-program-grid__card--program
:is(
    .eyebrow,
    .kicker,
    [class*="eyebrow"],
    [class*="kicker"]
),
.community-program-grid__card--tnr
:is(
    .eyebrow,
    .kicker,
    [class*="eyebrow"],
    [class*="kicker"]
) {
    margin: 0 0 0.55rem !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: var(--community-gold-dark) !important;
}

/* Match the main headings. */
.community-program-grid__card--program
:is(h1, h2, h3),
.community-program-grid__card--tnr
:is(h1, h2, h3) {
    margin: 0 0 0.9rem !important;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
    color: var(--community-navy-dark) !important;
}

/* Match the descriptive paragraphs. */
.community-program-grid__card--program
p:not(
    .eyebrow,
    .kicker,
    [class*="eyebrow"],
    [class*="kicker"]
),
.community-program-grid__card--tnr
p:not(
    .eyebrow,
    .kicker,
    [class*="eyebrow"],
    [class*="kicker"]
) {
    margin: 0 0 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    letter-spacing: normal !important;
    color: #31465f !important;
}

/* Prevent the TNR card's original styles from shrinking its text. */
.community-program-grid__card--tnr
.tnr-community-cta {
    font-size: 1rem !important;
}

@media (max-width: 640px) {
    .community-program-grid__card--program
    :is(h1, h2, h3),
    .community-program-grid__card--tnr
    :is(h1, h2, h3) {
        font-size: 1.65rem !important;
    }
}

/* END MATCHED COMMUNITY CARD TYPOGRAPHY */

/* BEGIN LARGER COMMUNITY CARD TEXT */
.community-program-grid__card--program
:is(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]),
.community-program-grid__card--tnr
:is(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]) {
    font-size: 0.88rem !important;
}

.community-program-grid__card--program
:is(h1, h2, h3),
.community-program-grid__card--tnr
:is(h1, h2, h3) {
    font-size: clamp(1.9rem, 2.9vw, 2.45rem) !important;
}

.community-program-grid__card--program
p:not(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]),
.community-program-grid__card--tnr
p:not(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]) {
    font-size: 1.1rem !important;
    line-height: 1.65 !important;
}

@media (max-width: 640px) {
    .community-program-grid__card--program
    :is(h1, h2, h3),
    .community-program-grid__card--tnr
    :is(h1, h2, h3) {
        font-size: 1.85rem !important;
    }

    .community-program-grid__card--program
    p:not(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]),
    .community-program-grid__card--tnr
    p:not(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]) {
        font-size: 1.05rem !important;
    }
}
/* END LARGER COMMUNITY CARD TEXT */

/* BEGIN SHORTER COMMUNITY CARDS */
.community-program-grid__card {
    min-height: 400px !important;
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
}

.community-program-grid__card--program
p:not(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]),
.community-program-grid__card--tnr
p:not(.eyebrow, .kicker, [class*="eyebrow"], [class*="kicker"]) {
    margin-bottom: 0.9rem !important;
}

@media (max-width: 900px) {
    .community-program-grid__card {
        min-height: auto !important;
    }
}
/* END SHORTER COMMUNITY CARDS */
