/* PLC Mitte: front-end styles.
   Ported from the approved static design (design-directions/c/style.css, 23 Oct 2026). Tokens come from
   theme.json presets so palette edits in the Site Editor carry through. Sections marked "WP" are additions
   for WordPress content (core blocks, page templates). */
:root {
  --canvas: var(--wp--preset--color--canvas, #F7F3EE);
  --white: var(--wp--preset--color--white, #FFFFFF);
  --blush: var(--wp--preset--color--blush, #F1E5DE);
  --ink: var(--wp--preset--color--ink, #211A17);
  --ink-soft: var(--wp--preset--color--ink-soft, #4E4440);
  --tint: var(--wp--preset--color--tint, #FCF5F1);
  --line: var(--wp--preset--color--line, #E4D9CF);
  --maroon: var(--wp--preset--color--maroon, #7D1D2C);
  --maroon-deep: var(--wp--preset--color--maroon-deep, #4E0F19);
  --saffron: var(--wp--preset--color--saffron, #F1A93A);
  --saffron-soft: var(--wp--preset--color--saffron-soft, #FBE7C4);

  --c-med: var(--wp--preset--color--c-med, #2F7D5B); --c-puja: var(--wp--preset--color--c-puja, #C7781A); --c-kurs: var(--wp--preset--color--c-kurs, #2D4F8C);
  --c-sem: var(--wp--preset--color--c-sem, #9A2B3A); --c-fest: var(--wp--preset--color--c-fest, #B08A2E); --c-weitere: var(--wp--preset--color--c-weitere, #5E6B73);

  --display: var(--wp--preset--font-family--instrument-sans, "Instrument Sans", -apple-system, "Segoe UI", sans-serif);
  --text: var(--display);

  --gutter: clamp(16px, 3.6vw, 44px);
  --max: 1280px;
  --r-xl: 32px; --r-lg: 22px; --r-md: 14px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --e1: 0 1px 2px rgba(78, 15, 25, .05), 0 6px 18px -8px rgba(78, 15, 25, .16);
  --e2: 0 2px 6px rgba(78, 15, 25, .06), 0 24px 48px -20px rgba(78, 15, 25, .34);
  --head-h: 121px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
/* Sacred subjects (media field „Ganz zeigen“: the Buddha, deities, statues, thangkas, altars) are
   never cropped or zoomed: in any fixed frame they sit whole on a quiet mat. */
img.plc-ganz { object-fit: contain !important; object-position: 50% 50% !important; transform: none !important; background: var(--blush); }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--maroon); color: var(--white); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; border-radius: 999px; box-shadow: var(--e2); }
.tnum { font-variant-numeric: tabular-nums; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section.pt0 { padding-top: 0; }
.kicker { font: 600 13px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
a.kicker { text-decoration: none; }
a.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 16ch; margin-top: 14px; }
.head p { color: var(--ink-soft); max-width: 46ch; margin-top: 12px; font-size: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15.5px/1 var(--text); padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-deep); }
.btn-white { background: var(--white); color: var(--maroon); }
.btn-white:hover { background: var(--saffron-soft); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #E89B26; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .16); color: var(--white); border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--maroon); }
.arrow-link svg { width: 16px; height: 16px; transition: transform .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover svg { transform: translateX(3px); } }

/* chips & badges */
.cat { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.c-med { --c: var(--c-med); } .c-puja { --c: var(--c-puja); } .c-kurs { --c: var(--c-kurs); }
.c-sem { --c: var(--c-sem); } .c-fest { --c: var(--c-fest); } .c-weitere { --c: var(--c-weitere); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--text); padding: 6px 10px; border-radius: 999px; background: var(--blush); color: var(--ink); white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.on { background: #E3EFE8; color: #1F5E43; }
.pill.dark { background: rgba(255, 255, 255, .16); color: var(--white); backdrop-filter: blur(8px); }

/* ---------- header (from Tradition, with a light warm tint) ---------- */
.site-header { display: contents; } /* WP: template-part wrapper must not limit the sticky bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--maroon); }
.topbar { background: var(--maroon); color: #F6E6E2; font-size: 14.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar .name { font-weight: 500; letter-spacing: .01em; }
.topbar nav { display: flex; gap: 22px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--tint); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 80px; }
.masthead nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.masthead nav.right { justify-content: flex-end; }
/* the bar's own navs only (.wrap > nav): the phone menu is a nav in the header too, with its own padding */
.masthead .wrap > nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s var(--ease), color .15s var(--ease); }
.masthead .wrap > nav > a:not(.btn):hover, .masthead .wrap > nav > a:not(.btn)[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--saffron); }
.logo { display: block; width: 64px; height: 64px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.icon-btn:hover { background: var(--blush); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.masthead .mnav { display: none; }
.give { padding: 11px 18px; font-size: 15px; gap: 7px; }
.give svg { width: 15px; height: 15px; }
@media (max-width: 420px) { .give { padding: 10px 14px; font-size: 14.5px; } .give svg { display: none; } }
/* With Spenden in the bar, three links + search + pill need about 500px beside the logo: tighten up to 1199px, go compact at 1100px. */
@media (min-width: 1101px) and (max-width: 1199px) { .masthead nav { gap: 14px; } .give { padding-inline: 16px; } .give svg { display: none; } }
/* WP: search row under the bar */
.searchbar { border-top: 1px solid var(--line); background: var(--tint); }
.searchbar form { display: flex; gap: 8px; padding-block: 12px; }
.searchbar input { flex: 1; min-width: 0; font: inherit; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
@media (max-width: 960px) {
  .topbar nav { display: none; }
  .topbar .name { font-size: 13.5px; }
}
@media (max-width: 1100px) {
  .masthead .wrap { grid-template-columns: auto 1fr auto; min-height: 66px; }
  .masthead nav.left, .masthead nav.right > a:not(.give) { display: none; }
  .masthead nav.right { gap: 6px; }
  .logo { width: 50px; height: 50px; order: -1; }
  .menu-btn { display: inline-grid; }
  .masthead .mnav { display: grid; background: var(--tint); border-top: 1px solid var(--line); padding: 6px 0; }
  .masthead .mnav[hidden] { display: none; }
  .masthead .mnav a { text-decoration: none; font-weight: 600; font-size: 18px; padding: 12px var(--gutter); }
  .masthead .mnav a:hover { background: var(--blush); }
  /* WP: service links stay reachable on phones */
  .masthead .mnav .sub { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px var(--gutter) 6px; border-top: 1px solid var(--line); margin-top: 6px; }
  .masthead .mnav .sub a { font-weight: 500; font-size: 15px; padding: 6px 0; color: var(--ink-soft); }
  .masthead .mnav .sub a:hover { background: none; color: var(--maroon); }
}
@media (min-width: 961px) { .masthead .mnav .sub { display: none; } }
/* WP: admin bar */
body.admin-bar .masthead { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { body.admin-bar .masthead { top: calc(env(safe-area-inset-top, 0px) + 46px); } }
@media (max-width: 600px) { body.admin-bar .masthead { top: env(safe-area-inset-top, 0px); } }
.page-pad { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- hero: announcement banner (flyers shown whole) ---------- */
.hero { padding: 12px 12px 0; position: relative; }
/* Tall enough for a landscape poster (about 1.42:1) to use the full width, but never pushing the
   tabs below the fold: header ~121px + tab bar ~90px. Posters are never cropped, so this is the lever. */
.frame { position: relative; height: max(380px, min(calc((100vw - 24px) / 1.42 + 40px), calc(100svh - 210px), 860px)); border-radius: var(--r-xl); overflow: hidden; background: var(--maroon-deep); transform-origin: 50% 0; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; text-decoration: none; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.slide .backdrop { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(34px) saturate(1.15); opacity: .85; }
.slide .shade { position: absolute; inset: 0; background: rgba(78, 15, 25, .28); }
.slide .flyer { position: absolute; inset: clamp(10px, 1.4vw, 20px); width: calc(100% - 2 * clamp(10px, 1.4vw, 20px)); height: calc(100% - 2 * clamp(10px, 1.4vw, 20px)); max-width: none; object-fit: contain; filter: drop-shadow(0 18px 36px rgba(40, 8, 14, .45)); will-change: transform; }
.banner-bar { display: flex; align-items: center; gap: 10px; padding: 14px max(4px, calc(var(--gutter) - 12px)) 0; }
.tabs { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; position: relative; overflow: hidden; display: grid; gap: 2px; text-align: left; padding: 10px 16px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 14.5px/1.25 var(--text); cursor: pointer; transition: background-color .16s, border-color .16s; }
.tab small { font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.tab:hover { border-color: var(--maroon); }
.tab.is-active { background: var(--blush); border-color: var(--blush); }
.tab .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--maroon); transform-origin: 0 50%; transform: scaleX(0); }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.round:hover { border-color: var(--maroon); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 14px; height: 14px; }
.banner-bar .btn { flex: none; }
@media (max-width: 900px) {
  .hero { padding: 8px 8px 0; }
  .frame { height: auto; min-height: 0; aspect-ratio: 4 / 3.1; border-radius: 22px; }
  .slide .flyer { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .banner-bar { flex-wrap: wrap; }
  .banner-bar .btn { width: 100%; order: 3; }
}

/* today card, now beside the welcome */
.today-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--e2); padding: 22px 22px 18px; display: grid; gap: 12px; border: 1px solid var(--line); }
.today-card .top { display: flex; justify-content: space-between; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--text); color: var(--maroon); letter-spacing: .06em; text-transform: uppercase; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #2F9E6B; box-shadow: 0 0 0 4px rgba(47, 158, 107, .18); }
.today-card .date { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.today-card ul { list-style: none; margin: 0; padding: 0; display: grid; }
.today-card li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.today-card time { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.today-card li a { text-decoration: none; font-weight: 600; line-height: 1.3; display: block; }
.today-card li a:hover { color: var(--maroon); }
.today-card li span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.today-card .foot { display: flex; gap: 8px; }
.today-card .foot .btn { flex: 1; padding: 11px 12px; font-size: 14px; }
.today-card .none { color: var(--ink-soft); font-size: 15px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- welcome: statement with inline photos + today ---------- */
.statement { padding-block: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 104px); }
.statement .grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.statement .big { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 3.3rem); line-height: 1.16; letter-spacing: -.02em; max-width: 20ch; margin: 0; }
.statement .inl, .statement .big img { display: inline-block; vertical-align: middle; height: .9em; width: 1.9em !important; border-radius: 999px; overflow: hidden; margin: -.12em .08em 0; position: relative; top: -.04em; background: var(--blush); }
.statement .inl img { width: 100%; height: 100%; object-fit: cover; }
.statement .big img { object-fit: cover; max-width: none; object-position: 50% 30%; }
/* A sacred photo can't be cropped to the pill, so its frame takes the photo's own proportions and it fills edge to edge. */
.statement .big img.plc-ganz { width: auto !important; border-radius: .3em; background: none; }
.statement .soft, .statement .big mark { color: var(--maroon); background: none; }
.statement .below { display: grid; gap: 20px; margin-top: clamp(24px, 3vw, 36px); }
.statement .below p { max-width: 52ch; color: var(--ink-soft); font-size: 18px; }
.statement .below .links { display: flex; gap: 24px; flex-wrap: wrap; color: var(--maroon); }
@media (max-width: 960px) { .statement .grid { grid-template-columns: minmax(0, 1fr); } }
/* WP: arrow links written as plain links in a paragraph */
.links a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--maroon); }
.links a::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .links a:hover::after { transform: translateX(3px); } }

/* ---------- bento week ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 14px; }
.tile { border-radius: var(--r-lg); background: var(--white); padding: 24px; display: grid; align-content: space-between; gap: 18px; position: relative; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.tile h3 { font-size: 24px; letter-spacing: -.025em; }
.tile .sub { color: var(--ink-soft); font-size: 15.5px; }
.t-today { grid-column: span 2; grid-row: span 2; background: var(--maroon); color: var(--white); border: 0; }
.t-today .live { color: #F7D49A; }
.t-today .live i { background: #7EE0AE; box-shadow: 0 0 0 4px rgba(126, 224, 174, .2); }
.t-today h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--white); }
.t-today ol { list-style: none; margin: 0; padding: 0; display: grid; }
.t-today li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .18); align-items: start; }
.t-today time { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.t-today time small { display: block; font: 500 13.5px/1.4 var(--text); letter-spacing: 0; color: #F4E1DE; margin-top: 4px; }
.t-today b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.t-today b a { text-decoration: none; }
.t-today b a:hover { text-decoration: underline; }
.t-today li span { display: block; font-size: 14.5px; color: #F0D9D6; margin-top: 4px; }
.t-today .row { display: flex; gap: 10px; flex-wrap: wrap; }
.t-today .none { color: #F0D9D6; }
.t-photo { grid-column: span 2; padding: 0; border: 0; min-height: 300px; color: var(--white); align-content: end; }
.t-news { grid-column: span 2; }
.t-visit address { font-style: normal; display: grid; gap: 2px; font-size: 15.5px; }
.t-visit address b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.t-photo:hover img { transform: scale(1.04); }
.t-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40, 8, 14, .82), rgba(40, 8, 14, 0) 62%); }
.t-photo .in { position: relative; z-index: 1; padding: 24px; display: grid; gap: 10px; align-self: end; }
.t-photo .in > div { display: flex; gap: 8px; flex-wrap: wrap; }
/* a sacred photo: whole, above the text, with nothing laid over it */
.t-photo:has(> .plc-ganz) { background: var(--maroon-deep); grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; gap: 0; }
.t-photo:has(> .plc-ganz)::after { content: none; }
/* stretched to its row, not height:100%: Safari resolves that against the whole tile, and the mat then covers the text */
.t-photo > .plc-ganz { position: relative; inset: auto; height: auto; align-self: stretch; min-height: 220px; }
.t-photo h3 { color: var(--white); font-size: 28px; }
.t-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.t-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.t-list li a { text-decoration: none; }
.t-list li a:hover b { color: var(--maroon); }
.t-list .d { font-family: var(--display); font-weight: 700; font-size: 22px; text-align: center; line-height: 1; letter-spacing: -.02em; }
.t-list .d small { display: block; font: 600 11px/1.4 var(--text); color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.t-list b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.t-list span { font-size: 13px; color: var(--ink-soft); }
.t-saffron { background: var(--saffron); border: 0; }
.t-saffron .sub { color: #4B3410; }
.t-count .n { font-family: var(--display); font-weight: 700; font-size: 60px; line-height: .9; letter-spacing: -.035em; color: var(--maroon); }
.t-count .n small { font-size: 22px; letter-spacing: -.02em; margin-left: 6px; color: var(--ink); }
.t-news { background: var(--blush); border: 0; }
.t-news form { display: flex; gap: 8px; }
.t-news input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.t-news button { font: 600 14.5px/1 var(--text); padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--white); cursor: pointer; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .t-today, .t-photo, .t-news { grid-column: span 1; grid-row: auto; } .t-today li { grid-template-columns: 76px minmax(0, 1fr); } .t-today time { font-size: 24px; } }

/* ---------- stacking programmes ---------- */
.stack { display: grid; gap: 0; }
.stack-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; min-height: 440px; background: var(--white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--e2); margin-bottom: 28px; transform-origin: 50% 0; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.stack-card .txt { padding: clamp(28px, 4vw, 52px); display: grid; align-content: space-between; gap: 28px; }
.stack-card h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.02em; margin-top: 14px; }
.stack-card p { color: var(--ink-soft); font-size: 18px; max-width: 36ch; margin-top: 14px; }
.stack-card .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.stack-card .count { font-weight: 600; font-size: 15px; }
.stack-card .ph { position: relative; min-height: 260px; }
.stack-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.stack-card:nth-child(2) { background: #FFFCF8; }
.stack-card:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.stack-card:nth-child(even) .ph { order: -1; }
body.admin-bar .stack-card { top: calc(env(safe-area-inset-top, 0px) + 136px); }
/* Sacred images (plc-ganz) are shown whole: the photo column takes the photo's proportions (--ar)
   at the shared card height, so it fills its side without cropping or bars. One height for every
   card keeps the stack clean as the cards slide over each other; the text keeps at least 36%. */
.stack { container-type: inline-size; --h: clamp(400px, 34vw, 480px); }
.stack-card { min-height: var(--h); }
.stack-card.is-ganz { grid-template-columns: minmax(0, 1fr) min(calc(var(--h) * var(--ar)), 64cqw); }
.stack-card.is-ganz:nth-child(even) { grid-template-columns: min(calc(var(--h) * var(--ar)), 64cqw) minmax(0, 1fr); }
.stack-card.is-ganz .ph { min-height: 0; }
.stack-card .ph img.plc-ganz { background: none; }
@media (max-width: 860px) {
  .stack-card, .stack-card:nth-child(even) { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; margin-bottom: 16px; }
  body.admin-bar .stack-card { top: auto; }
  .stack-card:nth-child(even) .ph { order: 0; }
  .stack-card .ph { min-height: 200px; order: -1 !important; }
  .stack-card.is-ganz, .stack-card.is-ganz:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .stack-card.is-ganz .ph { min-height: 0; aspect-ratio: var(--ar); max-height: 70svh; }
}

/* ---------- featured ---------- */
.feature { background: var(--white); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; border: 1px solid var(--line); }
.feature .poster { background: var(--blush); border-radius: var(--r-lg); padding: clamp(12px, 2vw, 22px); margin: 0; }
.feature .poster img { width: 100%; border-radius: 10px; box-shadow: var(--e2); }
.feature .txt { display: grid; gap: 18px; justify-items: start; padding-right: clamp(0px, 2vw, 24px); }
.feature h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.feature .txt > p { color: var(--ink-soft); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; }
.facts div { background: var(--canvas); border-radius: var(--r-md); padding: 14px 16px; }
.facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.015em; line-height: 1.25; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* ---------- teachers ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.teacher { scroll-snap-align: start; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: grid; align-content: start; text-decoration: none; }
.teacher img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; }
.teacher div { padding: 16px 18px 20px; }
.teacher b { display: block; font-family: var(--display); font-weight: 600; font-size: 18.5px; letter-spacing: -.02em; line-height: 1.2; }
.teacher span { display: block; font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 760px) { .rail { grid-auto-columns: 72%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); } }

/* ---------- dana band ---------- */
.band { background: var(--maroon); color: var(--white); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; overflow: hidden; }
.band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-top: 14px; }
.band .kicker { color: #F7D49A; }
.band p { color: #F0D9D6; font-size: 18px; margin-top: 16px; max-width: 46ch; }
.band .lineage { display: flex; gap: 16px; align-items: center; margin-top: 28px; }
.band .lineage img { width: 120px; border-radius: 14px; }
.band .lineage span { font-size: 15px; color: #F0D9D6; }
.bank { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.bank dl { margin: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 14px; font-size: 15.5px; }
.bank dt { color: #E9C9C4; }
.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bank .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { padding-block: clamp(64px, 8vw, 112px) 36px; }
.site-foot.compact { padding-top: 0; }
.site-foot .big { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.03em; line-height: 1; }
.site-foot .big span { color: var(--maroon); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-top: clamp(36px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); font-size: 15.5px; }
.site-foot.compact .foot-grid { margin-top: 0; }
.foot-grid h4 { font: 600 13px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--maroon); text-decoration: underline; }
.foot-grid address { font-style: normal; display: grid; gap: 4px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: 14px; color: var(--ink-soft); }
.legal nav { display: flex; gap: 18px; }
.legal a { text-decoration: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- event page ---------- */
.ev-hero { padding: 12px 12px 0; }
/* Height follows the content. Only an ordinary photo (has-photo) fills a tall frame as backdrop;
   a poster (has-flyer) is the hero image itself, shown whole and upright beside the title. */
.ev-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; display: grid; align-items: center; gap: clamp(28px, 4vw, 64px); padding: clamp(24px, 4vw, 56px); background: var(--maroon-deep); }
.ev-frame.has-photo { min-height: min(78svh, 720px); align-items: end; padding: 0; }
.ev-frame.has-flyer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: radial-gradient(55% 75% at 76% 50%, rgba(241, 169, 58, .14), rgba(241, 169, 58, 0) 70%), var(--maroon-deep); }
.ev-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(48, 10, 17, .9) 0%, rgba(48, 10, 17, .5) 38%, rgba(48, 10, 17, 0) 66%), linear-gradient(180deg, rgba(40, 8, 14, .4), rgba(40, 8, 14, 0) 24%); }
.ev-frame .in { position: relative; z-index: 2; display: grid; gap: 16px; color: var(--white); max-width: 900px; }
.has-photo .in { padding: clamp(24px, 4vw, 56px); padding-top: 96px; }
.crumbs { display: flex; gap: 8px; font-size: 14.5px; color: #FBEDEA; flex-wrap: wrap; }
.crumbs a { color: inherit; }
.ev-frame h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -.025em; line-height: 1.02; color: var(--white); overflow-wrap: break-word; hyphens: auto; }
.has-flyer h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.ev-frame .sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: #F7D49A; letter-spacing: -.02em; }
.ev-frame .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.flyer-btn { position: relative; z-index: 2; display: grid; justify-items: end; gap: 12px; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: 600 14px/1.2 var(--text); color: rgba(255, 255, 255, .72); }
.flyer-btn img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(64svh, 600px); border-radius: var(--r-md); box-shadow: 0 2px 6px rgba(20, 4, 8, .3), 0 32px 64px -28px rgba(20, 4, 8, .8); background: none; }
.flyer-btn span { display: inline-flex; align-items: center; gap: 6px; transition: color .2s var(--ease); }
.flyer-btn span svg { width: 16px; height: 16px; }
.flyer-btn:hover span { color: var(--white); }
.flyer-btn:focus-visible { outline: none; }
.flyer-btn:focus-visible img { outline: 3px solid var(--saffron); outline-offset: 4px; }
@media (max-width: 900px) { .has-photo::after { background: linear-gradient(0deg, rgba(48, 10, 17, .92) 0%, rgba(48, 10, 17, .7) 50%, rgba(48, 10, 17, .25) 80%, rgba(48, 10, 17, .35) 100%); } .ev-frame.has-photo { min-height: 560px; } .ev-frame.has-flyer { grid-template-columns: minmax(0, 1fr); background: var(--maroon-deep); } .flyer-btn { justify-items: start; } .flyer-btn img { max-height: none; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(33, 26, 23, .82); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; box-shadow: var(--e2); }
.lightbox button { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 20px); right: 20px; background: var(--white); }

.ev-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(48px, 6vw, 88px); }
.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.overview div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 6px; align-content: start; }
.overview svg { width: 20px; height: 20px; color: var(--maroon); }
.overview dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.overview dd { margin: 0; font-weight: 600; line-height: 1.3; }
.overview dd a { text-decoration: none; }
.overview dd a:hover { color: var(--maroon); text-decoration: underline; }
.overview dd small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 760px) { .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose { display: grid; gap: 22px; }
.prose .lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.32; letter-spacing: -.02em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 26px; }
.prose > p, .prose .entry > p { color: #4A3F3A; font-size: 18px; max-width: 64ch; }
.prose figure { margin: 0; }
.prose figure img { width: 100%; border-radius: var(--r-lg); }
.prose figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.part { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
.prose > .part + .part { margin-top: -10px; }
.part .when { display: grid; gap: 4px; align-content: start; }
.part .when b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.part .when span { font-size: 14px; color: var(--ink-soft); }
.part h3 { font-size: 22px; letter-spacing: -.02em; }
.part p { color: var(--ink-soft); margin-top: 6px; font-size: 16.5px; }
.part .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 640px) { .part { grid-template-columns: 1fr; gap: 10px; } }
.faq { display: grid; gap: 10px; }
.faq details, .prose .wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary, .prose .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker, .prose .wp-block-details summary::-webkit-details-marker { display: none; }
.faq summary::after, .prose .wp-block-details summary::after { content: "+"; font: 400 26px/1 var(--text); color: var(--maroon); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after, .prose .wp-block-details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; color: var(--ink-soft); font-size: 16.5px; display: grid; gap: 8px; }
.prose .wp-block-details > :not(summary) { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 12px; }
.prose .wp-block-details > :last-child { margin-bottom: 18px; }
.prose .wp-block-details + .wp-block-details { margin-top: -12px; }
.faq ul { margin: 0; padding-left: 20px; }

.book { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 108px); display: grid; gap: 14px; }
body.admin-bar .book { top: calc(env(safe-area-inset-top, 0px) + 140px); }
.book-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--e2); padding: 22px; display: grid; gap: 16px; border: 1px solid var(--line); }
.book-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.book-card .price { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.book-card .price small { font: 500 14px/1.3 var(--text); color: var(--ink-soft); letter-spacing: 0; margin-left: 6px; }
.book-card .note { font-size: 14.5px; color: var(--ink-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--canvas); border-radius: 999px; }
.seg button { font: 600 14px/1 var(--text); border: 0; background: transparent; padding: 10px 8px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seats { display: grid; gap: 8px; }
.seats .bar { height: 8px; border-radius: 999px; background: var(--blush); overflow: hidden; }
.seats .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--maroon), #B3394B); border-radius: inherit; }
.seats span { font-size: 14px; color: var(--ink-soft); }
.book-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.book-card li { display: flex; gap: 10px; align-items: start; }
.book-card li svg { width: 18px; height: 18px; color: var(--maroon); flex: none; margin-top: 3px; }
.book-card .btn { width: 100%; }
.addcal { position: relative; }
.addcal-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border-radius: var(--r-md); box-shadow: var(--e2); padding: 6px; display: grid; z-index: 5; border: 1px solid var(--line); }
.addcal-menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.addcal-menu a:hover { background: var(--blush); }
.dana-card { background: var(--blush); border-radius: var(--r-lg); padding: 20px 22px; display: grid; gap: 10px; }
.dana-card h3 { font-size: 19px; letter-spacing: -.015em; }
.dana-card p { font-size: 15px; color: var(--ink-soft); }
.dana-card dl { margin: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 10px; font-size: 14.5px; }
.dana-card dt { color: var(--ink-soft); }
.dana-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy { justify-self: start; font: 600 14px/1 var(--text); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--maroon); cursor: pointer; }
.band .copy { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.series { display: flex; gap: 8px; flex-wrap: wrap; }
.series a { text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; display: grid; gap: 2px; min-width: 96px; }
.series a:hover { border-color: var(--maroon); }
.prose .series a { color: var(--ink); }
.series b { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; line-height: 1; }
.series span { font-size: 13px; color: var(--ink-soft); }
.past-note { background: var(--saffron-soft); border-radius: var(--r-md); padding: 14px 18px; font-size: 15.5px; }
.past-note a { color: var(--maroon); font-weight: 600; }
.mobile-book { display: none; }
@media (max-width: 1000px) {
  .ev-body { grid-template-columns: minmax(0, 1fr); }
  .book { position: static; }
  .mobile-book { display: flex; position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: var(--white); box-shadow: var(--e2); }
  .mobile-book b { display: block; font-size: 14.5px; }
  .mobile-book span { font-size: 13px; opacity: .75; }
  .mobile-book .btn { padding: 12px 18px; }
  .single-termin .site-foot { padding-bottom: 96px; }
}

/* event cards (related, calendar) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ecard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); align-content: start; }
.ecard:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.ecard .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.datechip { display: grid; place-items: center; min-width: 58px; padding: 8px 6px; border-radius: 14px; background: var(--canvas); line-height: 1; text-align: center; }
.datechip b { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; }
.datechip span { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.ecard h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.ecard .who { font-size: 14.5px; color: var(--ink-soft); }
.ecard .tags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- calendar ---------- */
.cal-head { padding-block: 24px 28px; display: grid; gap: 14px; }
.cal-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.03em; line-height: 1; }
.cal-head p { color: var(--ink-soft); max-width: 62ch; }
.cal-head p a { color: var(--maroon); font-weight: 600; }
.cal-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); display: grid; gap: 14px; }
body.admin-bar .side { top: calc(env(safe-area-inset-top, 0px) + 132px); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-head b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.mini-head div { display: flex; gap: 4px; }
.round { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 14px; height: 14px; }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini .dow { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); padding: 4px 0 6px; }
.mini button { aspect-ratio: 1; border: 0; background: transparent; border-radius: 12px; cursor: pointer; font: 500 14px/1 var(--text); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 3px; padding: 0; font-variant-numeric: tabular-nums; }
.mini button:hover { background: var(--blush); }
.mini button.out { visibility: hidden; }
.mini button.past { color: #8A7D75; }
.mini button.today { background: var(--maroon); color: var(--white); font-weight: 700; }
.mini button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.mini .dots { display: flex; gap: 2px; height: 5px; }
.mini .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.mini button.today .dots i { background: var(--white); }
.filters { display: grid; gap: 4px; }
.filters h3, .filters-sub { font: 600 12.5px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 2px 0 8px; }
.filters-sub { margin: 16px 2px 4px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 0; background: transparent; font: 500 15px/1.2 var(--text); color: var(--ink); cursor: pointer; text-align: left; }
.toggle:hover { background: var(--canvas); }
.toggle .l { display: flex; align-items: center; gap: 10px; }
.toggle .l::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.toggle[aria-pressed="false"] { color: #7A6E67; }
.toggle[aria-pressed="false"] .l::before { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.toggle .n { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; background: var(--canvas); border-radius: 999px; margin-top: 4px; }
.seg3 button { font: 600 13.5px/1 var(--text); border: 0; background: transparent; padding: 9px 4px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg3 button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.subscribe b { font-family: var(--display); font-size: 18px; }
.subscribe a { display: block; margin-top: 6px; color: var(--maroon); font-weight: 600; text-decoration: none; font-size: 15px; }
.list-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.list-top h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.list-top .clear { font: 600 14px/1 var(--text); border: 0; background: var(--white); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.week { margin-top: 26px; }
.week-label { font: 600 13px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 4px 10px; display: flex; justify-content: space-between; }
.day { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); margin-bottom: 10px; scroll-margin-top: 110px; transition: box-shadow .2s var(--ease); }
.day.flash { box-shadow: 0 0 0 3px var(--saffron); }
.day .dlabel { display: grid; align-content: start; justify-items: center; gap: 2px; padding-top: 4px; }
.day .dlabel b { font-family: var(--display); font-size: 36px; letter-spacing: -.04em; line-height: 1; }
.day .dlabel span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.day.is-today { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.day.is-today .dlabel span, .day.is-today .erow .who, .day.is-today .erow .t { color: #F0D9D6; }
.day.is-today .erow::before { border-color: rgba(255, 255, 255, .16); }
.day.is-today .cat { color: #F0D9D6; }
.day.is-today .erow:hover { background: rgba(255, 255, 255, .06); }
.day.is-today .pill { background: rgba(255, 255, 255, .14); color: var(--white); }
.day .items { display: grid; }
.erow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 10px; border-radius: 12px; text-decoration: none; position: relative; }
/* divider as a straight hairline: a border on the rounded row would bend at the corners */
.erow::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid var(--line); transition: opacity .15s var(--ease); }
.erow.first::before, .erow:first-child::before { content: none; }
.erow:hover::before, .erow:hover + .erow::before { opacity: 0; }
.erow:hover { background: var(--canvas); }
.erow .t { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink-soft); }
.erow b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.erow .who { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.erow .who .cat::before { width: 7px; height: 7px; }
.erow .tags { display: flex; gap: 6px; }
.erow.feat { grid-template-columns: 110px minmax(0, 1fr) 140px; }
.erow.feat img { width: 140px; height: 92px; object-fit: cover; border-radius: 12px; }
/* programme colour on the left edge of each row, so the list reads at a glance */
.erow::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c); }
.day.is-today .erow::after { background: var(--saffron); }
.erow .t { color: var(--ink); }
.empty { background: var(--white); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); }

/* views: month grid or list. Without a choice in the URL (data-auto) phones start on the list. */
.cal-layout[data-view="liste"] .for-monat, .cal-layout[data-view="monat"]:not([data-auto]) .for-liste { display: none !important; }
@media (min-width: 761px) { .cal-layout[data-view="monat"][data-auto] .for-liste { display: none !important; } }
@media (max-width: 760px) {
  .cal-layout[data-auto] .for-monat { display: none !important; }
  .cal-layout[data-auto] .seg2 [data-view-btn="liste"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
  .cal-layout[data-auto] .seg2 [data-view-btn="monat"] { background: transparent; color: var(--ink-soft); box-shadow: none; }
}
.list-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.seg2 { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.seg2 button { font: 600 14px/1 var(--text); border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg2 button[aria-pressed="true"] { background: var(--maroon); color: var(--white); }
.month-nav { display: flex; align-items: center; gap: 12px; }
.month-nav h2 { min-width: 9ch; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mdow { font: 600 12.5px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 6px 4px; }
.mcell { min-height: 118px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcell.out { background: transparent; border-color: transparent; }
.mcell.past { background: transparent; border-style: dashed; }
.mcell.past .mnum { color: #8A7D75; }
.mcell.today { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.mcell.today .mnum { background: var(--maroon); color: var(--white); }
.mnum { align-self: flex-start; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font: 600 14px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--ink); background: transparent; border: 0; }
button.mnum { cursor: pointer; }
button.mnum:hover { background: var(--blush); }
.mcell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.mev { padding: 4px 6px 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 12%, var(--white)); box-shadow: inset 3px 0 0 var(--c); text-decoration: none; font: 500 12.5px/1.25 var(--text); color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; hyphens: auto; }
.mev time { font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.mev:hover { background: color-mix(in srgb, var(--c) 22%, var(--white)); }
@media (min-width: 961px) { .cal-layout[data-view="monat"] { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .mgrid { gap: 3px; }
  .mdow { padding: 0 2px 2px; font-size: 11px; letter-spacing: 0; text-align: center; }
  .mcell { min-height: 72px; padding: 3px; border-radius: 10px; }
  .mnum { min-width: 22px; height: 22px; font-size: 12.5px; padding: 0 4px; }
  .mev { font-size: 10.5px; padding: 2px 3px 2px 5px; border-radius: 5px; -webkit-line-clamp: 2; }
  .mev time { display: none; }
}
.empty b { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 960px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: minmax(0, 1fr); }
  .erow, .erow.feat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .erow.feat img { display: none; }
  .erow .tags { flex-wrap: wrap; }
  .day { grid-template-columns: 56px minmax(0, 1fr); padding: 10px; }
  .day .dlabel b { font-size: 28px; }
}

/* ---------- WP: pages, prose content, teachers, search ---------- */
.page-head { display: grid; gap: 14px; padding-block: 24px clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.03em; line-height: 1; max-width: 18ch; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 520px) { .page-head h1 { font-size: clamp(2rem, 9vw, 2.4rem); } }
.page-head p { color: var(--ink-soft); max-width: 62ch; font-size: 18px; }
/* Page images are often graphics with text, so they are shown whole. */
.page-photo { margin: 0 0 clamp(28px, 4vw, 48px); border-radius: var(--r-xl); overflow: hidden; background: var(--blush); max-width: 1100px; }
.page-photo img { width: 100%; height: auto; }
.page-body { padding-bottom: clamp(64px, 8vw, 112px); }
.page-body .prose { max-width: 760px; }
.prose > * { margin: 0; }
.prose a { color: var(--maroon); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 14px; }
.prose h4 { font-size: 19px; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; color: #4A3F3A; font-size: 18px; display: grid; gap: 6px; max-width: 64ch; }
.prose li::marker { color: var(--maroon); }
.prose blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--saffron); font-size: 20px; color: var(--ink); }
.prose blockquote p { color: inherit; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; width: 100%; }
.prose .wp-block-image img { height: auto; width: auto; max-width: 100%; max-height: 720px; }
.prose .wp-block-image.aligncenter { justify-self: center; }
.prose .wp-block-image.size-medium img, .prose .wp-block-image.size-thumbnail img { width: auto; }
.prose .wp-block-button__link, .prose .wp-element-button { display: inline-flex; align-items: center; font: 600 15.5px/1 var(--text); padding: 14px 22px; border-radius: 999px; background: var(--maroon); color: var(--white); text-decoration: none; }
.prose .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .wp-block-table td, .prose .wp-block-table th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-lg); }
.prose small, .prose .has-small-font-size { font-size: 15px; color: var(--ink-soft); }
.person { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.person .portrait { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); display: grid; gap: 14px; }
.person .portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-lg); }
.person .role { color: var(--ink-soft); font-size: 18px; }
.person .upcoming { margin-top: 26px; display: grid; gap: 14px; }
.person .upcoming .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } .person .portrait { position: static; max-width: 360px; } .person .upcoming .cards { grid-template-columns: 1fr; } }
.team-group { margin-top: clamp(36px, 5vw, 56px); }
.team-group:first-child { margin-top: 0; }
.team-group h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 18px; max-width: 34ch; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.results { display: grid; gap: 10px; max-width: 860px; padding-bottom: clamp(64px, 8vw, 112px); }
.results a { display: grid; gap: 4px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; }
.results a:hover { border-color: var(--maroon); }
.results b { font-size: 20px; letter-spacing: -.02em; }
.results span { color: var(--ink-soft); font-size: 15px; }
.editor-note { padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-soft); background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .stack-card { position: relative; top: auto; }
}
