/* Dance Team Vakita – sivuston tyylit (kopio staattisen sivuston tiedostosta vakita/css/styles.css; valikon mobiilisäännöt poistettu, koska WordPressissä valikko on core/navigation)
   Pohjana XD-leiska vakita_www_layout_draft_02 ja Vakitan graafinen ohjeisto 28.10.2024:
   värit violetti, laventeli, turkoosi, keltainen ja valkoinen, fontit Noto Serif Display
   Condensed Black (pääotsikot) ja Noto Serif (väliotsikot ja leipäteksti). */

:root {
  /* Ohjeiston värit */
  --violetti: #292952;
  --laventeli: #ccc4fc;
  --turkoosi: #bdd6d9;
  --keltainen: #e8db96;
  --white: #ffffff;

  /* Käyttövärit: ohjeiston värit ja niiden vaaleat sävyt */
  --navy: var(--violetti);
  --navy-deep: #1f1f3f;
  --lavender: var(--laventeli);
  --lavender-hover: #b8aef9;
  --lilac-bg: #f3f1fe;
  --mist: #ebf3f4;
  --cream: #f9f5e3;
  --ink: var(--violetti);
  --text: var(--violetti);
  --muted: #55557a;
  --line: #e3e0f5;

  --font-display: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  /* Ohjeistossa ei ole groteskia, joten myös valikot ja painikkeet ovat Noto Serifiä.
     --font-sans säilyy, koska salikalenteri lukee sitä. */
  --font-sans: var(--font-serif);

  --container: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --header-h: 84px;
  --radius: 4px;
}

/* Pääotsikot: Noto Serif Display Condensed Black */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  letter-spacing: -0.005em;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.prose { font-style: normal; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; }
.prose a { overflow-wrap: anywhere; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Napit ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  background: var(--lavender);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn::after { content: "▸"; font-size: 0.8em; }
.btn:hover { background: var(--lavender-hover); }
.btn--block { width: 100%; padding-block: 9px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-solid,
.page--plain .site-header {
  background: var(--navy);
  box-shadow: 0 2px 16px rgb(0 0 0 / 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  padding: 10px 0;  /* suoja-alue */
}
.logo img { display: block; width: 150px; height: auto; }

.header-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.utility-links {
  display: flex;
  gap: 18px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}
.utility-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  opacity: 0.9;
}
.utility-links a:hover { opacity: 1; text-decoration: underline; }
.utility-links svg { width: 13px; height: 13px; }

.main-nav { width: 100%; }
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--lavender); }
.main-nav .home-link svg { width: 17px; height: 17px; }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(20 18 50 / 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.main-nav li:hover > .submenu,
.main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; }
.main-nav > ul > li:last-child .submenu { left: auto; right: 0; translate: none; }
.submenu a {
  display: block;
  padding: 7px 18px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-decoration: none;
}
.submenu a:hover { background: var(--lilac-bg); }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}
.menu-toggle svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--navy-deep) center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(15 12 35 / 0.55) 0%, rgb(15 12 35 / 0.15) 35%, rgb(15 12 35 / 0.35) 100%);
}
.hero__content {
  max-width: 640px;
  padding-top: var(--header-h);
  padding-bottom: 150px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.35);
}
.hero p {
  margin: 18px auto 0;
  max-width: 500px;
  font-size: 1rem;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.4);
}

/* Sisältösivun hero: matalampi, ei tekstiä */
.hero--page { min-height: 440px; }
.hero--page .hero__content { padding: 0; }

/* Sisältösivu ilman heroa: liukuväripalkki */
.band {
  height: 300px;
  padding-top: var(--header-h);
  background: linear-gradient(100deg, var(--laventeli) 0%, var(--keltainen) 100%);
}

/* ---------- Etusivun ylärivi (nosto + yhteystiedot) ---------- */

.overlap { margin-top: -110px; position: relative; z-index: 2; }

.top-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  background: var(--lilac-bg);
  box-shadow: 0 8px 30px rgb(20 18 50 / 0.12);
}
.feature__img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: 100%; }
.feature__body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.feature__body h2 { font-size: 1.3rem; }

.contact-card {
  background: var(--navy);
  color: var(--white);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 30px rgb(20 18 50 / 0.18);
}
.contact-card h2 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-card .prose { font-size: 0.92rem; }
.contact-card .prose a { color: var(--white); }
.contact-card__actions { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }

.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}
.meta svg { width: 12px; height: 12px; }

/* ---------- Uutiskortit ---------- */

.section { padding-block: 56px; }
.section--tight { padding-block: 40px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--lilac-bg);
}
.card__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(110deg, var(--laventeli), var(--keltainen));
}
.card__media--emblem {
  display: grid;
  place-items: center;
}
.card__media--emblem img {
  width: 42%;
  max-width: 120px;
  aspect-ratio: 1;
}
.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 26px;
  min-width: 0;
}
.card__body h3 { font-size: 1.1rem; }
.card__body .prose { font-size: 0.9rem; }
.card__body .btn { margin-top: auto; align-self: flex-start; }
.card__body .prose + .btn { margin-top: auto; }
.card__body > .prose { margin-bottom: 14px; }

/* ---------- Instagram-rivi (vakita-sivusto: [vakita_instagram]) ---------- */

.ig-row { padding-block: 56px; }
.ig-row + .section { padding-top: 0; }
.ig-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.ig-row__head h2 { margin: 0; }
.ig-row__handle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: var(--ink);
}
.ig-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--violetti);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.ig-row__btn:hover { background: var(--navy-deep); color: var(--white); }
.ig-row__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ig-row__item { margin: 0; }
.ig-row__item a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(110deg, var(--laventeli), var(--keltainen));
}
.ig-row__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.4s;
}
.ig-row__item a:hover img,
.ig-row__item a:focus-visible img { transform: scale(1.05); }
.ig-row__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 11px 10px;
  background: linear-gradient(transparent, rgba(41, 41, 82, 0.9));
  color: var(--white);
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.3s;
}
.ig-row__item a:hover .ig-row__cap,
.ig-row__item a:focus-visible .ig-row__cap { opacity: 1; }
.ig-row__meta { display: block; margin-top: 4px; opacity: 0.85; }

@media (max-width: 900px) {
  .ig-row__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Kuva + teksti -osiot ---------- */

.split { padding-block: 0; }
.split--mist { background: var(--mist); }
.split--cream { background: var(--cream); }

.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.split__img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split__text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
  min-width: 0;
}
.split__text h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
}
.split__text .prose { font-size: 0.95rem; max-width: 60ch; }
.split__text .btn { align-self: flex-start; }
.split--reverse .split__img { order: 2; }

/* ---------- Sisältösivun asettelu ---------- */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.content-main {
  background: var(--white);
  padding: 30px 32px 48px;
  min-width: 0;
}
.overlap .content-main { box-shadow: 0 -6px 24px rgb(20 18 50 / 0.06); }
.content-main h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.content-main .lead {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.content-main h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
}
.content-main h2:first-of-type { margin-top: 24px; }
.content-main .prose { font-size: 0.95rem; }

.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.media-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.sidebar { display: grid; gap: 20px; min-width: 0; }

.notice {
  background: var(--cream);
  padding: 24px 24px 26px;
  display: grid;
  gap: 10px;
}
.notice h2 { font-size: 1.1rem; font-style: italic; margin: 0; }
.notice .prose { font-size: 0.9rem; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--violetti);
  color: var(--white);
  font-family: var(--font-sans);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Ohjeiston patterni (negatiivi) hillittynä taustana */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/vakita-patterni-neg.png") center / 900px auto repeat;
  opacity: 0.07;
}
.partners { padding-block: 40px 44px; }
.partners__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.partners__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
}
.partners__list a {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.88;
}
.partners__list a:hover { opacity: 1; }

.footer-main {
  border-top: 1px solid rgb(255 255 255 / 0.3);
  padding-block: 44px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto minmax(0, 1.2fr);
  gap: 28px 40px;
  align-items: start;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-emblem { width: 140px; height: auto; }
.footer-contact { font-size: 0.88rem; }
.footer-contact h2 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.footer-contact p { margin: 0; }
.footer-contact a { color: var(--white); }
.social { display: flex; gap: 14px; margin-top: 14px; }
.social a { display: inline-flex; opacity: 0.85; }
.social a:hover { opacity: 1; }
.social svg { width: 22px; height: 22px; }
.copyright {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
  padding-bottom: 28px;
  margin: 0;
}

/* ---------- Responsiivisuus ---------- */

@media (max-width: 1020px) {
  .main-nav > ul > li > a { font-size: 0.82rem; }
  .header-inner { gap: 20px; }
}

@media (max-width: 900px) {
  .top-row,
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split__inner { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__img { order: 0; }
  .split__img { min-height: 240px; max-height: 360px; }
  .split__text { padding: 36px 0 44px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-emblem-wrap { grid-row: 1; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { min-height: 520px; }
  .hero__content { padding-bottom: 120px; }
  .hero--page { min-height: 300px; }
  .band { height: 200px; }
  .overlap { margin-top: -80px; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__img { aspect-ratio: 16 / 10; }
  .feature__body { padding: 24px 22px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .content-main { padding: 24px 20px 36px; }
  .media-row { grid-template-columns: minmax(0, 1fr); }
  .partners__list { gap: 14px 28px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
}

.sr-only,
.sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Alasivujen komponentit ---------- */

.main-nav .nav-cta .btn { padding: 8px 18px; font-size: 0.8rem; }
.main-nav .nav-cta .btn::after { content: none; }

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: inherit; }

/* Sisällön typografia (myös vanhalta sivustolta siirretty teksti) */
.entry { font-size: 0.95rem; }
.entry > * + * { margin-top: 1em; }
.entry p { margin: 0 0 1em; }
.entry h2 { font-style: normal; }
.entry h3, .entry h4 {
  font-style: normal;
  font-size: 1.05rem;
  margin: 28px 0 8px;
}
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry li + li { margin-top: 4px; }
.entry a { overflow-wrap: anywhere; }
.entry strong { font-style: normal; }
.entry .lead { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.entry table {
  width: 100%;
  border-collapse: collapse;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.entry th, .entry td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.entry th {
  background: var(--lilac-bg);
  font-weight: 600;
  color: var(--ink);
}
.price-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .price-table td:last-child { white-space: normal; } }

/* Esikatselun tarkistusmerkinnät */
.check {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  color: #7a3b00;
  background: #ffe8c2;
  border-radius: 3px;
  padding: 2px 7px;
  vertical-align: 1px;
}

/* Osion alavalikko sivupalkissa */
.subnav {
  background: var(--lilac-bg);
  padding: 22px 0 14px;
}
.subnav h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px 8px;
}
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav a {
  display: block;
  padding: 8px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.subnav a:hover { background: #e9e5fd; }
.subnav a[aria-current] {
  border-left-color: var(--navy);
  font-weight: 600;
  background: #e9e5fd;
}

/* Osion etusivun linkkikortit */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  font-style: normal;
}
.link-card {
  display: block;
  padding: 20px 22px;
  background: var(--lilac-bg);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.link-card:hover { background: #e9e5fd; }
.link-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.link-card p { margin: 0; font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); }

/* Kurssit */
.course {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 32px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.entry > .course:first-of-type,
.entry > .lead + .course { margin-top: 20px; }
.course__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 14px; }
.course__head h2 { margin: 0 !important; }
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
}
.course__note {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 18px;
  background: var(--lilac-bg);
  padding: 6px 20px;
  font-style: normal;
}
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 0.93rem; }
.course__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; font-style: normal; }
.text-link { font-family: var(--font-sans); font-size: 0.9rem; }
.course--link { background: var(--cream); border-top: 0; padding: 22px 24px; }
.course--link h2 { margin-top: 0 !important; font-size: 1.1rem !important; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-bottom: 8px;
  font-style: normal;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--lilac-bg);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.course-card:hover { background: #e9e5fd; }
.course-card .tag { align-self: flex-start; }
.course-card h3 { margin: 4px 0 0; font-size: 1.02rem; }
.course-card p { margin: 0; font-family: var(--font-sans); font-size: 0.86rem; color: var(--muted); }
.course-card .course-card__price { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
  font-style: normal;
}
.steps > * {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--cream);
  margin: 0 !important;
}
.steps strong { font-family: var(--font-serif); color: var(--ink); }
.steps span { font-family: var(--font-sans); font-size: 0.88rem; color: var(--muted); }
.steps--list { grid-template-columns: minmax(0, 1fr); }

.jumplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
  font-style: normal;
}
.jumplinks a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 5px 12px;
  border: 1px solid var(--lavender);
  border-radius: 999px;
  text-decoration: none;
}
.jumplinks a:hover { background: var(--lilac-bg); }

.people {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  font-style: normal;
}
.person { margin: 0 !important; padding: 18px 20px; background: var(--lilac-bg); }
.person h3 { margin: 0 0 6px; font-size: 1.02rem; }
.person p { margin: 0 0 6px; font-size: 0.9rem; }
.person .person__contact { font-family: var(--font-sans); font-style: normal; font-size: 0.85rem; color: var(--muted); margin: 0; }

.news-list { list-style: none; padding: 0 !important; margin: 0; font-style: normal; }
.news-item { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.news-item time { font-family: var(--font-sans); font-size: 0.82rem; color: var(--muted); }
.news-item h2 { font-size: 1.12rem !important; margin: 4px 0 6px !important; }
.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { text-decoration: underline; }
.news-item p { margin: 0; font-size: 0.93rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}
.contact-grid h2 { margin-top: 0 !important; font-size: 1.05rem !important; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.quick-links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  border: 1px solid var(--lavender);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.quick-links a:hover { background: var(--lilac-bg); }
.quick-links strong { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); }
.quick-links span { font-family: var(--font-sans); font-size: 0.88rem; color: var(--muted); }
.section--tight + .section { padding-top: 16px; }
.section-more { display: flex; justify-content: center; margin-top: 28px; }

.media-row > div p { margin-top: 0; }

@media (max-width: 900px) {
  .main-nav .nav-cta { border-bottom: 0; padding-top: 16px; }
  .main-nav .nav-cta .btn { width: 100%; padding: 12px; font-size: 0.95rem; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sidebar .contact-card { display: none; }
  .subnav { padding: 14px 0 8px; }
}

@media (max-width: 640px) {
  .link-grid,
  .people,
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Uutissivut */
.news-date { margin: -4px 0 18px !important; }
.news-image { width: 100%; max-width: 520px; height: auto; margin-bottom: 20px; }
.news-back { margin-top: 32px !important; font-family: var(--font-sans); font-style: normal; }

/* Leveä sisältösivu (esim. salivuorokalenteri): sivupalkki sisällön alle */
.content-layout--wide { grid-template-columns: minmax(0, 1fr); }
.content-layout--wide .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.content-layout--wide .entry > [data-vakita-salikalenteri] { margin-top: 24px; }
@media (max-width: 900px) {
  .content-layout--wide .sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* Julisteet ja kiinnitetty etusivun nosto */
.media-row img.poster { aspect-ratio: auto; height: auto; object-fit: contain; }
.feature--pinned .feature__img { object-position: center top; background: #000; }

/* Kassa: pikamaksujen otsikko ("Pikakassa") kehyksen viivan keskelle.
   Teeman otsikkoväli (margin-top) työnsi sen viivan alapuolelle. */
.wc-block-components-express-payment__title {
	margin: 0 !important;
}
