/* Meridia – látványterv v4 – alap és a „Papír” megjelenés (az arany–zöld: gold.css)
   Statikus prototípus: a játék kódjától független. */

/* ---------- 1. Alapértékek ---------- */
:root {
  --paper: #f2ede1;
  --surface: #fbf8f0;
  --surface-2: #ece5d5;
  --surface-3: #e3dac6;
  --ink: #18211c;
  --ink-2: #47534c;
  --ink-3: #78837b;
  --line: #d8ceb9;
  --line-2: #c3b79d;

  --green-950: #0b1d16;
  --green-900: #10291f;
  --green-800: #173a2c;
  --green-700: #1f4d3a;
  --green-600: #2a6249;
  --green-tint: #dde8df;

  --brass: #9a7226;
  --brass-2: #c39a4a;
  --brass-tint: #f0e3c3;

  --yes: #2c7a4d;
  --yes-tint: #d9ecdf;
  --no: #a8372b;
  --no-tint: #f3dcd6;
  --abs: #a9761c;
  --abs-tint: #f3e6c8;
  --info: #2a5a86;
  --info-tint: #dbe6f0;

  --rail-bg: var(--green-900);
  --rail-ink: #e7e2d2;
  --rail-ink-2: #9fb3a6;
  --rail-line: rgba(255, 255, 255, .09);
  --tape-bg: #0b1511;

  --p-nlp: #1f8a36;
  --p-mdu: #2f78d6;
  --p-isz: #25346b;
  --p-mszdm: #d8372c;
  --p-fgl: #8a8f89;

  --serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --nav-h: 46px;
  --dock-w: 312px;
  --top-h: 72px;
  --tape-h: 28px;
  --r: 5px;
  --shadow: 0 1px 0 rgba(24, 33, 28, .04), 0 6px 18px -12px rgba(24, 33, 28, .35);
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #0d1411;
  --surface: #141d19;
  --surface-2: #1a2520;
  --surface-3: #22302a;
  --ink: #ebe6d8;
  --ink-2: #b4bbaf;
  --ink-3: #7e897f;
  --line: #27352e;
  --line-2: #36473e;
  --green-700: #3d8c6a;
  --green-600: #56a583;
  --green-tint: #16281f;
  --brass: #d2aa5c;
  --brass-2: #d2aa5c;
  --brass-tint: #2b2516;
  --yes: #58b07c;
  --yes-tint: #152a1e;
  --no: #de6b5d;
  --no-tint: #2f1916;
  --abs: #d7a443;
  --abs-tint: #2c2413;
  --info: #6fa3d3;
  --info-tint: #142230;
  --rail-bg: #09100d;
  --tape-bg: #060b09;
  --p-isz: #6e83cf;
  --p-nlp: #3aa652;
  --p-mdu: #4f93ea;
  --p-mszdm: #e8574c;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.45;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-700); }
a.lnk, .prose a { color: var(--green-700); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--green-700) 35%, transparent); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0 0 .7em; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.num, .tbl td.n, .tbl th.n { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.up { color: var(--yes); } .down { color: var(--no); } .flat { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- 2. Keret (felső menü – az egyetlen navigáció) ---------- */
.app {
  display: grid; min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) var(--dock-w);
  grid-template-rows: var(--tape-h) var(--top-h) var(--nav-h) 1fr;
  grid-template-areas: "tape tape" "top top" "rail rail" "main dock";
}
html[data-dock="off"] .app { grid-template-columns: minmax(0, 1fr) 0; }

/* árfolyamszalag */
.tape {
  grid-area: tape; background: var(--tape-bg); color: #cfd8d0; display: flex; align-items: center; gap: 0;
  font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; padding: 0 22px;
  border-bottom: 1px solid #000;
}
.tape .t { padding: 0 13px; border-right: 1px solid rgba(255, 255, 255, .09); display: flex; gap: 7px; align-items: baseline; }
.tape .t:first-child { padding-left: 0; }
.tape .t b { color: #fff; font-weight: 500; }
.tape .t .k { color: #d8b869; letter-spacing: .04em; }
.tape .up { color: #6fd098; } .tape .down { color: #f08a7c; }
.tape .sp { flex: 1; }
.tape .live { color: #9fb3a6; display: flex; align-items: center; gap: 7px; }
.tape .live i { width: 6px; height: 6px; border-radius: 50%; background: #6fd098; box-shadow: 0 0 0 3px rgba(111, 208, 152, .18); }

/* fejléc: címer, erőforrások, játékidő, karakter */
.top {
  grid-area: top; position: relative; z-index: 51; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; background: var(--paper);
}
.brand-b { display: flex; align-items: center; gap: 12px; margin-right: 8px; }
.brand-b img { width: 52px; height: auto; }
.brand-b .w { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.brand-b .s { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-top: 5px; white-space: nowrap; }
.hud, .clock { display: flex; align-items: center; min-width: 0; }
.hud-i { display: flex; align-items: center; gap: 9px; padding: 0 14px; border-left: 1px solid var(--line); min-width: 0; }
.hud > .hud-i:first-child { border-left: 0; }
.med { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brass-tint); color: var(--brass); border: 1px solid var(--brass-2); }
.med svg.i { width: 18px; height: 18px; }
.hv { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.hv b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.hv b small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.hv > span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.hv b.date { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.hv .phase { letter-spacing: .02em; text-transform: none; font-size: 11.5px; color: var(--green-700); }
.hv .hm { height: 3px; background: var(--surface-3); border-radius: 9px; margin: 3px 0 0; }
.hv .hm i { display: block; height: 100%; background: var(--brass-2); border-radius: 9px; }
.top .sp { flex: 1; }
.only-m { display: none !important; }
.search {
  display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; width: min(250px, 20vw);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--rail-line); border-radius: var(--r); color: var(--rail-ink-2); cursor: text;
}
.search span { flex: 1; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; color: var(--ink-2); background: var(--surface-2); }
.rail kbd { background: none; border-color: rgba(255, 255, 255, .22); color: var(--rail-ink-2); }
.icb {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r);
  border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink-2);
}
.icb:hover { background: var(--surface-2); color: var(--ink); }
.icb .bdg { position: absolute; top: 2px; right: 1px; }
.bdg { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--no); color: #fff; font-size: 10.5px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.bdg.q { background: var(--brass); }
.me {
  display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); cursor: pointer; position: relative;
}
.me .nm { font-weight: 600; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.me .rl { font-size: 11px; color: var(--ink-3); line-height: 1.15; white-space: nowrap; }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 8px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; cursor: default;
}
.me.open .me-menu { display: block; }
.me-menu h5 { margin: 6px 8px 4px; font: 600 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.me-menu .ch { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; }
.me-menu .ch:hover { background: var(--surface-2); color: inherit; }
.me-menu .ch.on { background: var(--green-tint); }
.me-menu .ch small { display: block; color: var(--ink-3); font-size: 11.5px; }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.me-menu .row { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.me-menu .row:hover { background: var(--surface-2); color: inherit; }


/* menüsor */
.rail {
  grid-area: rail; position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: stretch; padding: 0 16px;
  background: var(--rail-bg); color: var(--rail-ink); border-bottom: 1px solid #000;
}
.rail a:hover { color: #fff; }
.nav { display: flex; gap: 2px; align-items: stretch; }
.nav-sec { position: relative; display: flex; }
.nav-top { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: var(--nav-h); white-space: nowrap; font-weight: 500; font-size: 13.5px; color: var(--rail-ink); }
.nav-top svg.i { color: var(--rail-ink-2); width: 17px; height: 17px; }
.nav-top:hover { background: rgba(255, 255, 255, .06); }
.nav-top .car { margin-left: 2px; opacity: .45; display: flex; }
.nav-top .st { display: none; }
.nav-sec.on > .nav-top { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 -3px 0 var(--brass-2); }
.nav-sec.on > .nav-top svg.i { color: var(--brass-2); }
.nav-sub { position: absolute; top: var(--nav-h); left: 0; min-width: 250px; padding: 8px; border: 1px solid #000; border-top: 0; background: var(--rail-bg); border-radius: 0 0 8px 8px; box-shadow: 0 18px 30px -14px #000; display: none; }
.nav-sec:hover .nav-sub, .nav-sec:focus-within .nav-sub { display: block; }
.nav-sub a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 4px; font-size: 13.5px; color: var(--rail-ink-2); }
.nav-sub a:hover { background: rgba(255, 255, 255, .05); }
.nav-sub a.on { color: #fff; font-weight: 500; }
.nav-sub a .bdg { margin-left: auto; }
.nav-sub a.ghost { opacity: .78; }
.rail-foot { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rail-links { display: flex; gap: 4px; font-size: 12px; color: var(--rail-ink-2); padding-left: 10px; border-left: 1px solid var(--rail-line); }
.rail-links a { display: inline-flex; gap: 5px; align-items: center; padding: 6px; border-radius: 4px; }
.rail-links a:hover { background: rgba(255, 255, 255, .06); }
.rail-links span { display: none; }

/* hangulatkép az oldal tetején (a papíros változatban nincs) */
.backdrop { display: none; }

/* fő tartalom */
.main { grid-area: main; min-width: 0; padding: 20px 24px 60px; }
.wrap { max-width: 1480px; margin: 0 auto; }

/* Napirend-dokk */
.dock {
  grid-area: dock; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; scrollbar-width: thin;
  border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column;
}
html[data-dock="off"] .dock { display: none; }
.dock-h { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dock-h .k { display: flex; justify-content: space-between; align-items: center; }
.dock-h h2 { font-size: 19px; }
.dock-h p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.dock-sec { padding: 10px 12px 4px; }
.dock-sec > h3 { font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 4px 4px 8px; display: flex; justify-content: space-between; }
.todo { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 10px 11px; margin-bottom: 8px; position: relative; }
.todo.urgent { border-color: color-mix(in srgb, var(--no) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--no); }
.todo.soon { box-shadow: inset 3px 0 0 var(--abs); }
.todo.calm { box-shadow: inset 3px 0 0 var(--green-600); }
.todo .tt { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.todo .tt time, .todo .tt .cd { font-family: var(--mono); letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.todo.urgent .tt .cd { color: var(--no); }
.todo h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 600; margin: 4px 0 2px; line-height: 1.3; }
.todo p { font-size: 12px; color: var(--ink-2); margin: 0 0 7px; }
.todo .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.todo.done { opacity: .6; }
.todo.done .acts { display: none; }
.todo .okmsg { display: none; font-size: 12px; color: var(--yes); font-weight: 500; }
.todo.done .okmsg { display: flex; gap: 6px; align-items: center; }
.dock-foot { margin-top: auto; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- 3. Építőelemek ---------- */
.ph { position: relative; display: flex; align-items: flex-end; gap: 20px; margin: -2px 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); min-height: 74px; }
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--ink); }
.ph .tx { position: relative; z-index: 1; min-width: 0; flex: 1; }
.crumbs { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 5px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { text-decoration: underline; }
.ph h1 { font-size: 34px; letter-spacing: -.012em; }
.ph .sub { color: var(--ink-2); margin-top: 5px; font-size: 14px; max-width: 78ch; }
.ph .acts { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph-art { position: absolute; right: 0; top: -20px; bottom: 0; width: 44%; background-size: cover; background-position: center 40%; opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 55%), linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 55%); pointer-events: none; filter: saturate(.75); }
html[data-theme="dark"] .ph-art { opacity: .34; }
.ph.has-art .acts { background: color-mix(in srgb, var(--paper) 78%, transparent); padding: 6px; border-radius: 8px; backdrop-filter: blur(4px); }

.kicker { font: 600 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.stack { display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.g > * { min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapf { flex-wrap: wrap; }
.sp { flex: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px 10px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { font: 600 11px/1.2 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.card-h h2 svg.i, .card-h h3 svg.i { color: var(--brass); width: 15px; height: 15px; }
.card-h .more { margin-left: auto; font-size: 12px; color: var(--green-700); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.card-h .more:hover { text-decoration: underline; }
.card-h .seg { margin-left: auto; }
.card-b { padding: 14px; }
.card-b.flush { padding: 0; }
.card-f { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.pri { background: var(--green-800); border-color: var(--green-900); color: #f4efe0; }
.btn.pri:hover { background: var(--green-700); color: #fff; }
html[data-theme="dark"] .btn.pri { background: #2a6249; border-color: #2a6249; }
.btn.brass { background: var(--brass-tint); border-color: var(--brass-2); color: var(--ink); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.yes { border-color: var(--yes); color: var(--yes); background: var(--yes-tint); }
.btn.no { border-color: var(--no); color: var(--no); background: var(--no-tint); }
.btn.abs { border-color: var(--abs); color: var(--abs); background: var(--abs-tint); }
.btn.yes:hover, .btn.yes.sel { background: var(--yes); color: #fff; }
.btn.no:hover, .btn.no.sel { background: var(--no); color: #fff; }
.btn.abs:hover, .btn.abs.sel { background: var(--abs); color: #fff; }
.btn.block { width: 100%; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 5px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--green-800); color: #f4efe0; }
html[data-theme="dark"] .seg button.on { background: #2a6249; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: .03em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.vote { background: var(--no-tint); color: var(--no); }
.tag.debate { background: var(--abs-tint); color: var(--abs); }
.tag.ok { background: var(--yes-tint); color: var(--yes); }
.tag.info { background: var(--info-tint); color: var(--info); }
.tag.brass { background: var(--brass-tint); color: var(--brass); }
.tag.line { background: none; border: 1px solid var(--line-2); }
.tag i.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.pulse i.dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.pc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.pc i { width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--p-fgl)); flex: none; }
.pc.lg i { width: 12px; height: 12px; }
[data-p="nlp"] { --c: var(--p-nlp); } [data-p="mdu"] { --c: var(--p-mdu); } [data-p="isz"] { --c: var(--p-isz); } [data-p="mszdm"] { --c: var(--p-mszdm); } [data-p="fgl"] { --c: var(--p-fgl); }

.av { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-family: var(--serif); font-weight: 600;
  font-size: calc(var(--s) * .4); color: #f4efe0; background: var(--green-700); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--c, var(--line-2)); letter-spacing: .02em; }
.av.sm { --s: 24px; } .av.lg { --s: 48px; } .av.xl { --s: 104px; }
.av.npc { background: var(--ink-3); }
.av.j { background: #6b4a2a; } .av.b { background: #3d4f66; }
.per { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.per b { font-weight: 600; display: inline-block; line-height: 1.2; }
.per small { color: var(--ink-3); font-size: 11.5px; display: block; line-height: 1.25; }
a.per:hover b { text-decoration: underline; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 600 10.5px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.tbl .n { text-align: right; white-space: nowrap; }
.tbl td.t { font-weight: 600; }
.tbl.tight td { padding: 6px 10px; }
.tkr { font-family: var(--mono); font-weight: 500; font-size: 12px; padding: 1px 5px; border-radius: 3px; background: var(--green-800); color: #f0e7cf; letter-spacing: .03em; }

.stat { padding: 11px 13px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; position: relative; }
.stat .l { font: 600 10.5px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; margin-top: 5px; white-space: nowrap; }
.stat .v small { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.stat .d { font-size: 11.5px; margin-top: 2px; white-space: nowrap; }
.stat svg.spark { position: absolute; right: 10px; top: 30px; width: 64px; height: 24px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stats.two .stat:nth-child(3n) { border-right: 1px solid var(--line); }
.stats.two .stat:nth-child(2n) { border-right: 0; }
.stats.two .stat:nth-last-child(-n+2) { border-bottom: 0; }
.stats.two .stat .v { font-size: 24px; }
.stats.two .stat svg.spark { width: 46px; top: 34px; right: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats .stat:nth-child(3n) { border-right: 0; }
.stats.r2 .stat:nth-last-child(-n+3) { border-bottom: 0; }
.stats.c4 { grid-template-columns: repeat(4, 1fr); }
.stats.c4 .stat:nth-child(3n) { border-right: 1px solid var(--line); }
.stats.c4 .stat:nth-child(4n) { border-right: 0; }
.stats.c4 .stat { border-bottom: 0; }
.stats.c5 { grid-template-columns: repeat(5, 1fr); }
.stats.c5 .stat { border-bottom: 0; border-right: 1px solid var(--line) !important; }
.stats.c5 .stat:last-child { border-right: 0 !important; }
svg.spark path { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
svg.spark.up path { stroke: var(--yes); } svg.spark.down path { stroke: var(--no); }
svg.spark circle { fill: var(--ink); }

.vbar { display: flex; height: 12px; border-radius: 2px; overflow: hidden; background: var(--surface-3); position: relative; }
.vbar i { display: block; height: 100%; }
.vbar .y { background: var(--yes); } .vbar .n { background: var(--no); } .vbar .a { background: var(--abs); }
.vbar-w { position: relative; padding-top: 14px; }
.vbar-w .mk { position: absolute; top: 0; bottom: -3px; width: 0; border-left: 1.5px dashed var(--ink); }
.vbar-w .mk span { position: absolute; top: -4px; left: 4px; font-size: 10px; white-space: nowrap; color: var(--ink-2); background: var(--surface); padding: 0 2px; }
.vbar-w .mk.l span { left: auto; right: 4px; }
.vleg { display: flex; gap: 14px; font-size: 12.5px; margin-top: 7px; flex-wrap: wrap; }
.vleg b { font-family: var(--mono); font-weight: 500; }
.vleg span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }

.hbar { display: grid; grid-template-columns: 70px 1fr 104px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.hbar .tr { height: 14px; background: var(--surface-2); border-radius: 2px; position: relative; }
.hbar .tr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 2px; }
.hbar .tr u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.hbar .val { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.hbar .val small { font-size: 11px; margin-left: 4px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.feed .c { font: 600 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 3px; }
.feed .c.par { color: var(--green-700); } .feed .c.gov { color: var(--info); } .feed .c.pri { color: var(--abs); } .feed .c.prt { color: var(--no); }
.feed b { font-weight: 600; }
.feed p { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.feed li.hi { background: color-mix(in srgb, var(--brass-tint) 55%, transparent); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 9px 13px 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brass-2); font-weight: 600; }
.tabs button .ct { font-family: var(--mono); font-size: 11px; background: var(--surface-2); padding: 0 5px; border-radius: 99px; color: var(--ink-2); }
[data-pane] { display: none; } [data-pane].on { display: block; }

.steps { display: flex; counter-reset: s; }
.steps li { list-style: none; flex: 1; position: relative; padding: 0 8px 0 0; font-size: 12px; color: var(--ink-3); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); font: 600 11px var(--mono); margin-bottom: 6px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 11px; left: 22px; right: 0; border-top: 1.5px solid var(--line-2); }
.steps li:last-child::after { display: none; }
.steps li b { display: block; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.steps li.done::before { content: "✓"; background: var(--green-700); border-color: var(--green-700); color: #fff; }
.steps li.done::after { border-color: var(--green-700); }
.steps li.done b { color: var(--ink); }
.steps li.now::before { background: var(--no); border-color: var(--no); color: #fff; box-shadow: 0 0 0 4px var(--no-tint); }
.steps li.now b { color: var(--no); }
.steps { margin: 0; padding: 0; }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.dl dt { color: var(--ink-3); } .dl dd { margin: 0; text-align: right; font-weight: 500; }

.meter { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green-600); border-radius: 99px; }
.meter.brass i { background: var(--brass-2); }

.note { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--brass-2); background: var(--brass-tint); border-radius: var(--r); font-size: 13px; }
.note svg.i { color: var(--brass); margin-top: 2px; }

/* ---------- 4. Oldalfüggő elemek ---------- */
/* címlap – vezető hír */
.lead { display: grid; grid-template-columns: .82fr 1fr; min-height: 300px; overflow: hidden; }
.lead .pic { background-size: cover; background-position: center; min-height: 220px; border-right: 1px solid var(--line); position: relative; }
.lead .pic span { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; opacity: .85; }
.lead .tx { padding: 18px 20px; display: flex; flex-direction: column; }
.lead h2 { font-size: 28px; margin: 8px 0 10px; }
.lead p { color: var(--ink-2); font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.byline { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.byline b { color: var(--ink-2); }
.hl { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.hl:last-child { border-bottom: 0; }
.hl:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); color: inherit; }
.hl:hover h4 { text-decoration: underline; text-decoration-color: var(--line-2); }
.hl h4 { font-size: 16.5px; margin: 4px 0 3px; line-height: 1.22; }
.hl p { font-size: 12.5px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl .o { font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); display: flex; gap: 8px; }
.hl .o em { font-style: normal; color: var(--ink-3); font-weight: 500; letter-spacing: .03em; text-transform: none; }
.hl.pic { display: grid; grid-template-columns: 1fr 92px; gap: 12px; }
.hl.pic img { width: 92px; height: 68px; object-fit: cover; border-radius: 3px; }

/* patkó */
.hemi { width: 100%; height: auto; display: block; }
.hemi .seat { stroke: var(--surface); stroke-width: 1.2; cursor: pointer; transition: r .12s; }
.hemi .seat.me { stroke: var(--brass-2); stroke-width: 3; }
.hemi .seat.pl { stroke: var(--ink); stroke-width: 1.6; }
.hemi .seat:hover { r: 11; }
.hemi text.ini { font: 600 7.5px var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; }
.hemi .dim { opacity: .22; }
.hemi text.big { font: 600 44px var(--serif); fill: var(--ink); text-anchor: middle; }
.hemi text.cap { font: 600 10px var(--sans); letter-spacing: .12em; fill: var(--ink-3); text-anchor: middle; text-transform: uppercase; }
.hemi .dais { fill: var(--surface-2); stroke: var(--line-2); }
.hemi-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12px; padding: 5px 8px; border-radius: 4px; white-space: nowrap; transform: translate(-50%, -130%); opacity: 0; transition: opacity .1s; z-index: 5; }

/* törvényalkotási tábla */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.pipe .col { border-right: 1px solid var(--line); padding: 10px; min-height: 150px; }
.pipe .col:last-child { border-right: 0; }
.pipe .col > h4 { font: 600 10.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; display: flex; justify-content: space-between; }
.pipe .col > h4 b { font-family: var(--mono); color: var(--ink-2); }
.bcard { display: block; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 9px 10px; margin-bottom: 8px; }
.bcard:hover { border-color: var(--line-2); color: inherit; box-shadow: var(--shadow); }
.bcard .code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 2px 6px; flex-wrap: wrap; }
.bcard .code span, .bcard .ft > span { white-space: nowrap; }
.bcard h5 { font-family: var(--serif); font-size: 14.5px; font-weight: 600; margin: 4px 0 6px; line-height: 1.22; }
.bcard .ft { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-3); gap: 3px 6px; flex-wrap: wrap; }
.bcard.hot { border-color: var(--no); box-shadow: inset 0 3px 0 var(--no); }
.bcard .cd { font-family: var(--mono); color: var(--no); font-weight: 500; }
.bcard.two3::after { content: "⅔"; }

/* törvényszöveg */
.law { font-family: var(--serif); font-size: 17px; line-height: 1.62; max-width: 72ch; }
.law p { margin: 0 0 1em; padding-left: 3.4em; text-indent: -3.4em; }
.law p b { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; display: inline-block; width: 3.4em; text-indent: 0; color: var(--brass); }
.law p:hover { background: color-mix(in srgb, var(--brass-tint) 50%, transparent); }
.speech { border-left: 3px solid var(--c, var(--line-2)); padding: 2px 0 2px 14px; margin-bottom: 20px; }
.speech h4 { font-size: 18px; margin: 8px 0 6px; }
.speech .q { font-family: var(--serif); font-size: 15.5px; line-height: 1.58; color: var(--ink); }
.speech .q p { margin-bottom: .7em; }

/* cikk */
.article { max-width: 760px; margin: 0 auto; }
.mast { text-align: center; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: 9px 0 8px; margin-bottom: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.mast .nm { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .01em; font-style: italic; }
.mast span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.article h1 { font-size: 44px; line-height: 1.06; letter-spacing: -.018em; margin: 10px 0 14px; }
.article .dek { font-family: var(--serif); font-size: 20px; line-height: 1.42; color: var(--ink-2); margin-bottom: 16px; }
.article figure { margin: 18px 0 22px; }
.article figure img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 3px; }
.article figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; display: flex; justify-content: space-between; }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.66; }
.prose h2 { font-size: 24px; margin: 1.5em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: .06em .09em 0 0; font-weight: 600; color: var(--green-700); }
.pull { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); padding: 12px 0; margin: 1.4em 0; font-family: var(--serif); font-size: 23px; line-height: 1.3; font-style: italic; }

/* lapok */
.stand { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.paper { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.paper:hover { border-color: var(--line-2); color: inherit; box-shadow: var(--shadow); }
.paper .cv { aspect-ratio: 4/3; background: var(--surface-2) center/cover; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 17px; text-align: center; padding: 6px; color: var(--ink-2); line-height: 1.1; }
.paper .inf { padding: 7px 8px 8px; }
.paper b { font-size: 12.5px; display: block; line-height: 1.2; }
.paper small { font-size: 10.5px; color: var(--ink-3); }
.paper.on { border-color: var(--brass-2); box-shadow: 0 0 0 2px var(--brass-tint); }

/* iránytű */
.compass { width: 100%; height: auto; display: block; }
.compass .ax { stroke: var(--line-2); stroke-width: 1; }
.compass .gr { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.compass text { font: 500 10px var(--sans); fill: var(--ink-3); }
.compass text.pl { font: 600 11px var(--sans); fill: var(--ink); }
.compass .frame { fill: var(--paper); stroke: var(--line); }

/* vonaldiagram */
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart text { font: 500 10px var(--mono); fill: var(--ink-3); }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .zero { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .endl { font: 600 10.5px var(--sans); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 2.5px; background: var(--c); margin-right: 6px; vertical-align: middle; }

/* teendők nagy listája */
.task { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.task h4 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; margin: 3px 0 2px; }
.task p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.task .rt { text-align: right; display: grid; gap: 6px; justify-items: end; }
.task .cd { font-family: var(--mono); font-size: 12.5px; }
.task.urgent { box-shadow: inset 3px 0 0 var(--no); } .task.urgent .cd { color: var(--no); }
.task.soon { box-shadow: inset 3px 0 0 var(--abs); }
.acts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.act { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: var(--paper); }
.act:hover { border-color: var(--brass-2); color: inherit; }
.act img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.act b { font-size: 13px; display: block; line-height: 1.2; }
.act small { font-size: 11px; color: var(--ink-3); }

/* adatlap */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 20px 22px; }
.hero h1 { font-size: 36px; }
.hero .ti { color: var(--ink-2); margin-top: 4px; }
.band { height: 6px; background: var(--c); border-radius: var(--r) var(--r) 0 0; }
.tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-2); }
.tl li { position: relative; padding: 0 0 14px 12px; font-size: 13px; }
.tl li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brass-2); }
.tl li time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); display: block; }
.attr { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.attr b { font-family: var(--mono); font-weight: 500; text-align: right; }

/* arculati lap */
.sw { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; font-size: 11.5px; }
.sw i { display: block; height: 54px; }
.sw div { padding: 6px 8px; background: var(--surface); }
.sw b { display: block; }

/* tervkapcsoló */
.plan { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 99px;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .55); font-size: 12px; }
.plan b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; opacity: .75; }
.plan .seg { border-color: transparent; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.plan .seg button { color: var(--paper); border-right-color: transparent; padding: 5px 11px; }
.plan .seg button.on { background: var(--brass-2); color: #17130a; font-weight: 600; }

/* gyorskereső */
.pal-bg { position: fixed; inset: 0; background: rgba(8, 14, 11, .5); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.pal-bg.on { display: flex; }
.pal { width: min(620px, 92vw); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 70px -20px #000; overflow: hidden; }
.pal input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 15px 18px; font-size: 17px; outline: none; }
.pal ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.pal li a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.pal li a:hover, .pal li.sel a { background: var(--green-tint); color: inherit; }
.pal li small { margin-left: auto; color: var(--ink-3); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }

.toast { position: fixed; right: 18px; bottom: 64px; z-index: 110; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-size: 13px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; max-width: 340px; }
.toast.on { opacity: 1; transform: none; }

.bnav { display: none; }
.dock-fab { display: none; }

/* ---------- 6. Reszponzív ---------- */
@media (max-width: 1500px) {
  .nav-top .lt { display: none; } .nav-top .st { display: inline; } .brand-b { flex: none; } .hv .phase, .me .rl, .hv b small { display: none !important; } .hud-i { padding: 0 10px; }
  .tape .t.x2 { display: none; }
  .stand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1359px) {
  .app, html[data-dock="off"] .app { grid-template-columns: minmax(0, 1fr) 0; }
  .nav-top .lt { display: none; } .nav-top .st { display: inline; }
  .dock, html[data-dock="off"] .dock { display: flex; position: fixed; right: 0; top: 0; height: 100vh; width: min(340px, 92vw); z-index: 80; transform: translateX(105%); transition: transform .22s; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .5); }
  html.dock-open .dock { transform: none; }
  .hv .phase, .me .rl { display: none !important; }
  .tape .t.x1 { display: none; }
}
@media (max-width: 1180px) {
  .c3 { grid-column: span 6; } .c4 { grid-column: span 6; } .c5, .c7, .c8, .c9 { grid-column: span 12; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud .hv > span, .clock .hv > span { display: none; } .hud-i { padding: 0 9px; } .rail .search { width: 150px; } .rail kbd { display: none; }
}
@media (max-width: 860px) {
  html { font-size: 14.5px; }
  .app, html[data-dock="off"] .app { display: block; }
  .rail, .hud { display: none; } .icb.only-m { display: inline-grid !important; }
  .top { position: sticky; top: 0; height: 52px; padding: 0 12px; gap: 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .top .brand-b { gap: 8px; margin: 0; }
  .top .brand-b img { width: 30px !important; height: 31px !important; }
  .top .brand-b .w { font-family: var(--serif); font-size: 19px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .top .brand-b .s { display: none; }


  .clock { display: none; }
  .me .tx2, .top .hide-m { display: none; }
  .me { padding: 3px; border: 0; background: none; }
  .tape { padding: 0 12px; }
  .tape .t.x0 { display: none; }
  .main { padding: 14px 12px 110px; }
  .g { gap: 12px; }
  .c2, .c3, .c4, .c5, .c6, .c7, .c8, .c9 { grid-column: span 12; }
  .ph { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ph h1 { font-size: 27px; }
  .ph .acts { justify-content: flex-start; }
  .ph-art { display: none; }
  .card-b[style*="grid-template-columns"], div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  .card-b[style*="grid-template-columns"] > div { border-left: 0 !important; padding-left: 0 !important; }

  .card-h { flex-wrap: wrap; }
  .lead { grid-template-columns: 1fr; }
  .lead .pic { border-right: 0; border-bottom: 1px solid var(--line); }
  .lead h2 { font-size: 23px; }
  .stats, .stats.c4, .stats.c5 { grid-template-columns: repeat(2, 1fr); }
  .stats .stat, .stats.c4 .stat, .stats.c5 .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .pipe { grid-template-columns: 1fr; }
  .pipe .col { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .stand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: left; padding: 16px; }
  .article h1 { font-size: 30px; }
  .prose { font-size: 17px; }
  .task { grid-template-columns: 48px 1fr; }
  .task img { width: 48px; height: 48px; }
  .task .rt { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; align-items: center; }
  .tbl-wrap { overflow-x: auto; }
  .tbl .hide-m, .hide-m { display: none; }
  .steps li b { font-size: 11px; }
  .steps li span { display: none; }
  .plan { bottom: 70px; padding: 5px 6px 5px 10px; max-width: 96vw; }
  .plan b { display: none; }
  .plan .seg button { padding: 5px 8px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--rail-bg); color: var(--rail-ink-2); border-top: 1px solid #000; padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; font-size: 10.5px; position: relative; }
  .bnav a.on { color: #fff; } .bnav a.on svg.i { color: var(--brass-2); }
  .bnav a svg.i { width: 19px; height: 19px; }
  .bnav a .bdg { position: absolute; top: 4px; left: 54%; }
  .dock { z-index: 95 !important; }
  .mast { flex-direction: column; align-items: center; gap: 2px; }
}

/* ---------- 7. v4 kiegészítések (mindkét megjelenésben) ---------- */
.hl.pic > img { grid-column: 2; grid-row: 1; }
.hl.pic > div { grid-column: 1; grid-row: 1; min-width: 0; }
.todo .th { position: absolute; right: 10px; top: 30px; width: 46px; height: 46px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.todo.has-th h4, .todo.has-th p { padding-right: 56px; }
.cpic { height: 120px; background: var(--surface-2) center 35% / cover; border-bottom: 1px solid var(--line); }

/* a sziget térképe */
.mapcard { overflow: hidden; }
.map { position: relative; overflow: hidden; background: #0d2b33; aspect-ratio: 1600 / 826; }
.map .ly { position: absolute; inset: 0; background-size: 100% 100%; background-position: center; transition: opacity .35s; }
.map .ly.prov { opacity: 0; }
.map[data-mode="prov"] .ly.prov { opacity: 1; }
.map .vg { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 6px rgba(0, 0, 0, .5); background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 24%, transparent 80%, rgba(0, 0, 0, .35)); }
.map-h { position: absolute; left: 16px; top: 12px; right: 16px; display: flex; align-items: flex-start; gap: 12px; z-index: 3; }
.map-h h2 { font-size: 24px; color: #fff; text-shadow: 0 1px 6px #000; margin-top: 3px; }
.map-h .kicker { color: #f0d588; text-shadow: 0 1px 4px #000; }
.map-h .seg { margin-left: auto; }
.city { position: absolute; z-index: 2; transform: translate(-11px, -50%); display: flex; align-items: center; gap: 7px; color: #fff; font-size: 13px; white-space: nowrap; }
.city:hover { color: #fff; }
.city.l { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -50%); }
.city i { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3c4, #d9b45f 45%, #8a6417); border: 2px solid #1a1407; box-shadow: 0 0 0 1.5px #f3d98b, 0 2px 8px rgba(0, 0, 0, .7); }
.city i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1a1407; }
.city b { padding: 3px 9px; border-radius: 3px; background: rgba(8, 20, 15, .86); border: 1px solid rgba(217, 180, 95, .7); font-weight: 600; letter-spacing: .02em; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.city:hover b { border-color: #fff3c4; }
.city.cap { transform: translate(-16px, -50%); font-size: 15px; } .city.cap.l { transform: translate(calc(-100% + 16px), -50%); }
.city.cap i { width: 32px; height: 32px; box-shadow: 0 0 0 1.5px #f3d98b, 0 0 18px 4px rgba(243, 217, 139, .65), 0 2px 8px rgba(0, 0, 0, .7); }
.city.cap i::after { content: "★"; background: none; width: auto; height: auto; color: #1a1407; font-size: 16px; line-height: 1; font-style: normal; }
.city.cap b { border-color: #f3d98b; padding: 4px 11px; }
.prov-l { position: absolute; z-index: 1; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 13.5px; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; text-align: center; opacity: 0; transition: opacity .35s; pointer-events: none; line-height: 1.15; }
.map[data-mode="prov"] .prov-l { opacity: .95; }
.map .rose { position: absolute; right: 16px; bottom: 12px; width: 62px; height: 62px; opacity: .9; z-index: 2; }
.provs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.provs a { padding: 9px 12px; border-right: 1px solid var(--line); font-size: 12px; line-height: 1.25; display: block; min-width: 0; }
.provs a:last-child { border-right: 0; }
.provs a:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); color: inherit; }
.provs b { display: flex; gap: 6px; align-items: center; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provs b i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); flex: none; }
.provs small { color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) { .stack.cw { grid-column: span 12; } }
@media (max-width: 860px) {
  .map-h h2 { font-size: 18px; } .map-h .kicker { display: none; }
  .city { font-size: 10.5px; gap: 4px; } .city b { padding: 1px 5px; } .city i { width: 14px; height: 14px; border-width: 1px; } .city i::after { width: 4px; height: 4px; }
  .city, .city.cap { transform: translate(-7px, -50%); } .city.l, .city.cap.l { transform: translate(calc(-100% + 7px), -50%); }
  .city.cap { font-size: 11.5px; } .city.cap i { width: 18px; height: 18px; } .city.cap i::after { font-size: 10px; } .city.cap b { padding: 2px 6px; }
  .prov-l { font-size: 9.5px; } .map .rose { width: 36px; height: 36px; right: 6px; bottom: 6px; }
  .provs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .provs a { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .map-h { top: auto; bottom: 8px; left: 8px; } .map-h > div { display: none; } .map-h .seg { margin-left: 0; }
  .city:not(.cap) b { display: none; }
  .ph .tx { max-width: 100%; } .ph .tx .row { flex-wrap: wrap; }
}
@media (min-width: 1501px) and (max-width: 1780px) { .rail .search { width: 150px; } .rail kbd { display: none; } .nav-top { padding: 0 10px; } }
