:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fa;
    --surface-ink: #dbe7f3;
    --text: #0f172a;
    --muted: #5b6779;
    --line: #d7e1ec;
    --navy: #0b1b34;
    --blue: #3C5576;
    --teal: #14b8a6;
    --green: #22c55e;
    --amber: #f59e0b;
    --rose: #ef4444;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(11, 27, 52, 0.03), rgba(11, 27, 52, 0)),
        var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
.site-ad { width:min(1180px,calc(100% - 32px)); margin:14px auto; padding:8px; border:1px solid var(--line); border-radius:10px; background:#fff; text-align:center; overflow:hidden; }
.site-ad > small { display:block; margin-bottom:4px; color:#94a3b8; font-size:.65rem; letter-spacing:.08em; text-transform:uppercase; }
.site-ad img { display:block; width:100%; max-height:160px; object-fit:cover; margin:auto; }
.site-ad a { display:block; color:inherit; }
.site-ad strong,.site-ad span { display:block; }

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(215, 225, 236, 0.9);
}

.header-shell,
.section-shell,
.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-shell {
    width: min(1440px, calc(100% - 32px));
    min-height: 60px;
    display: grid;
    /* Menü tam genişliğini alır; arama kutusu kalan alanı doldurur ve menünün altına taşmaz. */
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.brand-logo {
    display: block;
    height: 32px;
    width: auto;
}

.header-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 7px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.header-nav a:hover,
.header-nav a.active {
    background: #eef4ff;
    color: var(--navy);
}

.header-dropdown {
    position: relative;
}

.header-dropdown > button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.header-dropdown:hover > button,
.header-dropdown:focus-within > button {
    background: #eef4ff;
    color: var(--navy);
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: grid;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.header-dropdown-menu[hidden] {
    display: none;
}

.header-dropdown-menu a {
    min-height: 36px;
    border-radius: 4px;
}

.header-search {
    position: relative;
    width: 100%;
    min-width: 0;
}

.header-search .search-form-compact {
    grid-template-columns: minmax(0, 1fr) 38px;
}

.header-search .search-input {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
}

.header-search .search-btn {
    min-width: 38px;
    min-height: 38px;
}

.header-search .search-btn svg {
    width: 16px;
    height: 16px;
}

.header-search .search-suggestions {
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
}

/* Menü logo ve arama kutusuyla aynı satıra sığmadığında hamburger menüye geçilir.
   header.php içindeki matchMedia değeriyle aynı tutulmalıdır. */
@media (max-width: 1440px) {
    /* A backdrop filter would make the fixed menu relative to the header. */
    .app-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    body.header-menu-open { overflow: hidden; }

    .header-shell {
        grid-template-columns: auto minmax(200px, 1fr) auto;
    }

    .menu-toggle {
        position: relative;
        z-index: 80;
        display: grid;
    }

    .brand {
        position: relative;
        z-index: 80;
    }

    .header-nav {
        position: fixed;
        inset: 0;
        z-index: 70;
        display: grid;
        grid-template-columns: minmax(0, 420px);
        align-content: start;
        justify-content: center;
        justify-items: stretch;
        align-items: start;
        gap: 14px;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        white-space: normal;
        padding: 82px 22px 32px;
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .header-shell.is-open .header-nav {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateY(0);
    }

    .header-nav > a,
    .header-dropdown {
        width: 100%;
        min-width: 0;
    }

    .header-nav > a,
    .header-dropdown > button,
    .header-dropdown-menu a {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        min-height: 48px;
        padding: 10px 14px;
        overflow-wrap: anywhere;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 0.95rem;
    }

    .header-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        gap: 6px;
        margin-top: 6px;
        box-shadow: none;
    }
}

.menu-toggle svg {
    display: block;
    transition: transform 0.18s ease;
}

.header-shell.is-open .menu-toggle svg {
    transform: rotate(90deg);
}


.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1rem;
}

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

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 0.85rem;
}

.main {
    padding: 16px 0 8px;
}

.hero {
    padding: 8px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 20px;
    align-items: stretch;
}

.hero-home {
    display: block;
}

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

.hero-home .hero-focus {
    display: none;
}

.hero-home .hero-copy {
    min-height: clamp(340px, calc(100vh - 260px), 500px);
    justify-items: center;
    text-align: center;
}

.hero-home .hero-copy p,
.hero-home .search-box,
.hero-home .location-picker {
    width: min(760px, 100%);
}

.hero-copy,
.hero-focus,
.surface,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.location-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 20px 0 0;
    padding: 24px;
}

.location-about.has-image {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    align-items: center;
}

.location-about img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.location-about h2 {
    margin: 6px 0 10px;
    color: var(--navy);
    font-size: 1.35rem;
}

.location-about p {
    max-width: 80ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 680px) {
    .location-about.has-image {
        grid-template-columns: 1fr;
    }
}

.hero-copy {
    padding: 34px;
    min-height: 390px;
    height: 100%;
    display: grid;
    align-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.76)),
        #fff;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 72% 22%, rgba(20, 184, 166, 0.16), transparent 30%),
        radial-gradient(circle at 18% 78%, rgba(37, 99, 235, 0.14), transparent 34%);
}

.hero-video,
.hero-motion {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero-video {
    opacity: 0.08;
}

.hero-motion {
    z-index: -2;
    opacity: 0.28;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(15, 23, 42, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.08), rgba(255,255,255,0));
    background-size: 42px 42px, 42px 42px, 100% 100%;
    animation: heroDrift 18s linear infinite;
}

.hero-motion::after {
    content: "";
    position: absolute;
    inset: 18% -10% auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.28), transparent);
    box-shadow:
        0 56px 0 rgba(20, 184, 166, 0.2),
        0 128px 0 rgba(245, 158, 11, 0.15);
    transform: rotate(-9deg);
}

@keyframes heroDrift {
    from {
        background-position: 0 0, 0 0, 0 0;
    }
    to {
        background-position: 84px 42px, -42px 84px, 0 0;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-copy h1 {
    margin: 14px 0 0;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--navy);
}

.hero-copy p {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
}

.neighborhood-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
    gap: 28px;
    align-items: stretch;
    padding: 30px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
        radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.16), transparent 26%),
        radial-gradient(circle at 8% 96%, rgba(37, 99, 235, 0.12), transparent 30%),
        #fff;
}

.neighborhood-detail::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.neighborhood-detail-main {
    display: grid;
    gap: 14px;
    align-content: center;
    position: relative;
    z-index: 1;
}

.neighborhood-detail-main h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.neighborhood-detail-main p {
    margin: 0;
    max-width: 64ch;
    color: var(--muted);
}

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

.rival-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.rival-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.rival-card-head small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rival-card-head strong {
    display: block;
    min-width: 0;
    color: var(--navy);
    font-size: 1rem;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rival-list {
    display: grid;
    gap: 7px;
}

.rival-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 8px 9px;
    border: 1px solid rgba(215, 225, 236, 0.78);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
}

.rival-list a:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: #f8fbff;
}

.rival-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 800;
}

.rival-list b {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 26px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue);
    font-size: 0.86rem;
}

.rival-all {
    justify-self: start;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 900;
}

.rival-all:hover {
    color: var(--teal);
}

.rival-empty {
    display: grid;
    align-items: center;
    min-height: 54px;
    color: var(--muted);
    font-size: 0.84rem;
}

.neighborhood-score {
    display: grid;
    gap: 14px;
    align-content: center;
    justify-items: center;
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1px solid rgba(215, 225, 236, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.neighborhood-score .rank-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.neighborhood-score .rank-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 13px 16px 13px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.95));
    box-shadow: none;
}

.neighborhood-score .rank-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--blue), var(--teal));
}

.neighborhood-score .rank-box small {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.neighborhood-score .rank-box strong {
    color: var(--navy);
    font-size: 1.28rem;
    text-align: right;
}

.neighborhood-comparison {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-entry {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 8px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
}

.favorite-button:hover,
.favorite-button.is-active {
    border-color: rgba(20, 184, 166, 0.62);
    background: #ccfbf1;
    color: #115e59;
}

.favorite-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.report-account-note {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.86rem;
    font-weight: 700;
}

.report-account-note a {
    color: #115e59;
    text-decoration: underline;
}

.report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(239, 68, 68, 0.26);
    border-radius: 8px;
    background: #fff7f7;
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 850;
}

.report-button:hover {
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.42);
}

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.report-modal[hidden] {
    display: none;
}

.report-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
}

.report-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(88vh, 680px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.report-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.report-modal-head div {
    display: grid;
    gap: 3px;
}

.report-modal-head span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.report-modal-head strong {
    color: var(--navy);
    font-size: 1.12rem;
    line-height: 1.25;
}

.report-modal-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.report-modal-close:hover {
    background: #eef2f7;
    color: var(--navy);
}

.report-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.report-field,
.report-field-grid {
    display: grid;
    gap: 8px;
}

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

.report-field span {
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 850;
}

.report-field input,
.report-field select,
.report-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--text);
    font-size: 0.94rem;
    outline: none;
}

.report-field input,
.report-field select {
    padding: 0 12px;
}

.report-field textarea {
    min-height: 118px;
    resize: vertical;
    padding: 11px 12px;
}

.report-field input:focus,
.report-field select:focus,
.report-field textarea:focus {
    border-color: rgba(37, 99, 235, 0.62);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.report-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 800;
}

.report-message[hidden] {
    display: none;
}

.report-message.is-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.report-message.is-success {
    background: #ecfdf5;
    color: #047857;
}

.report-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.report-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.report-modal-actions button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 850;
}

.report-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.report-secondary:hover {
    background: #f8fafc;
    color: var(--navy);
}

.report-submit {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
}

.report-submit:hover {
    background: #1e293b;
}

.report-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.header-account-link {
    border: 1px solid rgba(60, 85, 118, 0.28) !important;
    color: var(--navy) !important;
}

.header-account-link:hover,
.header-account-link.active {
    border-color: rgba(20, 184, 166, 0.42) !important;
    background: #ecfdf5 !important;
    color: #0f766e !important;
}

.account-auth-main {
    min-height: 640px;
    display: grid;
    align-items: center;
}

.account-auth-shell {
    display: grid;
    justify-items: center;
}

.account-auth-card {
    width: min(520px, 100%);
    padding: clamp(22px, 5vw, 42px);
}

.account-auth-head {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.account-auth-head > span,
.account-panel-head > div > span,
.account-section-head span {
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-auth-head h1,
.account-panel-head h1,
.account-section-head h2 {
    margin: 0;
    color: var(--navy);
    line-height: 1.12;
}

.account-auth-head p {
    margin: 0;
    color: var(--muted);
}

.account-form {
    display: grid;
    gap: 14px;
}

.account-form label {
    display: grid;
    gap: 7px;
}

.account-form label > span {
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 850;
}

.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--text);
    outline: none;
}

.account-form input:focus {
    border-color: rgba(20, 184, 166, 0.62);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-form button {
    min-height: 44px;
    border: 1px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 850;
}

.account-form button:hover {
    background: #1e293b;
}

.account-check {
    display: flex !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 9px !important;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.account-check input {
    margin-top: 3px;
    accent-color: var(--teal);
}

.account-check a,
.account-auth-switch a {
    color: var(--blue);
    font-weight: 850;
}

.account-alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 750;
}

.account-alert.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.account-auth-switch {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.account-panel {
    display: grid;
    gap: 18px;
}

.account-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px 4px;
}

.account-panel-head h1 {
    margin-top: 6px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.account-logout {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
}

.account-logout:hover {
    border-color: #fca5a5;
    color: #b91c1c;
}

.account-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.account-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
    white-space: nowrap;
}

.account-tabs a:hover {
    border-color: rgba(20, 184, 166, 0.45);
    color: #0f766e;
}

.account-tabs span {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: #eef4fa;
    color: var(--navy);
    font-size: 0.72rem;
}

.account-section {
    padding: clamp(18px, 3vw, 28px);
    scroll-margin-top: 84px;
}

.account-section-head {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
}

.account-section-head h2 {
    font-size: 1.28rem;
}

.account-favorites,
.account-applications {
    display: grid;
    gap: 10px;
}

.account-favorite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.account-favorite:hover {
    border-color: rgba(20, 184, 166, 0.45);
    background: #f0fdfa;
}

.account-favorite div,
.account-application-top div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.account-favorite strong,
.account-application strong {
    color: var(--navy);
}

.account-favorite span,
.account-application-top span {
    color: var(--muted);
    font-size: 0.82rem;
}

.account-favorite b {
    display: grid;
    min-width: 42px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.account-application {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.account-application-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account-status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.7rem !important;
    font-weight: 850;
}

.account-status.is-new { background: #eff6ff; color: #1d4ed8 !important; }
.account-status.is-reviewed { background: #fffbeb; color: #a16207 !important; }
.account-status.is-needs-info { background: #fff7ed; color: #c2410c !important; }
.account-status.is-resolved { background: #ecfdf5; color: #047857 !important; }
.account-status.is-rejected { background: #fef2f2; color: #b91c1c !important; }

.account-application dl {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 14px 0 0;
}

.account-application dl div {
    display: grid;
    gap: 3px;
}

.account-application dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-application dd {
    margin: 0;
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 750;
}

.account-application p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    white-space: pre-line;
}

.account-admin-note {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 11px 12px;
    border-left: 3px solid var(--teal);
    border-radius: 0 6px 6px 0;
    background: #f0fdfa;
    color: #115e59;
    font-size: 0.84rem;
    white-space: pre-line;
}

.account-application > a {
    display: inline-block;
    margin-top: 14px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 850;
}

.account-empty {
    display: grid;
    gap: 7px;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
}

.account-empty strong {
    color: var(--navy);
}

.account-empty a {
    width: fit-content;
    margin-top: 5px;
    color: var(--blue);
    font-weight: 850;
}

.search-box {
    margin-top: 26px;
    display: grid;
    gap: 12px;
    position: relative;
}

.search-box-home {
    margin-top: 22px;
}

.home-search-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: min(760px, 100%);
    margin-top: 26px;
}

.hero-home .home-search-actions .search-box {
    flex: 1;
    min-width: 0;
    width: auto;
    margin-top: 0;
}

.random-neighborhood-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.random-neighborhood-btn svg {
    flex-shrink: 0;
}

.random-neighborhood-btn:hover {
    background: #eef4ff;
}

.random-neighborhood-btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .home-search-actions {
        flex-direction: column;
    }
}

.location-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
}

.search-input,
.filter-select,
.copy-field {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

.search-input:focus,
.filter-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.icon-btn,
.search-btn {
    min-width: 52px;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.search-btn:hover {
    background: #eef4ff;
    color: var(--navy);
}

.search-support {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    right: 62px;
    max-height: 310px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

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

.search-suggestion strong,
.search-suggestion span {
    display: block;
}

.search-suggestion strong {
    color: var(--navy);
    font-size: 0.94rem;
}

.search-suggestion span {
    color: var(--muted);
    font-size: 0.78rem;
}

.search-suggestion b {
    align-self: center;
    min-width: 38px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--navy);
    font-size: 0.82rem;
    line-height: 1;
    text-align: center;
}

.support-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface-soft);
    border: 1px solid var(--surface-ink);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-focus {
    padding: 24px;
    display: grid;
    gap: 18px;
    height: 100%;
    min-height: 390px;
    align-content: center;
}

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

.focus-topline strong {
    font-size: 0.92rem;
    color: var(--navy);
}

.status-pill {
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 800;
}

.status-pill small {
    color: var(--blue);
    font-size: 0.74rem;
}

.score-ring {
    width: 230px;
    height: 150px;
    border-radius: 150px 150px 18px 18px;
    display: grid;
    place-items: center;
    margin: 6px auto 0;
    background:
        radial-gradient(circle at 50% 88%, #fff 0 36%, transparent 37%),
        conic-gradient(from 230deg at 50% 88%, color-mix(in srgb, var(--score-color), #ffffff 48%) 0deg, var(--score-color) 230deg, transparent 231deg);
    position: relative;
    box-shadow: inset 0 -14px 24px rgba(15, 23, 42, 0.08), 0 18px 38px rgba(15, 23, 42, 0.1);
    overflow: visible;
}

.neighborhood-score .score-ring {
    width: 260px;
    height: 168px;
    margin-top: 0;
    box-shadow: inset 0 -16px 28px rgba(15, 23, 42, 0.08), 0 18px 34px rgba(15, 23, 42, 0.1);
}

.neighborhood-score .score-ring-inner {
    transform: translateY(14px);
}

.neighborhood-score .score-ring-inner strong {
    font-size: 3.7rem;
}

.score-ring::before {
    content: "";
    position: absolute;
    inset: 17px 18px 0;
    border-radius: 130px 130px 14px 14px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 82%);
}

.score-ring-inner {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 2px;
    text-align: center;
    transform: translateY(16px);
}

.score-ring-inner strong {
    font-size: 3.1rem;
    line-height: 1;
    color: var(--score-color);
}

.score-ring-inner strong.score-placeholder {
    font-size: 2.1rem;
    letter-spacing: 0;
    color: #94a3b8;
}

.score-ring-inner span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
}

.focus-title {
    display: grid;
    gap: 4px;
    text-align: center;
}

.focus-title strong {
    font-size: 1.35rem;
    color: var(--navy);
}

.focus-title span {
    color: var(--muted);
}

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

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

.comparison-card {
    display: grid;
    gap: 4px;
    padding: 12px 12px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    text-align: center;
}

.comparison-card span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.comparison-card strong {
    color: var(--navy);
    font-size: 0.95rem;
}

.comparison-card strong.is-up {
    color: var(--green);
}

.comparison-card strong.is-down {
    color: var(--rose);
}

.comparison-card strong.is-flat {
    color: var(--amber);
}

.comparison-card small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px 12px;
}

.rank-box small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.rank-box strong {
    display: block;
    color: var(--navy);
    font-size: 1.15rem;
}

.section {
    padding: 14px 0 0;
}

.neighborhood-average-section {
    padding-top: 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--navy);
}

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

.stats-panel,
.compare-panel {
    padding: 20px;
}

.stats-list {
    display: grid;
    gap: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 90px;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.stats-rank {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.stats-main {
    min-width: 0;
}

.stats-main strong {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
}

.stats-track,
.compare-track {
    height: 8px;
    overflow: hidden;
    border-radius: 2px;
    background: #e7edf5;
}

.stats-track i,
.compare-track i {
    display: block;
    height: 100%;
    background: var(--blue);
}

.stats-value {
    text-align: right;
}

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

.stats-value strong {
    color: var(--navy);
    font-size: 1.15rem;
}

.stats-value span {
    color: var(--muted);
    font-size: 0.78rem;
}

.compare-picker {
    position: relative;
    max-width: 640px;
}

.compare-search {
    display: grid;
    gap: 7px;
}

.compare-search span {
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 800;
}

.compare-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
}

.compare-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 10;
    display: grid;
    max-height: 360px;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.compare-suggestions button,
.compare-selected button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.compare-suggestions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    background: #fff;
    color: var(--text);
    text-align: left;
}

.compare-suggestions button:hover {
    background: #f1f5f9;
}

.compare-suggestions span {
    display: grid;
    gap: 3px;
}

.compare-suggestions small {
    color: var(--muted);
}

.compare-suggestions b {
    color: var(--blue);
}

.compare-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
    padding: 14px 0;
}

.compare-selected button {
    padding: 7px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.82rem;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.compare-add-first {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    min-height: 210px;
    padding: 28px;
    border: 2px dashed #b8c7d9;
    border-radius: 6px;
    background: #f8fbff;
    color: var(--navy);
}

.compare-add-first span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.compare-add-first strong {
    font-size: 1.15rem;
}

.compare-add-first:hover,
.compare-add-first:focus-visible {
    border-color: var(--blue);
    background: #eef4ff;
    outline: none;
}

.compare-card {
    display: grid;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.compare-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.05rem;
}

.compare-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.compare-score {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.compare-score strong {
    color: var(--navy);
    font-size: 2.5rem;
}

.compare-score span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.compare-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.compare-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.compare-card dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.compare-card dd {
    margin: 0;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: right;
}

.compare-card > a {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
}

.explorer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.map-panel,
.sidebar-panel,
.graph-panel,
.list-panel {
    padding: 20px;
}

.map-panel {
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,244,250,0.92)),
        var(--surface);
}

.map-shell {
    display: grid;
    gap: 14px;
}

.map-stage {
    position: relative;
    height: 480px;
    min-height: 360px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(11, 27, 52, 0.06), rgba(11, 27, 52, 0)),
        #f8fbff;
    border: 1px solid rgba(11, 27, 52, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.map-stage .leaflet-container,
.leaflet-container {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-stage .leaflet-control-zoom {
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.map-stage .leaflet-control-zoom a {
    color: var(--navy);
}

.map-stage .leaflet-control-attribution {
    display: none;
}

.map-stage .leaflet-tile-pane {
    filter: saturate(0.86) contrast(1.02);
}

.map-stage .leaflet-popup-content-wrapper,
.map-stage .leaflet-popup-tip {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.neighborhood-map-panel {
    padding: 18px;
}

.neighborhood-map-heading {
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.neighborhood-map-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.neighborhood-map-stage {
    height: 360px;
    min-height: 300px;
}

.neighborhood-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
    gap: 16px;
    align-items: stretch;
}

.neighborhood-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
}

.neighborhood-map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.neighborhood-map-legend i { width: 9px; height: 9px; border-radius: 50%; }

.neighborhood-nearby {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}

.neighborhood-nearby h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1rem;
}

.nearby-place-list {
    display: grid;
    gap: 7px;
}

.nearby-place {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    text-decoration: none;
}

.nearby-place strong,
.nearby-place span {
    display: block;
}

.nearby-place strong { font-size: .86rem; }
.nearby-place span { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.nearby-place-score { text-align: right; font-weight: 900; }
.nearby-place-score small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; }

.neighborhood-map-stage .leaflet-control-attribution {
    display: block;
}

.map-attribution {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.72rem;
}

.map-attribution a {
    color: inherit;
}

@media (max-width: 760px) {
    .neighborhood-map-layout { grid-template-columns: 1fr; }
    .neighborhood-map-stage { height: 320px; }
}

.map-popup {
    min-width: 180px;
    display: grid;
    gap: 4px;
}

.map-popup strong {
    color: var(--navy);
    font-size: 0.98rem;
}

.map-popup span,
.map-popup small {
    color: var(--muted);
}

.map-popup b {
    color: var(--navy);
    font-size: 1.2rem;
}

.map-stage .map-popup a {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #0b1b34;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
}

.arsa-map-label {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 4px 7px;
    text-align: center;
    white-space: nowrap;
}

.arsa-map-label::before {
    display: none;
}

.arsa-map-label span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.map-stage svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-outline {
    fill: url(#mapFill);
    stroke: rgba(11, 27, 52, 0.18);
    stroke-width: 2;
}

.map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.map-marker.active {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 10px 20px rgba(15, 23, 42, 0.12);
}

.province-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.province-chip {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
}

.province-chip.active {
    background: var(--navy);
    color: #fff;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.84rem;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.sidebar-panel {
    display: grid;
    gap: 16px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.crumbs strong {
    color: var(--navy);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.list-group {
    display: grid;
    gap: 10px;
}

.list-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--navy);
    font-weight: 800;
}

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

.record-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 78px;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.record-row.active {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

.record-row.is-extra {
    display: none;
}

.record-list.is-expanded .record-row.is-extra {
    display: grid;
}

.record-row button {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    color: inherit;
}

.record-score {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
}

.record-meta strong,
.record-meta span {
    display: block;
}

.record-meta strong {
    color: var(--navy);
    font-size: 0.96rem;
}

.record-meta span {
    color: var(--muted);
    font-size: 0.82rem;
}

.record-rank {
    text-align: right;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.show-more-btn {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.show-more-btn:hover {
    border-color: rgba(37, 99, 235, 0.36);
    color: var(--blue);
}

.graph-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.bar-chart {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
}

.bar-track {
    height: 12px;
    border-radius: 8px;
    background: #e8eef6;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--amber), var(--green));
}

.note-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: var(--muted);
    font-size: 0.92rem;
}

.index-panel {
    padding: 24px;
}

.index-head {
    align-items: center;
}

.index-badge {
    display: grid;
    place-items: center;
    width: 74px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

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

.index-step {
    min-height: 170px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.94)),
        #fff;
}

.index-step span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 900;
}

.index-step strong {
    display: block;
    color: var(--navy);
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.index-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.index-scale {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.scale-top,
.scale-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scale-top strong {
    color: var(--navy);
}

.scale-top span,
.scale-labels {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.scale-track {
    position: relative;
    height: 16px;
    margin: 14px 0 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #166534);
}

.scale-track i {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--navy);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.legal-note {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.04);
    color: #7f1d1d;
    font-size: 0.92rem;
}

.ranking-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.detail-shell {
    display: grid;
    gap: 18px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.detail-hero .detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.detail-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    justify-self: center;
    min-width: min(100%, 360px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-score-value {
    display: grid;
    min-width: 112px;
    justify-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #eef4ff;
}

.detail-score-value strong {
    font-size: 2.8rem;
    line-height: 1;
    color: var(--navy);
}

.detail-score-value span,
.detail-score-status span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-score-status {
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 10px 12px;
    border-left: 1px solid var(--line);
}

.detail-score-status strong {
    color: var(--navy);
    font-size: 1rem;
}

.detail-score-status.is-up strong {
    color: var(--green);
}

.detail-score-status.is-down strong {
    color: var(--rose);
}

.detail-score-status.is-flat strong {
    color: var(--amber);
}

.detail-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.detail-band .comparison-card {
    text-align: left;
}

.ranking-hero h1 {
    margin: 10px 0 6px;
    color: var(--navy);
    font-size: 2.4rem;
    line-height: 1.05;
}

.ranking-hero p {
    margin: 0;
    color: var(--muted);
}

.ranking-kpi {
    display: grid;
    place-items: center;
    min-width: 150px;
    padding: 18px;
    border-radius: 8px;
    background: #eef4ff;
}

.ranking-kpi strong {
    color: var(--navy);
    font-size: 2.2rem;
    line-height: 1;
}

.ranking-kpi span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.district-ranking-panel {
    padding: 18px;
}

.province-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.district-ranking-list {
    display: grid;
    gap: 10px;
}

.district-rank-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 136px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.district-rank-row:hover {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.district-rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
}

.district-rank-main strong,
.district-rank-main span {
    display: block;
}

.district-rank-main strong {
    color: var(--navy);
    font-size: 1rem;
}

.district-rank-main span {
    color: var(--muted);
    font-size: 0.84rem;
}

.district-rank-track {
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.district-rank-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.district-rank-score {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    text-align: center;
}

.district-rank-score strong,
.district-rank-score span {
    display: block;
}

.district-rank-score strong {
    color: var(--navy);
    font-size: 1.5rem;
    line-height: 1;
}

.district-rank-score span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.city-best-panel {
    position: sticky;
    top: 78px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.city-best-head {
    margin-bottom: 0;
}

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

.city-best-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.city-best-row:hover {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.city-best-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.city-best-main {
    min-width: 0;
}

.city-best-main strong,
.city-best-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-best-main strong {
    color: var(--navy);
    font-size: 0.94rem;
}

.city-best-main span {
    color: var(--muted);
    font-size: 0.8rem;
}

.city-best-score {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-weight: 950;
}

.district-rank-score small,
.search-result-score span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 900;
}

.district-rank-score small.is-up,
.search-result-score span.is-up {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.district-rank-score small.is-down,
.search-result-score span.is-down {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.district-rank-score small.is-flat,
.search-result-score span.is-flat {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.legal-modal.is-hidden {
    display: none;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(10px);
}

.legal-modal-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(86vh, 680px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.legal-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.legal-modal-head img {
    display: block;
    height: 38px;
    width: auto;
}

.legal-modal-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
}

.legal-modal-close:hover {
    background: #eef2f7;
    color: var(--navy);
}

.legal-modal-body {
    display: grid;
    gap: 20px;
    padding: 20px 22px 14px;
}

.legal-modal-body h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 1.3rem;
    letter-spacing: 0;
}

.legal-modal-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.active-coverage {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.active-coverage > strong {
    color: var(--navy);
    font-size: 0.92rem;
    letter-spacing: 0;
}

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

.coverage-province-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.coverage-province {
    display: grid;
    align-content: center;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
}

.coverage-province small {
    margin-top: 3px;
    color: #b45309;
    font-size: 0.68rem;
    font-weight: 850;
}

.coverage-row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

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

.coverage-row span {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 900;
}

.coverage-row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coverage-row li {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.legal-modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 22px 20px;
}

.legal-modal-actions button {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.legal-modal-actions button:hover {
    background: #1e293b;
}

.footnote {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.04);
    color: #7f1d1d;
}

.legal-page {
    display: grid;
    gap: 16px;
    max-width: 860px;
    color: var(--muted);
}

.legal-page h2 {
    margin: 10px 0 0;
    color: var(--navy);
    font-size: 1.05rem;
}

.legal-page p {
    margin: 0;
}

.legal-page a {
    color: var(--blue);
    font-weight: 850;
}

.press-page {
    display: grid;
    gap: 24px;
}

.methodology-page .press-hero {
    padding: 20px 24px;
}

.methodology-page .press-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.methodology-page .press-copy {
    max-width: 900px;
    gap: 24px;
    line-height: 1.75;
}

.methodology-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-soft);
}

.methodology-stats > div {
    padding: 18px;
}

.methodology-stats dt {
    font-size: 0.8rem;
}

.methodology-stats dd {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.methodology-stats dd small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
}

.methodology-caption {
    font-size: 0.8rem;
    color: var(--muted);
}

.methodology-example {
    padding: 18px 20px;
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    background: var(--surface-soft);
    display: grid;
    gap: 10px;
}

.methodology-example h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--navy);
}

.methodology-region {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.methodology-region summary {
    padding: 14px 16px;
    cursor: pointer;
    color: var(--navy);
}

.methodology-region summary span {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--muted);
}

.methodology-region[open] summary {
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.methodology-region-body {
    padding: 14px 16px;
    min-width: 0;
}

.methodology-district-table {
    min-width: 650px;
}

.methodology-table-wrap {
    overflow-x: auto;
}

.methodology-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.methodology-table caption {
    text-align: left;
    padding: 8px 0 12px;
}

.methodology-table th,
.methodology-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.methodology-table thead,
.methodology-table tfoot {
    background: var(--surface-soft);
    color: var(--navy);
    font-weight: 750;
}

.methodology-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.methodology-share > span:first-child {
    min-width: 64px;
}

.methodology-bar {
    display: block;
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: var(--surface-soft);
    overflow: hidden;
}

.methodology-bar i {
    display: block;
    height: 100%;
    background: var(--blue);
    border-radius: inherit;
}

@media (max-width: 600px) {
    .methodology-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .methodology-stats > div {
        padding: 14px;
    }

    .methodology-table th,
    .methodology-table td {
        padding: 10px 8px;
    }

    .methodology-bar {
        display: none;
    }
}

.press-hero {
    padding: 26px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.press-eyebrow {
    margin-bottom: 8px;
    color: #8de5d9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.press-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.08;
}

.press-hero p {
    max-width: 700px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.press-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
    gap: 28px;
    align-items: start;
}

.press-copy {
    display: grid;
    gap: 18px;
    color: var(--muted);
}

.press-copy section {
    display: grid;
    gap: 9px;
}

.press-copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
}

.press-copy p {
    margin: 0;
}

.press-copy em {
    color: var(--navy);
}

.press-copy a {
    color: var(--blue);
    font-weight: 800;
}

.press-copy ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.press-copy strong {
    color: var(--navy);
}

.press-example {
    padding: 13px 15px;
    border-left: 3px solid var(--teal);
    border-radius: 0 6px 6px 0;
    background: var(--surface-soft);
    font-size: 0.9rem;
}

.press-example-bad {
    border-left-color: var(--rose);
    background: rgba(239, 68, 68, 0.06);
}

.press-contact {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.press-contact-label {
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.press-contact p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.press-contact a {
    color: var(--navy);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.press-contact a:hover {
    color: var(--blue);
}

@media (max-width: 700px) {
    .press-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .press-hero {
        padding: 22px;
    }
}

.contact-page {
    display: grid;
    gap: 28px;
    padding: clamp(22px, 4vw, 42px);
}

.contact-hero {
    max-width: 700px;
}

.contact-eyebrow {
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.contact-hero p {
    max-width: 620px;
    margin: 14px 0 18px;
    color: var(--muted);
    font-size: 1rem;
}

.contact-email,
.contact-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 900;
}

.contact-email:hover,
.contact-directions:hover,
.contact-info-mail:hover {
    color: var(--teal);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
    gap: 18px;
    align-items: stretch;
}

.contact-map-wrap {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: block;
    border: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 26px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.contact-operator-logo {
    display: block;
    width: auto;
    max-width: 190px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
    margin: 12px 0 16px;
    filter: brightness(0) invert(1);
}

.contact-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info-label {
    color: #8de5d9;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-info-rule {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.16);
}

.contact-info-mail {
    margin-top: 8px;
    color: #fff;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.contact-directions {
    margin-top: 24px;
    color: #8de5d9;
}

@media (max-width: 560px) {
    .contact-page {
        padding: 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 360px;
    }

    .contact-info {
        padding: 22px;
    }
}

.app-footer {
    margin-top: 0;
    padding: 12px 0 22px;
    color: var(--muted);
}

.footer-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.footer-logo {
    display: block;
    width: auto;
    height: 24px;
    max-width: 118px;
    object-fit: contain;
}

.footer-legal {
    /* Yasal uyarı bağlantıların altında, sayfa genişliğinde ayrı satır. */
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1.5;
}

.footer-links {
    grid-column: 3;
    grid-row: 1;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-contact {
    grid-column: 4;
    justify-self: end;
    white-space: nowrap;
    color: var(--navy);
    font-weight: 850;
    font-size: 0.84rem;
}

.footer-contact:hover {
    color: var(--blue);
}

.search-results {
    display: grid;
    gap: 10px;
}

.search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.search-result strong {
    display: block;
    color: var(--navy);
}

.search-result span {
    color: var(--muted);
    font-size: 0.84rem;
}

.search-result-score {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 82px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: var(--navy);
    text-align: center;
}

.search-result-score strong {
    display: block;
    font-size: 1.12rem;
    line-height: 1;
    font-weight: 900;
}

.empty-state,
.empty-pill {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--muted);
    text-align: center;
}

.empty-state-map {
    position: absolute;
    inset: auto 18px 18px 18px;
    min-height: 48px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
}

.empty-state-prompt {
    min-height: 72px;
    border-style: solid;
    border-color: rgba(37, 99, 235, 0.16);
    background: linear-gradient(180deg, #f8fbff, #f3f7fb);
    color: var(--navy);
    font-weight: 700;
}

.filter-select:disabled {
    background: #f8fbff;
    color: #8a97a8;
}

@media (max-width: 1040px) {
    .hero-grid,
    .detail-hero,
    .explorer-grid,
    .graph-grid,
    .neighborhood-detail,
    .province-detail-grid {
        grid-template-columns: 1fr;
    }

    .city-best-panel {
        position: static;
    }

    .score-ring {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .neighborhood-score {
        justify-items: center;
    }

    .neighborhood-detail {
        align-items: start;
    }

    .detail-score {
        justify-self: stretch;
    }
}

@media (max-width: 760px) {
    .main {
        padding-top: 12px;
    }

    .detail-shell {
        gap: 12px;
    }

    .header-shell,
    .footer-shell {
        width: min(100% - 20px, 1180px);
    }

    .footer-shell {
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: end;
        gap: 10px 14px;
    }

    .footer-brand {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
    }

    .footer-legal {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .footer-links {
        grid-column: 1 / -1;
        grid-row: 1;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        font-size: 0.76rem;
        white-space: normal;
    }

    .footer-contact {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        justify-self: end;
    }

    .footer-brand {
        grid-row: 2;
    }

    .footer-logo {
        height: 22px;
        max-width: 108px;
    }

    .header-shell {
        display: grid;
        grid-template-columns: auto minmax(154px, 1fr) auto;
        align-items: center;
        flex-wrap: initial;
        gap: 6px;
        padding: 9px 0;
    }

    .brand,
    .menu-toggle {
        position: relative;
        z-index: 80;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
    }

    .header-search {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        margin-left: 4px;
        min-width: 0;
        flex: initial;
        justify-self: stretch;
    }

    .header-search .search-form-compact {
        grid-template-columns: minmax(0, 1fr) 36px;
        gap: 6px;
    }

    .header-search .search-input {
        min-height: 38px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .header-search .search-btn {
        min-width: 36px;
        min-height: 38px;
    }

    .menu-toggle {
        display: grid;
        width: 36px;
        height: 36px;
        padding: 0;
        border-color: rgba(15, 23, 42, 0.16);
        background: #ffffff;
        color: var(--navy);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .menu-toggle svg {
        width: 19px;
        height: 19px;
    }

    .brand-logo {
        height: 26px;
        width: auto;
        max-width: none;
    }

    .header-badge {
        width: 100%;
        justify-content: center;
    }

    .hero-copy {
        padding: 22px;
    }

    .hero-copy h1 {
        font-size: 2.05rem;
    }

    .neighborhood-detail {
        padding: 14px;
        gap: 14px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.94)),
            #fff;
    }

    .neighborhood-detail-main h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .neighborhood-detail-main {
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .neighborhood-score {
        order: -1;
        width: 100%;
        padding: 12px;
        gap: 10px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    }

    .neighborhood-score .score-ring {
        width: 196px;
        height: 128px;
    }

    .neighborhood-score .score-ring-inner strong {
        font-size: 2.55rem;
    }

    .neighborhood-score .rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .neighborhood-score .rank-box {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: 60px;
        padding: 8px 6px;
        text-align: center;
    }

    .neighborhood-score .rank-box::before {
        top: 0;
        left: 10px;
        right: 10px;
        bottom: auto;
        width: auto;
        height: 3px;
        border-radius: 0 0 999px 999px;
    }

    .neighborhood-score .rank-box small {
        font-size: 0.66rem;
    }

    .neighborhood-score .rank-box strong {
        font-size: 0.96rem;
        text-align: center;
    }

    .neighborhood-rivals {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .rival-card {
        padding: 11px;
    }

    .rival-card-head small {
        font-size: 0.62rem;
    }

    .rival-card-head strong {
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .rival-list {
        gap: 6px;
    }

    .rival-list a {
        min-height: 32px;
        padding: 7px 8px;
    }

    .rival-list span {
        font-size: 0.8rem;
    }

    .rival-list b {
        min-width: 31px;
        height: 24px;
        font-size: 0.78rem;
    }

    .report-entry {
        margin-top: 0;
        justify-content: center;
    }

    .report-field-grid {
        grid-template-columns: 1fr;
    }

    .report-modal {
        padding: 10px;
    }

    .report-modal-actions {
        justify-content: stretch;
    }

    .report-modal-actions button {
        flex: 1;
    }

    .detail-score {
        display: grid;
        justify-items: stretch;
    }

    .detail-score-status {
        border-left: 0;
        border-top: 1px solid var(--line);
        text-align: center;
    }

    .hero-focus,
    .map-panel,
    .sidebar-panel,
    .graph-panel,
    .list-panel {
        padding: 16px;
    }

    .hero-focus {
        justify-items: center;
        text-align: center;
    }

    .focus-topline,
    .focus-title,
    .rank-grid {
        width: 100%;
    }

    .rank-grid,
    .filter-row,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .neighborhood-score .rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .neighborhood-comparison {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .neighborhood-comparison .comparison-card {
        min-height: 76px;
        padding: 10px 6px;
        text-align: center;
    }

    .neighborhood-comparison .comparison-card span {
        font-size: 0.62rem;
    }

    .neighborhood-comparison .comparison-card strong {
        font-size: 0.82rem;
    }

    .neighborhood-comparison .comparison-card small {
        font-size: 0.7rem;
    }

    .index-panel {
        padding: 16px;
    }

    .index-head {
        align-items: flex-start;
    }

    .index-flow {
        grid-template-columns: 1fr;
    }

    .record-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .record-rank {
        grid-column: 1 / -1;
        text-align: left;
    }

    .bar-row {
        grid-template-columns: 38px minmax(0, 1fr) 40px;
    }

    .ranking-hero,
    .district-rank-row {
        grid-template-columns: 1fr;
    }

    .ranking-hero {
        display: grid;
        padding: 20px;
    }

    .ranking-kpi {
        justify-items: start;
        place-items: initial;
    }

    .district-rank-score {
        justify-items: center;
        text-align: center;
    }

    .city-best-panel {
        padding: 16px;
    }

    .city-best-row {
        grid-template-columns: 38px minmax(0, 1fr) 44px;
        padding: 10px;
    }

    .coverage-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .legal-modal {
        padding: 10px;
    }

    .legal-modal-actions {
        justify-content: flex-end;
    }

    .legal-modal-actions button {
        width: auto;
    }
}

@media (max-width: 520px) {
    .main {
        padding-top: 8px;
    }

    .detail-shell {
        gap: 10px;
    }

    .section-shell,
    .footer-shell {
        width: min(100% - 16px, 1180px);
    }

    .footer-shell {
        gap: 9px 10px;
    }

    .footer-logo {
        height: 20px;
        max-width: 96px;
    }

    .footer-contact {
        font-size: 0.78rem;
    }

    .footer-legal {
        font-size: 0.7rem;
    }

    .footer-links {
        font-size: 0.7rem;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .header-shell {
        grid-template-columns: auto minmax(138px, 1fr) auto;
        gap: 5px;
    }

    .header-search {
        width: auto;
        margin-left: 3px;
    }

    .header-search .search-input {
        padding: 0 8px;
        font-size: 0.77rem;
    }

    .brand-logo {
        height: 24px;
    }

    .coverage-province-grid {
        grid-template-columns: 1fr;
    }

    .score-ring {
        width: 210px;
        height: 138px;
    }

    .score-ring-inner strong {
        font-size: 2.5rem;
    }

    .neighborhood-score .score-ring {
        width: 184px;
        height: 120px;
    }

    .neighborhood-score .score-ring-inner strong {
        font-size: 2.35rem;
    }

    .neighborhood-score .rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .neighborhood-comparison {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .neighborhood-comparison .comparison-card {
        padding: 8px 4px;
    }

    .neighborhood-comparison .comparison-card span {
        font-size: 0.56rem;
    }

    .neighborhood-comparison .comparison-card strong {
        font-size: 0.74rem;
    }

    .neighborhood-score .rank-box {
        min-height: 58px;
        padding: 8px 5px;
    }

    .neighborhood-score .rank-box small {
        font-size: 0.58rem;
    }

    .neighborhood-score .rank-box strong {
        font-size: 0.82rem;
    }

    .map-stage {
        min-height: 300px;
    }
}

.updates-shell {
    display: grid;
    gap: 16px;
}

.updates-intro {
    padding: 26px 0 4px;
}

.updates-intro h1 {
    margin: 6px 0 8px;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.updates-intro p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
}

.updates-panel,
.index-history-panel {
    padding: 18px;
}

.updates-list,
.index-history-list {
    display: grid;
    gap: 14px;
}

.update-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.update-group-head {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.update-group-head h2 {
    position: absolute;
    top: 38px;
    right: 17px;
    margin: 0;
    color: var(--navy);
    font-size: 1rem;
}

.update-group-head > div:first-child { padding-right: 190px; }

.update-group-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.update-group-head .update-group-note {
    max-width: 680px;
    margin-top: 10px;
    padding: 9px 12px;
    border-left: 3px solid var(--blue);
    border-radius: 0 5px 5px 0;
    background: #eef5ff;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.5;
}

.updates-all-link {
    display: flex;
    width: fit-content;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.updates-all-link:hover { text-decoration: underline; }

.updates-all-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 17px 14px;
}

.update-group-head time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.76rem;
}

.update-group-rows {
    padding: 0 17px;
}

.update-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.update-item:last-child { border-bottom: 0; }

.update-item-extra { display: none; }

.updates-modal[hidden] { display: none; }
.updates-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.updates-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.58); }
.updates-modal-card {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.25);
}
.updates-modal-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}
.updates-modal-head h2 { position: absolute; top: 18px; right: 58px; margin: 0; color: var(--navy); font-size: 1.1rem; }
.updates-modal-head > div:first-child { padding-right: 230px; }
.updates-modal-note {
    max-width: 560px;
    margin: 10px 0 0;
    padding: 8px 11px;
    border-left: 3px solid var(--blue);
    border-radius: 0 5px 5px 0;
    background: #eef5ff;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}
.updates-modal-close { border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.updates-modal-close:hover { color: var(--navy); }
.updates-modal-list { max-height: min(590px, calc(100vh - 150px)); overflow: auto; padding: 0 20px; }
.updates-modal-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.updates-modal-item:last-child { border-bottom: 0; }
.updates-modal-item a { display: inline-block; margin-top: 3px; color: var(--navy); font-weight: 750; }
.updates-modal-item a:hover { color: var(--blue); }
.updates-modal-score { flex: 0 0 auto; color: var(--navy); font-weight: 800; }
.updates-modal-score small { color: var(--muted); font-weight: 600; }
.updates-modal-score.is-up { color: #15803d; }
.updates-modal-score.is-down { color: #b91c1c; }
.updates-modal-open { overflow: hidden; }

.update-item h3 {
    margin: 4px 0;
    color: var(--navy);
    font-size: 1.05rem;
}

.update-item h3 a:hover { color: var(--blue); }

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

.update-score {
    display: grid;
    min-width: 150px;
    justify-items: end;
    gap: 3px;
}

.update-score-flow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.update-score-old {
    color: var(--muted);
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1;
}

.update-score-arrow {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1;
}

.update-score-new {
    color: var(--navy);
    font-size: 1.75rem;
    line-height: 1;
}

.update-score small,
.index-history-row time,
.index-history-row small {
    color: var(--muted);
    font-size: 0.75rem;
}

.update-score.is-up small,
.history-change.is-up { color: #15803d; }
.update-score.is-down small,
.history-change.is-down { color: #b91c1c; }

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

.section-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 1.15rem; }
.text-link { color: var(--blue); font-size: 0.82rem; font-weight: 800; }

.index-history-row {
    display: grid;
    grid-template-columns: 125px minmax(110px, 1fr) 58px minmax(0, 1.6fr);
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.index-history-row:last-child { border-bottom: 0; }
.index-history-row > span { color: var(--text); font-size: 0.86rem; }
.history-change { font-size: 0.86rem; }

@media (max-width: 620px) {
    .update-group-head { display: grid; gap: 7px; }
    .update-group-head { min-height: 0; }
    .update-group-head h2 { position: static; margin: 4px 0 0; }
    .update-group-head > div:first-child { padding-right: 0; }
    .updates-modal-head h2 { position: static; margin: 4px 0 0; }
    .updates-modal-head > div:first-child { padding-right: 0; }
    .updates-modal { align-items: start; padding: 10px; }
    .updates-modal-card { max-height: calc(100vh - 20px); }
    .updates-modal-list { max-height: calc(100vh - 130px); padding: 0 14px; }
    .updates-modal-head { padding: 14px; }
    .updates-modal-item { align-items: flex-start; gap: 10px; }
    .updates-modal-score { font-size: 0.82rem; }

    .update-item { align-items: flex-start; }
    .update-score { min-width: 86px; }
    .index-history-row { grid-template-columns: 1fr auto; gap: 5px 10px; }
    .index-history-row time { grid-column: 1 / -1; }
    .index-history-row small { grid-column: 1 / -1; }
}

.header-search .search-form-compact {
    position: relative;
    display: block;
}

.header-search .search-input {
    width: 100%;
    padding-right: 42px;
}

.header-search .search-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
}

.header-search .search-btn:hover,
.header-search .search-btn:focus-visible {
    background: #eef4ff;
}

@media (max-width: 560px) {
    .account-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-application-top {
        flex-direction: column;
    }

    .account-status {
        align-self: flex-start;
    }
}
.province-ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.province-ranking-tabs a {
    padding: 12px 2px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.province-ranking-tabs a[aria-current="page"] {
    color: #15803d;
    border-bottom-color: #15803d;
}

@media (max-width: 760px) {
    .province-ranking-section {
        min-width: 0;
    }

    .province-ranking-tabs {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .province-ranking-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.province-ranking-tabs a:focus-visible,
.province-district-members summary:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 3px;
}

.province-district-members {
    padding: 0 12px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.province-district-members summary { cursor: pointer; padding: 10px 0; }
.province-district-members a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid var(--line);
}
.province-district-members a span { min-width: 0; overflow-wrap: anywhere; }
.province-district-members small { display: block; color: var(--muted); margin-top: 3px; }
.province-district-members a strong { flex-shrink: 0; }
.detail-hero.province-compact-hero { padding: 14px 20px; gap: 12px; }
.province-compact-hero h1 { margin: 4px 0 0; font-size: 1.8rem; line-height: 1.2; }
.province-compact-hero .detail-score { padding: 4px; min-width: 0; max-width: 100%; box-shadow: none; }
.province-compact-hero .detail-score-value { padding: 6px 10px; min-width: 0; }
.province-compact-hero .detail-score-value strong { font-size: 2rem; }
.province-compact-hero .detail-score-status { padding: 6px 10px; min-width: 0; }/* Neighborhood reviews */
.reviews-section { margin-top: 24px; padding: 24px; }
.reviews-layout { --reviews-panel-height:350px; display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:24px; margin-top:24px; }
.reviews-layout.has-ad { grid-template-columns:minmax(0,1fr) 318px; }
.reviews-layout > .reviews-section { box-sizing:border-box; height:var(--reviews-panel-height); min-width:0; margin:0; text-align:left; overflow-y:auto; scrollbar-gutter:stable; }
.reviews-layout .section-heading { flex-wrap:wrap; }
.reviews-layout .review-item p { overflow-wrap:anywhere; }
.reviews-layout > .site-ad-reviews-right { box-sizing:border-box; width:318px; height:var(--reviews-panel-height); max-width:100%; min-width:0; margin:0; padding:8px; overflow:auto; }
.site-ad-reviews-right > small { height:14px; line-height:14px; }
.site-ad-reviews-right img { width:300px; height:250px; max-height:none; object-fit:contain; }
.site-ad-viewport { width:100%; max-width:300px; aspect-ratio:6 / 5; margin:0 auto; overflow:hidden; }
.site-ad-creative { width:300px; height:250px; transform:scale(var(--ad-scale,1)); transform-origin:top left; }
.site-ad-frame { display:block; width:100%; height:100%; border:0; }
.search-results > .site-ad-district-list { box-sizing:border-box; grid-column:1 / -1; width:100%; min-width:0; margin:12px 0; padding:8px; }
.site-ad-district-list .site-ad-viewport { max-width:1000px; aspect-ratio:1000 / 200; }
.site-ad-district-list .site-ad-creative { width:1000px; height:200px; }
.site-ad-district-list img { width:1000px; height:200px; max-height:none; object-fit:contain; }
.about-layout { --about-panel-height:286px; display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:24px; margin-top:20px; }
.about-layout.has-ad { grid-template-columns:minmax(0,1fr) 318px; }
.about-layout > .location-about { min-width:0; margin:0; overflow-wrap:anywhere; }
.about-layout.has-ad > .location-about { box-sizing:border-box; height:var(--about-panel-height); overflow-y:auto; scrollbar-gutter:stable; }
.about-layout > .site-ad-about-right { box-sizing:border-box; width:318px; max-width:100%; min-width:0; margin:0; padding:8px; overflow:hidden; }
.about-layout.has-ad > .site-ad-about-right { height:var(--about-panel-height); }
.site-ad-about-right > small { height:14px; line-height:14px; }
.site-ad-about-right img { width:300px; height:250px; max-height:none; object-fit:contain; }
@media (max-width:1000px) {
    .about-layout.has-ad .location-about.has-image { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:760px) {
    .about-layout.has-ad { grid-template-columns:minmax(0,1fr); gap:16px; }
    .about-layout.has-ad > .location-about { height:auto; overflow:visible; scrollbar-gutter:auto; }
    .about-layout.has-ad > .site-ad-about-right { height:auto; }
    .about-layout > .site-ad-about-right { justify-self:center; }
    .reviews-layout.has-ad { grid-template-columns:minmax(0,1fr); gap:16px; }
    .reviews-layout > .reviews-section { height:auto; overflow:visible; scrollbar-gutter:auto; }
    .reviews-layout > .site-ad-reviews-right { height:auto; justify-self:center; overflow:hidden; }
}
.review-summary { display:grid; justify-items:end; color:var(--muted); }
.review-summary strong { color:var(--blue); font-size:1.8rem; line-height:1; }
.review-action-row { display:flex; align-items:center; margin:4px 0 18px; }
.review-open-button { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 17px; border:1px solid var(--navy); border-radius:10px; background:var(--navy); color:#fff; font-weight:850; box-shadow:0 8px 18px rgba(11,27,52,.16); transition:transform .16s ease, box-shadow .16s ease, background .16s ease; }
.review-open-icon { display:grid; place-items:center; width:22px; height:22px; border-radius:6px; background:rgba(255,255,255,.16); font-size:.9rem; }
.review-open-plus { margin-left:3px; color:#93c5fd; font-size:1.15rem; line-height:1; }
.review-open-button:hover { transform:translateY(-2px); background:#1e3a63; box-shadow:0 12px 24px rgba(11,27,52,.22); }
.review-modal { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:18px; }
.review-modal[hidden] { display:none; }
.review-modal-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.58); backdrop-filter:blur(8px); }
.review-modal-card { position:relative; z-index:1; width:min(620px,100%); border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 26px 80px rgba(15,23,42,.28); overflow:hidden; }
.review-modal-head { display:flex; justify-content:space-between; align-items:center; padding:20px 22px 16px; border-bottom:1px solid var(--line); background:linear-gradient(135deg,#f8fbff,#eef6ff); }
.review-modal-head span { color:var(--blue); font-size:.72rem; font-weight:900; letter-spacing:.08em; }
.review-modal-head h3 { margin:4px 0 0; color:var(--navy); font-size:1.3rem; }
.review-modal-close { width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--muted); font-size:1.35rem; }
.review-modal .review-form { display:grid; grid-template-columns:1fr; margin:0; border:0; border-radius:0; background:#fff; padding:22px; }
.review-rating-card { display:grid; gap:10px; padding:16px; border:1px solid #dbe7f3; border-radius:12px; background:linear-gradient(180deg,#f8fbff,#f1f6fc); }
.review-rating-card small { color:var(--muted); font-size:.8rem; }
.review-rating-field span { display:flex; align-items:center; gap:6px; }
.review-rating-field span b { margin-right:auto; color:var(--navy); }
.calculator-page { width:100%; max-width:1120px; margin:0 auto 32px; }
.calculator-page h1 { margin:0 0 20px; font-size:1.35rem; font-weight:600; }
.calculator-heading { margin:0 0 24px; }
.calculator-kicker,.calculator-card-label { display:block; color:#5675a0; font-size:.68rem; font-weight:800; letter-spacing:.14em; }
.calculator-heading h1 { margin:5px 0 5px; font-size:2rem; letter-spacing:-.03em; }
.calculator-heading p { margin:0; color:var(--muted); }
.calculator-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(190px,.72fr) minmax(190px,.72fr); gap:16px; align-items:start; }
.calculator-side { display:grid; gap:16px; }
.calculator-info { padding:19px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 22px rgba(15,23,42,.045); }
.calculator-info h2 { margin:7px 0 9px; color:var(--navy); font-size:1rem; }
.calculator-info p { margin:0; color:var(--muted); font-size:.82rem; line-height:1.6; }
.calculator-info a { display:inline-block; margin-top:13px; color:var(--blue); font-size:.78rem; font-weight:800; }
.calculator-rates { margin:15px 0 0; }
.calculator-rates div { display:flex; justify-content:space-between; padding:8px 0; border-top:1px solid var(--line); font-size:.82rem; }
.calculator-rates dt { color:var(--muted); }
.calculator-rates dd { margin:0; color:var(--navy); font-weight:800; }
.calculator-example { background:#edf4ff; border-color:#cfdef4; }
.calculator-example strong { display:block; margin-top:13px; color:var(--navy); font-size:1.25rem; }
.calculator-example strong small { color:var(--muted); font-size:.68rem; font-weight:normal; }
.calculator-legal { display:flex; gap:13px; margin-top:18px; padding:17px 19px; border:1px solid #f0d79f; border-radius:10px; background:#fff9e9; color:#73571b; }
.calculator-legal svg { flex:none; margin-top:1px; }
.calculator-legal h2 { margin:0 0 4px; font-size:.9rem; }
.calculator-legal p { margin:0; font-size:.77rem; line-height:1.6; }
.deed-calculator { border:1px solid #bcbcb5; background:#fff; color:#30332f; font-family:Arial, sans-serif; }
.deed-calculator .deed-title { margin:0; padding:15px 22px; border-bottom:1px solid #bcbcb5; background:#eeeee8; font-family:Georgia, 'Times New Roman', serif; font-size:1.3rem; font-weight:normal; }
.calculator-back { display:inline-block; margin-bottom:16px; color:var(--muted); font-size:.85rem; }
.calculator-back:hover { text-decoration:underline; }
.calculator-list { margin:0; padding:0; list-style:none; border:1px solid #bcbcb5; background:#fff; }
.calculator-list a { display:flex; justify-content:space-between; gap:16px; padding:22px; }
.calculator-list h2 { margin:6px 0 4px; color:var(--navy); font-size:1.15rem; }
.calculator-list p { margin:0 0 13px; color:var(--muted); font-size:.85rem; }
.calculator-list strong { color:var(--blue); font-size:.8rem; }
.calculator-list a:hover { background:#eeeee8; }
.deed-form { padding:24px 22px; }
.deed-form label { display:block; margin-bottom:8px; font-size:.9rem; font-weight:bold; }
.deed-input-row { display:flex; gap:10px; }
.deed-input-row input { width:100%; min-width:0; height:44px; padding:9px 12px; border:1px solid #a5a79f; border-radius:2px; background:#fff; font-size:1rem; }
.deed-input-row button { padding:0 24px; border:1px solid #354637; border-radius:2px; background:#465b48; color:#fff; font-weight:bold; }
.deed-input-row button:hover { background:#354637; }
.deed-input-row input:focus-visible, .deed-input-row button:focus-visible { outline:2px solid #465b48; outline-offset:3px; }
.deed-form small { display:block; margin-top:7px; color:#686b64; font-size:.78rem; }
.deed-error { margin:10px 0 0; color:#a32720; font-size:.85rem; }
.deed-results { width:calc(100% - 44px); margin:0 22px; border-collapse:collapse; font-size:.9rem; }
.deed-results th, .deed-results td { padding:14px 10px; border-top:1px solid #d8d9d2; }
.deed-results th { text-align:left; font-weight:normal; }
.deed-results th span { color:#686b64; }
.deed-results td { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.deed-total { background:#f0f0ea; }
.deed-total th, .deed-total td { font-weight:bold; border-bottom:1px solid #d8d9d2; }
.deed-note { margin:18px 22px 22px; color:#686b64; font-size:.78rem; line-height:1.6; }
@media (max-width:480px) {
    .deed-calculator .deed-title { padding:14px; }
    .deed-form { padding:20px 14px; }
    .deed-input-row { flex-direction:column; }
    .deed-input-row button { min-height:44px; }
    .deed-results { width:calc(100% - 28px); margin:0 14px; font-size:.8rem; }
    .deed-results th, .deed-results td { padding:12px 6px; }
    .deed-note { margin:16px 14px; }
}
@media (max-width:900px) { .calculator-layout { grid-template-columns:minmax(0,1fr) minmax(190px, .7fr); } .calculator-side-left { grid-column:2; grid-row:1; } .calculator-side-right { grid-column:1 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .calculator-heading h1 { font-size:1.65rem; } .calculator-layout { display:flex; flex-direction:column; } .calculator-side,.calculator-side-right { width:100%; display:grid; grid-template-columns:1fr; } .calculator-legal { align-items:flex-start; } }
.tool-detail-hero { min-height:170px; display:flex; align-items:center; justify-content:center; text-align:center; color:#fff; background:linear-gradient(110deg,rgba(9,25,51,.97),rgba(22,66,112,.9)), radial-gradient(circle at 80% 10%,#3779ad,#0b1b34); }
.tool-detail-hero > div { width:min(900px,calc(100% - 32px)); padding:28px 0 32px; }
.tool-detail-hero span { color:#c3dcf3; font-size:.72rem; font-weight:800; letter-spacing:.15em; }
.tool-detail-hero h1 { margin:8px 0 8px; color:#fff; font-size:2.55rem; line-height:1.08; letter-spacing:-.04em; }
.tool-detail-hero p { margin:0 auto; max-width:700px; color:#d6e3f1; font-size:.98rem; }
.tool-detail-hero + .detail-shell { padding-top:42px; padding-bottom:46px; background:#f3f7fd; }
.tool-detail-hero + .detail-shell .calculator-page { max-width:1180px; }
.tool-detail-hero + .detail-shell .calculator-back { margin-bottom:18px; color:#52749c; font-weight:700; }
.tool-detail-hero + .detail-shell .calculator-layout { grid-template-columns:minmax(0,1.22fr) minmax(220px,.72fr); gap:25px; align-items:start; }
.tool-detail-hero + .detail-shell .calculator-side-left { grid-column:2; grid-row:1; }
.tool-detail-hero + .detail-shell .calculator-side-right { grid-column:2; grid-row:1; display:grid; grid-template-columns:1fr; }
.tool-detail-hero + .detail-shell .deed-calculator { grid-column:1; grid-row:1; border-radius:14px; border-top:6px solid #f47a1f; }
.tool-detail-hero + .detail-shell .calculator-legal { grid-column:1 / -1; }
.tool-detail-hero + .detail-shell .calculator-info { border-radius:14px; }
.tool-detail-hero + .detail-shell .calculator-side { gap:18px; }
.tool-detail-hero + .detail-shell .calculator-info { min-height:150px; }
.tool-detail-hero + .detail-shell .calculator-info h2 + p { margin-bottom:17px; }
.calculator-info-note { padding-top:14px; border-top:1px solid var(--line); }
.deed-field-spaced { display:block; margin-top:18px; }
.deed-unit { display:flex; align-items:center; padding:0 12px; border:1px solid #ccd8e5; border-left:0; border-radius:0 8px 8px 0; color:var(--muted); background:#f7f9fc; font-size:.82rem; }
.deed-input-row:has(.deed-unit) input { border-radius:8px 0 0 8px; }
.deed-input-row .deed-unit + * { border-radius:8px; }
.deed-wide-button { width:100%; min-height:44px; margin-top:20px; border:0; border-radius:8px; background:#15558e; color:#fff; font-weight:800; }
.deed-select { width:100%; height:44px; padding:0 12px; border:1px solid #ccd8e5; border-radius:8px; background:#fff; color:var(--text); }
.construction-result { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:0 22px; padding:18px 0; border-top:1px solid #e6ecf2; border-bottom:1px solid #e6ecf2; color:var(--muted); font-size:.85rem; }
.construction-result strong { color:var(--navy); font-size:1.3rem; white-space:nowrap; }
.conversion-results { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:0 22px; padding:18px 0; border-top:1px solid #e6ecf2; border-bottom:1px solid #e6ecf2; }
.conversion-results div { padding:11px 10px; border:1px solid #e1e9f1; border-radius:8px; background:#f7fafd; }
.conversion-results span,.conversion-results strong { display:block; }
.conversion-results span { color:var(--muted); font-size:.72rem; }
.conversion-results strong { margin-top:5px; color:var(--navy); font-size:.9rem; }
@media (max-width:600px) { .conversion-results { grid-template-columns:1fr; } }
.pdf-button { display:block; width:calc(100% - 44px); min-height:40px; margin:18px 22px 0; border:1px solid #c3d4e5; border-radius:8px; background:#edf4fb; color:#15558e; font-size:.82rem; font-weight:800; cursor:pointer; }
.pdf-button:hover { background:#e1edf8; }
@media print {
    @page { size:A4; margin:18mm; }
    body { background:#fff !important; }
    .app-header, .app-footer, .tool-detail-hero, .calculator-back, .calculator-side, .calculator-legal, .deed-form, .pdf-button, .legal-popup { display:none !important; }
    .main, .tool-detail-hero + .detail-shell, .tool-detail-hero + .detail-shell .calculator-page { padding:0 !important; margin:0 !important; width:100% !important; max-width:none !important; }
    .tool-detail-hero + .detail-shell .calculator-layout { display:block !important; }
    .tool-detail-hero + .detail-shell .deed-calculator { border:1px solid #ccd6e2 !important; box-shadow:none !important; }
    .deed-title { background:#f1f5f9 !important; }
    .deed-note { margin-bottom:0 !important; }
    .construction-result { margin-bottom:20px; }
}
.tool-detail-hero + .detail-shell .calculator-example { min-height:185px; }
@media (max-width:700px) { .tool-detail-hero { min-height:150px; } .tool-detail-hero > div { padding:23px 0; } .tool-detail-hero h1 { font-size:2rem; } .tool-detail-hero p { font-size:.86rem; } .tool-detail-hero + .detail-shell { padding-top:25px; } .tool-detail-hero + .detail-shell .calculator-layout { display:flex; flex-direction:column; } .tool-detail-hero + .detail-shell .deed-calculator,.tool-detail-hero + .detail-shell .calculator-side,.tool-detail-hero + .detail-shell .calculator-legal { width:100%; } }
.tools-hero { margin:0; min-height:145px; color:#fff; background:linear-gradient(110deg,rgba(9,25,51,.97),rgba(22,66,112,.9)), radial-gradient(circle at 80% 10%,#3779ad,#0b1b34); position:relative; overflow:hidden; }
.tools-hero::after { content:""; position:absolute; inset:0; opacity:.1; background-image:linear-gradient(120deg,transparent 0 45%,#fff 45.2% 46%,transparent 46.2% 100%),linear-gradient(90deg,transparent 0 70%,#fff 70.2% 70.5%,transparent 70.7%); background-size:420px 100%,260px 100%; }
.tools-hero-inner { position:relative; z-index:1; width:min(1120px,calc(100% - 32px)); margin:auto; padding:28px 0 25px; }
.tools-hero-inner > span { color:#9fc7ee; font-size:.75rem; font-weight:800; letter-spacing:.16em; }
.tools-hero h1 { margin:9px 0 7px; color:#fff; font-size:3.3rem; line-height:1.05; letter-spacing:-.04em; }
.tools-hero p { margin:0; color:#d6e3f1; font-size:1.08rem; }
.tools-content { padding-top:44px; }
.tools-section-heading { margin-bottom:23px; }
.tools-section-heading > span { color:#3c6c9f; font-size:.7rem; font-weight:800; letter-spacing:.14em; }
.tools-section-heading h2 { margin:5px 0 0; color:var(--navy); font-size:1.45rem; letter-spacing:-.02em; }
.calculator-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; }
.tool-card { min-height:345px; display:flex; flex-direction:column; padding:27px; border:1px solid #dce4ed; border-radius:11px; background:#fff; box-shadow:0 5px 16px rgba(15,23,42,.025); }
.tool-card-active { transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.tool-card-active:hover { transform:translateY(-3px); border-color:#9ab8d7; box-shadow:0 14px 28px rgba(30,64,100,.12); }
.tool-card-muted { opacity:.75; }
.tool-card-top { display:flex; justify-content:space-between; align-items:start; }
.tool-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:10px; color:#16558f; background:#edf3f9; font-size:1.45rem; font-weight:800; }
.tool-card-top b { padding:4px 10px; border:1px solid #a8efce; border-radius:999px; color:#07834f; background:#f0fff7; font-size:.68rem; }
.tool-card h3 { margin:22px 0 9px; color:var(--navy); font-size:1.08rem; line-height:1.25; }
.tool-card p { margin:0; color:#63738a; font-size:.87rem; line-height:1.6; }
.tool-button { display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding:11px 14px; border:1px solid #d4deea; border-radius:9px; color:var(--navy); font-size:.84rem; font-weight:800; }
.tool-card-active .tool-button { border-color:#c2d4e6; }
.tool-button i { font-style:normal; font-size:1.2rem; font-weight:normal; }
@media (max-width:1000px) { .calculator-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .tools-hero { min-height:135px; } .tools-hero-inner { padding:23px 0 20px; } .tools-hero h1 { font-size:2.35rem; } .tools-hero p { font-size:.9rem; } .tools-content { padding-top:30px; } .calculator-grid { grid-template-columns:1fr; } .tool-card { min-height:290px; } }
.calculator-page:has(.calculator-layout) { max-width:1120px; }
.calculator-page:has(.calculator-layout) .calculator-heading { padding:22px 0 4px; }
.calculator-page:has(.calculator-layout) .calculator-heading h1 { font-size:2.25rem; }
.calculator-page:has(.calculator-layout) .deed-calculator { overflow:hidden; border:1px solid #dce4ed; border-radius:12px; background:#fff; box-shadow:0 10px 28px rgba(15,23,42,.07); font-family:inherit; color:var(--text); }
.calculator-page:has(.calculator-layout) .deed-title { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid #e2e9f1; background:#fff; font-family:inherit; }
.calculator-page:has(.calculator-layout) .deed-title h2 { margin:0; color:var(--navy); font-size:1rem; }
.calculator-page:has(.calculator-layout) .deed-title span { color:#3c6c9f; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.calculator-page:has(.calculator-layout) .deed-form { padding:25px 22px 17px; }
.calculator-page:has(.calculator-layout) .deed-input-row input { border-color:#ccd8e5; border-radius:8px; }
.calculator-page:has(.calculator-layout) .deed-input-row button { border:0; border-radius:8px; background:#15558e; }
.calculator-page:has(.calculator-layout) .deed-results { width:calc(100% - 44px); }
.calculator-page:has(.calculator-layout) .deed-results th,.calculator-page:has(.calculator-layout) .deed-results td { border-color:#e6ecf2; }
.calculator-page:has(.calculator-layout) .deed-total { background:#f1f6fb; }
.calculator-page:has(.calculator-layout) .deed-note { margin-top:16px; }
@media (max-width:600px) { .calculator-page:has(.calculator-layout) .calculator-heading h1 { font-size:1.75rem; } }
.review-rating-field span em { color:var(--muted); font-style:normal; }
body.review-modal-open { overflow:hidden; }
.review-form { display:grid; grid-template-columns:150px 1fr auto; gap:12px; align-items:end; margin:18px 0; padding:16px; border:1px solid var(--line); border-radius:8px; background:#f8fbff; }
.review-field { display:grid; gap:6px; }
.review-comment { min-width:0; }
.review-field span { font-size:.82rem; font-weight:800; color:var(--navy); }
.review-field select,.review-field input,.review-field textarea { width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 10px; background:#fff; }
.review-rating-field output { display:inline-grid; place-items:center; min-width:34px; padding:2px 7px; border-radius:999px; background:#e8f0ff; color:var(--blue); }
.review-rating-field input[type=range] { padding:0; accent-color:var(--blue); cursor:pointer; }
.review-field select:focus,.review-field input:focus,.review-field textarea:focus { border-color:rgba(37,99,235,.62); outline:none; box-shadow:0 0 0 3px rgba(37,99,235,.11); }
.review-field textarea { resize:vertical; }
.review-submit { min-height:42px; padding:0 15px; border:1px solid var(--navy); border-radius:8px; background:var(--navy); color:#fff; font-weight:800; }
.review-submit:disabled { cursor:wait; opacity:.68; }
.review-anonymous { grid-column:1 / -1; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.85rem; }
.review-anonymous input { width:16px; height:16px; accent-color:var(--blue); }
.review-delete-button { min-height:32px; padding:0 10px; border:1px solid rgba(239,68,68,.3); border-radius:8px; background:#fff7f7; color:#b91c1c; font-weight:800; }
.review-login-note { padding:14px; border-radius:8px; background:#eff6ff; color:var(--muted); }
.review-login-note a { color:var(--blue); font-weight:800; }
.reviews-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.reviews-list > .empty-state { grid-column:1 / -1; }
.reviews-list > .review-item { min-width:0; }
.reviews-list .review-item-head { flex-wrap:wrap; }
.reviews-list .review-item-head strong { overflow-wrap:anywhere; }
@media (max-width:560px) { .reviews-list { grid-template-columns:minmax(0,1fr); } }
.review-item { padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.updates-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin:22px 0 4px; padding-top:18px; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; }
.updates-pagination a { padding:8px 12px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--navy); font-weight:800; }
.updates-pagination a:hover { border-color:#9bb3cc; background:#f4f8fc; }
.district-pagination { flex-wrap:wrap; }
.district-pagination .pagination-edge { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:40px; height:40px; padding:0; border:1px solid var(--line); border-radius:7px; font-size:1.25rem; }
.district-pagination .pagination-edge[aria-disabled="true"] { opacity:.4; }
.district-page-count { margin-top:16px; color:var(--muted); font-size:.82rem; text-align:center; }
.review-item:hover { border-color:rgba(37,99,235,.3); box-shadow:0 8px 20px rgba(15,23,42,.05); }
.review-item-head { display:flex; justify-content:space-between; gap:12px; }
.review-item-head strong { color:var(--navy); }
.review-item-head span { color:var(--amber); font-size:.85rem; }
.review-item p { margin:8px 0 0; color:var(--muted); white-space:pre-line; }
.review-message { grid-column:1 / -1; margin:0; font-size:.85rem; font-weight:700; }
.review-message.is-success { color:#047857; }
.review-message.is-error { color:#b91c1c; }
@media (max-width:760px){.review-form{grid-template-columns:1fr}.review-submit{width:100%}.review-item-head{display:grid;gap:4px}.reviews-section{padding:16px}}
@media (max-width:560px){.reviews-section .section-heading{align-items:flex-start}.review-summary{justify-items:start}.review-action-row{display:grid;gap:6px}.review-open-button{width:100%}}

/* TERCİH100 5 kriterli puan dökümü */
.criteria-section { margin-top: 24px; padding: 24px; }
.criteria-section .section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; max-width: 760px; }
.criteria-breakdown { display: grid; gap: 14px; }
.criteria-row { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.criteria-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.criteria-row-head strong { color: var(--navy); font-size: 0.95rem; }
.criteria-weight { flex: none; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.criteria-row-bar { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.criteria-value { color: var(--navy); font-size: 1.05rem; font-weight: 900; text-align: right; }
.criteria-row p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.criteria-row p small { color: var(--blue); font-weight: 700; }
.criteria-note { margin: 14px 0 0; font-size: 0.85rem; }
.criteria-note a { color: var(--blue); font-weight: 800; }
@media (max-width: 600px) {
    .criteria-section { padding: 18px; }
    .criteria-row-head { flex-direction: column; gap: 2px; }
}
.methodology-formula { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; color: var(--navy); font-size: 0.9rem; }
.methodology-criteria { display: grid; gap: 8px; margin: 12px 0; padding-left: 20px; color: var(--muted); }
.methodology-criteria strong { color: var(--navy); }

/* Bölüm sayfası: aynı bölümün diğer üniversitelerdeki sırası */
.neighborhood-rivals.program-standing {
    grid-template-columns: minmax(0, 1fr);
}

.program-standing-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.program-standing-summary strong {
    color: var(--navy);
}

.program-standing-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-standing-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.program-standing-list em {
    min-width: 34px;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 900;
}

.program-standing-list small {
    color: var(--muted);
    font-weight: 700;
}

.program-standing-list .is-current a {
    border-color: var(--blue);
    background: #eef6ff;
}

.program-standing-gap {
    padding-left: 12px;
    color: var(--muted);
    line-height: 1;
}

/* Lisans / önlisans */
.level-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff4e5;
    color: #9a5b00;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

h1 .level-badge {
    font-size: 0.85rem;
}

.level-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.level-filter a {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 850;
}

.level-filter a:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.level-filter a.active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

/* Sayfa yolu (breadcrumb) */
.breadcrumb {
    margin-bottom: 10px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
    color: #9aa7b6;
}

.breadcrumb a {
    color: var(--blue);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    max-width: 42ch;
    overflow: hidden;
    color: var(--navy);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .breadcrumb ol {
        font-size: 0.76rem;
    }

    .breadcrumb [aria-current="page"] {
        max-width: 24ch;
    }
}
