/*
Theme Name: FASOUL Artspace
Theme URI: https://fasoul.lt/
Author: FASOUL
Description: Editable multilingual WordPress theme matching the FASOUL web-updated reference.
Version: 1.0.0
Text Domain: fasoul
*/

/* ==========================================================================
   FASOUL visual theme.
   One coherent stylesheet: the template now carries semantic classes, so
   there are no [style*=…] override hacks and no !important fights.
   Agrandir type, a palette sampled from the original FASOUL artwork, white inset panels and heavy
   rounded outlines create one coherent visual language.
   ========================================================================== */

@font-face {
  font-family: "Agrandir";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/agrandir-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Agrandir";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/agrandir-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Agrandir Grand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/agrandir-grandlight.woff2") format("woff2");
}

@font-face {
  font-family: "Agrandir Grand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/agrandir-grandheavy.woff2") format("woff2");
}

/* ----- Tokens ----------------------------------------------------------- */

:root {
  color-scheme: only light;

  /* Inks — text, borders, CTAs. Matched darkness (OKLCH L ≈ 0.47) so red and
     purple read as siblings rather than two unrelated brand colors. */
  --k-red: #ab0104;                    /* L 0.47  C 0.19  H 29  — the one action colour */
  --k-red-ink: #ab0104;
  --k-navy: #665673;                   /* L 0.48  C 0.05  H 310 — structure: borders, headings */
  --k-night: #1f1725;                  /* L 0.22  C 0.03  H 310 — body copy, near-black w/ the navy hue */
  --ok-green: #2f7350;                 /* L 0.49  C 0.09  H 157 — success only */

  /* Fields — the large section backgrounds. All four sit on one lightness
     (OKLCH L ≈ 0.834) and a narrow chroma band, so scrolling between sections
     changes hue without changing brightness. */
  --k-cyan: #8fd7dd;                   /* C 0.072  H 202 */
  --k-pink: #feb1b2;                   /* C 0.090  H  19 */
  --k-orange: #f4bd7b;                 /* C 0.105  H  71 */
  --k-lilac: #d4bfe6;                  /* C 0.058  H 310 — light cast of --k-navy */

  /* Homepage stage — smoky purple with darker plum edges and a soft glow. */
  --hero-night: #302838;
  --hero-purple: #665673;
  --hero-glow: #9682a0;

  /* Surface tints — highlight cards, notes and status boxes. Matched at
     OKLCH L ≈ 0.97, so a highlight never collides with the field behind it.
     (--k-yellow is gone: it was a byte-for-byte duplicate of --k-orange.) */
  --tint-red: #fff1ed;
  --tint-cyan: #e6fbfc;
  --tint-green: #ebfbf0;
  --tint-orange: #fff4e6;

  --k-white: #ffffff;
  --k-muted: rgba(102, 86, 115, 0.78);

  --grand: "Agrandir Grand", "Arial Black", sans-serif;
  --sans: "Agrandir", Arial, sans-serif;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --line: 4px solid var(--k-navy);
  --line-thin: 3px solid var(--k-navy);
}

/* ----- Base ------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  color-scheme: only light;
  scroll-behavior: smooth;
  background: var(--k-white);
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--k-white);
  color: var(--k-night);
  font: 400 16.5px/1.6 var(--sans);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

.site { min-height: 100vh; overflow-x: clip; }

h1, h2, h3, p, figure { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--k-red); }

img { max-width: 100%; }

input, select, textarea, button {
  color-scheme: only light;
  font: inherit;
}

::selection { background: var(--k-orange); color: var(--k-night); }

:focus-visible { outline: 4px solid var(--k-red); outline-offset: 3px; }

@keyframes fasoul-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fasoul-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ----- Ticker ----------------------------------------------------------- */

.ticker {
  background: var(--k-night);
  color: var(--k-white);
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  gap: 54px;
  padding: 10px 0 7px;
  animation: fasoul-marquee 34s linear infinite;
  font: 700 11px/1.4 var(--grand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 879px) {
  .ticker { display: none; }
}

/* ----- Floating header --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 8px;
  z-index: 90;
  width: calc(100% - 16px);
  max-width: 1240px;
  margin: 8px auto 24px;
  background: var(--k-white);
  border: 4px solid var(--k-navy);
  border-radius: var(--radius-m);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 10px 20px;
}

.site-header__logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-header__logo img { display: block; height: 38px; width: auto; }

.site-nav {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-link {
  font: 700 12px/1 var(--grand);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 0 5px;
  border-bottom: 3px solid transparent;
}

.nav-link { color: var(--k-navy); }
.nav-link:hover { color: var(--k-navy); border-bottom-color: currentColor; }
.nav-link[aria-current="page"] { border-bottom-color: currentColor; }

.site-header__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  border: var(--line-thin);
  border-radius: var(--radius-s);
  overflow: hidden;
  flex: 0 0 auto;
}

.lang-btn {
  border: 0;
  background: var(--k-white);
  color: var(--k-navy);
  font: 700 11px/1 var(--grand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 11px 7px;
  cursor: pointer;
}

.lang-btn + .lang-btn { border-left: var(--line-thin); }
.lang-btn[aria-pressed="true"] { background: var(--k-navy); color: var(--k-white); }

.site-header .header-cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 10px;
  background: var(--k-navy);
  border: 3px solid var(--k-navy);
  border-radius: var(--radius-s);
  cursor: pointer;
}

.burger__bar { display: block; height: 3px; border-radius: 2px; background: var(--k-white); }

/* ----- Full-screen menu -------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--k-navy);
  color: var(--k-white);
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.menu__logo { display: block; line-height: 0; }
.menu__logo img { height: 32px; width: auto; }

.menu__close {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--k-white);
  border: 3px solid var(--k-white);
  border-radius: var(--radius-s);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.menu__close:hover { background: rgba(255, 255, 255, 0.12); }

.menu__link {
  font: 700 clamp(24px, 6.5vw, 32px)/1.15 var(--grand);
  text-transform: uppercase;
  color: var(--k-white);
  padding: 12px 0 9px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
}

.menu__link:hover { color: var(--k-cyan); }

/* Red focus rings vanish on the navy menu — use the field colour there. */
.menu :focus-visible { outline-color: var(--k-cyan); }

.menu__cta { margin-top: 18px; }

.menu__contact { margin-top: 16px; font-size: 14.5px; }
.menu__contact a { color: var(--k-cyan); font-weight: 700; }
.menu__contact a:hover { color: var(--k-white); }

/* ----- Color fields and white panels ------------------------------------ */

.sec {
  padding: 24px 20px 44px;
  background: var(--accent, var(--k-cyan));
}

/* Field rotation. Red is deliberately not in here: at OKLCH L 0.47 it was 35
   points darker than the other three fields, so every second section dropped
   the page to half brightness. It is the action colour instead, and --k-lilac
   carries the fourth field. */
main > section:nth-of-type(4n + 1) { --accent: var(--k-orange); --ink: var(--k-navy); }
main > section:nth-of-type(4n + 2) { --accent: var(--k-lilac);  --ink: var(--k-red-ink); }
main > section:nth-of-type(4n + 3) { --accent: var(--k-cyan);   --ink: var(--k-navy); }
main > section:nth-of-type(4n + 4) { --accent: var(--k-pink);   --ink: var(--k-navy); }

.panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 48px 52px;
  background: var(--k-white);
  border-radius: var(--radius-l);
  overflow: hidden;
  color: var(--k-night);
}

.panel--narrow { max-width: 820px; }

.panel--article { max-width: 1240px; }

/* ----- Type scale -------------------------------------------------------- */

.eyebrow {
  font: 700 12px/1.4 var(--grand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--k-red-ink);
}

.sec-title {
  margin-top: 10px;
  font: 700 clamp(27px, 4.2vw, 50px)/0.98 var(--grand);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink, var(--k-navy));
  max-width: 980px;
}

@media (min-width: 880px) {
  .sec-title--why {
    max-width: none;
    font-size: clamp(30px, 3.3vw, 42px);
    white-space: nowrap;
  }
}

.page-title {
  margin-top: 14px;
  font: 700 clamp(29px, 5vw, 56px)/0.96 var(--grand);
  text-transform: uppercase;
  color: var(--ink, var(--k-navy));
  max-width: 980px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.page-title--lesson {
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.03;
}

.page-title.page-title--teacher,
.page-title.page-title--article {
  font-size: clamp(20.3px, 3.5vw, 39.2px);
  line-height: 1.02;
}

.lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 38px;
}

.lesson-hero__copy { min-width: 0; }

.lesson-hero__copy .page-lead { margin-bottom: 26px; }

.lesson-hero__media {
  min-width: 0;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: var(--line-thin);
  border-radius: var(--radius-l);
  background: var(--accent, var(--k-cyan));
}

.lesson-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 879px) {
  .lesson-hero { grid-template-columns: 1fr; gap: 28px; }
  .lesson-hero__media { width: 100%; max-width: 640px; }
}

.sub-title {
  font: 700 clamp(19px, 2.6vw, 25px)/1.1 var(--grand);
  text-transform: uppercase;
  color: var(--ink, var(--k-navy));
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.sec-lead { max-width: 460px; font-size: 16px; line-height: 1.6; }

.page-lead { margin-top: 16px; max-width: 640px; font-size: 17.5px; line-height: 1.6; }

.lesson-lead {
  flex-basis: 100%;
  max-width: none;
  white-space: nowrap;
}

.backlink {
  display: inline-block;
  font: 700 12px/1.4 var(--grand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--k-red-ink);
  border-bottom: 3px solid var(--k-cyan);
  padding-bottom: 2px;
}

.backlink:hover { color: var(--k-navy); }

.meta {
  font: 700 11.5px/1.5 var(--grand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.footnote { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--k-muted); }

.prose p { margin: 0 0 15px; font-size: 17px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }

.about-copy { width: 100%; }

.about-copy .prose { max-width: none; }

.about-copy .prose p { text-wrap: pretty; }

.about-video { margin-top: clamp(32px, 5vw, 52px); }

/* ----- About gallery / lightbox ----------------------------------------- */

.about-gallery { margin-top: 48px; }

.about-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.about-gallery__head p {
  max-width: 420px;
  color: var(--k-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: var(--line-thin);
  border-radius: var(--radius-m);
  background: var(--k-navy);
  cursor: zoom-in;
}

.about-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.about-gallery__item:hover img,
.about-gallery__item:focus-visible img { transform: scale(1.035); opacity: 0.88; }

.about-gallery__item:focus-visible { outline: 3px solid var(--k-red); outline-offset: 3px; }

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 23, 37, 0.93);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
}

.lightbox__frame {
  width: min(1120px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--k-white);
}

.lightbox__count { font: 700 13px/1 var(--grand); letter-spacing: 0.08em; }

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(31, 23, 37, 0.55);
  color: var(--k-white);
  cursor: pointer;
}

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 700 18px/1 var(--sans);
}

.lightbox__stage {
  min-height: 0;
}

.lightbox__media-row {
  min-height: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
}

.lightbox__nav {
  width: 52px;
  height: 72px;
  border-radius: var(--radius-m);
  font: 400 46px/1 var(--sans);
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  border-color: var(--k-white);
  background: var(--k-red);
  outline: none;
}

.lightbox__figure {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 145px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-m);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.38);
}

.lightbox__caption {
  margin-top: 10px;
  color: var(--k-white);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 879px) {
  .about-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 559px) {
  .about-gallery { margin-top: 36px; }
  .about-gallery__head { display: block; }
  .about-gallery__head p { margin-top: 8px; text-align: left; }
  .about-gallery__grid { gap: 8px; }
  .lightbox { padding: 12px; }
  .lightbox__frame { max-height: calc(100dvh - 24px); }
  .lightbox__media-row { position: relative; display: block; }
  .lightbox__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 58px;
    font-size: 36px;
    transform: translateY(-50%);
  }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__figure img { max-height: calc(100dvh - 140px); }
}

/* ----- Buttons, chips, tags ---------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--k-white);
  color: var(--k-navy);
  border: var(--line);
  border-radius: var(--radius-s);
  padding: 13px 18px 9px;              /* Agrandir sits high — heavier top pad */
  font: 700 14px/1.1 var(--grand);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  background: var(--k-red);
  border-color: var(--k-red);
  color: var(--k-white);
}

.btn--primary {
  background: var(--k-red);
  border-color: var(--k-red);
  color: var(--k-white);
}

.btn--primary:hover {
  background: var(--k-white);
  border-color: var(--k-red);
  color: var(--k-red);
}
.btn--dark { background: var(--k-navy); color: var(--k-white); }
.btn--block { display: block; width: 100%; }

.btn--sm { padding: 10px 11px 7px; font-size: 12px; border-width: 3px; }
.btn--lg { padding: 16px 24px 12px; font-size: 16px; }

.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: var(--k-white); border-color: var(--k-navy); color: var(--k-navy); }
.btn--primary[disabled]:hover { background: var(--k-red); border-color: var(--k-red); color: var(--k-white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  cursor: pointer;
  background: var(--k-white);
  color: var(--k-navy);
  border: var(--line-thin);
  border-radius: var(--radius-s);
  padding: 10px 13px 7px;
  font: 700 11.5px/1 var(--grand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip:hover { border-color: var(--k-red); color: var(--k-red); }

.chip[aria-pressed="true"],
.chip[aria-current="page"] {
  background: var(--k-navy);
  border-color: var(--k-navy);
  color: var(--k-white);
}

.tag {
  display: inline-block;
  background: var(--k-white);
  color: var(--k-navy);
  border: var(--line-thin);
  border-radius: var(--radius-s);
  padding: 8px 11px 5px;
  font: 700 11px/1.3 var(--grand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag--dark { background: var(--k-navy); border-color: var(--k-navy); color: var(--k-white); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-row--assurances {
  gap: 9px;
  align-items: center;
}

.tag--assurance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid rgba(102, 86, 115, 0.34);
  border-radius: 999px;
  background: #f5f0f8;
  color: var(--k-navy);
  padding: 7px 11px 5px;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: none;
  white-space: normal;
}

.tag--assurance::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--k-navy);
  opacity: 0.62;
}

.textlink {
  align-self: flex-start;
  font: 700 12.5px/1.5 var(--grand);
  text-transform: uppercase;
  color: var(--k-navy);
  border-bottom: 3px solid var(--k-cyan);
  padding-bottom: 1px;
}

.textlink:hover { color: var(--k-red); }

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 63% 36%, var(--hero-purple) 0%, var(--hero-night) 68%),
    var(--hero-night);
  border-bottom: 20px solid var(--k-orange);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("./assets/instrument-pattern.jpg");
  background-size: 260px;
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;                /* between the band art (0) and the copy (2) */
  display: none;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(48, 40, 56, 0.98) 0%, rgba(48, 40, 56, 0.86) 32%, rgba(72, 59, 79, 0.28) 49%, rgba(48, 40, 56, 0.02) 70%),
    linear-gradient(0deg, rgba(24, 18, 29, 0.24), transparent 50%);
}

.hero__inner {
  position: relative;
  width: calc(100% - 16px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.hero__copy { max-width: 660px; }

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-s);
  color: var(--k-white);
  padding: 8px 13px 5px;
  font: 700 11.5px/1.4 var(--grand);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 22px;
  max-width: 13.5em;
  font: 700 clamp(21.6px, 5.76vw, 31.68px)/1.32 var(--grand);
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--k-white);
  text-wrap: balance;
}

.hero__title .hl {
  white-space: nowrap;
  background: var(--k-cyan);
  color: var(--k-night);
  padding: 0.04em 0.12em 0.02em;
  margin: 0 -0.04em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lead {
  margin-top: 20px;
  max-width: 540px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

.tag--location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--k-white);
  padding: 8px 12px 6px;
}

.tag--location::before {
  content: "";
  position: relative;
  top: -2px;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, currentColor 0 1px, transparent 1.2px);
  transform: rotate(-45deg);
}

.tag--age {
  display: none;
  align-items: center;
  border: 2px solid rgba(102, 86, 115, 0.55);
  border-radius: 14px 14px 14px 4px;
  background: var(--k-white);
  color: var(--k-navy);
  padding: 10px 12px 7px;
  transform: rotate(2deg);
  font: 700 11px/1.15 var(--grand);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__mobile-age { display: none; }

.hero__art {
  position: relative;
  align-self: end;
  margin: 4px -20px -4px;
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.hero__bubble {
  position: absolute;
  right: 4%;
  top: 5%;
  max-width: 200px;
  background: var(--k-white);
  border: 2px solid rgba(102, 86, 115, 0.55);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px 8px;
  transform: rotate(2deg);
  color: var(--k-navy);
  font: 700 14px/1.15 var(--grand);
  text-transform: uppercase;
}

@media (max-width: 879px) {
  .hero__mobile-age {
    display: block;
    margin-top: 10px;
  }

  .tag--age { display: inline-flex; }

  /* Art-first hero: the full illustration on top, copy below it */
  .hero__inner {
    min-height: 0;
    padding: 6px 16px 22px;
    gap: 0;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
    margin-top: 4px;
  }

  .hero__art {
    order: -1;
    width: calc(100% + 48px);
    margin: 0 0 0 -24px;
    pointer-events: none;
  }

  .hero__art img {
    -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  }

  .hero__bubble {
    display: none;
  }
}

@media (min-width: 880px) {
  .hero__inner {
    min-height: min(76vh, 700px);
    padding: 64px 24px 0;
    gap: 0;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
    max-width: min(52%, 650px);
    align-self: center;
    padding-bottom: 56px;
  }

  .hero__title { font-size: clamp(21.6px, 3.096vw, 41.04px); }

  .hero__art {
    position: absolute;
    right: auto;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 100vw;
    margin: 0;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .hero__art::before {
    content: "";
    position: absolute;
    inset: -10% -8% -5%;
    background: none;
  }

  .hero__art img {
    position: relative;
    z-index: 1;
    height: min(calc(76vh + 64px), 700px);
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(15%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }

  .hero__scrim { display: block; }

  .hero__bubble {
    z-index: 3;
    right: 24px;
    max-width: 230px;
    font-size: 16px;
  }
}

/* ----- Grids ------------------------------------------------------------- */

.grid { display: grid; gap: 20px; }

.grid--lessons { grid-template-columns: repeat(3, 1fr); }

.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.grid--teachers { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid--home-news { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid--benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  align-items: start;
}

.teacher-profile > .sub-title,
.teacher-interview > .sub-title {
  margin-bottom: 18px;
}

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

.teacher-profile__fact {
  min-height: 100%;
  border: var(--line-thin);
  border-radius: var(--radius-l);
  background: var(--tint-cyan);
  padding: clamp(22px, 3vw, 34px);
}

.teacher-profile__fact:nth-child(2) {
  background: #f5f0f8;
}

.teacher-profile__fact h3 {
  margin-bottom: 12px;
  color: var(--k-navy);
  font: 700 15px/1.25 var(--grand);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.teacher-profile__fact p,
.teacher-interview__item p {
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.teacher-interview__lead {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--k-muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.teacher-interview__item {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: var(--line-thin);
  border-radius: var(--radius-l);
  background: var(--k-white);
  padding: clamp(24px, 3vw, 36px);
}

.teacher-interview__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.teacher-interview__num {
  position: absolute;
  right: 18px;
  top: 10px;
  color: rgba(102, 86, 115, 0.11);
  font: 700 clamp(68px, 8vw, 104px)/0.9 var(--grand);
  letter-spacing: -0.08em;
  pointer-events: none;
}

.teacher-interview__item h3 {
  position: relative;
  max-width: 82%;
  margin-bottom: 18px;
  color: var(--k-navy);
  font: 700 clamp(18px, 2vw, 23px)/1.25 var(--grand);
  text-transform: uppercase;
  text-wrap: balance;
}

.teacher-interview__item p {
  position: relative;
}

@media (max-width: 879px) {
  .grid--lessons { grid-template-columns: repeat(2, 1fr); }
  .grid--teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--home-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 559px) {
  .grid--lessons { grid-template-columns: 1fr; }
  .grid--teachers { grid-template-columns: 1fr; }
  .grid--home-news { grid-template-columns: 1fr; }
  .grid--benefits { grid-template-columns: 1fr; }
  .teacher-profile__facts,
  .teacher-interview__grid { grid-template-columns: 1fr; }
  .teacher-interview__item:last-child:nth-child(odd) { grid-column: auto; }
  .teacher-interview__item { min-height: 0; }
}

@media (min-width: 880px) and (max-width: 1099px) {
  .grid--teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--home-news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ----- Cards ------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--k-white);
  border: var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  color: var(--k-night);
}

a.card { color: var(--k-night); }
a.card:hover { border-color: var(--k-red); }
a.card:hover .card__title { color: var(--k-red); }

.card__media {
  position: relative;
  height: 160px;
  border-bottom: var(--line);
  overflow: hidden;
}

.card__media-link,
.media-link {
  display: block;
  color: inherit;
  cursor: pointer;
}

.card__media-link:focus-visible,
.media-link:focus-visible {
  outline: 4px solid var(--k-cyan);
  outline-offset: -4px;
}

.media-link:hover .content-photo { transform: scale(1.025); }

.card__media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform 0.25s ease;
}

.card:hover .card__media-image { transform: scale(1.025); }

.card__media-pattern {
  position: absolute;
  inset: 0;
  background-image: url("./assets/instrument-pattern.jpg");
  background-size: 190px;
  mix-blend-mode: luminosity;
  opacity: 0.35;
}

.card__num {
  position: absolute;
  right: 12px;
  bottom: -22px;
  font: 700 84px/1 var(--grand);
  color: var(--k-white);
  opacity: 0.92;
  text-shadow: 0 2px 12px rgba(102, 86, 115, 0.22);
}

.card__head {
  padding: 16px 20px 11px;
  border-bottom: var(--line);
}

.card__citytitle {
  font: 700 24px/1 var(--grand);
  text-transform: uppercase;
}

.card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__title {
  font: 700 21px/1.08 var(--grand);
  text-transform: uppercase;
  color: var(--k-navy);
}

.card__title-link,
.card__title-link:hover,
.card__title-link:focus,
.card__title-link:visited {
  color: inherit;
  text-decoration: none;
}

.card__title-link:hover { color: var(--k-red); }

.card__title-link:focus-visible {
  outline: 3px solid var(--k-cyan);
  outline-offset: 3px;
}

.card__text { font-size: 15px; line-height: 1.55; flex: 1; text-wrap: pretty; }

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

/* ----- Benefits ----------------------------------------------------------- */

.benefit {
  background: var(--k-white);
  border: 2px solid var(--k-navy);
  border-radius: var(--radius-l);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.benefit__num {
  display: block;
  font: 700 17px/1 var(--grand);
  color: var(--k-red);
}

.benefit__title {
  min-width: 0;
  font: 700 15px/1.16 var(--grand);
  text-transform: uppercase;
  color: var(--k-navy);
  overflow-wrap: break-word;
}

.benefit p { font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }

/* ----- Photo / image slots ----------------------------------------------- */

.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background-image:
    linear-gradient(rgba(143, 215, 221, 0.5), rgba(254, 177, 178, 0.45)),
    url("./assets/instrument-pattern.jpg");
  background-size: auto, 220px;
}

.photo-slot span {
  font: 700 11px/1.5 var(--grand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.photo-slot--filled { padding: 0; overflow: hidden; }

.content-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.25s ease;
}

.photo-slot--card { aspect-ratio: 16 / 10; border-bottom: var(--line); }

.photo-slot--banner { height: 150px; border-bottom: var(--line); }

.photo-slot--tall {
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 620px;
  border: var(--line);
  border-radius: var(--radius-l);
}

.photo-slot--wide {
  aspect-ratio: 16 / 9;
  height: auto;
  border: var(--line);
  border-radius: var(--radius-l);
  margin-bottom: 28px;
}

/* News artwork is mostly portrait. Keep the complete design visible instead
   of cropping it to the short landscape ratio used by other card media. */
.news-media {
  background: var(--k-navy);
}

.news-media--card {
  height: auto;
  aspect-ratio: 4 / 5;
}

.news-media .content-photo {
  object-fit: contain;
  object-position: center;
}

.news-media--article {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  margin: 0 0 0 auto;
}

.news-media--article .content-photo {
  width: 100%;
  height: 100%;
}

/* ----- Notes (placeholder / verification flags) --------------------------- */

.note {
  border: 3px dashed var(--k-red);
  border-radius: var(--radius-m);
  background: var(--tint-red);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--k-red-ink);
}

.note--info {
  border-color: var(--k-navy);
  background: var(--tint-cyan);
  color: var(--k-navy);
}

/* ----- Filters ------------------------------------------------------------ */

.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.filter-label {
  font: 700 11px/1.4 var(--grand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-muted);
  margin-bottom: 8px;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }

.result-note { font-size: 13px; color: var(--k-muted); margin-bottom: 16px; }

.empty {
  background: var(--k-white);
  border: var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
  text-align: center;
}

.empty p {
  font: 700 20px/1.2 var(--grand);
  text-transform: uppercase;
  color: var(--k-navy);
  margin-bottom: 16px;
}

/* ----- Lesson detail ------------------------------------------------------ */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li { display: flex; gap: 10px; font-size: 16px; line-height: 1.55; }

.checklist .tick { color: var(--k-red); font-weight: 700; flex: 0 0 auto; }

.lesson-copy__heading { margin-bottom: 18px; }

.lesson-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lesson-copy__block {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 22px;
  overflow: hidden;
  border: var(--line-thin);
  border-radius: var(--radius-l);
  background: var(--k-white);
  background: color-mix(in srgb, var(--lesson-accent) 17%, var(--k-white));
}

.lesson-copy__num {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 13px;
  color: rgba(102, 86, 115, 0.14);
  font: 700 68px/1 var(--grand);
  letter-spacing: -0.06em;
  pointer-events: none;
}

.lesson-copy__block .sub-title {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  padding-right: 76px;
}

.lesson-copy__block p { position: relative; z-index: 1; font-size: 16.5px; line-height: 1.65; }

@media (max-width: 719px) {
  .lesson-copy { grid-template-columns: 1fr; }
}

/* ----- Video -------------------------------------------------------------- */

.video-frame {
  aspect-ratio: 16 / 9;
  border: var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--k-night);
}

.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.video-btn {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--k-navy);
  color: var(--k-white);
  border: var(--line);
  border-radius: var(--radius-l);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.video-btn:hover { background: var(--k-night); }

.video-btn__play {
  width: 64px;
  height: 64px;
  border: 3px solid var(--k-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--k-cyan);
}

.video-btn__label {
  font: 700 16px/1.3 var(--grand);
  text-transform: uppercase;
  text-align: center;
}

.video-btn__note { font-size: 11.5px; letter-spacing: 0.04em; opacity: 0.75; }

/* ----- Article ------------------------------------------------------------ */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
  margin-top: 22px;
}

.article-copy { min-width: 0; }

.article-copy .meta { display: block; margin-bottom: 8px; }

.article-copy .page-title { margin: 0 0 26px; }

.article-body { font-size: 17px; line-height: 1.7; text-wrap: pretty; }

.cta-banner {
  margin-top: 28px;
  background: var(--tint-orange);
  border: var(--line);
  border-radius: var(--radius-l);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta-banner p {
  font: 700 18px/1.2 var(--grand);
  text-transform: uppercase;
  color: var(--k-navy);
  max-width: 420px;
}

/* ----- Contact ------------------------------------------------------------ */

.addr { font-size: 14.5px; line-height: 1.7; }

.location-card {
  background: var(--location-surface);
  border-color: var(--location-color);
}

.location-card__media {
  aspect-ratio: 1000 / 673;
  overflow: hidden;
  background: var(--location-color);
  border-bottom: var(--line);
  border-bottom-color: var(--location-color);
}

.location-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-card .card__head {
  background: var(--location-color);
  border-bottom-color: var(--location-color);
}

.location-card .card__body { background: var(--location-surface); }

.location-card .btn {
  border-color: var(--location-color);
  color: var(--location-color);
}

.location-card .btn:hover {
  background: var(--location-color);
  border-color: var(--location-color);
  color: var(--k-white);
}

.info-card {
  background: var(--k-white);
  border: var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
}

.info-card--yellow { background: var(--tint-orange); }

.info-card h2 {
  font: 700 18px/1.2 var(--grand);
  text-transform: uppercase;
  color: var(--k-navy);
  margin-bottom: 10px;
}

.info-card .hours { font-size: 15px; line-height: 1.8; }

.info-card .email { font-weight: 700; font-size: 15.5px; color: var(--k-navy); border-bottom: 3px solid var(--k-cyan); }
.info-card .email:hover { color: var(--k-red); }

/* ----- Registration form -------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 34px;
  align-items: start;
}

.form-intro p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; max-width: 520px; text-wrap: pretty; }

.form-intro .form-logo { height: 38px; width: auto; margin-top: 20px; }

.form-hours { margin-top: 18px; font-size: 14.5px; line-height: 1.8; }
.form-hours a { font-weight: 700; color: var(--k-navy); border-bottom: 2px solid var(--k-cyan); }
.form-hours a:hover { color: var(--k-red); }

.form-card {
  background: var(--k-white);
  border: var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fgroup { display: flex; flex-direction: column; gap: 6px; }
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.flabel {
  font: 700 12px/1.4 var(--grand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--k-navy);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: var(--line-thin);
  border-radius: var(--radius-s);
  background: var(--k-white);
  color: var(--k-night);
  font-size: 16px;                     /* ≥16px keeps iOS from zooming in */
  font-family: var(--sans);
}

.input:focus { border-color: var(--k-cyan); outline: none; }

select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23665673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

textarea.input { resize: vertical; min-height: 84px; }

.fhint { font-size: 12.5px; color: var(--k-muted); }

.ferr { font-size: 13px; font-weight: 700; color: var(--k-red-ink); }

.fduo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px;
}

.fnote {
  border: var(--line-thin);
  border-radius: var(--radius-s);
  background: var(--tint-cyan);
  padding: 10px 12px;
  font-size: 13px;
}

.fconsent { display: flex; gap: 10px; align-items: flex-start; }

.fconsent label { font-size: 14px; line-height: 1.5; }

.fcheck {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--k-navy);
}

.status { border: 3px solid; border-radius: var(--radius-m); padding: 14px 16px; }

.status--error, .status--fail { border-color: var(--k-red); background: var(--tint-red); color: var(--k-red-ink); }
.status--hook { border-color: var(--k-navy); background: var(--tint-cyan); color: var(--k-navy); }
.status--ok { border-color: var(--ok-green); background: var(--tint-green); color: var(--ok-green); }

.status__title {
  display: block;
  font: 700 14px/1.3 var(--grand);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.status__msg { font-size: 13px; line-height: 1.55; }

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

/* The footer is almost entirely 12–14px text on the cyan field. --k-navy on
   cyan is only 4.11:1, so the body ink drops to --k-night (10.7:1) here.
   Same hue, just far enough down to carry small type. */
.footer { background: var(--k-cyan); color: var(--k-night); }

.footer a { color: var(--k-night); }
.footer a:hover { color: var(--k-red); }

.footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 32px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 30px;
}

.footer__logo { height: 38px; width: auto; }

.footer__tagline { margin-top: 14px; max-width: 280px; font-size: 14.5px; line-height: 1.6; }

.footer__h {
  font: 700 12px/1.4 var(--grand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__lines { font-size: 14px; line-height: 1.9; }

.footer__lines a { font-weight: 700; }

.footer__social { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.footer__social a {
  font: 700 14px/1.4 var(--grand);
  text-transform: uppercase;
  border-bottom: 3px solid var(--k-navy);
}

.footer__lang { margin-top: 20px; display: flex; }

.footer__bottom { border-top: 3px solid var(--k-navy); }

.footer__bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  font-size: 12.5px;
}

/* Reversible site-wide thin-border preview.
   Remove `thin-borders-preview` from <body> to restore the previous weights. */
body.thin-borders-preview {
  --line: 2px solid var(--k-navy);
  --line-thin: 2px solid var(--k-navy);
}

body.thin-borders-preview .site-header,
body.thin-borders-preview .burger,
body.thin-borders-preview .menu__close,
body.thin-borders-preview .btn--sm,
body.thin-borders-preview .photo-slot--empty,
body.thin-borders-preview .video-btn__play,
body.thin-borders-preview .status {
  border-width: 2px;
}

body.thin-borders-preview .nav-link,
body.thin-borders-preview .menu__top,
body.thin-borders-preview .backlink,
body.thin-borders-preview .textlink,
body.thin-borders-preview .info-card .email,
body.thin-borders-preview .footer__social a {
  border-bottom-width: 2px;
}

body.thin-borders-preview .footer__bottom,
body.thin-borders-preview .sticky-cta {
  border-top-width: 2px;
}

/* ----- Sticky mobile CTA -------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--k-white);
  border-top: 4px solid var(--k-navy);
}

/* ----- Responsive --------------------------------------------------------- */

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .site-header .header-cta { display: inline-block; }
  .burger { display: none; }
}

@media (max-width: 859px) {
  .site-header { margin-bottom: 16px; }
  .site-header__inner { min-height: 58px; padding: 8px 12px; gap: 10px; }
  .site-header__logo img { height: 32px; }

  .site-header__logo,
  .lang-btn,
  .burger,
  .btn,
  .chip,
  .backlink,
  .textlink,
  .fconsent { min-height: 44px; }

  .lang-btn,
  .chip { min-width: 44px; }

  .site-header__logo,
  .btn,
  .backlink,
  .textlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn--block { display: flex; }

  .sec { padding: 14px 12px 26px; }
  .panel { padding: 30px 20px 36px; border-radius: var(--radius-m); }

  .card, .benefit, .form-card, .info-card,
  .empty, .cta-banner, .photo-slot--tall,
  .photo-slot--wide, .video-btn, .video-frame { border-radius: var(--radius-m); }

  .sticky-cta { display: block; }
  main { padding-bottom: 84px; }

  .article-layout { grid-template-columns: 1fr; gap: 26px; }
  .news-media--article { max-width: 520px; margin: 0 auto; }
  .lesson-lead { white-space: normal; }
}

@media (max-width: 479px) {
  .site-header__logo img { height: 28px; }
  .card__num { font-size: 72px; }
  .page-title:not(.page-title--lesson) { font-size: clamp(24px, 7.4vw, 29px); }
  .page-title.page-title--teacher,
  .page-title.page-title--article { font-size: clamp(16.8px, 5.18vw, 20.3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* WordPress integration */
[hidden] { display: none !important; }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pager .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 3px solid var(--k-navy);
  border-radius: 999px;
  color: var(--k-navy);
  text-decoration: none;
  font-weight: 700;
  background: var(--k-white);
}
.pager .page-numbers.current { background: var(--k-navy); color: var(--k-white); }
.article-body p { margin: 0 0 1.2em; }
.about-gallery__item img,
.location-card__media img { width: 100%; height: 100%; object-fit: cover; }
.wp-admin .site { padding-top: 32px; }
