/* Buller teema — sisuportaali paigutus (13 portaali). Vt kujundus/kujundus-juhend.md
   "Sisuportaali paigutus". --p-aktsent ja --p-silt seatakse functions.php kaudu
   (buller_accent_color / buller_accessible_label_tone), portaali enda värvides. */

/*
 * Vahemik laiendatud 600-800'lt 300-800'le — kasutaja soovis 2026-10-24
 * vähem "kõik on Bold" tunnet, rohkem erinevaid kaalusid (300/400/500 jne).
 * Fail ise on muutuva kaaluga (variable font), nii et laiem vahemik
 * avab juba failis olemasolevad kergemad lõikamised, mitte ei vaja uut faili.
 */
@font-face {
	font-family: 'League Spartan';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/league-spartan-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, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'League Spartan';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/league-spartan-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Roboto';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/roboto-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, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--p-tume: #111820;
	--p-tumedam: #0e1a24;
	--p-aktsent: #199ff9; /* kirjutatakse üle inline (portaali enda värv) */
	--p-silt: #0b6fb8;    /* kirjutatakse üle inline (ligipääsetav toon) */
	--p-sekundaarne: #5b6670;
	--p-joon: #e2e7eb;
	--p-hele: #f2f7fb;
	--p-max: 1200px;
	--f-pealkiri: 'League Spartan', system-ui, sans-serif;
	--f-tekst: Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--p-tume); font-family: var(--f-tekst); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--p-tume); text-decoration: none; }
a:hover, a:focus-visible { color: var(--p-silt); }
button { font: inherit; cursor: pointer; }

.p-wrap { max-width: var(--p-max); margin: 0 auto; padding: 0 24px; }
.p-pealkiri { font-family: var(--f-pealkiri); letter-spacing: -0.01em; }
.p-silt { display: inline-block; font: 600 11px/1 Roboto, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--p-silt); }
.p-ploki-pealkiri { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 15px/1 'League Spartan', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--p-tume); }
.p-ploki-pealkiri::after { content: ''; flex: 1; height: 3px; background: var(--p-aktsent); }

.p-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-skip-link { position: absolute; left: -9999px; top: 0; background: var(--p-tume); color: #fff; padding: 10px 16px; z-index: 1000; }
.p-skip-link:focus { left: 10px; top: 10px; }

/* Päise reklaam (suletav riba enne topbari) — jagab markup'i template-parts/billboard.php uudisportaaliga, siin ainult sisuportaali värvid. */
.b-billboard { position: relative; width: 100%; background: var(--p-tume); }
.b-billboard__link { display: block; }
.b-billboard img, .b-billboard video { display: block; width: 100%; height: auto; }
.b-billboard__close {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 2px; cursor: pointer;
}
.b-billboard__close:hover { background: rgba(0,0,0,.75); }
.b-billboard__disclaimer { margin: 0; padding: 8px 24px; background: var(--p-tume); color: #c9d3db; font-size: 12px; line-height: 1.4; text-align: center; }

/* Ülariba */
.p-topbar { background: var(--p-tumedam); color: #c9d3db; font-size: 13px; }
.p-topbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 8px 0; }
.p-topbar__left { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.p-topbar__left-label { color: #7f8e9b; }
.p-topbar a { color: #c9d3db; }
.p-topbar__right { display: flex; gap: 18px; }
.p-topbar__more { position: relative; }
.p-topbar__more-btn { background: none; border: none; padding: 0; margin: 0; color: #c9d3db; font: inherit; cursor: pointer; display: inline-flex; align-items: center; }
.p-topbar__more-btn::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.p-topbar__more-list { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 180px; list-style: none; margin: 4px 0 0; padding: 6px 0; background: var(--p-tume); border-top: 3px solid var(--p-aktsent); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.p-topbar__more:hover > .p-topbar__more-list,
.p-topbar__more:focus-within > .p-topbar__more-list { display: block; }
.p-topbar__more-list a { display: block; padding: 8px 16px; font-size: 13px; }
.p-topbar__more-list a:hover, .p-topbar__more-list a:focus-visible { color: var(--p-aktsent); }

/* Päis */
.p-header { background: var(--p-tume); border-bottom: 4px solid var(--p-aktsent); }
.p-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.p-logo svg, .p-logo img { height: 40px; width: auto; display: block; }
/*
 * Mõnel menüü-üksusel on WordPressis päris alamüksused (nt "Veel" + "Tervis
 * ja heaolu"/"Sport ja hobid") — need näidatakse rippmenüüna hõljutusel/
 * fookusel, mitte lamedalt samal real (kasutaja täpsustas 2026-10-24,
 * vana saidi "Veel ⌄" muster). .has-dropdown saab noole ja rippmenüü
 * .sub-menu, ülejäänud üksused (.p-nav > li ilma .has-dropdown'ita) käituvad
 * nagu varem.
 */
.p-nav { display: flex; align-items: center; gap: 4px; font: 500 14px/1 'League Spartan', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; list-style: none; margin: 0; padding: 0; }
.p-nav > li { position: relative; }
.p-nav a { color: #fff; padding: 14px 12px; display: inline-block; border-bottom: 3px solid transparent; }
.p-nav a.is-active { border-bottom-color: var(--p-aktsent); }
.p-nav li.has-dropdown > a::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.p-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px; list-style: none; margin: 0; padding: 6px 0; background: var(--p-tume); border-top: 3px solid var(--p-aktsent); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.p-nav li.has-dropdown:hover > .sub-menu,
.p-nav li.has-dropdown:focus-within > .sub-menu { display: block; }
.p-nav .sub-menu a { display: block; padding: 12px 18px; border-bottom: none; }
.p-nav .sub-menu a:hover, .p-nav .sub-menu a:focus-visible { color: var(--p-aktsent); }
.p-icon-btn { width: 44px; height: 44px; border: 1px solid #33424f; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.p-mobile-header { display: none; }
.p-mobile-nav { display: none; }

/* Pealood */
.p-pealood { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 32px; }
.p-pealugu { position: relative; min-height: 460px; background: var(--p-tumedam); overflow: hidden; }
.p-pealugu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p-pealugu::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,36,0) 35%, rgba(14,26,36,.92) 100%); }
.p-pealugu__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 36px; z-index: 1; }
.p-pealugu .p-silt { background: var(--p-aktsent); color: #fff; padding: 6px 9px; }
.p-pealugu__title { margin: 14px 0 10px; font-size: 40px; line-height: 1.08; font-weight: 800; color: #fff; }
.p-pealugu__title a { color: #fff; }
.p-pealugu__lead { margin: 0 0 10px; color: #dbe3e9; max-width: 640px; font-size: 16px; }
.p-pealugu__date { font-size: 13px; color: #a9b6c1; }

.p-pealood__side { display: flex; flex-direction: column; gap: 24px; }
.p-pealood__item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.p-pealood__item .p-silt { margin-top: 12px; }
.p-pealood__item h2 { margin: 6px 0 4px; font-size: 21px; line-height: 1.15; font-weight: 600; }
.p-pealood__item time { font-size: 13px; color: var(--p-sekundaarne); }

/* Värsked lood (tekstireana) */
.p-varsked { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--p-joon); border-bottom: 1px solid var(--p-joon); }
.p-varsked__item { padding: 18px 20px; border-right: 1px solid var(--p-joon); }
.p-varsked__item:first-child { padding-left: 0; }
.p-varsked__item:last-child { border-right: none; padding-right: 0; }
.p-varsked__item h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.2; font-weight: 600; }

/* Kuum teema */
.p-kuum { margin-top: 44px; }
.p-kuum__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-kuum__item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.p-kuum__item .p-silt { margin-top: 12px; }
.p-kuum__item h3 { margin: 6px 0 4px; font-size: 20px; line-height: 1.18; font-weight: 600; }
.p-kuum__item time { font-size: 13px; color: var(--p-sekundaarne); }

/* Põhiosa + külgpaneel */
/* flex-wrap:nowrap tahtlik, vt sama põhjendust theme.css .b-content juures
   — wrap pani .p-aside desktopi vahepealsetel laiustel täislaiuses .p-main
   alla kukkuma, mistõttu sticky külgpaneel näis "keset lehte kinni jäävat". */
.p-content { margin-top: 48px; display: flex; flex-wrap: nowrap; gap: 40px; }
.p-main { flex: 999 1 560px; min-width: 0; }
.p-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 40px; align-self: flex-start; position: sticky; top: 24px; }

/* Nädalalugu */
.p-nadal { margin-top: 44px; }
.p-nadal:first-child { margin-top: 0; }
.p-nadal__card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: var(--p-hele); padding: 0 28px 0 0; }
.p-nadal__card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.p-nadal__body { padding: 24px 0; }
.p-nadal__body h3 { margin: 8px 0 10px; font-size: 28px; line-height: 1.1; font-weight: 600; }
.p-nadal__body time { font-size: 13px; color: var(--p-sekundaarne); }

/* Lugeja lemmik */
.p-lemmik { margin-top: 44px; }
.p-lemmik__list { list-style: none; margin: 0; padding: 0; }
.p-lemmik__item { display: flex; align-items: flex-start; gap: 20px; padding: 18px 0; border-top: 1px solid var(--p-joon); }
.p-lemmik__item:first-child { border-top: none; }
.p-lemmik__num { font-family: var(--f-pealkiri); font-size: 52px; line-height: .85; font-weight: 800; color: var(--p-aktsent); width: 34px; flex: none; }
.p-lemmik__item h3 { margin: 6px 0 4px; font-size: 22px; line-height: 1.15; font-weight: 600; }
.p-lemmik__item time { font-size: 13px; color: var(--p-sekundaarne); }

/* Teemade top */
.p-top__list { display: flex; flex-direction: column; gap: 8px; }
.p-top__item { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; color: #fff; font: 600 16px/1 'League Spartan', system-ui, sans-serif; }
.p-top__count { background: var(--p-aktsent); padding: 6px 9px; font-size: 13px; }

/* Buller Meedia uudised */
.p-bm__list { display: flex; flex-direction: column; gap: 16px; }
.p-bm__item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.p-bm__item img { width: 96px; height: 64px; object-fit: cover; display: block; }
.p-bm__item .p-silt { color: var(--p-sekundaarne); }
.p-bm__item h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.2; font-weight: 600; }

/* CTA kast */
.p-cta { margin-top: 56px; background: var(--p-aktsent); color: #fff; padding: 28px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.p-cta__title { margin: 0 0 6px; font-size: 26px; line-height: 1.1; font-weight: 600; }
.p-cta__text { margin: 0; font-size: 16px; color: #eaf5fe; }
.p-cta__btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; background: var(--p-tume); color: #fff; font: 600 14px/1 'League Spartan', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.p-cta__btn:hover { color: #fff; }

/* Jalus */
.p-footer { background: var(--p-tumedam); color: #c9d3db; font-size: 14px; }
.p-footer__grid { padding: 48px 0 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.p-footer__about img { height: 36px; width: auto; display: block; margin-bottom: 14px; }
.p-footer__about p { margin: 0; }
.p-footer__col-title { margin: 0 0 12px; font: 600 13px/1 'League Spartan', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.p-footer__links { display: flex; flex-direction: column; gap: 6px; }
.p-footer__links a { color: #c9d3db; }
.p-footer__bottom { padding: 16px 0 28px; border-top: 1px solid #22323f; color: #7f8e9b; font-size: 13px; }

/* ---------- Breadcrumb ---------- */
.p-breadcrumb { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--p-sekundaarne); }
.p-breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: #9fb0bd; }
.p-breadcrumb a { color: var(--p-sekundaarne); }

/* ---------- Üks artikkel (single.php, sisuportaal) ---------- */
.p-article { max-width: 760px; }
.p-article__header { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 24px; }
.p-article__title { margin: 0; font-family: var(--f-pealkiri); font-weight: 800; font-size: 36px; line-height: 1.12; letter-spacing: -0.01em; }
.p-article__lead { margin: 0; font-size: 18px; line-height: 1.5; color: #33414b; }
.p-article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--p-sekundaarne); padding-top: 6px; border-top: 1px solid var(--p-joon); }
.p-article__byline strong { color: var(--p-tume); font-weight: 600; }

.p-article__featured { margin: 0 0 28px; }
.p-article__featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--p-hele); }

/*
 * Osa postitusi on redigeeritud WPBakery Page Builderiga, mille <p>/<h2>
 * EI ole .p-article__content otsesed lapsed, vaid mitu taset sügavamal —
 * nii läks varasem otselapse-selektor (> * + *) neist mööda ja tekst
 * jooksis üheks jorus kokku (vt sama parandus buller.ee teema.css's,
 * kasutaja märkas 2026-10-24). Lõiguvahe margin-bottom'iga IGALE
 * elemendile, olenemata pesastuse sügavusest.
 */
.p-article__content { font-size: 18px; line-height: 1.7; color: #1c262d; }
.p-article__content h2 { font-family: var(--f-pealkiri); font-weight: 600; font-size: 25px; line-height: 1.25; margin: 40px 0 16px; }
.p-article__content h3 { font-family: var(--f-pealkiri); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 32px 0 12px; }
.p-article__content p { margin: 0 0 22px; }
.p-article__content img { width: 100%; height: auto; display: block; margin: 0 0 22px; }
.p-article__content figure { margin: 0 0 22px; }
.p-article__content figcaption { font-size: 13px; color: var(--p-sekundaarne); margin-top: 8px; }
.p-article__content a { text-decoration: underline; text-underline-offset: 2px; color: var(--p-silt); }
.p-article__content blockquote { margin: 0 0 22px; padding-left: 20px; border-left: 3px solid var(--p-aktsent); font-family: var(--f-pealkiri); font-style: italic; font-size: 20px; line-height: 1.4; }
.p-article__content ul, .p-article__content ol { margin: 0 0 22px; padding-left: 22px; }
.p-article__content li + li { margin-top: 8px; }

/*
 * Sildid/navigeerimine/autor järgnesid varem artikli sisule otse, ilma
 * ülemise vaheta — need kleepusid kokku (sama bug mis buller.ee teemal,
 * kasutaja märkas 2026-10-24). Iga plokk saab oma ülemise vahe.
 */
.p-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--p-joon); }
.p-article__tags a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--p-joon); color: var(--p-tume); }
.p-article__tags a:hover { border-color: var(--p-tume); text-decoration: none; }

.p-article__nav { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--p-joon); border-bottom: 1px solid var(--p-joon); }
.p-article__nav-item { display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.p-article__nav-item--next { text-align: right; margin-left: auto; }
.p-article__nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-sekundaarne); }
.p-article__nav-title { font-family: var(--f-pealkiri); font-weight: 600; font-size: 16px; line-height: 1.3; }

.p-author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 24px; background: var(--p-hele); }
.p-author-box img { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; }
.p-author-box__name { font-family: var(--f-pealkiri); font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.p-author-box__bio { font-size: 14px; color: #3a4751; margin: 0; }

/*
 * "Kuula artiklit" nupp tuleb kolmanda osapoole pistikprogrammist
 * (ResponsiveVoice, klass .responsivevoice-button) — pistik ise paneb
 * nupule suhtelise, artiklite vahel kõikuva suuruse. Sama parandus mis
 * buller.ee teemal (vt theme.css), siin dubleeritud, kuna portaal
 * laadib eraldi stiilifaili.
 */
.responsivevoice-button {
	font-size: 14px !important;
	line-height: 1.2 !important;
	padding: 10px 18px !important;
	width: auto !important;
	height: auto !important;
	max-width: max-content !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-family: var(--f-pealkiri) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
}
.responsivevoice-button .rvtts-icon { width: 20px !important; height: 20px !important; flex: 0 0 auto !important; }
.responsivevoice-button__label { font-size: 14px !important; }

/*
 * Täna on + Ilm + Päeva tsitaat + Valuutakursid — sama ühtne plokkide grupp
 * mis buller.ee külgpaneelil (vt theme.css sama kommentaar), siia toodud
 * sisuportaali külgpaneeli (kasutaja soov 2026-10-24: "sidebarile võiks
 * kaasa võtta ka bullerist päeva ilma aforismi valuut jne ploki").
 * Sama b- klassinimed (b-info-group, b-today__date jne) nagu buller.ee's —
 * PHP pool (sidebar-portaal.php) väljastab täpselt sama turvamärgendi,
 * ainult CSS siin kasutab portaali enda värvitoone (--p-*).
 */
.b-info-group { display: block; }
.b-info-card { position: relative; box-sizing: border-box; border-left: 1px solid var(--p-joon); border-right: 1px solid var(--p-joon); padding: 18px; }
.b-info-group > .b-info-card:first-child { border-top: 1px solid var(--p-joon); }
.b-info-group > .b-info-card:last-child { border-bottom: 1px solid var(--p-joon); }
.b-info-group > .b-info-card:not(:first-child)::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--p-aktsent); }

.b-quote__text { margin: 0; font-family: var(--f-pealkiri); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.3; }
.b-quote__author { margin: 10px 0 0; font-size: 14px; color: var(--p-sekundaarne); text-align: right; }

.b-currency__unit { margin: 0 0 8px; font-size: 13px; color: var(--p-sekundaarne); }
.b-currency__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.b-currency__code { font-weight: 600; }
.b-currency__value { text-align: right; }

.b-today__date { background: var(--p-tume); color: #fff; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 16px 0; margin: -18px -18px 14px; }
.b-today__day { font-family: var(--f-pealkiri); font-weight: 700; font-size: 26px; line-height: 1; }
.b-today__month { font-size: 17px; font-weight: 600; line-height: 1; color: var(--p-aktsent); }
.b-today__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.b-today__weekday { margin: 0; font-family: var(--f-pealkiri); font-weight: 600; font-size: 20px; line-height: 1.2; }
.b-today__list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.b-today__list li { font-size: 14px; color: #444444; }

.b-weather__now { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 12px; }
.b-weather__now-icon { grid-row: 1 / 3; color: var(--p-tume); display: flex; }
.b-weather__temp { grid-column: 2; grid-row: 1 / 3; font-family: var(--f-pealkiri); font-weight: 700; font-size: 30px; line-height: 1; white-space: nowrap; }
.b-weather__body { grid-column: 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-weather__place { font-size: 14px; font-weight: 600; }
.b-weather__desc { font-size: 12px; color: var(--p-sekundaarne); }

.b-weather__forecast { box-sizing: border-box; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--p-aktsent); }
.b-weather__fday { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.b-weather__fday-label { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--p-sekundaarne); white-space: nowrap; }
.b-weather__fday-icon { color: var(--p-tume); display: flex; }
.b-weather__fday-temp { font-size: 12px; font-weight: 600; color: var(--p-tume); white-space: nowrap; }
.b-weather__fday-min { font-weight: 400; color: var(--p-sekundaarne); margin-left: 3px; }

/* Külgpaneeli CTA (asendab buller.ee "vihje" kasti — sisuportaalidel pole
   toimetust, kuhu vihjata, vaid oodatakse ise-sisu pakkumisi). */
.b-tip { background: var(--p-aktsent); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.b-tip__title { margin: 0; font-family: var(--f-pealkiri); font-weight: 600; font-size: 22px; line-height: 1.15; color: #fff; }
.b-tip__text { margin: 0; font-size: 15px; line-height: 1.5; color: #fff; }
.b-tip__btn { align-self: flex-start; background: var(--p-tume); color: #fff; height: 44px; padding: 0 18px; display: flex; align-items: center; font-weight: 600; font-size: 15px; }
.b-tip__btn:hover { color: #fff; }

/*
 * Reklaamikohad (vt inc/ad-network.php buller_render_ad()) — renderdusfunktsioon
 * on teemaülene ja väljastab alati samad klassinimed (.b-ad-slot, .b-ad-banner
 * jne, mitte p-prefiksiga), sõltumata saidi tüübist. Siin portaali enda
 * värvides/mõõtudes.
 */
.b-ad-slot { display: block; width: 100%; height: 100%; position: relative; }
.b-ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-ad__label { position: absolute; top: 4px; left: 4px; background: rgba(255,255,255,.85); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #555; padding: 2px 6px; }
.b-ad { width: 300px; max-width: 100%; height: 250px; overflow: hidden; }
.b-ad-banner { overflow: hidden; margin: 40px 0; max-width: 728px; height: 90px; }
.b-ad-banner .b-ad-slot, .b-ad-banner .b-ad-slot img { width: 100%; height: 100%; }
.b-ad-banner.b-archive-ad { width: 100%; max-width: none; height: 180px; margin: 28px 0; padding: 0; }
.b-ad-grid__head { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; }
.b-ad-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.b-ad-grid__item { aspect-ratio: 1; overflow: hidden; }

/* "Buller Meedia portaalides" — teiste väljaannete värsked lood, sama
   b-klassinimed/muster mis buller.ee sidebar.php's. */
.b-portals { display: flex; flex-direction: column; gap: 18px; }
.b-portals__sub { font-size: 13px; color: var(--p-sekundaarne); }
.b-portal-card { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--b-portal-color, var(--p-tume)); }
.b-portal-card__logo { display: block; align-self: flex-start; }
.b-portal-card__logo svg, .b-portal-card__logo img { height: 20px; width: auto; display: block; }
.b-portal-card__link { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.b-portal-card__thumb { flex: 0 0 96px; width: 96px; height: 64px; object-fit: cover; display: block; background: var(--p-hele); }
.b-portal-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.b-portal-card__title { font-family: var(--f-pealkiri); font-weight: 600; font-size: 16px; line-height: 1.28; color: var(--p-tume); }
.b-portal-card__date { font-size: 12px; color: var(--p-sekundaarne); }

.p-related { margin-top: 48px; }
.p-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 24px; }
.p-related__item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.p-related__item .p-silt { margin-top: 10px; }
.p-related__item h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.22; font-weight: 600; }

/* ---------- Kategooria / arhiiv (category.php, sisuportaal) ---------- */
.p-archive__header { padding: 24px 0 28px; margin-bottom: 28px; }
.p-archive__title { margin: 0 0 8px; font-family: var(--f-pealkiri); font-weight: 800; font-size: 34px; line-height: 1.1; }
.p-archive__desc { margin: 0; font-size: 16px; color: var(--p-sekundaarne); max-width: 680px; }
.p-archive__count { font-size: 13px; color: var(--p-sekundaarne); margin-top: 6px; }

.p-archive-item { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--p-joon); }
.p-archive-item:last-child { border-bottom: 1px solid var(--p-joon); }
.p-archive-item__thumb { flex: 0 0 220px; width: 220px; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--p-hele); }
.p-archive-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-archive-item__title { margin: 0; font-family: var(--f-pealkiri); font-weight: 600; font-size: 22px; line-height: 1.22; }
.p-archive-item__excerpt { margin: 0; font-size: 15px; color: #3a4751; line-height: 1.5; }
.p-archive-item__views { font-size: 12px; color: var(--p-sekundaarne); }

.p-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.p-pagination a, .p-pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--p-joon); font-size: 14px; font-weight: 600; }
.p-pagination .current { background: var(--p-tume); color: #fff; border-color: var(--p-tume); }
.p-pagination a:hover { border-color: var(--p-tume); text-decoration: none; }

/* ---------- 404 ---------- */
.p-404 { max-width: 560px; margin: 56px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.p-404__code { margin: 0; font-family: var(--f-pealkiri); font-weight: 800; font-size: 96px; line-height: 1; color: var(--p-aktsent); }
.p-404__title { margin: 0; font-family: var(--f-pealkiri); font-weight: 600; font-size: 26px; }
.p-404__text { margin: 0; color: var(--p-sekundaarne); }
.p-404__search { display: flex; align-items: center; border: 1px solid var(--p-joon); height: 44px; padding: 0 6px 0 14px; gap: 6px; background: #fff; }
.p-404__search input { border: none; outline: none; font: inherit; font-size: 15px; width: 220px; background: transparent; color: var(--p-tume); }
.p-404__search button { width: 36px; height: 36px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--p-tume); }
.p-404__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.p-404__links a { font-size: 14px; padding: 8px 14px; border: 1px solid var(--p-joon); color: var(--p-tume); }
.p-404__links a:hover { border-color: var(--p-tume); text-decoration: none; }

@media (max-width: 860px) {
	.p-article__title { font-size: 26px; }
	.p-article__lead { font-size: 16px; }
	.p-article__content { font-size: 17px; }
	.p-article__nav { flex-direction: column; }
	.p-article__nav-item, .p-article__nav-item--next { max-width: 100%; text-align: left; margin-left: 0; }
	.p-archive-item { flex-direction: column; gap: 10px; padding: 0 16px; }
	.p-archive-item__thumb { width: 100%; flex-basis: auto; aspect-ratio: 16/9; }
	.p-archive__header, .p-related, .p-pagination { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 860px) {
	.p-wrap { padding: 0 16px; }
	.p-topbar { display: none; }
	.p-header__desktop-row, .p-nav { display: none; }
	.p-mobile-header { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 4px; }
	.p-header { position: sticky; top: 0; z-index: 10; }
	.p-logo svg, .p-logo img { height: 30px; }
	.p-mobile-nav { display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; padding: 0 8px; font: 700 13px/1 'League Spartan', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid #22323f; list-style: none; margin: 0; }
	.p-mobile-nav a { color: #fff; padding: 14px 10px; display: inline-block; border-bottom: 3px solid transparent; }
	.p-mobile-nav a.is-active { border-bottom-color: var(--p-aktsent); }
	/* Mobiilis on juba horisontaalselt keritav üks rida — alamüksused (nt
	   "Veel" alla kuuluvad) näidatakse lihtsalt järgmiste kerituvate
	   üksustena, mitte rippmenüüna (puudutusekraanil hõljutus ei toimi). */
	.p-mobile-nav .sub-menu { display: contents; }
	.p-mobile-nav li.has-dropdown > a::after { content: none; }

	.p-pealood { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
	.p-pealugu { min-height: 380px; }
	.p-pealugu__body { padding: 20px 16px; }
	.p-pealugu__title { font-size: 28px; }
	.p-pealugu__lead { display: none; }
	.p-pealood__side { padding: 0 16px; gap: 0; }
	.p-pealood__side .p-rida { display: grid; grid-template-columns: 1fr 96px; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--p-joon); }
	.p-pealood__side .p-rida > a { grid-column: 2; grid-row: 1; }
	.p-pealood__side .p-rida > div { grid-column: 1; grid-row: 1; }
	.p-pealood__side .p-rida img { width: 96px; height: 64px; object-fit: cover; }
	.p-pealood__side .p-rida h2 { margin: 5px 0 0; font-size: 17px; line-height: 1.2; }

	.p-varsked { grid-template-columns: 1fr; border: none; margin: 0; padding: 0 16px; }
	.p-varsked__item { border: none; border-bottom: 1px solid var(--p-joon); padding: 14px 0; }

	.p-kuum, .p-content { padding: 0 16px; margin-top: 32px; }
	.p-kuum__grid { grid-template-columns: 1fr; gap: 6px; }
	.p-kuum__item:first-child h3 { font-size: 21px; }
	.p-kuum__item:not(:first-child) { display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--p-joon); }
	.p-kuum__item:not(:first-child) > a { grid-column: 2; grid-row: 1; }
	.p-kuum__item:not(:first-child) > .p-kuum__body { grid-column: 1; grid-row: 1; }
	.p-kuum__item:not(:first-child) img { width: 96px; height: 64px; aspect-ratio: auto; }

	.p-content { flex-direction: column; gap: 0; margin-top: 0; }
	.p-nadal, .p-lemmik { margin-top: 32px; }
	.p-nadal__card { grid-template-columns: 1fr; padding: 0; }
	.p-nadal__body { padding: 14px 16px 18px; }
	.p-nadal__body h3 { font-size: 22px; }
	.p-lemmik__num { font-size: 36px; width: 22px; }

	.p-aside { position: static; top: auto; }
	.p-aside > * { margin-top: 32px; }
	.p-cta { margin: 32px 16px; padding: 20px; }
	.p-cta__title { font-size: 21px; }

	.p-footer__grid { grid-template-columns: 1fr; padding: 32px 0 24px; gap: 18px; }
}
