:root { color-scheme: light dark; --bg: #fafaf9; --fg: #1c1c1e; --muted: #6b6b70; --card: #ffffff; --line: #e4e4e2; --link: #1d5fb8; }
@media (prefers-color-scheme: dark) { :root { --bg: #161618; --fg: #ececee; --muted: #9a9aa0; --card: #1f1f22; --line: #2e2e33; --link: #7fb0ff; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
header, main, footer { max-width: 1680px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 32px; }
h1 { margin: 0 0 4px; font-size: 28px; }
.sub, footer { color: var(--muted); }
h1 .plat { color: var(--muted); font-weight: 500; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: 14px; }
.platforms a { padding: 3px 10px; border-radius: 6px; text-decoration: none; }
.platforms a[aria-current="page"] { background: var(--link); color: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--fg); text-decoration: none; }
nav a span { color: var(--muted); margin-left: 4px; }
/* Képméret: rádiógombok, a választott fokozat a body-n állítja a rácsoszlopok legkisebb szélességét. */
.zoom { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.zoom span { margin-right: 4px; }
.zoom input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zoom label { min-width: 34px; text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--fg); cursor: pointer; }
.zoom input:checked + label { background: var(--link); border-color: var(--link); color: #fff; }
.zoom input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 2px; }
body { --phone: 300px; --tablet: 420px; --wide: 560px; }
body:has(#zoom-1:checked) { --phone: 250px; --tablet: 340px; --wide: 440px; }
body:has(#zoom-3:checked) { --phone: 400px; --tablet: 560px; --wide: 780px; }
body:has(#zoom-4:checked) { --phone: 540px; --tablet: 760px; --wide: 1100px; }
h2 { margin: 32px 0 12px; font-size: 20px; }
.grid { --col: var(--phone); display: grid; grid-template-columns: repeat(auto-fill, min(var(--col), 100%)); gap: 16px; }
.tablet .grid { --col: var(--tablet); }
.wide .grid { --col: var(--wide); }
article { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; scroll-margin-top: 12px; }
article.has-shot { cursor: zoom-in; }
article.has-shot:hover { border-color: var(--link); }
article:target { outline: 2px solid var(--link); }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
/* A kép hivatkozása az egész kártyát lefedi; a kártya többi hivatkozása fölötte marad. */
.shot::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
article p a { position: relative; z-index: 1; }
h3 { margin: 10px 0 4px; font-size: 15px; }
article p { margin: 4px 0; font-size: 13px; }
.same, .leads { color: var(--muted); }
a { color: var(--link); }
footer { padding: 32px 16px; font-size: 13px; }
/* Galéria: a címzett nézet kitölti az ablakot; előző / következő oldalt, bezárás a sarokban vagy a háttérre kattintva. */
.lb { display: none; position: fixed; inset: 0; z-index: 10; background: rgba(12, 12, 14, 0.94); color: #ececee; }
.lb:target { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
body:has(.lb:target) { overflow: hidden; }
/* Nyitott galériánál az oldal többi része rejtett: a Tab nem jut ki a nézetből a láthatatlan hivatkozásokra. */
body:has(.lb:target) > header, body:has(.lb:target) > main, body:has(.lb:target) > footer { visibility: hidden; }
.lb-bg { position: absolute; inset: 0; cursor: zoom-out; }
/* A figure üres része átengedi a kattintást a háttérnek (bezárás); csak a kép és a felirat fogja meg. */
.lb figure { pointer-events: none; }
.lb img, .lb figcaption { pointer-events: auto; }
.lb figure { position: relative; margin: 0; padding: 16px 0; display: flex; flex-direction: column; align-items: center; max-height: 100vh; }
.lb img { display: block; max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }
.lb figcaption { max-width: 760px; text-align: center; padding: 10px 8px 0; overflow-y: auto; }
.lb figcaption h3 { margin: 0 0 2px; font-size: 17px; }
.lb figcaption p { margin: 3px 0; font-size: 14px; }
.lb .where, .lb .leads { color: #a8a8ae; }
.lb a { color: #8fbaff; }
.lb-nav { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; color: #ececee !important; text-decoration: none; }
a.lb-nav:hover { background: rgba(255, 255, 255, 0.08); }
.lb-close { position: absolute; top: 8px; right: 12px; font-size: 34px; line-height: 1; color: #ececee !important; text-decoration: none; padding: 4px 10px; }
@media (max-width: 600px) { .lb:target { grid-template-columns: 40px minmax(0, 1fr) 40px; } .lb-nav { font-size: 34px; } }
