/* ==========================================================================
   Bashkësia e Tarikateve të Kosovës — stili i faqes publike
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/cormorant-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --green-950: #05150f;
  --green-900: #08201a;
  --green-800: #0c3024;
  --green-700: #10432f;
  --green-600: #15593c;
  --green-500: #1c7049;
  --gold-600: #a37c22;
  --gold-500: #c39a3b;
  --gold-400: #d6b566;
  --gold-300: #e7d19b;
  --ivory: #faf7f0;
  --paper: #fffdf9;
  --sand: #f2ecde;
  --line: #e3dac6;
  --ink: #17231d;
  --text: #2f3b34;
  --muted: #6c766f;
  --danger: #a3322a;
  --accent: #15593c;            /* links and highlighted text */
  --header-bg: rgba(255, 253, 249, .94);
  --field-bg: #fff;
  --hover-bg: rgba(21, 89, 60, .07);
  --chip-bg: rgba(21, 89, 60, .09);
  --err-bg: #fbeceb;
  --err-line: #f0c9c5;
  --ok-bg: #eaf4ee;
  --ok-line: #c3dccc;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(8, 32, 26, .06), 0 2px 8px rgba(8, 32, 26, .05);
  --shadow: 0 2px 6px rgba(8, 32, 26, .06), 0 14px 34px rgba(8, 32, 26, .10);
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 78px;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d6b566' stroke-width='1'%3E%3Cpath d='M78 48l-8.800 8.800v12.400H56.800L48 78l-8.800-8.800H26.800V56.800L18 48l8.800-8.800V26.800h12.400L48 18l8.800 8.800h12.400v12.400z'/%3E%3Cpath d='M48 0v18M48 78v18M0 48h18M78 48h18M0 0l26.800 26.800M96 0L69.200 26.800M0 96l26.800-26.800M96 96L69.200 69.200'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
/* lining figures everywhere: the serif's default old-style "1" reads like the letter I */
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--ivory); font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--green-950); }
.icon { flex: none; display: inline-block; vertical-align: -.18em; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold-500); color: var(--green-950); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 .7rem; }
.kicker--gold { color: var(--gold-400); }

.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; line-height: 1.2; text-decoration: none; transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--green-950); box-shadow: 0 8px 24px rgba(195, 154, 59, .28); }
.btn--gold:hover { color: var(--green-950); box-shadow: 0 12px 30px rgba(195, 154, 59, .4); }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--chip-bg); color: var(--accent);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.chip:hover { background: var(--green-600); color: #fff; }
.chip--plain { background: var(--sand); color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---- top bar and header -------------------------------------------------- */
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .72); font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar ul { display: flex; align-items: center; gap: 1.3rem; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-300); }

.header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(8, 32, 26, .09); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand__logo { display: block; width: auto; height: 58px; transition: opacity .2s; }
.brand:hover .brand__logo { opacity: .86; }
.brand__logo--footer { height: 64px; }

.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .2rem; padding: .6rem .85rem; border: 0; background: none; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__item--sub:hover > .nav__link { color: var(--accent); background: var(--hover-bg); }
.nav__link.is-active { color: var(--accent); font-weight: 600; }
.nav__link.is-active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--gold-500); border-radius: 2px; }
.nav__link .icon { opacity: .6; transition: transform .2s; }
.nav__sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: .5rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub, .nav__item--sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item--sub:hover > .nav__link .icon, .nav__item--sub.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__sub a { display: block; padding: .6rem .85rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.nav__sub a:hover { background: var(--sand); color: var(--accent); }
.nav__search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg); padding-left: .9rem; transition: border-color .2s, box-shadow .2s; }
.nav__search:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(195, 154, 59, .18); }
.nav__search input { width: 120px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); padding: .45rem 0; outline: none; transition: width .25s; }
.nav__search input:focus { width: 170px; }
.nav__search button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.nav__search button:hover { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); place-items: center; color: var(--ink); }
.nav-toggle .icon:last-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:first-of-type { display: none; }
.nav-toggle[aria-expanded="true"] .icon:last-child { display: block; }

/* ---- news ticker --------------------------------------------------------- */
.ticker { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .88rem; }
.ticker__in { display: flex; align-items: center; gap: 1.1rem; min-height: 44px; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: .55rem; padding-right: 1.1rem; border-right: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ticker__label span { width: 8px; height: 8px; border-radius: 50%; background: #c2412f; box-shadow: 0 0 0 0 rgba(194, 65, 47, .5); animation: pulse 1.8s infinite; }
.ticker__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.ticker__track { display: flex; gap: 3.2rem; width: max-content; }
.ticker.is-running .ticker__track { animation: ticker 70s linear infinite; }
.ticker__view:hover .ticker__track, .ticker__view:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track li { display: flex; align-items: baseline; gap: .7rem; white-space: nowrap; }
.ticker__track li::before { content: ""; align-self: center; width: 6px; height: 6px; background: var(--gold-500); transform: rotate(45deg); }
.ticker__track a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ticker__track a:hover { color: var(--accent); text-decoration: underline; }
.ticker__track time { font-size: .78rem; color: var(--muted); }

/* ---- hero slider --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(880px 520px at 80% 18%, #1b5f43 0%, #0b2c21 48%, var(--green-950) 100%); }
.hero__pattern, .pagehead__pattern, .section__pattern, .footer__pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px; pointer-events: none; }
.hero__pattern { opacity: .13; -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 45%, #000 100%); mask-image: linear-gradient(100deg, #000 0%, transparent 45%, #000 100%); animation: drift 80s linear infinite; }
.hero__glow { position: absolute; right: 4%; top: -140px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(214, 181, 102, .22), transparent 62%); animation: breathe 8s ease-in-out infinite; }
.hero__stage { position: relative; display: grid; align-items: center; min-height: clamp(340px, 33vw, 410px); padding-block: clamp(1.8rem, 3.6vw, 2.8rem) .6rem; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(34px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1), visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide.is-leaving { transform: translateX(-34px); }
.slide__title { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 600; line-height: 1.04; margin-bottom: 1rem; }
.slide__title span { display: block; font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500) 60%, var(--gold-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide__title--news { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; }
.slide__title a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--gold-400), var(--gold-400)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .45s; }
.slide__title a:hover { color: #fff; background-size: 100% 2px; }
.slide__lead { max-width: 56ch; margin-bottom: 1.6rem; font-size: clamp(1rem, 1.3vw, 1.08rem); color: rgba(255, 255, 255, .78); }
.slide__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.slide.is-active .slide__text > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.slide.is-active .slide__text > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide__text > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide__text > :nth-child(4) { animation-delay: .24s; }
.slide.is-active .slide__media, .slide.is-active .emblem { animation: zoom-in .9s cubic-bezier(.2, .8, .2, 1) both; }

.slide__art { display: grid; place-items: center; }
.emblem { position: relative; display: grid; place-items: center; width: clamp(210px, 25vw, 320px); aspect-ratio: 1; }
.emblem img { position: relative; width: 76%; height: auto; filter: drop-shadow(0 16px 38px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; }
.emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(214, 181, 102, .55); animation: spin 70s linear infinite; }
.emblem__ring--2 { inset: 7%; border: 0; background-image: var(--pattern); background-size: 46px 46px; opacity: .5; animation: spin 110s linear infinite reverse;
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 70%, transparent 71%); mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 70%, transparent 71%); }

.slide__media { position: relative; display: block; aspect-ratio: 800 / 415; border-radius: var(--radius); overflow: hidden; background: var(--green-900);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5); outline: 1px solid rgba(214, 181, 102, .45); outline-offset: 9px; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.slide__media:hover img { transform: scale(1.05); }

.hero__controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding-block: .9rem 1.5rem; }
.hero__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .05); color: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.hero__arrow:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.hero__arrow[data-prev] .icon { transform: rotate(180deg); }
.hero__dots { display: flex; gap: .5rem; }
.hero__dots button { position: relative; width: 38px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero__dots button::before { content: ""; position: absolute; inset: -10px 0; }
.hero__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--gold-400); transform-origin: left; animation: fill 6.5s linear forwards; }
.hero.is-paused .hero__dots button.is-active::after { animation-play-state: paused; }

.tajband { position: relative; background: var(--green-950); border-top: 1px solid rgba(214, 181, 102, .22); border-bottom: 3px solid var(--gold-500); padding: 1.15rem 0 1rem; }
.tajs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.3rem, 1.2vw, 1rem); align-items: end; }
.tajs li { display: flex; flex-direction: column; align-items: center; gap: .45rem; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.tajs li:nth-child(2) { animation-delay: .05s; } .tajs li:nth-child(3) { animation-delay: .1s; } .tajs li:nth-child(4) { animation-delay: .15s; }
.tajs li:nth-child(5) { animation-delay: .2s; } .tajs li:nth-child(6) { animation-delay: .25s; } .tajs li:nth-child(7) { animation-delay: .3s; }
.tajs li:nth-child(8) { animation-delay: .35s; } .tajs li:nth-child(9) { animation-delay: .4s; } .tajs li:nth-child(10) { animation-delay: .45s; }
.tajs li:nth-child(11) { animation-delay: .5s; } .tajs li:nth-child(12) { animation-delay: .55s; }
.tajs img { width: 100%; max-width: 58px; height: auto; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tajs li:hover img { transform: translateY(-6px) scale(1.06); }
.tajs span { font-size: clamp(.52rem, .8vw, .66rem); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); transition: color .2s; }
.tajs li:hover span { color: var(--gold-300); }

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(194, 65, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(194, 65, 47, 0); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes drift { to { background-position: 960px 480px; } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

/* ---- sections ------------------------------------------------------------ */
.section { position: relative; padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section--tight { padding-top: clamp(2.2rem, 4vw, 3.4rem); }
.section--sand { background: var(--sand); }
.section--dark { background: linear-gradient(160deg, var(--green-800), var(--green-950)); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__pattern { opacity: .09; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section__head h2 { margin: 0; }
.section__head--center { justify-content: center; text-align: center; }
.section__lead { max-width: 640px; margin: 1rem auto 0; color: var(--muted); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- cards --------------------------------------------------------------- */
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.card__media { position: relative; display: block; aspect-ratio: 800 / 415; overflow: hidden; background: var(--green-900); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__media img { transform: scale(1.045); }
.card__blank { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #17573d, var(--green-950)); }
.card__blank::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px 64px; opacity: .14; }
.card__blank img { position: relative; width: 64px; height: 64px; object-fit: contain; }
.card:hover .card__blank img { transform: none; }
.card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(5, 21, 15, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(4px); padding-left: 3px; transition: background-color .25s, transform .25s; }
.card:hover .card__play { background: var(--gold-500); color: var(--green-950); transform: translate(-50%, -50%) scale(1.08); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.45rem; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0 0 .7rem; font-size: .8rem; color: var(--muted); }
.card__title { font-size: 1.42rem; line-height: 1.18; margin: 0 0 .55rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__meta .chip { position: relative; z-index: 2; }
.card:hover .card__title { color: var(--accent); }
.card__excerpt { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--muted); }

.card--wide { flex-direction: row; margin-bottom: clamp(1.1rem, 2.2vw, 1.8rem); }
.card--wide .card__media { flex: 0 0 58%; aspect-ratio: auto; min-height: 320px; }
.card--wide .card__body { justify-content: center; padding: clamp(1.5rem, 3vw, 2.6rem); }
.card--wide .card__title { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
.card--wide .card__excerpt { font-size: 1rem; }
.news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.card--video .card__title { font-size: 1.2rem; margin: 0; }

/* ---- about / stats ------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__text p { max-width: 60ch; }
.about__text .btn { margin-top: .6rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: .55rem; }
.stats li:nth-child(even) strong { color: var(--gold-600); }
.stats span { font-size: .9rem; line-height: 1.45; color: var(--muted); display: block; }

/* ---- feast days ---------------------------------------------------------- */
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.days li { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.35rem 1.3rem 1.3rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.days li:hover { border-color: var(--gold-400); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.days__no { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--gold-600); letter-spacing: .08em; }
.days__no::after { content: ""; display: block; width: 26px; height: 1px; background: var(--gold-400); margin: .45rem 0 .6rem; }
.days strong { font-family: var(--serif); font-size: 1.36rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
.days li > span:last-child { font-size: .88rem; color: var(--muted); }
.days .days__more { justify-content: center; gap: .7rem; background: var(--green-800); border-color: var(--green-800); }
.days .days__more a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; font-size: .93rem; text-decoration: none; }
.days .days__more a:hover { color: var(--gold-300); }

/* ---- learn (dark) -------------------------------------------------------- */
.learn__grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.learn__fatiha blockquote { margin: 0 0 2rem; padding-left: 1.6rem; border-left: 2px solid var(--gold-500); }
.learn__fatiha blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.45; color: #fff; margin-bottom: .7em; }
.learn__fatiha blockquote p:last-child { margin-bottom: 0; }
.learn__links { display: grid; gap: .9rem; }
.tile { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.3rem; border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); color: #fff; text-decoration: none; transition: background-color .25s, border-color .25s, transform .25s; }
.tile:hover { background: rgba(255, 255, 255, .09); border-color: var(--gold-500); color: #fff; transform: translateX(5px); }
.tile__no { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold-500); color: var(--gold-400);
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.tile__text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.tile__text strong { font-family: var(--serif); font-size: 1.36rem; font-weight: 600; }
.tile__text span { font-size: .88rem; color: rgba(255, 255, 255, .64); }
.tile > .icon { color: var(--gold-400); }

/* ---- radio --------------------------------------------------------------- */
.radio { background: linear-gradient(120deg, #d9bb72, var(--gold-500) 55%, #b08a2c); color: var(--green-950); }
.radio__in { display: flex; align-items: center; gap: 1.5rem; padding-block: clamp(1.8rem, 4vw, 2.6rem); }
.radio__icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-950); color: var(--gold-400); }
.radio__in > div { flex: 1; }
.radio h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .15rem; color: var(--green-950); }
.radio p { margin: 0; font-weight: 500; }
.radio .btn--gold { background: var(--green-950); color: #fff; box-shadow: none; }
.radio .btn--gold:hover { background: var(--green-800); color: var(--gold-300); }

/* ---- page head ----------------------------------------------------------- */
.pagehead, .article__head, .notfound { position: relative; overflow: hidden; color: rgba(255, 255, 255, .8);
  background: radial-gradient(900px 420px at 18% -20%, #17573d 0%, #0b2c21 50%, var(--green-950) 100%); border-bottom: 3px solid var(--gold-500); }
.pagehead__pattern { opacity: .13; -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 100%); mask-image: linear-gradient(100deg, transparent 25%, #000 100%); }
.pagehead__in { position: relative; padding-block: clamp(2.4rem, 5.5vw, 4.2rem); }
.pagehead h1, .article__head h1, .notfound h1 { color: #fff; margin: 0; max-width: 22ch; }
.pagehead__lead { max-width: 62ch; margin: 1rem 0 0; font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.crumbs a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.crumbs a:hover { color: var(--gold-300); }

.filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.filter a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.filter a span { font-size: .75rem; color: var(--muted); }
.filter a:hover { border-color: var(--gold-500); color: var(--accent); }
.filter a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.filter a.is-active span { color: rgba(255, 255, 255, .7); }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); font-size: 1.05rem; }
.results-count { color: var(--muted); margin-bottom: 1.4rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: clamp(2.2rem, 4vw, 3.4rem); flex-wrap: wrap; }
.pagination ul { display: flex; gap: .35rem; }
.pagination a, .pagination span[aria-current] { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: all .2s; }
.pagination a:hover { border-color: var(--gold-500); color: var(--accent); }
.pagination span[aria-current] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination__gap { display: grid; place-items: center; min-width: 24px; color: var(--muted); }

/* ---- article ------------------------------------------------------------- */
.article__head { padding-block: clamp(2.4rem, 5.5vw, 4rem) clamp(5rem, 11vw, 8.5rem); }
.article__head .container { position: relative; }
.article__head h1 { max-width: none; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1.2rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.article__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.article__body { position: relative; padding-bottom: clamp(3rem, 6vw, 5rem); }
.article__cover { margin: calc(-1 * clamp(3.4rem, 8vw, 6.4rem)) 0 clamp(1.8rem, 3.5vw, 2.8rem); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-900); }
.article__cover img { display: block; width: 100%; cursor: zoom-in; }
.article__head + .article__body > .prose:first-child, .article__head + .article__body > .article__foot:first-child { margin-top: clamp(-3.4rem, -6vw, -2.4rem); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.8rem); box-shadow: var(--shadow-sm); }
.article__foot { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: .55rem; }
.share > span { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: .5rem; }
.share a, .share button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: all .2s; }
.share a:hover, .share button:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: translateY(-2px); }
.share__done { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--green-950); color: #fff; font-size: .75rem; padding: .25rem .6rem; border-radius: 6px; }
.share__done:empty { display: none; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.postnav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: all .2s; }
.postnav a:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.postnav span { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.postnav strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.postnav__next { text-align: right; }

/* ---- prose (bodies written in the admin) -------------------------------- */
.prose { font-size: 1.09rem; line-height: 1.82; color: var(--text); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.27rem; margin: 1.6em 0 .4em; color: var(--accent); }
.prose a { font-weight: 500; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.15em; top: .72em; width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--gold-600); font-weight: 600; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: .3em 0 .3em 1.4em; border-left: 3px solid var(--gold-500); font-family: var(--serif); font-style: italic; font-size: 1.3em; line-height: 1.5; color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; text-align: center; }
.prose figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); cursor: zoom-in; background: var(--sand); }
.prose figcaption { margin-top: .6em; font-size: .86rem; color: var(--muted); }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: var(--radius); overflow: hidden; background: var(--green-950); box-shadow: var(--shadow); }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose video { display: block; width: 100%; border-radius: var(--radius); background: #000; margin: 1.8em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; }
.prose th, .prose td { padding: .6em .8em; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--sand); font-weight: 600; }
.prose .text-center { text-align: center; }
.prose .text-right { text-align: right; }
.prose .lead { font-family: var(--serif); font-size: 1.45em; line-height: 1.4; color: var(--ink); }
.prose .verse { font-family: var(--serif); font-size: 1.36em; line-height: 1.55; color: var(--ink); margin-bottom: .75em; }
.prose .note { padding: 1em 1.2em; background: var(--sand); border-radius: var(--radius-sm); }

.prose--gallery > figure, .prose--accordion > figure { display: inline-block; width: calc((100% - 2.2rem) / 3); margin: 0 .3rem 1rem; vertical-align: top; }
.prose--gallery > figure img, .prose--accordion > figure img { width: 100%; border: 1px solid var(--line); }

/* accordions */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: .8rem; transition: border-color .25s, box-shadow .25s; scroll-margin-top: calc(var(--header-h) + 20px); }
.acc[open] { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.acc > summary { position: relative; display: block; padding: 1.1rem 3.4rem 1.1rem 1.4rem; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.25;
  color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--radius); transition: color .2s; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600); transform: rotate(45deg); transition: transform .25s; }
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc > summary:hover, .acc[open] > summary { color: var(--accent); }
.acc-body { padding: .2rem 1.4rem 1.5rem; }
.acc-body > :first-child { margin-top: 0; }
.acc-body > :last-child { margin-bottom: 0; }
.acc-group { background: var(--sand); border-color: transparent; }
.acc-group[open] { background: var(--paper); }
.acc-group > summary { font-size: 1.46rem; letter-spacing: .02em; }
.acc-group .acc { margin-bottom: .6rem; background: var(--ivory); }
.acc-group .acc > summary { font-size: 1.16rem; padding-block: .85rem; }

/* page with side index */
.withtoc { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.4rem); align-items: start; }
.toc__box { position: sticky; top: calc(var(--header-h) + 22px); max-height: calc(100vh - var(--header-h) - 44px); display: flex; flex-direction: column; padding: 1.3rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.toc h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .9rem; }
.toc__filter { width: 100%; margin-bottom: .8rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); font: inherit; font-size: .9rem; }
.toc ol { overflow-y: auto; flex: 1; margin-right: -.5rem; padding-right: .5rem; }
.toc ol a { display: block; padding: .38rem .6rem; border-radius: 7px; border-left: 2px solid transparent; color: var(--text); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.toc ol a:hover, .toc ol a.is-current { background: var(--sand); border-left-color: var(--gold-500); color: var(--accent); }
.toc__all { margin-top: .9rem; padding: .5rem; border: 1px dashed var(--line); border-radius: 8px; background: none; font-size: .84rem; font-weight: 600; color: var(--accent); }
.toc__all:hover { border-color: var(--gold-500); }

/* ---- contact and forms --------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.8rem, 4vw, 3.6rem); align-items: start; }
.infocards { display: grid; gap: .9rem; }
.infocards li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.25rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.infocards__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--green-700); color: var(--gold-300); }
.infocards h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin: .15rem 0 .25rem; }
.infocards p { margin: 0; color: var(--ink); line-height: 1.5; }
.infocards a { color: inherit; text-decoration: none; font-weight: 500; }
.infocards a:hover { color: var(--accent); }
.contact__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-sm); }
.contact__form h2 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .searchbox input { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--field-bg); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .searchbox input:focus, .toc__filter:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(195, 154, 59, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { display: block; margin-top: .35rem; font-size: .85rem; color: var(--danger); }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.notice--err { background: var(--err-bg); color: var(--danger); border: 1px solid var(--err-line); }
.notice--ok { background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 2rem; }
.notice--ok h2 { color: var(--accent); }
.searchbox { display: flex; gap: .7rem; max-width: 640px; margin-bottom: 2rem; }
.searchbox--dark { margin: 1.6rem auto 1.2rem; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound { text-align: center; border-bottom: 0; }
.notfound__in { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); max-width: 700px; }
.notfound h1 { max-width: none; margin-bottom: 1rem; }
.notfound img { margin-bottom: 1.2rem; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .5)); }

/* ---- footer -------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid rgba(214, 181, 102, .2); background: var(--green-950); color: rgba(255, 255, 255, .66); font-size: .95rem; }
.footer__pattern { opacity: .06; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: clamp(1.8rem, 4vw, 3.4rem); padding-block: clamp(3rem, 6vw, 4.6rem) clamp(2rem, 4vw, 3rem); }
.footer__about p { margin: 1.2rem 0 1.3rem; max-width: 42ch; line-height: 1.7; }
.footer h2 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.2rem; }
.footer__col li { margin-bottom: .6rem; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold-300); }
.footer__contact li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.footer__contact .icon { color: var(--gold-400); margin-top: .22rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.footer__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.footer__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__hu { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-400); }

/* ---- lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 3.5rem 1rem 1rem; background: rgba(5, 21, 15, .93); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 5rem); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.5rem; line-height: 1; }
.lightbox button:hover { background: var(--gold-500); color: var(--green-950); border-color: var(--gold-500); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -24px; }
.lightbox [hidden] { display: none; }

/* ---- reveal on scroll (only when scripts run) ----------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
  .js [data-reveal].is-visible, .js.reveal-all [data-reveal] { opacity: 1; transform: none; }
  .js .card[data-reveal].is-visible:hover { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__search input { width: 0; padding: 0; }
  .nav__search { border-color: transparent; background: none; padding-left: 0; }
  .nav__search:focus-within { border-color: var(--gold-500); background: var(--field-bg); padding-left: .9rem; }
  .nav__search:focus-within input { width: 150px; padding: .45rem 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .nav { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 1rem; padding: calc(var(--header-h) + 1.2rem) var(--gutter) 2rem;
    background: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem .2rem; font-size: 1.1rem; border-radius: 0; }
  .nav__link:hover, .nav__item--sub:hover > .nav__link { background: none; }
  .nav__link.is-active::after { display: none; }
  .nav__sub { position: static; display: none; min-width: 0; padding: 0 0 .8rem .6rem; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item--sub.is-open > .nav__sub { display: block; }
  .nav__item--sub:hover > .nav__link .icon { transform: none; }
  .nav__item--sub.is-open > .nav__link .icon { transform: rotate(180deg); }
  .nav__search, .nav__search:focus-within { border-color: var(--line); background: var(--field-bg); padding-left: .9rem; }
  .nav__search input, .nav__search:focus-within input, .nav__search input:focus { width: 100%; flex: 1; padding: .7rem 0; }
  .header { backdrop-filter: none; background: var(--paper); }
  .brand__logo { height: 46px; }
  .brand__logo--footer { height: 56px; }

  .card--wide { flex-direction: column; }
  .card--wide .card__media { flex: none; aspect-ratio: 800 / 415; min-height: 0; }
  .news__grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__grid, .learn__grid, .contact, .withtoc { grid-template-columns: 1fr; }
  .toc__box { position: static; max-height: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .news__grid, .grid--3, .grid--4, .form-row, .postnav { grid-template-columns: 1fr; }
  .days { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stats li { padding: 1.2rem 1rem; }
  .section__head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .section__head--center { align-items: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .radio__in { flex-direction: column; text-align: center; }
  .postnav__next { text-align: left; }
  .prose--gallery > figure, .prose--accordion > figure { width: calc((100% - 1.4rem) / 2); }
  .acc > summary { font-size: 1.16rem; padding: 1rem 3rem 1rem 1.1rem; }
  .acc-body { padding-inline: 1.1rem; }
  .searchbox { flex-direction: column; }
  .topbar ul { gap: .9rem; }
}
@media (max-width: 400px) {
  .days { grid-template-columns: 1fr; }
  .brand__logo { height: 40px; }
}

/* ==========================================================================
   Portal layout, widgets and small effects
   ========================================================================== */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }
.portal__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.widget__title { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .7rem; }
.widget__list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .66rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; transition: color .2s, padding .2s; }
.widget__list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.widget__list em { min-width: 30px; padding: .1rem .5rem; border-radius: 999px; background: var(--sand); color: var(--muted); font-style: normal; font-size: .76rem; text-align: center; transition: background-color .2s, color .2s; }
.widget__list a:hover { color: var(--accent); padding-left: .35rem; }
.widget__list a:hover em { background: var(--green-600); color: #fff; }
.widget--verse { position: relative; overflow: hidden; text-align: center; color: #fff; border-color: transparent; background: linear-gradient(160deg, var(--green-700), var(--green-950)); }
.widget--verse::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px 64px; opacity: .1; }
.widget--verse > * { position: relative; }
.widget--verse .icon { color: var(--gold-400); animation: spin 24s linear infinite; }
.widget--verse blockquote { margin: .6rem 0 0; }
.widget--verse p { font-family: var(--serif); font-style: italic; font-size: 1.32rem; line-height: 1.4; margin-bottom: .7rem; }
.widget--verse cite { font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.widget--radio { display: flex; align-items: center; gap: 1rem; color: var(--green-950); text-decoration: none; border-color: transparent; background: linear-gradient(120deg, #e4ca86, var(--gold-500)); transition: transform .25s, box-shadow .25s; }
.widget--radio:hover { color: var(--green-950); transform: translateY(-3px); box-shadow: var(--shadow); }
.widget--radio > span:nth-child(2) { flex: 1; }
.widget--radio strong { display: block; font-family: var(--serif); font-size: 1.36rem; line-height: 1.1; }
.widget--radio small { font-size: .82rem; line-height: 1.35; display: block; margin-top: .2rem; }
.widget__icon { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-950); color: var(--gold-400); }
.widget__icon i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--green-950); animation: ripple 2.4s ease-out infinite; }
.widget__icon i:last-child { animation-delay: 1.2s; }

.ornament { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .9rem; color: var(--gold-500); }
.ornament::before, .ornament::after { content: ""; width: 58px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold-400)); }
.notice--soft { margin: 0 0 1.6rem; padding: 1.1rem 1.3rem; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.notice--soft p { margin-bottom: .5rem; }
.section .notice--soft:last-child { margin: 2rem 0 0; }

.langs { display: flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.langs a { padding: .1rem .62rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.langs a.is-active, .langs a.is-active:hover { background: var(--gold-500); color: var(--green-950); }

.progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 3px; pointer-events: none; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--green-700); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.totop .icon { transform: rotate(180deg); }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--gold-500); color: var(--green-950); }

.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transition: left .7s ease; }
.btn--gold:hover::after { left: 125%; }
.section__head h2 { position: relative; }
.days__no { font-variant-numeric: lining-nums tabular-nums; }

/* soft cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (max-width: 1080px) {
  .portal__grid { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 960px) {
  .portal__grid { grid-template-columns: 1fr; }
  .portal__side { position: static; grid-template-columns: 1fr 1fr; }
  .portal__side .widget--radio { grid-column: 1 / -1; }
  .slide { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; }
  .slide__art, .slide__media { order: -1; }
  .slide__media { width: min(100%, 460px); margin-inline: auto; outline-offset: 6px; }
  .slide__lead { margin-inline: auto; }
  .slide__actions { justify-content: center; }
  .emblem { width: 170px; }
  .hero__stage { min-height: 0; padding-top: 2rem; }
  .tajs { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: .9rem; }
  .tajs img { max-width: 50px; }
}
@media (max-width: 640px) {
  .grid--2, .portal__side { grid-template-columns: 1fr; }
  .ticker__label { padding-right: .7rem; }
  .ticker__in { gap: .7rem; }
  .slide__title { font-size: 2.1rem; }
  .slide__title--news { font-size: 1.6rem; }
  .langs a { padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker.is-running .ticker__track { animation: none; }
  .emblem img, .emblem__ring, .hero__glow, .hero__pattern, .widget--verse .icon, .widget__icon i { animation: none; }
  .hero__dots button.is-active { background: var(--gold-400); }
  .hero__dots button.is-active::after { display: none; }
}

/* ==========================================================================
   Dark theme (the default) and the light/dark switch in the top bar.
   The <html data-theme="…"> attribute is written by the server from the visitor's cookie.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ivory: #06140e;
  --paper: #0d2219;
  --sand: #0a1c14;
  --line: #1c3529;
  --ink: #f4f0e6;
  --text: #c5cfc8;
  --muted: #8b9c93;
  --accent: #86d4ab;
  --gold-600: #d6b566;
  --green-700: #1a6845;
  --green-600: #228258;
  --danger: #f1968c;
  --header-bg: rgba(9, 28, 21, .93);
  --field-bg: #0a1d15;
  --hover-bg: rgba(255, 255, 255, .06);
  --chip-bg: rgba(134, 212, 171, .12);
  --err-bg: rgba(241, 150, 140, .1);
  --err-line: rgba(241, 150, 140, .32);
  --ok-bg: rgba(134, 212, 171, .1);
  --ok-line: rgba(134, 212, 171, .3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .45);
}
[data-theme="dark"] .card:hover { border-color: rgba(214, 181, 102, .55); }
[data-theme="dark"] .acc[open] { border-color: rgba(214, 181, 102, .5); }
[data-theme="dark"] .section--dark { background: linear-gradient(160deg, #0f3626, var(--green-950)); border-block: 1px solid var(--line); }
[data-theme="dark"] .days .days__more { background: #10432f; border-color: #10432f; }
[data-theme="dark"] .prose figure img { background: transparent; }
[data-theme="dark"] .notice--ok h2 { color: var(--accent); }
[data-theme="dark"] .ticker__label span { background: #e2604d; }
[data-theme="dark"] ::selection { background: var(--gold-500); color: var(--green-950); }

/* while the theme is being switched, colours change smoothly */
.is-theming, .is-theming *, .is-theming *::before, .is-theming *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important; }

.theme { display: flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.theme button { display: grid; place-items: center; width: 30px; height: 22px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .72); transition: color .2s, background-color .2s; }
.theme button:hover { color: var(--gold-300); }
.theme button[aria-pressed="true"], .theme button[aria-pressed="true"]:hover { background: var(--gold-500); color: var(--green-950); }
@media (max-width: 480px) {
  .topbar ul { gap: .7rem; }
}

@media print {
  .topbar, .header, .footer, .share, .postnav, .toc, .radio, .hero__actions { display: none !important; }
  body { background: #fff; }
  .acc-body { display: block !important; }
}
