/* ==========================================================================
   Pályázat4me — content pages and the homepage additions

   Loaded after styles.css on every page. styles.css is the Indulási Tábla
   design system (tokens, nav, board, tickets, footer); this file only adds
   the layouts the generated pages and the newer homepage sections need, in
   the same tokens. Nothing here overrides a styles.css rule.
   ========================================================================== */

/* ── shared blocks ──────────────────────────────────────────────────── */

.crumbs { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-55); padding: 26px 0 0; }
.crumbs a { color: var(--teal-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--line-strong); }

.list-head { max-width: 820px; padding: 34px 0 18px; }
.list-head .lead { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--ink-70); }
.checked { margin-top: 14px; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-55); }
.h2 { font-family: var(--display); font-weight: 600; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; margin: 10px 0 12px; }
.h1--call { text-transform: none; letter-spacing: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.muted { color: var(--ink-55); }
.small { font-size: 14px; }
.list-section { margin-top: 30px; }

/* status stamps, in the board's vocabulary */
.status { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px 4px; border-radius: 4px; border: 1px solid var(--line-strong); white-space: nowrap; }
.status--open { color: var(--teal-ink); border-color: var(--teal); background: var(--teal-soft); }
.status--closing { color: var(--amber-ink); border-color: var(--amber); background: var(--amber-soft); }
.status--suspended { color: var(--ink-70); background: var(--paper-warm); }
.status--closed { color: var(--ink-55); border-style: dashed; }

/* ── call and division tables ───────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.calls { width: 100%; border-collapse: collapse; font-size: 15px; }
.calls th {
  font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-55); text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap;
}
.calls--sortable th[data-sort-key] { cursor: pointer; user-select: none; }
.calls--sortable th[data-sort-key]:hover { color: var(--ink); }
.calls th[aria-sort="ascending"]::after { content: " ↑"; }
.calls th[aria-sort="descending"]::after { content: " ↓"; }
.calls td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.calls tr:last-child td { border-bottom: 0; }
.calls td a { color: inherit; text-decoration: none; }
.calls td a:hover { color: var(--indigo-deep); text-decoration: underline; }
.calls .cell-name { min-width: 26ch; max-width: 56ch; line-height: 1.35; }
.calls .num { text-align: right; white-space: nowrap; }
.calls td.mono { white-space: nowrap; }
.calls tr[data-status="closing"] td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.calls tr[data-status="closed"] td { color: var(--ink-55); }

/* ── one call ───────────────────────────────────────────────────────── */

.call { padding-bottom: 20px; }
.call__head { max-width: 860px; padding: 30px 0 10px; }
.call__code { margin-top: 10px; font-size: 15px; color: var(--teal-ink); letter-spacing: 0.06em; }
.call__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr); gap: 40px; align-items: start; margin-top: 24px; }
.call__main section + section { margin-top: 30px; }
.call__main h2 { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.call__main p { font-size: 16.5px; line-height: 1.6; color: var(--ink-70); }
.call__main p + p { margin-top: 10px; }
.facts-list { list-style: none; padding: 0; margin: 0 0 12px; }
.facts-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-70); }
.facts-list li:last-child { border-bottom: 0; }
.facts-list strong { color: var(--ink); }
.facts-list a { color: var(--teal-ink); }

.facts { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.facts th { text-align: left; font-weight: 600; color: var(--ink-55); padding: 10px 14px; width: 42%; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; letter-spacing: 0.02em; }
.facts td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

.cta-card { margin-top: 20px; padding: 22px 22px 24px; border-radius: 12px; background: var(--board); color: var(--board-text); }
.cta-card__title { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-bright); line-height: 1.1; }
.cta-card p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--board-dim); }
.cta-card .btn { margin-top: 16px; }

.notice { margin: 20px 0 0; padding: 14px 18px; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--amber); font-size: 15.5px; line-height: 1.5; }
.notice--closed { background: var(--paper-warm); border-color: var(--line-strong); }
.notice a { color: var(--indigo-deep); font-weight: 600; }

.cta-band { margin: 56px 0 72px; padding: 30px 32px 34px; border-radius: 14px; background: var(--board); color: var(--board-text); }
.cta-band__title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-bright); line-height: 1.05; }
.cta-band p + p { margin-top: 10px; color: var(--board-dim); font-size: 16px; max-width: 64ch; }
.cta-band .btn { margin-top: 18px; }

/* ── explainer page (hogyan-mukodik) ────────────────────────────────── */

.explainer { max-width: 820px; }
.explainer section + section { margin-top: 40px; }
.explainer h2 { font-family: var(--display); font-weight: 600; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; }
.explainer p, .explainer li { font-size: 17px; line-height: 1.65; color: var(--ink-70); }
.explainer p + p { margin-top: 12px; }
.explainer ul, .explainer ol { padding-left: 22px; margin-top: 10px; }
.explainer li + li { margin-top: 6px; }
.explainer strong { color: var(--ink); }
.explainer .table-wrap { margin-top: 16px; }
.station { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.station:last-child { border-bottom: 1px solid var(--line); }
.station__no { font-family: var(--mono); font-weight: 700; font-size: 26px; color: var(--teal-ink); line-height: 1; padding-top: 4px; }
.station h3 { font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.station p { margin-top: 6px; }
.explainer .video { margin-top: 18px; border-radius: 12px; overflow: hidden; background: var(--board); }
.explainer .video video { display: block; width: 100%; height: auto; }

/* ── homepage additions ────────────────────────────────────────────── */

h1.hero__headline { margin: 0; }
.reviewed { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-55); }

.plans { margin-top: 44px; }
.plans__title { font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; }
.plans__lead { font-size: 15px; color: var(--ink-55); margin-bottom: 14px; }
.plans .calls th:first-child, .plans .calls td:first-child { font-weight: 600; color: var(--ink); }
.plans .calls td { font-size: 14.5px; }
.plans .yes { color: var(--teal-ink); font-weight: 600; }
.plans .no { color: var(--ink-55); }


/* ── 404 ───────────────────────────────────────────────────────────── */

.lost { max-width: 720px; padding: 70px 0 90px; }
.lost__code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber-ink); }
.lost p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--ink-70); }
.lost .btn { margin-top: 24px; margin-right: 10px; }

@media (max-width: 860px) {
  .call__grid { grid-template-columns: 1fr; gap: 28px; }
  .station { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .cta-band { padding: 24px 22px 26px; }
}

/* the hero's H1 carries the head term as a small kicker line above the headline */
.hero__kicker { display: block; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.plans__title--gap { margin-top: 34px; }
