/* =========================================================
   Murinus Today — dark tabloid news portal
   Design tokens, self-hosted fonts, and every page component.
   ========================================================= */

/* ---- Self-hosted fonts (PT Serif / PT Sans, latin + latin-ext) ---- */
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/pt-serif-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/pt-serif-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/pt-serif-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'PT Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/pt-serif-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/pt-sans-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/pt-sans-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/pt-sans-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/pt-sans-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}

/* ---- Design tokens ---- */
:root {
    --bg: #202020;
    --surface: #2b2b2b;
    --surface-strong: #303030;
    --surface-hover: #383838;
    --border: #3c3c3c;
    --text: #d3d3d3;
    --text-strong: #ededed;
    --text-muted: #8f8f8f;
    --text-faint: #6e6e6e;
    --accent: #ff2121;
    --accent-hover: #ff4848;
    --accent-ink: #ffffff;
    --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'PT Sans', Arial, Helvetica, sans-serif;
    --max-width: 1240px;
    --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

#container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    box-sizing: border-box;
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

/* ---- Icon sprite ---- */
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* =========================================================
   TOPBAR / NAVBAR
   ========================================================= */
.navbar {
    width: 100%;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-strong);
    cursor: pointer;
    padding: 0;
    margin-right: 14px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left .nav-links {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-left .nav-links a {
    text-decoration: none;
    color: var(--text-strong);
    font-size: 16px;
    font-weight: 400;
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: color .15s ease;
}

.nav-left .nav-links a:hover {
    color: var(--accent);
}

.nav-left .nav-links a.is-active {
    color: var(--accent);
    font-weight: 700;
}

/* CENTER logo */
.nav-center { justify-self: center; }

.logo-link {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
    color: var(--text-strong);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--text-strong);
}

.logo-text .logo-suffix {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 26px;
}

.logo-text .logo-dot { color: var(--accent); }

/* RIGHT icon rail */
.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-strong);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.icon-btn:hover { background-color: var(--surface-strong); }

.icon-btn.icon-btn--telegram { color: #4fa9e0; }

.theme-toggle {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle .knob {
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--text-strong);
    transition: left .15s ease;
}

.theme-toggle[aria-pressed="true"] .knob { left: 22px; }

/* Mobile nav drawer */
.nav-drawer {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px 20px 16px 20px;
}

.nav-drawer.is-open { display: block; }

.nav-drawer .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.nav-drawer .nav-links a {
    display: block;
    padding: 12px 4px;
    color: var(--text-strong);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.nav-drawer .nav-links a.is-active { color: var(--accent); }

.nav-drawer .nav-search { margin-top: 12px; }

@media (min-width: 861px) {
    .nav-drawer { display: none !important; }
}

@media (max-width: 860px) {
    .nav-left .nav-links { display: none; }
    .navbar-inner { grid-template-columns: auto 1fr auto; }
    .logo-text { font-size: 26px; }
    .logo-text .logo-suffix { font-size: 20px; }
}

/* Search (used in drawer + /search page form) */
.nav-search {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.nav-search input[type="search"] {
    border: none;
    background: transparent;
    color: var(--text-strong);
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    flex: 1;
    min-width: 0;
    font-family: var(--font-sans);
}

.nav-search button {
    background-color: var(--accent);
    color: var(--accent-ink);
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    font-family: var(--font-sans);
}

.nav-search button:hover { background-color: var(--accent-hover); }

/* =========================================================
   TICKER (trending topics strip)
   ========================================================= */
.ticker {
    border-bottom: 1px solid var(--border);
}

.ticker-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    font-size: 15px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
}

.ticker-item:hover { color: var(--text-strong); }

.ticker-dot { color: var(--text-faint); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
#breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 14px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

#breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
}

#breadcrumb a:hover { color: var(--accent); }

#breadcrumb img { height: 14px; width: auto; opacity: .7; vertical-align: middle; }

#breadcrumb span { margin: 0; }

/* =========================================================
   SECTION HEADINGS (shared "Nazev." pattern)
   ========================================================= */
.section-heading {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 26px;
    color: var(--text-strong);
    margin: 0 0 18px 0;
}

.section-heading .dot { color: var(--accent); }

.section-heading-link {
    text-decoration: none;
}

.section-heading-link:hover .section-heading { color: var(--accent); }

.more-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
}

.more-link:hover { color: var(--accent); }

/* =========================================================
   HOME — tabs + hero + headline rail
   ========================================================= */
.home-top {
    margin-top: 26px;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0 0 12px 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.is-active {
    color: var(--text-strong);
    border-bottom-color: var(--text-strong);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
}

.hero-figure { margin: 0; }

.hero-link { display: block; text-decoration: none; }

.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hero-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.25;
    color: var(--text-strong);
    margin: 14px 0 0 0;
}

.hero-link:hover .hero-title { color: var(--accent); }

.headline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.headline-list li {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.headline-list li:first-child { padding-top: 0; }

.headline-list a {
    text-decoration: none;
    color: var(--text-strong);
    font-size: 17px;
    line-height: 1.35;
    flex: 1;
}

.headline-list a:hover { color: var(--accent); }

.headline-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-row { grid-template-columns: 1fr; }
    .hero-img { height: 260px; }
}

/* =========================================================
   HOME — three-up (opinions / highlights / read-also)
   ========================================================= */
.trio {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 32px;
    margin-top: 46px;
    padding-top: 6px;
}

.opinion-list {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
}

.opinion-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.opinion-item:first-child { padding-top: 0; }

.opinion-item a.opinion-title {
    text-decoration: none;
    color: var(--text-strong);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin-bottom: 10px;
}

.opinion-item a.opinion-title:hover { color: var(--accent); }

.opinion-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
}

.opinion-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.opinion-byline:hover { color: var(--text); }

.highlight-figure { margin: 0 0 18px 0; }

.highlight-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--text-strong);
    margin: 12px 0 0 0;
}

a.highlight-link { text-decoration: none; }
a.highlight-link:hover .highlight-title { color: var(--accent); }

.plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plain-list li {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.plain-list li:first-child { padding-top: 0; }

.plain-list a {
    text-decoration: none;
    color: var(--text-strong);
    font-size: 16px;
    line-height: 1.35;
}

.plain-list a:hover { color: var(--accent); }

.plain-list li.is-hot a { color: var(--accent); }
.plain-list li.is-hot a:hover { color: var(--accent-hover); }

.sidebar-box {
    background: var(--surface-strong);
    padding: 18px;
    border-radius: var(--radius);
}

.sidebar-box-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-strong);
    margin: 0 0 12px 0;
}

.read-also-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.read-also-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.read-also-list li:first-child { padding-top: 0; }
.read-also-list li:last-child { border-bottom: none; padding-bottom: 0; }

.read-also-list a.title-link {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
    flex: 1;
}

.read-also-list a.title-link:hover { color: var(--accent); }

.read-also-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

@media (max-width: 980px) {
    .trio { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   RUBRIKA LIST PAGE ("Novinky dne.")
   ========================================================= */
.rubrika-head {
    margin-top: 26px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.rubrika-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    margin-top: 20px;
    align-items: start;
}

.timed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timed-list .page-item.is-visible {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.timed-list .page-item:first-child { padding-top: 0; }

.timed-list a {
    text-decoration: none;
    color: var(--text-strong);
    font-size: 18px;
    line-height: 1.35;
    display: block;
}

.timed-list a:hover { color: var(--accent); }

.timed-list time {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

.rubrika-aside { display: flex; flex-direction: column; gap: 20px; }

.widget-illustration {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 2px;
}

.widget-box {
    background: var(--surface-strong);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.widget-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin: 0 0 6px 0;
}

.widget-box a.widget-title {
    text-decoration: none;
    color: var(--text-strong);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.4;
    display: block;
}

.widget-box a.widget-title:hover { color: var(--accent); }

.ad-slot {
    background: var(--surface);
    border: 1px dashed var(--border);
    color: var(--text-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}

@media (max-width: 900px) {
    .rubrika-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   LOAD MORE BUTTON
   ========================================================= */
.button-container {
    display: flex;
    justify-content: center;
    margin: 30px auto 10px auto;
}

#load-more {
    background-color: var(--surface-strong);
    color: var(--text-strong);
    border: 1px solid var(--border);
    display: none;
    padding: 12px 26px;
    font-size: 15px;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
    transition: background-color .15s ease;
}

#load-more:hover { background-color: var(--surface-hover); }

/* Generic page-item list (authors list, search results) reuses timed-list look */
.page-list, .page-authors-container {
    margin-top: 26px;
}

.page-item {
    display: none;
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.page-item.is-visible {
    display: flex;
    align-items: center;
}

.page-authors-container .page-item, #search-results .page-item {
    display: flex;
    align-items: center;
}

.page-item .page-image {
    width: 120px;
    height: 84px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
}

.page-authors-container .page-image {
    width: 84px;
    height: 84px;
    border-radius: 50%;
}

.page-item .page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-item .page-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 6px 0;
    color: var(--text-strong);
}

.page-item:hover .page-title { color: var(--accent); }

.page-item .page-description {
    margin: 0 0 6px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.page-item .page-date { color: var(--text-faint); font-size: 13px; margin: 0; }

/* =========================================================
   AUTHOR SINGLE
   ========================================================= */
.single-author-profile {
    margin: 30px 0 10px 0;
}

.single-author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.single-author-icon img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.single-author-details h1 {
    font-family: var(--font-sans);
    font-size: 30px;
    margin: 0 0 8px 0;
    color: var(--text-strong);
}

.single-author-bio { color: var(--text); max-width: 640px; }

.author-posts { margin-top: 30px; }

.author-posts h1 {
    font-family: var(--font-sans);
    font-size: 20px;
    color: var(--text-strong);
    margin: 0 0 6px 0;
}

/* =========================================================
   ARTICLE / SINGLE POST
   ========================================================= */
.post {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 0 60px 0;
}

.post-meta-top {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 12px 0;
}

.post-meta-top .post-category { color: var(--text-muted); }

.post-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: var(--text-strong);
    margin: 0 0 16px 0;
}

.post-description {
    font-weight: 400;
    font-size: 19px;
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 20px 0;
    text-align: left;
}

.post-author {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 26px;
}

.author-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.post-author:hover { color: var(--text-strong); }

.post-image { margin-bottom: 8px; }

.post-image-inner {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.post-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-image .image-alt {
    margin-top: 8px;
    color: var(--text-faint);
    font-size: 13px;
}

.post-content {
    margin-bottom: 2em;
    line-height: 1.75;
    font-size: 18px;
    text-align: left;
    color: var(--text);
}

.post-content p { margin: 0 0 1.2em 0; }

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.post-content a:hover { color: var(--accent-hover); }

.post-content blockquote {
    margin: 1.5em 0;
    padding-left: 18px;
    border-left: 3px solid var(--accent);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--text-strong);
}

.reactions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.comments-btn {
    background: var(--surface-strong);
    color: var(--text-strong);
    border: none;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.reaction-chip {
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.reaction-chip:hover { border-color: var(--text-muted); color: var(--text); }

.post-aside {
    max-width: 760px;
    margin: 0 auto 40px auto;
}

@media (max-width: 800px) {
    .post-title { font-size: 28px; }
    .post-image-inner { height: 260px; }
}

/* =========================================================
   COOKIE BANNER (decorative, internal-only links)
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.cookie-banner.is-hidden { display: none; }

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

.cookie-banner a { color: var(--accent); text-decoration: underline; }

.cookie-ok {
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-ok:hover { background: var(--accent-hover); }

@media (max-width: 560px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    margin-top: 60px;
    background: var(--surface-strong);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 24px 20px;
    color: var(--text);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.footer-col-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-sans);
}

.footer-col-title a {
    color: var(--text-strong);
    text-decoration: none;
}

.footer-col-title a:hover { color: var(--accent); }

.footer-article-list { list-style: none; margin: 0; padding: 0; }

.footer-article-item { margin: 8px 0; }

.footer-article-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.footer-article-item a:hover { color: var(--text-strong); }

.footer-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 10px 0 24px 0;
}

.footer-legal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.footer-legal-links a:hover { color: var(--text-strong); }

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social .icon-btn {
    width: 34px;
    height: 34px;
    background: var(--surface-hover);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-brand { text-decoration: none; }

.footer-brand .logo-text { font-size: 24px; }
.footer-brand .logo-text .logo-suffix { font-size: 18px; }

.footer-bottom {
    text-align: left;
    font-size: 13px;
    color: var(--text-faint);
    max-width: 640px;
}

.footer-bottom p { margin: 4px 0; }

@media (max-width: 1100px) {
    .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .footer-columns { grid-template-columns: 1fr; }
    .footer-brand-row { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */
#search-results { margin-top: 10px; }

.search-results-empty {
    color: var(--text-muted);
    padding: 20px 0;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.search-loading {
    display: none;
    border: 6px solid var(--surface);
    border-radius: 50%;
    border-top: 6px solid var(--accent);
    width: 44px;
    height: 44px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================================
   404
   ========================================================= */
.not-found {
    text-align: center;
    padding: 90px 20px;
}

.not-found h1 {
    font-family: var(--font-serif);
    font-size: 40px;
    color: var(--text-strong);
    margin-bottom: 12px;
}

.not-found p { color: var(--text-muted); margin-bottom: 20px; }

.not-found a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.not-found a:hover { text-decoration: underline; }

/* =========================================================
   EXERCISE WATERMARK
   (this whole site is fictional placeholder content built for a
   media-literacy exercise — keep the label unmissable)
   ========================================================= */
body::before {
    content: "EXERCISE";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 20vw;
    font-weight: bold;
    font-family: var(--font-sans);
    color: rgba(255, 33, 33, 0.06);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}
