/* Arkiva e Lajmeve — lajme.shqiperia.com — light news theme */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --soft: #f4f4f4;
  --ink: #0c0c0c;
  --ink-2: #404040;
  --ink-3: #6e6e6e;
  --rule: #dcdcdc;
  --rule-strong: #0c0c0c;
  --red: #cc0000;
  --red-dark: #a30000;
  --on-red: #ffffff;
  --mark: #fff2a8;
  --heat-1: #f6d6d6; --heat-2: #eb9e9e; --heat-3: #d94a4a; --heat-4: #cc0000;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
mark { background: var(--mark); color: inherit; padding: 0 .1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 700 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ── Top strip & masthead ─────────────────────────── */
.strip { border-bottom: 1px solid var(--rule); font-size: .78rem; color: var(--ink-3); }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.strip nav { display: flex; gap: 18px; }
.strip a:hover { color: var(--ink); }
.masthead { background: var(--bg); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .word { background: var(--red); color: var(--on-red); font: 800 1.55rem/1 var(--sans); letter-spacing: -.01em; padding: 9px 12px 8px; text-transform: uppercase; }
.logo .word i { display: none; }
.logo .tag { font: 600 .78rem/1.3 var(--sans); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; border-left: 1px solid var(--rule); padding-left: 12px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: 8px 14px; font: 700 .85rem var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.icon-btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.icon-btn svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .logo .tag { display: none; }
  .head-search span { display: none; }
  .strip .date { display: none; }
  .logo .word { font-size: 1.25rem; }
}
.sections-nav { background: var(--bg); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.sections-nav ul { display: flex; gap: 0; list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--max); overflow-x: auto; scrollbar-width: none; }
.sections-nav ul::-webkit-scrollbar { display: none; }
.sections-nav a { display: block; white-space: nowrap; padding: 11px 12px 9px; font: 700 .88rem var(--sans); color: var(--ink); border-bottom: 3px solid transparent; }
.sections-nav li:first-child a { padding-left: 0; }
.sections-nav a:hover { color: var(--red); text-decoration: none; }
.sections-nav a[aria-current] { color: var(--red); border-bottom-color: var(--red); }

main { padding: 24px 0 56px; }

/* ── Buttons & inputs ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 12px 22px; background: var(--red); color: var(--on-red); font: 700 .92rem var(--sans); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.btn:hover { background: var(--red-dark); text-decoration: none; }
input[type=search], select { font: 400 1rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid #b5b5b5; border-radius: 0; padding: 11px 12px; min-width: 0; }
input[type=search]:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }

/* ── Home: intro panel ────────────────────────────── */
.hero { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p { color: var(--ink-2); margin: 10px 0 18px; max-width: 54ch; font: 1.05rem/1.55 var(--serif); }
.hero form { display: flex; max-width: 580px; }
.hero form input { flex: 1; font-size: 1.05rem; border-right: 0; }
.hero .eyebrow { color: var(--red) !important; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--rule); }
.fact { padding: 4px 18px; border-right: 1px solid var(--rule); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--serif); }
.fact span { font: 600 .74rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 22px; } .facts { border-left: 0; border-top: 1px solid var(--rule); padding-top: 14px; } .fact:first-child { padding-left: 0; } }

/* ── Section headings ─────────────────────────────── */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--ink); padding-top: 8px; margin-bottom: 16px; }
.sec-head h2 { font: 800 1.05rem var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.sec-head a { font: 700 .8rem var(--sans); color: var(--red); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }

/* ── Year chart ───────────────────────────────────── */
.yearchart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 6px; height: 180px; border-bottom: 1px solid var(--ink); }
.yearchart a { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; color: var(--ink-2); }
.yearchart a:hover { text-decoration: none; }
.yearchart .bar { background: #2b2b2b; min-height: 2px; }
.yearchart a:hover .bar { background: var(--red); }
.yearchart .y { margin: 6px 0 -22px; font: 600 .7rem var(--sans); text-align: center; }
.yearchart .n { font: 600 .68rem var(--sans); text-align: center; color: var(--red); margin-bottom: 3px; opacity: 0; }
.yearchart a:hover .n, .yearchart a:focus .n { opacity: 1; }
.sec .yearchart { margin-bottom: 24px; }
@media (max-width: 640px) { .yearchart { height: 130px; gap: 3px; } .yearchart .y { font-size: .58rem; writing-mode: vertical-rl; transform: rotate(180deg); margin: 6px auto -34px; } .sec .yearchart { margin-bottom: 38px; } }

/* ── On this day ──────────────────────────────────── */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; border-left: 1px solid var(--rule); }
.tl-year { scroll-snap-align: start; padding: 0 18px; border-right: 1px solid var(--rule); }
.tl-year .yr { display: inline-block; font: 800 1.35rem/1 var(--sans); color: var(--red); margin-bottom: 6px; }
.tl-year ol { list-style: none; margin: 0; padding: 0; }
.tl-year li { padding: 9px 0; border-top: 1px solid var(--rule); font: 700 1rem/1.3 var(--serif); }
.tl-year li:first-child { border-top: 0; }
.tl-year li small { display: block; font: 600 .74rem var(--sans); color: var(--ink-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }

/* ── Category columns (home) ──────────────────────── */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 980px) { .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .columns { grid-template-columns: minmax(0, 1fr); } }
.col h3.cat { font: 800 .8rem var(--sans); letter-spacing: .05em; text-transform: uppercase; display: flex; justify-content: space-between; border-top: 2px solid var(--red); padding-top: 8px; margin-bottom: 12px; }
.col h3.cat a:first-child { color: var(--ink); }
.lead-story .pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); margin-bottom: 10px; }
.lead-story .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-story h4 { font-size: 1.3rem; line-height: 1.2; }
.lead-story p { margin: 6px 0 0; color: var(--ink-2); font: .95rem/1.5 var(--serif); }
.mini { list-style: none; margin: 12px 0 0; padding: 0; }
.mini li { padding: 9px 0; border-top: 1px solid var(--rule); font: 700 .98rem/1.3 var(--serif); }

/* ── Sources grid ─────────────────────────────────── */
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.src-tile { display: flex; gap: 12px; align-items: center; padding: 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.src-tile:hover { background: var(--soft); text-decoration: none; }
.mono { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 .8rem var(--sans); }
.src-tile b { display: block; font-weight: 700; line-height: 1.2; }
.src-tile small { color: var(--ink-3); font-size: .78rem; }

/* ── Page header (listings) ───────────────────────── */
.page-head { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.page-head p { margin: 0; color: var(--ink-2); }
.page-head p a { color: var(--red); }
.crumbs { font: 600 .8rem var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--rule); padding: 5px 10px; font: 600 .82rem var(--sans); }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* ── Story list ───────────────────────────────────── */
.stories { list-style: none; margin: 0; padding: 0; }
.story { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.story .when { color: var(--ink-3); font: 600 .74rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.story .when:hover { text-decoration: none; color: var(--red); }
.story .when b { display: block; font: 800 1.45rem/1 var(--sans); color: var(--ink); letter-spacing: 0; }
.story .when span { display: block; }
.story h3 { font-size: 1.28rem; line-height: 1.22; }
.story p { margin: 6px 0 0; color: var(--ink-2); font: .97rem/1.5 var(--serif); }
.story .tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font: 700 .74rem var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.story .tags .src { color: var(--red); }
.story .thumb { display: block; width: 160px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.story .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .story { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .story .when { display: none; }
  .story .thumb { width: 96px; }
  .story h3 { font-size: 1.08rem; }
  .story p { display: none; }
}

/* ── Pagination ───────────────────────────────────── */
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 26px; align-items: center; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--rule); font: 700 .88rem var(--sans); }
.pager a:hover { border-color: var(--ink); text-decoration: none; }
.pager .gap { border: 0; }
.pager .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Sidebar ──────────────────────────────────────── */
.side { display: grid; gap: 28px; position: sticky; top: 60px; }
.side section { border-top: 3px solid var(--ink); padding-top: 8px; }
.side h2 { font: 800 .9rem var(--sans); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.side .list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 14px; font-size: .9rem; }
.side .list li { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid var(--soft); }
@media (max-width: 960px) { .side { position: static; } }

/* ── Article ──────────────────────────────────────── */
.article-head { max-width: 780px; margin: 0 auto; padding: 8px 0 22px; }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.12; margin: 12px 0 16px; letter-spacing: -.01em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink-2); font: 600 .85rem var(--sans); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.badge .mono { width: 26px; height: 26px; font-size: .7rem; background: var(--red); }
.figure { max-width: 780px; margin: 0 auto 26px; background: var(--soft); }
.figure img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.prose { max-width: 680px; margin: 0 auto; font: 400 1.18rem/1.7 var(--serif); color: #1a1a1a; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose img { display: block; margin: 1.2em auto; }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 1em; border-left: 3px solid var(--red); font-style: italic; color: var(--ink-2); }
.prose table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; font: .9rem var(--sans); }
.prose td, .prose th { border: 1px solid var(--rule); padding: 6px 8px; }
.source-card { max-width: 680px; margin: 32px auto 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; background: var(--soft); border-left: 3px solid var(--red); padding: 14px 16px; font-size: .9rem; color: var(--ink-2); }
.source-card a { color: var(--red); font-weight: 600; word-break: break-all; }
.prevnext { max-width: 680px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.prevnext > div { padding: 14px 0; }
.prevnext > div + div { border-left: 1px solid var(--rule); padding-left: 16px; }
.prevnext a { display: block; font: 700 1rem/1.3 var(--serif); }
.prevnext small { display: block; font: 700 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.prevnext .next { text-align: right; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .prevnext > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } .prevnext .next { text-align: left; } }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 700 1.02rem/1.3 var(--serif); }
.related a small { display: block; font: 700 .72rem var(--sans); color: var(--ink-3); margin-top: 6px; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 860px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* ── Search ───────────────────────────────────────── */
.search-panel { margin-top: 18px; background: var(--soft); padding: 16px; display: grid; gap: 10px; }
.search-panel .q { display: flex; }
.search-panel .q input { flex: 1; font-size: 1.1rem; border-right: 0; }
.search-panel .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 860px) { .search-panel .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.result-count { margin: 20px 0 0; font: 700 .8rem var(--sans); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.notice { margin-top: 18px; padding: 12px 14px; background: #fff4f4; border-left: 3px solid var(--red); }

/* ── Archive calendar ─────────────────────────────── */
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.year-card { padding: 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.year-card:hover { background: var(--soft); text-decoration: none; }
.year-card b { display: block; font: 800 1.7rem/1 var(--sans); }
.year-card small { color: var(--ink-3); }
.year-card .meter { display: block; height: 4px; background: var(--soft); margin-top: 12px; }
.year-card .meter i { display: block; height: 100%; background: var(--red); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.month h3 { font: 800 .9rem var(--sans); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 8px; margin-bottom: 10px; }
.month h3 small { font: 600 .74rem var(--sans); color: var(--ink-3); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal > * { aspect-ratio: 1; display: grid; place-items: center; font: 600 .76rem var(--sans); }
.cal .dow { aspect-ratio: auto; color: var(--ink-3); font-size: .66rem; }
.cal .off { color: #c9c9c9; }
.cal a { background: var(--heat-1); color: var(--ink); }
.cal a.h2 { background: var(--heat-2); }
.cal a.h3 { background: var(--heat-3); color: #fff; }
.cal a.h4 { background: var(--heat-4); color: #fff; }
.cal a:hover { outline: 2px solid var(--ink); text-decoration: none; }

/* ── Tables (stats) ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { border-top: 3px solid var(--ink); padding-top: 8px; }
.card + .card { margin-top: 32px; }
.card h2 { font: 800 .95rem var(--sans); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data td { padding: 8px 4px; border-bottom: 1px solid var(--rule); }
table.data td.n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
table.data .bar { display: block; height: 3px; background: var(--red); margin-top: 4px; }

.prose-page { max-width: 700px; }
.prose-page p { font: 1.1rem/1.7 var(--serif); }
.prose-page a { color: var(--red); }

/* ── Error pages ──────────────────────────────────── */
.error-page { max-width: 680px; margin: 30px auto; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0; }
.error-page p { color: var(--ink-2); font: 1.08rem/1.6 var(--serif); }
.error-page form { display: flex; margin: 18px 0; }
.error-page form input { flex: 1; border-right: 0; }
.error-page a { color: var(--red); }

/* ── Footer ───────────────────────────────────────── */
.footer { background: var(--soft); border-top: 3px solid var(--ink); color: var(--ink-2); padding: 32px 0 24px; font-size: .9rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer .word { display: inline-block; background: var(--red); color: #fff; font: 800 1.2rem/1 var(--sans); padding: 7px 10px 6px; text-transform: uppercase; margin-bottom: 10px; }
.footer .word i { display: none; }
.footer h4 { font: 800 .76rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 16px; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }
