/*
Theme Name: Schatmansdorf
Theme URI: https://schatmansdorf.sk/
Author: OZ Schatmansdorf
Author URI: https://schatmansdorf.sk/
Description: Responzívna a prístupná verejná téma občianskeho združenia Schatmansdorf s integráciou členskej zóny.
Version: 1.13.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: schatmansdorf-theme
*/

:root {
    --scht-primary: #28372d;
    --scht-primary-deep: #162219;
    --scht-accent: #b66f2d;
    --scht-paper: #f5f0e6;
    --scht-paper-light: #fffdf8;
    --scht-ink: #182019;
    --scht-muted: #687069;
    --scht-line: #d7d0c2;
    --scht-container: 1180px;
    --scht-shadow: 0 22px 60px rgba(20, 29, 22, .13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--scht-ink); background: var(--scht-paper-light); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: #8a4d1c; text-underline-offset: .18em; }
a:hover { color: #572d0d; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #ecaa4e; outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.scht-container { width: min(calc(100% - 2rem), var(--scht-container)); margin-inline: auto; }
.scht-main { min-height: 55vh; overflow: hidden; }
.scht-portal-screen { background: #f4f0e6; }
.scht-portal-screen .scht-skip-link { z-index: 100003; }
.scht-portal-main { min-height: 100vh; overflow: visible; }
.scht-portal-main > .sch-app { min-height: 100vh; }
.scht-skip-link { position: fixed; left: 1rem; top: -100px; z-index: 100001; padding: .7rem 1rem; color: #111; background: #fff; border: 2px solid currentColor; }
.scht-skip-link:focus { top: 1rem; }

.scht-header { position: sticky; top: 0; z-index: 1000; color: #fff; background: rgba(22, 34, 25, .97); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.admin-bar .scht-header { top: 32px; }
.scht-header-inner { min-height: 82px; display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.5rem); }
.scht-brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; color: #fff; }
.scht-brand > a { display: grid; color: #fff; line-height: 1.12; text-decoration: none; }
.scht-brand > a > img, .scht-brand .custom-logo { width: 82px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
.scht-brand .custom-logo-link { display: flex; }
.scht-brand strong { font: 700 1.27rem Georgia, serif; letter-spacing: .025em; }
.scht-brand small { margin-top: .18rem; color: rgba(255,255,255,.65); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.scht-nav { display: flex; }
.scht-menu, .scht-nav ul { display: flex; align-items: center; gap: clamp(.2rem, 1vw, 1.1rem); padding: 0; margin: 0; list-style: none; }
.scht-menu li { position: relative; }
.scht-menu a { min-height: 44px; display: flex; align-items: center; padding: .45rem .35rem; color: rgba(255,255,255,.88); font-size: .87rem; font-weight: 650; text-decoration: none; }
.scht-menu a:hover, .scht-menu a.is-active { color: #fff; }
.scht-menu a.is-active::after { content: ""; position: absolute; left: .35rem; right: .35rem; bottom: .25rem; height: 2px; background: var(--scht-accent); }
.scht-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; display: none; padding: .5rem; background: var(--scht-primary-deep); border-radius: 0 0 8px 8px; box-shadow: var(--scht-shadow); }
.scht-menu li:hover > .sub-menu, .scht-menu li:focus-within > .sub-menu { display: block; }
.scht-member-button, .scht-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .68rem 1.08rem; color: #fff; background: var(--scht-accent); border: 1px solid var(--scht-accent); border-radius: 7px; font-weight: 750; line-height: 1.15; text-decoration: none; transition: background .2s, border .2s, transform .2s; }
.scht-member-button:hover, .scht-button:hover { color: #fff; background: #8e501f; border-color: #8e501f; transform: translateY(-1px); }
.scht-menu-toggle { display: none; min-height: 46px; align-items: center; gap: .4rem; padding: .55rem .7rem; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 7px; }

.scht-hero { position: relative; min-height: min(820px, calc(100vh - 82px)); display: grid; align-items: center; color: #fff; background: var(--scht-primary-deep); }
.scht-hero-media, .scht-hero-overlay { position: absolute; inset: 0; }
.scht-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scht-hero-overlay { background: linear-gradient(90deg, rgba(15,24,17,.94) 0%, rgba(18,29,20,.77) 48%, rgba(18,29,20,.28) 100%), linear-gradient(0deg, rgba(15,24,17,.52), transparent 40%); }
.scht-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); padding-block: clamp(5rem, 12vh, 9rem); }
.scht-hero-copy { max-width: 760px; }
.scht-hero h1 { margin: .25rem 0 1rem; font: clamp(3.1rem, 8vw, 6.7rem)/.93 Georgia, serif; letter-spacing: -.045em; }
.scht-hero h1 em { display: block; color: #e4b36f; font-weight: 400; }
.scht-hero-copy > p:not(.scht-kicker) { max-width: 690px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.25rem); }
.scht-kicker { margin: 0 0 .5rem; color: var(--scht-accent); font-size: .73rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.scht-kicker-light { color: #e2b16d; }
.scht-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
.scht-button-light { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.scht-button-light:hover { background: #fff; border-color: #fff; color: var(--scht-primary-deep); }
.scht-button-outline { color: var(--scht-primary); background: transparent; border-color: var(--scht-primary); }
.scht-button-outline:hover { background: var(--scht-primary); border-color: var(--scht-primary); color: #fff; }
.scht-hero-seal { justify-self: end; width: min(390px, 100%); padding: 1.35rem 1.35rem 1.05rem; background: radial-gradient(circle at 50% 35%, rgba(86,108,89,.28), rgba(13,24,16,.82) 72%); border: 1px solid rgba(228,179,111,.48); border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.32); text-align: center; backdrop-filter: blur(8px); }
.scht-hero-seal img { width: 100%; max-height: 310px; object-fit: contain; filter: drop-shadow(0 13px 22px rgba(0,0,0,.42)); }
.scht-hero-seal p { margin: .35rem 0 0; padding-top: .75rem; color: #f0d6ad; border-top: 1px solid rgba(228,179,111,.28); font: .8rem Georgia, serif; letter-spacing: .12em; text-transform: uppercase; }
.scht-scroll-cue { position: absolute; z-index: 1; right: clamp(1rem, 5vw, 4rem); bottom: 1.5rem; display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.scht-scroll-cue b { font-size: 1.4rem; }
.scht-main section[id], .scht-footer[id] { scroll-margin-top: 90px; }

.scht-intro { padding: clamp(4rem, 10vw, 8rem) 0; background: var(--scht-paper-light); }
.scht-intro-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); }
.scht-intro h2, .scht-section-head h2, .scht-gallery-copy h2, .scht-membership h2 { margin: .2rem 0; font: clamp(2.3rem, 5.5vw, 4.5rem)/1.02 Georgia, serif; letter-spacing: -.035em; }
.scht-lead { color: #333d35; font-size: clamp(1.15rem, 2.2vw, 1.42rem); line-height: 1.55; }
.scht-text-link { display: inline-flex; min-height: 44px; align-items: center; color: #7b4217; font-weight: 800; text-decoration: none; }
.scht-text-link:hover { text-decoration: underline; }

.scht-activities { padding: clamp(4rem, 9vw, 7rem) 0; color: #fff; background: var(--scht-primary); }
.scht-section-head { max-width: 760px; margin-bottom: 2.2rem; }
.scht-section-head > p:not(.scht-kicker) { color: rgba(255,255,255,.72); }
.scht-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.scht-activity-card { overflow: hidden; color: var(--scht-ink); background: var(--scht-paper); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.scht-activity-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.scht-activity-card > div { position: relative; padding: 1.35rem; }
.scht-activity-card span { position: absolute; right: 1rem; top: .8rem; color: #c5bdad; font: 2.2rem Georgia, serif; }
.scht-activity-card h3 { max-width: 75%; margin: 0 0 .55rem; font: 1.55rem Georgia, serif; }
.scht-activity-card p { margin: 0; color: #535c54; font-size: .94rem; }
.scht-anchor-target { position: relative; top: -110px; display: block; visibility: hidden; }
.scht-category-project-list { display: grid; gap: .45rem; padding: .9rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--scht-line); list-style: none; }
.scht-project-link { width: 100%; min-height: 42px; padding: .45rem .6rem; color: #6f3d18; background: #f5eee3; border: 1px solid #dac8b2; border-radius: 7px; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.scht-project-link:hover { color: #fff; background: var(--scht-accent); border-color: var(--scht-accent); }
.scht-centered { margin: 2rem 0 0; text-align: center; }
.scht-activities .scht-button-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.scht-activities .scht-button-outline:hover { color: var(--scht-primary); background: #fff; border-color: #fff; }

.scht-project-dialog { width: min(760px, calc(100% - 2rem)); max-height: min(86vh, 850px); padding: 0; color: var(--scht-ink); background: var(--scht-paper-light); border: 0; border-radius: 14px; box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.scht-project-dialog::backdrop { background: rgba(16,24,19,.78); backdrop-filter: blur(3px); }
.scht-project-dialog[open] { animation: scht-dialog-in .2s ease-out; }
.scht-project-dialog > img { display: block; width: 100%; max-height: 430px; aspect-ratio: 16 / 9; object-fit: cover; }
.scht-project-dialog-copy { padding: clamp(1.3rem, 4vw, 2.2rem); }
.scht-project-dialog-copy h3 { margin: .2rem 2.5rem .8rem 0; color: var(--scht-primary); font: clamp(2rem, 5vw, 3.4rem)/1.04 Georgia, serif; }
.scht-project-dialog-copy p { color: var(--scht-muted); }
.scht-project-dialog-close { position: absolute; z-index: 2; top: .75rem; right: .75rem; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(25,37,29,.88); border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.scht-project-dialog-close:hover { background: var(--scht-accent); }
body.scht-project-dialog-open { overflow: hidden; }
@keyframes scht-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.scht-projects { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--scht-paper-light); }
.scht-projects .scht-section-head > p:not(.scht-kicker) { color: var(--scht-muted); }
.scht-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.scht-project-grid article { position: relative; min-height: 240px; padding: 1.4rem; background: var(--scht-paper); border: 1px solid var(--scht-line); border-top: 4px solid var(--scht-accent); border-radius: 10px; box-shadow: 0 13px 36px rgba(31,38,32,.09); }
.scht-project-grid article > span { position: absolute; right: 1rem; top: .75rem; color: #c5bdad; font: 2.25rem Georgia, serif; }
.scht-project-grid h3 { max-width: 78%; margin: 0 0 .8rem; font: 1.65rem Georgia, serif; }
.scht-project-grid p { color: var(--scht-muted); }
.scht-project-grid p:last-child { margin-bottom: 0; }

.scht-events { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--scht-paper); }
.scht-events .scht-section-head { max-width: none; }
.scht-section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.scht-event-list { border-top: 1px solid var(--scht-line); }
.scht-event-list article { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); padding: 1.4rem .4rem; border-bottom: 1px solid var(--scht-line); }
.scht-event-list article.has-image { grid-template-columns: 110px minmax(190px, 300px) minmax(0, 1fr); }
.scht-event-list-image { display: block; overflow: hidden; border-radius: 10px; box-shadow: 0 12px 32px rgba(31,38,32,.14); }
.scht-event-list-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease; }
.scht-event-list-image:hover img { transform: scale(1.035); }
.scht-event-list time { display: grid; color: var(--scht-accent); text-align: center; }
.scht-event-list time strong { font: 3.4rem/.9 Georgia, serif; }
.scht-event-list time span { margin-top: .25rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.scht-event-list h3 { margin: 0; font: clamp(1.35rem, 2.5vw, 1.9rem) Georgia, serif; }
.scht-event-list h3 a { color: var(--scht-ink); text-decoration: none; }
.scht-event-list p { margin: .2rem 0; color: var(--scht-muted); }
.scht-event-dates { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .8rem 0; list-style: none; }
.scht-event-dates li { padding: .35rem .55rem; color: var(--scht-primary-deep); background: #ece8dc; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.scht-round-link { width: 48px; height: 48px; display: grid; place-items: center; color: var(--scht-primary); border: 1px solid var(--scht-primary); border-radius: 50%; font-size: 1.4rem; text-decoration: none; }
.scht-round-link:hover { color: #fff; background: var(--scht-primary); }
.scht-program-notice { display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem; background: #fff; border: 1px solid var(--scht-line); border-radius: 12px; }
.scht-program-notice img { width: 100px; height: 100px; object-fit: contain; }
.scht-program-notice h3 { margin: 0; font: 1.6rem Georgia, serif; }
.scht-program-notice p { margin: .25rem 0; color: var(--scht-muted); }

.scht-gallery-teaser { padding: clamp(4rem, 9vw, 7rem) 0; color: #fff; background: var(--scht-primary-deep); }
.scht-gallery-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.scht-gallery-copy p:not(.scht-kicker) { color: rgba(255,255,255,.74); }
.scht-gallery-grid figure { position: relative; margin: 0; }
.scht-gallery-grid figure::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(255,255,255,.24); }
.scht-gallery-grid figure img { position: relative; width: 100%; min-height: 420px; object-fit: cover; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.scht-membership { padding: clamp(3rem, 7vw, 5rem) 0; background: #dfd3bf; }
.scht-membership-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.scht-membership h2 { max-width: 690px; font-size: clamp(2.1rem, 4.5vw, 3.7rem); }
.scht-membership p:not(.scht-kicker) { max-width: 700px; }

.scht-footer { padding: clamp(3.5rem, 8vw, 6rem) 0 1.2rem; color: #fff; background: #111b14; }
.scht-footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: clamp(2rem, 6vw, 5rem); }
.scht-footer h2 { margin: .2rem 0; font: clamp(2rem, 4vw, 3.3rem)/1.05 Georgia, serif; }
.scht-footer h3 { margin-top: 0; color: #e2b16d; font-family: Georgia, serif; }
.scht-footer p, .scht-footer address { color: rgba(255,255,255,.68); font-style: normal; }
.scht-footer a { color: rgba(255,255,255,.86); }
.scht-footer ul { padding: 0; list-style: none; }
.scht-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.14); }
.scht-footer-bottom p { margin: 0; font-size: .78rem; }

.scht-page-hero { padding: clamp(4rem, 10vw, 8rem) 0; color: #fff; background: linear-gradient(135deg, var(--scht-primary-deep), var(--scht-primary)); }
.scht-page-hero h1, .scht-event-hero h1, .scht-error-page h1 { max-width: 900px; margin: .25rem 0; font: clamp(2.8rem, 7vw, 5.8rem)/.98 Georgia, serif; letter-spacing: -.04em; }
.scht-page-hero p:not(.scht-kicker), .scht-event-hero p:not(.scht-kicker) { max-width: 720px; color: rgba(255,255,255,.75); font-size: 1.13rem; }
.scht-prose { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); font-size: 1.06rem; }
.scht-prose > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.scht-prose > .alignwide { max-width: 1100px; }
.scht-prose > .alignfull { max-width: none; }
.scht-prose h2 { margin-top: 2.2rem; font: clamp(1.8rem, 4vw, 2.7rem) Georgia, serif; }
.scht-prose h3 { font: 1.5rem Georgia, serif; }
.scht-prose blockquote { padding: 1rem 1.3rem; color: #445047; border-left: 4px solid var(--scht-accent); background: var(--scht-paper); }
.scht-prose .wp-element-button { color: #fff; background: var(--scht-primary); }
.scht-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-bottom: 6rem; }
.scht-gallery figure { margin: 0; background: var(--scht-paper); }
.scht-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.scht-gallery figcaption { padding: .7rem; font-weight: 700; text-align: center; }

.scht-content-layout, .scht-event-archive { padding-top: 4rem; padding-bottom: 6rem; }
.scht-post-list { max-width: 900px; }
.scht-page-header { margin-bottom: 2rem; }
.scht-page-header h1 { font: 3.5rem Georgia, serif; }
.scht-post-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.3rem; padding: 1rem 0; border-bottom: 1px solid var(--scht-line); }
.scht-post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.scht-post-card h2 { margin: .2rem 0; font-family: Georgia, serif; }
.scht-post-card h2 a { color: var(--scht-ink); text-decoration: none; }
.scht-post-meta { margin: 0; color: var(--scht-accent); font-size: .78rem; font-weight: 700; }
.scht-empty { padding: 2rem; background: var(--scht-paper); border: 1px dashed var(--scht-line); border-radius: 10px; text-align: center; }

.scht-event-hero { padding: clamp(4rem, 11vw, 9rem) 0; color: #fff; background-color: var(--scht-primary-deep); background-size: cover; background-position: center; }
.scht-event-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.scht-event-detail-grid .scht-prose { width: 100%; }
.scht-event-sidebar { position: sticky; top: 110px; padding: 1.25rem; margin-top: 3rem; margin-bottom: 4rem; background: var(--scht-paper); border-top: 4px solid var(--scht-accent); box-shadow: var(--scht-shadow); }
.scht-event-sidebar h2 { margin-top: 0; font-family: Georgia, serif; }
.scht-event-sidebar section { padding-top: 1rem; border-top: 1px solid var(--scht-line); }
.scht-event-date { display: grid; }
.scht-event-date strong { font: 1.35rem Georgia, serif; }
.scht-event-sidebar dl div { display: grid; grid-template-columns: 85px 1fr; gap: .5rem; margin: .45rem 0; }
.scht-event-sidebar dt { color: var(--scht-muted); }
.scht-event-sidebar dd { margin: 0; }
.scht-event-archive { display: grid; gap: 1.2rem; }
.scht-event-archive-card { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); overflow: hidden; background: #fff; border: 1px solid var(--scht-line); border-radius: 10px; }
.scht-event-archive-card img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.scht-event-archive-card > div { padding: clamp(1.2rem, 3vw, 2rem); }
.scht-event-archive-card h2 { margin: .25rem 0; font: clamp(1.7rem, 3vw, 2.5rem) Georgia, serif; }
.scht-event-archive-card h2 a { color: var(--scht-ink); text-decoration: none; }
.scht-error-page { padding: clamp(5rem, 14vw, 10rem) 0; text-align: center; }
.scht-error-page h1 { margin-inline: auto; }

.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: .4rem; border: 1px solid var(--scht-line); text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--scht-primary); }

@media (max-width: 1100px) {
    .scht-menu-toggle { display: flex; order: 2; }
    .scht-member-button { order: 3; }
    .scht-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: .75rem 1rem 1rem; background: var(--scht-primary-deep); box-shadow: 0 16px 30px rgba(0,0,0,.25); }
    .scht-nav.is-open { display: block; }
    .scht-menu, .scht-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
    .scht-menu a { padding: .65rem; }
    .scht-menu .sub-menu { position: static; display: block; padding-left: 1rem; box-shadow: none; }
    .scht-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scht-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scht-activity-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .scht-activity-card:last-child img { height: 100%; }
}

@media (max-width: 782px) {
    .admin-bar .scht-header { top: 46px; }
}

@media (max-width: 760px) {
    .scht-header-inner { min-height: 72px; flex-wrap: wrap; }
    .scht-brand > a > img, .scht-brand .custom-logo { width: 54px; height: 48px; }
    .scht-brand small { display: none; }
    .scht-member-button { min-height: 42px; padding: .55rem .72rem; font-size: .78rem; }
    .scht-menu, .scht-nav ul { grid-template-columns: 1fr; }
    .scht-hero { min-height: 720px; }
    .scht-hero-inner { grid-template-columns: 1fr; padding-block: 4rem 6rem; }
    .scht-hero-seal { display: none; }
    .scht-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .scht-intro-grid, .scht-gallery-grid, .scht-event-detail-grid, .scht-event-archive-card, .scht-post-card { grid-template-columns: 1fr; }
    .scht-activity-grid { grid-template-columns: 1fr; }
    .scht-project-grid { grid-template-columns: 1fr; }
    .scht-activity-card:last-child { grid-column: auto; display: block; }
    .scht-section-head-row, .scht-membership-inner, .scht-footer-bottom { display: grid; }
    .scht-event-list article { grid-template-columns: 72px minmax(0, 1fr); }
    .scht-event-list article.has-image { grid-template-columns: 72px minmax(0, 1fr); }
    .scht-event-list article.has-image .scht-event-list-image { grid-column: 1 / -1; grid-row: 1; }
    .scht-event-list time strong { font-size: 2.6rem; }
    .scht-round-link { display: none; }
    .scht-gallery-grid figure img { min-height: 300px; }
    .scht-footer-grid { grid-template-columns: 1fr; }
    .scht-gallery { grid-template-columns: 1fr; }
    .scht-event-sidebar { position: static; margin-top: 0; }
    .scht-event-archive-card img { min-height: 220px; }
}

@media (max-width: 480px) {
    .scht-container { width: min(calc(100% - 1.25rem), var(--scht-container)); }
    .scht-brand strong { font-size: 1rem; }
    .scht-member-button { width: 46px; overflow: hidden; color: transparent; }
    .scht-member-button::before { content: "♙"; color: #fff; font-size: 1.2rem; }
    .scht-menu-toggle span:last-child { display: none; }
    .scht-actions .scht-button { width: 100%; }
    .scht-program-notice { display: grid; text-align: center; }
    .scht-program-notice img { margin: auto; }
}

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