/* Shared styles for the operator page (/igaming) and the theme pages (/igaming/*). */
:root {
  --warm: #1a1410;
  --cream: #f5f0e8;
  --paper: #efe7da;
  --sheet: #fbf8f2;
  --terracotta: #c4765a;
  --terracotta-ink: #9a4c31;
  --gold: #d4a574;
  --ink-soft: #5c534a;
  --line: #e0d8cc;
  --deep: #2a1f1a;
  /* rag strips, sampled from the Stelles Stelles rug photo */
  --rug-red: #a3202f;
  --rug-lime: #b7c23c;
  --rug-blue: #6c8ad3;
  --rug-teal: #1e6e8a;
  --rug-coral: #e96a50;
  --rug-char: #4a4e57;
  --rug-green: #2d7a4f;
  --rug-pink: #c65b78;
  --rug-oat: #e6d8bf;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--warm);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 2000;
  background: var(--warm); color: var(--cream); padding: 8px 14px; border-radius: 20px; text-decoration: none;
}
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.005em; margin-bottom: 20px; max-width: 24ch; text-wrap: balance; }
h1 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
p + p { margin-top: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.src { color: var(--ink-soft); font-size: 0.84rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 600px) { .src { white-space: normal; } }
.src:hover { color: var(--terracotta-ink); text-decoration-color: currentColor; }

/* ===== NAV (same pill as the home page) ===== */
.corner-nav {
  position: fixed; top: 16px; left: 16px; z-index: 1000;
  display: flex; gap: 4px; align-items: center;
  background: rgba(245, 240, 232, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 6px 8px; border-radius: 30px; border: 1px solid var(--line);
}
.corner-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none;
  color: var(--ink-soft); padding: 5px 12px; border-radius: 20px;
  transition: background 0.25s ease, color 0.25s ease;
}
.corner-nav a:hover { background: var(--warm); color: var(--cream); }
.corner-nav a.home { color: var(--warm); letter-spacing: 0.08em; }
.corner-nav a.nav-accent { background: var(--warm); color: var(--cream); }
.corner-nav a.nav-accent:hover { background: var(--terracotta-ink); }

/* ===== BUTTONS (same shapes as the home page) ===== */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 40px; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-primary { background: var(--warm); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-ink); transform: translateY(-2px); }
.btn-secondary { color: var(--warm); border: 1.5px solid var(--warm); }
.btn-secondary:hover { background: var(--warm); color: var(--cream); transform: translateY(-2px); }

/* ===== WEFT: rag strips taken from the rug ===== */
.weft { display: flex; gap: 3px; height: 22px; }
.weft span {
  flex: var(--w, 1) 1 0; border-radius: 2px; background-color: var(--c);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 2px, rgba(0,0,0,0) 2px 7px);
}

/* ===== HERO ===== */
.hero { padding: 104px 0 0; background: linear-gradient(180deg, var(--cream) 0%, #ede5d8 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.07; letter-spacing: -0.01em; margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.hero-photo figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--ink-soft); }
.hero .weft { height: 26px; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section.paper { background: var(--paper); }
.section-intro { margin-bottom: 48px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trio > div { border-top: 1.5px solid var(--warm); padding-top: 18px; }
.trio p { color: var(--ink-soft); font-size: 0.98rem; }

.note { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 78ch; font-size: 0.98rem; }

/* three ways to start */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ways h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.1; margin-bottom: 12px; }
.ways p { color: var(--ink-soft); }

/* steps: a real sequence, so it is numbered */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 25px; left: 0; right: 0; height: 1.5px; background: var(--line); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; margin-bottom: 18px; position: relative;
  background: var(--cream); border: 1.5px solid var(--warm);
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; line-height: 1;
}
.steps p { color: var(--ink-soft); font-size: 0.96rem; }

/* ===== PROGRAMMES ===== */
.loom { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 8px 0 56px; }
.loom a { text-decoration: none; font-size: 0.86rem; font-weight: 600; line-height: 1.3; color: var(--warm); }
.loom a .strip {
  display: block; height: 30px; border-radius: 2px; margin-bottom: 10px; background-color: var(--c);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 2px, rgba(0,0,0,0) 2px 7px);
  transition: transform 0.2s ease;
}
.loom a:hover .strip { transform: translateY(-3px); }
.loom a:hover { color: var(--terracotta-ink); }

.theme {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 48px; row-gap: 30px;
  padding: 0 0 48px; scroll-margin-top: 80px;
}
/* each theme opens with a woven strip in its rug colour */
.theme::before {
  content: ''; grid-column: 1 / -1; height: 14px; border-radius: 2px; background-color: var(--c);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 2px, rgba(0,0,0,0) 2px 7px);
}
.theme-more { margin-top: 18px; font-size: 0.92rem; font-weight: 600; }
.theme-more a { color: var(--warm); text-underline-offset: 3px; }
.theme-more a:hover { color: var(--terracotta-ink); }
.theme + .theme { margin-top: 0; }
.theme-head h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: 16px; }
.fact { font-size: 0.95rem; color: var(--ink-soft); }
.fact + .fact { margin-top: 12px; }
.theme-care { margin-top: 16px; font-size: 0.92rem; font-weight: 500; color: var(--warm); }

.progs { list-style: none; display: grid; gap: 26px; align-content: start; }
.progs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.progs li:last-child { border-bottom: 0; padding-bottom: 0; }
.progs h4 { font-size: 1.02rem; font-weight: 600; grid-column: 1; }
.progs p { grid-column: 1; font-size: 0.97rem; color: var(--ink-soft); margin-top: 4px; }
.progs .kpi { color: var(--warm); font-size: 0.9rem; margin-top: 8px; }
.progs .kpi b { font-weight: 600; color: var(--terracotta-ink); }
.reach {
  grid-column: 2; grid-row: 1; align-self: start; white-space: nowrap;
  font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; background: var(--cream);
}
.addon { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding: 32px 0 0; border-top: 1px solid var(--line); }
.addon h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.addon p { color: var(--ink-soft); }

/* ===== WHY WE'RE DIFFERENT ===== */
.diff { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.diff-text p { font-size: 1.02rem; max-width: 60ch; }
.diff-text p + p { margin-top: 20px; }
.diff-text strong { font-weight: 600; }
.feed { background: var(--deep); color: var(--cream); border-radius: 6px; padding: 26px 26px 22px; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.feed-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; line-height: 1.2; }
.feed-live { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--gold); }
.feed-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rug-lime); }
.feed ol { list-style: none; }
.feed li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid rgba(212, 165, 116, 0.22); font-size: 0.9rem; line-height: 1.5; color: rgba(245, 240, 232, 0.86); }
.feed time { color: var(--gold); font-variant-numeric: tabular-nums; }
.feed li b { color: #f2a08c; font-weight: 600; }
.feed-note { margin-top: 10px; font-size: 0.8rem; color: rgba(245, 240, 232, 0.66); }
.feed .tag { display: inline-block; margin-left: 4px; padding: 0 8px; border: 1px solid rgba(212, 165, 116, 0.45); border-radius: 10px; font-style: normal; font-size: 0.72rem; line-height: 1.6; color: var(--gold); white-space: nowrap; }
.compare.agents tbody th { width: 22%; }
.compare.agents td.usual { color: var(--warm); }
.compare-wrap { margin-top: 72px; }
.compare { width: 100%; border-collapse: collapse; }
.compare caption { text-align: left; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; margin-bottom: 18px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 15px 18px; border-top: 1px solid var(--line); font-size: 0.96rem; }
.compare thead th { border-top: 0; padding-bottom: 10px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.compare thead th.ours { color: var(--warm); border-top: 4px solid var(--terracotta); }
.compare tbody th { width: 19%; font-weight: 600; }
.compare td.usual { color: var(--ink-soft); }
.compare th.ours, .compare td.ours { background: var(--sheet); }
.status-tech { margin-top: 28px; max-width: 78ch; font-size: 0.92rem; color: var(--ink-soft); }
.status-tech strong { color: var(--warm); }

/* ===== RIGA / WHO WE ARE ===== */
.riga { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.riga figure img { border-radius: 6px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.riga figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--ink-soft); }
.riga p { color: var(--warm); }
.status { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.status strong { color: var(--warm); }

/* ===== SAFEGUARDS (dark band) ===== */
.dark { background: var(--deep); color: var(--cream); }
.dark h2 { color: var(--cream); }
.dark .lead { color: rgba(245, 240, 232, 0.78); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; list-style: none; }
.rules li { border-top: 1px solid rgba(212, 165, 116, 0.35); padding-top: 18px; }
.rules h3 { color: var(--gold); font-size: 1.02rem; }
.rules p { color: rgba(245, 240, 232, 0.82); font-size: 0.97rem; }

/* ===== REPORT ===== */
.report { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 32px 32px 28px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(42, 31, 26, 0.45); }
.sheet-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; line-height: 1.2; margin-bottom: 4px; }
.sheet-sub { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 18px; }
.sheet dl { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); }
.sheet dt { font-weight: 600; font-size: 0.92rem; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.sheet dd { font-size: 0.92rem; color: var(--ink-soft); padding: 10px 0; border-top: 1px solid var(--line); }

/* ===== COMMERCIAL ===== */
.model { display: grid; grid-template-columns: 11em minmax(0, 1fr); max-width: 760px; margin-bottom: 52px; }
.model dt { font-weight: 600; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.model dd { color: var(--ink-soft); padding: 14px 0; border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.path { list-style: none; counter-reset: stage; }
.path li { counter-increment: stage; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.path li::before { content: counter(stage); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; line-height: 1.1; color: var(--terracotta-ink); }

/* ===== FAQ ===== */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--warm); border-bottom: 1.5px solid var(--warm); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 70ch; }

/* ===== CONTACT ===== */
.contact { text-align: center; }
.contact h2 { margin-left: auto; margin-right: auto; }
.contact .lead { margin: 0 auto 32px; }
.contact .cta-row { justify-content: center; }
.contact .small { margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); }

/* ===== FOOTER (same as the home page) ===== */
footer { text-align: center; padding: 36px 24px; background: var(--deep); color: rgba(245, 240, 232, 0.6); font-size: 13px; line-height: 1.8; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--cream); }
footer .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
footer .footer-heart { color: var(--terracotta); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid, .riga, .report, .two-col, .diff { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-photo img { aspect-ratio: 16 / 11; }
  .trio, .ways { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .loom { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .theme, .addon { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .riga figure { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 84px; }
  .hero-grid { padding-bottom: 44px; }
  .section { padding: 68px 0; }
  .corner-nav { top: 12px; left: 10px; padding: 5px 6px; }
  .corner-nav a { padding: 4px 9px; font-size: 11px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { text-align: center; width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .loom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme { column-gap: 0; }
  .model { grid-template-columns: minmax(0, 1fr); }
  .model dt { padding-bottom: 0; }
  .model dd { border-top: 0; padding-top: 4px; }
  .progs li { grid-template-columns: minmax(0, 1fr); }
  .reach { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .sheet { padding: 24px 20px; }
  .sheet dl { grid-template-columns: minmax(0, 1fr); }
  .sheet dt { padding-bottom: 0; }
  .sheet dd { border-top: 0; padding-top: 2px; }
  .feed { padding: 22px 18px 18px; }
  .compare thead { display: none; }
  .compare, .compare caption, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare.agents tbody th { width: 100%; }
  .compare tr { border-top: 1px solid var(--line); padding: 16px 0; }
  .compare tbody th { border: 0; padding: 0 0 6px; width: 100%; }
  .compare td { border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
  .compare td.ours { padding: 10px 12px; margin-top: 8px; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== THEME PAGES (/igaming/*) ===== */
.crumbs { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--terracotta-ink); }
.theme-hero { padding: 104px 0 56px; background: linear-gradient(180deg, var(--cream) 0%, #ede5d8 100%); }
.theme-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 20px; max-width: 18ch; text-wrap: balance; }
.theme-hero .lead { margin-bottom: 30px; }
.theme-band {
  height: 18px; background-color: var(--c);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 2px, rgba(0,0,0,0) 2px 7px);
}
.facts { list-style: none; max-width: 780px; }
.facts li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 1.04rem; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.prog-rows { list-style: none; }
.prog-rows > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.prog-rows h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.15; margin-bottom: 12px; }
.prog-rows .what { font-size: 1.02rem; }
.prog-rows dl { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); margin-top: 14px; }
.prog-rows dt { font-weight: 600; font-size: 0.9rem; color: var(--terracotta-ink); padding: 7px 12px 7px 0; }
.prog-rows dd { font-size: 0.95rem; padding: 7px 0; }
.reach-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; background: var(--cream);
}
.maps { list-style: none; max-width: 780px; margin-top: 8px; }
.maps li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.maps li:last-child { border-bottom: 1px solid var(--line); }
.team-day { max-width: 70ch; font-size: 1.04rem; }
.other-themes { margin-top: 64px; }
.other-themes h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.other-themes .loom { margin-bottom: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .prog-rows > li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .other-themes .loom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .theme-hero { padding: 84px 0 44px; }
  .prog-rows dl { grid-template-columns: minmax(0, 1fr); }
  .prog-rows dt { padding-bottom: 0; }
  .other-themes .loom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== LANGUAGE SWITCH (same pill as the home page) ===== */
.lang-switch {
  position: fixed; top: 16px; right: 16px; z-index: 1000;
  background: rgba(245, 240, 232, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--warm); text-decoration: none;
}
.lang-switch:hover { background: var(--warm); color: var(--cream); }

/* ===== PHOTOS (AI-generated illustrations are always captioned) ===== */
.theme-hero.has-photo .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.theme-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.theme-photo figcaption, .theme-thumb figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--ink-soft); }
.theme-thumb { margin-bottom: 22px; }
.theme-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
@media (max-width: 960px) {
  .theme-hero.has-photo .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .theme-thumb { max-width: 520px; }
}
@media (max-width: 600px) {
  .lang-switch { top: 12px; right: 10px; padding: 7px 12px; font-size: 11px; }
}
@media (max-width: 600px) {
  /* room for the language switch: the programme link is also a button in the hero */
  body:has(.lang-switch) .corner-nav a:nth-child(2) { display: none; }
}
