@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&family=Noto+Serif+SC:wght@500;700;800&display=swap");

:root {
    --bg: #f6f1e8;
    --bg-strong: #efe8db;
    --surface: rgba(255, 252, 247, 0.84);
    --surface-solid: #fffdf9;
    --surface-tint: #f9f3ea;
    --surface-strong: rgba(255, 249, 240, 0.94);
    --text: #1e2430;
    --muted: #6d7688;
    --muted-soft: #8b93a5;
    --line: rgba(30, 36, 48, 0.1);
    --line-strong: rgba(26, 125, 120, 0.26);
    --ink: #121926;
    --blue: #2f5bea;
    --blue-deep: #213c99;
    --teal: #147d74;
    --gold: #c88b28;
    --coral: #f27d5f;
    --danger: #d85d57;
    --shadow-sm: 0 20px 44px rgba(31, 40, 58, 0.08);
    --shadow-lg: 0 34px 90px rgba(31, 40, 58, 0.13);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    --radius-xl: 36px;
    --radius-lg: 26px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora", "Noto Sans SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, rgba(47, 91, 234, 0.16), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(20, 125, 116, 0.12), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(242, 125, 95, 0.12), transparent 36%),
        linear-gradient(180deg, #fffdf9 0%, var(--bg) 48%, #efe6d9 100%);
}

body[data-page="news"] {
    background:
        radial-gradient(circle at 0% 0%, rgba(200, 139, 40, 0.16), transparent 24%),
        radial-gradient(circle at 100% 14%, rgba(242, 125, 95, 0.14), transparent 24%),
        linear-gradient(180deg, #fff9f1 0%, #f6ecdf 52%, #efe1d0 100%);
}

body[data-page="schools"] {
    background:
        linear-gradient(rgba(47, 91, 234, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 91, 234, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 100% 0%, rgba(20, 125, 116, 0.12), transparent 26%),
        linear-gradient(180deg, #f7faf7 0%, #edf2ec 50%, #e3ece4 100%);
    background-size: 32px 32px, 32px 32px, auto, auto;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 32px;
    right: 32px;
    width: min(34vw, 420px);
    height: min(34vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 91, 234, 0.14), rgba(47, 91, 234, 0));
    filter: blur(14px);
}

body::after {
    left: 28px;
    bottom: 18px;
    width: min(36vw, 460px);
    height: min(24vw, 280px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 125, 95, 0.12), rgba(242, 125, 95, 0));
    filter: blur(18px);
}

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

button,
select {
    cursor: pointer;
}

a {
    color: inherit;
}

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

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1640px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 80px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    margin-bottom: 26px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 243, 0.78));
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-badge {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(47, 91, 234, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 231, 0.94));
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.brand-badge::before {
    content: "";
    position: absolute;
    inset: 10px 12px 14px 12px;
    border-radius: 16px;
    border: 1.5px solid rgba(30, 36, 48, 0.08);
    clip-path: polygon(0 68%, 34% 36%, 60% 36%, 100% 0, 100% 22%, 67% 52%, 42% 52%, 0 92%);
}

.brand-badge::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 29px;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 91, 234, 0.4), rgba(20, 125, 116, 0.44));
    transform: rotate(-36deg);
    transform-origin: left center;
}

.brand-dot {
    position: absolute;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(18, 25, 38, 0.14);
}

.brand-dot-blue {
    left: 12px;
    top: 13px;
    width: 13px;
    height: 13px;
    background: var(--blue);
}

.brand-dot-red {
    right: 13px;
    top: 11px;
    width: 10px;
    height: 10px;
    background: var(--coral);
}

.brand-dot-yellow {
    left: 12px;
    bottom: 12px;
    width: 9px;
    height: 9px;
    background: var(--gold);
}

.brand-dot-green {
    right: 11px;
    bottom: 12px;
    width: 14px;
    height: 14px;
    background: var(--teal);
}

.brand-text {
    display: grid;
    gap: 4px;
}

.brand-text strong {
    font-size: 1.04rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.brand-text span {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-links a,
.top-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.top-links a {
    color: var(--muted);
    font-weight: 600;
}

.top-links a:hover,
.top-links a:focus-visible {
    background: rgba(47, 91, 234, 0.08);
    color: var(--ink);
}

body[data-page="home"] .top-links a[href="/"],
body[data-page="news"] .top-links a[href="/news"],
body[data-page="schools"] .top-links a[href="/schools"],
body[data-page="knowledge"] .top-links a[href="/knowledge"] {
    background: linear-gradient(135deg, rgba(47, 91, 234, 0.14), rgba(20, 125, 116, 0.12));
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 600;
}

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

.top-cta {
    border: 1px solid rgba(52, 124, 255, 0.16);
    background: linear-gradient(135deg, #347cff, #4f8eff);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(52, 124, 255, 0.22);
}

.top-cta:hover,
.top-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(52, 124, 255, 0.28);
}

.hero {
    display: grid;
    gap: 20px;
    margin-bottom: 26px;
}

.home-hero-panel {
    display: grid;
    gap: 22px;
}

.page-intro-panel {
    min-height: auto;
}

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

.module-entry-card {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(47, 91, 234, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 236, 0.95));
    text-decoration: none;
    box-shadow: var(--shadow-sm), var(--shadow-inset);
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.module-entry-card:hover,
.module-entry-card:focus-visible {
    border-color: rgba(47, 91, 234, 0.24);
    box-shadow: var(--shadow-lg), var(--shadow-inset);
    transform: translateY(-4px);
}

.module-entry-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 16px auto;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 125, 116, 0.12), rgba(47, 91, 234, 0.1));
}

.module-entry-card h3 {
    margin: 14px 0 0;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.module-entry-card p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.module-glyph {
    position: relative;
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.module-glyph-large {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 24px;
}

.module-glyph::before,
.module-glyph::after {
    content: "";
    position: absolute;
}

.module-glyph-news::before {
    left: 16px;
    top: 14px;
    width: 30px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid rgba(200, 139, 40, 0.58);
    background:
        linear-gradient(180deg, rgba(200, 139, 40, 0.18), rgba(200, 139, 40, 0.06));
}

.module-glyph-large.module-glyph-news::before {
    left: 18px;
    top: 16px;
    width: 34px;
    height: 40px;
}

.module-glyph-news::after {
    left: 23px;
    top: 22px;
    width: 16px;
    height: 18px;
    border-top: 2px solid rgba(242, 125, 95, 0.6);
    border-bottom: 2px solid rgba(242, 125, 95, 0.35);
    box-shadow: 0 6px 0 0 rgba(242, 125, 95, 0.35);
}

.module-glyph-large.module-glyph-news::after {
    left: 26px;
    top: 25px;
    width: 18px;
    height: 20px;
}

.module-glyph-schools::before {
    left: 13px;
    bottom: 13px;
    width: 38px;
    height: 28px;
    border-radius: 10px 10px 14px 14px;
    border: 2px solid rgba(20, 125, 116, 0.55);
    background:
        linear-gradient(180deg, rgba(20, 125, 116, 0.16), rgba(20, 125, 116, 0.06));
    clip-path: polygon(0 100%, 0 34%, 50% 0, 100% 34%, 100% 100%);
}

.module-glyph-large.module-glyph-schools::before {
    left: 15px;
    bottom: 15px;
    width: 42px;
    height: 31px;
}

.module-glyph-schools::after {
    left: 25px;
    bottom: 16px;
    width: 12px;
    height: 18px;
    border-radius: 6px 6px 0 0;
    background: rgba(47, 91, 234, 0.44);
    box-shadow:
        -11px -4px 0 -3px rgba(47, 91, 234, 0.3),
        11px -4px 0 -3px rgba(47, 91, 234, 0.3);
}

.module-glyph-large.module-glyph-schools::after {
    left: 29px;
    bottom: 18px;
}

.module-glyph-knowledge::before {
    left: 14px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 12px 16px 16px 12px;
    border: 2px solid rgba(47, 91, 234, 0.52);
    background:
        linear-gradient(180deg, rgba(47, 91, 234, 0.12), rgba(216, 93, 87, 0.08));
    box-shadow: inset -8px 0 0 rgba(216, 93, 87, 0.1);
}

.module-glyph-large.module-glyph-knowledge::before {
    left: 16px;
    top: 16px;
    width: 38px;
    height: 38px;
}

.module-glyph-knowledge::after {
    left: 24px;
    top: 22px;
    width: 14px;
    height: 16px;
    border-top: 2px solid rgba(47, 91, 234, 0.42);
    border-bottom: 2px solid rgba(47, 91, 234, 0.24);
    box-shadow: 0 6px 0 0 rgba(47, 91, 234, 0.24);
}

.module-glyph-large.module-glyph-knowledge::after {
    left: 28px;
    top: 25px;
    width: 16px;
    height: 18px;
}

.module-entry-grid .module-entry-card:nth-child(1) .module-glyph {
    background: linear-gradient(180deg, rgba(255, 249, 242, 0.86), rgba(253, 238, 217, 0.82));
}

.module-entry-grid .module-entry-card:nth-child(2) .module-glyph {
    background: linear-gradient(180deg, rgba(247, 255, 250, 0.86), rgba(232, 244, 237, 0.82));
}

.module-entry-grid .module-entry-card:nth-child(3) .module-glyph {
    background: linear-gradient(180deg, rgba(250, 250, 255, 0.86), rgba(242, 237, 228, 0.82));
}

.module-entry-grid .module-entry-card:nth-child(1) {
    background:
        radial-gradient(circle at top right, rgba(200, 139, 40, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 240, 226, 0.95));
}

.module-entry-grid .module-entry-card:nth-child(1)::after {
    background: linear-gradient(135deg, rgba(242, 125, 95, 0.16), rgba(200, 139, 40, 0.16));
}

.module-entry-grid .module-entry-card:nth-child(2) {
    background:
        linear-gradient(rgba(47, 91, 234, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 91, 234, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 243, 0.95));
    background-size: 26px 26px, 26px 26px, auto;
}

.module-entry-grid .module-entry-card:nth-child(2)::after {
    background: linear-gradient(135deg, rgba(20, 125, 116, 0.18), rgba(47, 91, 234, 0.12));
}

.module-entry-grid .module-entry-card:nth-child(3) {
    background:
        repeating-linear-gradient(180deg, rgba(47, 91, 234, 0.05) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 230, 0.95));
}

.module-entry-grid .module-entry-card:nth-child(3)::after {
    background: linear-gradient(135deg, rgba(47, 91, 234, 0.14), rgba(216, 93, 87, 0.12));
}

.search-panel,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.search-panel {
    width: 100%;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(20, 125, 116, 0.12), transparent 30%),
        radial-gradient(circle at top left, rgba(47, 91, 234, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 239, 0.84));
}

.search-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.search-panel-head .module-glyph-large {
    margin-right: 4px;
}

.search-panel-head h2,
.summary-copy h2,
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.36rem, 2vw, 1.72rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.search-panel-head p,
.summary-copy p,
.section-heading p,
.knowledge-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
    max-width: 80ch;
}

.search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
}

.search-field {
    display: flex;
    align-items: center;
    min-height: 64px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.search-field:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(30, 36, 48, 0.08);
}

.search-field:focus-within {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.1);
}

.search-field-main {
    padding: 0 20px;
}

.search-field-main svg {
    width: 22px;
    height: 22px;
    margin-right: 14px;
    fill: var(--muted-soft);
    flex: 0 0 auto;
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 60px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-field input::placeholder {
    color: var(--muted-soft);
}

.search-field-select {
    padding: 0 20px;
}

.search-actions,
.quick-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.quick-searches {
    margin-top: 16px;
}

.action-button,
.quick-chip,
.pill,
.meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.action-button {
    background: linear-gradient(135deg, var(--ink), #283752);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(18, 25, 38, 0.2);
    font-weight: 700;
}

.action-button:hover,
.action-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(18, 25, 38, 0.28);
}

.action-button-secondary {
    border-color: rgba(30, 36, 48, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    box-shadow: none;
}

.quick-chip,
.pill {
    border-color: rgba(30, 36, 48, 0.08);
    background: rgba(255, 252, 247, 0.82);
    color: var(--muted);
}

.quick-chip:hover,
.quick-chip:focus-visible,
.district-card:hover,
.district-card:focus-visible,
.knowledge-card:hover,
.knowledge-card:focus-visible {
    border-color: rgba(52, 124, 255, 0.2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.layout {
    display: grid;
    gap: 20px;
}

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

.overview-card {
    background:
        radial-gradient(circle at top right, rgba(52, 124, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.92));
}

.overview-label {
    margin: 0;
    color: var(--blue-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-card h2 {
    margin: 14px 0 0;
    font-size: 1.28rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.overview-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.72;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.content-main,
.content-side {
    min-width: 0;
}

.content-side {
    display: grid;
    gap: 20px;
}

.panel {
    padding: 28px;
}

.summary-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 240, 229, 0.92)),
        radial-gradient(circle at right top, rgba(47, 91, 234, 0.12), transparent 30%);
}

.stats-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-bar div {
    min-width: 156px;
    padding: 16px 18px;
    border: 1px solid rgba(30, 36, 48, 0.07);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stats-bar strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stats-bar span {
    color: var(--muted);
}

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

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

.news-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(248, 238, 226, 0.88));
}

.news-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(180deg, var(--gold), var(--coral));
}

.knowledge-panel {
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(180deg, rgba(47, 91, 234, 0.045) 0 1px, transparent 1px 36px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 240, 229, 0.9));
}

.knowledge-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(216, 93, 87, 0.32), rgba(216, 93, 87, 0.08));
}

.knowledge-panel .section-heading,
.knowledge-panel .knowledge-grid,
.knowledge-panel .module-link {
    position: relative;
    z-index: 1;
}

.module-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(47, 91, 234, 0.1), rgba(20, 125, 116, 0.08));
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(30, 36, 48, 0.08);
    box-shadow: var(--shadow-inset);
}

.news-panel .module-link,
#news-policy-link .module-link {
    background: linear-gradient(135deg, rgba(200, 139, 40, 0.16), rgba(242, 125, 95, 0.12));
}

.knowledge-panel .module-link {
    background: linear-gradient(135deg, rgba(47, 91, 234, 0.12), rgba(216, 93, 87, 0.1));
}

.schools-panel .module-link {
    background: linear-gradient(135deg, rgba(20, 125, 116, 0.14), rgba(47, 91, 234, 0.1));
}

.news-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-filter {
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.78);
    color: var(--muted);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.news-filter-active,
.news-filter:hover,
.news-filter:focus-visible {
    border-color: rgba(47, 91, 234, 0.2);
    background: rgba(47, 91, 234, 0.1);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.featured-news {
    display: grid;
}

.featured-news-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(47, 91, 234, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 236, 0.95));
    box-shadow: var(--shadow-lg), var(--shadow-inset);
}

body[data-page="news"] .page-intro-panel,
body[data-page="news"] .featured-news-card,
body[data-page="news"] #policies {
    background:
        radial-gradient(circle at top right, rgba(200, 139, 40, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(249, 238, 225, 0.94));
}

.featured-news-card::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -26px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 125, 116, 0.16), rgba(20, 125, 116, 0));
}

.featured-news-card h3 {
    margin: 14px 0 0;
    font-size: 1.28rem;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

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

.news-card {
    padding: 20px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 236, 0.96));
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.news-card-header h3 {
    margin: 12px 0 0;
    font-size: 1.02rem;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.news-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.news-date,
.news-source,
.news-summary {
    color: var(--muted);
    line-height: 1.68;
}

.news-summary {
    margin: 12px 0 0;
}

.news-source {
    margin: 12px 0 0;
    color: var(--muted-soft);
}

.school-link-note,
.policy-link-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(52, 124, 255, 0.08);
    color: var(--blue-deep);
    font-size: 0.88rem;
    line-height: 1.6;
}

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

.district-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.district-preview-card {
    padding: 18px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.district-preview-card h3 {
    margin: 0;
    font-size: 1rem;
}

.district-preview-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.schools-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(20, 125, 116, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 125, 116, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 241, 0.9));
    background-size: 28px 28px, 28px 28px, auto;
}

.knowledge-card {
    display: block;
    padding: 20px;
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(242, 125, 95, 0.1), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 244, 236, 0.96));
    text-decoration: none;
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.knowledge-panel .knowledge-card {
    background:
        radial-gradient(circle at top right, rgba(47, 91, 234, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 234, 0.96));
}

.knowledge-card h3 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.district-grid,
.school-grid {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.school-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.district-card,
.school-card,
.policy-card {
    border: 1px solid rgba(30, 36, 48, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.district-card {
    width: 100%;
    padding: 18px;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.district-card-active {
    border-color: rgba(47, 91, 234, 0.22);
    background: linear-gradient(180deg, #fffdf9, #f4ebdd);
    box-shadow: var(--shadow-lg), var(--shadow-inset);
}

body[data-page="schools"] .search-panel {
    background:
        linear-gradient(rgba(20, 125, 116, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 125, 116, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 241, 0.88));
    background-size: 28px 28px, 28px 28px, auto;
}

body[data-page="schools"] .summary-panel,
body[data-page="schools"] .main-panel,
body[data-page="schools"] .side-panel,
body[data-page="schools"] .district-preview-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 242, 0.92));
}

body[data-page="schools"] .stats-bar div {
    border-color: rgba(20, 125, 116, 0.12);
}

body[data-page="schools"] .meta-chip {
    background: rgba(20, 125, 116, 0.1);
    border-color: rgba(20, 125, 116, 0.08);
}

body[data-page="schools"] .district-card-active {
    border-color: rgba(20, 125, 116, 0.24);
    background: linear-gradient(180deg, #fcfffd, #edf6ef);
}

.district-card-header,
.school-card-header,
.policy-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.district-card h3,
.school-card h3,
.policy-card h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.district-card span,
.school-card p,
.policy-summary,
.policy-content,
.policy-meta,
.district-card p {
    color: var(--muted);
    line-height: 1.68;
}

.district-card p {
    margin: 12px 0 0;
}

.school-card,
.policy-card {
    padding: 20px;
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.school-card:hover,
.policy-card:hover {
    border-color: rgba(47, 91, 234, 0.16);
    box-shadow: var(--shadow-lg), var(--shadow-inset);
    transform: translateY(-3px);
}

.school-summary {
    margin: 14px 0 0;
    color: var(--text);
    line-height: 1.7;
}

.school-highlights {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.meta-chip {
    min-height: 34px;
    padding: 8px 12px;
    background: rgba(47, 91, 234, 0.1);
    color: var(--ink);
    font-size: 0.82rem;
    border: 1px solid rgba(47, 91, 234, 0.08);
}

.meta-chip-muted,
.pill {
    background: rgba(30, 36, 48, 0.05);
    color: var(--muted);
}

.pill {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.school-details {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(30, 36, 48, 0.07);
}

.school-details summary {
    color: var(--blue-deep);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.school-details summary::-webkit-details-marker {
    display: none;
}

.school-details summary::after {
    content: " +";
}

.school-details[open] summary::after {
    content: " -";
}

.school-meta {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
}

.school-meta div {
    padding-top: 12px;
    border-top: 1px solid rgba(30, 36, 48, 0.07);
}

.school-meta dt {
    font-size: 0.84rem;
    color: var(--muted-soft);
}

.school-meta dd {
    margin: 6px 0 0;
    line-height: 1.65;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 600;
}

.policy-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.policy-summary,
.policy-meta,
.policy-content,
.district-meta,
.policy-source {
    margin: 12px 0 0;
}

.policy-source,
.district-meta {
    color: var(--muted-soft);
    line-height: 1.65;
}

body[data-page="news"] {
    font-family: "Noto Sans SC", "Sora", sans-serif;
    background:
        linear-gradient(rgba(87, 56, 44, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(87, 56, 44, 0.04) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(170, 40, 28, 0.1), transparent 24%),
        radial-gradient(circle at 100% 16%, rgba(196, 135, 46, 0.14), transparent 30%),
        linear-gradient(180deg, #fbf6ef 0%, #f3e7d8 46%, #ead9c6 100%);
    background-size: 24px 24px, 24px 24px, auto, auto, auto;
}

body[data-page="news"]::before {
    top: 26px;
    right: 24px;
    width: min(38vw, 520px);
    height: min(30vw, 360px);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(170, 40, 28, 0.08), rgba(170, 40, 28, 0)),
        repeating-linear-gradient(135deg, rgba(87, 56, 44, 0.08) 0 2px, transparent 2px 18px);
    filter: blur(0);
    opacity: 0.8;
}

body[data-page="news"]::after {
    left: 20px;
    bottom: 26px;
    width: min(30vw, 360px);
    height: min(22vw, 240px);
    border-radius: 28px;
    background:
        radial-gradient(circle at center, rgba(196, 135, 46, 0.14), rgba(196, 135, 46, 0)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(170, 40, 28, 0.04));
    filter: blur(6px);
}

body[data-page="news"] .topbar {
    border: 1px solid rgba(87, 56, 44, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(246, 236, 223, 0.92));
    box-shadow: 0 24px 60px rgba(89, 58, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body[data-page="news"] .top-links a:hover,
body[data-page="news"] .top-links a:focus-visible {
    background: rgba(170, 40, 28, 0.08);
}

body[data-page="news"] .top-links a[href="/news"] {
    background: linear-gradient(135deg, rgba(170, 40, 28, 0.16), rgba(196, 135, 46, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-page="news"] .page-intro-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(87, 56, 44, 0.12);
    background:
        linear-gradient(90deg, rgba(170, 40, 28, 0.92) 0 12px, transparent 12px 100%),
        radial-gradient(circle at top right, rgba(196, 135, 46, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 232, 217, 0.94));
    box-shadow: 0 30px 70px rgba(89, 58, 38, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-page="news"] .page-intro-panel::after {
    content: "LIVE / POLICY DESK";
    position: absolute;
    top: 20px;
    right: 24px;
    padding: 8px 12px;
    border: 1px solid rgba(170, 40, 28, 0.18);
    border-radius: 999px;
    background: rgba(170, 40, 28, 0.08);
    color: #7b2018;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

body[data-page="news"] .breadcrumb,
body[data-page="news"] .section-heading p,
body[data-page="news"] .search-panel-head p,
body[data-page="news"] .news-summary,
body[data-page="news"] .news-source,
body[data-page="news"] .policy-summary,
body[data-page="news"] .policy-content,
body[data-page="news"] .policy-meta,
body[data-page="news"] .policy-source {
    color: #675a4c;
}

body[data-page="news"] .search-panel-head,
body[data-page="news"] .section-heading {
    position: relative;
}

body[data-page="news"] .search-panel-head h2,
body[data-page="news"] .section-heading h2,
body[data-page="news"] .featured-news-card h3,
body[data-page="news"] .news-card-header h3,
body[data-page="news"] .policy-card h3 {
    font-family: "Noto Serif SC", "Noto Sans SC", serif;
    letter-spacing: -0.03em;
}

body[data-page="news"] .section-heading {
    display: grid;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(87, 56, 44, 0.12);
}

body[data-page="news"] .section-heading::before {
    content: "";
    width: 72px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #aa281c, #d6a14d);
}

body[data-page="news"] .news-panel,
body[data-page="news"] #policies {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(87, 56, 44, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(244, 235, 223, 0.94));
    box-shadow: 0 28px 72px rgba(89, 58, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body[data-page="news"] .news-panel::before,
body[data-page="news"] #policies::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(87, 56, 44, 0.16), transparent);
}

body[data-page="news"] .news-panel::after,
body[data-page="news"] #policies::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(87, 56, 44, 0.07);
    border-radius: calc(var(--radius-xl) - 10px);
    pointer-events: none;
}

body[data-page="news"] .news-toolbar {
    gap: 12px;
    padding: 10px 0 4px;
}

body[data-page="news"] .news-filter {
    position: relative;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(87, 56, 44, 0.12);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(241, 231, 217, 0.94));
    color: #5e5144;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-page="news"] .news-filter-active,
body[data-page="news"] .news-filter:hover,
body[data-page="news"] .news-filter:focus-visible {
    border-color: rgba(170, 40, 28, 0.24);
    background: linear-gradient(135deg, rgba(170, 40, 28, 0.12), rgba(214, 161, 77, 0.18));
    color: #3d241f;
    box-shadow: 0 14px 30px rgba(170, 40, 28, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

body[data-page="news"] .featured-news {
    gap: 18px;
}

body[data-page="news"] .featured-news-card {
    padding: 30px 30px 30px 34px;
    border: 1px solid rgba(87, 56, 44, 0.14);
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(170, 40, 28, 0.95) 0 10px, transparent 10px 100%),
        radial-gradient(circle at top right, rgba(214, 161, 77, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(244, 234, 221, 0.96));
    box-shadow: 0 28px 74px rgba(89, 58, 38, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-page="news"] .featured-news-card::before {
    content: "头条";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(170, 40, 28, 0.1);
    color: #8d2218;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body[data-page="news"] .featured-news-card::after {
    right: 26px;
    bottom: 24px;
    width: 128px;
    height: 128px;
    border-radius: 24px;
    background:
        radial-gradient(circle, rgba(214, 161, 77, 0.2), rgba(214, 161, 77, 0)),
        repeating-linear-gradient(135deg, rgba(170, 40, 28, 0.08) 0 2px, transparent 2px 14px);
}

body[data-page="news"] .featured-news-card h3 {
    margin-top: 16px;
    font-size: clamp(1.34rem, 1.7vw, 1.72rem);
    line-height: 1.35;
}

body[data-page="news"] .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

body[data-page="news"] .news-card,
body[data-page="news"] .policy-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(87, 56, 44, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(243, 234, 223, 0.95));
    box-shadow: 0 18px 42px rgba(89, 58, 38, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-page="news"] .news-card::before,
body[data-page="news"] .policy-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #aa281c, #d6a14d);
}

body[data-page="news"] .news-card:hover,
body[data-page="news"] .policy-card:hover {
    border-color: rgba(170, 40, 28, 0.18);
    box-shadow: 0 26px 54px rgba(89, 58, 38, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

body[data-page="news"] .news-card-header,
body[data-page="news"] .policy-card-header {
    gap: 18px;
}

body[data-page="news"] .news-card-header h3,
body[data-page="news"] .policy-card h3 {
    font-size: 1.08rem;
    line-height: 1.5;
}

body[data-page="news"] .news-meta-row {
    justify-content: flex-start;
    gap: 8px;
}

body[data-page="news"] .news-date,
body[data-page="news"] .news-source,
body[data-page="news"] .policy-source {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(87, 56, 44, 0.1);
    background: rgba(255, 251, 245, 0.88);
    font-size: 0.82rem;
    line-height: 1;
}

body[data-page="news"] .news-date {
    color: #7b2018;
    font-weight: 800;
}

body[data-page="news"] .news-source,
body[data-page="news"] .policy-source {
    color: #6d5e50;
}

body[data-page="news"] .news-summary,
body[data-page="news"] .policy-summary,
body[data-page="news"] .policy-content {
    line-height: 1.8;
}

body[data-page="news"] .policy-list {
    gap: 18px;
}

body[data-page="news"] .policy-card {
    padding: 22px 22px 22px 26px;
}

body[data-page="news"] .policy-meta {
    padding-top: 12px;
    border-top: 1px dashed rgba(87, 56, 44, 0.14);
}

body[data-page="news"] .policy-link-note {
    background: rgba(170, 40, 28, 0.06);
    color: #7b2018;
    border: 1px solid rgba(170, 40, 28, 0.1);
}

.empty-state,
.fatal-error {
    padding: 36px;
    text-align: center;
    border: 1px dashed rgba(30, 36, 48, 0.16);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.82);
    box-shadow: var(--shadow-sm);
}

.empty-state h3,
.fatal-error h1 {
    margin: 0;
    font-size: 1.2rem;
}

.empty-state p,
.fatal-error p,
.fatal-error pre {
    margin: 12px 0 0;
    color: var(--muted);
    white-space: pre-wrap;
}

.fatal-error {
    width: min(760px, calc(100% - 32px));
    margin: 48px auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

@media (max-width: 1080px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .module-entry-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 900px) {
    .page-shell {
        width: min(100% - 24px, 1640px);
    }

    .topbar {
        border-radius: 28px;
    }

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

    .content-side {
        grid-template-columns: 1fr;
    }

    body[data-page="news"] .page-intro-panel::after {
        position: static;
        display: inline-flex;
        margin-top: 14px;
    }

    body[data-page="news"] .featured-news-card {
        padding: 24px 24px 24px 28px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding-top: 14px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .top-links {
        width: 100%;
    }

    .top-links a,
    .top-cta {
        flex: 1 1 auto;
    }

    .search-panel,
    .panel {
        padding: 20px;
        border-radius: 24px;
    }

    .stats-bar div {
        min-width: 0;
        flex: 1 1 130px;
    }

    .knowledge-grid,
    .school-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="news"] .news-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="news"] .news-filter {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    body[data-page="news"] .news-card,
    body[data-page="news"] .policy-card,
    body[data-page="news"] .featured-news-card {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
