/* Self-hosted variable fonts — no site-shell page may load a third-party font
   CDN, and reintroducing one is a privacy-policy change, not a perf call. latin +
   latin-ext only; Romanian ș/ț live in latin-ext, so both are required. DM Sans
   drops its opsz axis on purpose, matching the static instances Google served;
   Fraunces keeps its full range. Fraunces declares weight 400 600 because
   /avizier/ uses 600. Filenames carry the upstream version, so an
   update changes the URL and busts caches. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-v17-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-v17-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-italic-v38-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-italic-v38-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@view-transition {
  navigation: auto;
}

:root {
  --bg: #f9f7f4;
  --surface: #ffffff;
  --surface-muted: #f2f0ec;
  --border: #e5e1d8;
  --border-strong: #cec9be;

  --text: #1c1917;
  --text-muted: #57514b;
  --text-faint: #787169;

  --accent: #2f5d8a;
  --accent-hover: #244769;

  /* Selected-pill fill. More than one rule paints it, here and in the page
     sheets (grep the tokens), so the values live here rather than being kept in
     step by hand. */
  --pill-active-bg: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --pill-active-border: color-mix(in srgb, var(--accent) 45%, var(--border));

  /* Colour of the reveal ring (chassis: .card[data-reveal]). Berry is the one
     hue no badge, banner or card chrome claims — accent blue vanished against
     the cards' own chrome — and it stays appetising beside food. Kept dark
     (L39) because every saturated colour in this palette is: the same hue at
     L48 is the only vivid-and-light thing on the page and reads hot rather
     than editorial. Which pages take it is a test, not a roster: a card on the
     site palette rings in this colour, one carrying its own tint keeps that
     tint, so /avizier/'s per-category flyers ring in their own accent. */
  --reveal-ring: #a4234e;

  /* Validation / error feedback. --color-error tints borders and accent fills;
     --color-error-text is the darker shade for readable message text on light. */
  --color-error: #b54545;
  --color-error-text: #8a3030;

  --motion-fast: 120ms;
  --motion-base: 150ms;

  --shadow-edge: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --shadow-card: 0 1px 1px rgba(28, 25, 23, 0.04), 0 10px 30px rgba(28, 25, 23, 0.055);
  --shadow-card-hover: 0 2px 4px rgba(28, 25, 23, 0.055), 0 16px 38px rgba(47, 93, 138, 0.15);
  --shadow-panel: 0 1px 1px rgba(28, 25, 23, 0.035), 0 6px 18px rgba(28, 25, 23, 0.045);

  /* AQI scale — the conventional green→maroon order, warmed and muted to sit with
     the editorial palette. Owned by /calitatea-aerului/, but --aqi-good and
     --aqi-sensitive are also .dot-status's live/stale tones below, which the
     flight family wears and no AQI page does — retuning the ramp moves both. */
  --aqi-good: #5a9e4f;
  --aqi-moderate: #e3a93f;
  --aqi-sensitive: #db773a;
  --aqi-unhealthy: #c0463a;
  --aqi-very-unhealthy: #7a4593;
  --aqi-hazardous: #6d1212;

  --badge-warm-bg: #fef0d8;
  --badge-warm-text: #7a4a10;
  --badge-cool-bg: #e6eef5;
  --badge-cool-text: #1e4a6e;
  --badge-green-bg: #e7f4e8;
  --badge-green-text: #27643a;
  --badge-mango-bg: #fff1c6;
  --badge-mango-text: #8a5400;
  --badge-red-bg: #fde8e6;
  --badge-red-text: #9b2318;
  --badge-violet-bg: #efeaf7;
  --badge-violet-text: #5b3b8c;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale. Neighbouring steps sit ≥8% apart; below that a size difference
     reads as drift rather than hierarchy. Names are roles, not tags — .about h2
     and .prose-body h3 both take --fs-subsection. site.css is fully on the
     scale; the page-local <style> blocks are not yet. */
  --fs-display: clamp(1.75rem, 1.3rem + 1.2vw, 2.3rem);
  --fs-title: 1.5rem;
  --fs-section: 1.25rem;
  --fs-subsection: 1.15rem;
  --fs-lead: 1rem;
  --fs-body: 0.9rem;
  --fs-meta: 0.8rem;
  --fs-micro: 0.72rem;
  /* Codes and tags nested inside chrome already at --fs-micro. The scale's
     floor — anything smaller belongs to a page's own instrument-panel scale. */
  --fs-nano: 0.66rem;

  /* Logotype — off the scale on purpose, and holding its own responsive step so
     .wordmark keeps a single declaration. */
  --fs-wordmark: 1.5rem;

  --max-width: 56rem;

  --seven-hills: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 22' preserveAspectRatio='none'><path d='M0,21 C7,21 14,8 20,8 S33,21 40,21 C47,21 54,14 60,14 S73,21 80,21 C87,21 94,5 100,5 S113,21 120,21 C127,21 134,1 140,1 S153,21 160,21 C167,21 174,11 180,11 S193,21 200,21 C207,21 214,4 220,4 S233,21 240,21 C247,21 254,8 260,8 S273,21 280,21' fill='none' stroke='white' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-block-start: var(--space-5);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.035) 1px, transparent 0),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  background-size: 22px 22px, 100% 24rem;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Ambient veil — opt-in body tint: a page maps a live color into --ambient and
   the veil blends it into the top of the page gradient. Registered as a <color>
   so it fades instead of snapping, defaulting to white so an unfed page resolves
   to the base gradient. Pages deepen it via --veil-strength (default 6%). */
@property --ambient {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

body.ambient-veil {
  transition: --ambient 2.4s ease;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.035) 1px, transparent 0),
    linear-gradient(180deg, color-mix(in srgb, var(--ambient) var(--veil-strength, 6%), rgba(255, 255, 255, 0.5)), rgba(255, 255, 255, 0));
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-title);
}

h2,
h3 {
  font-size: var(--fs-lead);
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) var(--space-8);
}

.page.page-narrow > * {
  max-width: 36rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-size: var(--fs-wordmark);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  view-transition-name: site-wordmark;
}

@media (max-width: 480px) {
  :root {
    --fs-wordmark: 1.375rem;
  }
}

a.wordmark:hover {
  color: var(--text);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.site-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--text-faint);
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Resource switcher — sibling-page nav in the topbar's right slot (margin-left:
   auto pushes it past the wordmark). Native <details> works with zero JS;
   site.js only adds outside-click + Escape dismissal. Mirrors .filter-pill. */
.resource-nav {
  margin-left: auto;
}

.resource-nav details {
  position: relative;
}

.resource-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.125rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.resource-nav summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .resource-nav summary:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    color: var(--accent);
  }
}

.resource-nav details[open] summary {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.resource-nav .chev {
  transition: transform var(--motion-fast) ease;
}

.resource-nav details[open] .chev {
  transform: rotate(180deg);
}

.resource-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 12.5rem;
  max-width: min(16rem, calc(100vw - 2 * var(--space-5)));
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel), var(--shadow-edge);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.resource-nav details[open] .resource-menu {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .resource-nav details[open] .resource-menu {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.resource-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
}

.resource-menu a:hover {
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
}

.resource-menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.resource-menu a[aria-current="page"]::after {
  content: "";
  flex: 0 0 auto;
  width: 0.34rem;
  height: 0.62rem;
  margin-bottom: 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.page-intro {
  max-width: var(--max-width);
  margin-top: var(--space-4);
}

.display-h,
.page-intro h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.page-intro h1 {
  font-size: var(--fs-display);
  line-height: 1.15;
}

.page-intro p {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-lead);
}

.dot-status {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  vertical-align: 1px;
}

.dot-status.live {
  background: var(--aqi-good);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqi-good) 14%, transparent);
}

.dot-status.stale {
  background: var(--aqi-sensitive);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqi-sensitive) 14%, transparent);
}

.alert {
  padding: var(--space-3) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--badge-warm-text) 25%, transparent);
  border-radius: var(--radius-md);
  background: var(--badge-warm-bg);
  color: var(--badge-warm-text);
  font-size: var(--fs-body);
}

.filter-label,
.summary-label,
.stats-label {
  display: block;
  color: var(--text-faint);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  /* background-color, not the shorthand: a pill may carry its own background-image
     (meniul-zilei's .filter-select chevron) that the shorthand would reset. */
  background-color: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

@media (hover: hover) {
  .filter-pill:hover {
    color: var(--text);
  }
}

/* Paired with `.contact-categories .filter-pill:has(input:checked)` in
   www/contact/index.html, whose pills wrap a hidden native radio. Do NOT fold
   the two into one selector list: a selector list is not forgiving, so a browser
   that can't parse :has() drops the WHOLE rule — taking .active down with it on
   /biroul-de-azi/, /meniul-zilei/ and /unde-mancam/, whose pills carry no input
   for :has() to match and so have no other selected state. */
.filter-pill.active {
  background-color: var(--pill-active-bg);
  border-color: var(--pill-active-border);
  color: var(--accent);
}

/* Segmented control — single-choice toggle (flight tabs, AQI trend range). The
   active segment lifts onto a raised surface AND turns accent, so
   "selected = accent" reads the same here as on .filter-pill. */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
  box-shadow: var(--shadow-edge);
}

.segment {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.125rem;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

@media (hover: hover) {
  .segment:not(.active):hover {
    color: var(--text);
  }
}

.segment.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.11), var(--shadow-edge);
}

.venue-type,
.result-cuisine,
.result-fav,
.diet-badge,
.time-badge,
.location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
}

/* Chart key and its hover chip, shared by three figures. Each default is the
   value the majority already used, so a page overrides only what it differs
   on — z-index especially, meaningless outside its own stacking context. */
.figure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: var(--space-2);
  list-style: none;
  color: var(--text-faint);
  font-size: var(--fs-meta);
}

.figure-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.legend-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1.5px solid transparent;
  border-radius: 50%;
}

/* Positioned by the page's own script, against the figure it belongs to. */
.figure-tip {
  position: absolute;
  margin-top: -6px;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--surface);
  font-size: var(--fs-micro);
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-panel);
  transform: translate(-50%, -100%);
}

.figure-tip b {
  font-weight: 600;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--shadow-edge);
  transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover), var(--shadow-edge);
}

/* Reveal ring — the flash on the card a jump lands on: /meniul-zilei/'s
   shared-link and spine-dot reveals, /biroul-de-azi/'s map pins. The page's
   script sets data-reveal (its value names the flavour; one element carries it
   at a time) and clears it on a timer, then adds only the animation, plus
   --reveal-halo for the second layer. Painted outside the animation's media
   query so reduced motion still gets the cue. */
.card[data-reveal] {
  position: relative;
}

.card[data-reveal]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* Second layer is the optional halo — pages that want it set --reveal-halo;
     the 0 fallback collapses it to nothing. */
  box-shadow:
    0 0 0 3px var(--reveal-ring),
    0 0 0 var(--reveal-halo, 0) color-mix(in srgb, var(--reveal-ring) 14%, transparent);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.card-place {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: var(--fs-body);
  font-weight: 500;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  /* Dashed tear-off cue: the action strip sits under a perforated rule. */
  border-top: 1px dashed color-mix(in srgb, var(--border) 82%, transparent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 1.6rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  white-space: nowrap;
}

.card-link svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

/* Flex rather than grid auto-fit, because the column count has to come from the
   labels: auto-fit needs a fixed track minimum, and any minimum wide enough for
   "Comandă" fits one column fewer than the labels actually need — three links
   wrapped to two rows on a phone. Here the wrap point comes from the labels. */
.card-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.card-action-bar .card-link {
  flex: 1 1 0;
  min-width: max-content;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  font-size: var(--fs-body);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.card-action-bar .card-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--accent-hover);
  text-decoration: none;
}

.card-action-bar .card-link.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.card-action-bar .card-link.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.empty-state strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text);
}

@media (max-width: 520px) {
  .card-head.stack-sm {
    flex-direction: column;
  }

  .card-action-bar .card-link {
    min-height: 2.5rem;
  }
}

.skeleton {
  display: inline-block;
  min-width: 3ch;
  border-radius: 4px;
  background: linear-gradient(90deg,
      var(--surface-muted) 0%,
      color-mix(in srgb, var(--surface) 65%, var(--surface-muted)) 50%,
      var(--surface-muted) 100%);
  background-size: 200% 100%;
  color: transparent;
  animation: shine 1.4s ease-in-out infinite;
}

footer.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  color: var(--text-muted);
  font-size: var(--fs-body);
}

/* Cele șapte coline ale Iașiului */
footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  background-color: var(--border-strong);
  -webkit-mask: var(--seven-hills) no-repeat 0 0 / 100% 100%;
          mask: var(--seven-hills) no-repeat 0 0 / 100% 100%;
}

.footer-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.contact-link:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  text-decoration: none;
}

/* Icon-only pill (Facebook) – same chrome as the text pills, square-ish padding */
.contact-link.social-link {
  padding: 3px 9px;
}

/* The four pills need 357px at --fs-body, more than any phone has between the
   gutters, so the Facebook pill dropped to a second row. They're footer chrome
   rather than body copy, so they take the meta step here — one row to 375px. */
@media (max-width: 480px) {
  .contact-link {
    padding: 3px 10px;
    font-size: var(--fs-meta);
  }
}

/* Document/prose layout — narrow measure for the long-form meta pages. Sections
   split by a top rule; .prose-callout is a bordered panel for key terms. */
.prose-body {
  margin-top: var(--space-6);
  max-width: 760px;
}

.prose-body section {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

/* One step lower than h2.section-heading despite ranking the same: that one is
   .display-h (Fraunces italic 500), these are DM Sans 600, which reads heavier
   at equal size. h3 lands on --fs-lead — no larger than the body it heads, but
   held apart by weight and colour, which is enough at this measure. */
.prose-body h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-subsection);
}

.prose-body h3 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--fs-lead);
}

.prose-body p,
.prose-body li {
  color: var(--text-muted);
  line-height: 1.75;
}

/* At line-height 1.75 the break between two adjacent blocks is otherwise
   invisible. `section` keeps this off .prose-callout, which sets its own. */
.prose-body section p + p,
.prose-body li + li {
  margin-top: var(--space-2);
}

.prose-body ul {
  margin: var(--space-3) 0 0;
  padding-left: 1.2rem;
}

.prose-callout {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-panel), var(--shadow-edge);
}

/* Owns its internal paragraph rhythm rather than inheriting the prose one —
   the callout stacks short labelled facts, not body copy. */
.prose-callout p + p {
  margin-top: var(--space-2);
}

.prose-callout strong {
  color: var(--text);
}

/* Evergreen SEO prose block, shared across resource pages */
.about {
  max-width: var(--max-width);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.about h2 {
  margin-bottom: var(--space-3);
  color: var(--text);
  font-size: var(--fs-subsection);
}

.about p + p {
  margin-top: var(--space-3);
}

.about strong {
  color: var(--text);
  font-weight: 600;
}

/* FAQ — collapsible band pairing with .about as an evergreen SEO/AEO tail.
   Native <details> needs no JS, and the answer text stays in the DOM (collapsed,
   not removed) so crawlers and FAQPage structured data still read it. */
.faq {
  max-width: var(--max-width);
  margin-top: var(--space-6);
}

.faq h2 {
  margin-bottom: var(--space-2);
  color: var(--text);
}

/* Size only, scoped with :not() to the evergreen tail — /mcp/'s FAQ is a peer
   section that opts into .section-heading and keeps the larger size. Written this
   way the two rules don't tie on specificity, so the outcome no longer depends on
   source order; regrouping them would shrink that heading with nothing to catch it. */
.faq h2:not(.section-heading) {
  font-size: var(--fs-subsection);
}

/* Headings naming the page's own data, one step above the .about/.faq tail.
   Size is the only differentiator — both are .display-h in var(--text) — so the
   step must stay perceptible; below ~1.25rem it reads as drift. Type only:
   spacing is layout, already handled by the grids these sit in. */
h2.section-heading {
  font-size: var(--fs-section);
}

/* Quiet hairline-divided list — no per-item cards, so the questions read as
   light rows flush with the prose above rather than boxed buttons. */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.625rem 0;
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 400;
  list-style: none;
  cursor: pointer;
  transition: color var(--motion-fast) ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .faq summary:hover {
    color: var(--accent);
  }
}

.faq details[open] summary {
  color: var(--accent);
}

/* Subtle down-chevron caret — faint until hover/open, then it adopts the
   summary's accent. Flips up when the answer is open. */
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.faq summary:hover::after,
.faq details[open] summary::after {
  border-color: currentColor;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.faq-answer a {
  font-weight: 500;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Opacity only, so the flash composites and reduced motion keeps the resting
   ring underneath. */
@keyframes reveal-ping {
  0% { opacity: 0; }
  12% { opacity: 1; }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
