:root {
    --navy: #062653;
    --navy-darker: #051d40;
    --turquoise: #109bc0;
    --gold: #c99a45;
    --orange: #e97614;
    --green: #359d54;
    --text: #15233c;
    --muted: #516078;
    --border: #e7ebf1;
    --paper: #f7f9fd;
    --bluepaper: #e8f3fc;
    --radius: 12px;
}

*,*::before,*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: 'Segoe UI',Arial,Helvetica,sans-serif;
    font-size: 15px;
    line-height: 1.48;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--navy);
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,button:focus-visible,input:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 3px;
}

button,input {
    font: inherit;
}

button {
    cursor: pointer;
}

.icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    vertical-align: middle;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 300;
    background: var(--navy);
    color: #fff;
    padding: 12px;
}

.skip-link:focus {
    top: 8px;
}

.site-frame {
    max-width: 1570px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 224px minmax(0,1fr);
    column-gap: 22px;
    padding: 0 28px 0 32px;
    min-height: calc(100vh - 180px);
}

.sidebar {
    padding: 20px 0 0;
    min-width: 0;
}

.brand-logo {
    height: 224px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    outline-offset: 2px;
}

.brand-logo>img {
    height: 220px;
    width: 220px;
    object-fit: contain;
}

.logo-placeholder {
    position: relative;
    width: 204px;
    height: 204px;
    border: 5px solid #2c275b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #292455;
    text-align: center;
    background: radial-gradient(circle,#fff 60%,#f2eef9);
}

.logo-ring {
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: 900;
    line-height: 1.1;
}

.logo-ring small {
    display: block;
    font-size: 10px;
    letter-spacing: 2.2px;
    margin-top: 5px;
}

.logo-book .icon {
    width: 80px;
    height: 80px;
    color: var(--gold);
    stroke-width: 1.3;
}

.logo-motto {
    font-family: Georgia,serif;
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 14px;
}

.quicklinks {
    display: grid;
    gap: 9px;
}

.quick {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
    border: 2px solid var(--turquoise);
    border-radius: 8px;
    padding: 9px 10px;
    color: #0879a0;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 7px #05255010;
}

.quick svg {
    width: 24px;
    height: 24px;
}

.quick-teacher {
    background: var(--turquoise);
    color: white;
}

.quick-library {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.quick:hover {
    filter: brightness(1.06);
    text-decoration: none;
}

.side-menu {
    display: grid;
    gap: 0;
    background: linear-gradient(120deg,#052855,#071d44);
    border-radius: 11px;
    padding: 10px 12px;
    margin-top: 12px;
    box-shadow: 0 4px 16px #06265310;
}

.side-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 36px;
    color: #fff;
    padding: 5px 4px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.side-menu a:hover,.side-menu a[aria-current] {
    color: #9ce7fa;
    text-decoration: none;
}

.side-menu .icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.welcome-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    background: linear-gradient(135deg,#e8edff,#d4e6ff);
    margin-top: 14px;
    border-radius: 12px;
    min-height: 114px;
}

.welcome-tile:hover {
    text-decoration: none;
}

.welcome-icon .icon {
    width: 60px;
    height: 60px;
    color: #00549b;
}

.welcome-icon img {
    width: 63px;
    height: 70px;
    object-fit: contain;
}

.welcome-tile span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.welcome-tile strong {
    font-size: 14px;
    color: var(--navy);
}

.welcome-tile small {
    font-size: 11px;
    color: var(--navy);
    font-weight: 800;
}

.welcome-tile b {
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 10px;
    width: max-content;
}

.dots-decoration {
    width: 125px;
    height: 152px;
    margin: 25px 0 0 -28px;
    background-image: radial-gradient(circle,#10a5ce 2.4px,transparent 3px);
    background-size: 22px 22px;
    mask-image: linear-gradient(45deg,#000,transparent 90%);
    opacity: .95;
}

.site-content {
    min-width: 0;
    padding-top: 8px;
}

.social-line {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.school-name-small {
    display: none;
}

.socials {
    display: flex;
    gap: 6px;
}

.socials a {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 18px;
    font-weight: 900;
}

.top-nav {
    height: 56px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    box-shadow: 0 3px 15px #06183817;
    overflow: hidden;
    margin-bottom: 20px;
}

.top-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: white;
    font-size: clamp(10px,.85vw,13px);
    font-weight: 900;
    white-space: nowrap;
    min-width: 0;
    padding: 0 clamp(6px,.75vw,12px);
}

.top-nav a:hover {
    text-decoration: none;
    background: #123c75;
}

.top-nav .icon {
    width: 22px;
    height: 22px;
}

.top-nav .nav-accent {
    background: linear-gradient(125deg,var(--gold),#e47a19);
    padding-inline: 12px;
}

.top-nav .nav-search {
    width: 48px;
    min-width: 45px;
}

.top-nav .nav-search .icon {
    width: 25px;
    height: 25px;
}

.mobile-toggle {
    display: none;
}

.body-columns {
    display: grid;
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 22px;
}

.primary-content,.right-column {
    min-width: 0;
}

.hero {
    height: 413px;
    border-radius: 13px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 20px;
    background-image: var(--hero-image,linear-gradient(135deg,#24465c,#64794d));
    background-position: center;
    background-size: cover;
    background-color: #456d77;
}

.hero:not([style]) {
    background-image: linear-gradient(145deg,#122d56 0%,#216781 38%,#4f988f 67%,#ebbf7a 100%);
}

.hero:not([style]):before {
    content: "";
    position: absolute;
    inset: auto -15px -90px auto;
    width: 45%;
    height: 70%;
    border-radius: 55% 55% 0 0;
    background: #1c375070;
    filter: blur(25px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,#0b183700 50%,#05132730 100%);
}

.hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    text-shadow: 0 3px 8px #06172f80;
    padding: 0 0 6px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px,5vw,70px);
    line-height: 1.12;
    letter-spacing: .12em;
    font-weight: 900;
}

.hero h2 {
    margin: 2px 0 0;
    font-size: clamp(19px,2.1vw,30px);
    line-height: 1.25;
    letter-spacing: .03em;
}

.hero p {
    margin: 4px 0 0;
    font-size: clamp(19px,2.1vw,26px);
    font-family: Georgia,serif;
    font-style: italic;
}

.hero-dots {
    position: absolute;
    width: 96px;
    height: 80px;
    top: 12px;
    left: 11px;
    background-image: radial-gradient(circle,#fff 2px,transparent 3px);
    background-size: 20px 19px;
    mask-image: linear-gradient(110deg,#000,transparent 100%);
}

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

.section-heading h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.section-heading h2 .icon {
    color: var(--navy);
    width: 21px;
}

.section-heading>a {
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 2px;
}

.section-heading>a svg {
    width: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    padding-bottom: 7px;
}

.news-card {
    min-width: 0;
}

.card-image {
    display: block;
    aspect-ratio: 2.55/1.1;
    overflow: hidden;
    border-radius: 8px;
    background: #e5eefe;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.news-card:hover img {
    transform: scale(1.035);
}

.card-copy h3 {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--navy);
    margin: 8px 0 3px;
}

.card-copy p {
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0 0 1px;
    color: #101827;
}

.card-copy .more {
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.more .icon {
    width: 13px;
    height: 13px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(125deg,#edf5fc,#cfdeed);
    color: #6b87a1;
    font-size: 12px;
}

.photo-placeholder .icon {
    width: 34px;
    height: 34px;
}

.empty-news {
    grid-column: 1/-1;
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 126px;
    border: 1px dashed #cbd9e7;
    border-radius: 9px;
    background: #f9fbff;
    padding: 20px;
}

.empty-news>.icon {
    color: var(--turquoise);
    width: 47px;
    height: 47px;
}

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

.empty-news p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
}

.feature-banner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f5f8fe;
    border-radius: 11px;
    margin-top: 20px;
    padding: 14px 18px;
}

.feature-illustration {
    width: 92px;
    max-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-illustration>.icon {
    width: 65px;
    height: 65px;
    color: var(--gold);
}

.feature-illustration img {
    max-width: 88px;
    max-height: 75px;
    object-fit: contain;
}

.feature-copy {
    flex: 1;
}

.feature-copy>span {
    font-size: 10px;
    font-weight: 900;
    color: var(--turquoise);
    letter-spacing: .08em;
}

.feature-copy h2 {
    color: var(--navy);
    font-size: clamp(17px,2vw,28px);
    margin: 0;
    line-height: 1.18;
    font-weight: 900;
}

.feature-copy p {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
}

.solid-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: white;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.solid-button:hover {
    text-decoration: none;
    background: #174781;
}

.solid-button .icon {
    width: 17px;
    height: 17px;
}

.support-panel {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
    border: 1px solid #e4e9f1;
    border-radius: 12px;
    margin-top: 12px;
    padding: 16px;
    background: #fff;
}

.support-panel img {
    max-height: 65px;
    max-width: 120px;
    object-fit: contain;
}

.support-panel h2 {
    font-size: 14px;
    color: var(--navy);
    margin: 0;
}

.support-panel p {
    margin: 3px;
    font-size: 12px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-panel {
    background: #f7f9fd;
    border-radius: 11px;
    padding: 16px 17px;
}

.side-panel h2 {
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    color: var(--navy);
    margin: 0 0 16px;
}

.side-panel .all-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    margin: 6px 0 0 1px;
}

.side-empty {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.event-mini {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.date-tile {
    width: 45px;
    min-width: 45px;
    height: 50px;
    border: 1px solid #c1cbd8;
    border-radius: 4px;
    background: #fff;
    text-align: center;
    color: var(--navy);
    line-height: 1;
    overflow: hidden;
}

.date-tile small {
    display: block;
    background: var(--navy);
    color: white;
    padding: 4px 0 3px;
    font-size: 10px;
    font-weight: 900;
}

.date-tile strong {
    font-weight: 900;
    display: block;
    padding: 4px 0;
    font-size: 23px;
}

.event-mini>div:last-child {
    display: grid;
    gap: 2px;
    font-size: 12px;
}

.event-mini strong {
    font-size: 12px;
    line-height: 1.35;
}

.event-mini span {
    font-size: 11.5px;
    color: #263650;
}

.event-mini a {
    font-size: 11.5px;
    font-weight: 800;
}

.notices-panel {
    background: #fdf2e8;
}

.notices-panel h2 {
    color: #b95c1b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.notices-panel h2 .icon {
    color: #df7819;
    width: 22px;
    height: 22px;
}

.notice-mini {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.notice-mini>span {
    color: var(--orange);
}

.notice-mini p {
    margin: 0;
}

.notice-mini small {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
}

.orange-link {
    background: var(--orange);
    color: #fff!important;
    border-radius: 4px;
    padding: 7px 10px;
}

.achievements-panel {
    background: #eaf5fb;
}

.achievement-intro {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.achievement-intro .icon {
    color: var(--gold);
    width: 44px;
    height: 44px;
}

.achievement-intro p {
    font-size: 12px;
    margin: 0;
}

.achievement-link {
    display: block;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.wave-decoration {
    max-width: 1570px;
    margin: 0 auto;
    position: relative;
    height: 52px;
    overflow: hidden;
}

.wave-left,.wave-right {
    position: absolute;
    width: 39%;
    height: 115px;
    bottom: -71px;
    border-top: 9px solid var(--orange);
    border-radius: 60% 60% 0 0;
}

.wave-left {
    left: -5%;
    transform: rotate(-6deg);
    box-shadow: 0 -8px 0 white,0 -15px 0 var(--turquoise),0 -24px 0 white,0 -32px 0 var(--navy);
}

.wave-right {
    right: -5%;
    transform: rotate(6deg);
    box-shadow: 0 -8px 0 white,0 -15px 0 var(--turquoise),0 -24px 0 white,0 -32px 0 var(--navy);
}

.site-footer {
    background: var(--navy);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    min-height: 45px;
    padding: 11px 22px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.footer-links a {
    color: #fff;
    font-weight: 800;
}

.site-footer small {
    font-size: 11px;
}

.content-page,.article-detail {
    min-height: 530px;
    padding: 19px 5px 30px;
}

.content-page h1,.article-detail h1 {
    color: var(--navy);
    font-size: clamp(28px,3vw,40px);
    line-height: 1.2;
    margin: 0 0 16px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .15em;
    color: var(--turquoise);
    font-weight: 900;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--muted);
}

.lead {
    font-size: 17px;
    color: #30445e;
    line-height: 1.65;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.post-date .icon {
    width: 17px;
    height: 17px;
}

.detail-figure {
    margin: 20px 0;
}

.detail-figure img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    object-fit: contain;
}

.prose {
    line-height: 1.75;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.prose p {
    margin: 0 0 16px;
}

.detail-meta {
    color: var(--navy);
}

.related-links {
    border-top: 1px solid var(--border);
    margin-top: 30px;
    padding-top: 12px;
}

.related-links h2 {
    font-size: 18px;
}

.related-links a {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 7px 0;
    font-weight: 800;
}

.related-links .icon {
    width: 16px;
    height: 16px;
}

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

.listing-cards .card-image {
    aspect-ratio: 16/9;
}

.listing-cards .card-copy h3 {
    font-size: 18px;
}

.content-list {
    display: grid;
    gap: 12px;
}

.content-list>article {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafcff;
}

.content-list h2 {
    color: var(--navy);
    font-size: 19px;
    margin: 4px 0;
}

.content-list p {
    font-size: 14px;
    margin: 5px 0;
    color: #3b4961;
}

.list-actions {
    display: flex;
    gap: 20px;
}

.text-link {
    color: #0b608b;
    font-weight: 900;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.text-link .icon {
    width: 16px;
    height: 16px;
}

.category-pill {
    display: inline-block;
    background: #e7f4fa;
    color: #08678b;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
}

.empty-box {
    background: #f4f8fc;
    border: 1px dashed #cbdce9;
    border-radius: 10px;
    padding: 23px;
    color: #435773;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 15px 0 20px;
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #aebfce;
    padding: 13px;
    border-radius: 7px;
}

.muted {
    color: var(--muted);
}

.calendar {
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    overflow: hidden;
    margin: 18px 0 32px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #eaf3fb;
}

.calendar-head h2 {
    font-size: 18px;
    color: var(--navy);
    margin: 0;
}

.calendar-head a {
    font-size: 22px;
    font-weight: 900;
    padding: 4px 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 1px;
    background: #e4eaf1;
}

.weekday {
    text-align: center;
    padding: 10px 3px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.calendar-day,.cal-blank {
    background: #fff;
    min-height: 76px;
    padding: 6px;
    font-size: 12px;
    overflow: hidden;
}

.calendar-day>span {
    font-weight: 800;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--turquoise);
}

.calendar-day.has-event {
    background: #f4faff;
}

.calendar-day a {
    display: block;
    background: #d9ecf8;
    color: #0b4364;
    font-weight: 800;
    font-size: 10px;
    line-height: 1.2;
    padding: 4px;
    border-radius: 4px;
    margin: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-subhead {
    font-size: 22px;
    color: var(--navy);
}

.event-list-item {
    display: flex;
    gap: 17px;
    align-items: flex-start;
}

.event-list-item h2 {
    margin: 0;
}

.event-list-item .date-tile {
    height: 58px;
}

.event-list-item .date-tile strong {
    padding-top: 5px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 24px;
}

.photo-link {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fafcff;
}

.photo-link img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.photo-link span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    padding: 7px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: #04162bef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
    padding: 48px 20px 24px;
}

.lightbox img {
    max-height: 83vh;
    max-width: 95vw;
    object-fit: contain;
}

.lightbox p {
    color: white;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 45px;
    line-height: 1;
}

.no-scroll {
    overflow: hidden;
}

@media(max-width:1370px) {
    .site-frame {
        grid-template-columns: 205px minmax(0,1fr);
        gap: 16px;
        padding: 0 18px;
    }
    .brand-logo {
        height: 212px;
    }
    .brand-logo>img {
        width: 200px;
        height: 200px;
    }
    .body-columns {
        grid-template-columns: minmax(0,1fr) 235px;
        gap: 16px;
    }
    .top-nav a {
        gap: 5px;
        padding: 0 7px;
        font-size: 10px;
    }
    .top-nav .icon {
        width: 18px;
        height: 18px;
    }
    .quick {
        font-size: 10.7px;
        gap: 6px;
    }
    .side-panel {
        padding: 15px 12px;
    }
}

@media(max-width:1110px) {
    .site-frame {
        grid-template-columns: 190px minmax(0,1fr);
        gap: 14px;
    }
    .body-columns {
        display: block;
    }
    .right-column {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 10px;
        margin-top: 20px;
    }
    .event-mini {
        gap: 5px;
    }
    .top-nav {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }
    .top-nav a {
        min-width: max-content;
        padding: 0 13px;
    }
    .site-footer {
        gap: 30px;
    }
    .hero {
        height: 360px;
    }
}

@media(max-width:720px) {
    .site-frame {
        display: block;
        padding: 0 12px;
    }
    .site-content {
        padding-top: 6px;
    }
    .social-line {
        min-height: 32px;
        justify-content: space-between;
    }
    .school-name-small {
        display: block;
        font-size: 12px;
        color: var(--navy);
        font-weight: 900;
    }
    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--navy);
        color: white;
        border: 0;
        border-radius: 8px;
        padding: 8px 14px;
        margin-bottom: 8px;
        font-weight: 800;
    }
    .sidebar {
        display: none;
        position: absolute;
        left: 8px;
        top: 108px;
        width: min(290px,86vw);
        z-index: 40;
        background: white;
        border-radius: 10px;
        box-shadow: 0 8px 35px #0d254c50;
        padding: 14px;
    }
    .sidebar.sidebar-visible {
        display: block;
    }
    .brand-logo {
        height: 145px;
    }
    .brand-logo>img {
        height: 135px;
        width: 135px;
    }
    .logo-placeholder {
        transform: scale(.7);
    }
    .side-menu {
        margin-top: 8px;
    }
    .dots-decoration {
        display: none;
    }
    .top-nav {
        height: 49px;
        border-radius: 7px;
        margin-bottom: 12px;
    }
    .top-nav a {
        font-size: 11px;
    }
    .top-nav .icon {
        width: 18px;
    }
    .hero {
        height: 310px;
    }
    .hero h1 {
        font-size: 36px;
        letter-spacing: .07em;
    }
    .hero h2 {
        font-size: 19px;
    }
    .hero p {
        font-size: 17px;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-card {
        display: grid;
        grid-template-columns: 35% 1fr;
        gap: 12px;
    }
    .card-image {
        height: 120px;
        aspect-ratio: auto;
    }
    .card-copy h3 {
        margin: 0 0 6px;
    }
    .right-column {
        grid-template-columns: 1fr;
    }
    .feature-banner {
        gap: 8px;
        padding: 13px;
    }
    .feature-illustration {
        width: 50px;
    }
    .feature-illustration>.icon {
        width: 40px;
    }
    .feature-copy h2 {
        font-size: 16px;
    }
    .feature-copy p {
        font-size: 11px;
    }
    .feature-banner .solid-button {
        padding: 8px;
        font-size: 10px;
    }
    .site-footer {
        display: block;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    .wave-decoration {
        height: 25px;
    }
    .listing-cards {
        grid-template-columns: 1fr 1fr;
    }
    .calendar-day {
        min-height: 55px;
        padding: 3px;
    }
    .calendar-day a {
        font-size: 8px;
    }
    .photo-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .content-page {
        padding-top: 12px;
    }
}

@media(max-width:440px) {
    .hero {
        height: 270px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .news-card {
        grid-template-columns: 36% 1fr;
    }
    .card-copy p {
        font-size: 11.5px;
    }
    .card-copy h3 {
        font-size: 14px;
    }
    .feature-illustration {
        display: none;
    }
    .feature-banner {
        flex-wrap: wrap;
    }
    .listing-cards {
        grid-template-columns: 1fr;
    }
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .calendar-day {
        min-height: 47px;
    }
    .calendar-head h2 {
        font-size: 15px;
    }
    .search-form {
        flex-direction: column;
    }
    .event-list-item {
        gap: 8px;
    }
    .content-list h2 {
        font-size: 16px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none!important;
    }
}

.article-detail:has(.issue-archive) .detail-figure {
    width: 100%;
    margin: 16px 0 22px;
}

.article-detail:has(.issue-archive) .detail-figure img {
    display: block;
    width: 100%;
    max-height: none;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.prose h2,.prose h3,.prose h4 {
    color: #062653;
    line-height: 1.3;
    margin: 22px 0 9px;
}

.prose h2 {
    font-size: 1.6rem;
}

.prose h3 {
    font-size: 1.28rem;
}

.prose ul,.prose ol {
    margin: 10px 0 18px;
    padding-left: 27px;
}

.prose li {
    margin: 5px 0;
}

.prose a {
    color: #057d9e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose blockquote {
    margin: 18px 0;
    border-left: 4px solid #c99a45;
    padding: 5px 18px;
    background: #f7f9fd;
}

.issue-archive {
    margin-top: 32px;
    border-top: 1px solid #dce5ee;
    padding-top: 20px;
}

.issue-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.issue-heading h2 {
    font-size: 25px;
    color: #062653;
    margin: 3px 0 18px;
}

.issue-card {
    display: flex;
    align-items: stretch;
    gap: 22px;
    border: 1px solid #e1e9f1;
    border-radius: 13px;
    padding: 17px;
    background: #fff;
    margin: 16px 0;
    box-shadow: 0 2px 12px #071a3210;
}

.issue-cover {
    width: 145px;
    flex: 0 0 145px;
    align-self: flex-start;
}

.issue-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: contain;
    border-radius: 7px;
    box-shadow: 0 3px 13px #09234822;
}

.issue-info {
    flex: 1;
    min-width: 0;
}

.issue-info h3 {
    font-size: 22px;
    color: #062653;
    margin: 7px 0;
}

.issue-info p {
    color: #3b4961;
    margin: 9px 0 20px;
    line-height: 1.6;
}

.issue-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.issue-actions .solid-button {
    font-size: 13px;
    white-space: normal;
    text-align: center;
}

.issue-actions .text-link {
    font-size: 13px;
}

@media(max-width:570px) {
    .issue-card {
        gap: 12px;
        padding: 12px;
    }
    .issue-cover {
        flex-basis: 95px;
        width: 95px;
    }
    .issue-info h3 {
        font-size: 17px;
    }
    .issue-actions {
        gap: 9px;
    }
}
/* Alsó díszítés – egyetlen teljes szélességű hullám */

.wave-decoration .wave-left {
    left: -5%;
    right: auto;
    width: 110%;
    transform: none;
}

.wave-decoration .wave-right {
    display: none;
}

@media (max-width: 720px) {
    .hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        padding: 0;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-dots {
        display: none;
    }

    .listing-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-grid .news-card,
    .listing-cards .news-card {
        display: grid;
        grid-template-columns: 35% minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .news-grid .card-image,
    .listing-cards .card-image {
        display: block;
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .news-grid .card-image img,
    .listing-cards .card-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .news-grid .card-copy,
    .listing-cards .card-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .news-grid .card-copy h3,
    .listing-cards .card-copy h3 {
        margin: 0 0 5px;
        font-size: 15px;
        line-height: 1.3;
    }
}

@media (max-width: 440px) {
    .hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .news-grid .news-card,
    .listing-cards .news-card {
        grid-template-columns: 36% minmax(0, 1fr);
    }

    .news-grid .card-copy h3,
    .listing-cards .card-copy h3 {
        font-size: 14px;
    }
}
/* TABLET: 721–1199 px */
@media (min-width: 721px) and (max-width: 1199px) {
    .hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 1200 / 850;
        padding: 0;
        background-image: url('/img/vokanyi-hero-tablet.jpg') !important;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero .hero-overlay,
    .hero .hero-dots,
    .hero .hero-text {
        display: none;
    }
}

/* MOBIL: legfeljebb 720 px */
@media (max-width: 720px) {
    .hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 900 / 1120;
        padding: 0;
        background-image: url('/img/vokanyi-hero-mobil.jpg') !important;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .hero .hero-overlay,
    .hero .hero-dots,
    .hero .hero-text {
        display: none;
    }
}
