/* Layout: lokalny portal — pasek PILNE, nagłówek z herbowym znakiem, czołówka + kolumna „Na sygnale”, potem sekcje kategorii. Barwy z herbu Biłgoraja: czerwień + biel. */
:root {
  --bg: #ffffff;
  --surface: #f6f2f2;
  --ink: #1b1415;
  --muted: #6c5f60;
  --line: #e8dfdf;
  --red: #c3161c;
  --red-ink: #a3121a;
  --on-red: #ffffff;
  --ph-a: #efe7e7;
  --ph-b: #e6dcdc;
  --f-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
}
/* Zawsze jasna strona, jak gazeta — bez trybu ciemnego. */
:root { color-scheme: light; }

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover .hl, a:focus-visible .hl { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Pasek projektu */
.draft { background: var(--surface); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.draft .wrap { padding-block: 6px; }
.draft b { color: var(--ink); }

/* Pasek PILNE */
.urgent { background: var(--red); color: var(--on-red); }
.urgent .wrap { display: flex; align-items: center; gap: 14px; padding-block: 9px; min-width: 0; }
.urgent-tag { font-family: var(--f-display); font-weight: 800; letter-spacing: .08em; font-size: 13px; display: flex; align-items: center; gap: 8px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.urgent-text { min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.urgent-time { font-family: var(--f-mono); font-size: 13px; opacity: .85; flex: none; margin-left: auto; }

/* Nagłówek */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-img { display: block; height: 76px; width: auto; max-width: none; }
.head-row { padding-block: 8px; }
.logo-word { font-family: var(--f-display); line-height: .9; }
.logo-word .a { display: block; font-weight: 800; font-size: 30px; letter-spacing: -.01em; color: var(--red); }
.logo-word .b { display: block; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.head-meta { margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); }
.head-meta strong { color: var(--ink); font-weight: 600; display: block; }
.btn-tip { flex: none; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 6px; border: 0; cursor: pointer; font-family: var(--f-body); }
.btn-tip:hover { background: var(--red); color: var(--on-red); }
nav.cats { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
nav.cats::-webkit-scrollbar { display: none; }
nav.cats ul { list-style: none; margin: 0 auto; padding-block: 0; display: flex; gap: 4px; }
nav.cats li:first-child a { padding-left: 0; }
nav.cats a { display: block; padding: 11px 12px; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
nav.cats a:hover, nav.cats a[aria-current] { border-bottom-color: var(--red); }
nav.cats a.hot { color: var(--red-ink); }

/* Zdjęcia — zaślepki z podpisem źródła */
.ph {
  aspect-ratio: 16 / 10; max-width: 100%; width: 100%;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px);
  display: flex; align-items: flex-end; padding: 10px; border-radius: 4px;
  color: var(--muted); font-size: 12px; font-family: var(--f-mono);
}
.ph span { background: var(--bg); padding: 3px 7px; border-radius: 3px; }
.photo { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--ph-a); }
.lead .photo { aspect-ratio: 16 / 9; }
.credit { font-size: 12px; color: var(--muted); margin-top: 6px; }
.credit.ai { color: var(--red-ink); }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red-ink); }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.src { font-size: 13px; color: var(--muted); }
.src b { color: var(--ink); font-weight: 600; }

main { padding-block: 28px 0; display: grid; gap: 48px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.sec-head h2 { font-size: 24px; font-weight: 800; }
.sec-head a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--red-ink); }

/* Czołówka */
.top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
.lead { display: grid; gap: 12px; }
.lead h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.015em; }
.lead .dek { font-size: 18px; color: var(--muted); max-width: 62ch; }
.lead .ph { aspect-ratio: 16 / 9; }

.siren h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.siren h2 .dot { background: var(--red); }
.siren .sub { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feed li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed time { font-family: var(--f-mono); font-size: 14px; color: var(--red-ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.feed time small { display: block; color: var(--muted); font-size: 11px; }
.feed .hl { font-weight: 600; line-height: 1.35; display: block; }
.feed .src { font-size: 12px; margin-top: 3px; }

/* Najnowsze */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.story { display: grid; gap: 8px; align-content: start; }
.story h3 { font-size: 20px; font-weight: 700; }
.story p { color: var(--muted); font-size: 15px; }

/* Daj znać */
.tip { background: var(--red); color: var(--on-red); }
.tip .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding-block: 36px; align-items: center; }
.tip h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.tip p { margin-top: 10px; font-size: 17px; opacity: .92; max-width: 46ch; }
.tip form { display: grid; gap: 10px; }
.tip label { font-size: 13px; font-weight: 600; }
.tip input, .tip textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: var(--on-red);
}
.tip input::placeholder, .tip textarea::placeholder { color: rgba(255,255,255,.75); }
.tip .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tip button { background: var(--on-red); color: #a3121a; border: 0; font-weight: 800; font-family: var(--f-body); font-size: 15px; padding: 11px 18px; border-radius: 6px; cursor: pointer; }
.tip .consent { font-size: 12px; opacity: .85; display: flex; gap: 8px; align-items: flex-start; }
.tip .consent input { width: auto; margin-top: 3px; }
.toast { font-size: 14px; font-weight: 600; }

/* Wydarzenia + ogłoszenia */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.events li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; }
.date { border: 2px solid var(--ink); border-radius: 6px; text-align: center; padding: 4px 0 5px; line-height: 1; }
.date b { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.date small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); }
.events .hl { font-weight: 600; display: block; }
.ads { display: grid; gap: 0; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ad .hl { font-weight: 600; }
.ad .tag { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.ad .meta { grid-column: 1 / -1; }
.sponsor { margin-top: 18px; border: 1px dashed var(--line); border-radius: 6px; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.sponsor b { display: block; color: var(--ink); font-size: 15px; }

/* Sport */
.sport { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.sport .story h3 { font-size: 26px; font-weight: 800; }
.mini { display: grid; gap: 16px; align-content: start; }
.mini a { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini .hl { font-weight: 600; font-size: 17px; line-height: 1.3; }

/* Nekrologi */
.obit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.obit > * { border-top: 3px solid var(--ink); padding-top: 10px; display: block; }
.obit b { font-family: var(--f-display); font-size: 18px; font-weight: 700; display: block; }
.obit span { font-size: 14px; color: var(--muted); }

/* Stopka */
footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 28px; font-size: 14px; color: var(--muted); }
footer h3 { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.promise { color: var(--ink); font-size: 15px; display: grid; gap: 6px; }

/* Widok artykułu */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 24px 0; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--red-ink); font-weight: 600; }
.art-head { display: grid; gap: 12px; max-width: 760px; }
.art-head h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.015em; }
.art-head .dek { font-size: 19px; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--muted); border-block: 1px solid var(--line); padding-block: 10px; }
.byline b { color: var(--ink); }
.share { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.share button { font: inherit; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 7px 12px; cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.share .fb { background: #1877f2; border-color: #1877f2; color: #ffffff; }
.share-note { font-size: 13px; color: var(--red-ink); font-weight: 600; }
.art figure { margin: 0; }
.update { border-left: 4px solid var(--red); background: var(--surface); padding: 10px 14px; font-size: 15px; }
.update b { color: var(--red-ink); }
.body { display: grid; gap: 18px; max-width: 68ch; font-size: 18px; line-height: 1.65; }
.body h2 { font-size: 26px; font-weight: 800; margin-top: 10px; }
.body blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.35; }
.body blockquote cite { display: block; font-family: var(--f-body); font-size: 14px; font-style: normal; font-weight: 400; color: var(--muted); margin-top: 6px; }
.facts { background: var(--surface); border-radius: 8px; padding: 18px 20px; display: grid; gap: 10px; font-size: 16px; }
.facts h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); font-family: var(--f-body); font-weight: 800; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.plan li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.plan time { font-family: var(--f-mono); font-size: 14px; color: var(--red-ink); padding-top: 2px; }
.sources { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; font-size: 15px; }
.sources h3 { font-size: 16px; }
.sources ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.sources li b { color: var(--ink); font-weight: 600; }
.tipline { background: var(--red); color: var(--on-red); border-radius: 8px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 16px; }
.tipline b { font-family: var(--f-display); font-size: 20px; }
.tipline button { margin-left: auto; background: var(--on-red); color: #a3121a; border: 0; font: inherit; font-weight: 800; padding: 9px 14px; border-radius: 6px; cursor: pointer; }
.fbtalk { font-size: 15px; color: var(--muted); }
.side { display: grid; gap: 32px; align-content: start; }
.side h2 { font-size: 20px; font-weight: 800; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 4px; }
.ranking { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranking li { counter-increment: r; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ranking li::before { content: counter(r); font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--red); line-height: 1; }
.ranking .hl { font-weight: 600; line-height: 1.35; }
.side .feed li { grid-template-columns: 50px minmax(0, 1fr); }
.related { margin-top: 48px; }

@media (max-width: 900px) {
  .art { grid-template-columns: minmax(0, 1fr); }
  .top, .two, .sport, .tip .wrap { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid3, .obit { grid-template-columns: minmax(0, 1fr); }
  .head-meta { display: none; }
  .btn-tip { margin-left: auto; }
  .logo-word .a { font-size: 26px; }
  .logo-img { height: 60px; }
  .urgent-time { display: none; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .urgent-text { transition: none; }
}

/* Dodatki portalu */
.btn { display: inline-block; text-decoration: none; }
.share a.fb { font-size: 13px; font-weight: 700; border-radius: 6px; padding: 7px 12px; background: #1877f2; color: #ffffff; }
.tipline .btn { margin-left: auto; background: var(--on-red); color: #a3121a; font-weight: 800; padding: 9px 14px; border-radius: 6px; }
a.btn-tip { display: inline-block; }
.tip .contact { display: grid; gap: 10px; font-size: 17px; }
.tip .contact a { text-decoration: underline; }
.tip .copyable { user-select: all; font-weight: 700; }
.body ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.body a { color: var(--red-ink); text-decoration: underline; }
.empty { color: var(--muted); }
.draft.test { background: #fff1b8; color: #5a4300; border-bottom-color: #e9d37a; }
.draft.test b { color: #3d2e00; }
.tip .wrap { align-items: start; }
.tip .contact { margin-top: 18px; }
.tip .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tip button:disabled { opacity: .6; cursor: wait; }
.tip input[type="file"] { padding: 8px; }

/* Klepsydra */
.photo.klepsydra { aspect-ratio: 1 / 1; max-width: 520px; border-radius: 0; background: #ffffff; box-shadow: 0 1px 0 var(--line); }
.story .photo.klepsydra { max-width: 100%; }
