/* =========================================================
   SW-A01 / A irány: „Tábla”
   Közterületi jelrendszer: keskeny, magas Archivo (62-75% szélesség) a feliratokhoz,
   szögletes táblák 3 px sarokkal, saját eszköz-piktogramok, jelzőpiros csak jelölésre.
   A Permanent Marker egyetlen helyen: graffitiként a táblára írva.
   ========================================================= */
:root {
  --paper: #E9E7E1; --card: #F6F5F1; --ink: #131415; --muted: #4E5257; --line: #CBC8C0;
  --graphite: #17191B; --graphite-2: #26292C; --red: #D42A20; --r: 3px;
  --cond: 68%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #111213; --card: #1A1C1E; --ink: #ECEAE4; --muted: #A4A8AC; --line: #2F3235; --red: #FF5446; }
}
:root[data-theme="dark"] { --paper: #111213; --card: #1A1C1E; --ink: #ECEAE4; --muted: #A4A8AC; --line: #2F3235; --red: #FF5446; }

/* ---------- tipográfia: keskeny táblabetű ---------- */
h2, .mega, .foot-word, .side-stats b, .levels label b, .plan h3, .progress h3, .my-plans h3, .lvl-badge, .lvl-result h3, .mapbar h1 {
  font-stretch: var(--cond) !important; letter-spacing: -0.01em !important;
}
h2 { font-weight: 800; line-height: .92; }
h2::after, h2 > .lw::after, .mega::after, .mega-wrap .mega-2::after, .mapbar h1::after { display: none !important; }
.section-head { border-bottom: 3px solid var(--ink); padding-bottom: 16px; align-items: end; }
.section-head h2 { font-size: clamp(48px, 7vw, 112px) !important; }
@media (max-width: 760px) { .section-head h2, .ex-group .section-head h2 { font-size: clamp(42px, 13vw, 64px) !important; } }
.lead { color: var(--muted); }

/* ---------- gombok: szögletes tábla ---------- */
.btn { border-radius: var(--r); font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; padding: 0 20px; }
.btn::after { content: "→"; color: var(--red) !important; }
.btn.line { box-shadow: inset 0 0 0 2px var(--ink); }
.chip, .lg-btn, .tags .tag, .tag-chip, .eqc, .lvl, .plan .meta span, .chips label, .levels label, input[type="text"], input[type="search"], input[type="number"], select, textarea { border-radius: var(--r) !important; }
.park, .ex a, .pl, .lost a, .guide-links a, .ex-steps-nav a, .ex-side, .planform, .cta-band, .map-big, .map-city, .map-park, .feature .ph, .share, .progress, .lvl-form, .lvl-result, .plan-wait, .phases li, .side-stats, .map-panel { border-radius: var(--r) !important; }

/* ---------- fejléc: fekete sáv, piros aláhúzás a jelenlegi oldalnál ---------- */
.top { background: var(--graphite); border-bottom: 4px solid var(--red); }
.brand { font-stretch: 75%; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: 18px; }
.nav a { border-radius: 0; font-stretch: 85%; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; font-weight: 700; padding: 10px 12px; }
.nav a:hover { background: transparent; box-shadow: inset 0 -3px 0 #fff; }
.nav a[aria-current="page"] { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.nav a[aria-current="page"]::before { display: none; }
.near { border-radius: var(--r); text-transform: uppercase; font-stretch: 85%; letter-spacing: .04em; font-size: 14px; }
@media (max-width: 760px) {
  .nav { border-top: 4px solid var(--red); }
  .nav a { font-size: 11px; letter-spacing: 0; text-transform: none; font-stretch: 90%; font-weight: 600; border-radius: var(--r); padding-left: 0; padding-right: 0; min-width: 0; }
  .nav a[aria-current="page"] { background: #fff; color: var(--graphite); box-shadow: none; }
  .nav .n-near svg { border-radius: var(--r); }
}

/* ---------- aloldali fejléc: tábla + keményen vágott fotó (nem színátmenetes beúsztatás) ---------- */
.hero { background: var(--graphite); }
.hero .tag { display: none !important; }
.hero .photo { -webkit-mask-image: none; mask-image: none; width: 38% !important; height: 100% !important; filter: none; background-color: #8A8A8A; background-blend-mode: luminosity; border-left: 6px solid var(--red); }
.hero-row { grid-template-columns: minmax(0, 1fr) !important; }
.hero-cta { max-width: 620px !important; }
.hero .mega { font-weight: 900; line-height: .84; }
.hero-cta h1 { font-stretch: 85%; font-weight: 700; }
.hero-cta .lead { color: #C9CCCF !important; }
.crumbs { text-transform: uppercase; font-stretch: 85%; letter-spacing: .05em; font-size: 13px; }
@media (min-width: 761px) { .hero .wrap { padding-right: calc(38% + 32px); } .hero .mega { max-width: 100%; } }
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero .wrap { order: 1; padding-bottom: 20px; min-width: 0; width: 100%; min-height: 0 !important; }
  .hero .photo { position: relative; order: 2; opacity: 1; width: auto !important; height: 46vw !important; margin: 0 16px 20px; border-left: 0; border-top: 6px solid var(--red); background-position: center 30%; }
  .hero .wrap > .tag + .hero-row .hero-cta, .hero-cta { margin-top: 18px; }
}

/* ---------- főoldal: jelzőtábla ---------- */
.a-hero { background: var(--graphite); color: #fff; padding: clamp(28px, 4vw, 56px) 0 0; }
.a-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.a-kicker { margin: 0 0 18px; font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: #C9CCCF; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.a-kicker span { color: #8E9399; }
.a-title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .96; letter-spacing: -0.005em; font-size: clamp(60px, 7.2vw, 112px); margin: 0; padding-top: .06em; }
.a-title span { display: block; }
.a-title-2 { color: #fff; font-weight: 300; font-stretch: 62%; }
.a-title-3 { color: var(--red); }
.a-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(24px, 3vw, 40px) 0 0; border-top: 2px solid #fff; }
.a-board div { padding: 12px 14px 0 0; border-right: 1px solid #3A3E42; margin-right: 14px; }
.a-board div:last-child { border-right: 0; margin-right: 0; }
.a-board dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: #A9AEB3; order: 2; }
.a-board dd { margin: 0 0 4px; font-weight: 800; font-stretch: 62%; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.a-board div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.a-hero .btn { background: #C8261D; color: #fff; }
.a-hero .btn::after { color: #fff !important; }
.a-hero .btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.a-hero-photo { position: relative; min-height: 360px; max-height: 600px; background: #8A8A8A var(--img) center 30% / cover no-repeat; background-blend-mode: luminosity; border-top: 6px solid var(--red); }
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .a-hero-photo { background-image: image-set(var(--img-w, var(--img)) type("image/webp"), var(--img) type("image/jpeg")); }
}
.a-scrawl { position: absolute; left: 6%; bottom: 8%; transform: rotate(-5deg); font: 400 clamp(26px, 2.6vw, 38px)/1.05 "Marker", cursive; color: #fff; max-width: 12ch; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.a-quote { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 22px; padding-bottom: 22px; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid #33373B; }
.a-quote-h { font-size: 13px !important; font-weight: 700; font-stretch: 85% !important; letter-spacing: .08em !important; color: #A9AEB3; line-height: 1.4; }
.a-quote .quote { margin: 0; color: #E4E5E2; font-size: 17px; line-height: 1.5; transition: opacity .45s ease; min-height: 1.5em; }
.a-quote .quote.out { opacity: 0; }
@media (max-width: 860px) {
  .a-hero-grid { grid-template-columns: 1fr; }
  /* aspect-ratio helyett kitöltő elem: a rácsban nyújtott elemnél az iOS Safari 0 magasra ejtette a dobozt,
     és a felirat a számokra került */
  .a-hero-photo { min-height: 0; align-self: start; overflow: hidden; }
  .a-hero-photo::before { content: ""; display: block; padding-top: 62.5%; }
  .a-quote { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  .a-hero { padding-top: 22px; }
  .a-title { font-size: clamp(50px, 15.4vw, 72px); }
  .a-board dd { font-size: 40px; }
  .a-board dt { font-size: 11px; letter-spacing: .04em; }
  .a-actions .btn { flex: 1 1 auto; }
}

/* ---------- sötét blokk és CTA: graffiti nélkül, tábla-sorszámokkal ---------- */
.section.dark > .tag, .cta-band::before { display: none; }
.steps li span { font-stretch: 62%; font-size: 28px; font-weight: 800; line-height: 1; }
.feature .ph { filter: none; background-color: #8A8A8A; background-blend-mode: luminosity; border-top: 6px solid var(--red); }

/* ---------- városlista: menetrend-tábla ---------- */
.cities a { font-stretch: 75%; text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }
.cities a span { font-stretch: 100%; text-transform: none; }

/* ---------- gyakorlatok: mutató (index), nem kártyarács ---------- */
.a-index { display: block !important; border-top: 0; counter-reset: none; }
.a-index .ex a { display: grid; grid-template-columns: 64px minmax(0, 1.3fr) 120px 150px minmax(0, 2fr); gap: 4px 24px; align-items: center;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 !important; padding: 18px 0; }
.a-index .ex a:hover { border-color: var(--line); background: var(--card); }
.a-index .ex a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.a-no { font-weight: 800; font-stretch: 62%; font-size: 40px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.a-name h3 { margin: 0; font-size: 24px; font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.a-name .en { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.a-eq { display: flex; gap: 6px; color: var(--ink); }
.picto { width: 30px; height: 30px; padding: 3px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.a-lvl { display: flex; align-items: center; gap: 3px; }
.a-lvl i { width: 10px; height: 18px; border: 1.5px solid var(--ink); }
.a-lvl-kezdo i:nth-child(1), .a-lvl-halado i:nth-child(-n+2), .a-lvl-profi i { background: var(--ink); }
.a-lvl-profi i { background: var(--red); border-color: var(--red); }
.a-lvl b { margin-left: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-stretch: 85%; }
.a-index .ex p { margin: 0; font-size: 15px; color: var(--muted); }
.ex-group .section-head { margin-bottom: 0; }
@media (max-width: 960px) {
  .a-index .ex a { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "no name lvl" "no eq eq" "no p p"; gap: 8px 14px; padding: 18px 0; }
  .a-no { grid-area: no; align-self: start; font-size: 34px; }
  .a-name { grid-area: name; } .a-eq { grid-area: eq; } .a-lvl { grid-area: lvl; align-self: start; } .a-index .ex p { grid-area: p; }
  .a-lvl b { display: none; }
  .a-lvl i { width: 8px; height: 16px; }
  .picto { width: 28px; height: 28px; }
}

/* ---------- parkok: tábla-címkék ---------- */
.park { border: 1px solid var(--line); }
.tags .tag.bar { background: var(--ink); color: var(--paper); }
.sw-link a::before { border-radius: 0; }
.pin::before { border-radius: 2px !important; transform: rotate(45deg); }

/* ---------- lábléc ---------- */
footer { border-top: 4px solid var(--red); }
.foot-word { font-size: calc((min(100vw, 1440px) - 2 * clamp(16px, 3vw, 40px)) / 6.95) !important; color: #2B2F33; }
.foot-h { font-stretch: 85%; }
