/* Mova: Ukrainian lessons
   Colours come from vyshyvanka embroidery (red and dark thread on white linen)
   plus cobalt for actions. Type: Arsenal, a Ukrainian typeface. */

:root {
  /* Colours from the cover of «Яблуко»: sky fading into lime, olive letters,
     green apples and leaves, and a red poppy. */
  --paper: #ffffff;
  --wash: #f2f5ea;
  --ink: #232a17;
  --muted: #586050;
  --line: #d9e0cb;
  --leaf: #4d6f10;
  --leaf-deep: #3a530b;
  --leaf-soft: #eaf2d3;
  --lime: #cfe06a;
  --sky: #2c7480;
  --sky-soft: #e2efee;
  --red: #c41e24;
  --green: #1f7a45;
  --green-soft: #e2f2e6;
  --red-soft: #fbe6e5;

  --font: 'Arsenal', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --step--1: 0.94rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: 2.67rem;
  --step-4: clamp(3rem, 8vw, 5.6rem);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--leaf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- embroidery band ---------- */
.stitch {
  height: 66px;
  background-image: var(--stitch);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}
.stitch--thin { height: 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  font: inherit; font-weight: 700; line-height: 1.2;
  padding: 0.6em 1.15em; min-height: 44px;
  border-radius: var(--radius-s); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--big { font-size: 1.2rem; padding: 0.7em 1.4em; }
.btn--primary { background: var(--leaf); color: #fff; }
.btn--primary:hover { background: var(--leaf-deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--leaf-deep); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.text-btn {
  font: inherit; background: none; border: 0; padding: 0.25rem 0;
  color: var(--leaf); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.icon { display: inline-flex; }
.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  font-size: 1.75rem; font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark::after { /* a small leaf, like the one on the О of the cover */
  content: ''; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.08em;
  background: var(--leaf); border-radius: 0 100% 0 100%; transform: translateY(-0.42em) rotate(-8deg);
}
.wordmark:hover { color: var(--ink); }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-header nav a:hover { color: var(--leaf); text-decoration: underline; }

/* ---------- home: hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.hero h1 {
  font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.025em;
  margin-bottom: 0.4em; max-width: 9em;
}
.lede { font-size: 1.35rem; line-height: 1.5; max-width: 32em; }
.lede-small { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.cover {
  position: relative; justify-self: center;
  width: min(100%, 300px); aspect-ratio: 3 / 4;
  background: var(--leaf); color: #fff;
  border-radius: 4px 12px 12px 4px;
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, 0.18), 18px 22px 0 var(--wash);
  padding: 2rem 1.6rem; display: flex; flex-direction: column; justify-content: flex-end;
  transform: rotate(2.5deg);
}
.cover-band {
  position: absolute; left: 10px; right: 0; top: 18%; height: 44px;
  background-image: var(--stitch-light); background-size: auto 100%; background-repeat: repeat-x;
}
.cover-title { font-size: 1.9rem; font-weight: 700; line-height: 1.05; }
.cover-sub { margin-top: 0.6rem; font-style: italic; opacity: 0.85; }
.cover-img { justify-self: center; max-width: 320px; border-radius: 4px; box-shadow: 18px 22px 0 var(--wash); }

/* ---------- home: lessons ---------- */
.lessons { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-intro { max-width: 40rem; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); font-size: 1.2rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.lesson-list .loading { padding: 1.5rem 0; color: var(--muted); }
.lesson-row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: baseline;
  gap: 1rem; padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.lesson-row:hover { background: var(--leaf-soft); color: var(--ink); }
.lesson-num { font-size: 2.4rem; font-weight: 700; color: var(--red); line-height: 1; }
.lesson-names strong { display: block; font-size: 1.65rem; line-height: 1.15; }
.lesson-row:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.lesson-names > span:not(.visually-hidden) { color: var(--muted); font-size: 1.15rem; }
.lesson-info { color: var(--muted); font-size: var(--step--1); text-align: right; }
.lesson-info span { display: block; }

/* ---------- home: how ---------- */
.how { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--wash); }
.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
}
.steps li { counter-increment: step; color: var(--muted); }
.steps li::before {
  content: counter(step); display: block; font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--red); margin-bottom: 0.6rem;
}
.steps strong { display: block; color: var(--ink); font-size: 1.25rem; margin-bottom: 0.25rem; }

/* ---------- home: book ---------- */
.book { background: var(--leaf); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.book a:not(.btn) { color: #fff; }
.book :focus-visible { outline-color: var(--lime); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.book p { max-width: 34em; font-size: 1.2rem; }
.book-title { font-size: var(--step-2) !important; font-style: italic; line-height: 1.15; }
.book .btn { margin-top: 0.75rem; }
.book-facts { list-style: none; margin: 0; padding: 0; align-self: center; }
.book-facts li { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); font-size: 1.15rem; }
.book-facts li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.book-facts strong { display: block; font-size: 1.4rem; color: var(--lime); }

/* ---------- footer ---------- */
.site-footer { padding-bottom: 2rem; }
.site-footer .stitch { margin-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; }
.footer-note { color: var(--muted); font-size: var(--step--1); }

/* ---------- lesson page ---------- */
.loading-page, .notfound { padding: 4rem 1.25rem; min-height: 40vh; }
.lesson-head { padding: 2rem 0 2.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }
.back-link::before { content: '‹ '; }
.lesson-meta { font-size: 1.2rem; font-weight: 700; color: var(--red); margin-bottom: 0.25rem; }
.lesson-meta span { color: var(--muted); font-weight: 400; margin-left: 1rem; }
.lesson-head h1 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.025em; margin-bottom: 0.15em; }
.lesson-sub { font-size: var(--step-1); color: var(--muted); font-style: italic; }
.lesson-intro { max-width: 36em; font-size: 1.2rem; }

.lesson-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.lesson-nav .wrap { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.lesson-nav a {
  flex: none; padding: 0.95rem 0.9rem; font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.lesson-nav a:hover { color: var(--leaf); border-bottom-color: var(--leaf); }

.block { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: 0; }

/* ---------- flashcards ---------- */
.deck { max-width: 38rem; }
.deck-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.75rem 1.5rem; margin-bottom: 1rem;
}
.segmented { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius-s); overflow: hidden; }
.seg {
  font: inherit; font-size: var(--step--1); font-weight: 700; padding: 0.4rem 0.8rem; min-height: 40px;
  border: 0; background: #fff; color: var(--ink); cursor: pointer;
}
.seg + .seg { border-left: 2px solid var(--ink); }
.seg[aria-pressed='true'] { background: var(--ink); color: #fff; }
.deck-status { display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; }
.deck-count { margin: 0; color: var(--muted); }

.card-stage { perspective: 1400px; }
.card {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: center;
  aspect-ratio: 3 / 2; min-height: 240px;
  border-radius: var(--radius-l);
}
.card:focus-visible { outline-offset: 6px; }
.card-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.card.is-flipped .card-inner { transform: rotateY(180deg); }
.card.no-anim .card-inner { transition: none; }
.face {
  position: absolute; inset: 0; border-radius: var(--radius-l);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 2rem 1.5rem; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face--front { background: #fff; border: 2px solid var(--ink); overflow: hidden; }
.face--front::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 28px;
  background-image: var(--stitch); background-size: auto 100%; background-repeat: repeat-x; background-position: center;
}
.face--back { background: var(--leaf); color: #fff; transform: rotateY(180deg); }
.face-word { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 700; line-height: 1.1; }
.face-hint { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.5rem; }
.face-note { font-style: italic; font-size: 1.15rem; opacity: 0.88; }

.deck-controls { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.deck-controls .btn { min-width: 9rem; }
.deck-extra { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.deck-help { text-align: center; color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }

.word-list { max-width: 38rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.word-list summary { padding: 1rem 0; font-weight: 700; cursor: pointer; color: var(--leaf); }
.word-list small { color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--step--1); color: var(--muted); border-bottom: 2px solid var(--ink); }
td[lang='uk'] { font-weight: 700; }

/* ---------- exercises ---------- */
.exercise {
  background: var(--wash); border-radius: var(--radius-m);
  padding: clamp(1.25rem, 4vw, 2.25rem); margin-bottom: 2rem; max-width: 52rem;
}
.exercise-head h3 { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.25rem; }
.ex-no { color: var(--red); }
.ex-no::after { content: '.'; }
.instructions { color: var(--muted); margin-bottom: 1.25rem; }

.items { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.items > .item {
  counter-increment: item; position: relative;
  padding: 0.9rem 1rem 0.9rem 2.6rem; margin-bottom: 0.35rem;
  background: #fff; border-radius: var(--radius-s); border-left: 4px solid transparent;
}
.items > .item::before {
  content: counter(item); position: absolute; left: 1rem; top: 0.95rem;
  font-weight: 700; color: var(--muted);
}
.item.is-right { border-left-color: var(--green); background: var(--green-soft); }
.item.is-wrong { border-left-color: var(--red); background: var(--red-soft); }

.sentence, .question { font-size: 1.3rem; margin: 0; line-height: 1.8; }
.question { font-size: 1.2rem; line-height: 1.45; margin-bottom: 0.6rem; }
.translation { color: var(--muted); font-style: italic; margin: 0.2rem 0 0; }
.hint { color: var(--muted); font-size: 1.05rem; margin-left: 0.5rem; }

.gap-input {
  font: inherit; font-weight: 700; color: var(--leaf-deep); text-align: center;
  border: 0; border-bottom: 2px solid var(--ink); background: transparent;
  padding: 0 0.2em; margin: 0 0.2em; min-width: 4ch; border-radius: 0;
}
.gap-input:focus { outline: none; border-bottom-color: var(--leaf); background: var(--leaf-soft); }

.slot {
  display: inline-block; min-width: 4.5ch; margin: 0 0.2em; padding: 0 0.3em;
  border-bottom: 2px dashed var(--muted); text-align: center; font-weight: 700;
}
.slot.is-filled { border-bottom-style: solid; border-bottom-color: var(--leaf); color: var(--leaf-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chip {
  font: inherit; font-size: 1.1rem; padding: 0.3rem 0.95rem; min-height: 40px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.options { display: grid; gap: 0.35rem; }
.option {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.7rem;
  border-radius: var(--radius-s); cursor: pointer; border: 1.5px solid transparent;
}
.option:hover { background: var(--wash); }
.option input { width: 1.2rem; height: 1.2rem; accent-color: var(--leaf); margin: 0; flex: none; }
.option.is-answer { border-color: var(--green); background: #fff; font-weight: 700; }

.match-board { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem clamp(0.75rem, 4vw, 3rem); }
.match-col { display: grid; gap: 0.5rem; align-content: start; }
.match-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 48px;
  font: inherit; font-size: 1.15rem; text-align: left; padding: 0.5rem 0.75rem;
  background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
}
.match-item:hover { border-color: var(--ink); }
.match-item .badge {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.95rem; font-weight: 700;
  border: 1.5px dashed var(--muted); color: var(--ink);
}
.match-col:first-child .badge { border-style: solid; }
.match-item.is-paired .badge { background: var(--ink); color: #fff; border-color: var(--ink); }
.match-item.is-selected { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 0 0 2px var(--sky); }
.match-item.is-right { border-color: var(--green); background: var(--green-soft); }
.match-item.is-wrong { border-color: var(--red); background: var(--red-soft); }

.order-line {
  display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 3.2rem; align-items: center;
  margin-top: 0.6rem; padding: 0.4rem 0; border-bottom: 2px solid var(--ink);
}
.order-line:empty::before { content: 'Your sentence appears here'; color: var(--muted); font-style: italic; }
.order-line .chip { background: var(--leaf-soft); border-color: var(--leaf); font-weight: 700; }
.order-bank { min-height: 2.6rem; }
.order-bank:empty { min-height: 0; margin: 0; }

.play {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 34px; height: 34px; margin-right: 0.5rem; border-radius: 50%;
  border: 0; background: var(--leaf); color: #fff; cursor: pointer;
}
.play:disabled { background: var(--line); cursor: not-allowed; }

.feedback { margin: 0.35rem 0 0; font-size: 1.05rem; }
.feedback:empty { display: none; }
.feedback--ok { color: var(--green); font-weight: 700; }
.feedback--fix { color: var(--red); }
.feedback--fix b { color: var(--ink); }
.match-board + .feedback { margin-top: 1rem; }

.exercise-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.result { flex-basis: 100%; display: flex; align-items: center; gap: 1rem; }
.result:empty { display: none; }
.result { padding: 0.9rem 1.1rem; border-radius: var(--radius-s); background: #fff; border: 2px solid currentColor; }
.result--pass { color: var(--green); }
.result--fail { color: var(--red); }
.score { font-size: 2rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.result-msg { color: var(--ink); }
.warn { background: var(--red-soft); padding: 1rem; border-radius: var(--radius-s); }

/* ---------- audio ---------- */
.audio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 46rem; }
.audio-list > li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.audio-list h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.audio-list audio { width: 100%; max-width: 32rem; }
.audio-list summary { cursor: pointer; color: var(--leaf); font-weight: 700; margin-top: 0.75rem; }
.transcript { white-space: pre-line; font-size: 1.25rem; margin-top: 0.5rem; padding-left: 1rem; border-left: 3px solid var(--red); }
.soon { color: var(--muted); font-style: italic; margin: 0; }

/* ---------- materials ---------- */
.material { max-width: 46rem; margin-bottom: 2.5rem; }
.material h3 { font-size: 1.4rem; }
.material--tip { padding: 1.25rem 1.5rem; border-left: 5px solid var(--lime); background: #f6f9e4; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.material--tip p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: var(--step--1); margin-top: 0.5rem; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-s); }

/* ---------- lesson pager ---------- */
.pager { border-top: 2px solid var(--ink); padding: 2rem 0 3rem; }
.pager .wrap { display: flex; justify-content: space-between; gap: 1rem; }
.pager-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding: 0.5rem 0; }
.pager-link span { color: var(--muted); font-size: var(--step--1); }
.pager-link strong { font-size: 1.5rem; }
.pager-link:hover strong { color: var(--leaf); text-decoration: underline; }
.pager-link--next { text-align: right; margin-left: auto; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero-grid, .book-grid, .footer-grid { grid-template-columns: 1fr; }
  .cover { width: 220px; justify-self: start; transform: rotate(1.5deg); }
  .cover-title { font-size: 1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --step-3: 2.1rem; }
  .site-header nav { gap: 1rem; }
  .lesson-row { grid-template-columns: 2.75rem minmax(0, 1fr); padding: 1rem 0.25rem; }
  .lesson-num { font-size: 1.9rem; }
  .lesson-info { grid-column: 2; text-align: left; }
  .lesson-info span { display: inline; margin-left: 0.4em; }
  .lesson-info span::before { content: '/ '; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .cover--paper { width: 170px; }
  .items > .item { padding-left: 2.2rem; padding-right: 0.75rem; }
  .items > .item::before { left: 0.75rem; }
  .sentence { font-size: 1.2rem; }
  .match-item { font-size: 1.05rem; padding: 0.45rem 0.5rem; gap: 0.4rem; }
  .deck-controls { gap: 0.75rem; }
  .deck-controls .btn { min-width: 0; }
  .lesson-meta span { display: block; margin-left: 0; }
  .score { font-size: 1.6rem; }
}

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

/* ---------- lesson builder (admin.html) ---------- */
.wrap--wide { max-width: none; padding: 0 1.5rem; }
.admin-brand { display: flex; align-items: baseline; gap: 0.9rem; }
.admin-brand > span { color: var(--muted); font-size: 1.15rem; }

.builder {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; min-height: calc(100vh - 4rem);
}
.editor { padding: 1.75rem 1.5rem 0; min-width: 0; }
.preview {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--wash); border-left: 1px solid var(--line); padding: 1.75rem 1.5rem 4rem;
}
.preview-head { padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.preview-head h2 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.preview-head p { color: var(--muted); margin: 0; }
.preview-body { background: #fff; border-radius: var(--radius-m); padding: 1.5rem clamp(1rem, 3vw, 2rem); }
.preview-body h1 { font-size: var(--step-3); }
.preview-body .block { padding: 2rem 0; }
.preview-body .exercise { background: var(--wash); }

.editor-top { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.draft-note { margin: 0; padding: 0.5rem 0.9rem; background: #f6f9e4; border-left: 4px solid var(--lime); }

#lesson-form fieldset { border: 0; padding: 0; margin: 0 0 2.75rem; min-width: 0; }
#lesson-form legend {
  font-size: var(--step-2); font-weight: 700; line-height: 1.1; padding: 0;
  margin-bottom: 1rem; width: 100%; border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem;
}
.field { margin-bottom: 1rem; flex: 1 1 14rem; min-width: 0; }
.field--narrow { flex: 0 1 11rem; }
.field--inline { margin: 0; display: flex; align-items: center; gap: 0.6rem; flex: 0 1 auto; }
.field-label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.field--inline .field-label { margin: 0; }
.field-help { color: var(--muted); font-size: var(--step--1); margin: 0 0 0.4rem; max-width: 46em; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.editor input[type='text'], .editor textarea, .editor select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 0.5rem 0.7rem; background: #fff;
  border: 1.5px solid #b7c0a6; border-radius: var(--radius-s);
}
.editor select { width: auto; max-width: 100%; padding-right: 2rem; }
.editor textarea { line-height: 1.5; resize: vertical; }
.editor input::placeholder, .editor textarea::placeholder { color: #858c7a; }
.editor input:focus, .editor textarea:focus, .editor select:focus {
  outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft);
}

.ed-card { background: var(--wash); border-radius: var(--radius-m); padding: 1.1rem 1.2rem 0.4rem; margin-bottom: 1rem; }
.ed-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.ed-card-head h3 { font-size: 1.25rem; margin: 0; }
.ed-tools { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.ed-foot { margin: -0.4rem 0 0.9rem; }
.small-btn {
  font: inherit; font-size: 0.98rem; font-weight: 700; line-height: 1.2;
  padding: 0.4rem 0.75rem; min-height: 36px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius-s);
}
.small-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.small-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.small-btn--danger { border-color: var(--red); color: var(--red); }
.small-btn--danger:hover:not(:disabled) { background: var(--red); color: #fff; }
.add-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.add-label { font-weight: 700; margin-right: 0.25rem; }
.empty { color: var(--muted); font-style: italic; }

.save-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.25rem;
  margin: 0 -1.5rem; padding: 1rem 1.5rem;
  background: #fff; border-top: 2px solid var(--ink);
}
.save-info { flex: 1 1 18rem; min-width: 0; }
.save-info p { margin: 0; }
.save-file { font-size: 1.05rem; }
.save-folder { color: var(--muted); }
.save-ok { color: var(--green); font-weight: 700; }
.problems { color: var(--red); max-height: 9rem; overflow-y: auto; }
.problems summary { font-weight: 700; cursor: pointer; }
.problems ul { margin: 0.3rem 0 0; padding-left: 1.2rem; color: var(--ink); font-size: var(--step--1); }
.save-status { margin-top: 0.5rem !important; padding: 0.6rem 0.8rem; border-radius: var(--radius-s); }
.save-status--ok { color: var(--ink); background: var(--green-soft); border-left: 4px solid var(--green); }
.save-status--error { background: var(--red-soft); border-left: 4px solid var(--red); }
.save-status--error { color: var(--red); font-weight: 700; }
.save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.code-peek { flex-basis: 100%; }
.save-howto { flex-basis: 100%; margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 40em; }
.code-peek summary { cursor: pointer; color: var(--leaf); font-size: var(--step--1); }
.code-peek pre {
  max-height: 16rem; overflow: auto; margin: 0.4rem 0 0; padding: 0.75rem;
  background: var(--wash); border-radius: var(--radius-s); font-size: 0.85rem; white-space: pre-wrap;
}

@media (max-width: 1000px) {
  .builder { grid-template-columns: 1fr; }
  .preview { position: static; height: auto; border-left: 0; border-top: 2px solid var(--ink); }
}
@media (max-width: 560px) {
  .editor, .preview { padding-left: 1rem; padding-right: 1rem; }
  .save-bar { margin: 0 -1rem; padding: 0.8rem 1rem; }
  .admin-brand > span { display: none; }
}

/* ---------- lessons with parts ---------- */
.wrap--lesson { max-width: 80rem; }
.lesson-body {
  display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start; padding-top: 2.5rem; padding-bottom: 3rem;
}

/* list of parts: sidebar on wide screens */
.parts { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.parts-title { color: var(--muted); font-size: var(--step--1); margin: 0 0 0.5rem; }
.parts ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.part-link {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.25rem;
  padding: 0.6rem 0.75rem 0.6rem 0.75rem; margin-left: -2px;
  border-left: 3px solid transparent; color: var(--ink); text-decoration: none;
}
.part-link:hover { background: var(--wash); color: var(--ink); }
.part-link[aria-current] { border-left-color: var(--red); background: var(--wash); }
.part-link[aria-current] strong { color: var(--ink); }
.part-link-no { font-weight: 700; color: var(--red); padding-top: 0.1rem; }
.part-link--extra .part-link-no::before {
  content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin: 0.35rem 0 0 0.2rem;
  background: var(--leaf); transform: rotate(45deg);
}
.part-link-text strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.part-link-text span { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.25; margin-top: 0.1rem; }

/* the open part */
.part-panel:focus { outline: none; }
.part-head { margin-bottom: 2.25rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--ink); }
.part-no { color: var(--red); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.15rem; }
.part-head h2 { font-size: var(--step-3); margin-bottom: 0.05em; }
.part-en { font-style: italic; color: var(--muted); font-size: 1.35rem; margin: 0 0 0.4rem; }
.part-count { color: var(--muted); margin: 0; }
.part-intro { max-width: 40em; margin: 0.9rem 0 0; font-size: 1.15rem; }
.part-block { margin-bottom: 3.25rem; }
.block-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.75rem 1.5rem; margin-bottom: 1.25rem;
}
.block-head h3 { font-size: var(--step-2); margin: 0; }
.block-note { margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 28em; }
.part-block > h3 { font-size: var(--step-2); }

/* two decks side by side */
.decks { display: grid; gap: 2rem; margin-bottom: 0.5rem; }
.decks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deck--compact { max-width: none; }
.deck-title h4 { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.4rem; margin: 0; }
.deck-total {
  font-size: 0.95rem; font-weight: 700; color: var(--muted);
  background: var(--wash); border-radius: 999px; padding: 0.05rem 0.6rem;
}
.deck-title p { margin: 0.1rem 0 0.4rem; color: var(--muted); font-size: var(--step--1); }
.deck--compact .deck-top { justify-content: flex-end; margin-bottom: 0.5rem; }
.deck--compact .card { aspect-ratio: 4 / 3; min-height: 220px; }
.deck--compact .face { padding: 1.5rem 1.1rem 2.5rem; }
.deck--compact .face-word { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.deck--compact .face-hint { margin-bottom: 0.5rem; }
.deck--compact .deck-controls { margin-top: 1rem; gap: 0.9rem; }
.deck--compact .deck-controls .btn { min-width: 6.5rem; }
.deck--compact .deck-extra { margin-top: 0.7rem; }
.deck--compact .deck-help { display: none; }
.deck--optional .face--front { border-color: #a3ab92; border-style: dashed; }
.deck--optional .face--front::after { opacity: 0.45; }
.deck--optional .face--back { background: var(--ink); }
.face-details { display: flex; flex-direction: column; gap: 0.15rem; font-size: 1rem; line-height: 1.35; opacity: 0.92; }

.word-list { max-width: none; }
.word-group th { background: var(--wash); color: var(--ink); font-size: 1rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.word-notes { color: var(--muted); font-size: 0.95rem; }

/* exercise extras */
.review-tag {
  display: inline-block; margin-left: 0.5rem; padding: 0 0.5rem; vertical-align: middle;
  font-size: 0.8rem; font-weight: 700; line-height: 1.6; white-space: nowrap;
  color: var(--leaf-deep); background: var(--leaf-soft); border-radius: 999px;
}
.prompt { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.2rem; }
.prompt + .sentence { line-height: 1.5; }
.match-item .review-tag { margin-left: auto; }
.order-line--letters { gap: 0.35rem; }
.order-line--letters .chip, .order-line--letters + .order-bank .chip { min-width: 2.6rem; padding-left: 0.6rem; padding-right: 0.6rem; }

.part-pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.part-pager-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding: 0.4rem 0; }
.part-pager-link span { color: var(--muted); font-size: var(--step--1); }
.part-pager-link strong { font-size: 1.3rem; }
.part-pager-link:hover strong { color: var(--leaf); text-decoration: underline; }
.part-pager-link--next { text-align: right; margin-left: auto; }

/* home: lesson list with parts */
.lesson-names > .lesson-parts { display: block; color: var(--muted); font-size: 0.98rem; line-height: 1.5; margin-top: 0.35rem; max-width: 48em; }
.lesson-parts > span { display: inline; }
.lesson-parts > span + span::before {
  content: ''; display: inline-block; width: 0.32em; height: 0.32em; margin: 0 0.55em 0.18em;
  background: var(--red); opacity: 0.7; transform: rotate(45deg); vertical-align: middle;
}
.lesson-row--intro .lesson-num::before {
  content: ''; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 0.15em;
  background: var(--red); transform: rotate(45deg) translateY(-0.1em);
}

@media (max-width: 1000px) {
  .lesson-body { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 0; }
  .parts, .part-panel { min-width: 0; }
  .parts {
    position: sticky; top: 0; z-index: 10; max-height: none; overflow: visible;
    margin: 0 -1.25rem; padding: 0 1.25rem; background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
  }
  .parts-title { display: none; }
  .parts ol { display: flex; gap: 0.25rem; overflow-x: auto; border-left: 0; scrollbar-width: none; }
  .parts li { flex: none; }
  .part-link {
    grid-template-columns: auto auto; gap: 0.4rem; align-items: baseline;
    margin: 0; padding: 0.85rem 0.7rem 0.7rem; border-left: 0; border-bottom: 3px solid transparent;
  }
  .part-link[aria-current] { border-bottom-color: var(--red); background: transparent; }
  .part-link-text strong { font-size: 1.05rem; white-space: nowrap; }
  .part-link-text span { display: none; }
  .part-link--extra .part-link-no::before { margin-top: 0; }
  .part-head { margin-top: 1rem; }
}
@media (max-width: 720px) {
  .decks--two { grid-template-columns: minmax(0, 1fr); }
  .deck--compact .card { aspect-ratio: 3 / 2; }
}
.locked-note { background: var(--wash); border-left: 5px solid var(--lime); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius-m) var(--radius-m) 0; margin-bottom: 2rem; }
.locked-note h2 { font-size: var(--step-1); }
.locked-note code { background: #fff; padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.95em; }

/* ---------- landing page ---------- */
/* hero: an embroidered apple on a real, flippable word card */
.hero-art { justify-self: center; width: min(100%, 360px); }
.hero-card { aspect-ratio: 4 / 5; min-height: 0; }
.hero-face.face--front {
  gap: 0.35rem; padding: 1.25rem 1.25rem 1.5rem;
  background-color: #fff;
  background-image: radial-gradient(circle, #d3dbc0 0.9px, transparent 1.1px);
  background-size: 12px 12px; background-position: 6px 6px;
}
.hero-face.face--front::after { display: none; }
.apple-art { display: block; width: 78%; aspect-ratio: 1; }
.hero-word { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.hero-card .face-hint { margin: 0.2rem 0 0; }
.hero-card .face--back .face-word { font-size: clamp(2.8rem, 6vw, 3.6rem); }
.hero-back-note { max-width: 14em; font-size: 1.15rem; line-height: 1.4; opacity: 0.92; }
.hero-caption { margin: 1rem 0 0; text-align: center; color: var(--muted); }
.hero-caption b { color: var(--ink); }
.stitch-row { animation: stitch-in 0.32s ease-out both; }
@keyframes stitch-in { from { opacity: 0; } to { opacity: 1; } }
.hero .lede-small { margin-top: 1rem; }

/* how to study: heading beside the four steps */
.how { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.how-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.how-grid h2 { font-size: var(--step-2); margin: 0; }
.how .steps { gap: 1.75rem; }
.how .steps li::before { font-size: 2rem; }

/* lessons: a two-column table of contents, the introduction across the top */
.lesson-list--toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.lesson-list--toc > li:first-child { grid-column: 1 / -1; }
.lesson-list--toc .lesson-row { height: 100%; grid-template-columns: 3.25rem minmax(0, 1fr) auto; padding: 1.2rem 0.6rem; }
.lesson-list--toc .lesson-row--intro { background: var(--wash); border-bottom-color: transparent; margin: 0.75rem 0; border-radius: var(--radius-m); padding: 1.2rem 1rem; }
.lesson-list--toc .lesson-row--intro:hover { background: var(--leaf-soft); }
.lesson-list--toc .lesson-names strong { font-size: 1.5rem; }

/* the book: cover, text and facts */
.book-grid { grid-template-columns: 15rem minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.cover--paper {
  justify-self: start; width: 100%; max-width: 15rem;
  background: #fff; color: var(--ink);
  box-shadow: inset 10px 0 0 rgba(30, 31, 38, 0.08), 16px 18px 0 var(--leaf-deep);
  transform: rotate(-2.5deg);
}
.cover--paper .cover-band { background-image: var(--stitch); }
.cover--paper .cover-sub { color: var(--muted); opacity: 1; }
.cover--paper .cover-title { font-size: 1.7rem; }

@media (max-width: 1000px) {
  .how-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .book-grid .cover--paper { grid-column: 1 / -1; width: 190px; }
}
@media (max-width: 860px) {
  .lesson-list--toc { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: start; width: min(100%, 300px); }
}
@media (max-width: 640px) {
  .book-grid { grid-template-columns: 1fr; }
}
.book-byline { font-size: 1.15rem !important; opacity: 0.9; margin-top: -0.6rem; }
.cover-title { font-size: 2.1rem; }
.cover--paper .cover-title { font-size: 2.3rem; }
.cover-publisher { position: absolute; top: 1.1rem; right: 1.2rem; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--leaf); }

/* ---------- landing page, in the colours of the cover ---------- */
.hero { background: linear-gradient(180deg, #d3e4e1 0%, #e8f1e1 36%, #eef3cd 72%, #ffffff 100%); }

/* the acrostic from the cover: ЯБЛУКО, and the words hanging from its letters */
.acrostic { margin: 0 0 1.4rem; }
.acro { display: flex; align-items: flex-start; gap: clamp(0.05rem, 0.5vw, 0.4rem); }
.acro-col { display: flex; flex-direction: column; align-items: center; }
.acro-cap {
  position: relative; font-size: clamp(3.3rem, 8.2vw, 6.6rem); font-weight: 700; line-height: 0.92;
  color: var(--leaf-deep);
  background: linear-gradient(165deg, #6b8f22 0%, #3a530b 55%, #2a3c07 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.acro-down {
  writing-mode: vertical-lr; text-orientation: upright;
  font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1; letter-spacing: -0.12em;
  color: var(--muted); margin-top: 0.3rem;
}
.acro-leaf {
  position: absolute; top: -0.12em; right: -0.3em; width: 0.38em; height: 0.38em;
  fill: var(--leaf); -webkit-text-fill-color: initial;
}
.acro-gloss { color: var(--muted); font-style: italic; margin: 0 0 0.9rem; font-size: 1.15rem; }
.acro-gloss span { color: var(--ink); font-style: normal; font-weight: 700; }
.hero .lede { max-width: 30em; }

/* the book: the real cover on deep leaf green */
.book { background: linear-gradient(160deg, #3a530b 0%, #4d6f10 100%); }
.book-cover {
  justify-self: start; width: 100%; max-width: 15.5rem; height: auto;
  border-radius: 3px 8px 8px 3px; transform: rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 16px 18px 0 rgba(20, 30, 4, 0.35);
}
.book-facts li span { display: block; }
.book .btn--light { color: var(--leaf-deep); }
.book .btn--light:hover { background: var(--lime); color: var(--ink); }

@media (max-width: 1000px) {
  .book-grid .book-cover { grid-column: 1 / -1; width: 200px; }
}
@media (max-width: 560px) {
  .acro-cap { font-size: clamp(2.9rem, 14vw, 3.6rem); }
  .acro-down { font-size: 1rem; }
}

/* phones: the word card sits beside the ЯБЛУКО acrostic instead of below the text */
@media (max-width: 560px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 7.4rem; column-gap: 0.75rem; row-gap: 0; align-items: start; }
  .hero-text { display: contents; }
  .hero-text > * { grid-column: 1 / -1; }
  .hero-text > .acrostic { grid-column: 1; grid-row: 1; align-self: center; }
  .hero-art { grid-column: 2; grid-row: 1; width: 100%; justify-self: end; margin-bottom: 1.4rem; }
  .acro-cap { font-size: clamp(2rem, 11.5vw, 3rem); }
  .acro-down { font-size: 0.8rem; }
  .hero-card, .hero-card .face { border-radius: var(--radius-m); }
  .hero-face.face--front { padding: 0.45rem 0.35rem 0.55rem; gap: 0.1rem; background-size: 8px 8px; background-position: 4px 4px; }
  .hero-word { font-size: 1.15rem; }
  .hero-card .face-hint { font-size: 0.7rem; margin: 0; }
  .hero-card .face--back { padding: 0.5rem; }
  .hero-card .face--back .face-word { font-size: 1.5rem; }
  .hero-back-note { display: none; }
  .hero-caption { font-size: 0.8rem; margin-top: 0.4rem; line-height: 1.3; }
}

/* Lesson pages are filled in by script after they load. Keep the footer below the first screen
   from the start, so it doesn't jump down when the lesson appears (a layout shift). */
.main--app { min-height: 100vh; min-height: 100svh; }

/* loading spinner: a ring of eight cross-stitches, each lighting up in turn like a needle going round */
.spinner { display: flex; justify-content: center; align-items: center; padding: 1.5rem 0;
  animation: spinner-in 0.12s ease-out; }
.spinner--page { min-height: 40vh; }
.spinner-hoop { width: 4rem; height: 4rem; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.spinner-hoop path {
  stroke: var(--leaf); opacity: 0.18;
  animation: stitch-pulse 1s linear infinite;
  animation-delay: calc(var(--i) * 0.125s - 1s);
}
@keyframes stitch-pulse {
  0% { stroke: var(--red); opacity: 1; }
  25% { stroke: var(--leaf); opacity: 0.85; }
  100% { stroke: var(--leaf); opacity: 0.18; }
}
@keyframes spinner-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .spinner-hoop path { animation-duration: 2.4s; animation-delay: calc(var(--i) * 0.3s - 2.4s); }
}
.lesson-list .loading { list-style: none; }

/* shown over the page you are leaving, from the moment a link is tapped until the next page appears */
.nav-loading {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.72); animation: spinner-in 0.12s ease-out;
}
.nav-loading .spinner { padding: 0.9rem; background: #fff; border-radius: 50%; box-shadow: 0 2px 14px rgba(35, 42, 23, 0.14); }
