:root {
    color-scheme: light;
    --ink: #192a23;
    --forest: #163e30;
    --green: #286346;
    --muted: #58675e;
    --paper: #f8f8f1;
    --line: #dee4d9;
    --white: #fffefa;
    --sage: #e9f0e4;
    --gold: #b37623;
    --radius: 14px;
    font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; font-size: 15px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--forest); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #689071; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.public-header .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; justify-self: start; }
.wordmark strong { font-size: 20px; letter-spacing: .05em; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: var(--forest); color: #e4ebc7; }
.brand-mark i { width: 14px; height: 20px; border-inline: 2px solid; position: relative; border-radius: 45% 45% 2px 2px; transform: perspective(20px) rotateX(19deg); }
.brand-mark i::after { content: ""; position: absolute; top: 5px; bottom: 1px; left: 50%; border-left: 1px dashed; }
.header-inner nav { align-self: stretch; display: flex; align-items: stretch; gap: 36px; }
.header-inner nav a { display: flex; align-items: center; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.header-inner nav a[aria-current], .header-inner nav a:hover { color: var(--forest); border-color: var(--green); }
.city-link { justify-self: end; text-decoration: none; color: var(--forest); padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; font-weight: 600; font-size: 13px; }
.school-join-link { justify-self: end; font-size: 14px; }
.pin { position: relative; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 55% 55% 55% 0; transform: rotate(-45deg); display: inline-block; vertical-align: .02em; flex: 0 0 10px; }
.pin::after { content: ""; position: absolute; top: 2px; left: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; margin-top: 34px; border-radius: 22px; overflow: hidden; background: #e8eddb; }
.hero-copy { padding: clamp(28px, 4.2vw, 62px); align-self: center; }
.location { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .08em; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 4.2vw, 65px); line-height: 1.12; font-weight: 800; letter-spacing: -.06em; color: #17372a; }
.hero h1 span { color: #62864d; }
.hero-description { color: #4b5e4f; margin-top: 18px; margin-bottom: 27px; font-size: 16px; }
.estimate-jump { display: inline-block; margin-top: 10px; font-size: 14px; }
.estimate-section {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
    scroll-margin-top: 12px;
}
.estimate-copy { align-content: center; display: grid; gap: 12px; padding: clamp(18px, 3.4vw, 42px); background: #edf1e5; }
.estimate-copy h2 { font-size: clamp(24px, 3.3vw, 38px); overflow-wrap: anywhere; }
.estimate-copy p { color: var(--muted); font-size: 13px; }
.estimate-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; padding: 8px 13px; border: 1px solid #bac9b7; border-radius: 9px; background: var(--white); color: var(--muted); }
.estimate-price strong { color: var(--forest); font-size: clamp(20px, 3vw, 32px); font-variant-numeric: tabular-nums; }
.estimate-request { align-self: center; padding: clamp(16px, 2.6vw, 27px); }
.estimate-request > .form-status { margin-bottom: 10px; }
.estimate-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.estimate-form > .field:first-of-type, .estimate-form > .estimate-consent, .estimate-form > .button { grid-column: 1 / -1; }
.estimate-consent { display: flex; align-items: start; gap: 6px; color: var(--muted); font-size: 13px; }
.estimate-consent input { margin: 3px 2px 0 0; accent-color: var(--forest); flex-shrink: 0; }
.hero-photo { position: relative; min-height: 220px; background: #9fa98e; }
.hero-photo img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 58% 55%; }
.hero-photo > span { position: absolute; right: 12px; bottom: 12px; color: #fff; background: #17362bd9; font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.search-form { width: min(100%, 480px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 5px; padding-left: 15px; border-radius: 10px; background: white; border: 1px solid var(--line); }
.search-form input { border: 0; width: 100%; min-width: 0; padding: 7px 1px; background: white; color: var(--ink); }
.magnifier { width: 14px; height: 14px; display: block; position: relative; border: 1.8px solid #61776a; border-radius: 50%; }
.magnifier::after { content: ""; position: absolute; width: 6px; height: 1.8px; bottom: -2px; right: -5px; background: #61776a; transform: rotate(45deg); }
.button { border: 1px solid var(--forest); border-radius: 8px; background: var(--forest); color: white; padding: 9px 18px; font-weight: 700; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; white-space: nowrap; }
.button:hover { color: white; background: var(--green); border-color: var(--green); }
.button:disabled { opacity: .65; cursor: wait; }
.button.secondary { color: var(--forest); background: var(--white); border-color: var(--line); }
.button.secondary:hover { background: var(--sage); }

.listing-hero { padding-block: 29px 12px; }
.listing-hero h1 { font-size: clamp(30px, 4vw, 47px); margin-bottom: 15px; }
.directory { padding-top: 35px; padding-bottom: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-heading h2 { font-size: 28px; }
.section-heading > span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.districts, .pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.districts a, .pagination a, .pagination span { text-decoration: none; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; }
.districts a:hover, .pagination a:hover { border-color: #91ad96; color: var(--forest); }
.districts a[aria-current], .pagination a[aria-current] { border-color: var(--forest); background: var(--forest); color: white; }
.districts small { font-size: 11px; opacity: .85; }
.pagination { margin-top: 20px; margin-bottom: 0; }
.school-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.school-card { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.school-card:hover { border-color: #9eb3a1; box-shadow: 0 4px 16px #19392b0b; }
.card-top, .card-bottom { display: flex; align-items: center; gap: 12px; }
.card-name { min-width: 0; }
.card-top h3 { font-size: 18px; overflow-wrap: anywhere; }
.card-top h3 a { color: var(--ink); text-decoration: none; }
.card-top h3 a:hover { text-decoration: underline; }
.card-top .card-name > span { color: var(--muted); font-size: 12px; }
.school-mark { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 auto; border-radius: 11px; background: var(--sage); color: var(--forest); font-size: 21px; font-weight: 700; }
.school-card:nth-child(3n + 2) .school-mark { background: #f0ebda; color: #725220; }
.school-card:nth-child(3n + 3) .school-mark { background: #e5eee9; color: #2a5547; }
.card-address { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: baseline; min-height: 22px; overflow-wrap: anywhere; }
.card-address .pin { align-self: flex-start; margin-top: 5px; }
.card-bottom { border-top: 1px solid var(--line); justify-content: space-between; margin-top: auto; padding-top: 12px; }
.card-price { min-width: 0; }
.card-price strong { font-size: 20px; color: var(--forest); white-space: nowrap; }
.card-price span, .card-link { color: var(--muted); font-size: 12px; }
.card-link, .text-link { color: var(--green); font-weight: 700; text-decoration: none; white-space: nowrap; }
.card-link:hover, .text-link:hover { text-decoration: underline; }
.card-link span { font-size: 14px; }
.card-school-photo { object-fit: cover; }
.card-school-actions, .claim-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.card-school-actions { justify-content: flex-end; }
.school-claim-link { display: inline-flex; align-items: center; border: 1px solid #b8cdb9; border-radius: 6px; padding: 2px 7px; color: var(--forest); background: #eef4e9; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.school-claim-link:hover { border-color: var(--green); background: #e4efe0; }
.detail-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.detail-hero-actions .detail-cta { margin-top: 0; }
.detail-hero-actions .school-claim-link { padding: 7px 10px; }
.school-phone-list p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.claim-page { padding-block: 24px 52px; max-width: 1060px; }
.claim-hero {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 210px;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 17px;
    background: linear-gradient(90deg, #12382deF 15%, #12382dd9 50%, #12382d33 100%),
        #163e30 url('/assets/chenzhou-ranking.webp') center 60% / cover no-repeat;
    color: #e5efe8;
}
.claim-hero h1 { color: #fffef7; font-size: clamp(33px, 5vw, 50px); letter-spacing: -.025em; line-height: 1.15; }
.claim-hero .claim-school-name { color: #f3d7a7; font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; overflow-wrap: anywhere; }
.claim-form { margin-top: 16px; }
.claim-form-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 15px; align-items: start; }
.claim-form-card {
    min-width: 0;
    padding: clamp(16px, 2.4vw, 26px);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 5px 18px #163e3008;
}
.claim-form-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 21px; }
.claim-form-card h2 small { border-radius: 5px; padding: 2px 7px; background: #edf2e9; color: var(--muted); font-size: 12px; font-weight: 600; }
.claim-form-card > .field-note { margin: 4px 0 15px; }
.claim-upload small { display: block; }
.claim-upload input { padding: 8px; border-style: dashed; background: #f8faf6; }
.claim-upload input::file-selector-button { margin-right: 8px; border: 0; border-radius: 5px; padding: 6px 10px; color: var(--forest); background: #e5eee1; font: inherit; cursor: pointer; }
.claim-upload input::file-selector-button:hover { background: #d8e8d5; }
.claim-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px 18px; flex-wrap: wrap; margin-top: 15px; }
.claim-error, .claim-receipt { margin-top: 15px; }
@media (max-width: 680px) {
    .claim-page { padding-top: 15px; }
    .claim-hero { min-height: 164px; padding: 20px 17px; border-radius: 13px; background-position: center, 58% center; }
    .claim-hero > p:last-child { font-size: 13px; }
    .claim-form-grid { grid-template-columns: 1fr; gap: 10px; }
    .claim-form-footer { justify-content: space-between; gap: 8px; }
}
.claim-review h3 { margin-block: 16px 8px; }
.claim-review-actions { margin-top: 15px; }
.claim-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.claim-images a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 100%; }
.claim-images img { width: 170px; height: 115px; object-fit: contain; background: var(--paper); }
.empty { color: var(--muted); border-radius: 9px; background: var(--paper); padding: 14px 16px; }
.empty a { margin-left: 8px; }

.detail-page, .admin-page { padding-block: 26px 60px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 17px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.detail-hero { border-radius: 19px; overflow: hidden; background: var(--forest); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.detail-intro { padding: clamp(22px, 4vw, 49px); align-self: center; }
.detail-hero h1 { font-size: clamp(29px, 4.2vw, 52px); color: white; letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-hero .location { color: #dcebcf; margin-bottom: 10px; }
.detail-address { color: #deebe3; margin-top: 10px; overflow-wrap: anywhere; }
.license-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.license-tags span { border: 1px solid #81a28b; color: #eff6ec; padding: 1px 9px; border-radius: 5px; font-weight: 600; font-size: 13px; }
.detail-cta { background: #ecf1da; border-color: #ecf1da; color: var(--forest); margin-top: 21px; }
.detail-cta:hover { background: white; border-color: white; color: var(--forest); }
.detail-photo { position: relative; min-height: 250px; }
.detail-photo img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 58% 59%; }
.detail-photo > span { position: absolute; right: 12px; bottom: 12px; color: #fff; background: #17362bd9; font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.detail-summary a { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 16px clamp(12px, 2vw, 25px); color: var(--forest); text-decoration: none; }
.detail-summary a + a { border-left: 1px solid var(--line); }
.detail-summary a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.detail-summary a > span { color: var(--muted); font-size: 13px; }
.detail-summary strong { font-size: clamp(16px, 2vw, 23px); line-height: 1.3; overflow-wrap: anywhere; }
.detail-summary small, .starting-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.detail-summary .detail-summary-apply { justify-items: start; background: #f2f6ee; }
.detail-summary .detail-apply-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--forest);
    color: white;
    font-size: 14px;
}
.detail-summary-apply:hover .detail-apply-button, .detail-summary-apply:focus-visible .detail-apply-button {
    background: var(--green);
    text-decoration: none;
}
.detail-nav { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px 22px; padding: 0 12px; margin-bottom: 14px; min-height: 51px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.detail-nav a { display: grid; place-items: center; padding-inline: 9px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.detail-nav a:hover, .detail-nav a:focus-visible { color: var(--forest); box-shadow: inset 0 -2px var(--green); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 2.6vw, 30px); margin-bottom: 16px; scroll-margin-top: 12px; min-width: 0; }
.detail-grid .panel, #review-editor, #review-form, #review-login { scroll-margin-top: 64px; }
.panel h2 { font-size: 23px; margin-bottom: 12px; }
.panel .section-heading h2 { margin-bottom: 0; }
.lead-panel { border-top: 3px solid var(--green); }
.lead-panel h2 { margin-bottom: 4px; }
.lead-school { color: var(--muted); font-size: 14px; }
.lead-panel .stack { margin-top: 17px; }
.lead-panel .stack > .button { width: 100%; }
.muted, .source-note, .field-note { color: var(--muted); }
.source-note, .field-note { font-size: 13px; }
.source-note { margin-top: 13px; }
.phone-link { font-size: 23px; font-weight: 700; }
.starting-price { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--muted); padding: 13px 15px; background: var(--paper); border-radius: 9px; }
.starting-price > div { display: grid; gap: 1px; }
.starting-price strong, .price-value { color: var(--forest); font-weight: 700; }
.starting-price strong { font-size: 24px; }
.school-prices th:first-child { border-radius: 6px 0 0 0; }
.school-prices th:last-child { border-radius: 0 6px 0 0; }
.school-prices td { vertical-align: middle; }
.school-prices .price-value { white-space: nowrap; }
.school-facts { margin: 0 0 12px; }
.school-facts > div { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(0, 3fr); gap: 8px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.school-facts dt { color: var(--muted); }
.school-facts dd { margin: 0; overflow-wrap: anywhere; }
.detail-related { margin-top: 17px; }
.detail-related .section-heading a { font-size: 13px; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.related-card:hover { border-color: #91ad96; }
.related-card strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.related-card div span { display: block; color: var(--muted); font-size: 12px; }
.related-card > span { flex-shrink: 0; color: var(--green); font-weight: 700; }
.mobile-main-nav, .mobile-review-link { display: none; }
.review-section-actions { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
th { background: var(--sage); font-weight: 700; white-space: nowrap; }
td small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.review { border-bottom: 1px solid var(--line); padding-block: 14px; }
.review time { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 12px; }
.review p { overflow-wrap: anywhere; margin-top: 5px; }
.review form { margin-top: 8px; }
.stars { color: var(--gold); letter-spacing: .08em; }
.stack { display: grid; gap: 13px; }
.stack > .button { justify-self: start; }
#review-editor { margin-top: 22px; }
.review-editor-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; margin-bottom: 12px; }
.review-visitor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.review-visitor-state { border-radius: 6px; padding: 2px 8px; color: var(--muted); background: var(--paper); font-size: 12px; font-weight: 600; }
.detail-page[data-signed-in="yes"] .review-visitor-state { color: var(--forest); background: var(--sage); }
#visitor-logout button { padding: 4px 2px; border: 0; background: transparent; font-size: 13px; }
#visitor-logout .form-status { font-size: 13px; }
.review-login { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8f2; }
.review-login h4 { margin: 0; color: var(--forest); font-size: 16px; }
.review-login > p { margin: 3px 0 12px; font-size: 14px; }
.review-login-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.review-challenge { display: flex; align-items: end; gap: 8px; }
.review-challenge .field { flex: 1; }
.review-challenge .button { padding-inline: 10px; font-size: 13px; }
.field { display: block; font-weight: 600; color: var(--ink); min-width: 0; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { display: block; width: 100%; margin-top: 4px; border: 1px solid #cbd6cb; border-radius: 8px; padding: 9px 10px; background: white; color: var(--ink); }
textarea { resize: vertical; }
.rating { border: 0; padding: 0; margin: 0; }
.rating legend { padding: 0; font-weight: 600; }
.rating-options { display: inline-flex; gap: 2px; }
.rating-options label { display: inline-grid; place-items: center; font-size: 27px; min-height: 38px; width: 38px; border-radius: 5px; color: #7c897f; cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options label:has(input:checked), .rating-options label:has(~ label input:checked), .rating-options label:hover { color: var(--gold); }
.rating-options label:focus-within { outline: 2px solid var(--green); }
.form-status, .notice { padding: 9px 12px; border-radius: 8px; background: var(--sage); color: var(--forest); }
.form-status.error { color: #852f28; background: #f7e9e3; }
.challenge { color: var(--forest); padding-left: 4px; }
.review-photo-upload { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.review-photo-upload input { display: block; max-width: 100%; margin-top: 7px; color: var(--muted); font-size: 13px; }
.review-photo-upload input::file-selector-button {
    margin-right: 8px;
    padding: 7px 10px;
    border: 1px solid #bbcfbe;
    border-radius: 6px;
    background: var(--white);
    color: var(--forest);
    font-weight: 700;
    cursor: pointer;
}
#review-photo-feedback { margin-top: 6px; color: #852f28; }
.review-photos { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.review-photos a { display: block; border-radius: 8px; overflow: hidden; background: var(--sage); cursor: zoom-in; }
.review-photos img { width: clamp(68px, 14vw, 100px); height: auto; aspect-ratio: 1; object-fit: cover; }
.review-photo-preview { position: relative; }
.review-photo-remove, .review-photo-close {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: #182922ee;
    line-height: 1;
}
.review-photo-remove { position: absolute; inset: 4px 4px auto auto; width: 28px; height: 28px; font-size: 20px; }
#review-photo-viewer { max-width: min(92vw, 1150px); max-height: 92dvh; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #162720; }
#review-photo-viewer::backdrop { background: #0e1914e8; }
#review-photo-viewer img { max-width: 100%; max-height: 90dvh; object-fit: contain; }
.review-photo-close { position: absolute; inset: 7px 7px auto auto; width: 42px; height: 42px; font-size: 26px; }

.admin-page > h1 { margin-bottom: 16px; }
.admin-login, .admin-editor { max-width: 520px; }
.admin-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-nav nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav nav a { padding: 7px 10px; text-decoration: none; border-radius: 8px; background: var(--white); }
.admin-nav nav a[aria-current] { background: var(--forest); color: white; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 8px; }
.inline-form > label { flex: 0 1 360px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green); text-decoration: underline; }
.school-admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.school-admin-tabs a { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); font-weight: 600; text-decoration: none; }
.school-admin-tabs a[aria-current] { border-color: var(--forest); background: var(--forest); color: white; }
.school-admin-tabs a span { font-size: 12px; opacity: .85; }
.school-filter { display: grid; grid-template-columns: minmax(180px, 1.65fr) minmax(135px, 1fr) auto auto; align-items: end; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.school-filter.review-filter { grid-template-columns: minmax(0, 380px) auto auto; justify-content: start; }
.school-results { margin: 13px 0 8px; }
.school-admin-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.school-admin-table th, .school-admin-table td { padding: 12px; vertical-align: middle; }
.school-admin-table tr:last-child td { border-bottom: 0; }
.school-admin-table tbody tr:nth-child(even) { background: #f8faf5; }
.school-admin-name a { color: var(--ink); font-weight: 700; text-decoration: none; }
.school-admin-name a:hover { text-decoration: underline; }
.school-admin-price { font-weight: 600; }
.school-row-actions, .school-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.school-row-actions { white-space: nowrap; font-size: 14px; }
.school-delete-link { color: #8d3830; text-decoration: none; font-weight: 600; }
.school-delete-link:hover { color: #732921; text-decoration: underline; }
.button.danger { background: #8d3830; border-color: #8d3830; }
.button.danger:hover { background: #732921; border-color: #732921; }
.school-delete-panel { max-width: 680px; }
.school-delete-panel .school-form-actions { margin-top: 16px; }
.school-edit-form { display: grid; gap: 15px; margin-top: 15px; }
.school-form-section { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 15px 15px; }
.school-form-section legend { padding-inline: 6px; font-weight: 700; color: var(--forest); }
.school-join-page { max-width: 900px; padding-block: 24px 52px; }
.school-join-intro { border-radius: var(--radius); padding: clamp(20px, 4vw, 38px); background: var(--forest); color: #e8efe6; }
.school-join-intro h1 { margin-bottom: 8px; font-size: clamp(27px, 5vw, 43px); color: white; }
.school-join-panel { margin-top: 16px; }
.school-join-panel > .form-status { margin-top: 12px; }
.school-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.school-field-wide { grid-column: 1 / -1; }
.school-plan-list { display: grid; gap: 10px; }
.school-plan-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 10px; border-radius: 8px; background: var(--paper); }
.remove-school-plan { margin: 8px 2px; color: #8d3830; }
.add-school-plan { margin-top: 10px; }
.school-admin .form-status { margin-bottom: 10px; }
.reset-form, .notice, .admin-editor { margin-block: 12px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { padding-block: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.footer-inner > a:last-child { margin-left: auto; }
.footer-inner .wordmark strong { font-size: 16px; }
.footer-inner .brand-mark { width: 28px; height: 28px; }

@media (max-width: 900px) {
    .wrap { width: calc(100% - 44px); }
    .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-login-fields { grid-template-columns: 1fr; }
    .hero { min-height: 315px; }
    .hero-copy { padding: 27px; }
}
@media (min-width: 641px) and (min-height: 720px) {
    .lead-panel { position: sticky; top: 64px; }
}
@media (max-width: 640px) {
    .estimate-section { grid-template-columns: 1fr; margin-top: 13px; border-radius: 13px; }
    .estimate-form { grid-template-columns: 1fr; gap: 8px; }
    .estimate-copy { gap: 8px; }
    .wrap { width: calc(100% - 28px); }
    .header-inner { grid-template-columns: 1fr auto; min-height: 59px; gap: 8px; }
    .wordmark { gap: 7px; }
    .wordmark strong { font-size: 17px; }
    .brand-mark { width: 30px; height: 30px; }
    .header-inner nav { gap: 12px; font-size: 13px; }
    .city-link { display: none; }
    .public-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-top: 7px; }
    .public-header .wordmark { grid-row: 1; grid-column: 1; }
    .public-header .school-join-link { grid-row: 1; grid-column: 2; min-height: 35px; padding: 5px 11px; font-size: 13px; }
    .public-header .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-end; gap: 22px; min-height: 34px; }
    .hero { grid-template-columns: 1fr; margin-top: 16px; border-radius: 15px; }
    .hero-copy { padding: 23px 18px; }
    .hero h1 { font-size: clamp(35px, 9vw, 46px); }
    .hero-description { margin: 12px 0 17px; font-size: 14px; }
    .hero-photo { min-height: 170px; }
    .directory { padding-top: 24px; padding-bottom: 42px; }
    .section-heading h2 { font-size: 23px; }
    .districts { gap: 5px; margin-bottom: 15px; }
    .districts a { padding: 5px 8px; font-size: 13px; }
    .school-grid, .detail-grid { grid-template-columns: 1fr; gap: 10px; }
    .school-card { padding: 15px; gap: 10px; }
    .detail-page { padding-top: 15px; }
    .detail-hero { grid-template-columns: 1fr; border-radius: 14px; }
    .detail-photo { min-height: 133px; }
    .detail-photo img { object-position: 55% 66%; }
    .detail-cta { display: none; }
    .detail-address { font-size: 13px; }
    .detail-summary a { padding: 10px 8px; }
    .detail-summary a > span { font-size: 11px; }
    .detail-summary strong { font-size: 13px; }
    .detail-summary small { font-size: 11px; }
    .detail-summary .detail-apply-button { min-height: 31px; padding-inline: 4px; font-size: 12px; text-align: center; }
    .detail-apply-button span { display: none; }
    .detail-nav { justify-content: space-around; gap: 0; padding: 0; font-size: 13px; min-height: 43px; }
    .detail-nav a { padding-inline: 3px; }
    .detail-grid .panel, #review-editor, #review-form, #review-login { scroll-margin-top: 54px; }
    .school-prices th, .school-prices td { padding-inline: 6px; font-size: 13px; }
    .public-page { --mobile-nav-height: 57px; padding-bottom: calc(var(--mobile-nav-height) + 1px + env(safe-area-inset-bottom, 0px)); }
    .mobile-main-nav {
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        z-index: 6;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 -3px 16px #163e300d;
    }
    .mobile-main-nav a {
        display: grid;
        place-content: center;
        justify-items: center;
        min-height: var(--mobile-nav-height);
        gap: 3px;
        padding: 5px 3px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
    }
    .mobile-main-nav a[aria-current] { color: var(--forest); background: #edf3e9; font-weight: 700; }
    .mobile-main-nav a:focus-visible { outline-offset: -3px; }
    .mobile-nav-icon { position: relative; display: block; width: 20px; height: 20px; }
    .mobile-nav-icon-home::before { content: ""; position: absolute; left: 4px; top: 3px; width: 12px; height: 12px; border-top: 1.5px solid; border-left: 1.5px solid; transform: rotate(45deg); }
    .mobile-nav-icon-home::after { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 9px; border: 1.5px solid; border-top: 0; border-radius: 0 0 2px 2px; }
    .mobile-nav-icon-signup::before { content: ""; position: absolute; inset: 2px 4px; border: 1.5px solid; border-radius: 3px; }
    .mobile-nav-icon-signup::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 1.5px; background: currentColor; box-shadow: 0 4px currentColor; }
    .mobile-nav-icon-ranking { background: linear-gradient(currentColor, currentColor) 2px bottom / 4px 8px no-repeat, linear-gradient(currentColor, currentColor) 8px bottom / 4px 15px no-repeat, linear-gradient(currentColor, currentColor) 14px bottom / 4px 11px no-repeat; }
    .mobile-review-link { display: inline; font-size: 13px; }
    .panel h2 { font-size: 21px; }
    .school-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
    .school-filter.review-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-filter > .field { grid-column: 1 / -1; }
    .school-admin-table { border: 0; overflow: visible; }
    .school-admin-table table, .school-admin-table tbody { display: block; }
    .school-admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .school-admin-table tbody tr { display: grid; padding: 10px 12px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 9px; }
    .school-admin-table tbody tr:nth-child(even) { background: var(--white); }
    .school-admin-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; overflow-wrap: anywhere; }
    .school-admin-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
    .school-admin-table td.school-admin-name { display: block; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
    .school-row-actions { gap: 15px; padding-top: 5px; }
    .school-edit-grid, .school-plan-row { grid-template-columns: minmax(0, 1fr); }
    .school-plan-row { gap: 7px; }
    .remove-school-plan { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
