/* ==========================================================================
   Liikuntaseura Pori – lapsiteeman tyylit (hyväksytty ulkoasu: design/, konsepti C)
   Tokens map to --louhos-* in the WordPress theme.
   ========================================================================== */

:root {
  /* Colour */
  --c-ink: #2f326e;          /* club navy */
  --c-ink-deep: #23255a;
  --c-sky: #728fc8;          /* club light blue – non-text and large type */
  --c-sky-text: #4a62a3;     /* AA on white */
  --c-sky-200: #c9d5ef;
  --c-sky-100: #e4eaf7;
  --c-sky-50: #f3f6fc;
  --c-paper: #ffffff;
  --c-text: #22244c;
  --c-muted: #535880;

  /* Type */
  --f-display: "Bricolage Grotesque", "Arial Rounded MT", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-h3: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-hero: clamp(2.1rem, 1.4rem + 2.6vw, 3.9rem);
  --lh-body: 1.6;

  /* Space & shape */
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.75rem);
  --max: 84rem;
  --section: clamp(3.75rem, 2.5rem + 5vw, 7.5rem);
  --r-sm: 0.75rem;
  --r: 1.25rem;
  --r-lg: 2rem;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-text); background: var(--c-paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-ink); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--c-sky-text); outline-offset: 2px; }
.ls-footer :focus-visible, .hero-b__panel :focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--c-ink); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--c-ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }
svg[hidden] { display: none; }

.ls-btn {
  display: inline-flex; align-items: center; gap: 0.55em; min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 700 1rem/1 var(--f-body); color: #fff; background: var(--c-ink);
  border: 2px solid var(--c-ink); border-radius: var(--r-pill); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ls-btn:hover { background: var(--c-ink-deep); }
.ls-btn:active { transform: scale(0.97); }
.ls-btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.ls-btn--light:hover { background: var(--c-sky-100); }
.ls-btn--outline { background: transparent; color: var(--c-ink); }
.ls-btn--outline:hover { background: var(--c-sky-100); }

/* ---------- Header ---------- */
.utility { background: var(--c-ink-deep); color: #fff; font-size: var(--fs-small); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 2.5rem; gap: 1rem; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility__links, .utility__social { display: flex; gap: 1.25rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.utility__social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; display: block; }
.utility__social a { display: grid; place-items: center; width: 2rem; height: 2rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 2rem; }
.brand img { height: 2.75rem; width: auto; }
.ls-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.25rem; }
.nav__item { position: relative; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2.75rem; padding: 0 0.7rem;
  font: 600 0.95rem/1 var(--f-body); color: var(--c-ink);
  background: none; border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { color: var(--c-ink); background: var(--c-sky-soft); }
.nav__toggle svg { width: 0.7rem; height: 0.7rem; transition: transform var(--dur-fast) var(--ease-out); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link--feature { color: var(--c-sky-text); }
.submenu {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 17rem;
  list-style: none; margin: 0; padding: 0.75rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(31, 33, 80, 0.35);
  opacity: 0; transform: translateY(-4px); visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.nav__toggle[aria-expanded="true"] + .submenu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.submenu a { display: block; padding: 0.55rem 0.75rem; color: var(--c-text); text-decoration: none; border-radius: var(--radius); font-size: 0.95rem; }
.submenu a:hover { background: var(--c-sky-soft); color: var(--c-ink); }
.nav__search { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--c-ink); }
.nav__search svg, .menu-btn svg { width: 1.25rem; height: 1.25rem; }
.menu-btn { display: none; }

@media (max-width: 68rem) {
  .utility__links li:not(:first-child) { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem;
    font: 600 0.95rem/1 var(--f-body); color: var(--c-ink);
    background: var(--c-sky-soft); border: 0; border-radius: var(--radius-pill); cursor: pointer;
  }
  .ls-nav {
    position: fixed; inset: 0; top: 0; z-index: 60; display: block; overflow-y: auto;
    padding: 5.5rem var(--gutter) 3rem; background: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .ls-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--c-line); }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; min-height: 3.5rem; font-size: 1.15rem; padding: 0; }
  .nav__link:hover, .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: none; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 1rem; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__toggle[aria-expanded="true"] + .submenu { display: block; }
  .nav__search { display: none; }
  .menu-close { position: absolute; top: 1.25rem; right: var(--gutter); }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 68.01rem) { .menu-close { display: none; } }

/* ---------- Hero (karuselli) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  height: min(88svh, 52rem); min-height: 34rem;
  background: var(--c-ink-deep); color: #fff;
}
.hero__slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.slide {
  position: absolute; inset: 0; visibility: hidden;
}
.slide.is-active, .slide.is-entering, .slide.is-leaving { visibility: visible; }
.slide.is-entering { z-index: 2; }
.slide.is-active { z-index: 1; }
.slide__media { position: absolute; inset: 0; margin: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media::after {
  /* legibility scrim behind text, lower left only */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 24, 64, 0.88) 0%, rgba(22, 24, 64, 0.45) 45%, rgba(22, 24, 64, 0) 75%),
              linear-gradient(to right, rgba(22, 24, 64, 0.72) 0%, rgba(22, 24, 64, 0.3) 45%, rgba(22, 24, 64, 0) 65%);
}
.slide__body {
  position: absolute; left: 0; right: 0; bottom: clamp(6.5rem, 12vh, 8.5rem);
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
}
.slide__inner { max-width: 44rem; }
.slide__type {
  display: inline-block; margin-bottom: 1.25rem;
  font: 600 0.9rem/1 var(--f-body); letter-spacing: 0.01em;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--c-sky);
}
.slide__type time { font-weight: 400; opacity: 0.85; margin-left: 0.5rem; }
.slide h2 { color: #fff; font-size: var(--fs-hero); font-weight: 500; line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 1.25rem; text-wrap: balance; }
.slide h2 em { font-style: italic; font-weight: 400; }
.slide p { font-size: 1.125rem; max-width: 34rem; color: rgba(255, 255, 255, 0.92); }
.slide .ls-btn { margin-top: 0.75rem; }
.slide--default h2 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5rem); }

/* entering animation (transform/opacity only for text, clip-path for the reveal) */
.slide.is-entering .slide__media { animation: arc-reveal 1100ms var(--ease-in-out) both; }
.slide.is-entering .slide__media img { animation: settle 1600ms var(--ease-out) both; }
.slide.is-entering .slide__inner > * { animation: rise 700ms var(--ease-out) both; }
.slide.is-entering .slide__inner > :nth-child(1) { animation-delay: 520ms; }
.slide.is-entering .slide__inner > :nth-child(2) { animation-delay: 600ms; }
.slide.is-entering .slide__inner > :nth-child(3) { animation-delay: 680ms; }
.slide.is-entering .slide__inner > :nth-child(4) { animation-delay: 760ms; }
.slide.is-leaving .slide__inner { animation: fade-out 400ms var(--ease-out) both; }

@keyframes arc-reveal {
  from { clip-path: circle(0% at var(--ox, 85.3%) var(--oy, 21%)); }
  to   { clip-path: circle(150% at var(--ox, 85.3%) var(--oy, 21%)); }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }

/* Arc: drawn over the reveal, echoing the logo's crescent */
.hero__arc {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.hero__arc path { fill: none; stroke: var(--c-sky); stroke-width: 2; stroke-linecap: round; }
.hero__arc circle { fill: var(--c-sky); }
.hero__arc .arc-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero__arc .arc-dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero.is-sweeping .arc-line { animation: draw 1100ms var(--ease-in-out) both, fade-out 500ms ease 1100ms forwards; }
.hero.is-sweeping .arc-dot { animation: dot 1100ms var(--ease-out) both, fade-out 500ms ease 1100ms forwards; }
.hero.is-resting .arc-line { stroke-dashoffset: 0; opacity: 0.9; }
.hero.is-resting .arc-dot { opacity: 1; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dot { 0%, 45% { opacity: 0; transform: scale(0.2); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }

/* Controls */
.hero__controls {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 1.75rem;
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.hero__dots { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.hero__dot {
  position: relative; width: 3.25rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__dot::before, .hero__dot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.hero__dot::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot[aria-current="true"]::after { transform: scaleX(1); }
.hero.is-playing .hero__dot[aria-current="true"]::after { animation: progress var(--autoplay, 7000ms) linear both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__count { font: 500 0.95rem/1 var(--f-body); font-variant-numeric: tabular-nums; min-width: 3.5rem; }
.hero__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.hero__btn:hover { background: rgba(255, 255, 255, 0.2); }
.hero__btn svg { width: 1.1rem; height: 1.1rem; }
svg[hidden] { display: none; }
.hero__spacer { flex: 1; }
.hero__settings { position: relative; }
.hero__settings .hero__btn svg { transition: transform 500ms var(--ease-out); }
.hero__settings .hero__btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.settings-panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem); width: min(19rem, 80vw);
  padding: 1.25rem; color: var(--c-text); background: #fff; border-radius: var(--radius);
  box-shadow: 0 24px 50px -20px rgba(10, 12, 40, 0.6);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(6px) scale(0.98); visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.settings-panel.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.settings-panel fieldset { border: 0; margin: 0; padding: 0; }
.settings-panel legend { font: 600 1rem/1.3 var(--f-body); color: var(--c-ink); margin-bottom: 0.35rem; padding: 0; }
.settings-panel .hint { font-size: var(--fs-small); color: var(--c-muted); margin-bottom: 0.75rem; }
.check { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; cursor: pointer; font-size: 0.98rem; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--c-ink); margin: 0; }

@media (max-width: 40rem) {
  .hero { height: auto; min-height: 0; aspect-ratio: auto; }
  .hero__slides { position: relative; height: 38rem; }
  .slide__body { bottom: 6rem; }
  .slide p { font-size: 1rem; }
  .hero__controls { gap: 0.75rem; bottom: 1.25rem; }
  .hero__dot { width: 2rem; }
}

/* ---------- Group finder (chips) ---------- */
.finder-b { padding-block: var(--section) calc(var(--section) * 0.6); }
.finder-b__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.finder-b__head p { margin: 0; color: var(--c-muted); max-width: 32rem; }
.finder-b__box { background: var(--c-sky-50); border-radius: var(--r-lg); padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); display: grid; gap: 1.75rem; }
.finder-b fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder-b legend { font: 700 1.05rem/1.3 var(--f-display); color: var(--c-ink); padding: 0; margin-bottom: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 1.1rem;
  font-weight: 600; color: var(--c-ink); background: #fff; border: 2px solid var(--c-sky-200); border-radius: var(--r-pill);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip input:hover + span { border-color: var(--c-ink); }
.chip input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.chip input:checked + span::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-sky); }
.chip input:focus-visible + span { outline: 3px solid var(--c-sky-text); outline-offset: 2px; }
.finder-b__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.finder-b__actions p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }

/* ---------- Intro ---------- */
.intro-b { padding-block: calc(var(--section) * 0.4) var(--section); }
.intro-b__grid { display: grid; gap: 2rem; }
.intro-b__lead { font: 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem)/1.22 var(--f-display); letter-spacing: -0.02em; color: var(--c-ink); max-width: 30ch; margin-bottom: 1.25rem; text-wrap: pretty; }
.intro-b__text { color: var(--c-muted); max-width: 38rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.stats div { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 1.25rem; border-radius: var(--r); background: var(--c-sky-100); min-height: 10rem; }
.stats .is-highlight { background: var(--c-ink); }
.stats .is-highlight dt, .stats .is-highlight dd { color: #fff; }
.stats dt { font-weight: 600; font-size: 0.95rem; color: var(--c-ink); }
.stats dd { order: -1; margin: 0; font: 700 clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem)/1 var(--f-display); letter-spacing: -0.03em; color: var(--c-ink); }
@media (min-width: 60rem) { .intro-b__grid { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: end; } }
@media (max-width: 30rem) { .stats { grid-template-columns: 1fr 1fr; } .stats div:last-child { grid-column: 1 / -1; min-height: 0; } }

/* ---------- News & events ---------- */
.news-b { padding-block: var(--section); background: var(--c-sky-50); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head a { font-weight: 700; }
.news-b__grid { display: grid; gap: 2.5rem; }
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.ls-card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.ls-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.card__meta { display: flex; gap: 0.5rem; align-items: center; font-size: var(--fs-small); color: var(--c-muted); margin: 0; }
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: var(--r-pill); background: #fff; color: var(--c-ink); font-weight: 700; font-size: 0.78rem; }
.ls-card h3 a { color: inherit; text-decoration: none; }
.ls-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.ls-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.ls-card p { margin: 0; color: var(--c-muted); font-size: 0.98rem; }
.events-b { background: #fff; border-radius: var(--r-lg); padding: 1.75rem; align-self: start; }
.events-b h3 { font-size: 1.5rem; }
.events-b__month { color: var(--c-muted); font-size: var(--fs-small); margin: 0.25rem 0 1rem; }
.ev-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.5rem; }
.ev { position: relative; display: grid; grid-template-columns: 3.75rem 1fr; gap: 1rem; align-items: center; padding: 0.6rem; border-radius: var(--r); transition: background-color var(--dur-fast) var(--ease-out); }
.ev:hover { background: var(--c-sky-50); }
.ev__date { display: grid; place-items: center; aspect-ratio: 1; margin: 0; border-radius: var(--r-sm); background: var(--c-ink); color: #fff; line-height: 1; text-align: center; }
.ev__date b { display: block; font: 700 1.5rem/1 var(--f-display); }
.ev__date span { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.ev h4 { font: 700 1rem/1.3 var(--f-body); letter-spacing: 0; margin-bottom: 0.15rem; }
.ev h4 a { color: var(--c-ink); text-decoration: none; }
.ev h4 a::after { content: ""; position: absolute; inset: 0; }
.ev p { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }
@media (min-width: 64rem) { .news-b__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; } .cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Social ---------- */
.social-b { padding-block: var(--section); background: var(--c-sky-50); }
.social-b__grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.social-b__grid a { display: block; height: 100%; border-radius: var(--r); overflow: hidden; }
.social-b__grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
.social-b__grid a:hover img { transform: scale(1.04); }
.social-b__follow a { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.25rem; background: var(--c-ink); color: #fff; text-decoration: none; aspect-ratio: 1; }
.social-b__follow b { font: 700 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.1 var(--f-display); letter-spacing: -0.02em; }
.social-b__follow svg { width: 2rem; height: 2rem; fill: currentColor; }
@media (min-width: 48rem) {
  .social-b__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .social-b__grid li:first-child { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Footer ---------- */
.ls-footer { background: var(--c-ink); color: #fff; padding-block: 4.5rem 2rem; position: relative; overflow: clip; }
.ls-footer a { color: #fff; }
.ls-footer h2 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer__grid p { color: rgba(255, 255, 255, 0.86); font-size: 0.98rem; }
.footer__logo { height: 2.75rem; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.footer__slogan { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.25; max-width: 16ch; color: #fff !important; }
.footer__badges { display: flex; align-items: center; gap: 1.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); flex-wrap: wrap; }
.footer__badges .badge-light { background: #fff; padding: 0.6rem; border-radius: var(--radius); }
.footer__badges img { height: 5.5rem; width: auto; }
.footer__badges .scl { height: 4.5rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.75); }
.footer__bottom ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer__arc { position: absolute; right: -6rem; top: -4rem; width: 28rem; height: 40rem; pointer-events: none; opacity: 0.5; }
.footer__arc path { fill: none; stroke: var(--c-sky); stroke-width: 1.5; }

/* ==========================================================================
   Ryhmäsivu
   ========================================================================== */
.gh { padding-top: 0.5rem; }
.gh__media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; min-height: 22rem; background: var(--c-ink); }
.gh__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.gh__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(35, 37, 90, 0.85), rgba(35, 37, 90, 0) 55%); }
.gh__title { position: absolute; left: clamp(1.25rem, 1rem + 2vw, 3rem); bottom: clamp(1.25rem, 1rem + 2vw, 2.75rem); right: 12rem; z-index: 1; color: #fff; }
.gh__title h1 { color: #fff; font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem); letter-spacing: -0.035em; line-height: 0.95; }
.gh__title p { margin: 0.6rem 0 0; font: 600 clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem)/1.3 var(--f-display); color: rgba(255, 255, 255, 0.92); }
.gh__logo {
  position: absolute; z-index: 2; right: clamp(1.25rem, 1rem + 2vw, 3rem); bottom: -2.5rem;
  width: clamp(6.5rem, 5rem + 4vw, 9rem); aspect-ratio: 1; display: grid; place-items: center; padding: 1rem;
  background: #fff; border-radius: 50%; box-shadow: 0 0 0 0.45rem #fff, 0 18px 40px -18px rgba(35, 37, 90, 0.6);
}
.gh__wrap { position: relative; }
@media (max-width: 40rem) {
  .gh__media { aspect-ratio: 4 / 5; min-height: 0; }
  .gh__title { right: 1.25rem; bottom: 4.5rem; }
  .gh__logo { width: 5.5rem; right: auto; left: 1.25rem; bottom: -2.25rem; }
}

.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-block: 1.25rem; padding-right: 11rem; }
.tagrow__label { font-size: var(--fs-small); color: var(--c-muted); font-weight: 600; margin-right: 0.25rem; }
.tags { display: contents; list-style: none; margin: 0; padding: 0; }
.tags > li { position: relative; }
.tag {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.95rem 0 1.05rem;
  font: 700 0.95rem/1 var(--f-body); color: var(--c-ink); background: var(--c-sky-100); border: 2px solid transparent; border-radius: var(--r-pill); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.tag small { font-weight: 500; font-size: 0.78rem; color: var(--c-muted); }
.tag:hover, .tag[aria-expanded="true"] { border-color: var(--c-ink); background: #fff; }
.tag svg { width: 0.65rem; height: 0.65rem; transition: transform var(--dur-fast) var(--ease-out); }
.tag[aria-expanded="true"] svg { transform: rotate(180deg); }
.tag--current { background: var(--c-ink); color: #fff; }
.tag--current small { color: rgba(255, 255, 255, 0.8); }
.tag--current:hover, .tag--current[aria-expanded="true"] { background: var(--c-ink-deep); border-color: var(--c-ink-deep); }
.tag-pop {
  position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 40; width: max-content; min-width: 15rem; max-width: 86vw; padding: 0.6rem;
  background: #fff; border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(35, 37, 90, 0.5), 0 0 0 1px rgba(47, 50, 110, 0.06);
  transform-origin: top left; opacity: 0; transform: translateY(-4px) scale(0.97); visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.tag[aria-expanded="true"] + .tag-pop { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.tag-pop p { font-size: 0.8rem; color: var(--c-muted); margin: 0.25rem 0.6rem 0.4rem; }
.tag-pop ul { list-style: none; margin: 0; padding: 0; }
.tag-pop a { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.6rem; text-decoration: none; color: var(--c-text); border-radius: var(--r-sm); font-size: 0.95rem; font-weight: 600; }
.tag-pop a:hover { background: var(--c-sky-50); }
.tag-pop a span { color: var(--c-muted); font-weight: 400; font-size: 0.85rem; }
.tag-pop a[aria-current="page"] { background: var(--c-sky-100); color: var(--c-ink); }
@media (max-width: 40rem) {
  .tagrow { padding-right: 0; padding-top: 3.5rem; }
  .tag-pop { position: fixed; left: var(--gutter); right: var(--gutter); top: auto; bottom: 1rem; width: auto; max-width: none; }
}

/* sticky bar: tabs + quick nav */
.gbar { position: sticky; top: 5rem; z-index: 30; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--c-sky-100); }
.gbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.6rem; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 0.25rem; background: var(--c-sky-100); border-radius: var(--r-pill); position: relative; }
.seg [role="tab"] { position: relative; z-index: 1; min-height: 2.5rem; padding: 0 1.1rem; font: 700 0.95rem/1 var(--f-body); color: var(--c-ink); background: none; border: 0; border-radius: var(--r-pill); cursor: pointer; transition: color var(--dur) var(--ease-out); }
.seg [role="tab"][aria-selected="true"] { color: #fff; }
.seg__thumb { position: absolute; z-index: 0; top: 0.25rem; bottom: 0.25rem; left: 0; width: 0; background: var(--c-ink); border-radius: var(--r-pill); transition: transform var(--dur) var(--ease-out), width var(--dur) var(--ease-out); }
.qnav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.qnav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.85rem; font-weight: 600; font-size: 0.93rem; color: var(--c-muted); text-decoration: none; border-radius: var(--r-pill); white-space: nowrap; }
.qnav a:hover { color: var(--c-ink); background: var(--c-sky-50); }
.qnav a[aria-current="true"] { color: var(--c-ink); background: var(--c-sky-100); }
@media (max-width: 40rem) { .gbar { top: 4.5rem; } .gbar .wrap { flex-direction: column; align-items: stretch; } .seg { align-self: flex-start; } }

.gmain { padding-block: 3rem var(--section); }
.gs { padding-block: 2.5rem; }
.gs > h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); margin-bottom: 1.5rem; }
.gs__grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .gs__grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.gs__lead { font: 600 clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem)/1.35 var(--f-display); letter-spacing: -0.01em; color: var(--c-ink); }
.factbox { display: grid; gap: 0.6rem; margin: 0; }
.factbox > div { padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--c-sky-50); }
.factbox dt { font-size: var(--fs-small); font-weight: 700; color: var(--c-muted); margin-bottom: 0.3rem; }
.factbox dd { margin: 0; }
.factbox dd strong { display: block; font: 700 1.25rem/1.3 var(--f-display); color: var(--c-ink); }
.times { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.times li { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; color: var(--c-ink); }
.times li span { font-weight: 500; color: var(--c-text); font-variant-numeric: tabular-nums; }

.coach-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.coach-card { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r); background: var(--c-sky-50); transition: background-color var(--dur-fast) var(--ease-out); }
.coach-card:hover { background: var(--c-sky-100); }
.coach-card__mono { flex: none; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: #fff; font: 700 1.15rem/1 var(--f-display); }
.coach-card h3 { font-size: 1.1rem; letter-spacing: 0; }
.coach-card h3 a { color: inherit; text-decoration: none; }
.coach-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.coach-card p { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }

.signup-b { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--r-lg); background: var(--c-ink); color: #fff; }
.signup-b h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.signup-b p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.signup-b__status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.12); font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; }
.signup-b__status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #86e0ad; }
.signup-b__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.signup-b__actions a:not(.ls-btn) { color: #fff; font-weight: 600; }
@media (min-width: 48rem) { .signup-b { grid-template-columns: 1fr auto; align-items: end; } }

.ev-row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; margin: 0 0 1.5rem; padding: 0; }
.ev-card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: var(--r); background: var(--c-sky-50); min-height: 11rem; }
.ev-card__date { font: 700 2rem/1 var(--f-display); letter-spacing: -0.03em; color: var(--c-ink); margin: 0; }
.ev-card__date span { display: block; font: 600 0.85rem/1.4 var(--f-body); letter-spacing: 0; color: var(--c-muted); margin-top: 0.3rem; }
.ev-card h3 { font-size: 1.1rem; letter-spacing: 0; margin-top: auto; }
.ev-card h3 a { color: inherit; text-decoration: none; }
.ev-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.ev-card:hover { background: var(--c-sky-100); }
.ev-card p { margin: 0; font-size: var(--fs-small); color: var(--c-muted); }

.logo-wall { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.logo-wall a { display: grid; place-items: center; gap: 0.6rem; aspect-ratio: 3 / 2; padding: 1rem; border-radius: var(--r); border: 2px solid var(--c-sky-100); text-decoration: none; color: var(--c-muted); font-size: 0.82rem; font-weight: 600; transition: border-color var(--dur-fast) var(--ease-out); }
.logo-wall a:hover { border-color: var(--c-ink); }
.logo-wall img { max-height: 3.25rem; max-width: 85%; width: auto; object-fit: contain; }

.note-b { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: var(--r-pill); background: var(--c-sky-100); color: var(--c-ink); font-size: var(--fs-small); font-weight: 600; margin-bottom: 1.25rem; }
.post-b { max-width: 44rem; padding: 1.5rem; border-radius: var(--r); background: var(--c-sky-50); margin-bottom: 0.75rem; }
.post-b time { font-size: var(--fs-small); color: var(--c-muted); font-weight: 600; }
.post-b h3 { margin: 0.25rem 0 0.6rem; }
.post-b p:last-child { margin: 0; }
[role="tabpanel"][hidden] { display: none; }
.edit-link { text-align: right; padding-block: 0 1.5rem; font-size: 0.8rem; }
.edit-link a { color: var(--c-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
.contact-line { margin-top: 1.25rem; }
.ev .ev__date { color: #fff; }
.ev .ev__date span { opacity: 1; font-size: 0.72rem; }
.stats dd { white-space: nowrap; font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem); }
.ev-card .ev-card__date { font: 700 2rem/1 var(--f-display); letter-spacing: -0.03em; color: var(--c-ink); }
.ev-card .ev-card__date span { font: 600 0.85rem/1.4 var(--f-body); letter-spacing: 0; color: var(--c-muted); }
@media (max-width: 40rem) {
  .finder-b__box { padding-inline: 0; overflow: clip; }
  .finder-b legend, .finder-b__actions { padding-inline: 1.25rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 0.25rem 1.25rem; scroll-padding-inline: 1.25rem; scrollbar-width: none; }
  .chip { flex: none; }
}

.hero__btn { flex: none; }
@media (max-width: 40rem) {
  .hero__dots { display: none; }
  .hero__count { min-width: 0; }
}

/* ==========================================================================
   Konsepti C – yhdistelmän säädöt
   Vähemmän pyöristystä ja vaaleansinisiä pintoja, A:n hero/header/footer B:n fonteilla.
   ========================================================================== */
:root {
  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --r-pill: 4px;
  --radius: 3px;
  --radius-pill: 4px;
  --c-line: #dde2ee;
  --c-sky-soft: #f1f4fa;
  --fs-hero: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem);
}
.hero :focus-visible { outline-color: #fff; }
.ls-btn svg { width: 1rem; height: 1rem; transition: transform var(--dur) var(--ease-out); }
.ls-btn:hover svg { transform: translateX(3px); }

/* Hero (A) with B typography */
.slide h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.slide--default h2 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.6rem); }
.slide__type { font-weight: 700; }
.footer__slogan { font-weight: 600; letter-spacing: -0.01em; }

/* Fewer light-blue surfaces: white + hairlines */
.finder-b__box { background: #fff; border: 1px solid var(--c-line); }
.chip span { border-width: 1px; border-color: var(--c-line); }
.news-b { background: #fff; border-radius: 0; border-top: 1px solid var(--c-line); }
.events-b { border: 1px solid var(--c-line); }
.ev:hover { background: var(--c-sky-50); }
.pill { background: var(--c-sky-50); border: 1px solid var(--c-line); }
.social-b { background: #fff; padding-top: 0; }
.stats div { background: #fff; border: 1px solid var(--c-line); }
.stats .is-highlight { border-color: var(--c-ink); }

.tag { background: #fff; border: 1px solid var(--c-line); }
.tag:hover, .tag[aria-expanded="true"] { border-color: var(--c-ink); }
.seg { background: #fff; border: 1px solid var(--c-line); }
.factbox > div, .coach-card, .ev-card, .post-b { background: #fff; border: 1px solid var(--c-line); }
.coach-card:hover, .ev-card:hover { background: #fff; border-color: var(--c-ink); }
.coach-card__mono { border-radius: 50%; }
.logo-wall a { border-width: 1px; border-color: var(--c-line); }
.gbar { border-bottom-color: var(--c-line); }
.note-b { background: var(--c-sky-50); border: 1px solid var(--c-line); }
.gh__logo { border-radius: 50%; }
.tag--current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.tag--current:hover, .tag--current[aria-expanded="true"] { background: var(--c-ink-deep); border-color: var(--c-ink-deep); }

/* --- Louhosteema token bridge -------------------------------------------- */
:root {
  --louhos-primary: #2f326e;
  --louhos-primary-rgb: 47, 50, 110;
  --louhos-primary-dark: #23255a;
  --louhos-accent: #728fc8;
  --louhos-link-color: #2f326e;
  --louhos-headings: #2f326e;
  --louhos-body-color: #22244c;
  --louhos-grey: #f3f6fc;
  --louhos-border: #dde2ee;
  --louhos-border-rgb: 221, 226, 238;
  --louhos-dark-1: #23255a;
  --louhos-dark-1-rgb: 35, 37, 90;
  --louhos-dark-2: #1f2150;
  --louhos-dark-2-rgb: 31, 33, 80;
  --louhos-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --louhos-radius: 4px;
  --louhos-radius-lg: 6px;
  --louhos-header-height: 7.5rem;
}
/* WP wrappers from the parent theme */
.site-main { padding: 0; }
.entry-content > * { margin-block: 0; }


/* ==========================================================================
   WordPress-toteutuksen lisäosat (ei erillistä leiskaa – hyväksytyn ulkoasun tyyleillä)
   ========================================================================== */
.brand__text { font: 700 1.25rem/1 var(--f-display); color: var(--c-ink); }
.footer__badges { list-style: none; margin: 3rem 0 0; padding: 2rem 0 0; }
.footer__badges li { margin: 0; }
.footer__badges img { height: 5.5rem; width: auto; }
.entry-content { display: flow-root; }

/* Simple page head + body */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem; }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); letter-spacing: -0.03em; }
.page-head__sub { margin: 0.75rem 0 0; font: 600 clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem)/1.35 var(--f-display); color: var(--c-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: var(--fs-small); color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--c-line); }
.crumbs a { color: var(--c-muted); }
.simple { padding-block: 1rem var(--section); }
.simple__grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .simple__grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.simple__body { max-width: 42rem; }
.simple__img { border-radius: var(--r-lg); margin-bottom: 1.5rem; }
.simple__h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); margin: 3rem 0 1.25rem; }
.factbox__img { display: grid; place-items: center; }
.factbox__img img { max-height: 10rem; width: auto; }
.factbox dd a { display: inline-block; margin-top: 0.25rem; }
.contact-hero { margin: 0.5rem 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 7; background: var(--c-ink); }
.contact-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-list--page { max-width: 48rem; }
.ev-list--page .ev__title { font: 700 1.1rem/1.3 var(--f-body); letter-spacing: 0; margin-bottom: 0.15rem; }
.ev-list--page .ev__title a { color: var(--c-ink); text-decoration: none; }
.ev-list--page .ev__title a::after { content: ""; position: absolute; inset: 0; }

/* Group listing */
.listing { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section); }
.listing__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.listing__intro { max-width: 42rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.listing__filters { margin-bottom: 2rem; }
.listing__count { font-weight: 700; color: var(--c-ink); }
.listing__empty { padding: 2rem; border: 1px dashed var(--c-line); border-radius: var(--r); color: var(--c-muted); }
.group-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.group-card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; transition: border-color var(--dur-fast) var(--ease-out); }
.group-card:hover { border-color: var(--c-ink); }
.group-card__head { display: flex; gap: 0.9rem; align-items: center; }
.group-card__logo { width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: 50%; border: 1px solid var(--c-line); padding: 0.35rem; background: #fff; flex: none; }
.group-card__title { font-size: 1.35rem; letter-spacing: -0.01em; }
.group-card__title a { color: inherit; text-decoration: none; }
.group-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.group-card__short { margin: 0.15rem 0 0; font-size: var(--fs-small); color: var(--c-muted); }
.group-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.group-card__tags li { font-size: 0.78rem; font-weight: 700; color: var(--c-ink); background: var(--c-sky-50); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 0.15rem 0.55rem; }
.group-card__text { margin: 0; color: var(--c-muted); font-size: 0.98rem; }
.group-card__signup { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; font-weight: 700; }

/* Coaches */
.coach-card__img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.coach-card__contact { word-break: break-word; }
.coach-card__name { font-size: 1.1rem; letter-spacing: 0; }
.coach-card__name a { color: inherit; text-decoration: none; }
.coach-card__name a::after { content: ""; position: absolute; inset: 0; }
.coach-cards--list { grid-template-columns: 1fr; max-width: 40rem; }
.gs__price h3 { font-size: 1.1rem; letter-spacing: 0; margin: 1.5rem 0 0.5rem; }
.logo-wall__item { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1rem; border-radius: var(--r); border: 1px solid var(--c-line); }
.signup-b.is-closed { background: var(--c-ink-deep); }

/* Partner offers */
.offers { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.offer { padding: 1.25rem; border: 1px solid var(--partner, var(--c-line)); border-top-width: 4px; border-radius: var(--r); }
.offer h3 { font-size: 1.2rem; letter-spacing: 0; margin-bottom: 0.35rem; }
.offer__valid { font-size: var(--fs-small); color: var(--c-muted); }

/* Sub-editors */
.subedit { margin-block: 1rem 2.5rem; padding: 1.5rem; border: 2px solid var(--c-ink); border-radius: var(--r-lg); background: #fff; }
.subedit h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.subedit__ok, .subedit__notice { padding: 0.75rem 1rem; border-radius: var(--r); background: var(--c-sky-50); border: 1px solid var(--c-line); }
.subedit__notice--warn { background: #fdeceb; border-color: #e6a19b; color: #8a1f17; font-weight: 600; }
.subedit .acf-form-submit { margin-top: 1rem; }
.listing fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.listing legend { font: 700 1.05rem/1.3 var(--f-display); color: var(--c-ink); padding: 0; margin-bottom: 0.75rem; }
.listing .finder-b__box { display: grid; gap: 1.75rem; padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
