/* dmf.ac.th public site — v0 Redesign · Preserve.
   One self-hosted stylesheet keeps the current CSP and PHP theme contract intact. */

:root {
    --brand: #173b78;
    --brand-light: #2457a6;
    --accent: #ec72a7;
    --ink: #1d2733;
    --ink-muted: #5c6b7d;
    --line: #dde4f2;
    --surface: #ffffff;
    --ground: #f6f8fd;
    --navy-deep: #071d3d;
    --gold: #c7a24b;
    --gold-light: #f1d991;
    --cream: #fbf8ef;
    --radius-control: 4px;
    --radius: 8px;
    --shadow: 0 14px 40px rgba(23, 59, 120, .09);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--ground) 70%, #fff) 0, var(--ground) 360px),
        var(--ground);
    color: var(--ink);
    font-family: "Sarabun", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link, var(--brand-light)); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.25; text-wrap: pretty; }
p { text-wrap: pretty; }
button, input { font: inherit; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }

.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;
}

.skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 1000;
    background: var(--brand); color: var(--on-brand, #fff);
    border-radius: var(--radius-control); padding: 10px 16px;
    font-weight: 700; transition: top 120ms var(--ease);
}
.skip-link:focus { top: 16px; }

.theme-preview-notice {
    background: var(--surface); color: var(--ink); border-bottom: 3px solid var(--accent); padding: 12px 0;
}
.theme-preview-notice .container { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.theme-preview-notice a { margin-left: auto; font-weight: 700; }

/* Header ------------------------------------------------------------------ */

.site-header {
    background: color-mix(in srgb, var(--surface) 96%, var(--ground));
    border-top: 6px solid var(--brand);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    min-height: 112px; display: flex; align-items: center; justify-content: space-between;
    gap: 32px; padding: 18px 0;
}

.brand {
    min-width: 0; display: flex; align-items: center; gap: 16px;
    color: var(--ink); text-decoration: none;
}
.brand-mark {
    width: 72px; height: 72px; flex: none; object-fit: contain;
    background: #fff; border-radius: var(--radius-control);
}
.brand-text { min-width: 0; }
.brand-text strong {
    display: block; color: var(--heading, var(--brand));
    font-size: clamp(1.18rem, 1rem + .7vw, 1.65rem); font-weight: 700;
    letter-spacing: -.02em;
}
.brand-text small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: .86rem; }

.search-form {
    width: min(100%, 390px); display: flex; align-items: stretch;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control);
    box-shadow: 0 5px 18px rgba(23, 59, 120, .05); overflow: hidden;
}
.search-form:focus-within { border-color: var(--brand-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-light) 18%, transparent); }
.search-form input {
    min-width: 0; flex: 1; border: 0; padding: 11px 14px; color: var(--ink); background: transparent;
}
.search-form input:focus { outline: 0; }
.search-form input::placeholder { color: var(--ink-muted); }
.search-form button {
    display: inline-flex; align-items: center; gap: 9px; border: 0;
    background: var(--brand); color: var(--on-brand, #fff); padding: 10px 17px;
    font-weight: 700; cursor: pointer; transition: background 180ms var(--ease), transform 120ms var(--ease);
}
.search-form button:hover { background: var(--brand-light); }
.search-form button:active { transform: translateY(1px); }
.search-form.standalone { margin-bottom: 28px; }

.site-nav { background: var(--brand); }
.nav-scroll { overflow-x: auto; scrollbar-width: thin; }
.site-nav ul {
    display: flex; align-items: stretch; gap: 2px; width: max-content; min-width: 100%;
    list-style: none; margin: 0; padding: 0;
}
.site-nav a {
    position: relative; display: flex; align-items: center; min-height: 50px; padding: 10px 16px;
    color: var(--on-brand, #fff); text-decoration: none; font-size: .94rem; font-weight: 600;
    white-space: nowrap; transition: background 180ms var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--brand-light); }
.site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; background: var(--accent);
}

/* Layout blocks ----------------------------------------------------------- */

main { padding: clamp(28px, 5vw, 64px) 0 72px; }

.hero {
    position: relative; min-height: clamp(460px, 53vw, 650px); overflow: hidden;
    margin-bottom: clamp(40px, 6vw, 72px); background: var(--brand);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.school-hero-media { position: absolute; inset: 0; }
.school-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 25, 54, .52) 0, rgba(8, 25, 54, .12) 64%, transparent 100%);
}
.school-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.school-hero-frame {
    position: relative; z-index: 1; min-height: inherit; display: flex; align-items: flex-end;
    padding: clamp(24px, 5vw, 56px);
}
.school-hero-panel {
    width: min(760px, 82%); display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px;
    align-items: center; background: color-mix(in srgb, var(--surface) 95%, transparent);
    border-left: 7px solid var(--accent); padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 20px 60px rgba(8, 25, 54, .2); backdrop-filter: blur(8px);
}
.hero-emblem { width: 132px; height: 132px; object-fit: contain; background: #fff; }
.hero-copy { max-width: 620px; }
.hero-label, .section-label {
    margin: 0 0 8px; color: var(--link, var(--brand-light)); font-size: .82rem; font-weight: 700;
    letter-spacing: .04em;
}
.hero h1 {
    margin: 0 0 12px; color: var(--heading, var(--brand));
    font-size: clamp(2rem, 1.35rem + 2vw, 3.65rem); letter-spacing: -.045em;
}
.hero p:last-child { max-width: 58ch; margin: 0; color: var(--ink-muted); font-size: clamp(1rem, .94rem + .35vw, 1.28rem); }

.page-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 6px; color: var(--heading, var(--brand)); font-size: clamp(2rem, 1.5rem + 2vw, 3.35rem); letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--ink-muted); }
.page-head.center { text-align: center; padding: 48px 0; }
.status-code { margin: 0; color: var(--line); font-size: 4rem; font-weight: 700; }

.breadcrumb { margin-bottom: 18px; color: var(--ink-muted); font-size: .88rem; }
.breadcrumb a { color: var(--link, var(--brand-light)); }

.section {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 5px 18px rgba(23, 59, 120, .05); padding: 24px; margin-bottom: 24px;
}
.section-head {
    display: flex; align-items: end; justify-content: space-between; gap: 18px;
    padding-bottom: 15px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; color: var(--heading, var(--brand)); font-size: clamp(1.35rem, 1.1rem + .7vw, 1.9rem); letter-spacing: -.02em; }
.more-link, .read-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--link, var(--brand-light));
    font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.more-link span, .read-link span { transition: transform 180ms var(--ease); }
.more-link:hover span, .read-link:hover span { transform: translateX(3px); }

.home-grid {
    display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, .72fr);
    gap: clamp(28px, 4vw, 56px); align-items: start;
}
.home-page .section-news, .home-page .section-gallery {
    background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0;
}
.home-rail { display: grid; gap: 20px; }
.home-rail .section { margin: 0; }
.rail-section { border-top: 5px solid var(--brand); }
.notice-panel { background: var(--surface); border-top-color: var(--accent); }
.service-panel { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.service-panel .section-head { border-color: color-mix(in srgb, var(--on-brand, #fff) 24%, transparent); }
.service-panel .section-head h2, .service-panel a { color: var(--on-brand, #fff); }
.service-panel .link-list li { border-color: color-mix(in srgb, var(--on-brand, #fff) 18%, transparent); }

.empty {
    margin: 0; color: var(--ink-muted); background: color-mix(in srgb, var(--surface) 60%, var(--ground));
    border: 1px dashed var(--line); border-radius: var(--radius-control); padding: 32px; text-align: center;
}
.muted { color: var(--ink-muted); }

/* Homepage editorial modules --------------------------------------------- */

.banners { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 72px); }
.banner { position: relative; margin: 0; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.banner a { display: block; }
.banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms var(--ease); }
.banner a:hover img { transform: scale(1.012); }
.banner figcaption { padding: 12px 14px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.banner-lead { box-shadow: var(--shadow); }
.banner-lead img { aspect-ratio: 16 / 6.6; object-fit: cover; }
.banner-lead figcaption {
    position: absolute; right: 18px; bottom: 18px; max-width: min(520px, calc(100% - 36px));
    background: color-mix(in srgb, var(--brand) 94%, transparent); color: var(--on-brand, #fff);
    border-left: 5px solid var(--accent); padding: 12px 18px;
}
.banner-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.banner-support .banner { border: 1px solid var(--line); }
.banner-support img { aspect-ratio: 16 / 7; }

.news-feature {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    min-height: 340px; overflow: hidden; background: var(--brand); color: var(--on-brand, #fff);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.news-feature.no-media { grid-template-columns: 1fr; min-height: 0; }
.news-feature-media { min-height: 300px; overflow: hidden; }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms var(--ease); }
.news-feature-media:hover img { transform: scale(1.018); }
.news-feature-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(26px, 4vw, 44px); }
.news-feature-body time { color: var(--on-brand, #fff); opacity: .75; font-size: .8rem; }
.news-feature-body h3 { margin: 10px 0 13px; font-size: clamp(1.55rem, 1.2rem + 1vw, 2.25rem); }
.news-feature-body h3 a { color: var(--on-brand, #fff); text-decoration: none; }
.news-feature-body p { margin: 0 0 20px; color: var(--on-brand, #fff); opacity: .84; font-size: .94rem; }
.news-feature-body .read-link { color: var(--on-brand, #fff); }

.news-list { margin-top: 12px; border-top: 1px solid var(--line); }
.news-row {
    display: grid; grid-template-columns: 104px minmax(0, 1fr) 44px; gap: 18px; align-items: start;
    padding: 21px 0; border-bottom: 1px solid var(--line);
}
.news-row time { padding-top: 3px; color: var(--ink-muted); font-size: .78rem; }
.news-row h3 { margin: 0 0 5px; font-size: 1.08rem; }
.news-row h3 a { color: var(--ink); text-decoration: none; }
.news-row h3 a:hover { color: var(--link, var(--brand-light)); text-decoration: underline; }
.news-row p { margin: 0; color: var(--ink-muted); font-size: .86rem; }
.row-arrow {
    width: 40px; height: 40px; display: grid; place-items: center; align-self: center;
    border: 1px solid var(--line); border-radius: var(--radius-control); text-decoration: none;
    transition: color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}
.row-arrow:hover { color: var(--brand); border-color: var(--brand-light); transform: translateX(2px); }

.section-gallery { margin-top: clamp(48px, 7vw, 88px); }
.gallery-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards ------------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
    min-width: 0; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-light) 45%, var(--line)); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms var(--ease); }
.card:hover .card-media img { transform: scale(1.02); }
.card-body { display: grid; gap: 8px; padding: 18px; }
.card-body time { color: var(--ink-muted); font-size: .76rem; }
.card-body h2, .card-body h3 { margin: 0; font-size: 1.05rem; }
.card-body h2 a, .card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--link, var(--brand-light)); text-decoration: underline; }
.card-body p { margin: 0; color: var(--ink-muted); font-size: .86rem; }

/* Lists ------------------------------------------------------------------- */

.notice-list, .link-list, .plain-list, .record-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.notice-list li:last-child, .link-list li:last-child { border-bottom: 0; }
.notice-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.notice-list a:hover { color: var(--link, var(--brand-light)); text-decoration: underline; }
.notice-list time { order: -1; color: var(--ink-muted); font-size: .75rem; }

.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
    display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
    color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.link-list a:hover { color: var(--link, var(--brand-light)); }

.record-list li {
    display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-bottom: 14px;
}
.record-list h2 { margin: 4px 0 6px; font-size: 1.12rem; }
.record-list h2 a { color: var(--ink); text-decoration: none; }
.record-list h2 a:hover { color: var(--link, var(--brand-light)); text-decoration: underline; }
.record-list p { margin: 0 0 6px; color: var(--ink-muted); font-size: .86rem; }
.record-list time { color: var(--ink-muted); font-size: .76rem; }
.tag { display: inline-block; background: var(--ground); color: var(--heading, var(--brand)); border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 700; }

/* Article ----------------------------------------------------------------- */

.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px); }
.article header { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.article h1 { margin: 0 0 8px; color: var(--heading, var(--brand)); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 3rem); }
.article header time { color: var(--ink-muted); font-size: .84rem; }
.article-media { margin: 0 0 28px; }
.article-media img { width: 100%; border-radius: var(--radius-control); }
.prose { max-width: 76ch; font-size: 1rem; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.6em 0 .5em; color: var(--heading, var(--brand)); font-size: 1.42rem; }
.prose h3 { margin: 1.4em 0 .5em; font-size: 1.16rem; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1em; padding: 14px 20px; border-left: 5px solid var(--accent); background: var(--ground); }
.attachment { margin-top: 28px; }
.back { margin-top: 24px; }
.back a { text-decoration: none; font-weight: 700; }

/* Personnel, galleries and contact --------------------------------------- */

.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.person { text-align: center; padding: 20px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.person img, .person-initial { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 13px; }
.person-initial { display: grid; place-items: center; background: var(--brand); color: var(--on-brand, #fff); font-size: 2rem; font-weight: 700; }
.person h3 { margin: 0 0 4px; font-size: 1rem; }
.person .position { margin: 0; color: var(--link, var(--brand-light)); font-size: .84rem; font-weight: 600; }
.person .contact { margin: 4px 0 0; color: var(--ink-muted); font-size: .76rem; word-break: break-word; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { padding: 11px 13px; color: var(--ink-muted); font-size: .84rem; }

/* Embedded YouTube videos inside a gallery (GalleryService::youtubeId()). Starts as
   a thumbnail link — gallery-video.js swaps it for an <iframe> of the same shape on
   click, so the aspect-ratio/sizing below applies before and after the swap. */
.gallery-video .video-play { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--heading, #0b1220); }
.gallery-video img { aspect-ratio: 16 / 9; }
.gallery-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.gallery-video .video-play-icon {
    position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 80%, transparent);
    display: flex; align-items: center; justify-content: center;
    transition: background-color .15s ease, transform .15s ease;
}
.gallery-video .video-play-icon::before {
    content: ""; margin-left: 4px; width: 0; height: 0;
    border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.gallery-video .video-play:hover .video-play-icon,
.gallery-video .video-play:focus-visible .video-play-icon { background: var(--brand); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    .gallery-video .video-play-icon { transition: none; }
}

/* Lightbox — built entirely by gallery-lightbox.js; a.gallery-photo keeps working as a
   plain link to the full-size image with JS off. */
.gallery-photo { cursor: zoom-in; }

.lightbox-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: color-mix(in srgb, var(--navy-deep) 92%, transparent);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.lightbox-overlay[hidden] { display: none; }

.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox-image { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
.lightbox-caption { color: #fff; margin: 0; text-align: center; max-width: 60ch; }
.lightbox-caption:empty { display: none; }
.lightbox-counter { color: rgba(255, 255, 255, .75); margin: 0; font-size: .84rem; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .14); color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer;
    transition: background-color 190ms var(--ease);
}
.lightbox-close[hidden], .lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover,
.lightbox-close:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible {
    background: rgba(255, 255, 255, .3);
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

body.lightbox-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

@media (max-width: 640px) {
    .lightbox-overlay { padding: 12px; }
    .lightbox-image { max-height: 68vh; }
    .lightbox-close { top: 10px; right: 10px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-close, .lightbox-prev, .lightbox-next { transition: none; }
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.contact-list dt { color: var(--heading, var(--brand)); font-weight: 700; }
.contact-list dd { margin: 0; }

/* Tables, buttons and pagination ----------------------------------------- */

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { background: var(--ground); color: var(--heading, var(--brand)); font-size: .84rem; }
.data-table tr:last-child td { border-bottom: 0; }

.button {
    display: inline-block; border: 0; border-radius: var(--radius-control);
    background: var(--brand); color: var(--on-brand, #fff); padding: 10px 18px;
    font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background 180ms var(--ease), transform 120ms var(--ease);
}
.button:hover { background: var(--brand-light); }
.button:active { transform: translateY(1px); }
.button.compact { padding: 6px 12px; font-size: .84rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
    min-width: 42px; padding: 8px 12px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); text-decoration: none;
}
.pagination span[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); font-weight: 700; }

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--brand); color: var(--on-brand, #fff); margin-top: 0; border-top: 7px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: minmax(320px, 1.5fr) minmax(180px, .6fr); gap: 40px; padding: 48px 0 34px; }
.footer-identity { display: flex; align-items: flex-start; gap: 18px; }
.footer-identity img { width: 64px; height: 64px; flex: none; object-fit: contain; background: #fff; border-radius: var(--radius-control); }
.footer-grid h2 { margin: 0 0 12px; color: var(--on-brand, #fff); font-size: 1rem; }
.footer-grid p { margin: 0 0 6px; font-size: .84rem; opacity: .82; }
.footer-grid a { color: var(--on-brand, #fff); text-decoration: none; font-size: .84rem; opacity: .82; }
.footer-grid a:hover { text-decoration: underline; opacity: 1; }
.footer-grid .plain-list li { padding: 4px 0; }
.footer-note { border-top: 1px solid color-mix(in srgb, var(--on-brand, #fff) 22%, transparent); padding: 17px 0; font-size: .76rem; }
.footer-note p { margin: 0; opacity: .72; }

/* Homepage — DMF premium digital school --------------------------------- */

.home-page main { padding-top: 24px; }
.home-page .hero {
    min-height: clamp(560px, 58vw, 700px); margin-bottom: 0;
    border: 1px solid color-mix(in srgb, var(--gold) 62%, transparent);
    border-radius: 18px; isolation: isolate;
    box-shadow: 0 28px 72px rgba(7, 29, 61, .2);
}
.home-page .school-hero-media::after {
    background:
        linear-gradient(90deg, rgba(4, 20, 45, .94) 0%, rgba(7, 29, 61, .77) 38%, rgba(7, 29, 61, .2) 72%, rgba(7, 29, 61, .08) 100%),
        linear-gradient(0deg, rgba(5, 23, 49, .42), transparent 52%);
}
.home-page .school-hero-media img { object-position: center 51%; transform: scale(1.002); }
.hero-graphics { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-graphics::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.5px);
    background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 34%); opacity: .22;
}
.hero-graphics span:first-child {
    position: absolute; width: 480px; height: 480px; left: -260px; bottom: -320px;
    border: 1px solid rgba(241, 217, 145, .5); border-radius: 50%; box-shadow: 0 0 0 64px rgba(199, 162, 75, .05);
}
.hero-graphics span:last-child {
    position: absolute; width: 1px; height: 42%; top: 0; left: 58%;
    background: linear-gradient(var(--gold-light), transparent); transform: rotate(24deg); transform-origin: top;
}
.home-page .school-hero-frame {
    z-index: 2; min-height: inherit; align-items: center; justify-content: space-between;
    gap: 36px; padding: clamp(36px, 6vw, 76px);
}
.home-page .school-hero-panel {
    display: block; width: min(690px, 68%); padding: 0; background: transparent;
    border: 0; box-shadow: none; backdrop-filter: none;
}
.hero-kicker {
    display: flex; align-items: center; gap: 10px; margin: 0 0 18px !important;
    color: var(--gold-light) !important; font-size: .86rem !important; font-weight: 700; letter-spacing: .025em;
}
.hero-kicker span { width: 36px; height: 2px; background: var(--gold); }
.home-page .hero h1 {
    max-width: 760px; margin: 0 0 18px; color: #fff;
    font-size: clamp(2.45rem, 3.9vw, 4.65rem); line-height: 1.08; letter-spacing: -.045em;
    text-shadow: 0 4px 26px rgba(0,0,0,.28);
}
.home-page .hero .school-hero-panel > p:last-of-type {
    max-width: 48ch; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(1.02rem, 1vw + .75rem, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button {
    min-height: 48px; display: inline-flex; align-items: center; gap: 12px;
    padding: 11px 20px; border: 1px solid transparent; border-radius: 6px;
    font-size: .94rem; text-decoration: none;
}
.hero-actions .button-gold { background: var(--gold); color: var(--navy-deep); }
.hero-actions .button-gold:hover { background: var(--gold-light); }
.hero-actions .button-glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.38); backdrop-filter: blur(10px); }
.hero-actions .button-glass:hover { background: rgba(255,255,255,.2); }
.hero-signature {
    align-self: flex-end; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    color: #fff; background: rgba(7,29,61,.68); border: 1px solid rgba(255,255,255,.25); border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0,0,0,.2); backdrop-filter: blur(12px);
}
.hero-signature img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 7px; }
.hero-signature span { font-size: .76rem; font-weight: 700; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }

.quick-access {
    position: relative; z-index: 3; margin: -42px 24px 0; padding: 24px;
    background: rgba(255,255,255,.96); border: 1px solid rgba(199,162,75,.3); border-radius: 14px;
    box-shadow: 0 22px 55px rgba(7,29,61,.13); backdrop-filter: blur(14px);
}
.quick-access-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.quick-access-head p, .section-heading p, .stats-intro p {
    margin: 0; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .06em;
}
.quick-access-head h2 { margin: 0; color: var(--navy-deep); font-size: 1.12rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quick-card {
    min-width: 0; min-height: 90px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center; gap: 13px; padding: 16px; color: var(--ink); background: #fff; text-decoration: none;
    transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.quick-card:hover { z-index: 1; background: var(--cream); transform: translateY(-2px); }
.quick-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); border-radius: 10px; }
.quick-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { color: var(--navy-deep); font-size: .94rem; }
.quick-card small { margin-top: 2px; color: var(--ink-muted); font-size: .72rem; line-height: 1.4; }
.quick-arrow { color: var(--gold); font-size: 1.15rem; transition: transform 180ms var(--ease); }
.quick-card:hover .quick-arrow { transform: translateX(3px); }

.announcement-strip {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch;
    margin: 30px 0 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.announcement-label { display: flex; align-items: center; gap: 9px; padding: 14px 18px; color: #fff; background: var(--navy-deep); white-space: nowrap; }
.announcement-label > span { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(199,162,75,.18); }
.announcement-label strong { font-size: .84rem; }
.announcement-items { min-width: 0; display: flex; overflow: hidden; }
.announcement-items a { min-width: 0; flex: 1; display: grid; gap: 1px; padding: 10px 16px; color: var(--ink); border-right: 1px solid var(--line); text-decoration: none; }
.announcement-items a:hover span { color: var(--brand); text-decoration: underline; }
.announcement-items time { color: var(--ink-muted); font-size: .7rem; }
.announcement-items span { overflow: hidden; font-size: .82rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.announcement-more { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--brand); font-size: .78rem; font-weight: 700; text-decoration: none; }

.home-section { margin-top: clamp(64px, 8vw, 100px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2 { margin: 5px 0 0; color: var(--navy-deep); font-size: clamp(1.8rem, 2.4vw, 2.7rem); letter-spacing: -.035em; }
.section-link, .read-more { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-size: .84rem; font-weight: 700; text-decoration: none; }
.section-link span, .read-more span { transition: transform 180ms var(--ease); }
.section-link:hover span, .read-more:hover span { transform: translateX(3px); }
.section-note { color: var(--ink-muted); font-size: .82rem; }

.banner-grid { display: grid; grid-template-columns: 1.55fr repeat(2, minmax(0, .72fr)); gap: 16px; }
.banner-card { min-width: 0; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(7,29,61,.08); }
.banner-card a { height: 100%; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.banner-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 240ms var(--ease); }
.banner-card:hover img { transform: scale(1.015); }
.banner-card figcaption { padding: 13px 15px; font-size: .84rem; font-weight: 700; }
.banner-primary { grid-row: span 2; }
.banner-primary img { flex: 1; min-height: 280px; }

.news-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card {
    min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff;
    border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 30px rgba(7,29,61,.07);
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(199,162,75,.62); box-shadow: 0 20px 46px rgba(7,29,61,.12); }
.news-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-deep); text-decoration: none; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.02); }
.news-card-placeholder { width: 100%; height: 100%; display: grid; align-content: center; justify-items: center; gap: 5px; color: rgba(255,255,255,.72); background: linear-gradient(145deg, var(--navy-deep), var(--brand)); }
.news-card-placeholder small { color: var(--gold-light); font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.news-card-placeholder strong { font-size: .78rem; }
.news-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; }
.news-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: var(--ink-muted); font-size: .7rem; }
.news-meta span { color: var(--brand); font-weight: 700; }
.news-card h3 { margin: 12px 0 8px; font-size: 1.08rem; line-height: 1.45; }
.news-card h3 a { color: var(--navy-deep); text-decoration: none; }
.news-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.news-card p { margin: 0 0 17px; color: var(--ink-muted); font-size: .82rem; line-height: 1.65; }
.news-card .read-more { margin-top: auto; }

.highlight-section, .portal-section {
    position: relative; padding: clamp(34px, 5vw, 58px); overflow: hidden;
    color: #fff; background: linear-gradient(135deg, var(--navy-deep), color-mix(in srgb, var(--brand) 82%, var(--navy-deep)));
    border-radius: 18px; box-shadow: 0 24px 60px rgba(7,29,61,.17);
}
.highlight-section::before, .portal-section::before {
    content: ""; position: absolute; width: 430px; height: 430px; right: -250px; top: -300px;
    border: 1px solid rgba(241,217,145,.26); border-radius: 50%; box-shadow: 0 0 0 54px rgba(199,162,75,.04);
}
.light-heading { position: relative; z-index: 1; }
.light-heading h2, .light-heading .section-link { color: #fff; }
.light-heading .section-note { color: rgba(255,255,255,.68); }
.highlight-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.highlight-card { min-width: 0; padding: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; backdrop-filter: blur(10px); }
.highlight-number { color: var(--gold-light); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.highlight-card h3 { margin: 22px 0 10px; font-size: 1.18rem; }
.highlight-card h3 a, .highlight-card .read-more { color: #fff; text-decoration: none; }
.highlight-card p { margin: 0 0 20px; color: rgba(255,255,255,.7); font-size: .82rem; }

.gallery-showcase { display: grid; grid-template-columns: 1.35fr repeat(2, minmax(0, .8fr)); grid-template-rows: repeat(2, 190px); gap: 14px; }
.gallery-card { min-width: 0; overflow: hidden; border-radius: 13px; background: var(--navy-deep); }
.gallery-featured { grid-row: 1 / 3; }
.gallery-media { position: relative; width: 100%; height: 100%; display: block; color: #fff; text-decoration: none; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms var(--ease); }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: .8rem; background: linear-gradient(145deg, var(--navy-deep), var(--brand)); }
.gallery-overlay { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 46px 20px 18px; background: linear-gradient(transparent, rgba(4,20,45,.92)); }
.gallery-overlay time { color: var(--gold-light); font-size: .7rem; }
.gallery-overlay strong { font-size: 1rem; }
.gallery-featured .gallery-overlay strong { font-size: 1.35rem; }
.gallery-overlay > span { font-size: .74rem; opacity: .78; }

.school-stats {
    display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr); gap: 40px; align-items: center;
    margin-top: clamp(64px, 8vw, 100px); padding: 34px 40px; background: var(--cream); border-block: 1px solid rgba(199,162,75,.35);
}
.stats-intro h2 { margin: 5px 0 0; color: var(--navy-deep); font-size: clamp(1.55rem, 2vw, 2.15rem); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.stats-grid div { padding: 14px 28px; border-left: 1px solid rgba(199,162,75,.4); }
.stats-grid dt { color: var(--ink-muted); font-size: .78rem; }
.stats-grid dd { margin: 2px 0 0; color: var(--navy-deep); font-size: 1rem; }
.stats-grid strong { color: var(--brand); font-size: clamp(2.25rem, 3.2vw, 3.5rem); line-height: 1; }

.portal-section { margin-bottom: 8px; background: var(--navy-deep); }
.portal-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 17px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.17); border-radius: 10px; text-decoration: none; transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease); }
.portal-card:hover { background: rgba(255,255,255,.13); border-color: rgba(241,217,145,.62); transform: translateY(-2px); }
.portal-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--navy-deep); background: var(--gold-light); border-radius: 9px; font-size: .82rem; font-weight: 800; }
.portal-card strong, .portal-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-card strong { font-size: .93rem; }
.portal-card small { margin-top: 2px; color: rgba(255,255,255,.6); font-size: .72rem; }
.portal-arrow { color: var(--gold-light); font-size: 1.1rem; }

.home-page .site-footer { border-top-color: var(--gold); }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 980px) {
    .header-bar { align-items: stretch; flex-direction: column; gap: 16px; }
    .search-form { width: 100%; }
    .home-grid { grid-template-columns: 1fr; }
    .home-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-rail .notice-panel { grid-row: span 2; }
    .home-page .school-hero-panel { width: min(660px, 78%); }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .announcement-items a:nth-child(n+3) { display: none; }
    .banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banner-primary { grid-column: 1 / -1; grid-row: auto; }
    .banner-primary img { min-height: 0; aspect-ratio: 16 / 7; }
    .news-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlight-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .school-stats { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .container { width: min(100% - 28px, 1220px); }
    main { padding-top: 28px; }
    .site-header { border-top-width: 4px; }
    .header-bar { min-height: 0; padding: 14px 0; }
    .brand-mark { width: 60px; height: 60px; }
    .site-nav a { min-height: 46px; padding-inline: 13px; }
    .site-nav a[aria-current="page"]::after { left: 13px; right: 13px; }
    .hero { min-height: 540px; }
    .school-hero-media img { object-position: 52% center; }
    .school-hero-frame { padding: 22px; }
    .school-hero-panel { width: min(620px, 94%); grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 22px; }
    .hero-emblem { width: 100px; height: 100px; }
    .banner-lead img { aspect-ratio: 16 / 9; }
    .banner-lead figcaption { position: static; max-width: none; border-left: 0; border-top: 4px solid var(--accent); }
    .news-feature { grid-template-columns: 1fr; }
    .news-feature-media { min-height: auto; aspect-ratio: 16 / 9; }
    .news-row { grid-template-columns: 88px minmax(0, 1fr) 40px; gap: 12px; }
    .gallery-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page main { padding-top: 16px; }
    .home-page .hero { min-height: 620px; border-radius: 14px; }
    .home-page .school-hero-media::after {
        background: linear-gradient(0deg, rgba(4,20,45,.96) 0%, rgba(7,29,61,.72) 48%, rgba(7,29,61,.06) 78%);
    }
    .home-page .school-hero-media img { object-position: 52% center; }
    .home-page .school-hero-frame { align-items: flex-end; padding: 28px; }
    .home-page .school-hero-panel { width: 100%; padding: 0; }
    .home-page .hero h1 { font-size: clamp(2.2rem, 8vw, 3.45rem); }
    .hero-signature { display: none; }
    .quick-access { margin: -18px 12px 0; padding: 18px; }
    .quick-access-head { display: block; }
    .quick-access-head p { margin-bottom: 3px; }
    .announcement-strip { grid-template-columns: auto minmax(0, 1fr); }
    .announcement-items a:nth-child(n+2), .announcement-more { display: none; }
    .section-heading { align-items: flex-start; }
    .gallery-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px 190px; }
    .gallery-featured { grid-column: 1 / -1; grid-row: auto; }
    .school-stats { padding-inline: 26px; }
}

@media (max-width: 560px) {
    .brand { align-items: flex-start; }
    .brand-mark { width: 52px; height: 52px; }
    .brand-text strong { font-size: 1.05rem; }
    .brand-text small { font-size: .76rem; }
    .search-form button { padding-inline: 13px; }
    .hero { min-height: 570px; }
    .school-hero-media img { object-position: center center; }
    .school-hero-media::after { background: linear-gradient(180deg, transparent 28%, rgba(8, 25, 54, .6) 100%); }
    .school-hero-frame { align-items: flex-end; padding: 14px; }
    .school-hero-panel { width: 100%; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 18px; border-left-width: 5px; }
    .hero-emblem { width: 72px; height: 72px; }
    .hero h1 { margin-bottom: 7px; font-size: clamp(1.62rem, 7vw, 2.15rem); }
    .hero p:last-child { font-size: .88rem; }
    .section-head { align-items: flex-start; }
    .section-head h2 { font-size: 1.34rem; }
    .more-link { padding-top: 3px; }
    .home-rail { grid-template-columns: 1fr; }
    .news-feature-body { padding: 25px 22px; }
    .news-row { grid-template-columns: 1fr 40px; }
    .news-row time { grid-column: 1 / -1; padding: 0; }
    .news-row p { display: none; }
    .gallery-preview-grid { grid-template-columns: 1fr; }
    .record-list li { flex-direction: column; align-items: stretch; }
    .article { padding: 22px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 38px; }
    .footer-identity { grid-column: auto; }
    .home-page .hero { min-height: 640px; }
    .home-page .school-hero-frame { padding: 22px; }
    .home-page .school-hero-panel { display: block; grid-template-columns: none; gap: 0; padding: 0; border-left: 0; }
    .home-page .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
    .hero-kicker { font-size: .74rem !important; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { justify-content: center; }
    .quick-access { margin-inline: 0; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-card { min-height: 82px; }
    .announcement-label { padding-inline: 13px; }
    .announcement-items a { padding-inline: 12px; }
    .home-section { margin-top: 64px; }
    .section-heading { display: grid; gap: 12px; }
    .section-heading h2 { font-size: 1.8rem; }
    .banner-grid, .news-card-grid, .highlight-grid, .portal-grid { grid-template-columns: 1fr; }
    .highlight-card:last-child:nth-child(odd) { grid-column: auto; }
    .highlight-section, .portal-section { margin-inline: -2px; padding: 30px 22px; border-radius: 14px; }
    .gallery-showcase { grid-template-columns: 1fr; grid-template-rows: repeat(3, 260px); }
    .gallery-featured { grid-column: auto; }
    .school-stats { margin-inline: -2px; padding: 28px 22px; }
    .stats-grid div { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(199,162,75,.4); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .site-nav, .search-form, .site-footer, .pagination, .back { display: none; }
    body { background: #fff; }
    main { padding: 0; }
    .article, .section { border: 0; box-shadow: none; padding: 0; }
}
