/* MyClub public website renderer — professional base + two polished templates.
 * Colors come from CSS variables the renderer sets from the club config, with
 * sensible per-template fallbacks. */

:root {
  --mc-primary: #1f6feb;
  --mc-secondary: #0aa06e;
  --mc-bg: #ffffff;
  --mc-text: #1b2230;
  --mc-accent: #ff6a3d;
  --mc-muted: #5b6472;
  --mc-line: #e6e9f0;
  --mc-surface: #f7f9fc;
  --mc-max: 1120px;
  --mc-measure: 62ch;
  --mc-radius: 16px;
  --mc-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mc-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--mc-font);
  color: var(--mc-text);
  background: var(--mc-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mc-primary); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }

.mc-loading { padding: 5rem 1rem; text-align: center; color: var(--mc-muted); }
.mc-error { max-width: 640px; margin: 5rem auto; padding: 0 1.25rem; text-align: center; }
.mc-error h1 { color: var(--mc-primary); font-size: 2rem; }

/* Header / nav */
.mc-header {
  background: color-mix(in srgb, var(--mc-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--mc-line);
}
.mc-header-inner {
  max-width: var(--mc-max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem; flex-wrap: wrap;
}
.mc-brand { font-weight: 800; font-size: 1.3rem; color: var(--mc-text); letter-spacing: -0.01em; }
.mc-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.mc-nav a {
  color: var(--mc-muted); font-weight: 600; padding: 0.4rem 0; position: relative;
  transition: color 0.15s ease;
}
.mc-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--mc-primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.18s ease;
}
.mc-nav a:hover { color: var(--mc-text); }
.mc-nav a.active { color: var(--mc-text); }
.mc-nav a.active::after, .mc-nav a:hover::after { transform: scaleX(1); }

/* Sub pages: a hover/focus dropdown under their parent menu entry. The panel
 * stays in the DOM (visibility, not display) so keyboard focus can reach it. */
.mc-nav-group { position: relative; display: inline-flex; align-items: center; }
.mc-nav-group.has-active > .mc-nav-parent { color: var(--mc-text); }
.mc-nav-group.has-active > .mc-nav-parent::after { transform: scaleX(1); }
.mc-nav-parent::before {
  content: ""; display: inline-block; vertical-align: middle;
  margin-left: 0.35em; border: 0.3em solid transparent;
  border-top-color: currentColor; transform: translateY(0.15em);
}
.mc-nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 30;
  display: flex; flex-direction: column; gap: 0; min-width: 200px;
  padding: 0.4rem 0; margin-top: 0.35rem;
  background: var(--mc-bg); border: 1px solid var(--mc-line);
  border-radius: 10px; box-shadow: var(--mc-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.mc-nav-group:hover > .mc-nav-sub,
.mc-nav-group:focus-within > .mc-nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mc-nav-sub a { padding: 0.45rem 1rem; white-space: nowrap; }
.mc-nav-sub a::after { display: none; }
.mc-nav-sub a:hover { background: var(--mc-surface); }

@media (max-width: 720px) {
  /* No hover on touch: sub pages are listed inline under their parent. */
  .mc-nav-group { display: block; width: 100%; }
  .mc-nav-parent::before { display: none; }
  .mc-nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none; margin: 0;
    padding: 0 0 0 0.9rem; min-width: 0;
  }
  .mc-nav-sub a { padding: 0.3rem 0; font-size: 0.95em; }
}

/* Main / blocks */
.mc-main { max-width: var(--mc-max); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.mc-block { margin: 2rem 0; }
.mc-text { max-width: var(--mc-measure); font-size: 1.06rem; color: var(--mc-text); }
/* pre-line keeps the line breaks of blocks written before the rich-text
 * editor, which stored a whole text as a single paragraph. */
.mc-text p { white-space: pre-line; margin: 0 0 1rem; }
.mc-text :first-child { margin-top: 0; }
.mc-text :last-child { margin-bottom: 0; }

/* Embedded foreign content. Frames come in with whatever width the provider's
 * snippet carries, which is regularly wider than a phone — so the block, not
 * the page, is what scrolls, and a frame without its own height still gets
 * one instead of collapsing to nothing. */
.mc-html { overflow-x: auto; }
.mc-html > h2 { margin: 0 0 0.8rem; font-size: 1.5rem; line-height: 1.25; }
.mc-html iframe { max-width: 100%; border: 0; }
.mc-html iframe:not([height]) { min-height: 420px; }
.mc-html img, .mc-html video { max-width: 100%; height: auto; }
.mc-html table { border-collapse: collapse; }
.mc-html th, .mc-html td {
  border: 1px solid var(--mc-line); padding: 0.4rem 0.6rem; text-align: left;
}

/* Rich text from the editor: kept close to the template's own scale so a
 * formatted block does not read as a foreign body on the page. */
.mc-text h1, .mc-text h2, .mc-text h3,
.mc-text h4, .mc-text h5, .mc-text h6 {
  margin: 1.8rem 0 0.8rem; line-height: 1.25; letter-spacing: -0.01em;
}
.mc-text h1 { font-size: 1.8rem; }
.mc-text h2 { font-size: 1.5rem; }
.mc-text h3 { font-size: 1.25rem; }
.mc-text h4, .mc-text h5, .mc-text h6 { font-size: 1.08rem; }
.mc-text ul, .mc-text ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.mc-text li { margin: 0.25rem 0; }
.mc-text a { color: var(--mc-primary); }
.mc-text blockquote {
  margin: 0 0 1rem; padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--mc-primary); color: var(--mc-muted);
}
.mc-text pre {
  margin: 0 0 1rem; padding: 0.8rem 1rem; overflow-x: auto;
  background: rgba(0, 0, 0, 0.05); border-radius: var(--mc-radius);
  font-size: 0.95rem;
}

.mc-image { margin: 2rem 0; }
.mc-image img { border-radius: var(--mc-radius); box-shadow: var(--mc-shadow); }
.mc-image figcaption { color: var(--mc-muted); font-size: 0.9rem; margin-top: 0.6rem; text-align: center; }

/* Video */
.mc-video { margin: 2rem 0; }
.mc-video video {
  width: 100%; display: block; background: #000;
  border-radius: var(--mc-radius); box-shadow: var(--mc-shadow);
}
.mc-video figcaption { color: var(--mc-muted); font-size: 0.9rem; margin-top: 0.6rem; text-align: center; }

/* Carousel — slides are stacked and cross-faded; only .is-active is visible,
 * so the container height follows the tallest image without any JS. */
.mc-carousel { position: relative; margin: 2rem 0; }
.mc-slides { position: relative; display: grid; }
.mc-slide {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease;
}
.mc-slide.is-active { opacity: 1; visibility: visible; }
.mc-slide img {
  width: 100%; border-radius: var(--mc-radius); box-shadow: var(--mc-shadow);
  aspect-ratio: 16 / 9; object-fit: cover;
}
.mc-slide figcaption {
  color: var(--mc-muted); font-size: 0.9rem; margin-top: 0.6rem; text-align: center;
}
.mc-carousel .mc-nav-prev, .mc-carousel .mc-nav-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.85); color: var(--mc-text);
  font-size: 1.8rem; line-height: 1; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease;
}
.mc-carousel .mc-nav-prev:hover, .mc-carousel .mc-nav-next:hover { background: #fff; }
.mc-carousel .mc-nav-prev { left: 0.75rem; }
.mc-carousel .mc-nav-next { right: 0.75rem; }
.mc-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.75rem; }
.mc-dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: var(--mc-line); cursor: pointer; transition: background 0.15s ease;
}
.mc-dot.is-active { background: var(--mc-primary); }

.mc-line { border: 0; border-top: 1px solid var(--mc-line); margin: 3rem 0; }
.mc-line--dashed { border-top-style: dashed; }
.mc-line--dotted { border-top-style: dotted; }

/* Sections */
.mc-section { margin: 3rem 0; }
.mc-section-inner { max-width: var(--mc-max); margin: 0 auto; }
.mc-section h2 { margin: 0 0 0.4rem; font-size: 1.9rem; letter-spacing: -0.01em; }
.mc-section > .mc-section-inner > p { color: var(--mc-muted); font-size: 1.1rem; margin: 0; max-width: var(--mc-measure); }

/* Hero (a primary-background section, typically the first block on a page) */
.mc-section--primary {
  color: #fff; border-radius: var(--mc-radius);
  padding: clamp(3rem, 7vw, 5.5rem) 1.75rem; text-align: center;
  background: var(--mc-primary);
}
.mc-section--primary h2 {
  font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 0.75rem; color: #fff;
}
.mc-section--primary > .mc-section-inner > p {
  color: rgba(255, 255, 255, 0.9); font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin: 0 auto; max-width: 46ch;
}

/* Lists (events / news) */
.mc-events h3, .mc-news h3 { font-size: 1.4rem; margin: 0 0 1rem; }
.mc-events ul, .mc-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.mc-events li, .mc-news li {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1rem 1.15rem; background: var(--mc-surface);
  border: 1px solid var(--mc-line); border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mc-events li:hover, .mc-news li:hover { transform: translateY(-2px); box-shadow: var(--mc-shadow); }
.mc-list-date {
  font-size: 0.8rem; color: var(--mc-primary); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.mc-list-title { font-weight: 700; font-size: 1.05rem; }
.mc-list-text { color: var(--mc-muted); }
.mc-list-empty { color: var(--mc-muted); background: none; border: 0; }

/* Blocks backed by live data (person list, championships) */
.mc-people h3, .mc-championships h3 { font-size: 1.4rem; margin: 0 0 1rem; }
.mc-async-loading, .mc-async-empty { color: var(--mc-muted); font-size: 0.95rem; }

.mc-person-grid, .mc-person-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem;
}
/* Wider minimum than before: an e-mail address is what decides how narrow a
 * card may get, and 240px pushed it out of the tile. */
.mc-person-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
/* A fixed number of persons per row, as configured on the block. minmax(0,1fr)
 * rather than 1fr so a long e-mail cannot push the column wider than its
 * share. */
.mc-person-grid--fixed {
  grid-template-columns: repeat(var(--mc-person-columns, 3), minmax(0, 1fr));
}
.mc-person-list { gap: 0.6rem; }
.mc-person {
  padding: 1rem 1.15rem; background: var(--mc-surface);
  border: 1px solid var(--mc-line); border-radius: 12px;
  min-width: 0; display: flex; gap: 0.9rem; align-items: flex-start;
}
.mc-person-body { min-width: 0; flex: 1; }
/* Portrait, not a circle: member photos are almost always taken upright, and
 * a round mask over a square crop cut the head off at the top. The 3:4 frame
 * keeps the face inside it. */
.mc-person-photo {
  width: var(--mc-person-photo-size, 110px);
  height: calc(var(--mc-person-photo-size, 110px) * 4 / 3);
  flex: 0 0 auto;
  border-radius: 12px; object-fit: cover; object-position: center top;
  border: 2px solid var(--mc-bg); box-shadow: var(--mc-shadow);
}
/* From a certain size on, a picture next to the text leaves the text no room —
 * the card stacks and centres instead. */
.mc-person--stacked .mc-person {
  flex-direction: column; align-items: center; text-align: center;
}
.mc-person--stacked .mc-person-body { width: 100%; }
.mc-person--stacked .mc-person-line { justify-content: center; }
.mc-person--stacked .mc-person-label { min-width: 0; }
.mc-person--stacked .mc-person-label::after { content: ":"; }
.mc-person-description {
  margin-top: 0.5rem; font-size: 0.9rem; color: var(--mc-muted);
  overflow-wrap: anywhere;
}
.mc-person-description p { margin: 0 0 0.5rem; }
.mc-person-description :last-child { margin-bottom: 0; }
.mc-person-description ul, .mc-person-description ol {
  margin: 0 0 0.5rem; padding-left: 1.2rem;
}
.mc-person-name {
  font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}
.mc-person-line { display: flex; gap: 0.5rem; font-size: 0.92rem; min-width: 0; }
.mc-person-label {
  color: var(--mc-muted); min-width: 5.5em; flex-shrink: 0;
}
/* Long values (e-mail addresses above all) must break instead of running out
 * of the card — `anywhere` because an address has no spaces to break at. */
.mc-person-value { min-width: 0; overflow-wrap: anywhere; }

/* List variant: one row per person, the fields side by side when there is
 * room, stacked when there is not. */
.mc-person-list .mc-person { align-items: center; }
.mc-person-list .mc-person-body {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.35rem 1.5rem;
}
/* No size override here: the picture follows the block's configured size in
 * the list too, otherwise the setting would silently do nothing there. */
.mc-person-list .mc-person-description { flex-basis: 100%; margin-top: 0.2rem; }
.mc-person-list .mc-person-name { margin-bottom: 0; min-width: 11rem; }
.mc-person-list .mc-person-line { flex: 0 1 auto; }
.mc-person-list .mc-person-label { min-width: 0; }
.mc-person-list .mc-person-label::after { content: ":"; }

.mc-championship + .mc-championship { margin-top: 2rem; }
.mc-championship-name { font-size: 1.2rem; margin: 0 0 0.3rem; }
.mc-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 0.1rem 0.4rem; border-radius: 4px; vertical-align: middle;
  background: color-mix(in srgb, var(--mc-primary) 15%, transparent);
  color: var(--mc-primary);
}
.mc-championship-period {
  color: var(--mc-muted); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 0.6rem;
}
.mc-next-matches { margin: 1rem 0; }
.mc-next-matches h5 {
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--mc-primary); margin: 0 0 0.5rem;
}
.mc-matches { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.mc-match {
  display: grid; gap: 0.15rem;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: var(--mc-surface); border: 1px solid var(--mc-line);
  border-left: 3px solid var(--mc-primary);
}
.mc-match-when {
  font-size: 0.78rem; font-weight: 800; color: var(--mc-primary);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.mc-match-players { font-weight: 600; }
.mc-match-players .mc-vs { color: var(--mc-muted); font-weight: 400; font-size: 0.85em; }
.mc-match-meta { color: var(--mc-muted); font-size: 0.85rem; }

.mc-competitions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.mc-competition {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem; background: var(--mc-surface);
  border: 1px solid var(--mc-line); border-radius: 12px;
}
.mc-competition-name { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.mc-bracket-link {
  font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: color-mix(in srgb, var(--mc-primary) 12%, transparent);
  transition: background 0.15s ease;
}
.mc-bracket-link:hover {
  background: color-mix(in srgb, var(--mc-primary) 22%, transparent);
}

/* Maintained events / news */
.mc-entry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mc-entry {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.15rem; background: var(--mc-surface);
  border: 1px solid var(--mc-line); border-radius: 12px;
}
.mc-entry-body { flex: 1; min-width: 0; }
.mc-entry-image {
  width: 140px; flex: 0 0 auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px;
}
.mc-entry-meta {
  font-size: 0.8rem; color: var(--mc-primary); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem;
}
.mc-entry-title { font-weight: 700; font-size: 1.08rem; }
.mc-entry-text { color: var(--mc-muted); margin-top: 0.35rem; overflow-wrap: anywhere; }
.mc-entry-text p { margin: 0 0 0.5rem; }
.mc-entry-text :last-child { margin-bottom: 0; }
.mc-entry-link { display: inline-block; margin-top: 0.5rem; font-weight: 700; }

@media (max-width: 560px) {
  /* The picture beside the text leaves nothing for it on a phone. */
  .mc-entry { flex-direction: column; }
  .mc-entry-image { width: 100%; aspect-ratio: 16 / 9; }
}

/* Imprint */
.mc-imprint h3 { font-size: 1.4rem; margin: 0 0 1rem; }
.mc-imprint-rows { display: grid; gap: 0.7rem; max-width: var(--mc-measure); }
.mc-imprint-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.mc-imprint-label {
  color: var(--mc-muted); font-size: 0.9rem; flex: 0 0 14rem;
}
.mc-imprint-value { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.mc-imprint-role { color: var(--mc-muted); font-size: 0.9em; }
.mc-imprint-extra {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--mc-line);
  color: var(--mc-muted); max-width: var(--mc-measure);
}

@media (max-width: 560px) {
  .mc-imprint-label { flex-basis: 100%; }
}

/* Forms */
.mc-form {
  display: flex; flex-direction: column; gap: 0.4rem; max-width: 560px;
  background: var(--mc-surface); border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius); padding: 1.75rem;
}
.mc-form h3 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.mc-form label { font-weight: 600; font-size: 0.92rem; margin-top: 0.6rem; }
.mc-form input, .mc-form textarea {
  padding: 0.8rem 0.9rem; border: 1px solid #cdd4e0; border-radius: 10px;
  font: inherit; width: 100%; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mc-form input:focus, .mc-form textarea:focus {
  outline: none; border-color: var(--mc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc-primary) 20%, transparent);
}
.mc-form textarea { min-height: 130px; resize: vertical; }
.mc-form button {
  align-self: flex-start; margin-top: 1rem; padding: 0.8rem 1.6rem;
  background: var(--mc-primary); color: #fff; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: filter 0.15s ease, transform 0.1s ease;
}
.mc-form button:hover { filter: brightness(1.05); }
.mc-form button:active { transform: translateY(1px); }
.mc-form-status { color: var(--mc-secondary); font-weight: 700; margin: 0.75rem 0 0; }
.mc-form-status.is-error { color: #c0392b; }
.mc-form select {
  padding: 0.8rem 0.9rem; border: 1px solid #cdd4e0; border-radius: 10px;
  font: inherit; width: 100%; background: #fff;
}
.mc-form select:focus {
  outline: none; border-color: var(--mc-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc-primary) 20%, transparent);
}
.mc-form-help { color: var(--mc-muted); font-size: 0.82rem; margin-top: 0.15rem; }
.mc-form-check {
  display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.8rem;
}
.mc-form-check input { width: auto; margin-top: 0.25rem; flex: 0 0 auto; }
.mc-form-check label { margin-top: 0; font-weight: 500; }
.mc-form-radios { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.2rem; }
.mc-form-radio { display: inline-flex; align-items: center; gap: 0.35rem; }
.mc-form-radio input { width: auto; }
.mc-form-radio label { margin-top: 0; font-weight: 500; }
.mc-req { color: #c0392b; }
.mc-form button:disabled { opacity: 0.6; cursor: default; }

/* Footer */
.mc-footer { border-top: 1px solid var(--mc-line); margin-top: 3rem; background: var(--mc-surface); }
.mc-footer-inner {
  max-width: var(--mc-max); margin: 0 auto; padding: 2rem 1.5rem;
  color: var(--mc-muted); font-size: 0.92rem;
}

/* =========================================================================
 * Template 1 — "modern" (sporty clubs): bold, energetic, gradient accents.
 * ========================================================================= */
body.tpl-modern {
  --mc-font: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --mc-radius: 18px;
}
body.tpl-modern .mc-header { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05); }
body.tpl-modern .mc-brand { text-transform: uppercase; letter-spacing: 0.02em; }
body.tpl-modern .mc-nav a { text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; }
body.tpl-modern h1, body.tpl-modern h2 { font-weight: 800; letter-spacing: -0.02em; }
body.tpl-modern .mc-section > .mc-section-inner > h2 {
  display: inline-block; padding-bottom: 0.35rem;
  border-bottom: 4px solid var(--mc-accent);
}
body.tpl-modern .mc-section--primary {
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
  box-shadow: var(--mc-shadow);
}
body.tpl-modern .mc-section--primary h2 { border: 0; }
body.tpl-modern .mc-form button { box-shadow: 0 8px 20px color-mix(in srgb, var(--mc-primary) 35%, transparent); }

/* =========================================================================
 * Template 2 — "classic" (traditional): elegant serif, understated, refined.
 * ========================================================================= */
body.tpl-classic {
  --mc-font: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --mc-radius: 6px;
  --mc-surface: #f6f4ef;
  --mc-line: #e3ddd0;
}
body.tpl-classic .mc-header { background: var(--mc-bg); border-bottom: 3px double var(--mc-primary); backdrop-filter: none; }
body.tpl-classic .mc-brand { font-weight: 700; letter-spacing: 0.02em; }
body.tpl-classic .mc-nav a { font-weight: 600; font-variant: small-caps; letter-spacing: 0.03em; }
body.tpl-classic .mc-nav a::after { height: 1px; background: var(--mc-primary); }
body.tpl-classic h1, body.tpl-classic h2 { font-weight: 700; }
body.tpl-classic .mc-section > .mc-section-inner > h2 {
  position: relative; padding-bottom: 0.5rem;
}
body.tpl-classic .mc-section > .mc-section-inner > h2::after {
  content: ""; display: block; width: 64px; height: 2px; margin-top: 0.5rem;
  background: var(--mc-primary); opacity: 0.6;
}
body.tpl-classic .mc-section--primary {
  background: var(--mc-primary);
  border-radius: var(--mc-radius);
  border-top: 4px double rgba(255, 255, 255, 0.6);
  border-bottom: 4px double rgba(255, 255, 255, 0.6);
}
body.tpl-classic .mc-form button, body.tpl-classic .mc-brand { border-radius: 3px; }
body.tpl-classic .mc-form button { border-radius: 3px; font-family: var(--mc-font); }
body.tpl-classic .mc-events li, body.tpl-classic .mc-news li { border-radius: 4px; }

@media (max-width: 720px) {
  /* A fixed column count cannot hold on a phone; one per row always fits. */
  .mc-person-grid--fixed { grid-template-columns: 1fr; }
  .mc-header-inner { min-height: 60px; padding: 0.5rem 1.25rem; }
  .mc-nav { gap: 1rem; width: 100%; }
  .mc-main { padding: 1.5rem 1.25rem 3rem; }
  .mc-block { margin: 1.75rem 0; }
}
