/* JZiņas — site styles */
:root {
    --bg: #f4f6f9;
    --paper: #ffffff;
    --ink: #141b26;
    --ink-2: #2b3545;
    --muted: #677285;
    --line: #e3e8ef;
    --blue: #1d4ed8;
    --red: #e10600;
    --shadow: 0 1px 2px rgba(20, 27, 38, 0.04), 0 8px 24px rgba(20, 27, 38, 0.05);
    --radius: 14px;
    --wrap: 1200px;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.page { padding: 24px 0 56px; }

/* ---------- Masthead ---------- */
.masthead {
    position: sticky; top: 0; z-index: 30;
    background: var(--paper);
    border-top: 3px solid var(--red);
    box-shadow: 0 1px 0 var(--line);
}
.masthead__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { color: inherit; }
.brand strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0.02em; }
.masthead__date { color: var(--muted); font-size: 13px; line-height: 1.35; padding-left: 18px; border-left: 1px solid var(--line); }
.today__date, .today__names { display: block; }
.today__names[hidden] { display: none; }
.today__names strong { color: var(--ink-2); font-weight: 600; }
.search { position: relative; margin-left: auto; width: 260px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #8d99ab; }
.search input {
    width: 100%; border: 1px solid var(--line); border-radius: 999px; background: #f6f8fb;
    padding: 9px 14px 9px 36px; outline: none;
}
.search input:focus { background: #fff; border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
.nav-toggle { display: none; }
.search-mobile { display: none; }

.nav { border-top: 1px solid var(--line); background: var(--paper); }
.nav__row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav__row::-webkit-scrollbar { display: none; }
.nav a {
    position: relative; padding: 11px 12px; white-space: nowrap;
    color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
    border-radius: 3px 3px 0 0; background: var(--c, var(--blue)); transform: scaleX(0); transition: transform .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

/* ---------- Shared bits ---------- */
.kicker {
    display: inline-block; color: var(--c, var(--blue)); font-size: 12px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.kicker:hover { text-decoration: underline; color: var(--c, var(--blue)); }
.badge {
    display: inline-block; padding: 3px 9px; border-radius: 999px; color: #fff;
    font-size: 12px; font-weight: 700; background: var(--blue);
}
.meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.meta__comments { display: inline-flex; align-items: center; gap: 4px; }
.meta__comments svg { width: 15px; height: 15px; }
.more { color: var(--blue); font-size: 14px; font-weight: 600; white-space: nowrap; }
.note { color: var(--muted); font-size: 14px; }
.panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow);
}
.panel__title {
    font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.panel p { color: var(--ink-2); font-size: 14px; }
.panel--about .more { display: inline-block; margin-top: 10px; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__media {
    display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e8edf4;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__fallback {
    position: relative; display: grid; place-items: center; width: 100%; height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48' viewBox='0 0 120 48'%3E%3Cpath d='M0 24c20 0 20-12 40-12s20 12 40 12 20-12 40-12' fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 120px 48px repeat,
        linear-gradient(135deg, var(--c, var(--blue)), color-mix(in srgb, var(--c, var(--blue)) 50%, #0b1220));
    color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 15px;
}
.card__fallback span { padding: 6px 12px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(0, 0, 0, .12); }
.card--row .card__fallback { background-size: 60px 24px, auto; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__title { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.card__excerpt { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--sm .card__title { font-size: 16px; }
.card--row { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--row .card__media { flex: 0 0 112px; aspect-ratio: 4 / 3; border-radius: 8px; }
.card--row .card__title { font-size: 15px; line-height: 1.35; }
.card--row .card__fallback span { display: none; }

/* ---------- Home ---------- */
.top {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead__media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e8edf4; }
.lead__media img, .lead__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead__body { display: flex; flex-direction: column; gap: 8px; }
.lead__title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.lead__excerpt { color: var(--ink-2); font-size: 17px; font-family: var(--serif); }
.top__list { display: flex; flex-direction: column; gap: 16px; }
.top__list .card + .card { padding-top: 16px; border-top: 1px solid var(--line); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 28px; align-items: start; }
.columns__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 130px; }
.block + .block { margin-top: 34px; }
.block__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    border-top: 3px solid var(--c, var(--ink)); padding-top: 10px; margin-bottom: 16px;
}
.block__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank li + li { border-top: 1px solid var(--line); }
.rank a { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.rank__n { flex: 0 0 26px; font-size: 22px; font-weight: 800; color: var(--red); line-height: 1.1; }
.rank__title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.side-list { display: flex; flex-direction: column; gap: 14px; }

.newsletter form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.newsletter input {
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fafc; outline: none;
}
.newsletter input:focus { border-color: #c7d2fe; background: #fff; }

.empty-state {
    text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 72px 24px; margin: 24px auto; max-width: 720px; box-shadow: var(--shadow);
}
.empty-state__mark { display: inline-flex; margin-bottom: 16px; }
.empty-state h1, .empty-state h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.empty-state__links { margin-top: 18px !important; }
.empty-state__links a { color: var(--blue); font-weight: 600; }
.empty-state--small { padding: 44px 24px; }
.empty-state--small h2 { font-size: 22px; }

/* ---------- Listing ---------- */
.page-head { border-top: 3px solid var(--c, var(--ink)); padding-top: 14px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); margin-top: 4px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; font-weight: 600; }
.pager a, .pager span { padding: 8px 14px; border-radius: 999px; }
.pager a { background: var(--paper); border: 1px solid var(--line); }
.pager .is-disabled { color: #a6afbd; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); min-width: 0;
}
.article--page { max-width: 820px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.article__title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; max-width: 26ch; }
.article--page .article__title { max-width: none; margin-bottom: 16px; }
.article__lead { margin-top: 14px; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--ink-2); }
.byline {
    display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 14px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline__text { display: flex; flex-direction: column; font-size: 14px; }
.byline__text span { color: var(--muted); font-size: 13px; }
.avatar {
    display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
    background: #e8eefc; color: var(--blue); font-weight: 800; font-size: 14px;
}
.ai-pill {
    margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #fff1f0; color: var(--red);
    font-size: 12px; font-weight: 800; letter-spacing: .05em;
}
.article__figure { margin: 0 0 24px; }
.article__figure picture, .article__figure > img { border-radius: 10px; overflow: hidden; }
.article__figure img { width: 100%; max-height: 560px; object-fit: cover; }
.article__figure picture { display: block; }
.article__figure figcaption { padding: 8px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.article__figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.72; color: #1d2633; max-width: 70ch; }
.prose p + p { margin-top: 1.05em; }
.sources { margin-top: 32px; padding: 18px 20px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; }
.sources h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sources ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; font-size: 15px; }
.sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.sources span { color: var(--muted); font-size: 13px; }
.ai-note {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px;
    background: #fff8e6; border: 1px solid #f6e3ad; border-radius: 10px; color: #6b4e00; font-size: 14px; font-weight: 500;
}
.ai-note svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.article-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 130px; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); }
.comments__title { font-size: 22px; font-weight: 800; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.comments__title span { background: #eef2f7; color: var(--ink-2); border-radius: 999px; font-size: 13px; padding: 2px 10px; }
.reply { display: grid; gap: 12px; padding: 18px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; }
.reply__head h3 { font-size: 17px; }
.reply__head p { color: var(--muted); font-size: 14px; }
.reply__field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.reply__field input, .reply__field textarea {
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 400; outline: none;
}
.reply__field input:focus, .reply__field textarea:focus { border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }
.reply__field textarea { min-height: 110px; resize: vertical; }
.reply__check { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.reply__check img { border-radius: 8px; border: 1px solid var(--line); }
.reply__refresh { background: none; border: 0; color: var(--blue); cursor: pointer; text-decoration: underline; padding: 8px 0; }
.reply .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.comment time { color: var(--muted); font-size: 13px; }
.comment p { white-space: pre-line; }

/* ---------- Forms & buttons ---------- */
.btn, .desk-form button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 10px; padding: 10px 18px; background: var(--blue); color: #fff;
    font-weight: 700; cursor: pointer;
}
.btn:hover, .desk-form button:hover { filter: brightness(1.08); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--blue); background: #f3f6ff; }
.btn--danger { background: #b91c1c; color: #fff; }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; text-decoration: underline; font-size: 13px; }
.form-ok { padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #166534; font-weight: 600; font-size: 14px; }
.form-ok--dark { background: #dcfce7; }
.form-error { color: #b91c1c; font-size: 14px; font-weight: 600; }

/* ---------- Newsroom (admin) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stats strong { display: block; font-size: 26px; font-weight: 800; }
.stats span { color: var(--muted); font-size: 13px; }
.desk { margin-top: 26px; }
.desk > h2 { font-size: 20px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.desk .count { background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 9px; }
.desk-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.desk-form { display: flex; gap: 8px; margin-top: 12px; max-width: 420px; }
.desk-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.draft { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.draft__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.draft__meta { color: var(--muted); font-size: 13px; }
.draft__meta a { color: var(--blue); }
.draft h3 { font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.draft__lead { color: var(--ink-2); }
.draft details { margin-top: 12px; }
.draft summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.draft .prose { margin-top: 12px; font-size: 17px; }
.draft__img { max-height: 260px; object-fit: cover; border-radius: 10px; margin-top: 12px; }
.draft__actions { display: flex; gap: 10px; margin-top: 14px; }
.draft--comment p { white-space: pre-line; }
.desk-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.desk-list li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.desk-list li:last-child { border-bottom: 0; }
.desk-list a { font-weight: 600; flex: 1 1 320px; }
.desk-list span { color: var(--muted); font-size: 13px; }
.runs { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.runs li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.runs time { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { background: #0f1520; color: #c9d1dc; margin-top: 24px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.footer .brand { color: #fff; }
.footer .brand small { color: #93a0b3; }
.footer__about { margin-top: 14px; font-size: 14px; color: #a7b1c0; max-width: 42ch; }
.footer h2 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.footer nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__legal { border-top: 1px solid #222c3b; padding: 16px 0 24px; font-size: 13px; color: #8390a3; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .columns, .article-layout { grid-template-columns: minmax(0, 1fr); }
    .columns__side, .article-side { position: static; }
    .columns__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .masthead__row { flex-wrap: wrap; }
    .masthead__date {
        order: 99; flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline;
        border-left: 0; border-top: 1px solid var(--line); padding: 6px 0 7px; font-size: 12.5px;
    }
    .today__names:not([hidden])::before { content: "·"; margin-right: 10px; color: #b4bdca; }
}
@media (max-width: 820px) {
    .top { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .grid, .grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .page { padding-top: 16px; }
    .masthead__row { min-height: 58px; gap: 12px; }
    .search { display: none; }
    .nav-toggle {
        display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px;
        border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
    }
    .nav-toggle span[aria-hidden] { width: 18px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
    .nav { display: none; }
    .nav.is-open { display: block; }
    .nav__row { flex-direction: column; padding: 6px 0 10px; }
    .nav a::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; transform: scaleY(0); }
    .nav a.is-active::after { transform: scaleY(1); }
    .nav.is-open .search-mobile { display: block; width: 100%; margin: 4px 0 8px; }
    .search-mobile input { padding-left: 14px; }
    .grid, .grid--wide, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .card--row .card__media { flex-basis: 96px; }
    .article { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; box-shadow: none; }
    .prose { font-size: 18px; }
    .footer__grid { grid-template-columns: 1fr; gap: 22px; }
    .desk-form { flex-direction: column; }
}

/* brand accent (e.g. the red "i" in iNews) */
.brand__accent { color: #e10600; }

/* ---------- Legal / info pages ---------- */
.legal__updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal .prose { max-width: 78ch; font-size: 18px; }
.legal .prose h2 { font-family: var(--sans); font-size: 21px; line-height: 1.3; margin: 1.6em 0 .5em; color: var(--ink); }
.legal .prose p { margin-top: .8em; }
.legal .prose ul, .legal .prose ol { margin: .6em 0 0; padding-left: 1.3em; }
.legal .prose li + li { margin-top: .35em; }
.legal .prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 1em; font-family: var(--sans); font-size: 14px; line-height: 1.45; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: #f3f5f9; font-weight: 700; }
.legal-table code { font-size: 13px; }
mark.todo { background: #fff3bf; color: #7a4b00; border: 1px dashed #e0a800; border-radius: 4px; padding: 0 4px; font-family: var(--sans); font-size: .9em; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 100; padding: 12px; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box {
    pointer-events: auto; max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(20, 27, 38, .18); padding: 18px 20px;
}
.consent__title { font-size: 17px; font-weight: 800; }
.consent__text { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.consent__text a { color: var(--blue); text-decoration: underline; }
.consent__settings { margin-top: 12px; display: grid; gap: 8px; }
.consent__settings[hidden] { display: none; }
.consent__option { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.consent__option input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.consent__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent__btn { padding: 9px 16px; font-size: 14px; }
.consent__btn[hidden] { display: none; }
.consent__actions [data-consent-action="reject"], .consent__actions [data-consent-action="accept"] { background: var(--ink); }
@media (max-width: 560px) { .consent__actions .consent__btn { flex: 1 1 45%; } }

/* ---------- Ad slots (hidden until AdSense is configured and consented) ---------- */
.ad { display: none; text-align: center; }
.ads-on .ad { display: block; }
.ad__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-family: var(--sans); }
.ad--header { width: min(var(--wrap), calc(100% - 32px)); margin: 16px auto 0; min-height: 90px; }
.ad--article { margin: 1.4em 0; min-height: 250px; }
.ad--sidebar { margin-bottom: 20px; min-height: 250px; }
.ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* image logo (iNews) */
.brand--image { line-height: 0; }
.brand__logo img { height: 40px; width: auto; }
.brand--footer .brand__logo img { height: 36px; }
@media (max-width: 560px) { .brand__logo img { height: 32px; } }

/* ---------- Weather: header widget ---------- */
.masthead__info { display: flex; align-items: center; gap: 16px; min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.masthead__info .masthead__date { padding-left: 0; border-left: 0; min-width: 0; }
.wx { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; font-size: 13px; color: var(--muted); }
.wx__now { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.wx__now:hover { color: var(--blue); }
.wx__icon { width: 24px; height: 24px; flex: 0 0 auto; }
.wx__icon[hidden], .wx__city[hidden], .wx__select[hidden] { display: none; }
.wx__select {
    appearance: none; -webkit-appearance: none; border: 0; border-radius: 6px; background: transparent; color: var(--muted);
    font: inherit; font-size: 13px; padding: 4px 16px 4px 4px; cursor: pointer; max-width: 120px; field-sizing: content;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23677285' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 3px center;
}
.wx__select:hover { color: var(--ink); background-color: #f3f5f9; }
@media (max-width: 1080px) {
    .masthead__info {
        order: 99; flex: 1 0 100%; justify-content: space-between; gap: 8px 12px;
        border-left: 0; border-top: 1px solid var(--line); padding: 4px 0 5px;
    }
    .masthead__info .masthead__date { order: 0; flex: 1 1 auto; border-top: 0; padding: 2px 0; }
    .wx { padding-left: 0; border-left: 0; flex: 0 0 auto; }
    .wx__now { font-size: 15px; }
    .wx__icon { width: 22px; height: 22px; }
}

/* ---------- Weather: /laikapstakli ---------- */
.wxpage__cities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.wxpage__cities a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.wxpage__cities a:hover { border-color: #c7d2fe; color: var(--blue); }
.wxpage__cities a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.wxnow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px 24px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.wxnow__icon { width: 84px; height: 84px; }
.wxnow__temp { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wxnow__temp span { font-size: 28px; font-weight: 700; color: var(--muted); margin-left: 2px; vertical-align: top; }
.wxnow__label { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.wxnow__facts { margin: 0 0 0 auto; display: grid; gap: 6px; font-size: 14px; min-width: min(100%, 300px); }
.wxnow__facts div { display: flex; gap: 10px; }
.wxnow__facts dt { flex: 0 0 72px; color: var(--muted); }
.wxnow__facts dd { margin: 0; color: var(--ink-2); }
.wxnow__facts dd span { color: var(--muted); }
.wxsec { margin-top: 28px; }
.wxsec h2 { font-size: 18px; margin-bottom: 12px; }
.wxhours {
    list-style: none; margin: 0; padding: 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr);
    overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch;
}
.wxhours li { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; text-align: center; }
.wxhours li + li { border-left: 1px solid var(--line); }
.wxhours time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wxhours svg { width: 30px; height: 30px; }
.wxhours strong { font-size: 16px; }
.wxhours small { font-size: 11.5px; color: #2f7ae5; min-height: 1.2em; }
.wxdays { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.wxdays li { display: grid; grid-template-columns: 140px 40px minmax(0, 1fr) 110px minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 12px 18px; }
.wxdays li + li { border-top: 1px solid var(--line); }
.wxdays__day strong { display: block; font-size: 15px; }
.wxdays__day small { color: var(--muted); font-size: 13px; }
.wxdays svg, .wxdays__noicon { width: 36px; height: 36px; }
.wxdays__desc { color: var(--ink-2); font-size: 14px; }
.wxdays__t { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wxdays__t strong { color: var(--ink); font-size: 17px; }
.wxdays__x { font-size: 13px; color: var(--muted); }
.wxsources p { font-size: 14px; color: var(--ink-2); margin-top: 8px; max-width: 90ch; }
.wxsources a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.footer__credits { margin-top: 6px; font-size: 12px; }
.footer__credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
    /* row 1: date + weather, row 2: name days */
    .masthead__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 5px 0 6px; }
    .masthead__info .masthead__date { display: contents; }
    .today__date { grid-column: 1; grid-row: 1; }
    .masthead__info .wx { grid-column: 2; grid-row: 1; }
    .today__names { grid-column: 1 / -1; grid-row: 2; }
    .today__names:not([hidden])::before { content: none; }
}
@media (max-width: 720px) {
    .wxpage__cities { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .wxpage__cities a { flex: 0 0 auto; }
    .wxnow { padding: 18px; }
    .wxnow__facts { margin-left: 0; }
    .wxdays li { grid-template-columns: 1fr 36px auto; grid-template-areas: "day icon t" "desc desc desc" "x x x"; gap: 2px 12px; padding: 12px 14px; }
    .wxdays__day { grid-area: day; } .wxdays li > svg, .wxdays__noicon { grid-area: icon; } .wxdays__t { grid-area: t; text-align: right; }
    .wxdays__desc { grid-area: desc; } .wxdays__x { grid-area: x; }
}
