/* Hark's design tokens and component styles. Each component's rules follow its @component comment. style-gates: data */

/* @component foundations */
:root {
  color-scheme: light dark;

  --text-primary: light-dark(#1d1d1f, #f5f5f7);         /* body text */
  --text-secondary: light-dark(#636366, #a1a1a6);       /* supporting grey text */
  --text-tertiary: light-dark(#1d1d1f4d, #f5f5f74d);    /* hollow dots, faint marks; never body text */
  --text-primary-on: light-dark(#f5f5f7, #1d1d1f);      /* text on --fill-primary */
  --text-secondary-on: light-dark(#aeaeb2, #5c5c60);    /* grey text on --fill-primary */
  --fill-primary: light-dark(#1d1d1f, #f5f5f7);         /* the strong fill: solid chips, the nav, the badge */
  --fill-primary-on: light-dark(#f5f5f7, #1d1d1f);      /* the page background */
  --fill-secondary: light-dark(#1d1d1f80, #f5f5f780);
  --fill-tertiary: light-dark(#e8e8ea, #2a2a2d);        /* the grey card, panel and row tint */
  --fill-segment: light-dark(#3a3a3c, #e2e2e4);         /* the nav's tab track */
  --fill-system-green: #00a665;                         /* status: done, ready */
  --fill-system-orange: #ff4d00;                        /* status: now, current */
  --fill-system-red: light-dark(#da2f35, #f1555b);      /* status: blocked, error */
  --transparent-primary: light-dark(#1d1d1f4d, #f5f5f74d);
  --stroke-primary: light-dark(#1d1d1f24, #f5f5f724);   /* strong hairline */
  --stroke-secondary: light-dark(#1d1d1f12, #f5f5f712); /* faint hairline between rows */
  --stroke-primary-on: light-dark(#f5f5f71a, #1d1d1f1a);
  --stroke-composer: light-dark(#f5f5f780, #1d1d1f80);  /* the callout's glass edge */
  --stroke-system-orange: #ff4d0026;
  --hover-wash: light-dark(#1d1d1f0d, #f5f5f70d);
  --hover-wash-primary-on: light-dark(#f9f9fa26, #1d1d1f14);

  /* The hero is light text over a dark photo in both themes. */
  --hero-surface: #161f39;
  --hero-text: #f5f5f7;
  --hero-text-muted: #f5f5f7cc;
  --hero-scrim-strong: rgb(22 31 57 / 0.78);
  --hero-scrim-soft: rgb(22 31 57 / 0.3);
  --hero-scrim-side: rgb(22 31 57 / 0.45);
  --hero-glass: rgb(22 31 57 / 0.42);
  --hero-glass-faint: rgb(22 31 57 / 0.35);
  --hero-glass-stroke: rgb(245 245 247 / 0.28);

  --mat-regular: light-dark(rgb(255 255 255 / 0.56), rgb(29 29 31 / 0.55));
  --mat-thin: light-dark(rgb(255 255 255 / 0.22), rgb(29 29 31 / 0.4));
  --mat-agent: light-dark(rgb(255 255 255 / 0.84), rgb(29 29 31 / 0.66));
  --mat-inverse: color-mix(in srgb, var(--fill-primary) 86%, transparent);  /* the nav: dark on light, light on dark */
  --hark-blur: blur(50px) saturate(1.6);
  --hark-shadow: 0 8px 40px #1d1d1f1f;

  --sans: "GT Standard", "GT Standard L", "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --lh: 1.3;                                            /* every text style is 130% */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --size-caption: 12px;                                 /* the smallest text allowed */
  --size-meta: 13px;
  --size-small: 14px;
  --size-body: 15px;
  --size-prose: 16px;
  --size-heading: 20px;
  --size-figure: clamp(24px, 3vw, 32px);
  --size-title: clamp(26px, 3vw, 32px);
  --size-display: clamp(34px, 5vw, 48px);
  --size-lede: clamp(16px, 1.7vw, 20px);

  --type-caption: var(--weight-regular) var(--size-caption)/var(--lh) var(--sans);
  --type-tag: var(--weight-medium) var(--size-caption)/var(--lh) var(--sans);
  --type-small: var(--weight-regular) var(--size-small)/var(--lh) var(--sans);
  --type-label: var(--weight-medium) var(--size-small)/var(--lh) var(--sans);
  --type-body: var(--weight-regular) var(--size-body)/var(--lh) var(--sans);
  --type-body-strong: var(--weight-medium) var(--size-body)/var(--lh) var(--sans);
  --type-heading: var(--weight-medium) var(--size-heading)/var(--lh) var(--sans);
  --type-lede: var(--weight-medium) var(--size-lede)/var(--lh) var(--sans);
  --type-figure: var(--weight-regular) var(--size-figure)/var(--lh) var(--sans);
  --type-title: var(--weight-regular) var(--size-title)/var(--lh) var(--sans);
  --type-display: var(--weight-medium) var(--size-display)/var(--lh) var(--sans);
  --type-numeral: var(--weight-regular) 48px/1 var(--sans);

  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 100px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-quick: 160ms;
  --dur-draw: 1400ms;

  --page-max: 1120px;
  --gutter: clamp(16px, 3vw, 32px);                     /* the page's side padding */
  --tap: 44px;                                          /* the smallest touch target */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fill-primary-on);
  color: var(--text-primary);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin-inline: 0; }
a { color: inherit; }
b, strong { font-weight: var(--weight-bold); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
small { font-size: max(var(--size-caption), 0.85em); }
.sub { color: var(--text-secondary); }

:focus-visible { outline: 2px solid var(--fill-primary); outline-offset: 3px; border-radius: 6px; }

/* @component page */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 12px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }

.glass {
  background: var(--mat-inverse);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  border: 1px solid var(--stroke-primary-on);
}
.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 20;
  justify-self: center;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-pill);
  box-shadow: var(--hark-shadow);
}
.nav :focus-visible { outline-color: var(--fill-primary-on); }
.seg {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--r-pill);
  background: var(--fill-segment);
}
.seg::-webkit-scrollbar { display: none; }
.seg a {
  flex: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font: var(--type-label);
  color: var(--text-secondary-on);
  text-decoration: none;
  white-space: nowrap;
}
.seg a:hover { color: var(--text-primary-on); }
/* The active tab carries its own fill so its text is measured against it. */
.seg a[aria-current="true"] { background: var(--fill-primary-on); color: var(--text-primary); }
.theme-btn {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hover-wash-primary-on);
  color: var(--text-primary-on);
  cursor: pointer;
}
.theme-btn:hover { box-shadow: inset 0 0 0 100px var(--hover-wash-primary-on); }
.theme-btn::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(to right, light-dark(currentColor, transparent) 50%, light-dark(transparent, currentColor) 50%); }
@media (max-width: 599px) {
  .seg a { display: flex; align-items: center; min-height: var(--tap); }
  .theme-btn { width: var(--tap); height: var(--tap); }
}

/* @component footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke-secondary);
  font-size: var(--size-small);
  color: var(--text-secondary);
}
.foot strong { color: var(--text-primary); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px; }
.foot nav a {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--text-primary);
  font: var(--type-tag);
  text-decoration: none;
}
.foot nav a:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-xl);
  background: var(--fill-primary);
  color: var(--text-primary-on);
  box-shadow: var(--hark-shadow);
  font: var(--weight-medium) var(--size-body)/1.1 var(--sans);
  text-decoration: none;
}
.badge:hover { box-shadow: var(--hark-shadow), inset 0 0 0 100px var(--hover-wash-primary-on); }
.hark-mark { display: inline-grid; place-items: center; }
.hark-mark svg { display: block; }
@media (max-width: 599px) {
  .foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
  .badge { min-height: var(--tap); }
}

/* @component chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  font: var(--type-tag);
  max-width: 100%;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  vertical-align: middle;
}
.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--text-tertiary);
}
.chip--solid { background: var(--fill-primary); color: var(--text-primary-on); }
.chip--solid::before { background: var(--fill-system-green); box-shadow: none; }
td .chip { white-space: nowrap; }
/* @component dot */
.dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font: var(--type-tag);
  color: var(--text-primary);
}
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fill-system-green); }
tbody th .dot { display: flex; width: fit-content; }
/* @component pill */
.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font: var(--type-tag);
  white-space: normal;
  vertical-align: 1px;
}
/* @component button, link and links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: var(--r-s);
  background: var(--fill-primary-on);
  color: var(--text-primary);
  border: 1px solid var(--stroke-primary);
  font: var(--type-tag);
  text-decoration: none;
  max-width: 100%;
  transition: box-shadow var(--dur-quick) ease;
}
.btn:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
.btn[target="_blank"]::after { content: "\2197"; font-size: 11px; color: var(--text-secondary); }
.link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--stroke-primary);
  text-underline-offset: 3px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.link:hover { text-decoration-color: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (pointer: coarse), (max-width: 599px) { .btn { min-height: var(--tap); padding-inline: 14px; } }
@media (max-width: 599px) {
  .link { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); margin: -13px 0; vertical-align: middle; }
}
/* @component text and fineprint */
.prose { display: grid; gap: 12px; max-width: 68ch; font-size: var(--size-prose); }
.fineprint { font-size: var(--size-small); color: var(--text-secondary); max-width: 70ch; }
/* @component hero */
.hero {
  position: relative;
  min-height: clamp(460px, 64vh, 660px);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--hero-text);
  isolation: isolate;
  box-shadow: var(--hark-shadow);
  background: var(--hero-surface);
}
/* Without a photo the hero is as tall as its copy, so the callout sits beside the copy instead of over it. */
.hero:not(:has(.hero__img)) { min-height: 0; background: var(--hero-surface) center / cover no-repeat; }
.hero:not(:has(.hero__img))::after { background: linear-gradient(to right, var(--hero-scrim-side) 0%, transparent 60%); }
@media (min-width: 761px) {
  .hero:not(:has(.hero__img)) > .callout { position: static; flex: none; align-self: flex-start; margin: clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) auto; }
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--hero-scrim-strong) 0%, var(--hero-scrim-soft) 42%, transparent 66%),
    linear-gradient(to right, var(--hero-scrim-side) 0%, transparent 60%);
}
.hero__copy {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
}
.hero__eyebrow {
  justify-self: start;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--hero-glass);
  border: 1px solid var(--hero-glass-stroke);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  font: var(--type-label);
}
.hero h1 { font: var(--type-display); letter-spacing: 0; }
.hero h1 em { font-style: normal; }
.hero__sub { font: var(--type-lede); max-width: 34ch; }
.hero__meta { font-size: var(--size-small); color: var(--hero-text-muted); }
.hero__credit {
  position: absolute;
  right: clamp(20px, 3vw, 32px);
  bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--hero-glass-faint);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  font: var(--type-caption);
  color: var(--hero-text-muted);
}
.hero > .callout {
  position: absolute;
  top: clamp(16px, 2.4vw, 24px);
  right: clamp(16px, 2.4vw, 24px);
  width: min(320px, calc(100% - 32px));
}
@media (max-width: 760px) {
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 0; }
  .hero__img { object-position: 22% 50%; }
  .hero__copy { padding-top: 260px; padding-bottom: 28px; }
  .hero:not(:has(.hero__img)) .hero__copy { padding-top: clamp(24px, 4vw, 48px); }
  .hero__credit { top: 16px; right: 16px; bottom: auto; }
  .hero > .callout { position: static; width: auto; margin: 0 12px 12px; }
}
/* @component callout */
.callout {
  max-width: 420px;
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-radius: var(--r-l);
  background: var(--mat-agent);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  border: 1px solid var(--stroke-composer);
  box-shadow: var(--hark-shadow);
  color: var(--text-primary);
  font-size: var(--size-small);
}
.callout__head { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: var(--weight-medium); }
.callout__head svg { color: var(--text-primary); }
.callout__lead { font-size: var(--size-body); }
.callout .fineprint { font-size: var(--size-caption); }
.callout .btn { justify-self: start; }
/* @component stats */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-top: 8px; }
.stat {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 4px;
  padding: 12px 24px;
  border-left: 1px solid var(--stroke-secondary);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__fig { font: var(--type-figure); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--size-small); color: var(--text-secondary); }
@media (max-width: 760px) {
  .stats { grid-auto-flow: row; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding-top: 0; }
  .stat { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; gap: 12px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--stroke-secondary); }
  .stat:first-child { border-top: 0; }
}
/* @component section */
.section {
  padding-block: clamp(40px, 6vw, 72px) clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--stroke-secondary);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 72px); /* Clears the sticky .nav: its top offset plus its tallest height, 56px. */
  min-width: 0;
}
.section > * + * { margin-top: clamp(20px, 2.4vw, 28px); }
.section > .head + * { margin-top: 0; }
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 10px 40px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.head__eyebrow { grid-column: 1 / -1; font: var(--type-label); color: var(--text-secondary); }
.head h2 { font: var(--type-title); }
.head__sub { justify-self: end; font-size: var(--size-body); color: var(--text-secondary); max-width: 44ch; text-align: right; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; } .head__sub { justify-self: start; text-align: left; } }
/* @component table */
.table-wrap { margin-inline: -12px; padding-inline: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: var(--type-small); font-variant-numeric: tabular-nums; }
caption { text-align: left; font: var(--type-caption); color: var(--text-secondary); padding: 0 0 10px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--stroke-secondary); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th {
  font: var(--type-tag);
  color: var(--text-secondary);
  border-bottom-color: var(--stroke-primary);
  padding-top: 0;
  padding-bottom: 8px;
  white-space: nowrap;
}
tbody th { font-weight: var(--weight-bold); }
tbody tr:last-child > * { border-bottom: 0; }
.rowhead { white-space: nowrap; }
td small, th small { display: block; font: var(--type-caption); color: var(--text-secondary); margin-top: 2px; }
td.num { font-weight: var(--weight-bold); white-space: nowrap; }
td.num small { white-space: normal; }
.muted { color: var(--text-secondary); }
tr.is-highlight > * { background: var(--fill-tertiary); }
tr.is-highlight > :first-child { box-shadow: -12px 0 var(--fill-tertiary); }
tr.is-highlight > :last-child { box-shadow: 12px 0 var(--fill-tertiary); }
.after-table { margin-top: 20px; padding-inline: 12px; }
@media (max-width: 599px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap caption { display: block; text-align: left; }
  .table-wrap tbody tr { padding: 12px 0; border-bottom: 1px solid var(--stroke-secondary); }
  .table-wrap tbody tr.is-highlight { margin-inline: -12px; padding-inline: 12px; background: var(--fill-tertiary); }
  .table-wrap tbody tr.is-highlight > * { background: none; box-shadow: none; }
  .table-wrap tbody tr > * { border-bottom: 0; padding: 2px 0; }
  .table-wrap tbody td.is-empty { display: none; }
  .table-wrap tbody td[data-label] { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); column-gap: 12px; }
  .table-wrap tbody td[data-label]::before { content: attr(data-label) " "; color: var(--text-secondary); font-size: var(--size-caption); }
  .rowhead { white-space: normal; }
}
/* @component compare */
.compare { margin-inline: -12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.compare table { table-layout: fixed; min-width: calc(var(--compare-cols, 3) * 200px); }
.compare th, .compare td { scroll-snap-align: start; padding-inline: 12px; }
.compare thead th { font: var(--type-body-strong); color: var(--text-primary); white-space: normal; padding-top: 0; padding-bottom: 14px; border-bottom-color: var(--stroke-secondary); }
/* On light tiles a white product backdrop blends into the grey. */
.compare__media { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; aspect-ratio: 4 / 3; max-height: 240px; margin: 0 0 12px; padding: 16px; border-radius: var(--r-m); background: var(--fill-tertiary); }
.compare__media img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.compare thead th > .chip { display: flex; width: fit-content; margin-top: 8px; }
.compare:has(.compare__media) thead th:not(:has(.compare__media))::before { content: ""; display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 240px; margin-bottom: 12px; border-radius: var(--r-m); background: var(--fill-tertiary); }
:root[data-theme="dark"] .compare__media img { mix-blend-mode: normal; border-radius: var(--r-s); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .compare__media img { mix-blend-mode: normal; border-radius: var(--r-s); } }
/* The header column shrinks to nothing on screen but stays in the table, so screen readers keep each value's row header. */
.js .compare tbody th[scope="row"], .js .compare thead td:first-child { width: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .compare td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 4px; font: var(--type-caption); color: var(--text-secondary); }
@media (max-width: 599px) { .compare table { min-width: calc(var(--compare-cols, 3) * 68vw); } }
/* @component steps */
.step {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(220px, 0.78fr);
  gap: 16px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.step > * { min-width: 0; }
.steps > .step:last-child { border-bottom: 0; }
.step p + p { margin-top: 8px; }
.step__num { font: var(--type-numeral); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.step__eyebrow { margin-top: 8px; font: var(--type-label); color: var(--text-secondary); }
.step h3 { font: var(--type-heading); margin-bottom: 12px; }
.step__pills { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.step__pills li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--stroke-primary);
  font-size: var(--size-meta);
  color: var(--text-secondary);
  max-width: 100%;
}
.step__pills b { color: var(--text-primary); font-weight: var(--weight-bold); }
.step__panel {
  align-self: start;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--fill-tertiary);
  font-size: var(--size-small);
}
.step__panel dt { font-size: var(--size-caption); color: var(--text-secondary); margin-bottom: 2px; }
.step__panel dd { margin: 0 0 12px; }
.step__panel dd:last-child { margin-bottom: 0; }
.step__panel .fineprint { display: block; margin-top: 6px; font-size: var(--size-caption); }
.step__panel .btn { margin-top: 8px; }
.step__figure { grid-column: 2 / span 2; margin: 0; }
.step__figure img { width: 100%; height: clamp(200px, 26vw, 320px); object-fit: cover; border-radius: var(--r-m); }
.step__figure figcaption { font-size: var(--size-caption); color: var(--text-secondary); padding-top: 10px; }
@media (min-width: 901px) {
  .step:not(:has(> .step__panel)) { grid-template-columns: 112px minmax(0, 1fr); }
  .step:not(:has(> .step__panel)) > .step__figure { grid-column: 2; }
}
@media (max-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step__figure { grid-column: 1; }
  .step__intro { display: flex; align-items: baseline; gap: 14px; }
  .step__num { font-size: 40px; }
  .step__eyebrow { margin-top: 0; }
}
/* @component checklist */
.checklist { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); column-gap: 20px; list-style: none; margin: 0; padding: 0; }
.checklist:not(:has(.checklist__note)) { grid-template-columns: minmax(0, 1fr) auto; }
.checklist > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 8px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.checklist > li:last-child { border-bottom: 0; }
.checklist__item { grid-column: 1; font-weight: var(--weight-bold); }
.checklist > li > .chip { grid-column: 2; justify-self: start; }
.checklist:not(:has(.checklist__note)) > li > .chip { justify-self: end; }
.checklist__item small { display: block; font-weight: var(--weight-regular); font-size: var(--size-caption); color: var(--text-secondary); margin-top: 2px; }
.checklist__note { grid-column: 3; font-size: var(--size-small); color: var(--text-secondary); }
.checklist > li.is-done .checklist__item { text-decoration: line-through; text-decoration-color: var(--text-tertiary); }
@media (max-width: 760px) {
  .checklist { grid-template-columns: minmax(0, 1fr) auto; }
  .checklist > li > .chip { justify-self: end; }
  .checklist__note { grid-column: 1 / -1; }
}
/* @component breakdown */
.breakdown { max-width: 720px; }
@media (min-width: 901px) { .section > .breakdown, .section > .aside { max-width: calc((100% - 40px) * 1.65 / 2.65); } }
.breakdown dl { margin: 0; }
.breakdown .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.breakdown dt { font-size: var(--size-body); }
.breakdown dt small { display: block; color: var(--text-secondary); font-size: var(--size-meta); margin-top: 2px; }
.breakdown dd { margin: 0; font-weight: var(--weight-bold); font-size: var(--size-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown .row--total {
  margin-top: -1px;
  padding: 18px 0 0;
  border-top: 1px solid var(--stroke-primary);
  border-bottom: 0;
  flex-wrap: wrap;
  align-items: baseline;
}
.breakdown .row--total dt { font: var(--type-body-strong); }
.breakdown .row--total dd { font: var(--type-figure); white-space: normal; }
.breakdown .fineprint { margin-top: 16px; }
/* @component pair */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pair:has(> :is(.callout, .aside):last-child) { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 40px; }
.pair > .callout { max-width: none; }
@media (max-width: 760px) { .pair, .pair:has(> :is(.callout, .aside):last-child) { grid-template-columns: minmax(0, 1fr); } }
/* @component timeline */
.timeline { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; column-gap: 28px; list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; }
.timeline > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 8px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.timeline > li:first-child { padding-top: 0; }
.timeline > li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline__when { display: flex; align-items: baseline; gap: 12px; font-weight: var(--weight-bold); }
.timeline__when::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-tertiary);
  transform: translateY(-1px);
}
.timeline > li.is-current .timeline__when::before { background: var(--fill-system-orange); box-shadow: 0 0 0 4px var(--stroke-system-orange); }
.timeline > li > p:has(> .chip:only-child) { justify-self: end; }
.timeline__what ul { margin: 0; padding-left: 18px; }
.timeline__what li { margin-bottom: 4px; }
.timeline__what li:last-child { margin-bottom: 0; }
.timeline__what p + p { margin-top: 6px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline > li > p:has(> .chip:only-child) { justify-self: start; }
  .timeline__what, .timeline > li > p:last-child { padding-left: 20px; }
}
/* @component cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > div { padding: 22px 24px; border-radius: var(--r-m); background: var(--fill-tertiary); }
.cards h3 { font: var(--type-heading); margin-bottom: 10px; }
.cards ul { margin: 0; padding: 0; list-style: none; }
.cards li { padding: 10px 0; border-bottom: 1px solid var(--stroke-secondary); }
.cards li:last-child { border-bottom: 0; padding-bottom: 0; }
.cards__media { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 4 / 3; max-height: 220px; margin: 0 0 14px; padding: 12px; border-radius: var(--r-s); background: var(--fill-primary-on); }
.cards__media img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
:root[data-theme="dark"] .cards__media img { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cards__media img { mix-blend-mode: normal; } }
.cards .quote { font: var(--type-heading); margin-bottom: 8px; text-wrap: balance; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); } }
/* @component aside */
.aside {
  max-width: 62ch;
  padding: 20px 22px;
  border: 1.5px dashed var(--stroke-primary);
  border-radius: var(--r-m);
}
.aside h3 { font: var(--type-heading); margin-bottom: 6px; }
/* @component chart */
.chart { margin-bottom: 8px; padding: 20px 20px 12px; border-radius: var(--r-m); background: var(--fill-tertiary); overflow-x: auto; }
.chart__cap { font-size: var(--size-caption); color: var(--text-secondary); margin-bottom: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.pf-grid { stroke: var(--stroke-primary); stroke-width: 1; }
.pf-line { stroke: var(--fill-primary); stroke-width: 2.4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pf-fill { fill: var(--fill-primary); opacity: 0.07; }
.pf-dot { fill: var(--fill-primary-on); stroke: var(--fill-primary); stroke-width: 2; }
.pf-alt { fill: var(--text-primary); font: var(--weight-bold) var(--size-body) var(--sans); text-anchor: middle; }
.pf-name { fill: var(--text-secondary); font: var(--weight-medium) var(--size-meta) var(--sans); text-anchor: middle; }
.pf-num { fill: var(--text-tertiary); font: var(--weight-medium) var(--size-meta) var(--sans); text-anchor: middle; }
.pf-axis { fill: var(--text-secondary); font: var(--weight-regular) var(--size-caption) var(--sans); }
.js .chart:not(.is-in) .pf-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js .chart.is-in .pf-line { stroke-dasharray: 1400; stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-draw) var(--ease-out) 120ms; }
@media (prefers-reduced-motion: reduce) { .js .chart .pf-line { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; } }
/* @component figure */
.band { margin-inline: 0; margin-bottom: 0; }
.band img { width: 100%; height: clamp(240px, 40vw, 520px); object-fit: cover; border-radius: var(--r-xl); }
.band figcaption { font-size: var(--size-caption); color: var(--text-secondary); padding: 10px 4px 0; }
.is-portrait img { width: auto; max-width: 100%; height: clamp(320px, 48vw, 560px); }

.hero:not(:has(.hero__img)) { background-image: url("/assets/redesign/img/img-bac6b050.webp"); }


      /* GDG Povești identity: a deliberate departure from the default design */
      :root {
        --x-cream: #fff9f0; --x-rose-100: #ffe4e6; --x-rose-200: #fecdd3; --x-rose-300: #fda4af;
        --x-rose-500: #f43f5e; --x-rose-600: #e11d48; --x-rose-700: #be123c; --x-rose-800: #9f1239; --x-rose-900: #881337;
        --x-pink: #ffe4e1; --x-ink: #3f2a33; --x-muted: #6e5560;
        --x-shadow: 0 6px 20px rgba(190, 18, 60, 0.10); --x-shadow-sm: 0 2px 10px rgba(190, 18, 60, 0.08);
        --x-head: "Baloo 2", "Nunito", system-ui, sans-serif; --x-body: "Nunito", system-ui, sans-serif;
      }
      html { scroll-behavior: auto; }
      body { background: var(--x-cream); color: var(--x-ink); font: 400 17px/1.55 var(--x-body); transition: background-color .35s ease; }
      body.x-lock { overflow: hidden; }
      .x-app { margin: -12px calc(-1 * var(--gutter)) -40px; min-height: 100vh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
      .x-app h1, .x-app h2, .x-app h3 { font-family: var(--x-head); font-weight: 700; line-height: 1.15; color: var(--x-rose-900); }
      .x-app a { color: inherit; }
      .x-app button { font-family: var(--x-body); color: inherit; }
      .x-banner { display:none !important;  background: var(--x-rose-800); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; }

      /* header */
      .x-header { position: sticky; top: 0; z-index: 40; background: var(--x-rose-300); box-shadow: 0 2px 14px rgba(190, 18, 60, .18); }
      .x-header__in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 4px 12px; min-height: 60px; }
      .x-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--x-rose-900) !important; font-family: var(--x-head); font-weight: 700; font-size: 23px; min-height: 48px; padding-right: 6px; }
      .x-brand img { width: 42px; height: 42px; border-radius: 14px; background: #fff; padding: 3px; object-fit: contain; box-shadow: var(--x-shadow-sm); }
      .x-toplinks { display: none; margin-left: auto; gap: 4px; }
      .x-toplinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px; font-weight: 800; color: var(--x-rose-900); text-decoration: none; transition: background .2s; }
      .x-toplinks a:hover { background: rgba(255, 255, 255, .45); }
      .x-toplinks a.is-active { background: #fff; }
      .x-iconbtn { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .75); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
      .x-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--x-rose-200); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(190, 18, 60, .08); }
      .x-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; font-size: 12.5px; font-weight: 800; color: var(--x-muted); text-decoration: none; }
      .x-tabs a span { font-size: 21px; line-height: 1; padding: 4px 14px; border-radius: 999px; transition: background .2s; }
      .x-tabs a { position: relative; }
      .x-badgen { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--x-rose-600); color: #fff; font-size: 12px; font-weight: 800; }
      .x-badgen[hidden] { display: none; }
      .x-tabs .x-badgen { position: absolute; top: 6px; left: calc(50% + 8px); }
      .x-snip { font-size: 14px; color: var(--x-muted); background: #fff8e7; border-radius: 12px; padding: 6px 10px; }
      .x-snip mark { background: #fde68a; color: inherit; border-radius: 4px; padding: 0 2px; }
      .x-favlist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
      .x-favlist li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 20px; padding: 8px 10px 8px 8px; box-shadow: var(--x-shadow-sm); }
      .x-favlink { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; text-decoration: none; font-weight: 800; font-size: 17px; color: var(--x-ink) !important; }
      .x-favlink > span:first-child { font-size: 30px; width: 52px; height: 52px; border-radius: 14px; background: var(--x-pink); display: grid; place-items: center; flex: none; }
      .x-favlink small { display: block; font-weight: 600; font-size: 14px; color: var(--x-muted); }
      .x-stickers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
      .x-stickers a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 20px; background: #fff; border: 3px dashed var(--x-rose-300); text-decoration: none; color: var(--x-ink) !important; font-weight: 700; }
      .x-stickers a span { font-size: 40px; }
      .x-stickers small { font-size: 12px; text-align: center; }
      .x-demo { display: inline-block; background: #fef3c7; color: #92400e; border: 2px dashed #f59e0b; border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
      .x-gamehead { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
      .x-gamehead > span { font-size: 54px; width: 84px; height: 84px; border-radius: 24px; background: var(--x-pink); display: grid; place-items: center; flex: none; }
      .x-gamehead h1 { font-size: 28px; }
      .x-gamehead .x-eyebrow { background: var(--x-rose-100); }
      .x-gameframe { display: block; width: 100%; height: 640px; border: 0; border-radius: 26px; background: var(--x-cream); box-shadow: var(--x-shadow); margin: 14px 0 18px; }
      .x-backstory { background: #fff; border: 2px solid var(--x-rose-200); border-radius: 999px; padding: 0 16px !important; }
      .x-tabs a.is-active { color: var(--x-rose-700); }
      .x-tabs a.is-active span { background: var(--x-rose-100); }

      /* layout */
      .x-view { max-width: 1120px; margin: 0 auto; padding: 16px; animation: x-in .3s ease backwards; }
      @keyframes x-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
      .x-sec { margin-top: 36px; }
      .x-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
      .x-sechead h2 { font-size: 24px; }
      .x-more { font-weight: 800; color: var(--x-rose-700) !important; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; white-space: nowrap; }
      .x-muted { color: var(--x-muted); }

      /* buttons */
      .x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 800 16px/1.2 var(--x-body); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
      .x-btn:active { transform: scale(.97); }
      .x-btn--primary { background: var(--x-rose-600); color: #fff !important; box-shadow: 0 4px 14px rgba(225, 29, 72, .3); }
      .x-btn--primary:hover { background: var(--x-rose-700); }
      .x-btn--soft { background: #fff; color: var(--x-rose-700) !important; border-color: var(--x-rose-200); }
      .x-btn--soft:hover { background: var(--x-rose-100); }
      .x-btn--block { width: 100%; }
      .x-link { color: var(--x-rose-700) !important; font-weight: 800; min-height: 48px; display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer; font-size: 15px; padding: 0 6px; }

      /* hero */
      .x-hero { background: var(--x-pink); border-radius: 28px; overflow: hidden; box-shadow: var(--x-shadow); display: grid; }
      .x-hero .x-cover { border-radius: 0; aspect-ratio: 4 / 3; }
      .x-hero__copy { padding: 18px 20px 22px; }
      .x-eyebrow { display: inline-block; background: #fff; color: var(--x-rose-700); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
      .x-hero h1 { font-size: 30px; margin-bottom: 6px; }
      .x-hero__meta { font-weight: 700; color: var(--x-rose-800); font-size: 15px; margin-bottom: 8px; }
      .x-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

      /* tiles */
      .x-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
      .x-tiles > .x-tilebtn:first-child { grid-column: 1 / -1; }
      .x-tilebtn { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 120px; padding: 16px; border-radius: 24px; text-decoration: none; box-shadow: var(--x-shadow-sm); transition: transform .15s; color: var(--x-ink) !important; }
      .x-tilebtn:active { transform: scale(.97); }
      .x-tilebtn b { font-size: 38px; line-height: 1; }
      .x-tilebtn span { font-family: var(--x-head); font-weight: 700; font-size: 19px; line-height: 1.15; }
      .x-tilebtn small { color: var(--x-muted); font-size: 13px; font-weight: 600; }

      /* chips */
      .x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
      .x-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; border: 2px solid var(--x-rose-200); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; color: var(--x-ink) !important; transition: background .2s, border-color .2s; }
      .x-chip:hover { border-color: var(--x-rose-300); }
      .x-chip[aria-pressed="true"] { background: var(--x-rose-600); border-color: var(--x-rose-600); color: #fff !important; }
      .x-chip em { font-style: normal; background: var(--x-rose-100); color: var(--x-rose-800); border-radius: 999px; padding: 1px 9px; font-size: 13px; }

      /* rails */
      .x-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: thin; }
      .x-rail > * { flex: 0 0 172px; scroll-snap-align: start; }
      .x-acard { background: #fff; border-radius: 22px; padding: 8px 8px 12px; box-shadow: var(--x-shadow-sm); cursor: pointer; }
      .x-acard__media { position: relative; }
      .x-acard .x-cover { aspect-ratio: 1; border-radius: 16px; }
      .x-acard h3 { font-size: 16px; margin: 8px 4px 2px; }
      .x-acard h3 a, .x-card h3 a { text-decoration: none; display: flex; align-items: center; min-height: 48px; }
      .x-acard p { margin: 0 4px; font-size: 14px; }
      .x-round { position: absolute; right: 8px; bottom: 8px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: var(--x-rose-600); color: #fff !important; font-size: 20px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); display: grid; place-items: center; }
      .x-round.is-playing { background: var(--x-rose-900); }
      .x-gcard { background: #fff; border-radius: 22px; padding: 8px 8px 10px; box-shadow: var(--x-shadow-sm); display: flex; flex-direction: column; gap: 8px; }
      .x-gcard__tile { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 64px; background: linear-gradient(140deg, var(--tc), #fff 90%); }
      .x-gcard__tile { position: relative; overflow: hidden; }
      .x-gcard__tile img, .x-gamehead__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
      .x-gamehead > .x-gamehead__pic { position: relative; overflow: hidden; }
      .x-gcard h3 { font-size: 16px; margin: 0 4px; flex: 1; }
      .x-gcard .x-link { justify-content: center; }

      /* parents */
      .x-parents { background: linear-gradient(135deg, var(--x-rose-100), #fef3c7); border-radius: 28px; padding: 22px 20px; }
      .x-parents h2 { font-size: 24px; margin-bottom: 6px; }
      .x-news { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
      .x-input { min-height: 52px; width: 100%; border-radius: 999px; border: 2px solid var(--x-rose-200); background: #fff; padding: 0 20px; font: 600 16px var(--x-body); color: var(--x-ink); }
      .x-input:focus { outline: 3px solid var(--x-rose-300); border-color: var(--x-rose-500); }

      /* footer */
      .x-foot { max-width: 1120px; margin: 40px auto 0; padding: 24px 16px; border-top: 2px dashed var(--x-rose-200); text-align: center; }
      .x-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
      .x-foot a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 8px; font-weight: 700; color: var(--x-rose-800) !important; text-decoration: none; }
      .x-foot p { font-size: 14px; color: var(--x-muted); margin-top: 6px; }
      .x-foot .x-ver { font-size: 12px; }
      .x-foot a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
      .x-page { max-width: 760px; margin: 0 auto; }
      .x-page h1 { font-family: var(--x-head); font-size: 32px; line-height: 1.15; color: var(--x-rose-900); margin: 4px 0 6px; }
      .x-page__upd { color: var(--x-muted); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
      .x-todo { background: #fff7ed; border-left: 4px solid #f97316; color: #9a3412; font-weight: 700; border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
      .x-draft { background: #fff7ed; border: 2px dashed #fdba74; color: #9a3412; font-weight: 800; border-radius: 16px; padding: 10px 14px; margin: 0 0 14px; }
      .x-pnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
      .x-pnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 2px solid var(--x-rose-200); background: #fff; font-weight: 800; color: var(--x-rose-700) !important; text-decoration: none; }
      .x-pnav a[aria-current="page"] { background: var(--x-rose-600); border-color: var(--x-rose-600); color: #fff !important; }
      .x-pcard { background: #fff; border-radius: 24px; padding: 20px; box-shadow: var(--x-shadow-sm); margin-bottom: 14px; color: var(--x-ink); }
      .x-pcard h2 { font-family: var(--x-head); font-size: 21px; color: var(--x-rose-900); margin-bottom: 8px; }
      .x-pcard p { line-height: 1.6; margin: 0 0 10px; }
      .x-pcard p:last-child { margin-bottom: 0; }
      .x-pcard ul { margin: 0 0 10px; padding-left: 22px; line-height: 1.6; }
      .x-pcard li { margin-bottom: 4px; }
      .x-pcard a { color: var(--x-rose-700) !important; font-weight: 800; }
      .x-pcard--soft { background: linear-gradient(140deg, #fff1f2, #fff7ed); }
      .x-protonote { display: inline-block; font-size: 13px; font-weight: 700; color: var(--x-muted); border: 2px dashed var(--x-rose-200); border-radius: 12px; padding: 6px 10px; margin-top: 8px; }
      .x-mailbig { font-size: clamp(18px, 5vw, 24px); font-weight: 800; overflow-wrap: anywhere; margin: 4px 0 14px; }
      .x-mailbtns { display: flex; flex-wrap: wrap; gap: 10px; }
      .x-sharenote { display: block; text-align: center; margin: 10px auto 0; max-width: 34em; }
      .x-form { display: grid; gap: 12px; }
      .x-form label { display: grid; gap: 6px; font-weight: 800; }
      .x-form textarea.x-input { border-radius: 20px; min-height: 130px; padding: 14px 20px; resize: vertical; }
      .x-form small { color: var(--x-muted); font-weight: 600; }
      .x-chip[hidden] { display: none; }
      a.x-tag { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 2px; text-decoration: none; }
      a.x-tag:hover { text-decoration: underline; }
      .x-tags { align-items: center; column-gap: 4px; row-gap: 0; }

      /* covers */
      .x-cover { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--tc, var(--x-pink)), #fff9f0 95%); display: grid; place-items: center; }
      .x-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
      .x-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 8px; }
      .x-tile__e { font-size: 64px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)); }
      .x-tile__n { font-family: var(--x-head); font-weight: 700; color: var(--x-rose-900); font-size: 18px; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 0 12px; }
      .x-cover--big .x-tile__e { font-size: 110px; }
      .x-cover--big .x-tile__n { font-size: 24px; }

      /* library */
      .x-libhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
      .x-libhead h1 { font-size: 30px; }
      .x-count { font-weight: 800; color: var(--x-rose-700); }
      .x-search { position: relative; margin: 12px 0; }
      .x-search span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; }
      .x-search .x-input { padding-left: 50px; min-height: 56px; }
      .x-quick { display: flex; gap: 10px; flex-wrap: wrap; }
      .x-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
      .x-select { min-height: 48px; border-radius: 999px; border: 2px solid var(--x-rose-200); background: #fff; padding: 0 14px; font: 700 15px var(--x-body); color: var(--x-ink); }
      .x-sortlbl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--x-muted); }
      .x-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
      .x-active:empty { display: none; }
      .x-achip { min-height: 48px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--x-rose-100); color: var(--x-rose-900); font-weight: 800; font-size: 14px; cursor: pointer; }
      .x-lib { margin-top: 12px; }
      .x-backdrop { position: fixed; inset: 0; background: rgba(40, 10, 20, .4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
      .x-backdrop.is-open { opacity: 1; pointer-events: auto; }
      .x-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--x-cream); border-radius: 28px 28px 0 0; max-height: 86vh; overflow-y: auto; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .3s ease; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
      .x-filters.is-open { transform: none; }
      .x-filters::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--x-rose-200); margin: 0 auto 8px; }
      .x-sheethead { display: flex; justify-content: space-between; align-items: center; }
.x-sheethead [data-close-filters] { min-height: 44px; padding: 0 8px; touch-action: manipulation; cursor: pointer; }
      .x-sheethead h2 { font-size: 22px; }
      .x-fgroup { margin-top: 14px; }
      .x-fgroup h3 { font-size: 16px; margin-bottom: 8px; color: var(--x-ink) !important; }
      .x-sheetfoot { position: sticky; bottom: 0; background: var(--x-cream); padding-top: 14px; margin-top: 10px; display: flex; gap: 10px; }
      .x-sheetfoot .x-btn--primary { flex: 1; }
      .x-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
      .x-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--x-shadow-sm); display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, box-shadow .2s; }
      .x-card:hover { transform: translateY(-2px); box-shadow: var(--x-shadow); }
      .x-card__media { position: relative; }
      .x-card .x-cover { border-radius: 0; }
      .x-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
      .x-card h3 { font-size: 20px; }
      .x-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--x-muted); font-size: 15px; }
      .x-badges, .x-tags { display: flex; flex-wrap: wrap; gap: 6px; }
      .x-badge { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f6efe6; color: var(--x-ink); }
      .x-badge--hi { background: var(--x-rose-100); color: var(--x-rose-800); }
      .x-tag { font-size: 13px; font-weight: 700; color: var(--x-rose-800); }
      .x-card .x-btn { margin-top: auto; }
      .x-ribbon { position: absolute; top: 12px; left: 12px; background: var(--x-rose-600); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; box-shadow: var(--x-shadow-sm); }
      .x-heart { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 22px; cursor: pointer; display: grid; place-items: center; color: var(--x-rose-600) !important; box-shadow: var(--x-shadow-sm); transition: transform .15s; }
      .x-heart:active { transform: scale(1.2); }
      .x-empty { text-align: center; padding: 40px 16px; background: #fff; border-radius: 24px; grid-column: 1 / -1; }
      .x-empty p { font-family: var(--x-head); font-size: 22px; font-weight: 700; color: var(--x-rose-900); margin-bottom: 14px; }

      /* story */
      .x-story { max-width: 760px; margin: 0 auto; }
      .x-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 800; }
      .x-crumbs a { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; color: var(--x-rose-700) !important; padding: 0 4px; }
      .x-save { margin-left: auto; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--x-rose-200); background: #fff; font-weight: 800; color: var(--x-rose-700) !important; cursor: pointer; }
      .x-save[aria-pressed="true"] { background: var(--x-rose-100); }
      .x-story .x-cover--big { aspect-ratio: 16 / 10; border-radius: 26px; box-shadow: var(--x-shadow); }
      .x-title { font-size: 32px; margin: 18px 0 8px; }
      .x-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--x-muted); }
      .x-meta .x-chip { min-height: 48px; font-size: 14px; }
      .x-player { margin: 20px 0 8px; background: #fff; border-radius: 26px; padding: 16px; box-shadow: var(--x-shadow); display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; }
      .x-play { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--x-rose-600); color: #fff !important; font-size: 28px; cursor: pointer; box-shadow: 0 6px 16px rgba(225, 29, 72, .35); display: grid; place-items: center; transition: transform .15s; }
      .x-play:active { transform: scale(.94); }
      .x-seek { width: 100%; accent-color: var(--x-rose-600); height: 32px; margin: 0; cursor: pointer; }
      .x-ptime { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; color: var(--x-muted); font-variant-numeric: tabular-nums; }
      .x-prow { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
      .x-pill { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--x-rose-200); background: var(--x-cream); font-weight: 800; font-size: 15px; cursor: pointer; color: var(--x-ink) !important; }
      .x-pill[aria-pressed="true"] { background: #2b2640; color: #fdf6e3 !important; border-color: #2b2640; }
      .x-soon { margin: 20px 0 8px; background: var(--x-pink); border-radius: 18px; padding: 12px 16px; font-weight: 700; color: var(--x-rose-800); font-size: 15px; }
      .x-textctl { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
      .x-text { --fs: 19px; margin-top: 12px; }
      .x-text p { max-width: 65ch; font-size: var(--fs); line-height: 1.8; margin: 0 0 1.1em; transition: font-size .2s; }
      .x-moral { background: var(--x-pink); border-left: 6px solid var(--x-rose-500); border-radius: 18px; padding: 16px 18px; font-weight: 700; font-size: 18px; line-height: 1.6; margin: 24px 0; max-width: 65ch; }
      .x-talk { background: #fff; border-radius: 24px; padding: 18px 20px; box-shadow: var(--x-shadow-sm); }
      .x-talk h2 { font-size: 22px; }
      .x-talk ol { margin: 10px 0 0; padding-left: 24px; display: grid; gap: 8px; font-size: 17px; }
      .x-done { margin: 24px 0 0; width: 100%; min-height: 60px; font-size: 18px; background: #16a34a; color: #fff !important; box-shadow: 0 4px 14px rgba(22, 163, 74, .3); }
      .x-done:hover { background: #15803d; }
      .x-actions { display: grid; gap: 12px; }
      .x-action { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; border-radius: 22px; background: #fff; box-shadow: var(--x-shadow-sm); text-decoration: none; font-weight: 800; font-size: 17px; color: var(--x-ink) !important; }
      .x-action img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--x-rose-200); }
      .x-action small { display: block; font-weight: 600; font-size: 14px; color: var(--x-muted); }
      .x-action--next { background: var(--x-rose-600); color: #fff !important; }
      .x-action--next small { color: #ffe4e6; }
      .x-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 6px 0 4px; }
      .x-soc { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; background: #a3a3a3; color: #fff !important; text-decoration: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; -webkit-tap-highlight-color: transparent; }
      .x-soc svg { width: 24px; height: 24px; display: block; }
      .x-soc[data-net="facebook"] svg { width: 26px; height: 26px; }
      .x-soc:hover { background: #7f7f7f; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .16); }
      .x-soc:active { transform: scale(.94); }
      .x-soc:focus-visible { outline: 3px solid var(--x-rose-300); outline-offset: 3px; background: #7f7f7f; }
      .x-soc::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); background: #3f3f46; color: #fff; font: 700 12px/1 var(--x-body); white-space: nowrap; padding: 7px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
      .x-soc:hover::after, .x-soc:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
      @media (prefers-reduced-motion: reduce) { .x-soc, .x-soc::after { transition: none; } .x-soc:hover { transform: none; } }


      /* toast + modal */
      .x-toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--x-rose-900); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 999px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
      .x-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
      .x-modal { position: fixed; inset: 0; z-index: 90; background: rgba(40, 10, 20, .5); display: grid; place-items: center; padding: 20px; animation: x-fade .2s both; }
      .x-modal[hidden] { display: none; }
      @keyframes x-fade { from { opacity: 0; } }
      .x-sticker { background: var(--x-cream); border-radius: 32px; padding: 28px 24px; text-align: center; max-width: 340px; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
      .x-sticker__e { width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, var(--x-rose-200)); border: 6px dashed var(--x-rose-300); display: grid; place-items: center; font-size: 72px; animation: x-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
      @keyframes x-pop { from { transform: scale(.3) rotate(-25deg); } to { transform: none; } }
      .x-sticker h2 { font-size: 28px; }
      .x-sticker p { margin: 6px 0 18px; }

      @media (min-width: 640px) {
        .x-grid { grid-template-columns: 1fr 1fr; }
        .x-tiles { grid-template-columns: repeat(3, 1fr); }
        .x-tiles > .x-tilebtn:first-child { grid-column: auto; }
        .x-news { flex-direction: row; }
        .x-news .x-btn { flex: none; }
        .x-actions { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
      }
      @media (min-width: 900px) {
        .x-toplinks { display: flex; }
        .x-iconbtn { margin-left: 8px; }
        .x-tabs { display: none; }
        .x-app { padding-bottom: 0; }
        .x-toast { bottom: 32px; }
        .x-view { padding: 24px; }
        .x-hero { grid-template-columns: 1.1fr 1fr; align-items: center; }
        .x-hero .x-cover { height: 100%; aspect-ratio: auto; min-height: 340px; }
        .x-hero__copy { padding: 32px; }
        .x-hero h1 { font-size: 40px; }
        .x-grid { grid-template-columns: repeat(3, 1fr); }
        .x-lib { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
        .x-lib .x-grid { grid-template-columns: repeat(2, 1fr); }
        .x-filterbtn, .x-backdrop, .x-sheethead, .x-sheetfoot, .x-filters::before { display: none !important; }
        .x-filters { position: sticky; top: 84px; transform: none; z-index: 1; background: #fff; border-radius: 24px; max-height: none; box-shadow: var(--x-shadow-sm); padding: 6px 18px 18px; }
        .x-title { font-size: 42px; }
      }
      @media (min-width: 1100px) { .x-lib .x-grid { grid-template-columns: repeat(3, 1fr); } }
      @media (prefers-reduced-motion: reduce) { .x-app *, .x-view { animation: none !important; transition: none !important; } }
    
body.x-lock .x-tabs { visibility: hidden; }

      /* v2.8 încărcarea ilustrațiilor: fără emoji/nume vizibile în timpul încărcării normale; imaginea apare întreagă, cu fade scurt.
         Emoji + numele rămân doar ca rezervă când imaginea nu se poate încărca (.is-fallback). */
      html.js .x-cover:not(.is-fallback) { background: #f5eee8; }
      html.js .x-cover:not(.is-fallback) > .x-tile, html.js .x-gcard__tile:not(.is-fallback) > span { visibility: hidden; }
      html.js .x-cover:not(.is-fallback)::before, html.js .x-gcard__tile:not(.is-fallback)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 70%) #f5eee8; background-size: 220% 100%; animation: gdg-shimmer 1.4s ease-in-out infinite; }
      html.js .x-cover img, html.js .x-gcard__tile img, html.js .x-gamehead__pic img { opacity: 0; transition: opacity .2s ease-out; }
      html.js .x-cover img.is-in, html.js .x-gcard__tile img.is-in, html.js .x-gamehead__pic img.is-in { opacity: 1; }
      html.js .x-cover:has(img.is-in)::before, html.js .x-gcard__tile:has(img.is-in)::before { animation: none; }
      @keyframes gdg-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
      /* previzualizarea din card: vizibilă imediat, sub imaginea clară care apare peste ea */
      html.js .x-cover img.x-prev { opacity: 1; transition: none; }
      html.js .x-cover.has-prev::before { content: none; }
      @media (prefers-reduced-motion: reduce) { html.js .x-cover::before, html.js .x-gcard__tile::before { animation: none !important; } html.js .x-cover img { transition: none; } }

/* v2.9 materiale educative */
.x-matcard{display:flex;align-items:center;gap:14px;margin:14px 0 0;padding:14px 16px;border-radius:18px;background:linear-gradient(140deg,#ecfccb,#f7fee7);color:var(--x-ink)!important;text-decoration:none!important;box-shadow:0 1px 6px rgba(60,80,20,.12)}
.x-matcard b{font-size:30px;line-height:1}.x-matcard span{display:flex;flex-direction:column;gap:2px;flex:1}.x-matcard strong{font-family:var(--x-head);font-size:19px;color:var(--x-rose-900)}.x-matcard small{font-size:14.5px;line-height:1.4}.x-matcard em{font-style:normal;font-size:22px;font-weight:800;color:var(--x-rose-700)}
.x-matnote{margin:2px 0 12px;padding:10px 14px;border-radius:14px;background:#f7fee7;font-size:15px;font-weight:700}
