/*
NÉV: Mi épül itt? UI v2 – pages.css
PROJEKT: NextSheet | TÍPUS: UI asset
VERZIÓ: v0.89.1 | UTOLSÓ FRISSÍTÉS: 2026-10-26
LEÍRÁS: Második kör SSR aloldalak.
FEJLESZTŐ: Balázs Bakos · NextSheet · https://www.nextsheet.hu
CHANGELOG: v0.89.1 - 2026-10-26 - A részletező státuszblokkjában a hosszú felirat több sorra törhet.
CHANGELOG: v0.89.0 - 2026-10-25 - Új aloldalszerkezet.
*/
/* Mi épül itt? – UI v2 · aloldalak: részletező, város, archívum, módszertan */
body.page { display: flex; flex-direction: column; min-height: 100vh; }
body.page main { flex: 1; }
.main-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.search-link { display: inline-grid; }
@media (min-width: 1024px) { .search-link { display: none; } }

/* Morzsa */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* Oldalfej */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.page-hero .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { margin: 0; font: 800 clamp(30px, 6vw, 52px)/1.04 var(--font-display); letter-spacing: -.02em; max-width: 22ch; }
.page-hero .lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.hero-meta .pin { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions .btn { height: 42px; font-size: 14px; }
@media (min-width: 900px) { .page-hero .wrap { padding-top: 28px; padding-bottom: 44px; gap: 18px; } .page-hero .lead { font-size: 19px; } }

.accuracy { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); }
.accuracy[data-acc="exact"], .accuracy[data-acc="street"], .accuracy[data-acc="area"] { border-style: solid; }
.status-lg { height: 30px; font-size: 13px; padding: 0 12px; }

/* Részletező elrendezés */
.detail-layout { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1024px) {
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 36px; padding-bottom: 72px; }
  .detail-aside { position: sticky; top: calc(var(--header-h) + 20px); order: 2; }
}
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.block > h2 { margin: 0; font: 700 20px/1.25 var(--font-display); }
.block > .kicker { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.block p { margin: 0; line-height: 1.6; color: var(--text-2); }
.block-plain { background: none; border: 0; padding: 4px 0; }
@media (min-width: 900px) { .block { padding: 24px 28px; } .block > h2 { font-size: 22px; } }

/* Tények */
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact b { font: 800 22px/1.1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.fact small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.fact.muted b { color: var(--muted); font-size: 17px; font-weight: 700; }
@media (min-width: 700px) { .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.detail-aside .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Hol tart? – fázisléptető */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stepper li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; height: 6px; border-radius: 3px; background: var(--surface-2); }
.stepper li.done::before { background: var(--muted); }
.stepper li.now { color: var(--text); }
.stepper li.now::before { background: var(--accent-btn); }
.stepper li span { overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; }
.stepper li.now span::after { content: "most"; display: block; color: var(--accent); }
.stepper.is-archived li.now::before { background: var(--muted); }
.stepper.is-archived li.now span::after { content: "utolsó ismert"; color: var(--muted); }
@media (max-width: 480px) { .stepper li { font-size: 11px; } }
.status-detail { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.checked { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* Előtte / utána */
.ba { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ba > div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.ba h3 { margin: 0 0 8px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ba .after { background: var(--accent-soft); border-color: var(--accent-line); }
.ba .after h3 { color: var(--accent); }
@media (min-width: 700px) { .ba { grid-template-columns: 1fr 1fr; } }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullets li { position: relative; padding-left: 18px; line-height: 1.5; color: var(--text-2); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Ütemek */
.phase-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .phase-cards { grid-template-columns: 1fr 1fr; } }
.phase-card { padding: 16px; border-radius: 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 6px; }
.phase-card strong { font: 700 16px/1.3 var(--font-display); }
.phase-card p { font-size: 14px; }
.phase-card .meta { font-size: 13px; }

/* Idővonal */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 18px 28px; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--muted); box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.future::before { border-style: dashed; border-color: var(--mk-prep); }
.timeline li.key::before { background: var(--accent-btn); border-color: var(--accent-btn); }
.timeline time { font: 700 14px/1.3 var(--font-body); color: var(--text); }
.timeline span { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.timeline .src { font-size: 12px; color: var(--muted); }

/* Kulcs–érték */
.kv { margin: 0; display: grid; grid-template-columns: 1fr; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
@media (min-width: 700px) { .kv > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.note { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }

/* GYIK */
.faq details { border-top: 1px solid var(--line-2); padding: 14px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* Források */
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sources li a { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.sources li a:hover { border-color: var(--muted); }
.sources .src-type { display: inline-block; margin-bottom: 3px; font: 600 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sources .src-name { font-weight: 600; font-size: 15px; line-height: 1.4; display: block; }
.sources .src-date { font-size: 12px; color: var(--muted); }
.sources svg { flex: 0 0 auto; color: var(--muted); margin-top: 3px; }
.split-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split-legend div { padding: 12px; border-radius: 12px; background: var(--bg-2); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.split-legend b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }

/* Térképkártya */
.map-card { border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.map-card .map-wrap { position: relative; height: 240px; background: var(--map-tone); }
.map-card .map-wrap.tall { height: 380px; }
.map-card .map-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.map-card .map-info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.no-pin { height: 140px; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, var(--surface) 10px 20px); }

/* Akciók az oldalsávban */
.action-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); }
.action-card .row { display: flex; gap: 8px; }
.action-card .row .btn { flex: 1; }
.follow-wide[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

/* Tartalomjegyzék */
.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); }
  .toc strong { font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 8px; }
  .toc a { padding: 7px 8px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-decoration: none; }
  .toc a:hover { background: var(--bg-2); color: var(--text); }
  .toc a.is-active { background: var(--bg-2); color: var(--text); font-weight: 600; }
}

/* Kapcsolódó */
.related { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .related { grid-template-columns: 1fr 1fr; } }
.related .card { padding: 14px 16px; }
.related .card-title { font-size: 16px; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left-width: 1px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.notice svg { flex: 0 0 auto; color: var(--muted); margin-top: 2px; }
.notice strong { color: var(--text); }

/* ---------- Városoldal ---------- */
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; color: var(--text); }
a.stat:hover { border-color: var(--muted); }
.stat b { font: 800 30px/1 var(--font-display); letter-spacing: -.02em; }
.stat span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stat i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-sizing: border-box; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat b { font-size: 36px; } }
.city-search { max-width: 620px; }
.city-split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .city-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.city-map { position: relative; height: 300px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--map-tone); }
@media (min-width: 1024px) { .city-map { height: 460px; } }
.city-map .legend { position: absolute; left: 12px; top: 12px; z-index: 2; }
.city-map .btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; height: 42px; font-size: 14px; }
.featured { display: grid; gap: 12px; grid-template-columns: 1fr; }
.featured .card-title { font-size: 20px; }
.featured .lead-card { padding: 22px; gap: 12px; }
.featured .lead-card p { margin: 0; color: var(--text-2); line-height: 1.55; }
@media (min-width: 900px) { .featured { grid-template-columns: 1.4fr 1fr; } .featured .side { display: flex; flex-direction: column; gap: 12px; } }
.theme-bars { display: flex; flex-direction: column; gap: 6px; }
.theme-bars a { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.theme-bars a:hover { background: var(--bg-2); }
.theme-bars .bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.theme-bars .bar i { display: block; height: 100%; background: var(--accent-btn); border-radius: 4px; opacity: .85; }
.theme-bars b { font-variant-numeric: tabular-nums; font-size: 14px; }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.changes li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.changes li:first-child { border-top: 0; padding-top: 0; }
.changes .chg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.changes .chg-type { font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.changes .chg-type[data-type="NEW_PROJECT"] { background: var(--st-prep-bg); color: var(--st-prep-fg); }
.changes .chg-type[data-type="STATUS_CHANGED"], .changes .chg-type[data-type="CONSTRUCTION_STARTED"] { background: var(--st-build-bg); color: var(--st-build-fg); }
.changes .chg-type[data-type="COMPLETED"] { background: var(--st-done-bg); color: var(--st-done-fg); }
.changes a.chg-title { font: 700 16px/1.35 var(--font-display); color: var(--text); }
.changes p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
@media (min-width: 900px) { .changes li { grid-template-columns: 120px 1fr; gap: 16px; } .changes .chg-head { flex-direction: column; align-items: flex-start; } }
.browser-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .browser-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .browser-cards { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Archívum ---------- */
.year-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.year-chart .yc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.year-chart .yc i { width: 100%; max-width: 40px; border-radius: 6px 6px 2px 2px; background: var(--mk-done); opacity: .75; display: block; }
.year-chart .yc small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.year-chart .yc b { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.town-filter { max-width: 420px; }
.town-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .town-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .town-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.town-grid a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.town-grid a:hover { border-color: var(--muted); }
.town-grid strong { font-size: 15px; font-weight: 600; }
.town-grid small { font-size: 12px; color: var(--muted); }
.archive-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .archive-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Módszertan ---------- */
.method-layout { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) { .method-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 40px; } .method-layout .toc { position: sticky; top: calc(var(--header-h) + 20px); } }
.method-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; max-width: 820px; }
.method-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
.method-section > .eyebrow { color: var(--accent); }
.method-section > h2 { margin: -6px 0 0; font: 700 26px/1.2 var(--font-display); letter-spacing: -.01em; }
.method-section > p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .card h3 { margin: 0; font: 700 18px/1.3 var(--font-display); }
.two-col .card p { margin: 0; color: var(--text-2); line-height: 1.55; font-size: 15px; }
.two-col .card.ours { background: var(--accent-soft); border-color: var(--accent-line); }
.source-list { list-style: none; margin: 0; padding: 0; counter-reset: src; display: flex; flex-direction: column; gap: 10px; }
.source-list li { counter-increment: src; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.source-list li::before { content: counter(src, decimal-leading-zero); font: 800 18px/1 var(--font-display); color: var(--muted); padding-top: 3px; }
.source-list h3 { margin: 0 0 4px; font: 700 17px/1.3 var(--font-display); }
.source-list p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.source-list a { font-size: 14px; font-weight: 600; }
.phase-table, .acc-table { display: flex; flex-direction: column; gap: 8px; }
.phase-row, .acc-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.phase-row p, .acc-row p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.phase-row .raw { display: flex; flex-wrap: wrap; gap: 6px; }
.phase-row .raw span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); color: var(--text-2); }
.phase-row .raw span b { font-weight: 600; color: var(--muted); margin-left: 4px; }
@media (min-width: 800px) { .phase-row, .acc-row { grid-template-columns: 180px 1fr; gap: 16px; align-items: start; } }
.acc-row .acc-demo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.acc-demo i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.acc-demo .d-exact { background: var(--mk-build); border: 3px solid var(--mk-ring); box-shadow: 0 0 0 3px var(--accent-btn); }
.acc-demo .d-street { background: var(--mk-build); border: 3px solid var(--mk-ring); box-shadow: 0 0 0 1px var(--line); }
.acc-demo .d-area { width: 26px; height: 6px; border-radius: 3px; background: var(--accent-btn); }
.acc-demo .d-approx { background: color-mix(in srgb, var(--accent-btn) 15%, transparent); border: 1.5px solid var(--accent-btn); width: 24px; height: 24px; }
.acc-demo .d-town { background: color-mix(in srgb, var(--accent-btn) 10%, transparent); border: 1.5px dashed var(--accent-btn); width: 30px; height: 30px; }
.acc-demo .d-none { background: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 6px); border-radius: 4px; }
.grade-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grade { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.grade b { font: 800 28px/1 var(--font-display); }
.grade p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.contact-box { padding: 20px; border-radius: var(--radius-l); background: var(--inverse); color: var(--inverse-text); border: 1px solid var(--inverse-line); display: flex; flex-direction: column; gap: 10px; }
.contact-box p { margin: 0; color: var(--inverse-muted); line-height: 1.55; }
.contact-box a { color: var(--inverse-accent); font-weight: 600; }
.skeleton-line { height: 18px; border-radius: 6px; background: var(--surface-2); }

.page-detail .block > p > .status { max-width: 100%; height: auto; min-height: 24px; white-space: normal; overflow-wrap: anywhere; }
