/*
Theme Name: Aktuálne
Theme URI: https://aktualne.rehatech.sk
Author: RehaTech
Description: Spravodajská magazínová téma – titulka s hlavnou témou, rubrikami, názormi a najčítanejšími článkami; čitateľský layout článku.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: aktualne
*/

/* ---------- Písma (lokálne, bez Google Fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Premenné ---------- */
:root {
  --accent: #d0021b;
  --accent-dark: #a30015;
  --ink: #111;
  --text: #222;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --soft: #f5f4f0;
  --paper: #fff;
  --dark: #141414;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --gap: 28px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Horná lišta ---------- */
.topbar { background: var(--dark); color: #cfcfcf; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar a { color: #cfcfcf; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar__date { display: inline-block; }
.topbar__date::first-letter { text-transform: uppercase; }

/* ---------- Hlavička ---------- */
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 18px; padding-bottom: 18px; gap: 16px; }
.masthead__left, .masthead__right { display: flex; align-items: center; gap: 10px; }
.masthead__right { justify-content: flex-end; }
.brand { text-align: center; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -.035em; color: var(--ink); display: inline-flex; align-items: baseline; }
.brand__name::after { content: ""; width: .2em; height: .2em; background: var(--accent); border-radius: 50%; margin-left: .06em; }
.brand__tagline { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.brand img { max-height: 64px; width: auto; margin: 0 auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Navigácia rubrík ---------- */
.mainnav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--ink); }
.admin-bar .mainnav { top: 32px; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.mainnav a { display: block; padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--ink); position: relative; }
.mainnav a:hover, .mainnav .current-menu-item > a, .mainnav .current-cat > a, .mainnav .current-post-ancestor > a { color: var(--accent); }
.mainnav .current-menu-item > a::after, .mainnav .current-cat > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 3px; background: var(--accent); }
.mainnav .sub-menu { display: none; }
.progress { position: absolute; left: 0; bottom: -3px; height: 3px; width: 0; background: var(--accent); }

.searchbar { display: none; background: var(--soft); border-bottom: 1px solid var(--line); }
.searchbar.is-open { display: block; }
.searchbar .wrap { padding-top: 14px; padding-bottom: 14px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type=search] { flex: 1; height: 46px; padding: 0 16px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; font-size: 17px; background: #fff; }
.search-form button { height: 46px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 700; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; min-height: 44px; overflow: hidden; }
.ticker__label { flex: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.ticker__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list time { color: var(--accent); font-weight: 700; margin-right: 6px; }
.ticker__list a { font-weight: 500; }

/* ---------- Spoločné prvky kariet ---------- */
.kicker { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta a { color: var(--muted); }
.meta .sep::before { content: "·"; }
.media { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover .media img { transform: scale(1.03); }
.media--placeholder { display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(135deg, var(--ph1, #2b2b2b), var(--ph2, #555)); }
.media--placeholder span { font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: 1; color: rgba(255,255,255,.22); }
@supports not (aspect-ratio: 1) { .media { height: 0; padding-top: 56.25%; } .media img, .media--placeholder { position: absolute; inset: 0; } }
.badge { position: absolute; left: 10px; top: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; }

.card { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 20px; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin: 0; color: #444; font-size: 15px; }
.card--lead .card__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.card--lead .card__excerpt { font-size: 18px; font-family: var(--serif); color: #333; }
.card--small .card__title { font-size: 17px; }
.card--row { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--row .media { flex: 0 0 120px; aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: 16px; }
.card--row .card__body { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Titulka ---------- */
.section { padding: 32px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 4px solid var(--ink); padding-top: 10px; margin-bottom: 20px; }
.section__title { font-family: var(--sans); font-size: 22px; font-weight: 900; letter-spacing: -.01em; text-transform: none; }
.section__title a:hover { color: var(--accent); }
.section__more { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.section__more::after { content: " →"; }

.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap); padding-top: 28px; }
.hero__side { display: flex; flex-direction: column; gap: var(--gap); }
.hero__side .card + .card { border-top: 1px solid var(--line); padding-top: var(--gap); }

.latest { border-left: 1px solid var(--line); padding-left: var(--gap); }
.latest__title { font-family: var(--sans); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.latest__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.latest time { font-size: 13px; font-weight: 700; color: var(--accent); }
.latest a { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.latest a:hover { color: var(--accent); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

.rubrika { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--gap); }
.rubrika__list { display: flex; flex-direction: column; gap: 18px; }
.rubrika__list .card + .card { border-top: 1px solid var(--line); padding-top: 18px; }

.mostread { background: var(--soft); padding: 18px 20px; align-self: start; }
.mostread h3 { font-family: var(--sans); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.mostread ol { list-style: none; counter-reset: mr; margin: 0; padding: 0; }
.mostread li { counter-increment: mr; display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid #ddd; }
.mostread li:last-child { border-bottom: 0; }
.mostread li::before { content: counter(mr); font-family: var(--serif); font-size: 30px; font-weight: 900; line-height: 1; color: var(--accent); }
.mostread a { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); }
.mostread a:hover { color: var(--accent); }

/* Názory */
.opinions { background: var(--dark); color: #eee; padding: 36px 0 40px; }
.opinions .section__head { border-top-color: var(--accent); }
.opinions .section__title, .opinions .section__title a { color: #fff; }
.opinion { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #1f1f1f; border-radius: 6px; height: 100%; }
.opinion__author { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #fff; }
.opinion__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.opinion__title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 20px; line-height: 1.25; color: #fff; }
.opinion__title::before { content: "„"; color: var(--accent); }
.opinion__title::after { content: "“"; color: var(--accent); }
.opinion:hover .opinion__title { color: #ffd2d7; }
.opinion time { font-size: 13px; color: #999; margin-top: auto; }

/* ---------- Výpis (rubrika, štítok, vyhľadávanie) ---------- */
.archive-head { padding: 32px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.archive-head h1 { font-size: clamp(32px, 4vw, 48px); }
.archive-head .archive-desc { color: var(--muted); max-width: 720px; margin-top: 8px; font-size: 17px; }
.archive-head .search-form { margin: 18px 0 8px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-bottom: 48px; }
.list { display: flex; flex-direction: column; }
.list .card { flex-direction: row; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list .card:first-child { padding-top: 0; }
.list .card .media { flex: 0 0 280px; }
.list .card__body { display: flex; flex-direction: column; gap: 8px; }
.list .card__title { font-size: 23px; }
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar .mostread { position: sticky; top: 70px; }
.widget h2, .widget-title { font-family: var(--sans); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.pagination { margin: 28px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 32px 0; font-size: 18px; color: var(--muted); }

/* ---------- Článok ---------- */
.article { padding: 36px 0 24px; }
.article__head { max-width: 860px; margin: 0 auto 24px; }
.article__title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 4px 0 16px; }
.article__perex { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: #333; margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { width: 44px; height: 44px; border-radius: 50%; }
.byline__name { font-weight: 700; color: var(--ink); }
.byline__info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.byline .share { margin-left: auto; }
.share { display: flex; gap: 6px; }
.share a, .share button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 16px; height: 16px; }
.share .copied { border-color: var(--accent); color: var(--accent); }
.article__figure { max-width: 1080px; margin: 0 auto 32px; }
.article__figure img { width: 100%; }
.article__figure figcaption, .entry figcaption, .wp-element-caption { font-size: 13px; color: var(--muted); padding-top: 8px; }

.entry { max-width: 700px; margin: 0 auto; font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #1d1d1d; }
.entry > * { margin: 0 0 1.1em; }
.entry h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.entry h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry blockquote, .entry .wp-block-quote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 23px; font-style: italic; color: var(--ink); }
.entry .wp-block-pullquote { border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); padding: 20px 0; text-align: center; }
.entry .wp-block-pullquote blockquote { border: 0; padding: 0; }
.entry cite { display: block; font-size: 15px; font-style: normal; font-family: var(--sans); color: var(--muted); margin-top: 6px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry figure { margin: 1.6em 0; }
.entry .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
.entry .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry .alignleft { float: left; margin: .3em 1.2em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.2em; max-width: 50%; }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.entry iframe, .entry video { max-width: 100%; }
.entry > p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .9; font-weight: 800; padding: .06em .1em 0 0; color: var(--ink); }
.box-info, .entry .is-style-box-info { background: var(--soft); border-top: 3px solid var(--accent); padding: 18px 20px; font-family: var(--sans); font-size: 16px; }

.article__foot { max-width: 700px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--soft); }
.tags a:hover { background: var(--ink); color: #fff; }
.authorbox { display: flex; gap: 16px; padding: 20px; background: var(--soft); border-radius: 6px; }
.authorbox img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.authorbox h3 { font-family: var(--sans); font-size: 17px; margin-bottom: 4px; }
.authorbox p { margin: 0; color: #444; font-size: 15px; }

.related { padding: 36px 0; border-top: 1px solid var(--line); margin-top: 36px; }

/* Komentáre */
.comments { max-width: 700px; margin: 0 auto; padding: 32px 0 56px; }
.comments h2 { font-family: var(--sans); font-size: 22px; margin-bottom: 16px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; color: var(--muted); margin: 2px 0 6px 0; }
.comment-content p { margin: .4em 0; }
.reply a { font-size: 13px; font-weight: 700; color: var(--accent); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; }
.comment-form .submit { background: var(--ink); color: #fff; border: 0; padding: 12px 22px; border-radius: 4px; font-weight: 700; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* Stránka */
.page-content { max-width: 760px; margin: 0 auto; padding: 40px 0 64px; }
.page-content h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 24px; }
.page-content .entry > p:first-of-type::first-letter { all: unset; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(64px, 12vw, 140px); color: var(--accent); }
.notfound p { font-size: 19px; color: var(--muted); }
.notfound .search-form { margin-top: 24px; }

/* ---------- Pätička ---------- */
.site-footer { background: var(--dark); color: #bbb; margin-top: 24px; font-size: 14px; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; padding: 44px 16px 28px; }
.site-footer .brand { text-align: left; }
.site-footer .brand__name { color: #fff; font-size: 38px; }
.site-footer p { max-width: 380px; }
.footer-cats { columns: 3; list-style: none; margin: 0; padding: 0; }
.footer-cats li { padding: 4px 0; break-inside: avoid; }
.footer-cats a { font-weight: 600; }
.site-footer__bottom { border-top: 1px solid #2c2c2c; }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .latest { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 4px solid var(--ink); padding-top: 12px; }
  .latest ol { columns: 2; column-gap: var(--gap); }
  .latest li { break-inside: avoid; }
  .rubrika { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rubrika .mostread, .rubrika > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .entry .alignwide { margin-left: 0; margin-right: 0; }
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .list .card .media { flex-basis: 220px; }
}
@media (max-width: 860px) {
  :root { --gap: 20px; }
  .topbar__links { display: none; }
  .masthead .wrap { grid-template-columns: auto 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .brand { text-align: left; }
  .brand__name { font-size: 34px; }
  .brand__tagline { display: none; }
  .masthead__left { order: 3; }
  .masthead__left .icon-btn--login { display: none; }
  .menu-toggle { display: inline-flex; }
  .masthead__right .label { display: none; }
  .mainnav { border-bottom-width: 2px; }
  .mainnav .wrap { padding: 0; }
  .mainnav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .mainnav ul::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; padding: 11px 12px; font-size: 14px; }
  .mainnav.is-open ul { flex-direction: column; overflow: visible; }
  .mainnav.is-open a { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .hero__side { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__side .card + .card { border-top: 0; padding-top: 0; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar .mostread { position: static; }
  .site-footer__top { grid-template-columns: 1fr; }
  .byline { flex-wrap: wrap; }
  .byline .share { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .hero__side, .rubrika { grid-template-columns: minmax(0, 1fr); }
  .latest ol { columns: 1; }
  .grid-4 .card, .grid-3 .card { flex-direction: row; gap: 12px; }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .grid-4 .media, .grid-3 .media { flex: 0 0 120px; aspect-ratio: 4 / 3; }
  .grid-4 .card__excerpt, .grid-3 .card__excerpt { display: none; }
  .grid-4 .card__title, .grid-3 .card__title { font-size: 16px; }
  .list .card { flex-direction: column; gap: 12px; }
  .list .card .media { flex-basis: auto; }
  .list .card__title { font-size: 20px; }
  .entry { font-size: 18px; }
  .entry .alignleft, .entry .alignright { float: none; margin: 1em 0; max-width: 100%; }
  .footer-cats { columns: 2; }
  .authorbox { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .masthead__left, .masthead__right, .mainnav, .ticker, .share, .related, .comments, .site-footer, .sidebar { display: none !important; }
  .entry { max-width: none; font-size: 12pt; }
}
