/*
Theme Name:   Miejski Puls
Theme URI:    https://miejskipuls.pl/
Description:  Motyw potomny MagazineBook dla miejskipuls.pl – kierunek „Monitor”: ciemny ekran z dziennikiem przeglądów dnia na linii pulsu, jasny tekst do czytania w ramie monitora, poradniki z „odczytem” danych z tabeli TL;DR. Kroje Red Hat (lokalnie), granat i zieleń z logo.
Author:       miejskipuls.pl
Template:     magazinebook
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  miejskipuls
*/

/* ==========================================================================
   Tokeny – kierunek „Monitor”
   Biała listwa u góry i jasna stopka obramowują ciemny ekran. Zieleń pulsu to jedyny sygnał:
   „dziś”, „nowe”, aktywne stany. Mono (Red Hat Mono) tylko do godzin i dat.
   ========================================================================== */

:root {
	--screen: #0b1a2e;
	--screen-2: #10243f;
	--navy: #0f2340;
	--ink: #0f2340;
	--text: #26303c;
	--muted: #56616e;
	--pulse: #0e8751;
	--pulse-ink: #0a6e41;
	--pulse-on-dark: #3fd68c;
	--pulse-tint: #cfe9db;
	--ground: #ffffff;
	--panel: #eef2f6;
	--rule: #dde3ea;
	--rule-strong: #c1cbd6;
	--on-dark: #e9eff6;
	--on-dark-2: #aebdcf;
	--rule-on-dark: #22395a;
	--rail-past-dark: #3a5274;
	--f-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
	--f-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
	--f-mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--r: 2px;
	--gut: 40px;
	--line: 3px;
}

/* ==========================================================================
   Podstawy
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 17px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--pulse); outline-offset: 2px; }
::selection { background: var(--pulse-tint); color: var(--ink); }
.wrap { max-width: 1296px; margin: 0 auto; padding: 0 var(--gut); }
.t { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; clip-path: none; margin: 0; z-index: 100; background: var(--ground); color: var(--ink); padding: 12px 18px; font-weight: 700; outline: 3px solid var(--pulse); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.7); opacity: 0; } }
.beacon { position: relative; width: 16px; height: 16px; background: var(--pulse-on-dark); flex: none; }
.beacon::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--pulse-on-dark); animation: ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }

/* ==========================================================================
   Ramka monitora: górna listwa (nagłówek)
   ========================================================================== */

.site-head { background: var(--ground); position: relative; z-index: 20; border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; flex-wrap: wrap; column-gap: 28px; min-height: 84px; }
.logo { display: flex; align-items: center; min-height: 48px; flex: none; }
.logo .custom-logo-link { display: flex; align-items: center; min-height: 48px; }
.logo img, .logo .custom-logo { height: 54px; width: auto; max-width: 240px; object-fit: contain; }
.om-wordmark { font: 900 26px/1 var(--f-display); color: var(--ink); letter-spacing: -.02em; }

.om-nav { align-self: stretch; display: flex; margin-right: auto; }
.om-menu { display: flex; align-items: stretch; gap: 2px; }
.om-menu > li { position: relative; display: flex; align-items: center; }
.om-menu > li > a { display: flex; align-items: center; height: 100%; min-height: 84px; padding: 0 13px; font: 600 16px/1 var(--f-text); color: var(--ink); position: relative; white-space: nowrap; }
.om-menu > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 3px; background: transparent; transition: background .15s; }
.om-menu > li > a:hover::after,
.om-menu > li.current-menu-item > a::after,
.om-menu > li.current-menu-ancestor > a::after,
.om-menu > li.is-open > a::after { background: var(--pulse); }
.om-menu > li.menu-item-has-children > a { padding-right: 4px; }
.om-sub-toggle { display: grid; place-items: center; width: 28px; height: 44px; color: var(--ink); margin-right: 6px; }
.om-sub-toggle svg { transition: transform .15s; }
.om-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.om-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 30; display: none; width: 540px; columns: 3; column-gap: 24px; background: var(--ground); border: 1px solid var(--rule-strong); border-top: 3px solid var(--pulse); padding: 18px 24px 22px; }
.om-menu li.is-open > .sub-menu { display: block; }
.om-menu .sub-menu li { break-inside: avoid; }
.om-menu .sub-menu a { display: flex; align-items: center; min-height: 44px; font: 500 16px/1.3 var(--f-text); color: var(--ink); border-bottom: 1px solid var(--rule); }
.om-menu .sub-menu a:hover, .om-menu .sub-menu .current-menu-item > a { color: var(--pulse-ink); }

.om-header__widgets { flex: none; max-height: 90px; overflow: hidden; }
.om-header__widgets img { max-height: 90px; width: auto; }
.om-header__search { display: none; flex: 0 0 100%; order: 10; padding: 0 0 18px; }
.om-header__search.is-open { display: flex; justify-content: flex-end; }
.om-search { display: flex; align-items: center; height: 46px; border: 1px solid var(--rule-strong); border-radius: var(--r); width: 100%; max-width: 560px; background: var(--ground); transition: border-color .15s; }
.om-search:focus-within { border-color: var(--navy); outline: 3px solid var(--pulse-tint); }
.om-search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 14px; font: 400 16px var(--f-text); color: var(--ink); outline: none; }
.om-search__input::placeholder { color: var(--muted); }
.om-search__btn { width: 46px; height: 100%; display: grid; place-items: center; color: var(--ink); flex: none; }
.om-header__actions { display: flex; gap: 4px; margin-left: auto; }
.om-header__actions .om-js-menu { display: none; }
.om-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border-radius: var(--r); }
.om-iconbtn__close { display: none; }
.om-iconbtn[aria-expanded="true"] .om-iconbtn__open { display: none; }
.om-iconbtn[aria-expanded="true"] .om-iconbtn__close { display: grid; }
.om-icon { display: block; }

.om-below-nav { background: var(--ground); border-bottom: 1px solid var(--rule); padding: 10px 0; }
.om-widget__title { font: 700 15px/1.3 var(--f-text); color: var(--muted); margin-bottom: 6px; }
.om-latest { display: flex; align-items: baseline; gap: 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.om-latest__label { font: 800 15px/1 var(--f-display); color: var(--ink); flex: none; }
.om-latest__list { display: flex; gap: 0; }
.om-latest__list li { padding: 0 16px; border-left: 1px solid var(--rule); font-size: 15px; }
.om-latest__list li:first-child { border-left: 0; padding-left: 0; }
.om-latest__list a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--ink); font-weight: 600; }
.om-latest__city { font-weight: 800; color: var(--pulse-ink); }
.om-latest__when { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Przyciski, linki, etykiety, metryczki
   ========================================================================== */

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; background: var(--navy); color: #fff; font: 700 16px/1 var(--f-text); border-radius: var(--r); transition: background .15s; }
.btn:hover { background: var(--pulse); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--signal { background: var(--pulse-on-dark); color: var(--screen); }
.btn--signal:hover { background: #7ae6b0; color: var(--screen); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 15px/1 var(--f-text); color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.more svg { width: 16px; height: 16px; transition: transform .15s; }
.more:hover { text-decoration-color: var(--pulse); }
.more:hover svg { transform: translateX(3px); }
.label-partner { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1.5px solid currentColor; border-radius: var(--r); font: 700 15px/1 var(--f-text); color: var(--navy); margin-bottom: 12px; }
.meta { font: 400 15px/1.45 var(--f-text); color: var(--muted); display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: baseline; }
.meta .by, .meta .om-author { color: var(--ink); font-weight: 600; }
.meta a.om-author { position: relative; z-index: 3; display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.meta a.om-author:hover { text-decoration-color: currentColor; }
.meta .city { color: var(--ink); font-weight: 700; }
.meta .t { font-size: 15px; }
.blk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.blk-head h2 { font: 800 24px/1.15 var(--f-display); color: var(--ink); letter-spacing: -.012em; }
.blk-head .more { margin: -14px 0; }

/* Okruszki */
.crumbs { font: 400 15px/1.4 var(--f-text); color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--rail-past-dark); text-underline-offset: 4px; }
.crumbs a:hover { text-decoration-color: var(--pulse-on-dark); }

/* ==========================================================================
   Strona główna i strona miasta – ciemny ekran z dziennikiem
   ========================================================================== */

.screen { background: var(--screen); color: var(--on-dark); --mcol: 176px; --rcol: 52px; --thumb: 236px; padding-bottom: 72px; }
.scr-head { display: grid; grid-template-columns: var(--mcol) var(--rcol) minmax(0, 1fr) auto; align-items: end; padding: 52px 0 26px; position: relative; }
.scr-head::before { content: ""; position: absolute; left: calc(var(--mcol) + var(--rcol) / 2 - var(--line) / 2); top: calc(52px + 30px); bottom: 0; width: var(--line); background: var(--pulse-on-dark); }
.scr-head .beacon { grid-column: 2; grid-row: 1; justify-self: center; align-self: center; z-index: 1; }
.scr-head h1 { grid-column: 3; font: 900 clamp(40px, 5vw, 68px)/.95 var(--f-display); letter-spacing: -.035em; color: #fff; }
.scr-head .status { grid-column: 4; font: 400 16px/1.4 var(--f-text); color: var(--on-dark-2); text-align: right; padding-bottom: 6px; }
.scr-head .status .t { color: var(--on-dark); font-size: 15px; }
.scr-head .status b { color: var(--pulse-on-dark); font-weight: 600; }
.scr-desc { padding: 0 0 8px calc(var(--mcol) + var(--rcol)); max-width: calc(var(--mcol) + var(--rcol) + 62ch); font: 400 18px/1.55 var(--f-text); color: var(--on-dark-2); position: relative; }
.scr-desc::before { content: ""; position: absolute; left: calc(var(--mcol) + var(--rcol) / 2 - var(--line) / 2); top: 0; bottom: 0; width: var(--line); background: var(--pulse-on-dark); }
.scr-desc p + p { margin-top: 10px; }
.screen.is-quiet .scr-head::before, .screen.is-quiet .scr-desc::before { background: var(--rail-past-dark); }

.log > li { display: grid; grid-template-columns: var(--mcol) var(--rcol) minmax(0, 1fr); position: relative; --rail: var(--pulse-on-dark); }
.log > li::before { content: ""; position: absolute; left: calc(var(--mcol) + var(--rcol) / 2 - var(--line) / 2); top: 0; bottom: 0; width: var(--line); background: var(--rail); }
.log > li.past { --rail: var(--rail-past-dark); }
.log > li.turn::before { background: linear-gradient(var(--pulse-on-dark), var(--rail-past-dark) 60px); }
.log > li:last-child::before { bottom: auto; height: 34px; }

.day { padding-top: 40px; }
.day .dn { grid-column: 2; justify-self: center; width: 16px; height: 16px; background: var(--rail); margin-top: 9px; position: relative; z-index: 1; }
.day .dl { grid-column: 3; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 6px; }
.day h2 { font: 800 28px/1.2 var(--f-display); letter-spacing: -.015em; color: #fff; }
.day.past h2 { color: var(--on-dark); }
.day .sub { font: 400 16px/1.3 var(--f-text); color: var(--on-dark-2); }
.day .t { font-size: 15px; color: var(--on-dark-2); }

.ev .m { grid-column: 1; text-align: right; padding: 28px 0 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ev .m .t { font-size: 15px; line-height: 1; color: var(--on-dark-2); }
.ev .m .c { font: 700 16px/1.2 var(--f-text); color: #fff; }
.ev .n { grid-column: 2; justify-self: center; margin-top: 28px; width: 13px; height: 13px; background: var(--screen); border: var(--line) solid var(--rail); position: relative; z-index: 1; }
.ev.is-new .n { background: var(--pulse-on-dark); }
.ev.is-new .n::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--pulse-on-dark); animation: ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.ev.is-new .m .t { color: var(--pulse-on-dark); font-weight: 600; }
.ev .b { grid-column: 3; display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb); column-gap: 36px; padding: 22px 0 26px; border-top: 1px solid var(--rule-on-dark); position: relative; }
.ev .b.no-media { grid-template-columns: minmax(0, 1fr); }
.day + .ev .b, .log > li:first-child .b { border-top: 0; }
.ev .x { min-width: 0; }
.ev h3 { font: 700 23px/1.28 var(--f-display); letter-spacing: -.01em; color: #fff; text-wrap: pretty; max-width: 34em; }
.ev h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.ev:hover h3 a { text-decoration: underline; text-decoration-color: var(--pulse-on-dark); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ev .sup { margin-top: 10px; font: 400 16px/1.55 var(--f-text); color: var(--on-dark-2); max-width: 60ch; }
.ev .meta { margin-top: 12px; color: var(--on-dark-2); }
.ev .meta .cnt { color: var(--on-dark); }
.ev .meta .om-author { color: #fff; }
.ev figure { background: var(--screen-2); border-radius: var(--r); overflow: hidden; margin-top: 4px; align-self: start; }
.ev figure img { width: 100%; height: auto; transition: opacity .15s; }
.ev:hover figure img { opacity: .88; }

.ev--row .m { padding-top: 20px; flex-direction: row-reverse; align-items: baseline; justify-content: flex-start; gap: 12px; }
.ev--row .m .c { font-size: 15px; color: var(--on-dark); white-space: nowrap; }
.ev--row .n { margin-top: 21px; width: 11px; height: 11px; border-width: 2px; }
.ev--row .b { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0 17px; }
.ev--row h3 { font: 500 18px/1.4 var(--f-text); letter-spacing: 0; color: var(--on-dark); }
.ev--row .meta { margin: 3px 0 0; flex-wrap: nowrap; white-space: nowrap; }
.log > li.ev-more { display: none; }

.more-row { padding: 36px 0 0 calc(var(--mcol) + var(--rcol)); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.screen-empty { padding: 32px 0 0 calc(var(--mcol) + var(--rcol)); font-size: 18px; color: var(--on-dark-2); max-width: 60ch; }

/* stronicowanie na ekranie i na jasnym */
.om-pagination { margin-top: 36px; }
.om-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.om-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r); font: 600 16px/1 var(--f-text); color: var(--ink); }
.om-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.om-pagination a.page-numbers:hover { border-color: var(--pulse); }
.om-pagination .dots { border: 0; min-width: 0; }
.screen .om-pagination { padding-left: calc(var(--mcol) + var(--rcol)); }
.screen .om-pagination .page-numbers { border-color: var(--rail-past-dark); color: var(--on-dark); }
.screen .om-pagination .page-numbers.current { background: var(--pulse-on-dark); border-color: var(--pulse-on-dark); color: var(--screen); }

/* ==========================================================================
   Strefa jasna pod ekranem: pas partnera, poradniki z odczytem, archiwum kanałów
   ========================================================================== */

.lowz { background: var(--ground); }
.zone { padding: 60px 0 8px; }
.zone-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
.zone-head h2 { font: 900 clamp(28px, 2.8vw, 38px)/1 var(--f-display); color: var(--ink); letter-spacing: -.025em; }
.zone-head p { margin-top: 8px; color: var(--muted); font-size: 17px; max-width: 60ch; }

/* odczyt – ciemny panel z danymi z tabeli TL;DR */
.rd { background: var(--screen); color: var(--on-dark); border-radius: var(--r); padding: 18px 22px 8px; position: relative; }
.rd-h { display: flex; align-items: center; gap: 10px; font: 700 15px/1.2 var(--f-text); color: var(--pulse-on-dark); padding-bottom: 12px; border-bottom: 1px solid var(--rule-on-dark); }
.rd-h::before { content: ""; width: 10px; height: 10px; background: var(--pulse-on-dark); flex: none; }
.rd dl { margin: 0; }
.rd dl div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 16px; padding: 11px 0 12px; border-bottom: 1px solid var(--rule-on-dark); }
.rd dl div:last-child { border-bottom: 0; }
.rd dt { font: 500 15px/1.45 var(--f-text); color: var(--on-dark-2); }
.rd dd { margin: 0; font: 600 16.5px/1.45 var(--f-text); color: #fff; }

/* pas partnera */
.pband { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 44px 0; }
.pb { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: center; }
.pb.no-media { grid-template-columns: minmax(0, 1fr); }
.pb figure { overflow: hidden; border-radius: var(--r); background: #fff; }
.pb figure img { width: 100%; height: auto; }
.pb h2 { font: 800 clamp(24px, 2.4vw, 32px)/1.18 var(--f-display); color: var(--ink); letter-spacing: -.015em; max-width: 26em; }
.pb h2 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.pb:hover h2 { text-decoration: underline; text-decoration-color: var(--pulse); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pb .ex { margin-top: 12px; font: 400 17px/1.55 var(--f-text); color: var(--text); max-width: 64ch; }
.pb .meta { margin-top: 12px; }

/* wpis z odczytem (listy działów, poradniki, wyniki wyszukiwania) */
.gx { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 28px 0 30px; border-bottom: 1px solid var(--rule); align-items: start; }
.gx.no-media { grid-template-columns: minmax(0, 1fr); }
.gx figure { overflow: hidden; border-radius: var(--r); border: 1px solid var(--rule); background: #fff; }
.gx figure img { width: 100%; height: auto; transition: opacity .15s; }
.gx:hover figure img { opacity: .9; }
.gx h2, .gx h3 { font: 800 21px/1.25 var(--f-display); color: var(--ink); letter-spacing: -.01em; text-wrap: pretty; }
.gx h2 a::before, .gx h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.gx:hover h2, .gx:hover h3 { text-decoration: underline; text-decoration-color: var(--pulse); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gx .meta { margin-top: 6px; }
.gx .bluf { margin-top: 10px; font: 400 17px/1.6 var(--f-text); color: var(--text); max-width: 64ch; }
.gx .rd { margin-top: 14px; padding: 12px 18px 4px; }
.gx .rd dl div { padding: 8px 0 9px; }
.gx .rd dd { font-size: 16px; }
.gx .go { position: relative; z-index: 3; margin-top: 8px; }
.gx--wide { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 440px); column-gap: 32px; }
.gx--wide.no-media { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.gx--wide .rd { margin-top: 0; }

/* archiwum kanałów */
.arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 56px; row-gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.arch li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.arch .t { font-size: 15px; color: var(--muted); }
.arch h3 { font: 700 17px/1.35 var(--f-display); color: var(--ink); }
.arch h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.arch li:hover h3 { text-decoration: underline; text-decoration-color: var(--pulse); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.arch .meta { margin-top: 4px; }
.archline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 28px 0 44px; font: 400 16px/1.4 var(--f-text); color: var(--muted); }
.archline > span:first-child { font-weight: 700; color: var(--ink); }
.archline a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.archline a:hover { text-decoration-color: var(--pulse); }

/* ==========================================================================
   Przegląd dnia – rama „L”: ciemna głowa i ciemna szyna przez całą treść
   ========================================================================== */

.art { --stamp: 180px; --rcol: 56px; --side: 360px; --gap: 56px; --strip: calc(var(--stamp) + var(--rcol)); --edge: max(var(--gut), calc(50% - 648px + var(--gut))); }
.ag { display: grid; grid-template-columns: var(--stamp) var(--rcol) minmax(0, 1fr) var(--side); column-gap: 0; }

.a-scr { background: var(--screen); color: var(--on-dark); padding: 40px 0 0; }
.a-scr .ag { position: relative; padding-bottom: 48px; }
.a-scr .ag::before { content: ""; position: absolute; left: calc(var(--gut) + var(--stamp) + var(--rcol) / 2 - var(--line) / 2); top: 18px; bottom: 0; width: var(--line); background: var(--pulse-on-dark); }
.a-stamp { grid-column: 1; grid-row: 1 / span 3; text-align: right; padding-right: 6px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.a-stamp .t.big { font-size: 30px; line-height: 1; font-weight: 600; color: var(--pulse-on-dark); }
.a-stamp .t.d { font-size: 15px; color: var(--on-dark); }
.a-stamp a.c { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; font: 700 18px/1 var(--f-text); color: #fff; text-decoration: underline; text-decoration-color: var(--pulse-on-dark); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.a-stamp .by { font: 400 15px/1.3 var(--f-text); color: var(--on-dark-2); }
.a-stamp .by a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--rail-past-dark); text-underline-offset: 3px; display: inline-flex; min-height: 32px; align-items: center; }
.a-scr .beacon { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 10px; z-index: 1; }
.a-scr .c3 { grid-column: 3 / span 2; max-width: 980px; min-width: 0; }
.a-scr h1 { margin-top: 6px; font: 700 19px/1.35 var(--f-text); color: var(--on-dark-2); max-width: 40em; }
.newer { margin-top: 10px; }
.newer a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 700 16px/1.3 var(--f-text); color: var(--pulse-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.prog { margin-top: 22px; }
.prog li { position: relative; padding: 14px 0 16px; border-top: 1px solid var(--rule-on-dark); }
.prog li:first-child { border-top: 0; padding-top: 4px; }
.prog li::before { content: ""; position: absolute; left: calc(-1 * var(--rcol) / 2 - 7px); top: 14px; width: 14px; height: 14px; background: var(--screen); border: var(--line) solid var(--pulse-on-dark); }
.prog li:first-child::before { top: 6px; }
.prog a { display: block; min-height: 44px; font: 800 clamp(24px, 2.5vw, 34px)/1.14 var(--f-display); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.prog li + li a { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; color: var(--on-dark); min-height: 0; }
.prog a:hover { text-decoration: underline; text-decoration-color: var(--pulse-on-dark); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.prog .more-n { display: block; margin-top: 2px; font: 600 15px/1.4 var(--f-text); color: var(--on-dark-2); }
.prog li.is-note::before { width: 10px; height: 10px; left: calc(-1 * var(--rcol) / 2 - 5px); border-width: 2px; }
.a-cover { grid-column: 3 / span 2; grid-row: 4; align-self: start; margin-top: 30px; max-width: 880px; background: var(--screen-2); border-radius: var(--r); overflow: hidden; }
.a-cover img { width: 100%; height: auto; }

.a-body { background: linear-gradient(90deg, var(--screen) calc(var(--edge) + var(--strip)), var(--ground) calc(var(--edge) + var(--strip))); }
.a-body .ag { position: relative; }
.a-body .ag::before { content: ""; position: absolute; left: calc(var(--gut) + var(--stamp) + var(--rcol) / 2 - var(--line) / 2); top: 0; bottom: 0; width: var(--line); background: var(--pulse-on-dark); }
.entry { grid-column: 3; padding: 44px var(--gap) 0 36px; font: 400 19px/1.65 var(--f-text); color: var(--text); min-width: 0; position: relative; }
.entry > .digest-ai-label { display: flex !important; align-items: center; gap: 14px; margin: 0 0 28px !important; padding: 14px 16px !important; border: 1px solid var(--rule) !important; border-radius: var(--r) !important; background: var(--panel) !important; color: var(--muted) !important; font: 400 15px/1.5 var(--f-text) !important; }
.entry .digest-ai-badge { flex: none; font: 700 14px/1 var(--f-text) !important; color: #fff !important; background: var(--navy) !important; border-radius: var(--r) !important; padding: 6px 8px !important; letter-spacing: .02em !important; }
.entry > .lead { font: 500 21px/1.55 var(--f-text); color: var(--ink); margin: 0; }
.entry .digest-top { margin-top: 30px; }
.entry .digest-top h2 { font: 700 16px/1.3 var(--f-text); color: var(--muted); margin: 0 0 6px; }
.entry .digest-top li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.5; }
.entry .digest-top a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.entry .digest-toc { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.entry .digest-toc-label { margin: 0; font: 600 15px/1 var(--f-text); color: var(--muted); }
.entry .digest-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.entry .digest-toc a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: var(--r); font: 600 16px/1 var(--f-text); color: var(--ink); }
.entry .digest-toc a:hover { border-color: var(--pulse); }
.entry .digest-toc b { font-weight: 500; color: var(--pulse-ink); }
.entry .digest-section { counter-reset: item; margin-top: 40px; position: relative; scroll-margin-top: 24px; }
.entry .digest-section > h2 { font: 800 22px/1.2 var(--f-display); color: var(--ink); margin: 0 0 4px; padding-top: 10px; }
.entry .digest-section.is-only > h2 { display: none; }
.entry .digest-item { counter-increment: item; position: relative; padding: 20px 0 34px; scroll-margin-top: 24px; }
.entry .digest-item + .digest-item { border-top: 1px solid var(--rule); }
.entry .digest-item::before { content: counter(item); position: absolute; left: calc(-36px - var(--rcol) / 2 - 18px); top: 20px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--pulse-on-dark); color: var(--screen); font: 800 18px/1 var(--f-display); border-radius: var(--r); z-index: 1; }
.entry .digest-item h3 { font: 800 28px/1.18 var(--f-display); color: var(--ink); letter-spacing: -.016em; margin: 2px 0 16px; text-wrap: balance; }
.entry .digest-badge { position: absolute; right: calc(100% + 36px + var(--rcol) + 8px); top: 27px; display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1.5px solid var(--pulse-on-dark); color: var(--pulse-on-dark); border-radius: var(--r); font: 700 15px/1 var(--f-text); white-space: nowrap; }
.entry .digest-item > p { margin: 0 0 18px; }
.entry .digest-takeaways { margin: 0 0 20px; display: grid; gap: 10px; }
.entry .digest-takeaways li { position: relative; padding-left: 24px; font-size: 17.5px; line-height: 1.55; }
.entry .digest-takeaways li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--pulse); }
.entry .digest-source { margin: 0; font: 400 15px/1.5 var(--f-text); color: var(--muted); }
.entry .source-link, .entry .digest-source a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; cursor: pointer; display: inline-flex; min-height: 36px; align-items: center; }
.entry .source-link:hover, .entry .digest-source a:hover { text-decoration-color: var(--pulse); }
.entry > p { margin: 0 0 18px; }
.endmark { grid-column: 3; position: relative; padding: 12px var(--gap) 56px 36px; font: 700 17px/1.3 var(--f-text); color: var(--ink); }
.endmark::before { content: ""; position: absolute; left: calc(-1 * var(--rcol) / 2 - 10px); top: 10px; width: 20px; height: 20px; background: var(--pulse-on-dark); }
.endmark .lbl { position: absolute; right: calc(100% + var(--rcol) + 8px); top: 10px; font: 600 15px/1.3 var(--f-text); color: var(--on-dark-2); white-space: nowrap; }

.a-side { grid-column: 4; grid-row: 1 / span 3; align-self: start; position: sticky; top: 24px; padding-top: 44px; padding-bottom: 32px; }
.a-side .blk-head h2 { font-size: 21px; }
.prevs a { position: relative; display: block; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); min-height: 44px; }
.prevs .t { display: block; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.prevs b { font: 700 17px/1.35 var(--f-display); color: var(--ink); }
.prevs .n { display: block; margin-top: 4px; font: 400 15px/1.4 var(--f-text); color: var(--muted); }
.prevs a:hover b { text-decoration: underline; text-decoration-color: var(--pulse); text-underline-offset: 3px; }
.a-side .btn { margin-top: 22px; width: 100%; justify-content: center; text-align: center; }

.a-next { background: var(--screen); color: var(--on-dark); padding: 0 0 60px; }
.a-next .ag { position: relative; }
.a-next .ag::before { content: ""; position: absolute; left: calc(var(--gut) + var(--stamp) + var(--rcol) / 2 - var(--line) / 2); top: 0; bottom: 25px; width: var(--line); background: var(--pulse-on-dark); }
.next-head { grid-column: 3 / span 2; padding: 52px 0 12px; }
.next-head h2 { font: 900 clamp(30px, 3vw, 40px)/1 var(--f-display); color: #fff; letter-spacing: -.025em; }
.next-head p { margin-top: 10px; color: var(--on-dark-2); font-size: 17px; }
.nlog { grid-column: 1 / -1; }
.nlog li { display: grid; grid-template-columns: var(--stamp) var(--rcol) minmax(0, 1fr) var(--side); position: relative; }
.nlog .m { grid-column: 1; display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: baseline; gap: 12px; padding-top: 22px; }
.nlog .m .t { font-size: 15px; color: var(--on-dark-2); }
.nlog .m .c { font: 700 16px/1.2 var(--f-text); color: #fff; white-space: nowrap; }
.nlog .n { grid-column: 2; justify-self: center; margin-top: 24px; width: 13px; height: 13px; background: var(--screen); border: var(--line) solid var(--pulse-on-dark); position: relative; z-index: 1; }
.nlog .b { grid-column: 3 / span 2; padding: 18px 0 20px; border-top: 1px solid var(--rule-on-dark); position: relative; }
.nlog li:first-child .b { border-top: 0; }
.nlog h3 { font: 700 21px/1.3 var(--f-display); color: #fff; max-width: 36em; }
.nlog h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.nlog li:hover h3 { text-decoration: underline; text-decoration-color: var(--pulse-on-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nlog .sub { margin-top: 6px; font: 400 16px/1.5 var(--f-text); color: var(--on-dark-2); max-width: 60ch; }
.nlog .meta { margin-top: 8px; color: var(--on-dark-2); }
.nlog .meta .om-author { color: var(--on-dark); }
.a-next .more-row { grid-column: 3; padding: 26px 0 0; position: relative; }
.a-next .more-row::before { content: ""; position: absolute; left: calc(-1 * var(--rcol) / 2 - 9px); top: 41px; width: 18px; height: 18px; background: var(--pulse-on-dark); }

/* ==========================================================================
   Wpis działu (poradnik, horoskop, życzenia, materiał partnera) i strona statyczna
   ========================================================================== */

.e-scr { background: var(--screen); color: var(--on-dark); padding: 40px 0 52px; }
.e-top { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 56px; align-items: start; }
.e-top.no-media { grid-template-columns: minmax(0, 1fr); }
.e-scr .crumbs { margin-bottom: 8px; }
.e-scr h1 { font: 900 clamp(34px, 3.8vw, 54px)/1.02 var(--f-display); letter-spacing: -.03em; color: #fff; text-wrap: balance; max-width: 22em; }
.e-scr h1.is-long { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.e-scr .label-partner { color: #fff; }
.e-scr .meta { margin-top: 16px; color: var(--on-dark-2); }
.e-scr .meta .om-author { color: #fff; }
.e-scr .meta .t { color: var(--on-dark); }
.e-scr .bluf { margin-top: 20px; padding-left: 20px; border-left: var(--line) solid var(--pulse-on-dark); font: 400 19px/1.6 var(--f-text); color: var(--on-dark); max-width: 62ch; }
.e-fig { border-radius: var(--r); overflow: hidden; background: #fff; margin-top: 8px; }
.e-fig img { width: 100%; height: auto; }
.e-fig figcaption { padding: 8px 0 0; background: var(--screen); font-size: 15px; color: var(--on-dark-2); }

.e-grid { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; column-gap: 56px; padding-top: 48px; padding-bottom: 40px; }
.e-grid.no-side { grid-template-columns: minmax(0, 760px); }
.ec { font: 400 19px/1.65 var(--f-text); color: var(--text); min-width: 0; }
.ec > * + * { margin-top: 20px; }
.ec p { margin: 0 0 20px; }
.ec h2 { font: 800 clamp(24px, 2.3vw, 30px)/1.18 var(--f-display); color: var(--ink); letter-spacing: -.015em; margin: 48px 0 16px; padding-top: 16px; border-top: 2px solid var(--navy); scroll-margin-top: 20px; text-wrap: balance; }
.ec h2:first-child { margin-top: 0; }
.ec h3 { font: 800 21px/1.25 var(--f-display); color: var(--ink); margin: 30px 0 10px; }
.ec h4 { font: 700 18px/1.3 var(--f-display); color: var(--ink); margin: 24px 0 8px; }
.ec ul, .ec ol { margin: 0 0 22px; display: grid; gap: 10px; }
.ec ul li { position: relative; padding-left: 24px; }
.ec ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--pulse); }
.ec ol { counter-reset: o; }
.ec ol li { counter-increment: o; position: relative; padding-left: 40px; }
.ec ol li::before { content: counter(o); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 15px/1 var(--f-display); border-radius: var(--r); }
.ec strong { color: var(--ink); }
.ec a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pulse); text-underline-offset: 3px; }
.ec a:hover { text-decoration-thickness: 2px; }
.ec code { font: 500 .86em/1.4 var(--f-mono); background: var(--panel); padding: 2px 6px; border-radius: var(--r); color: var(--ink); }
.ec pre { overflow-x: auto; background: var(--panel); padding: 16px; border-radius: var(--r); font: 500 15px/1.5 var(--f-mono); }
.ec blockquote { margin: 28px 0; padding-left: 20px; border-left: var(--line) solid var(--pulse); font-size: 20px; color: var(--ink); }
.ec figure, .ec .wp-block-image { margin: 28px 0; }
.ec figure img, .ec img { height: auto; border-radius: var(--r); }
.ec figcaption, .ec .wp-caption-text { margin-top: 10px; font: 400 15px/1.5 var(--f-text); color: var(--muted); }
.ec .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.ec .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.ec .aligncenter { margin-left: auto; margin-right: auto; }
.ec hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
.ec::after { content: ""; display: table; clear: both; }
.tw { margin: 8px 0 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ec table { width: 100%; border-collapse: collapse; font: 400 16px/1.45 var(--f-text); }
.ec th { text-align: left; font: 700 15px/1.35 var(--f-text); color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--navy); }
.ec td { padding: 11px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
.tw.tldr { background: var(--screen); border-radius: var(--r); padding: 16px 22px 6px; }
.tw.tldr th { color: var(--pulse-on-dark); border-bottom: 1px solid var(--rule-on-dark); }
.tw.tldr td { color: #fff; font-weight: 600; border-bottom: 1px solid var(--rule-on-dark); }
.tw.tldr td:first-child { color: var(--on-dark-2); font-weight: 500; width: 36%; }
.tw.tldr tr:last-child td { border-bottom: 0; }
.tw.tldr strong { color: inherit; }
.tw.grid3 { overflow-x: auto; }
.ec table.crafting-grid { width: auto; border-collapse: separate; border-spacing: 6px; margin-left: -6px; }
.ec table.crafting-grid thead { display: none; }
.ec table.crafting-grid td { width: 104px; height: 84px; padding: 6px; text-align: center; vertical-align: middle; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--r); font: 700 16px/1.25 var(--f-text); color: var(--ink); }
.ec table.crafting-grid td:first-child { width: auto; background: none; border: 0; font: 600 15px/1.2 var(--f-text); color: var(--muted); text-align: right; padding-right: 10px; }
.ec table.crafting-grid td:first-child strong { color: var(--muted); }

.e-side { position: sticky; top: 24px; align-self: start; }
.e-side .blk-head h2 { font-size: 20px; }
.toc li a { display: flex; align-items: center; min-height: 44px; padding: 9px 0 10px; border-bottom: 1px solid var(--rule); font: 600 15.5px/1.35 var(--f-text); color: var(--ink); }
.toc li a:hover { color: var(--pulse-ink); text-decoration: underline; text-underline-offset: 3px; }
.e-after { margin-top: 36px; }
.e-more { padding: 20px 0 40px; }
.om-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.om-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r); font: 600 15px/1 var(--f-text); color: var(--ink); }
.om-chip:hover { border-color: var(--pulse); }
.page-links { display: flex; gap: 8px; align-items: center; margin-top: 24px; font-weight: 600; }
.partner-note { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--muted); }
.partner-note .label-partner { margin: 0; }
.om-partnerbox { margin-top: 28px; padding: 20px 22px; background: var(--panel); border-radius: var(--r); }
.om-partnerbox__title { font: 800 21px/1.2 var(--f-display); color: var(--ink); }
.om-partnerbox__name { margin-top: 8px; font-weight: 700; color: var(--ink); }
.om-partnerbox__desc { margin-top: 6px; font-size: 16px; }
.om-authorbox { margin-top: 36px; padding-top: 20px; border-top: 2px solid var(--navy); }
.om-authorbox__name { font: 800 21px/1.2 var(--f-display); color: var(--ink); }
.om-authorbox__bio { margin-top: 8px; font-size: 16px; }

/* ==========================================================================
   Działy, listy, wyszukiwanie, archiwa
   ========================================================================== */

.s-scr { background: var(--screen); color: var(--on-dark); padding: 40px 0 52px; }
.s-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.s-top.is-solo { grid-template-columns: minmax(0, 1fr); }
.s-scr .crumbs { margin-bottom: 10px; }
.s-scr h1 { font: 900 clamp(40px, 5vw, 72px)/.95 var(--f-display); letter-spacing: -.035em; color: #fff; display: flex; align-items: flex-start; gap: 20px; }
.s-scr h1 .beacon { margin-top: .32em; }
.s-scr h1.is-search { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.s-scr .intro { margin-top: 18px; font: 400 19px/1.55 var(--f-text); color: var(--on-dark-2); max-width: 56ch; }
.s-scr .intro p + p { margin-top: 10px; }
.s-scr .intro a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.s-scr .upd { margin-top: 14px; font: 400 15px/1.4 var(--f-text); color: var(--on-dark-2); }
.s-scr .upd .t { color: var(--on-dark); }
.s-scr .om-search { margin-top: 22px; width: 100%; max-width: 460px; border-color: var(--rail-past-dark); background: var(--screen-2); }
.s-scr .om-search__input { color: #fff; }
.s-scr .om-search__input::placeholder { color: var(--on-dark-2); }
.s-scr .om-search__btn { color: #fff; }
.s-scr .om-search:focus-within { border-color: var(--pulse-on-dark); outline-color: rgba(63, 214, 140, .35); }
.idx { border-left: var(--line) solid var(--pulse-on-dark); padding: 4px 0 4px 26px; margin-top: 46px; }
.idx h2 { font: 700 15px/1.3 var(--f-text); color: var(--pulse-on-dark); margin-bottom: 6px; }
.idx li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--rule-on-dark); font: 600 16.5px/1.35 var(--f-text); color: #fff; }
.idx li:last-child a { border-bottom: 0; }
.idx li a:hover { color: var(--pulse-on-dark); }
.prevday a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; font: 600 16px/1.3 var(--f-text); color: var(--pulse-on-dark); text-decoration: underline; text-underline-offset: 4px; }

.s-body { padding: 12px 0 56px; }
.s-body .gx { grid-template-columns: 260px minmax(0, 1fr); column-gap: 40px; padding: 40px 0 42px; scroll-margin-top: 16px; }
.s-body .gx.no-media { grid-template-columns: minmax(0, 1fr); }
.s-body .gx h2 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.18; }
.s-body .gx .bluf { margin-top: 12px; font-size: 18px; }
.s-body .gx .rd { margin-top: 18px; max-width: 720px; }
.empty { padding: 40px 0; font-size: 18px; max-width: 60ch; }
.empty .om-search { margin-top: 20px; }
.om-list-sub { padding-top: 48px; }

/* ==========================================================================
   Komentarze
   ========================================================================== */

.om-comments { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--navy); font-size: 17px; }
.om-comments__title, .comment-reply-title { font: 800 24px/1.2 var(--f-display); color: var(--ink); margin-bottom: 16px; }
.om-comments__list { display: grid; gap: 20px; margin-bottom: 32px; }
.om-comments__list .children { margin: 16px 0 0 24px; display: grid; gap: 16px; }
.comment-body { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.comment-meta { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.comment-author .fn { font-weight: 700; color: var(--ink); font-style: normal; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: #fff; color: var(--ink); }
.comment-form input[type="checkbox"] { width: 20px; height: 20px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.om-btn, .comment-form .submit { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; background: var(--navy); color: #fff; font: 700 16px/1 var(--f-text); border-radius: var(--r); border: 0; cursor: pointer; }
.om-btn:hover, .comment-form .submit:hover { background: var(--pulse); }

/* ==========================================================================
   Ramka monitora: dolna listwa (stopka – jasna, z logo)
   ========================================================================== */

.foot { background: var(--panel); color: var(--text); padding: 56px 0 30px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr 1fr; gap: 48px; }
.foot h2 { font: 800 17px/1.2 var(--f-display); color: var(--ink); margin-bottom: 12px; }
.foot-brand .custom-logo-link { display: inline-flex; }
.foot-brand img { height: 52px; width: auto; max-width: 240px; margin-left: -4px; object-fit: contain; }
.foot-brand p { margin-top: 14px; font: 400 16px/1.55 var(--f-text); max-width: 32ch; color: var(--text); }
.foot ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-size: 16px; }
.foot ul a:hover { color: var(--pulse-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-cities { columns: 2; column-gap: 24px; }
.foot-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule-strong); font: 400 15px/1.4 var(--f-text); color: var(--muted); }

/* ==========================================================================
   Szerokości pośrednie
   ========================================================================== */

@media (max-width: 1180px) {
	.screen { --thumb: 200px; }
	.gx--wide { grid-template-columns: 160px minmax(0, 1fr); }
	.gx--wide .rd { grid-column: 2; }
	.gx--wide.no-media { grid-template-columns: minmax(0, 1fr); }
	.gx--wide.no-media .rd { grid-column: 1; }
	.art { --stamp: 150px; --rcol: 48px; --side: 300px; --gap: 40px; }
	.e-top { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; }
	.e-grid { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 40px; }
	.s-top { column-gap: 40px; }
	.s-body .gx { grid-template-columns: 200px minmax(0, 1fr); column-gap: 28px; }
}

/* ==========================================================================
   Telefon i tablet (do 960 px)
   ========================================================================== */

/* Menu w panelu (przycisk „Menu”), gdy pozycje nie mieszczą się w jednym wierszu z logo. */
@media (max-width: 1180px) {
	.om-header__widgets { display: none; }
	.om-header__actions .om-js-menu { display: grid; }
	.om-nav { display: none; width: 100%; flex: 0 0 100%; order: 11; }
	.om-header__search.is-open { display: block; padding: 4px 0 16px; }
	.om-header__search .om-search { max-width: none; height: 48px; }
	.om-nav.is-open { display: block; border-top: 1px solid var(--rule); padding: 4px 0 20px; }
	.om-menu { display: block; }
	.om-menu > li { display: flex; flex-wrap: wrap; }
	.om-menu > li > a { flex: 1; min-height: 48px; padding: 0; font-size: 17px; border-bottom: 1px solid var(--rule); white-space: normal; }
	.om-menu > li > a::after { display: none; }
	.om-sub-toggle { display: none; }
	.om-menu .sub-menu { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; width: 100%; columns: auto; border: 0; padding: 0 0 8px; }
	.om-menu .sub-menu a { min-height: 48px; font-size: 16.5px; }
}

@media (max-width: 960px) {
	:root { --gut: 20px; }
	.head-row { min-height: 64px; gap: 4px; flex-wrap: wrap; }
	.logo { margin-right: auto; }
	.logo img, .logo .custom-logo { height: 38px; max-width: 190px; }

	.blk-head h2 { font-size: 22px; }

	.screen { --mcol: 0px; --rcol: 26px; padding-bottom: 48px; }
	.scr-head { grid-template-columns: var(--rcol) minmax(0, 1fr); padding: 30px 0 18px; row-gap: 10px; }
	.scr-head::before { left: 6px; top: calc(30px + 22px); }
	.scr-head .beacon { grid-column: 1; justify-self: start; width: 14px; height: 14px; }
	.scr-head h1 { grid-column: 2; font-size: 44px; }
	.scr-head .status { grid-column: 2; text-align: left; font-size: 15px; padding: 0; }
	.scr-desc { padding-left: var(--rcol); font-size: 17px; }
	.scr-desc::before { left: 6px; }
	.log > li { grid-template-columns: var(--rcol) minmax(0, 1fr); }
	.log > li::before { left: 6px; }
	.day { padding-top: 34px; }
	.day .dn, .ev .n { grid-column: 1; justify-self: start; }
	.day .dn { width: 15px; height: 15px; }
	.ev .n { margin-left: 1px; }
	.day .dl, .ev .b { grid-column: 2; }
	.day h2 { font-size: 23px; }
	.ev .m { position: absolute; left: var(--rcol); top: 0; flex-direction: row; align-items: baseline; gap: 10px; padding-top: 21px; text-align: left; }
	.ev .n { margin-top: 23px; }
	.ev .b { display: block; padding: 50px 0 22px; }
	.ev h3 { font-size: 20px; line-height: 1.3; }
	.ev figure { display: none; }
	.ev.is-new figure { display: block; margin-top: 16px; }
	.ev--row .m { padding-top: 17px; flex-direction: row; }
	.ev--row .n { margin-top: 19px; margin-left: 2px; }
	.ev--row .b { display: block; padding: 46px 0 16px; }
	.ev--row h3 { font-size: 17px; }
	.ev--row .meta { margin-top: 6px; flex-wrap: wrap; white-space: normal; }
	.log > li.xtra { display: none; }
	.log > li.ev-more { display: grid; }
	.ev-more .n { grid-column: 1; justify-self: start; margin: 20px 0 0 3px; width: 9px; height: 9px; background: var(--rail-past-dark); }
	.ev-more a { grid-column: 2; display: flex; align-items: center; gap: 8px; min-height: 48px; font: 600 16px/1.3 var(--f-text); color: var(--pulse-on-dark); text-decoration: underline; text-decoration-color: var(--rail-past-dark); text-underline-offset: 4px; }
	.ev-more a svg { width: 16px; height: 16px; flex: none; }
	.more-row, .screen-empty, .screen .om-pagination { padding-left: var(--rcol); }

	.zone { padding: 44px 0 4px; }
	.zone-head { flex-direction: column; align-items: flex-start; gap: 4px; }
	.rd { padding: 16px 16px 6px; }
	.rd dl div { grid-template-columns: 1fr; gap: 2px; }
	.pband { padding: 32px 0; }
	.pb { grid-template-columns: 1fr; gap: 18px; }
	.pb h2 { font-size: 23px; }
	.gx, .gx--wide, .s-body .gx { grid-template-columns: 1fr; gap: 14px; }
	.gx--wide .rd { grid-column: 1; }
	.arch-grid { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
	.arch li { grid-template-columns: 1fr; gap: 4px; }

	/* przegląd: na telefonie szyna kończy się na głowie – tekst ma całą szerokość */
	.art { --stamp: 0px; --rcol: 30px; --edge: var(--gut); }
	.ag { grid-template-columns: var(--rcol) minmax(0, 1fr); }
	.a-scr { padding-top: 18px; }
	.a-scr .ag { padding-bottom: 0; }
	.a-scr .ag::before { left: calc(var(--gut) + 7px); top: 14px; bottom: auto; height: calc(100% - 14px); }
	.a-stamp { grid-column: 2; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 12px; padding: 0; text-align: left; }
	.a-stamp .t.big { font-size: 21px; }
	.a-stamp a.c { font-size: 17px; margin: 0; min-height: 44px; }
	.a-stamp .by { font-size: 15px; }
	.a-stamp .by a { min-height: 44px; }
	.a-scr .beacon { grid-column: 1; grid-row: 1; justify-self: start; width: 14px; height: 14px; margin: 14px 0 0; }
	.a-scr .c3 { grid-row: 2; grid-column: 2; padding: 0; max-width: none; }
	.a-scr .crumbs { display: none; }
	.a-scr h1 { margin-top: 0; font-size: 16px; }
	.prog { margin-top: 14px; }
	.prog li::before { left: calc(-1 * var(--rcol) + 1.5px); }
	.prog li.is-note::before { left: calc(-1 * var(--rcol) + 3.5px); }
	.prog a { font-size: 25px; }
	.prog li + li a { font-size: 19px; }
	.a-cover { grid-column: 1 / -1; grid-row: 3; margin: 18px calc(var(--gut) * -1) 0; max-width: none; border-radius: 0; position: relative; z-index: 1; }
	.a-body { background: var(--ground); }
	.a-body .ag { display: block; }
	.a-body .ag::before { display: none; }
	.entry { padding: 28px 0 0; font-size: 18px; line-height: 1.62; }
	.entry > .lead { font-size: 19px; }
	.entry > .digest-ai-label { align-items: flex-start; }
	.entry .digest-item { padding: 22px 0 28px; }
	.entry .digest-item::before { position: static; display: inline-grid; width: 32px; height: 32px; font-size: 16px; margin-bottom: 10px; }
	.entry .digest-item h3 { font-size: 23px; }
	.entry .digest-badge { position: static; margin: 0 10px 0 0; vertical-align: 4px; border-color: var(--pulse); color: var(--pulse-ink); }
	.entry .digest-takeaways li { font-size: 17px; }
	.endmark { padding: 6px 0 40px; display: flex; align-items: center; gap: 12px; }
	.endmark::before { position: static; flex: none; }
	.endmark .lbl { display: none; }
	.a-side { position: static; padding: 0 0 44px; }
	.a-next .ag::before { left: calc(var(--gut) + 7px); }
	.next-head { grid-column: 2; padding-top: 40px; }
	.nlog li { grid-template-columns: var(--rcol) minmax(0, 1fr); }
	.nlog .m { position: absolute; left: var(--rcol); top: 0; padding-top: 18px; flex-direction: row; }
	.nlog .n { grid-column: 1; justify-self: start; margin: 20px 0 0 1px; }
	.nlog .b { grid-column: 2; padding: 46px 0 18px; }
	.nlog h3 { font-size: 19px; }
	.a-next .more-row { grid-column: 2; padding-left: 0; }
	.a-next .more-row::before { left: calc(-1 * var(--rcol) - .5px); }

	.e-scr { padding: 20px 0 0; }
	.e-top, .e-top.no-media { grid-template-columns: 1fr; }
	.e-top.no-media { padding-bottom: 32px; }
	.e-scr .crumbs a, .s-scr .crumbs a { min-height: 44px; }
	.e-scr h1 { font-size: 33px; }
	.e-scr h1.is-long { font-size: 27px; }
	.e-scr .bluf { font-size: 17px; padding-left: 16px; }
	.e-fig { margin: 24px calc(var(--gut) * -1) 0; border-radius: 0; }
	.e-fig figcaption { padding: 8px var(--gut) 12px; }
	.e-grid, .e-grid.no-side { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
	.e-side { display: none; }
	.ec { font-size: 18px; line-height: 1.62; }
	.ec table { font-size: 15.5px; min-width: 520px; }
	.tw.tldr table, .ec table.crafting-grid { min-width: 0; }
	.tw.tldr { padding: 12px 16px 4px; }
	.tw.tldr td:first-child { width: 40%; }
	.ec table.crafting-grid td { width: 78px; height: 70px; font-size: 15px; }
	.ec .alignleft, .ec .alignright { float: none; margin: 20px 0; max-width: 100%; }

	.s-scr { padding: 20px 0 36px; }
	.s-top { grid-template-columns: 1fr; }
	.s-scr h1 { font-size: 40px; gap: 14px; }
	.s-scr h1.is-search { font-size: 30px; }
	.s-scr .intro { font-size: 17px; }
	.idx { margin-top: 24px; padding-left: 18px; }
	.s-body .gx { padding: 28px 0 30px; }
	.s-body .gx .bluf { font-size: 17px; }

	.foot { padding: 40px 0 28px; }
	.foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.foot-brand, .foot-citiesbox { grid-column: 1 / -1; }
	.foot-brand img { height: 44px; }
	.foot ul a { min-height: 46px; display: flex; }
	.meta a.om-author { min-height: 44px; margin: -6px 0; }
	.s-scr .intro a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
