/* ============================================================
   Örnek Site — editorial community design
   Tokens (ink/accent/paper/text) are overwritten from content/settings.json
   ============================================================ */
:root {
  --ink: #1E3C35;
  --accent: #A3402E;
  --paper: #F7F6F2;
  --text: #2E3A36;
  --muted: color-mix(in srgb, var(--ink) 52%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 28%, var(--paper));
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", P052, Palatino, Georgia, serif;
  --body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --ui: "Seravek", "Gill Sans Nova", Ubuntu, Calibri, "Segoe UI", system-ui, sans-serif;
  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

/* font presets — chosen in the admin (Görünüm) */
:root[data-font="sans"] { --display: var(--ui); --body: var(--ui); }
:root[data-font="sans"] h1, :root[data-font="sans"] h2, :root[data-font="sans"] h3,
:root[data-font="sans"] .brand, :root[data-font="sans"] .big, :root[data-font="sans"] .foot-col { font-weight: 600; letter-spacing: -.01em; }
:root[data-font="modern"] { --display: var(--ui); --body: var(--ui); }
:root[data-font="modern"] h1, :root[data-font="modern"] h2, :root[data-font="modern"] h3,
:root[data-font="modern"] .brand, :root[data-font="modern"] .big, :root[data-font="modern"] .foot-col { font-weight: 800; letter-spacing: -.03em; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

html { background: var(--paper); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, .brand, .big { color: var(--ink); font-family: var(--display); font-weight: 400; }

/* ---------- page watermark ---------- */
.page-mark, .foot-mark { display: none; }
.page-mark { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(72vmin, 660px); height: min(72vmin, 660px); background: var(--ink); opacity: .04; z-index: -1; pointer-events: none; mask-size: contain; mask-repeat: no-repeat; mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem);
  padding: clamp(.85rem, calc(.85rem + (100vw - 1280px) * 0.014), 1.45rem) var(--pad);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-size: clamp(1.16rem, calc(1.16rem + (100vw - 1280px) * 0.022), 2rem); letter-spacing: -.01em; white-space: nowrap; }
.brand-logo { height: clamp(30px, calc(30px + (100vw - 1280px) * 0.038), 56px); width: auto; }
.nav { display: flex; gap: .5rem clamp(.85rem, calc(.85rem + (100vw - 1280px) * 0.028), 2.1rem); margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: var(--ui); text-decoration: none; font-weight: 700; font-size: clamp(.75rem, calc(.75rem + (100vw - 1280px) * 0.0075), 1.05rem);
  text-transform: uppercase; letter-spacing: .035em;
  color: var(--text); padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang-wrap { flex-shrink: 0; }
.lang-btn { display: none; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; font-family: var(--ui); }
.lang button {
  border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700;
  font-size: clamp(.78rem, calc(.78rem + (100vw - 1280px) * 0.0065), 1rem);
  padding: clamp(.32rem, calc(.32rem + (100vw - 1280px) * 0.006), .58rem) clamp(.62rem, calc(.62rem + (100vw - 1280px) * 0.009), 1.05rem); cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- pages ---------- */
.page { display: none; }
.page.active { display: block; }
main { min-height: 62vh; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2.4rem, 6vw, 4rem); }
.hero-inner:has(.hero-next:not([hidden])) { padding-bottom: 0; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { margin: 0 0 1.1rem; font-family: var(--ui); font-size: .95rem; font-weight: 600; color: var(--muted); }
.hero-title {
  margin: 0 0 1.6rem; max-width: 13em;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.015em;
}
.hero-title .tl { display: block; }
.hero-title .tl-acc { color: var(--accent); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .tl { opacity: 0; transform: translateY(18px); animation: tl-in .65s cubic-bezier(.2, .7, .3, 1) forwards; }
  .hero-title .tl:nth-child(1) { animation-delay: .05s; }
  .hero-title .tl:nth-child(2) { animation-delay: .25s; }
  .hero-title .tl:nth-child(3) { animation-delay: .45s; }
  .hero-intro, .hero .btn { opacity: 0; animation: tl-in .6s ease-out .7s forwards; }
  @keyframes tl-in { to { opacity: 1; transform: translateY(0); } }
}
.hero.has-image .hero-title .tl-acc { color: #FFD9CE; }
.hero-intro { max-width: 34em; margin: 0 0 1.8rem; font-size: 1.17rem; line-height: 1.6; }
.btn {
  display: inline-block; padding: .78rem 1.5rem; border-radius: 2px; text-decoration: none;
  background: var(--ink); color: var(--paper); font-family: var(--ui); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--ink); cursor: pointer;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, black); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-next {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1rem;
  margin-top: clamp(2.2rem, 5vw, 3.6rem); padding: 1.05rem 0 1.15rem;
  border-top: 1px solid var(--rule); width: 100%;
  font-family: var(--ui); font-size: .98rem;
}
.hero-next .hn-label { color: var(--muted); font-weight: 600; }
.hero-next .hn-date { color: var(--accent); font-weight: 700; }
.hero-next .hn-title { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.hero-next a { margin-left: auto; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }

/* hero variant: full-bleed image */
.hero.has-image { position: relative; border-bottom: 0;
  background-image: linear-gradient(rgba(12,20,18,var(--hero-overlay)), rgba(12,20,18,var(--hero-overlay))), var(--hero-img);
  background-size: cover; background-position: center; }
.hero.has-image .hero-inner { padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero.has-image h1, .hero.has-image .hero-intro, .hero.has-image .eyebrow { color: #fff; }
.hero.has-image .btn { background: #fff; color: #15201d; border-color: #fff; }
.hero.has-image .hero-next { border-top-color: rgba(255,255,255,.35); }
.hero.has-image .hn-label { color: rgba(255,255,255,.75); }
.hero.has-image .hn-title, .hero.has-image .hero-next a { color: #fff; }
.hero.has-image .hn-date { color: #ffd9ce; }

/* hero variant: split */
.hero.split .hero-row { display: flex; align-items: center; gap: 3rem; }
.hero.split .hero-text { flex: 1 1 55%; }
.hero.split .hero-media { display: block; flex: 1 1 45%; aspect-ratio: 4/3; border-radius: 2px; background-size: cover; background-position: center; }
.hero.split .hero-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.hero.split .hero-next { margin-top: 1.8rem; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.6rem, 6vw, 4.2rem) var(--pad); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin: 0 0 .9rem; font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: -.01em; }
.section-head::after { content: ""; display: block; width: 100%; height: 1px; background: var(--rule); }
.empty { color: var(--muted); }

/* ---------- ledger (news & events share it) ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid; grid-template-columns: 7.2rem 1fr; gap: 1.6rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); position: relative;
}
.news li::before { content: ""; position: absolute; left: 6.4rem; top: 1.6rem; bottom: 1.6rem; width: 1px; background: var(--line); }
.news time { font-family: var(--ui); font-size: .85rem; font-weight: 700; color: var(--muted); padding-top: .45rem; }
.news li.pinned time { color: var(--accent); }
.news li.pinned time::before { content: "▪ "; }
.news h3 { margin: 0 0 .45rem; font-size: 1.55rem; line-height: 1.18; }
.news .body { margin: 0; max-width: 60ch; white-space: pre-line; }
.news img { margin: .3rem 0 .9rem; border-radius: 2px; max-height: 420px; object-fit: cover; }
.news .clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.news .more { margin-top: .5rem; border: 0; background: none; padding: 0; font-family: var(--ui); font-size: .92rem; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* events */
.events { display: flex; flex-direction: column; }
.event {
  display: grid; grid-template-columns: 7.2rem 1fr; gap: 1.6rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); position: relative;
}
.event::before { content: ""; position: absolute; left: 6.4rem; top: 1.6rem; bottom: 1.6rem; width: 1px; background: var(--line); }
.event.past { opacity: .55; }
.ev-date { display: flex; flex-direction: column; align-items: flex-start; padding-top: .2rem; }
.ev-day { font-family: var(--display); font-size: 2.3rem; line-height: 1; color: var(--ink); }
.ev-mon { font-family: var(--ui); font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: .25rem; }
.ev-body h3 { margin: 0 0 .3rem; font-size: 1.55rem; line-height: 1.18; }
.ev-meta { margin: 0 0 .55rem; font-family: var(--ui); font-size: .9rem; font-weight: 600; color: var(--muted); }
.ev-body p { margin: 0; white-space: pre-line; max-width: 60ch; }
.ev-body img { margin-top: .9rem; border-radius: 2px; max-height: 380px; object-fit: cover; }
/* first upcoming event = the one bold moment */
#events-upcoming .event:first-child { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
#events-upcoming .event:first-child::before { left: calc(6.4rem + 1.25rem); }
#events-upcoming .event:first-child .ev-day { color: var(--accent); font-size: 2.7rem; }
#events-upcoming .event:first-child h3 { font-size: 1.85rem; }
.events.compact .event { grid-template-columns: 4.6rem 1fr; gap: 1rem; padding: 1rem 0; }
.events.compact .event::before { left: 4rem; }
.events.compact .ev-day { font-size: 1.6rem; }
.events.compact h3 { font-size: 1.15rem; }
.events.compact .event:first-child { border-left: 0; padding-left: 0; }
.events.compact .event:first-child::before { left: 4rem; }
.events.compact .event:first-child .ev-day { color: var(--ink); font-size: 1.6rem; }
.events.compact .event:first-child h3 { font-size: 1.15rem; }
.past { margin-top: 2.2rem; }
.past summary { cursor: pointer; font-family: var(--ui); font-weight: 700; color: var(--muted); margin-bottom: .6rem; }

/* fixture view */
.fx-month { margin: 1.9rem 0 .4rem; font-size: 1.3rem; text-transform: capitalize; }
.fx-month:first-child { margin-top: 0; }
.fx-row-wrap { border-bottom: 1px solid var(--line); }
.fx-row {
  display: grid; grid-template-columns: 6.4rem 1fr auto minmax(0, 32%); gap: 1.1rem;
  align-items: baseline; width: 100%; padding: .72rem 0;
  background: none; border: 0; font: inherit; text-align: left; color: inherit; cursor: default;
}
button.fx-row { cursor: pointer; }
button.fx-row:hover .fx-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fx-date { font-family: var(--ui); font-size: .88rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
#events-upcoming .fx-row-wrap:first-of-type .fx-date { color: var(--accent); }
.fx-title { font-family: var(--display); font-size: 1.22rem; color: var(--ink); line-height: 1.25; }
.fx-time { font-family: var(--ui); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.fx-place { font-family: var(--ui); font-size: .88rem; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-detail { padding: .15rem 0 1rem 7.5rem; }
[dir="rtl"] .fx-detail { padding: .15rem 7.5rem 1rem 0; }
[dir="rtl"] .fx-place { text-align: left; }
[dir="rtl"] .social-fab { right: auto; left: 14px; }
.fx-detail p { margin: 0; max-width: 56ch; white-space: pre-line; }
.fx-detail img { margin-top: .8rem; border-radius: 2px; max-height: 340px; object-fit: cover; }
.fx .past .fx-date { color: var(--muted) !important; }

/* ---------- calendar ---------- */
.cal-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.cal-head h3 { margin: 0; font-size: 1.55rem; text-transform: capitalize; }
.cal-nav { border: 1px solid var(--rule); background: transparent; color: var(--ink); width: 2.3rem; height: 2.3rem; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.cal-nav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dn { text-align: center; font-family: var(--ui); font-size: .72rem; font-weight: 700; color: var(--muted); padding: .35rem 0 .5rem; }
.cal-cell { aspect-ratio: 1; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ink) 3.5%, var(--paper)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--ui); color: var(--text); cursor: default; transition: background .15s, transform .1s; }
.cal-cell.off { visibility: hidden; }
.cal-cell span { font-size: .95rem; }
.cal-cell i { font-style: normal; color: var(--accent); font-size: .9rem; line-height: .4; letter-spacing: -1px; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell.today span { font-weight: 800; color: var(--ink); }
.cal-cell.has { cursor: pointer; background: color-mix(in srgb, var(--accent) 13%, var(--paper)); font-weight: 700; }
.cal-cell.has:hover { background: color-mix(in srgb, var(--accent) 26%, var(--paper)); transform: scale(1.06); }
.cal-cell.sel { background: var(--ink) !important; color: var(--paper); transform: scale(1.06); }
.cal-cell.sel i { color: var(--paper); }
.cal-side > h3 { margin: 0 0 1rem; font-size: 1.4rem; text-transform: capitalize; }
/* yan liste: yumuşak kartlar + tarih rozeti */
.events.compact { gap: .8rem; }
.events.compact .event, .events.compact .event:first-child { grid-template-columns: 3.9rem 1fr; gap: 1rem; padding: 1rem 1.1rem; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.events.compact .event::before, .events.compact .event:first-child::before { display: none; }
.events.compact .ev-date { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); border-radius: 10px; padding: .45rem 0; align-items: center; align-self: start; width: 100%; }
.events.compact .ev-day, .events.compact .event:first-child .ev-day { font-size: 1.45rem; color: var(--accent); }
.events.compact .ev-mon { color: var(--ink); }
.events.compact h3, .events.compact .event:first-child h3 { font-size: 1.12rem; }
.events.compact .ev-meta { margin-bottom: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 2px; overflow: hidden; aspect-ratio: 4/3; }
.gallery button:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery.grid button:nth-child(5n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:focus-visible img { outline: 3px solid var(--accent); }

/* ---------- home blocks ---------- */
.hb { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.2rem, 5vw, 3.4rem) var(--pad); }
.hb + .hb { border-top: 1px solid var(--line); }
.hb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.hb-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.95rem); }
.hb-head a { font-family: var(--ui); font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); }
.hb-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2rem; }
.hb-news article { display: flex; flex-direction: column; gap: .3rem; }
.hb-news time { font-family: var(--ui); font-size: .78rem; font-weight: 700; color: var(--muted); }
.hb-news h3 { margin: 0; font-size: 1.28rem; line-height: 1.22; }
.hb-news p { margin: 0; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-news img { aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; margin-bottom: .4rem; }
.hb-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hb-strip a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.hb-strip img { width: 100%; height: 100%; object-fit: cover; }
.hb-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hb-text.noimg { grid-template-columns: 1fr; max-width: 46rem; }
.hb-text p { white-space: pre-line; font-size: 1.07rem; margin: 0; }
.hb-text img { border-radius: 2px; width: 100%; }

/* ---------- custom pages ---------- */
.cpage { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 50rem; }
.cpage p { white-space: pre-line; font-size: 1.1rem; margin: 0; }
.cpage img { border-radius: 2px; width: 100%; }

/* ---------- membership (join) ---------- */
.join-lead { max-width: 52ch; margin: 0 0 1.3rem; font-size: 1.02rem; }
.join-cols { display: grid; grid-template-columns: minmax(0, 30rem) minmax(16rem, 24rem); gap: 1.8rem 3rem; align-items: start; }
.join-form { display: flex; flex-direction: column; gap: .55rem; background: var(--accent); color: #fff; padding: 1.3rem 1.5rem 1.4rem; border-radius: 14px; }
.jf-h { margin: 0 0 .5rem; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: #fff; }
.jf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.jf-l { display: block; font-family: var(--ui); font-size: .85rem; font-weight: 600; color: #fff; }
.jf-opt { font-weight: 400; color: rgba(255,255,255,.75); }
.jf-i { display: block; width: 100%; margin-top: .22rem; padding: .46rem .6rem; font-family: var(--body); font-size: .97rem; color: var(--text); background: #fff; border: 0; border-radius: 8px; }
.jf-i:focus { outline: 2px solid #fff; outline-offset: 1px; }
textarea.jf-i { resize: vertical; min-height: 72px; }
.jf-consent { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--ui); font-size: .85rem; color: #fff; margin-top: .25rem; }
.jf-consent input { margin-top: .2rem; accent-color: var(--ink); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.join-form .btn { align-self: flex-start; margin-top: .45rem; background: color-mix(in srgb, var(--accent) 55%, black); border-color: transparent; border-radius: 8px; }
.join-form .btn:hover { background: color-mix(in srgb, var(--accent) 40%, black); }
.join-form .btn:focus-visible { outline-color: #fff; }
.jf-note { margin: .3rem 0 0; font-family: var(--ui); font-size: .8rem; color: rgba(255,255,255,.85); max-width: 46ch; }
.join-bank { border: 1px solid var(--rule); border-radius: 2px; padding: 1.1rem 1.25rem; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.join-bank h3 { margin: 0 0 .6rem; font-size: 1.35rem; }
.join-bank > p { margin: 0 0 1.1rem; font-size: .98rem; }
.join-bank dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.1rem; font-family: var(--ui); font-size: .95rem; }
.join-bank dt { font-weight: 700; color: var(--ink); }
.join-bank dd { margin: 0; }
.join-bank .iban { font-variant-numeric: tabular-nums; letter-spacing: .03em; font-weight: 600; }
.hb .join-lead { margin-bottom: 1.4rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 3rem; }
.contact-block { display: flex; flex-direction: column; gap: .15rem; font-style: normal; }
.label { font-family: var(--ui); font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.big { font-size: 1.4rem; line-height: 1.3; text-decoration: none; }
a.big:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.social { display: flex; gap: .9rem; margin-top: .7rem; }
.social a { font-family: var(--ui); font-size: .9rem; font-weight: 700; }
.map { grid-column: 1 / -1; gap: .8rem; align-items: flex-start; }
.map iframe { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: 2px; }
.map-link { font-family: var(--ui); font-size: .85rem; color: var(--muted); }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); margin-top: 3rem; font-family: var(--ui); }
.foot-mark { position: absolute; right: -70px; bottom: -90px; width: 460px; height: 460px; background: #fff; opacity: .07; mask-size: contain; mask-repeat: no-repeat; mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; pointer-events: none; }
[dir="rtl"] .foot-mark { right: auto; left: -70px; }
.foot-grid { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 2.2rem var(--pad) 2rem; display: grid; grid-template-columns: 1.15fr 1fr 1.1fr 1fr; gap: 1.8rem; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.foot-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 8px; }
.foot-logo img { height: 58px; width: auto; display: block; }
.foot-name { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; }
.foot-social { display: flex; gap: .6rem; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.foot-social a:hover { background: var(--accent); color: #fff; }
.foot-social svg, .f-ic svg, .f-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-col h4 { margin: 0 0 .55rem; font-size: 1rem; font-weight: 700; color: var(--paper); }
.foot-col h4.f-mt { margin-top: 1rem; }
.foot-col p { margin: 0 0 .35rem; font-size: .95rem; color: color-mix(in srgb, var(--paper) 88%, var(--ink)); }
.foot-col a { color: inherit; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.f-legal { margin-top: .5rem; }
.f-legal summary { cursor: pointer; font-weight: 700; color: var(--paper); font-size: .92rem; }
.f-legal p { margin: .4rem 0 0; font-family: var(--body); font-size: .85rem; max-width: 38ch; white-space: pre-line; color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.foot-col .copy { margin-top: .9rem; font-size: .8rem; color: color-mix(in srgb, var(--paper) 60%, var(--ink)); }
.f-ic { display: flex; align-items: center; gap: .55rem; }
.f-ic svg { flex: 0 0 auto; opacity: .85; }
.f-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.f-links a { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: color-mix(in srgb, var(--paper) 88%, var(--ink)); }
.f-links svg { opacity: .85; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; padding-top: 1.8rem; }
  .foot-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: .4rem; border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
  .foot-logo img { height: 44px; }
  .foot-social { margin-left: auto; }
  [dir="rtl"] .foot-social { margin-left: 0; margin-right: auto; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- floating Instagram button ---------- */
.social-fab {
  position: fixed; right: 14px; top: 55%; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: transform .15s;
}
.social-fab:hover { transform: scale(1.08); }
.social-fab svg { display: block; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 93%, black); display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: transparent; color: var(--paper); font-size: 2.5rem; cursor: pointer; padding: 1rem; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-src { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; font-family: var(--ui); font-size: .85rem; font-weight: 700; color: #fff; opacity: .85; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lb-src:hover { opacity: 1; }
.lb-cap { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: var(--paper); font-family: var(--display); font-size: 1.15rem; margin: 0; }

/* ---------- mobile ---------- */
@media (max-width: 1190px) {
  .top { gap: .55rem .7rem; flex-wrap: wrap; padding-left: clamp(.9rem, 3vw, 3rem); padding-right: clamp(.9rem, 3vw, 3rem); }
  .nav { display: none; width: 100%; flex-direction: column; gap: .75rem; padding: .5rem 0 .3rem; order: 10; }
  .top.open .nav { display: flex; }
  .menu-btn { display: block; order: 3; }
  .brand { flex: 1 1 auto; min-width: 0; font-size: clamp(.88rem, 3.6vw, 1.16rem); }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lang-wrap { position: relative; order: 2; margin-left: auto; }
  .lang-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    border: 1px solid var(--rule); border-radius: 2px; background: transparent;
    color: var(--ink); font-family: var(--ui); font-weight: 700; font-size: .82rem;
    padding: .38rem .6rem; cursor: pointer;
  }
  .lang { display: none; }
  .lang-wrap.open .lang {
    display: flex; flex-direction: column; position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
    min-width: 11rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14); overflow: hidden;
  }
  [dir="rtl"] .lang-wrap.open .lang { right: auto; left: 0; }
  .lang-wrap.open .lang button { border-left: 0; text-align: start; padding: .6rem .9rem; font-size: 0; }
  .lang-wrap.open .lang button + button { border-top: 1px solid var(--line); }
  .lang-wrap.open .lang button::after { content: attr(data-native); font-size: .95rem; }
  .lang-wrap.open .lang button[aria-current="true"]::before { content: "✓ "; font-size: .9rem; }
  .hero-title { font-size: clamp(1.8rem, 7vw + .35rem, 2.6rem); }
  .hero-intro { font-size: 1.08rem; }
}
@media (max-width: 900px) {
  .hero.split .hero-row { flex-direction: column; align-items: stretch; gap: 1.8rem; }
  .hero.split .hero-media { width: min(70vw, 340px); aspect-ratio: 1; align-self: center; }
  .social-fab { width: 42px; height: 42px; right: 10px; top: auto; bottom: 18%; }
  .hero-next a { margin-left: 0; width: 100%; }
  .news li, .event { grid-template-columns: 1fr; gap: .35rem; }
  .news li::before, .event::before { display: none; }
  .news time { padding-top: 0; }
  .ev-date { flex-direction: row; align-items: baseline; gap: .45rem; }
  .ev-day { font-size: 1.5rem !important; }
  #events-upcoming .event:first-child { padding-left: 1rem; }
  .cal-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .fx-row { grid-template-columns: 5.2rem 1fr; gap: .2rem .8rem; }
  .fx-time { grid-column: 2; }
  .fx-place { grid-column: 2; text-align: left; white-space: normal; }
  .fx-detail { padding-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button:nth-child(5n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .hb-strip { grid-template-columns: repeat(3, 1fr); }
  .hb-text { grid-template-columns: 1fr; }
  .join-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .jf-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand-logo { display: none; }
  .brand { font-size: clamp(.8rem, 4.2vw, 1rem); }
}

@media (max-width: 1190px) {
  .social-fab { top: auto; bottom: 16px; right: 12px; width: 44px; height: 44px; }
  [dir="rtl"] .social-fab { right: auto; left: 12px; }
}
