/* ICTC landing — visual system derived from the organisation's own mark:
   teal hands, laurel green, gold stars, rose + blue figures on a black ring.
   Canvas is warm paper; ink is near-black with a green cast. */

/* Self-hosted variable fonts (latin subset, woff2) — no third-party font CDN. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --ink: #10201e;
  --ink-soft: #2a3a37;
  --muted: #55655f;

  /* brand */
  --teal: #0b6b63;          /* action fill — white label */
  --teal-deep: #084b46;
  --teal-bright: #17a398;
  --gold: #e0a526;
  --gold-soft: #f6e3b6;
  --rose: #c94f72;
  --blue: #2e6fb7;
  --laurel: #4a7c59;

  /* structure */
  --line: rgba(16, 32, 30, 0.12);
  --line-strong: #6f736e;      /* 3:1+ against both paper and white — control boundaries */
  --hairline: rgba(16, 32, 30, 0.14); /* decorative separators, exempt from 1.4.11 */
  --shadow-sm: 0 1px 2px rgba(16, 32, 30, 0.06), 0 4px 14px rgba(16, 32, 30, 0.05);
  --shadow-lg: 0 18px 60px rgba(16, 32, 30, 0.14);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.1vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Fraunces, ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  row-gap: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-height: 44px;
  margin-right: auto;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-name span {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 107, 99, 0.24);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 75, 70, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--paper-2);
  transform: translateY(-2px);
}
.btn svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 5rem);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal-bright) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal-bright) 26%, transparent);
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.hero h1 {
  font-size: var(--step-4);
  margin-top: 1.3rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal-deep);
}
.hero-lede {
  margin-top: 1.2rem;
  max-width: 34ch;
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.fact dt {
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}
.fact dd {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 320px;
}
#hero-canvas,
#heart-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the mark draws its own ring — no decorative pseudo-elements here */

/* ---------- marquee ---------- */

.band {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 0.95rem;
  overflow: hidden;
}
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 38s linear infinite;
  will-change: transform;
}
.marquee-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding-right: 3rem;
}
.marquee span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee b { color: var(--ink); font-weight: 600; }
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 62ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: none;
  align-items: end;
}

/* ---------- course cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--teal-bright), var(--gold));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--teal) 26%, transparent);
}
.card:hover::before,
.card:focus-within::before { opacity: 1; }

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal-bright) 12%, transparent);
  color: var(--teal-deep);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card-tag {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.card--short {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.card--short h3 { color: var(--paper); }
.card--short p { color: rgba(251, 248, 243, 0.72); }
.card--short .card-icon {
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--gold);
}
.card--short .card-tag { color: var(--gold); }

/* ---------- included ---------- */

.included {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  margin-top: 2.6rem;
}
.included h2 { font-size: var(--step-2); color: var(--paper); }
.included > p {
  margin-top: 0.85rem;
  color: rgba(251, 248, 243, 0.68);
  max-width: 56ch;
}
.included-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem 1.4rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.included-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding-block: 0.4rem;
  border-bottom: 1px solid rgba(251, 248, 243, 0.1);
  font-size: 0.95rem;
  color: rgba(251, 248, 243, 0.9);
}
.included-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--teal-bright);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.7rem;
  margin-top: 2.6rem;
}
.shot {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--paper-2);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.shot:hover img,
.shot:focus-visible img { transform: scale(1.05); }
.shot span {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(16, 32, 30, 0.62);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; aspect-ratio: 3 / 4; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(9, 16, 15, 0.86);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-out);
}
.lightbox[data-open="true"] img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: clamp(0.8rem, 3vw, 1.6rem);
  right: clamp(0.8rem, 3vw, 1.6rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(251, 248, 243, 0.28);
  background: rgba(251, 248, 243, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, #fff 60%, transparent);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-deep);
  display: block;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 1.1rem; }
.step p { margin-top: 0.5rem; color: var(--muted); font-size: 0.94rem; }

/* ---------- faq ---------- */

.faq { margin-top: 2.4rem; border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding-block: 0.35rem;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding-block: 0.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal-deep);
  transition: transform 0.4s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 1.1rem;
  color: var(--muted);
  max-width: 68ch;
  animation: fade 0.4s var(--ease) both;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- closing cta ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(2.2rem, 6vw, 4rem);
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(23, 163, 152, 0.5) 0%, transparent 55%),
    radial-gradient(120% 140% at 90% 90%, rgba(224, 165, 38, 0.42) 0%, transparent 55%),
    var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta h2 { font-size: var(--step-3); color: var(--paper); }
.cta p {
  margin: 1rem auto 0;
  max-width: 52ch;
  color: rgba(251, 248, 243, 0.78);
  font-size: var(--step-1);
}
.cta .hero-actions { justify-content: center; margin-top: 1.9rem; }
.cta .btn-ghost { color: var(--paper); border-color: rgba(251, 248, 243, 0.4); }
.cta .btn-ghost:hover { background: rgba(251, 248, 243, 0.1); }
.cta .btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px rgba(224, 165, 38, 0.28); }
.cta .btn-primary:hover { background: #f0b73a; color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.footer-grid h4 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-grid ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-grid li { font-size: 0.93rem; color: var(--ink-soft); }
.footer-grid a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-grid a:hover { color: var(--teal-deep); text-decoration: underline; }
.footer-note {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
.todo {
  font-weight: 600;
  color: var(--rose);
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
[data-reveal][data-in="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot--tall { grid-row: span 1; aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .hero { padding-block: 1.6rem 1.4rem; }
  .hero-visual { max-width: 300px; min-height: 260px; margin-bottom: 0.6rem; }
  .hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.7rem); }
  .hero-lede { font-size: 1.02rem; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .brand-name { font-size: 0.95rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { gap: 1.2rem 1.8rem; }
  .included-list { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .shot--wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  [data-reveal] { transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee { animation: none; }
}

/* ---------- the mark: legend, rail, caption ---------- */

.mark {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.1rem;
}
.mark__say { max-width: 62ch; color: var(--muted); font-size: 0.96rem; }
.mark__say strong { color: var(--ink); font-weight: 600; }

.mark__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mark__legend button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
    background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.mark__legend button:hover,
.mark__legend button:focus-visible,
.mark__legend button[data-active="true"] {
  border-color: var(--gold);
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  transform: translateY(-2px);
}
.mark__legend i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 70%, transparent);
}

.mark__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.mark__rail button {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mark__rail button:hover,
.mark__rail button:focus-visible { color: var(--ink); border-color: var(--line-strong); }
.mark__rail button[aria-pressed="true"] {
  color: var(--teal-deep);
  border-color: color-mix(in srgb, var(--teal) 35%, transparent);
}
.mark__hint { margin-left: auto; font-size: 0.78rem; color: var(--muted); }

@media (max-width: 640px) {
  .mark__hint { margin-left: 0; }
}
