/* Kontraszt: blush-on nincs accent/muted szöveg; roséon csak tinta. */

/* ============================================================
   Anya Bajban Egyesület — stíluslap

   Az oldal az egyesület saját kiadványaként olvasható: Poppins elefántcsont papíron, hajszálvonalak
   és aszimmetrikus hasábok tagolják, nem kártyák. A logó púderrózsája második nyomdafestékként
   két sima sávot tölt ki (a nyitó és a „Írjon nekünk” sávot), a halvány rózsa (blush) pedig azt a
   két helyet jelöli, ahol az olvasó cselekszik: az olvasótermet és a támogatást.

   Szabályok: nincs kártya, ikonkorong, nyíl, árnyék (csak a nyitott párbeszédablakon), átmenet-
   színezés vagy belépő animáció. A szövegszíneket a felület határozza meg: az összetevők a
   --link, --meta, --text-2, --focus és --line változókat használják, sosem közvetlenül az
   --accent vagy --muted színt.
   ============================================================ */

:root {
  --paper: #ffffff;
  --white: #ffffff;
  --blush: #f8e8e6;
  --blush-deep: #f2dbd7;
  --rose: #d99b90;
  --rose-deep: #8a2c52;
  --accent: #8a2c52;
  --accent-hover: #3b1a30;
  --ink: #3b1a30;
  --ink-soft: #5e3a52;
  --muted: #7a5a6c;
  --ink-900: #2a1322;
  --on-dark: #fff7f9;
  --on-dark-soft: #e6ccd7;
  --sand: #f2c4d3;
  --field-edge: #8c6c7d;
  --mark: #f3d6dc;
  --mark-search: #efc3cf;
  --danger: #9c2f26;
  --rule: rgb(59 26 48 / .14);
  --rule-strong: rgb(59 26 48 / .28);
  --rule-blush: rgb(138 44 82 / .2);
  --rule-rose: rgb(59 26 48 / .3);
  --rule-dark: rgb(255 247 249 / .16);

  /* A felülethez kötött szerepek (lásd a sávokat lent). */
  --link: var(--accent);
  --link-hover: var(--accent-hover);
  --meta: var(--muted);
  --text-2: var(--ink-soft);
  --focus: var(--rose-deep);
  --line: var(--rule);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --t-display: clamp(2.75rem, 1.6rem + 4vw, 4.5rem);
  --t-h2: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --t-h2-sm: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  --t-pull: clamp(1.375rem, 1.15rem + .8vw, 1.75rem);
  --t-prose: 1.125rem;
  --t-lead: 1.125rem;

  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --space-xl: clamp(72px, 3rem + 5vw, 128px);
  --space-l: clamp(56px, 2.5rem + 4vw, 112px);
  --space-m: clamp(40px, 2rem + 2vw, 72px);
  --sticky-top: calc(var(--header-h) + 32px);

  --r-xs: 3px;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --r-card: 14px;
  --shadow-card: 0 1px 2px rgb(42 19 34 / .04), 0 10px 28px -18px rgb(42 19 34 / .22);
  --shadow-card-hover: 0 1px 2px rgb(42 19 34 / .05), 0 18px 40px -20px rgb(42 19 34 / .3);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

.band-blush {
  background: var(--blush);
  --link: var(--rose-deep);
  --link-hover: var(--ink);
  --meta: var(--ink-soft);
  --line: var(--rule-blush);
}

.band-rose {
  background: var(--rose);
  color: var(--ink);
  --link: var(--ink);
  --link-hover: var(--ink);
  --meta: var(--ink);
  --text-2: var(--ink);
  --focus: var(--ink);
  --line: var(--rule-rose);
}

.site-footer {
  background: var(--ink-900);
  color: var(--on-dark);
  --link: var(--on-dark);
  --link-hover: var(--sand);
  --meta: var(--on-dark-soft);
  --text-2: var(--on-dark-soft);
  --focus: var(--sand);
  --line: var(--rule-dark);
}

/* A fehér mezők a blush sávon is a papír szabályait követik. */
.band-blush :is(.support-form, .search-field) {
  --link: var(--accent);
  --link-hover: var(--accent-hover);
  --meta: var(--muted);
  --line: var(--rule);
}

.example, .notice, .article-help, .legal-status {
  background: var(--blush);
  --link: var(--rose-deep);
  --link-hover: var(--ink);
  --meta: var(--ink-soft);
}

::selection { background: var(--mark); color: var(--ink); }

/* ---------- Alap ---------- */

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

html {
  font-synthesis: none;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font);
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}

h1 { font: 500 var(--t-h2)/1.12 var(--font); letter-spacing: -.022em; }
h2 { font: 500 var(--t-h2)/1.12 var(--font); letter-spacing: -.022em; }
.h2-sm { font-size: var(--t-h2-sm); line-height: 1.2; letter-spacing: -.018em; }
h3 { font: 600 1.125rem/1.35 var(--font); letter-spacing: -.005em; }

p, figure, blockquote, dl, dd { margin: 0; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 600; }
em, i { font-style: normal; font-weight: 500; }
img { max-width: 100%; height: auto; }
picture { display: block; }
button, input { font: inherit; color: inherit; }

.num, .tabular { font-variant-numeric: tabular-nums lining-nums; }
.nobr { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-brand { width: 18px; height: 18px; flex: none; fill: currentColor; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.container { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 66rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  background: var(--rose-deep);
  color: #fff;
  font: 500 .9375rem/1 var(--font);
  text-decoration: none;
}

.skip-link:focus { top: 12px; color: #fff; }

.scroll-sentinel { height: 1px; margin-bottom: -1px; }

.lead { font: 400 var(--t-lead)/1.6 var(--font); color: var(--ink); }

/* ---------- Linkek és gombok ---------- */

a {
  color: var(--link);
  text-decoration: underline 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: .2em;
  transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease);
}

a:focus-visible {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

@media (hover: hover) {
  a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

button.text-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: .2em;
  transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease);
}

button.text-link:focus-visible {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

@media (hover: hover) {
  button.text-link:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--rose-deep);
  border-radius: var(--r);
  background: var(--rose-deep);
  color: #fff;
  font: 500 1rem/1 var(--font);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

a.button:focus-visible { color: #fff; text-decoration: none; }
.button:disabled { opacity: .5; cursor: not-allowed; }

.button-quiet {
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  color: var(--rose-deep);
  font-size: .9375rem;
}

@media (hover: hover) {
  .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; }
  .button-quiet:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
}

/* ---------- Fejléc és mobilmenü ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand:is(:hover, :focus-visible) { color: var(--ink); }

.brand-badge {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand-name {
  display: grid;
  font: 600 1.0625rem/1.15 var(--font);
  letter-spacing: -.01em;
}

.brand-name small {
  font: 400 .8125rem/1.3 var(--font);
  letter-spacing: 0;
  color: var(--ink-soft);
}

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 .9375rem/1.3 var(--font);
  color: var(--ink);
  text-decoration: none;
}

.desktop-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline 2px;
  text-underline-offset: 8px;
}

.desktop-nav :is(a[aria-current], a.is-section) {
  text-decoration: underline 2px var(--accent);
  text-underline-offset: 8px;
}

.menu-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(59 26 48 / .25);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.mobile-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.mobile-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--rule);
  font: 500 1.25rem/1.3 var(--font);
  color: var(--ink);
  text-decoration: none;
}

.mobile-links a:focus-visible, .mobile-hotlines a:focus-visible { outline-offset: -4px; }
.mobile-links :is(a[aria-current], a.is-section) { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }

.mobile-help { padding: 24px var(--gutter) 32px; }
.mobile-help-title { margin-bottom: 8px; font: 600 .9375rem/1.4 var(--font); }
.mobile-hotlines { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rule); }

.mobile-hotlines a {
  display: grid;
  align-content: center;
  min-height: 56px;
  padding-block: 6px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.mobile-hotlines .hl-num {
  font: 600 1.125rem/1.3 var(--font);
  font-variant-numeric: tabular-nums lining-nums;
}

.mobile-hotlines .hl-label { font: 400 .875rem/1.4 var(--font); color: var(--ink-soft); }

/* ---------- Keresés (kezdőlap és /cikkek/) ---------- */

.search { margin-top: 48px; max-width: 48rem; }

.search label {
  display: block;
  margin-bottom: 8px;
  font: 500 .9375rem/1.3 var(--font);
  color: var(--ink);
}

.search-field { position: relative; }

.search-field input {
  width: 100%;
  height: 64px;
  padding: 0 136px 0 20px;
  border: 1px solid var(--field-edge);
  border-radius: var(--r);
  background: #fff;
  font: 400 1.125rem/1 var(--font);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::-webkit-search-cancel-button { display: none; }
::placeholder { color: #7a5a6c; opacity: 1; }

.search-field .button {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 48px;
  min-height: 0;
  padding: 0 20px;
  border-radius: var(--r-sm);
}

.search-results { margin-top: 24px; max-width: 48rem; }
.search-summary { font: 500 .9375rem/1.4 var(--font); color: var(--text-2); }
.search-list { list-style: none; margin: 12px 0 0; padding: 0; }

.search-hit {
  position: relative;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.search-hit:last-child { border-bottom: 1px solid var(--line); }
.search-hit:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r-sm); }
.hit-topic { font: 500 .8125rem/1.4 var(--font); color: var(--link); }
.hit-title { margin-top: 2px; font: 600 1.125rem/1.35 var(--font); letter-spacing: -.005em; }
.hit-title a { color: var(--ink); text-decoration: none; }
.hit-title a::after { content: ""; position: absolute; inset: 0; }

.hit-title a:focus-visible {
  outline: none;
  color: var(--ink);
  text-decoration: underline 2px;
  text-decoration-color: var(--link);
  text-underline-offset: .2em;
}

.hit-snippet {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font: 400 .9375rem/1.55 var(--font);
  color: var(--text-2);
}

mark {
  padding: 0 .1em;
  border-radius: 2px;
  background: var(--mark-search);
  color: var(--ink);
  font-weight: 500;
}

.search-more { margin-top: 8px; }
.search-empty { font: 400 1rem/1.6 var(--font); color: var(--ink); }

/* ---------- Cikkkártyák (közös) ---------- */

.post-card { position: relative; }
.card-image { display: block; }

.card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
}

/* A pont a két elem közti résben ül; ha egy elem új sorba törik, a pontja a sor elé kerülne,
   ott a doboz levágja. */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1em;
  overflow: hidden;
  margin: 16px 0 0;
  font: 400 .875rem/1.5 var(--font);
  letter-spacing: .005em;
  color: var(--meta);
}

.post-meta .post-topic { font-weight: 500; color: var(--link); }
.post-meta > span { position: relative; }
.post-meta > span + span::before { content: "·" / ""; position: absolute; left: -.62em; }

.post-title {
  margin-top: 6px;
  font: 600 1.125rem/1.35 var(--font);
  letter-spacing: -.005em;
}

.post-title a { color: var(--ink); text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-title a:focus-visible { outline: none; color: var(--ink); }

.post-card:has(a:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
  border-radius: var(--r-sm);
}

.post-lead {
  margin-top: 10px;
  max-width: 36rem;
  font: 400 1rem/1.6 var(--font);
  color: var(--text-2);
}

.card-image.is-portrait img { object-position: 50% 25%; }

/* ---------- Kezdőlap: közös ---------- */

/* Minden szakasz ugyanígy nyit: cím, alatta egy-két mondat, aztán egy rács kártyákból vagy sorokból. */
.services, .knowledge, .about, .support, .stories, .contact { padding: var(--space-l) 0; }
.section-head { max-width: 46rem; }
.section-head .lead { margin-top: 16px; color: var(--text-2); }

/* Kártya: fehér lap, finom keret és árnyék — a papír- és a blush sávon is elválik a háttértől. */
.service-tile, .is-tile, .story-card, .support-form {
  border: 1px solid rgb(59 26 48 / .08);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* Látható jelzés, hogy a kártya megnyitható; a link vagy gomb neve maga a cím. */
.tile-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font: 600 .875rem/1.3 var(--font);
  color: var(--rose-deep);
}

.tile-more .icon { width: 16px; height: 16px; stroke-width: 2; transition: translate 140ms var(--ease); }

.button-outline {
  background: transparent;
  color: var(--rose-deep);
}

@media (hover: hover) {
  .button-outline:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
}

/* ---------- Nyitó sáv: a fotó a teljes háttér ---------- */

/* A fotó kitölti a sávot; balról sötét szilva átmenet ad helyet a fehér szövegnek, a jobb oldali alak
   látható marad. Alatta a három segélyvonal: ez a nyitókép valódi, azonnal használható tartalma. */
.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(720px, calc(100svh - var(--header-h) - 104px));
  overflow: hidden;
  color: #fff;
  --link: #fff;
  --link-hover: #fff;
  --focus: #fff;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

/* Az állókép a videó egy kockája: ez látszik, amíg a videó betölt, és ez marad csökkentett mozgás,
   adattakarékos mód vagy lassú kapcsolat esetén. */
.hero-bg img, .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 62%;
}

.hero-video { opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(42 19 34 / .92) 0%, rgb(42 19 34 / .86) 38%, rgb(42 19 34 / .6) 54%, rgb(42 19 34 / .18) 74%, rgb(42 19 34 / .05) 100%);
}

.hero-copy { max-width: 38rem; padding-block: 72px; }

.hero h1 {
  font: 500 clamp(3rem, 1.2rem + 6.2vw, 6.75rem)/.96 var(--font);
  letter-spacing: -.045em;
  color: #fff;
}

.hero-lead {
  margin-top: 28px;
  max-width: 31rem;
  font: 400 1.1875rem/1.6 var(--font);
  color: #fbeff3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.hero-actions .button { background: #fff; border-color: #fff; color: var(--ink); }
.hero-actions .text-link { font-weight: 600; color: #fff; }

@media (hover: hover) {
  .hero-actions .button:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
}

.hero-lines { background: var(--blush); }

.hero-lines-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 12px 40px;
  align-items: center;
  padding-block: 22px;
}

.hero-lines-title { max-width: 15rem; font: 500 .9375rem/1.4 var(--font); color: var(--ink); }

.hero-lines ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-lines a { display: grid; gap: 2px; min-height: 44px; color: var(--ink); text-decoration: none; }

.hero-lines .hl-num {
  font: 600 1.5rem/1.15 var(--font);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-lines .hl-label { font: 400 .875rem/1.4 var(--font); color: var(--ink-soft); }
.hero-lines a:focus-visible { color: var(--ink); }
.hero-lines a:focus-visible .hl-num { text-decoration: underline 2px; text-underline-offset: 5px; }

@media (hover: hover) {
  .hero-lines a:hover { color: var(--ink); }
  .hero-lines a:hover .hl-num { text-decoration: underline 2px; text-underline-offset: 5px; }
}

/* Közepes szélességen a cím az oldal több mint felét kitölti: a sötét sáv is tovább tart. */
@media (min-width: 981px) and (max-width: 1180px) {
  .hero-stage::before {
    background: linear-gradient(90deg, rgb(42 19 34 / .92) 0%, rgb(42 19 34 / .88) 52%, rgb(42 19 34 / .66) 68%, rgb(42 19 34 / .2) 88%, rgb(42 19 34 / .06) 100%);
  }
}

@media (max-width: 860px) {
  .hero-lines-inner { grid-template-columns: 1fr; }
  .hero-lines ul { grid-template-columns: 1fr; gap: 10px; }
}

/* Tableten és mobilon a szöveg a sáv aljára kerül, és alulról sötétedik a kép. */
@media (max-width: 980px) {
  .hero-stage { align-items: end; min-height: 600px; }
  .hero-bg img, .hero-video { object-position: 60% 55%; }
  .hero-stage::before { background: linear-gradient(0deg, rgb(42 19 34 / .95) 0%, rgb(42 19 34 / .86) 45%, rgb(42 19 34 / .66) 72%, rgb(42 19 34 / .24) 100%); }
  .hero-copy { padding-block: 140px 40px; }
}

@media (max-width: 760px) {
  .hero-copy { padding-block: 120px 36px; }
  .hero-lead { margin-top: 20px; font-size: 1.0625rem; }
}

/* ---------- Miben segítünk: öt kártya ikonnal ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.service-icon { width: 34px; height: 34px; color: var(--rose-deep); stroke-width: 1.4; }

.service-name {
  margin-top: 18px;
  font: 600 1.125rem/1.3 var(--font);
  letter-spacing: -.005em;
  hyphens: manual;
}

.service-name button { all: unset; cursor: pointer; color: var(--ink); overflow-wrap: break-word; }
.service-name button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-name button:focus-visible { outline: none; }
.service-tile:has(button:focus-visible) { outline: 2px solid var(--rose-deep); outline-offset: 2px; }

.service-desc {
  margin-top: 8px;
  font: 400 .9375rem/1.55 var(--font);
  color: var(--ink-soft);
}

@media (hover: hover) {
  .service-tile:hover, .is-tile:hover, .story-card:hover { border-color: rgb(138 44 82 / .35); box-shadow: var(--shadow-card-hover); }
  :is(.service-tile, .is-tile):hover .tile-more .icon { translate: 3px 0; }
}

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }

  .service-tile {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }

  .service-icon { grid-row: 1 / 4; }
  .service-name { margin-top: 2px; }
  .service-tile .tile-more { padding-top: 10px; }
}

/* ---------- Tudástár: keresés, témák, cikkek ---------- */

.knowledge-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 24px 64px;
  align-items: end;
}

.knowledge .search { margin: 0; max-width: none; }
.knowledge .search-field input { height: 56px; padding-right: 128px; font-size: 1.0625rem; }
.knowledge .search-field .button { top: 6px; right: 6px; height: 44px; }

.topic-nav { margin-top: 32px; }

.topic-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule-blush);
  border-radius: 999px;
  background: #fff;
  font: 500 .9375rem/1.2 var(--font);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.topic-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blush);
  font: 600 .75rem/1 var(--font);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--rose-deep);
}

.topic-link:focus-visible { color: var(--ink); border-color: var(--rose-deep); }

.knowledge .post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.is-tile { display: flex; flex-direction: column; overflow: hidden; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.is-tile .card-image img { border-radius: 0; }
.is-tile .post-meta { margin: 18px 22px 0; }
.is-tile .post-title { margin: 6px 22px 0; }

.is-tile .post-lead {
  display: -webkit-box;
  margin: 8px 22px 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .9375rem;
  color: var(--ink-soft);
}

.is-tile .tile-more { margin: auto 22px 22px; }
.is-tile:has(a:focus-visible) { outline-offset: 3px; border-radius: var(--r-card); }

.articles-all { margin: 28px 0 0; }

@media (hover: hover) {
  .topic-link:hover { color: var(--ink); border-color: var(--rose-deep); }
}

@media (max-width: 980px) {
  .knowledge-head { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .knowledge .post-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }

  /* Keskeny kijelzőn a cikkkártya sor: kép balra, téma és cím jobbra. */
  .is-tile {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding: 12px;
  }

  .is-tile .card-image { grid-row: 1 / 3; }
  .is-tile .card-image img { border-radius: var(--r); }
  .is-tile .post-meta { margin: 0; align-self: end; }
  .is-tile .post-title { margin: 2px 0 0; align-self: start; font-size: 1rem; }
  .is-tile :is(.post-lead, .tile-more) { display: none; }
}

/* ---------- Rólunk: kép, bevezető, négy érték ikonnal ---------- */

.about-figure { margin: 0; }

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--r-card);
}

.about-copy .lead { margin-top: 20px; color: var(--text-2); max-width: 36rem; }

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.values li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }

.values .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-deep);
  stroke-width: 1.6;
}

.values h3 { font: 600 1rem/1.35 var(--font); }
.values p { margin-top: 4px; font: 400 .9375rem/1.55 var(--font); color: var(--text-2); }
.about-more { margin-top: 32px; }

@media (min-width: 761px) {
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
}

@media (max-width: 760px) {
  .about-figure { margin-bottom: 32px; }
  .about-figure img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
  .values { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Támogatás ---------- */

.support-copy .lead { margin-top: 20px; color: var(--text-2); }
.support-uses-title { margin-top: 28px; font: 600 1rem/1.35 var(--font); }

.support-uses { margin: 12px 0 0; padding: 0; list-style: none; }

.support-uses li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font: 400 1rem/1.45 var(--font);
  color: var(--ink);
}

.support-uses .icon { width: 22px; height: 22px; color: var(--rose-deep); }
.support-member { margin-top: 24px; max-width: 34rem; font: 400 .9375rem/1.6 var(--font); }
.support-more { margin-top: 2px; }

.support-form { padding: 32px; }

.support-form h3 { margin: 0 0 20px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }

.support-form fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }

.support-form legend {
  margin-bottom: 8px;
  padding: 0;
  font: 500 .9375rem/1.3 var(--font);
  color: var(--ink);
}

.choice-row { display: flex; flex-wrap: wrap; column-gap: 28px; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 32px;
}

.amount-grid .other-amount { grid-column: 1 / -1; margin-top: 8px; }

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 500 1rem/1.3 var(--font);
  color: var(--ink);
  cursor: pointer;
}

.radio input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--rose-deep); cursor: pointer; }

.other-amount label {
  display: block;
  margin-bottom: 8px;
  font: 500 .9375rem/1.3 var(--font);
}

.money-field { position: relative; max-width: 16rem; }

.money-field input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--field-edge);
  border-radius: var(--r);
  background: #fff;
  font: 400 1.0625rem var(--font);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}

.money-field input[aria-invalid="true"] { border-color: var(--danger); }

.money-field span {
  position: absolute;
  top: 50%;
  right: 16px;
  translate: 0 -50%;
  font: 500 1rem var(--font);
  color: var(--ink-soft);
}

.field-error { margin-top: 8px; font: 400 .875rem/1.5 var(--font); color: var(--danger); }
.support-form .button { min-height: 52px; min-width: 240px; }
.form-note { margin-top: 16px; font: 400 .875rem/1.5 var(--font); color: var(--ink-soft); }
.support-noscript { font: 400 1rem/1.6 var(--font); }

@media (min-width: 981px) {
  .support-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }

  .support-copy { grid-column: 1 / span 5; }
  .support-form, .support-noscript { grid-column: 7 / -1; }
}

@media (max-width: 980px) {
  .support-form, .support-noscript { margin-top: 32px; }
}

@media (max-width: 620px) {
  .support-form { padding: 24px 20px; }
  .support-form .button { width: 100%; min-width: 0; }
}

/* ---------- Amit a történetek mutatnak: három idézet ---------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.story-card { overflow: hidden; }

.story-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tp-iratok img { object-position: 50% 22%; }
.tp-varakozas img { object-position: 50% 24%; }
.tp-konyha img { object-position: 50% 30%; }

.story-body { position: relative; padding: 22px 22px 26px; }
.story-body h3 { font: 600 1.0625rem/1.35 var(--font); }
.story-body blockquote { margin: 10px 0 0; }

.story-body blockquote p {
  font: 400 .9375rem/1.6 var(--font);
  color: var(--ink-soft);
  text-indent: -.42em;
}

@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .story-image img { aspect-ratio: 16 / 9; }
}

/* ---------- Kapcsolat ---------- */

.contact-copy .lead { margin-top: 20px; max-width: 30rem; }
.contact-links { margin: 28px 0 0; padding: 0; list-style: none; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font: 600 1.0625rem/1.3 var(--font);
  color: var(--ink);
}

.contact-link .icon, .contact-link .icon-brand { width: 24px; height: 24px; flex: none; }

.contact-link.is-email {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.contact-link.is-email .icon { width: 28px; height: 28px; }

.directory-title { margin: 0 0 12px; font: 600 1rem/1.4 var(--font); }
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-rose); }

.directory-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  min-height: 56px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-rose);
  color: var(--ink);
  text-decoration: none;
}

.directory-row .icon { grid-row: 1 / 3; width: 22px; height: 22px; margin-top: 4px; }

.dir-value {
  font: 600 1.5rem/1.15 var(--font);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums lining-nums;
}

.dir-label { font: 400 .875rem/1.45 var(--font); }
.directory-note { margin-top: 12px; font: 400 .875rem/1.5 var(--font); }

.directory-row:focus-visible { color: var(--ink); }
.directory-row:focus-visible .dir-value { text-decoration: underline 2px; text-underline-offset: 5px; }

@media (hover: hover) {
  .directory-row:hover { color: var(--ink); }
  .directory-row:hover .dir-value { text-decoration: underline 2px; text-underline-offset: 5px; }
}

@media (min-width: 981px) {
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }

  .contact-copy { grid-column: 1 / span 6; }
  .contact-directory { grid-column: 8 / -1; }
}

@media (max-width: 980px) {
  .contact-directory { margin-top: 40px; }
}

/* ---------- Lábléc ---------- */

.site-footer { padding: 72px 0 32px; }

.brand-footer { color: var(--on-dark); }
.brand-footer:is(:hover, :focus-visible) { color: var(--on-dark); }
.brand-footer .brand-badge { width: 64px; height: 64px; }
.brand-footer .brand-name small { color: var(--on-dark-soft); }

.footer-about p {
  max-width: 26rem;
  margin-top: 20px;
  font: 400 .9375rem/1.6 var(--font);
  color: var(--on-dark-soft);
}

.footer-about p.footer-contact { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.footer-fb { gap: 8px; }

.footer-nav h2 {
  margin-bottom: 8px;
  font: 600 .9375rem/1.3 var(--font);
  letter-spacing: 0;
  color: var(--on-dark);
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }

:is(.footer-nav, .footer-contact) :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: 400 .9375rem/1.3 var(--font);
  color: var(--on-dark);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms var(--ease);
}

:is(.footer-nav, .footer-contact) :is(a, button):focus-visible {
  color: var(--sand);
  text-decoration: underline 1px;
  text-underline-offset: .2em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  font: 400 .8125rem/1.5 var(--font);
  letter-spacing: .01em;
  color: var(--on-dark-soft);
}

/* ---------- Párbeszédablak ---------- */

dialog {
  width: min(44rem, 100% - 32px);
  max-height: 85dvh;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px -16px rgb(42 19 34 / .35);
}

dialog::backdrop { background: rgb(42 19 34 / .55); }

/* A ragadós fejsáv ne takarja el a Tabbal elért elemet; a görgethető ablak saját fókuszkerete befelé esik. */
dialog { scroll-padding-top: 76px; }
dialog:focus-visible { outline-offset: -4px; }

dialog[open] { transition: opacity 200ms var(--ease), translate 200ms var(--ease); }

@starting-style {
  dialog[open] { opacity: 0; translate: 0 8px; }
}

.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 16px 0 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.dialog-kicker { font: 500 .875rem/1.3 var(--font); color: var(--ink-soft); }

.dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(59 26 48 / .25);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.dialog-body { padding: 32px; overflow: visible; }

#dialog-title {
  font: 600 1.5rem/1.25 var(--font);
  letter-spacing: -.015em;
  margin-bottom: 12px;
}

#dialog-title:focus { outline: none; }

.dialog-body .dialog-lead { font: 400 1.125rem/1.6 var(--font); }
.dialog-body h3 { margin: 32px 0 8px; }
.dialog-body p { margin: 0 0 1em; }
.dialog-body ul { margin: 0 0 1em; padding-left: 1.25em; }
.dialog-body li { margin: .4em 0; }
.dialog-body li::marker { color: var(--accent); }
.dialog-body .small { font-size: .875rem; color: var(--ink-soft); }

.dialog-body .dialog-related { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.dialog-related li { margin: 0; border-bottom: 1px solid var(--rule); }

.dialog-related a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 500;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.dialog-actions p { margin: 0; }

.dialog-body .dialog-limit, .dialog-body .dialog-source {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font: 400 .875rem/1.5 var(--font);
  color: var(--ink-soft);
}

.dialog-limit + .dialog-source { margin-top: 16px; }

.notice { margin: 16px 0; padding: 16px 20px; border-radius: var(--r); }
.dialog-body .notice { margin: 16px 0; }
.dialog-body .notice p { margin: 0; }

.dialog-body .hotlines { margin: 0 0 1em; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.hotlines li { margin: 0; }

.hotlines a {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.hotlines .hl-num {
  font: 600 1.5rem/1.15 var(--font);
  font-variant-numeric: tabular-nums lining-nums;
}

.hotlines .hl-name { font: 500 .9375rem/1.4 var(--font); }
.hotlines .hl-desc { font: 400 .875rem/1.5 var(--font); color: var(--ink-soft); }
.hotlines a:focus-visible { color: var(--ink); }
.hotlines a:focus-visible .hl-num { text-decoration: underline 2px; text-underline-offset: 4px; }

/* ---------- Adatlista (impresszum, adatkezelés, támogatás) ---------- */

dl.facts {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  margin: 1.5em 0;
  border-top: 1px solid var(--rule);
}

dl.facts :is(dt, dd) { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { padding-right: 16px; font: 500 .9375rem/1.5 var(--font); color: var(--ink-soft); }
dl.facts dd { font: 400 1rem/1.5 var(--font); color: var(--ink); overflow-wrap: anywhere; }
/* A sorban egyedül álló link érintési felülete 44 px, a sor magassága nem változik. */
dl.facts dd > a:only-child { display: inline-block; padding-block: 11px; margin-block: -11px; }

mark.todo {
  padding: 1px 6px;
  border: 1px dashed var(--rose-deep);
  border-radius: var(--r-xs);
  background: var(--mark);
  color: var(--ink);
  font: 500 .9375em/1.4 var(--font);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Cikkoldal ---------- */

.article-shell {
  display: block;
  width: min(100% - 2 * var(--gutter), 44rem);
  margin-inline: auto;
}

.article-layout { display: block; }
.article-head { padding-top: 56px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  font: 500 .875rem/1.5 var(--font);
  color: var(--meta);
}

.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span { color: var(--meta); }

.article-head h1 { margin-top: 8px; max-width: 52rem; }
.article-head .post-meta { margin-top: 20px; }
.article-head .post-meta span:first-child { font-weight: 500; color: var(--ink-soft); }

.article-figure { margin: 40px 0 56px; }

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
}

.article:not(:has(.article-figure)) .article-layout { margin-top: 48px; }

.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font: 400 .875rem/1.45 var(--font);
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a:focus-visible { color: var(--accent); }
.toc a[aria-current="location"] { color: var(--ink); border-left-color: var(--accent); }

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font: 500 1rem var(--font);
  cursor: pointer;
  list-style: none;
}

.toc summary::-webkit-details-marker { display: none; }
.toc details[open] summary .icon { rotate: 180deg; }

.prose {
  font: 400 var(--t-prose)/1.7 var(--font);
  color: var(--ink);
  overflow-wrap: break-word;
}

.prose a { overflow-wrap: anywhere; }

.prose p { margin: 0 0 1.1em; }
.page-article .prose > p:first-child { font-size: 1.25rem; line-height: 1.55; }

.prose h2 {
  margin: 2.2em 0 .6em;
  font: 600 1.375rem/1.25 var(--font);
  letter-spacing: -.015em;
}

.prose > h2:first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose :is(ul, ol) { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--accent); }
.prose ol[type="a"] li::marker { font-weight: 500; }

blockquote.example { margin: 1.5em 0; padding: 20px 24px; border-radius: var(--r); }

blockquote.example p {
  margin: .5em 0 0;
  font: 400 1.0625rem/1.6 var(--font);
  text-indent: -.42em;
}

blockquote.example p:first-child { margin-top: 0; }

.prose p.pull {
  margin: 1.8em 0;
  padding-top: 20px;
  border-top: 2px solid var(--rose);
  font: 500 var(--t-pull)/1.35 var(--font);
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

.article-note {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font: 400 .875rem/1.5 var(--font);
  color: var(--ink-soft);
}

.prose .article-note { margin: 40px 0 0; }

aside.article-help { margin-top: 64px; padding: 32px; border-radius: var(--r-lg); }

.article-help h2 {
  font: 600 1.25rem/1.3 var(--font);
  letter-spacing: -.01em;
}

.article-help p { margin-top: 8px; max-width: 36rem; font: 400 1rem/1.6 var(--font); color: var(--ink-soft); }
.article-help p:has(.button) { margin-top: 20px; }
.article-help .small { font-size: .875rem; }

.related {
  margin: 80px 0 96px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-strong);
}

.related .post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.related > p { margin-top: 24px; }

.is-related .post-lead {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .9375rem;
  color: var(--ink-soft);
}

.is-related:not(:has(.card-image)) .post-meta { margin-top: 0; padding-top: 16px; border-top: 2px solid var(--rose); }

/* ---------- Cikklista (/cikkek/) ---------- */

.page-head { padding: 56px 0 48px; }
.page-head h1 { margin-top: 8px; }

.page-lead {
  margin-top: 20px;
  max-width: 38rem;
  font: 400 1.125rem/1.6 var(--font);
  color: var(--text-2);
}

.page-head .search { margin-top: 32px; }
.topic-jump { margin-top: 32px; }

.topic-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Csak a téma neve aláhúzott; a darabszám alapvonalon ül mellette. */
.topic-jump a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  min-height: 44px;
  font: 500 .9375rem var(--font);
  text-decoration: none;
}

.tj-name {
  text-decoration: underline 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: .2em;
}

.topic-jump a:focus-visible .tj-name { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

.topic-jump .count {
  margin-left: 6px;
  font: 500 .8125rem var(--font);
  color: var(--meta);
}

.topic-group {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  column-gap: 3.5rem;
  padding: 0 0 56px;
  border-top: 1px solid var(--rule-strong);
}

.topic-group:first-child { margin-top: 56px; }
.topic-group-head { align-self: start; padding-top: 24px; }
.topic-group-head h2 { font-size: 1.5rem; }
.topic-group .is-row:first-child { border-top: 0; }

.group-count {
  margin-top: 8px;
  font: 500 .8125rem/1.4 var(--font);
  letter-spacing: .01em;
  color: var(--meta);
}

.is-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  grid-template-areas: 'meta img' 'title img' 'lead img';
  grid-template-rows: auto auto 1fr;
  column-gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.is-row:first-child { border-top: 1px solid var(--rule); }
.is-row .card-image { grid-area: img; }
.is-row .post-meta { grid-area: meta; margin: 0; }
.is-row .post-title { grid-area: title; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }

.is-row .post-lead {
  display: -webkit-box;
  grid-area: lead;
  max-width: 40rem;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.is-row:not(:has(.card-image)) {
  grid-template-columns: 1fr;
  grid-template-areas: 'meta' 'title' 'lead';
}

.is-row:has(a:focus-visible) { outline-offset: 2px; }
.index-help { max-width: 44rem; margin: 64px 0 96px; }

/* ---------- Adatkezelési tájékoztató ---------- */

.legal-status {
  max-width: 40rem;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--r);
  font: 400 1rem/1.6 var(--font);
  color: var(--ink);
}

.legal .article-layout { margin-top: 48px; }
.legal .toc ol { list-style: decimal; padding-left: 1.75em; border-left: 0; }

.legal .toc li::marker {
  font: 400 .8125rem var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.legal .toc a {
  display: block;
  margin: 0;
  padding: 7px 0 7px 4px;
  border-left: 0;
  font: 400 .8125rem/1.4 var(--font);
}

.legal .prose { font: 400 1rem/1.7 var(--font); counter-reset: legal; }

.legal .prose h2 {
  margin: 2em 0 .6em;
  font: 600 1.25rem/1.3 var(--font);
  letter-spacing: -.01em;
  counter-increment: legal;
}

.legal .prose h2::before { content: counter(legal) ". "; color: var(--accent); }
.legal .prose li { margin: .6em 0; }

.legal-contact {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font: 400 .9375rem/1.6 var(--font);
  color: var(--ink-soft);
}

.legal .prose .legal-contact { margin: 48px 0 96px; }

/* ---------- Rámutatás (csak egérrel) ---------- */

@media (hover: hover) {
  .desktop-nav a:hover { color: var(--accent); text-decoration: underline 2px; text-underline-offset: 8px; }
  .hit-title a:hover { color: var(--ink); text-decoration: underline 2px; text-decoration-color: var(--link); text-underline-offset: .2em; }
  .post-card:hover .post-title a { color: var(--ink); text-decoration: underline 2px; text-decoration-color: var(--link); text-underline-offset: .2em; }
  :is(.footer-nav, .footer-contact) :is(a, button):hover { color: var(--sand); text-decoration: underline 1px; text-underline-offset: .2em; }
  .hotlines a:hover { color: var(--ink); }
  .hotlines a:hover .hl-num { text-decoration: underline 2px; text-underline-offset: 4px; }
  .mobile-links a:hover, .mobile-hotlines a:hover { color: var(--ink); background: var(--blush); }
  .toc a:hover { color: var(--accent); }
  .topic-jump a:hover .tj-name { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
  .toc a[aria-current="location"]:hover { color: var(--ink); }
  .dialog-close:hover, .menu-toggle:hover { border-color: var(--ink); }
  .brand:hover { color: var(--ink); }
  .brand-footer:hover { color: var(--on-dark); }
}

/* ---------- Asztali elrendezés (981 px-től) ---------- */

@media (min-width: 981px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  .footer-about { grid-column: 1 / span 5; }
  .footer-nav:nth-of-type(1) { grid-column: 7 / span 3; }
  .footer-nav:nth-of-type(2) { grid-column: 10 / span 3; }

  .has-toc { --article-cols: 13.5rem minmax(0, 40rem) minmax(0, 1fr); }

  .has-toc .article-shell {
    display: grid;
    grid-template-columns: var(--article-cols);
    column-gap: 3.5rem;
    width: min(100% - 2 * var(--gutter), 66rem);
  }

  .has-toc :is(.article-head, .article-figure, .related) { grid-column: 2 / -1; }

  .has-toc .article-layout {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: var(--article-cols);
    column-gap: 3.5rem;
  }

  .has-toc .toc { grid-column: 1; align-self: start; }
  .has-toc .prose { grid-column: 2; }
  .has-toc .article-help { grid-column: 2; }
  .toc summary { display: none; }

  .legal .toc details {
    max-height: calc(100dvh - var(--header-h) - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* A ragadós oszlopok csak elég magas ablakban. */
@media (min-width: 981px) and (min-height: 760px) {
  .topic-group-head { position: sticky; top: var(--sticky-top); }
  .has-toc .toc { position: sticky; top: var(--sticky-top); }
}

@media (min-width: 1180px) {
  .has-toc .prose p.pull { width: calc(100% + 5.5rem); }
}

/* ---------- Tablet (980 px-ig) ---------- */

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-inner { gap: 12px; }
  .header-help { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }

  .footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer-about { grid-column: 1 / -1; }

  .toc { margin: 0 0 32px; border-block: 1px solid var(--rule); }
  .toc ol { padding-bottom: 12px; border-left: 0; }

  .toc a,
  .legal .toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: .9375rem;
    color: var(--link);
    text-decoration: underline 1px;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: .2em;
  }

  .toc a[aria-current="location"] { color: var(--link); }

  .topic-group { display: block; }
  .topic-group-head { margin-bottom: 16px; }
  .topic-group .is-row:first-child { border-top: 1px solid var(--rule); }
}

/* ---------- Mobil (620 px-ig) ---------- */

@media (max-width: 620px) {
  :root {
    --header-h: 60px;
    --t-prose: 1.0625rem;
    --t-lead: 1.0625rem;
  }

  .brand-badge { width: 40px; height: 40px; }

  .search { margin-top: 32px; }
  .search-field input { height: 56px; padding-right: 128px; font-size: 1.0625rem; }
  .search-field .button { top: 6px; right: 6px; height: 44px; }

  .site-footer { padding: 56px 0 24px; }
  .footer-bottom { margin-top: 40px; }

  dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  dialog[open] { transition: opacity 160ms var(--ease); }

  @starting-style {
    dialog[open] { opacity: 0; translate: 0 0; }
  }

  dialog { scroll-padding-top: 72px; }
  .dialog-bar { height: 56px; padding: 0 8px 0 20px; }
  .dialog-body { padding: 24px 20px 40px; }
  .dialog-body p { font-size: 1.0625rem; line-height: 1.7; }
  .dialog-body :is(.dialog-limit, .dialog-source, .small) { font-size: .875rem; line-height: 1.5; }
  #dialog-title { font-size: 1.25rem; }

  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { padding-bottom: 0; border-bottom: 0; }
  dl.facts dd { padding-top: 2px; }

  .article-head { padding-top: 32px; }
  .article-head h1 { font-size: 2rem; }
  .article-figure { margin: 24px calc(-1 * var(--gutter)) 32px; }
  .article-hero img { border-radius: 0; }
  .page-article .prose > p:first-child { font-size: 1.125rem; }
  .prose h2 { font-size: 1.1875rem; }
  aside.article-help { margin-top: 48px; padding: 24px 20px; }
  .related { margin: 64px 0 72px; }
  .related .post-list { grid-template-columns: 1fr; }

  .page-head { padding: 32px 0; }

  .is-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    column-gap: 16px;
  }

  .is-row .card-image img { border-radius: var(--r-sm); }
  .is-row .post-title { font-size: 1.0625rem; }
  .is-row .post-lead { -webkit-line-clamp: 2; }
  .topic-group { padding: 0 0 40px; }
  .topic-group:first-child { margin-top: 40px; }
  .index-help { margin: 48px 0 72px; }
}

@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 379px) {
  .brand-name { display: none; }
}

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