@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --brown: #4a2f1e;
  --brown-dark: #27170f;
  --brown-soft: #79583f;
  --green: #164b2d;
  --green-dark: #0e3620;
  --gold: #c79a4a;
  --gold-light: #e5c985;
  --papyrus: #f6f0e5;
  --cream: #fbf8f1;
  --white: #fffdfa;
  --ink: #1f1a16;
  --muted: #6f665f;
  --line: #d8cdbf;
  --line-dark: #ffffff2e;
  --display: 'Aref Ruqaa', Georgia, serif;
  --body: Tajawal, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.8;
}
body, button, input, textarea, select { font-family: var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; right: -999px; z-index: 100; background: var(--white); color: var(--green); padding: 8px 16px; border: 2px solid var(--gold); }
.skip:focus { right: 12px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.topline { background: var(--brown); color: #f8ead4; font-size: .78rem; }
.topline .shell { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { min-height: 82px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; color: var(--brown); }
.brand img { width: 64px; height: 64px; object-fit: contain; margin-left: 10px; }
.brand > span { font: 700 1.22rem/1.15 var(--display); }
.brand small { display: block; margin-top: 4px; color: var(--green); font: 700 .82rem/1 var(--body); }
.menu { display: flex; align-items: stretch; align-self: stretch; gap: 4px; margin-right: auto; }
.menu a { position: relative; display: grid; place-items: center; padding: 0 11px; color: #3c342e; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.menu a::after { content: ''; position: absolute; right: 14px; bottom: 22px; width: 0; height: 2px; background: var(--green); transition: width .2s ease; }
.menu a:hover::after, .menu a[aria-current='page']::after { width: calc(100% - 28px); }
.contact-link, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 20px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 800; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.contact-link:hover, .button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.outline { background: transparent; color: var(--green); }
.button.outline:hover { background: var(--green); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 42px; margin-right: auto; padding: 10px; border: 1px solid var(--line); background: var(--white); }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--brown); }
.search-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); color: var(--green); font-weight: 800; }
.search-link:hover { border-color: var(--green); background: var(--papyrus); }

.eyebrow { display: block; margin-bottom: 12px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.eyebrow.light { color: var(--gold-light); }
.section { padding: 88px 0; }
.section h2, .visit-section h2 { margin: 0; color: var(--brown); font: 700 clamp(2rem, 3.5vw, 3.3rem)/1.3 var(--display); }
.section-head { margin-bottom: 42px; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.row-head > p { max-width: 520px; margin: 0 0 8px; color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.18rem; color: #41382f; }
.text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--green); color: var(--green); font-weight: 800; padding-bottom: 4px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-5px); }
.light-link { color: #fff; border-color: #ffffff80; }

.hero { position: relative; background: var(--papyrus); padding: 30px 0 38px; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 31%; height: 12px; background: var(--gold); }
.hero-layout { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); align-items: stretch; gap: 20px; }
.hero-copy { position: relative; z-index: 2; display: grid; align-content: center; min-height: 510px; padding: 48px; background: var(--green); color: #fff; }
.hero-copy::after { content: ''; position: absolute; bottom: 0; right: 0; width: 96px; height: 5px; background: var(--gold); }
.hero h1 { max-width: 620px; margin: 0; font: 700 clamp(2.8rem, 4.5vw, 4.75rem)/1.1 var(--display); letter-spacing: -.02em; }
.hero-copy p { max-width: 590px; margin: 18px 0 15px; color: #edf3ee; font-size: 1.02rem; line-height: 1.85; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--gold-light); font-size: .8rem; font-weight: 800; }
.hero-facts li { position: relative; padding-right: 14px; }
.hero-facts li::before { content: ''; position: absolute; top: .72em; right: 0; width: 5px; height: 5px; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--brown-dark); }
.button.gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.hero-media { position: relative; margin: 0; min-height: 510px; height: 510px; border: 1px solid #c5b8a8; background: var(--brown); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-media figcaption { position: absolute; left: 0; bottom: 0; max-width: 370px; padding: 16px 24px; background: var(--white); color: var(--brown); font-size: .9rem; font-weight: 700; }
.hero-media figcaption span { color: var(--green); margin-left: 12px; }

.upcoming { background: var(--brown); color: #fff; border-top: 1px solid #ffffff1f; }
.upcoming-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); align-items: stretch; gap: 0; }
.upcoming-media { min-height: 360px; margin: 0; overflow: hidden; background: #20150f; }
.upcoming-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.upcoming-copy { display: flex; flex-direction: column; justify-content: center; padding: 46px 52px; }
.event-label { padding: 8px 12px; border: 1px solid var(--gold); color: var(--gold-light); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.upcoming h2 { margin: 16px 0 6px; font: 700 clamp(2rem, 4vw, 3.4rem)/1.3 var(--display); }
.upcoming p { margin: 2px 0 0; color: #eadfd7; }
.upcoming small { display: block; color: var(--gold-light); }
.upcoming-meta { color: var(--gold-light) !important; font-weight: 800; }
.upcoming-details { margin: 18px 0 24px; color: #f6eee7; line-height: 1.9; }
.upcoming-details p { color: inherit; }
.light-button { border-color: #ffffffb5; background: transparent; color: #fff; }
.light-button:hover { background: #fff; border-color: #fff; color: var(--brown); }

.intro-section { background: var(--white); }
.editorial-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(360px, 5fr); gap: 72px; align-items: center; }
.editorial-copy { position: relative; padding-right: 40px; border-right: 2px solid var(--gold); }
.section-number { display: block; margin-bottom: 14px; color: var(--gold); font: 700 3.8rem/1 var(--display); }
.editorial-copy p { max-width: 690px; color: var(--muted); }
.editorial-copy .lead { color: #3d342d; }
.founder-figure { position: relative; margin: 0; padding: 18px 0 0 18px; }
.founder-figure::before { content: ''; position: absolute; top: 0; left: 0; width: 55%; height: 54%; background: var(--papyrus); border: 1px solid var(--line); }
.founder-figure img { position: relative; width: 100%; height: 340px; object-fit: cover; object-position: center top; }
.founder-figure figcaption { position: relative; width: 82%; margin: -20px 18px 0 0; padding: 13px 18px; background: var(--brown); color: #fff; font-size: .85rem; }

.programs-section { background: var(--papyrus); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.activity-card { display: block; background: var(--white); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.activity-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.activity-card > img { width: 100%; height: 248px; object-fit: cover; object-position: center 42%; }
.activity-card:nth-child(2) > img { object-position: center 38%; }
.activity-card:nth-child(3) > img { object-position: center 45%; }
.activity-card:nth-child(4) > img,
.activity-card:nth-child(5) > img { object-position: center 40%; }
.activity-card > div { position: relative; min-height: 168px; padding: 22px 24px 24px; border-top: 3px solid var(--green); }
.activity-card > div > span { color: var(--gold); font-size: .8rem; font-weight: 800; }
.activity-card h3 { margin: 4px 0 6px; color: var(--brown); font: 700 1.55rem/1.35 var(--display); }
.activity-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }

.metrics { background: var(--green); color: #fff; }
.metrics-grid { min-height: 190px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.metrics-grid > div { min-height: 92px; display: grid; place-content: center; text-align: center; border-left: 1px solid #ffffff2e; }
.metrics-grid > div:last-child { border-left: 0; }
.metrics strong { display: block; color: var(--gold-light); font: 700 3rem/1 var(--display); }
.metrics span { margin-top: 9px; color: #ecf4ef; font-weight: 700; }

.competition-promo { padding: 0; background: var(--brown); color: #fff; }
.competition-promo-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); align-items: stretch; }
.competition-promo figure { position: relative; min-height: 460px; margin: 0; overflow: hidden; }
.competition-promo figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.competition-promo figcaption { position: absolute; right: 0; bottom: 0; padding: 12px 20px; background: var(--white); color: var(--brown); font-size: .85rem; font-weight: 800; }
.competition-promo-layout > div { display: grid; align-content: center; padding: 56px; background: var(--green); }
.competition-promo h2 { margin: 0; color: #fff; font: 700 clamp(2.2rem, 4vw, 3.8rem)/1.25 var(--display); }
.competition-promo p { max-width: 520px; margin: 18px 0 28px; color: #e8f0ea; }
.competition-promo .button { justify-self: start; }

.competition-hero { padding: 54px 0; background: var(--papyrus); border-bottom: 1px solid var(--line); }
.competition-hero-layout { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); align-items: center; gap: 56px; }
.competition-hero h1 { margin: 0; color: var(--brown); font: 700 clamp(3rem, 5.5vw, 5.5rem)/1.12 var(--display); }
.competition-hero p { max-width: 610px; color: var(--muted); font-size: 1.12rem; }
.competition-hero figure { margin: 0; height: 510px; overflow: hidden; border: 1px solid var(--line); }
.competition-hero figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.competition-status { padding: 28px 0; background: var(--green); color: #fff; }
.competition-status .shell { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.competition-status strong { color: var(--gold-light); font: 700 1.45rem/1.3 var(--display); }
.competition-status p { margin: 0; color: #e8f0ea; }
.competition-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: fields; }
.competition-field { padding: 30px; background: var(--white); border: 1px solid var(--line); }
.competition-field::before { counter-increment: fields; content: '0' counter(fields); display: block; margin-bottom: 18px; color: var(--gold); font-weight: 800; }
.competition-field h3 { margin: 0 0 8px; color: var(--brown); font: 700 1.55rem/1.4 var(--display); }
.competition-field p { margin: 0; color: var(--muted); }
.competition-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.competition-step { padding: 28px 24px; border-left: 1px solid var(--line); }
.competition-step:last-child { border-left: 0; }
.competition-step span { display: block; color: var(--gold); font: 700 2.2rem/1 var(--display); }
.competition-step h3 { margin: 12px 0 5px; color: var(--brown); font: 700 1.3rem/1.4 var(--display); }
.competition-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.competitions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.competition-card { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); min-height: 330px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.competition-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 34px #27170f12; }
.competition-card figure { margin: 0; min-height: 100%; overflow: hidden; background: var(--papyrus); }
.competition-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.competition-card:hover figure img { transform: scale(1.025); }
.competition-card-body { display: grid; align-content: center; padding: 30px; }
.competition-card-status { justify-self: start; margin-bottom: 13px; padding: 5px 9px; border: 1px solid var(--green); color: var(--green); font-size: .72rem; font-weight: 800; }
.competition-card h3 { margin: 0 0 10px; color: var(--brown); font: 700 1.8rem/1.35 var(--display); }
.competition-card h3 a { color: inherit; }
.competition-card p { margin: 0 0 17px; color: var(--muted); }
.competition-card time { display: block; margin-bottom: 14px; color: var(--brown-soft); font-size: .82rem; font-weight: 700; }
.competition-card-details { margin-bottom: 18px; color: var(--muted); font-size: .9rem; white-space: pre-line; }
.competition-card-details p { margin: 0; }
.rules-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(360px, 7fr); gap: 72px; align-items: start; }
.rules-list { margin: 0; padding: 0; list-style: none; counter-reset: rules; }
.rules-list li { position: relative; padding: 18px 64px 18px 0; border-bottom: 1px solid var(--line); }
.rules-list li::before { counter-increment: rules; content: counter(rules); position: absolute; top: 17px; right: 0; display: grid; place-items: center; width: 38px; height: 38px; background: var(--brown); color: #fff; font-weight: 800; }

.statement { background: var(--brown); color: #fff; padding: 68px 0; }
.statement-layout { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 18px; }
.statement-layout > span { color: var(--gold); font: 700 6.5rem/.6 var(--display); text-align: center; }
.statement p { max-width: none; margin: 0; font: 700 clamp(1.65rem, 2.35vw, 2.35rem)/1.45 var(--display); }
@media (min-width: 1081px) { .statement p { white-space: nowrap; } }

.news-section { background: var(--cream); }
.news-grid, .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card, .person-card, .content-card { background: var(--white); border: 1px solid var(--line); }
.news-card { overflow: hidden; }
.news-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.news-card-body { padding: 24px; }
.news-card time { color: var(--green); font-size: .82rem; font-weight: 700; }
.news-card h3, .person-card h3, .content-card h3 { margin: 8px 0; color: var(--brown); font: 700 1.45rem/1.45 var(--display); }
.news-card p { margin: 0 0 18px; color: var(--muted); }
.news-card .text-link { font-size: .9rem; }
.person-card, .content-card { padding: 26px; }
.person-card > img { width: calc(100% + 52px); max-width: none; aspect-ratio: 1 / 1; margin: -26px -26px 20px; object-fit: cover; }
.person-card p, .content-card p { margin-bottom: 0; color: var(--muted); }

.visit-section { background: var(--green); color: #fff; padding: 76px 0; }
.visit-layout { display: grid; grid-template-columns: minmax(330px, 4fr) minmax(0, 8fr); gap: 70px; align-items: center; }
.visit-section h2 { color: #fff; }
.visit-section p { max-width: 520px; margin: 18px 0 28px; color: #e6efe9; font-size: 1.08rem; }
.visit-gallery { height: 430px; display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.visit-gallery img { width: 100%; height: 100%; object-fit: cover; }
.visit-gallery img:first-child { object-position: center 42%; }
.visit-gallery img:nth-child(2) { object-position: center 38%; }
.visit-gallery img:nth-child(3) { object-position: center 45%; }
.visit-gallery img:first-child { grid-row: 1 / 3; }

.site-footer { padding: 52px 0 18px; background: var(--brown-dark); color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(340px, 1.45fr) minmax(230px, .9fr); gap: 42px; align-items: start; }
.footer-brand-lockup { display: flex; align-items: center; gap: 18px; }
.footer-brand-lockup img { flex: 0 0 auto; width: 88px; height: 88px; object-fit: contain; background: #fff; }
.footer-brand-lockup strong { display: block; color: #fff; font: 700 1.45rem/1.25 var(--display); }
.footer-brand-lockup span { display: block; margin-top: 5px; color: var(--gold-light); font-size: .78rem; }
.footer-brand > p { max-width: 330px; margin-top: 18px; }
.footer-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.site-footer h2 { margin: 0 0 18px; color: var(--gold-light); font: 700 1.25rem/1.3 var(--display); }
.site-footer a, .site-footer p { display: block; margin: 7px 0; color: #e7dcd5; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact { padding-right: 28px; border-right: 1px solid var(--line-dark); }
.footer-hours { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.footer-search { display: inline-flex !important; margin-top: 13px !important; color: var(--gold-light) !important; font-weight: 800; }
.copyright { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: #bfaea2; font-size: .78rem; }

.page-hero { position: relative; padding: 78px 0 70px; background: var(--green); color: #fff; border-bottom: 8px solid var(--gold); }
.page-hero::after { content: ''; position: absolute; left: 8%; bottom: 0; width: 170px; height: 1px; background: #ffffff73; }
.page-hero h1 { max-width: 900px; margin: 0; color: #fff; font: 700 clamp(2.6rem, 6vw, 5.2rem)/1.16 var(--display); }
.page-hero .eyebrow { color: var(--gold-light); }
.prose { max-width: 800px; font-size: 1.05rem; }
.prose h2 { margin: 2rem 0 .7rem; color: var(--brown); font: 700 2.1rem/1.35 var(--display); }
.alphabet { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 32px; }
.alphabet a, .alphabet button { min-width: 42px; padding: 6px 12px; background: var(--white); border: 1px solid var(--line); color: var(--brown); font: inherit; text-align: center; cursor: pointer; }
.alphabet a:hover, .alphabet button:hover { background: var(--green); border-color: var(--green); color: #fff; }
.alphabet a.is-unavailable, .alphabet button.is-unavailable { cursor: default; background: #f1ece3; color: #9d958e; border-color: #e2d9cc; }
.alphabet a.is-unavailable:hover, .alphabet button.is-unavailable:hover { background: #f1ece3; color: #9d958e; border-color: #e2d9cc; }
.map-placeholder, .empty { padding: 24px; border: 1px dashed var(--brown-soft); color: var(--brown); background: var(--white); }

.admin-layout { min-height: 100vh; padding: 24px 0; background: var(--papyrus); }
.admin-preview-mode::before { content: 'معاينة تصميم لوحة الإدارة — الحفظ متاح بعد تسجيل الدخول'; display: block; width: min(1240px, calc(100% - 40px)); margin: 0 auto 10px; padding: 7px 14px; border: 1px solid var(--gold); background: #fff7df; color: var(--brown); text-align: center; font-size: .78rem; font-weight: 800; }
.admin-card { width: min(660px, 100%); margin: 7vh auto; padding: 34px; background: var(--white); border-top: 5px solid var(--green); }
label { display: block; margin: 12px 0 4px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
.status { min-height: 1.7rem; color: var(--brown); }

@media (max-width: 1080px) {
  .menu a { padding-inline: 9px; font-size: .84rem; }
  .contact-link { padding-inline: 14px; }
  .hero-layout { grid-template-columns: minmax(330px, 5fr) minmax(0, 7fr); }
  .hero-copy { padding-inline: 36px; }
  .footer-grid { grid-template-columns: 1fr 1.15fr; }
  .footer-contact { grid-column: 1 / 3; padding: 24px 0 0; border-top: 1px solid var(--line-dark); border-right: 0; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 720px); }
  .topline span:last-child { display: none; }
  .topline .shell { justify-content: center; }
  .nav { min-height: 76px; }
  .brand img { width: 56px; height: 56px; }
  .nav-toggle { display: block; }
  .menu { display: none; position: absolute; top: 76px; right: 0; left: 0; align-self: auto; padding: 12px 14px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
  .menu.open { display: grid; }
  .menu a { display: block; padding: 11px 4px; border-bottom: 1px solid #eee5d9; font-size: .95rem; }
  .menu a::after { display: none; }
  .contact-link { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 20px 0 36px; }
  .hero-layout { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-media { width: 100%; min-height: 0; height: clamp(340px, 66vw, 460px); }
  .hero-copy { width: 100%; margin: 0; padding: 38px 30px 40px; align-self: stretch; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .upcoming-layout { grid-template-columns: 1fr; }
  .upcoming-media, .upcoming-media img { min-height: 330px; max-height: 440px; }
  .editorial-split, .visit-layout { grid-template-columns: 1fr; gap: 48px; }
  .competition-promo-layout, .competition-hero-layout, .rules-layout { grid-template-columns: 1fr; gap: 0; }
  .competition-promo figure { min-height: 390px; }
  .competition-promo-layout > div { padding: 44px 36px; }
  .competition-hero-layout { gap: 36px; }
  .competition-hero figure { height: 440px; }
  .competition-status .shell { display: flex; }
  .competition-fields, .competitions-list { grid-template-columns: 1fr 1fr; }
  .competition-card { grid-template-columns: 1fr; }
  .competition-card figure { min-height: 250px; }
  .competition-steps { grid-template-columns: 1fr 1fr; }
  .competition-step:nth-child(2) { border-left: 0; }
  .competition-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .editorial-copy { padding-right: 24px; }
  .activity-grid, .news-grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-card > img { height: 230px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); padding: 24px 0; }
  .metrics-grid > div { border-left: 1px solid #ffffff2e; }
  .metrics-grid > div:nth-child(3) { border-left: 0; }
  .statement-layout { grid-template-columns: 65px 1fr; }
  .statement-layout > span { font-size: 6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 520px); }
  .brand > span { font-size: 1rem; }
  .hero { padding-bottom: 38px; }
  .hero-media { height: clamp(260px, 68vw, 380px); }
  .hero-media figcaption { max-width: calc(100% - 22px); padding: 11px 14px; }
  .hero-copy { width: 100%; margin-top: 0; padding: 32px 22px 36px; }
  .hero-copy p { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .upcoming-copy { padding: 34px 24px; }
  .upcoming-media, .upcoming-media img { min-height: 260px; }
  .row-head { display: block; }
  .row-head > p, .row-head > .text-link { margin-top: 18px; }
  .activity-grid, .news-grid, .grid { grid-template-columns: 1fr; }
  .competition-promo figure { min-height: 280px; }
  .competition-promo-layout > div { padding: 36px 24px; }
  .competition-hero { padding: 34px 0; }
  .competition-hero figure { height: 300px; }
  .competition-status .shell { align-items: flex-start; flex-direction: column; }
  .competition-fields, .competition-steps, .competitions-list { grid-template-columns: 1fr; }
  .competition-status .button { justify-self: start; }
  .competition-step { border-left: 0; border-bottom: 1px solid var(--line); }
  .competition-step:last-child { border-bottom: 0; }
  .activity-card > img { height: clamp(220px, 58vw, 300px); }
  .activity-card > div { min-height: 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid > div:nth-child(3) { border-left: 1px solid #ffffff2e; }
  .metrics-grid > div:nth-child(even) { border-left: 0; }
  .metrics-grid > div:last-child { grid-column: 1 / 3; border-top: 1px solid #ffffff2e; }
  .statement { padding: 52px 0; }
  .statement-layout { display: block; }
  .statement-layout > span { display: block; height: 42px; text-align: right; }
  .visit-gallery { height: 440px; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-directory { gap: 20px; }
  .copyright { margin-top: 38px; }
}

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

/* Internal pages and archive previews */
.page-hero-lead { max-width: 760px; margin: 18px 0 0; color: #edf3ee; font-size: 1.08rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-values { background: var(--papyrus); }
.people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.people-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.people-toolbar .alphabet { margin-bottom: -1px; }
.alphabet a[aria-current='page'], .alphabet button[aria-current='page'] { background: var(--green); border-color: var(--green); color: #fff; }
.section-switch { flex: 0 0 auto; margin-bottom: 18px; color: var(--green); font-weight: 800; }
.person-card { padding: 0; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.person-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.person-card > a { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.person-card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--papyrus); border-bottom: 1px solid var(--line); }
.person-card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.person-card-body { padding: 20px 22px 22px; }
.person-card-body h3 { margin: 0 0 4px; color: var(--brown); font: 700 1.3rem/1.4 var(--display); }
.person-card-body p { min-height: 2.9em; margin: 0 0 12px; color: var(--muted); font-size: .86rem; }
.person-more { color: var(--green); font-size: .82rem; font-weight: 800; }
.archive-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.detail-hero { padding: 48px 0; background: var(--papyrus); border-bottom: 1px solid var(--line); }
.detail-hero-layout { display: grid; grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); align-items: center; gap: 58px; }
.detail-hero h1 { margin: 0; color: var(--brown); font: 700 clamp(3rem, 5.4vw, 5.2rem)/1.12 var(--display); }
.detail-hero p { max-width: 620px; margin: 18px 0 28px; color: var(--muted); font-size: 1.08rem; }
.detail-hero figure { height: 510px; margin: 0; overflow: hidden; border: 1px solid var(--line); }
.detail-hero figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.program-points { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-points article { min-height: 165px; padding: 30px; border-left: 1px solid var(--line); }
.program-points article:last-child { border-left: 0; }
.program-points span { color: var(--gold); font: 700 2rem/1 var(--display); }
.program-points h3 { margin: 18px 0 0; color: var(--brown); font: 700 1.4rem/1.45 var(--display); }
.activity-archive-callout { background: var(--green); color: #fff; }
.activity-archive-callout h2 { color: #fff; }
.activity-archive-callout .row-head { align-items: center; }

.objective-list { max-width: 1000px; }
.objective-list article { display: grid; grid-template-columns: 100px 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.objective-list article:first-child { border-top: 1px solid var(--line); }
.objective-list article > span { color: var(--gold); font: 700 3rem/1 var(--display); }
.objective-list h2 { margin: 0 0 7px; font-size: 2rem; }
.objective-list p { max-width: 760px; margin: 0; color: var(--muted); }

.visit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.visit-cards article { overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.visit-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visit-cards article > div { padding: 24px; }
.visit-cards article > div > span { color: var(--gold); font-size: .8rem; font-weight: 800; }
.visit-cards h3 { margin: 7px 0 18px; color: var(--brown); font: 700 1.45rem/1.4 var(--display); }

.contact-layout { display: grid; grid-template-columns: minmax(330px, 5fr) minmax(0, 7fr); border: 1px solid var(--line); background: var(--white); }
.contact-panel, .contact-map { min-height: 430px; padding: 52px; }
.contact-panel { background: var(--brown); color: #fff; }
.contact-panel h2, .contact-map h2 { margin: 0 0 20px; font: 700 2.3rem/1.3 var(--display); }
.contact-panel h2 { color: #fff; }
.contact-panel a { display: block; width: fit-content; margin: 8px 0; color: var(--gold-light); font-weight: 700; }
.contact-panel hr { margin: 30px 0; border: 0; border-top: 1px solid #ffffff38; }
.contact-map { display: grid; align-content: center; background: var(--papyrus); }
.contact-map > span { color: var(--gold); font-weight: 800; }
.contact-map p { max-width: 600px; color: var(--muted); }
.contact-map .button { justify-self: start; margin-top: 18px; }

.article-section, .profile-section { background: var(--papyrus); }
.article-page { padding: 46px 52px; background: var(--white); border-top: 5px solid var(--green); }
.article-page h1, .profile-layout h1 { margin: 0 0 22px; color: var(--brown); font: 700 clamp(2.5rem, 5vw, 4.7rem)/1.25 var(--display); }
.article-cover { width: 100%; max-height: 590px; margin: 30px 0; object-fit: cover; object-position: center; }
.news-card-type { display: inline-block; margin-bottom: 6px; color: var(--green); font-weight: 800; }
.article-lead { color: #4b4038; font-size: 1.16rem; line-height: 1.9; }
.profile-layout { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); align-items: center; gap: 58px; padding: 44px; background: var(--white); border: 1px solid var(--line); }
.profile-layout figure { display: grid; place-items: center; aspect-ratio: 4 / 3; height: auto; margin: 0; overflow: hidden; background: var(--papyrus); }
.profile-layout figure img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.profile-poems { margin-top: 30px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-top: 5px solid var(--gold); background: var(--white); }
.profile-poems h2 { margin: 0 0 22px; color: var(--brown); font: 700 clamp(2rem, 4vw, 3.2rem)/1.35 var(--display); }
.profile-poems-copy { max-width: 820px; color: #3f352d; font-size: 1.05rem; line-height: 2.15; white-space: pre-line; }
.profile-poems-copy h2, .profile-poems-copy h3 { margin: 28px 0 8px; color: var(--green); font: 700 1.55rem/1.5 var(--display); }
.profile-poems-copy blockquote { margin: 22px 0; padding: 10px 22px; border-right: 3px solid var(--gold); color: var(--brown); }
.rich-content-image { display: block; width: min(100%, 920px); height: auto; max-height: 720px; margin: 28px auto; object-fit: contain; border: 1px solid var(--line); background: var(--white); }
.youtube-link { margin: 18px 0 12px; background: #a8241a; color: var(--white); }
.youtube-link:hover { background: #801a13; }

.admin-shell { padding-block: 24px 56px; }
.admin-shell .admin-card { width: auto; margin: 0; }
.admin-page-titlebar { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 24px; padding: 25px 28px; border: 1px solid var(--line); border-right: 5px solid var(--green); background: var(--white); }
.admin-page-titlebar a { display: inline-block; margin-bottom: 9px; color: var(--green); font-weight: 800; }
.admin-page-titlebar .eyebrow { margin: 0 0 5px; color: var(--gold); }
.admin-page-titlebar h1 { margin: 0; color: var(--brown); font: 700 clamp(2rem, 4vw, 3rem)/1.25 var(--display); }
.admin-page-titlebar > p { max-width: 490px; margin: 0; color: var(--muted); }
.admin-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.admin-main-column, .admin-sidebar { display: grid; gap: 18px; }
.admin-sidebar { position: sticky; top: 20px; }
.admin-panel { padding: 26px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 7px 24px #27170f0a; }
.admin-panel label:not(.admin-check, .button, .sr-only) { display: block; margin: 0 0 7px; color: var(--brown); font-weight: 800; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -5px 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.admin-panel-heading h2, .admin-list-panel h2 { margin: 0; color: var(--brown); font: 700 1.45rem/1.3 var(--display); }
.admin-panel-heading > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.site-content-editor { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.75fr); gap: 24px; align-items: start; }
.site-content-preview { width: 100%; min-height: 720px; margin-top: 16px; border: 1px solid var(--line); background: #fff; }
.cms-selected-element { outline: 4px solid #c89b42 !important; outline-offset: 3px !important; cursor: pointer !important; }
.admin-route-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.admin-route-picker .button { min-width: 130px; }
.admin-scope-option { display: flex; gap: 9px; align-items: center; margin-top: 12px; color: var(--brown); font-weight: 700; }
.admin-scope-option input { width: 18px; height: 18px; accent-color: var(--green); }
.admin-title-input { min-height: 58px; border-width: 2px; font-size: 1.18rem; font-weight: 700; }
.admin-title-input:focus, .admin-rich-editor:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px #164b2d16; }
.admin-rich-editor { min-height: 270px; padding: 17px; line-height: 2; }
.admin-poems-editor { min-height: 370px; }
.admin-help { margin: 7px 0 0; color: var(--muted); font-size: .78rem; }
.admin-publish-panel .admin-check { padding-block: 8px; border-block: 1px solid var(--line); }
.admin-save-button { width: 100%; margin-top: 4px; }
.admin-save-button:disabled { cursor: wait; opacity: .6; }
.admin-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-upload-button { width: 100%; cursor: pointer; }
.admin-image-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 14px; overflow: hidden; border: 1px dashed #b7a895; background: var(--papyrus); color: var(--muted); text-align: center; }
.admin-image-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.admin-competition-preview { aspect-ratio: 1 / 1; }
.competition-deadline-panel input { max-width: 440px; }
.seo-editor { border-top: 4px solid var(--green); }
.seo-preview { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); background: var(--cream); }
.seo-preview p { margin: 0; }
.seo-preview-site { direction: ltr; color: #3c4043; font-size: .8rem; text-align: right; }
.seo-preview-title { margin-top: 5px !important; color: #1a0dab; font-size: 1.14rem; line-height: 1.45; }
.seo-preview-description { margin-top: 5px !important; color: #4d5156; font-size: .88rem; line-height: 1.65; }
.admin-list-panel { margin-top: 22px; }
.admin-list-panel .admin-records { max-height: 540px; }
.admin-dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-dashboard-head h1, .admin-editor h1 { margin: 0; color: var(--brown); font: 700 2.35rem/1.3 var(--display); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 1px; margin: 18px 0 28px; border: 1px solid var(--line); background: var(--line); }
.admin-nav a { flex: 1 1 150px; padding: 13px 16px; background: var(--white); color: var(--brown); text-align: center; font-weight: 800; }
.admin-nav a:hover { background: var(--papyrus); color: var(--green); }
.admin-metrics { grid-template-columns: repeat(6, 1fr); }
.admin-metrics .content-card { padding: 22px; text-align: center; }
.admin-metrics h2 { margin: 0; color: var(--muted); font: 700 1rem/1.4 var(--body); }
.admin-metrics p { margin: 8px 0 0; color: var(--green); font: 700 2.6rem/1 var(--display); }
.admin-note { margin-top: 22px !important; }
.admin-two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-editor { padding: 32px; }
.admin-editor h2 { margin: 0 0 18px; color: var(--brown); font: 700 1.8rem/1.35 var(--display); }
.admin-check { display: flex; align-items: center; gap: 9px; margin-block: 16px; }
.admin-check input { width: auto; }
.admin-list-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.admin-list-head select { width: 150px; }
.admin-records { display: grid; gap: 10px; max-height: 720px; overflow: auto; padding-left: 4px; }
.admin-record { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; min-height: 74px; padding: 14px; border: 1px solid var(--line); background: var(--white); }
.admin-record > img { grid-row: 1; width: 76px; height: 62px; object-fit: contain; background: var(--papyrus); }
.admin-record-with-image { grid-template-columns: 76px 1fr auto; }
.admin-media-records .admin-record { grid-template-columns: 76px 1fr auto; }
.admin-record h3 { margin: 0; color: var(--brown); font: 700 1.05rem/1.4 var(--display); }
.admin-record p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.admin-delete { padding: 8px 12px; border: 1px solid #9b3d2f; background: transparent; color: #8b2e22; font-weight: 800; }
.admin-delete:hover { background: #8b2e22; color: #fff; }

.search-hero { padding-bottom: 54px; }
.site-search-form { display: grid; grid-template-columns: minmax(0, 720px) auto; gap: 10px; max-width: 880px; margin-top: 30px; }
.site-search-form input { min-height: 56px; padding-inline: 18px; border-color: #ffffff80; background: var(--white); font-size: 1.05rem; }
.site-search-form .button { min-width: 120px; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.search-result-card { padding: 25px; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, border-color .2s ease; }
.search-result-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.search-result-card > span { color: var(--gold); font-size: .78rem; font-weight: 800; }
.search-result-card h3 { margin: 6px 0; color: var(--brown); font: 700 1.35rem/1.45 var(--display); }
.search-result-card p { display: -webkit-box; margin: 0 0 15px; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

@media (hover: hover) and (pointer: fine) {
  .news-card, .visit-cards article, .program-points article, .objective-list article, .contact-map, .profile-layout {
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
  }
  .news-card:hover, .visit-cards article:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 16px 34px #27170f12;
  }
  .program-points article:hover {
    background: var(--white);
    transform: translateY(-3px);
  }
  .objective-list article:hover {
    padding-inline: 18px;
    background: var(--white);
  }
  .contact-map:hover, .profile-layout:hover { border-color: var(--gold); }
  .detail-hero figure img, .profile-layout figure img, .person-card-media img, .visit-cards img, .news-card img {
    transition: transform .45s ease;
  }
  .detail-hero figure:hover img, .profile-layout figure:hover img, .person-card:hover .person-card-media img, .visit-cards article:hover img, .news-card:hover img {
    transform: scale(1.025);
  }
  .menu a:hover, .section-switch:hover, .person-more:hover { color: var(--green-dark); }
}

@media (max-width: 1080px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-content-editor { grid-template-columns: 1fr; }
  .detail-hero-layout, .contact-layout, .profile-layout { grid-template-columns: 1fr; }
  .detail-hero-layout { gap: 34px; }
  .detail-hero figure { height: 430px; }
  .visit-cards { grid-template-columns: 1fr 1fr; }
  .people-toolbar { align-items: flex-start; flex-direction: column; gap: 0; }
  .program-points { grid-template-columns: 1fr 1fr; }
  .program-points article:nth-child(2) { border-left: 0; }
  .program-points article:last-child { grid-column: 1 / 3; border-top: 1px solid var(--line); }
  .profile-layout figure { height: 420px; }
  .admin-two-column { grid-template-columns: 1fr; }
  .admin-editor-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .admin-page-titlebar { align-items: start; flex-direction: column; gap: 12px; }
  .admin-metrics { grid-template-columns: repeat(3, 1fr); }
  .search-link { margin-right: auto; }
}

@media (max-width: 600px) {
  .people, .archive-news-grid, .visit-cards, .program-points { grid-template-columns: 1fr; }
  .program-points article { border-left: 0; border-bottom: 1px solid var(--line); }
  .program-points article:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .detail-hero figure { height: 300px; }
  .objective-list article { grid-template-columns: 62px 1fr; gap: 18px; }
  .objective-list article > span { font-size: 2.2rem; }
  .contact-panel, .contact-map, .article-page, .profile-layout { padding: 30px 24px; }
  .profile-layout figure { width: 100%; height: auto; }
  .person-card-body { padding: 18px; }
  .person-card-body p { min-height: 0; }
  .admin-layout { padding: 12px 0; }
  .admin-dashboard-head, .admin-list-head { align-items: stretch; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-editor { padding: 24px 18px; }
  .admin-panel { padding: 20px 16px; }
  .admin-sidebar { grid-template-columns: 1fr; }
  .admin-page-titlebar { padding: 20px 17px; }
  .admin-page-titlebar h1 { font-size: 2rem; }
  .admin-panel-heading { align-items: start; flex-direction: column; gap: 4px; }
  .admin-record, .admin-media-records .admin-record { grid-template-columns: 1fr auto; }
  .admin-record-with-image { grid-template-columns: 1fr auto; }
  .admin-record > img { grid-column: 1 / 3; width: 100%; height: 130px; }
  .site-search-form, .search-results { grid-template-columns: 1fr; }
  .site-search-form .button { width: 100%; }
}
