/* ============ Lokniti — main stylesheet ============ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--lok-ink);
  background: var(--lok-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.01em;
}

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--lok-red); color: #fff; padding: var(--s-3) var(--s-5);
}
.skip-link:focus { left: 0; }

/* Grid/flex children default to min-width:auto and refuse to shrink below their
   content, which blows the layout wider than the viewport on narrow screens. */
.with-sidebar > *, .grid > *, .hero > *, .stateblock > *,
.stateblock__side > *, .footer__top > *, .card__body, .topbar__inner > * { min-width: 0; }
.card__title, .card__excerpt, .hero__lead-body h2, .rank-list a { overflow-wrap: anywhere; }

/* ---------- layout ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.with-sidebar {
  display: grid; gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  align-items: start;
}
@media (max-width: 1024px) { .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

.section { margin-block: var(--s-7); }
@media (max-width: 640px) { .section { margin-block: var(--s-6); } }

/* ---------- top bar ---------- */
.topbar {
  background: var(--lok-topbar); color: var(--lok-topbar-ink);
  font-size: .78rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 36px;
}
.topbar__links { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.topbar__links a { opacity: .85; transition: opacity .15s var(--ease), color .15s var(--ease); }
.topbar__links a:hover { opacity: 1; color: var(--lok-gold); }
.topbar__date { display: flex; align-items: center; gap: var(--s-2); opacity: .85; white-space: nowrap; }
.social { display: flex; align-items: center; gap: var(--s-2); }
.social a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.social a:hover { background: var(--lok-red); transform: translateY(-1px); }
.social svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 900px) { .topbar__links { display: none; } }

/* ---------- masthead ---------- */
.masthead { background: var(--lok-header); border-bottom: 1px solid var(--lok-border); }
.masthead__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--s-5); padding-block: var(--s-4);
}
.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand__logo { height: 52px; width: auto; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--lok-red); line-height: 1; }
.brand__tag { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; color: var(--lok-ink-2); letter-spacing: .12em; }

.masthead__ad { justify-self: center; }
.masthead__actions { display: flex; align-items: center; gap: var(--s-2); }

.iconbtn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--lok-border);
  border-radius: 50%; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.iconbtn:hover { background: var(--lok-red); color: #fff; border-color: var(--lok-red); }
.iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.live-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--lok-red); color: #fff; font-weight: 700; font-size: .8rem;
  padding: var(--s-2) var(--s-4); border-radius: 100px; font-family: var(--font-head);
}
.live-btn::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-btn::before { animation: none; } }

@media (max-width: 1024px) {
  .masthead__ad { display: none; }
  .masthead__inner { grid-template-columns: auto 1fr; }
  .brand__logo { height: 40px; }
  .brand__text { font-size: 1.45rem; }
}

/* ---------- navigation ---------- */
.nav {
  background: var(--lok-red); position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-2); }
.nav__menu {
  display: flex; align-items: center; list-style: none; padding: 0; margin: 0;
  overflow-x: auto; scrollbar-width: none; flex: 1;
}
.nav__menu::-webkit-scrollbar { display: none; }
.nav__menu > li > a {
  display: block; padding: var(--s-3) var(--s-4); white-space: nowrap;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  position: relative; transition: background .15s var(--ease);
}
.nav__menu > li > a:hover,
.nav__menu > li.current-menu-item > a { background: rgba(0, 0, 0, .22); }
.nav__menu > li.current-menu-item > a::after {
  content: ''; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 6px;
  height: 3px; background: var(--lok-gold); border-radius: 2px;
}
.nav__toggle { display: none; }

/* mobile drawer */
@media (max-width: 900px) {
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--lok-surface); flex-direction: column; align-items: stretch;
    padding: var(--s-7) 0 var(--s-8); overflow-y: auto; z-index: 90;
    transform: translateX(100%); transition: transform .28s var(--ease);
    box-shadow: var(--shadow-2);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu > li > a { color: var(--lok-ink); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--lok-border); font-size: 1.05rem; }
  .nav__menu > li > a:hover { background: var(--lok-red-soft); color: var(--lok-red); }
  .nav__toggle { display: grid; place-items: center; background: none; border: 0; color: #fff; padding: var(--s-3); cursor: pointer; }
  .nav__toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
  .nav__scrim {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 80;
    opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
  }
  .nav__scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- breaking ticker ---------- */
.ticker {
  background: var(--lok-surface); border-bottom: 1px solid var(--lok-border);
  display: flex; align-items: stretch; overflow: hidden;
}
.ticker__label {
  background: var(--lok-red); color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: .85rem; padding: var(--s-3) var(--s-4); white-space: nowrap;
  display: flex; align-items: center; gap: var(--s-2); position: relative; z-index: 2;
}
.ticker__label::after {
  content: ''; position: absolute; right: -10px; top: 0; bottom: 0; width: 20px;
  background: var(--lok-red); transform: skewX(-14deg);
}
.ticker__viewport {
  flex: 1; overflow: hidden; position: relative;
  /* Headlines exit right where the skewed label sits; fade them out so they
     don't appear to crawl out from underneath it. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px);
  mask-image: linear-gradient(to right, transparent 0, #000 26px);
}
.ticker__track {
  display: flex; align-items: center; gap: var(--s-7); white-space: nowrap;
  padding-block: var(--s-3); padding-left: var(--s-6);
  animation: ticker-scroll 42s linear infinite; will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { font-weight: 500; font-size: .9rem; transition: color .15s var(--ease); }
.ticker__track a:hover { color: var(--lok-red); }
.ticker__track a::before { content: '●'; color: var(--lok-red); font-size: .5rem; vertical-align: middle; margin-right: var(--s-2); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; overflow-x: auto; }
}

/* Inline SVG icons carry no width/height attributes, so without this they
   expand to fill their flex parent. More specific rules below still win. */
.icon { width: 18px; height: 18px; flex: none; }
svg { flex: none; }

/* ---------- category chip ---------- */
.chip {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--chip, var(--lok-red));
  padding: 3px var(--s-2); border-radius: var(--radius-sm); line-height: 1.6;
}
.chip--ghost { background: transparent; color: var(--chip, var(--lok-red)); border: 1px solid currentColor; }

/* ---------- section headings ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); margin-bottom: var(--s-5);
  border-bottom: 2px solid var(--lok-border); padding-bottom: var(--s-3);
}
.section-head h2 {
  font-size: var(--fs-h2); display: flex; align-items: center; gap: var(--s-3);
}
.section-head h2::before {
  content: ''; width: 5px; height: 1.1em; border-radius: 3px;
  background: var(--chip, var(--lok-red));
}
.section-head__more {
  font-family: var(--font-head); font-weight: 600; font-size: .875rem;
  color: var(--lok-ink-2); display: inline-flex; align-items: center; gap: var(--s-1);
  transition: color .15s var(--ease), gap .15s var(--ease); white-space: nowrap;
}
.section-head__more:hover { color: var(--lok-red); gap: var(--s-2); }

/* ---------- cards ---------- */
.card {
  background: var(--lok-surface); border: 1px solid var(--lok-border);
  border-radius: var(--radius); overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lok-surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .chip { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; }
.card__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__title {
  font-size: var(--fs-h4); font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card a.card__link:hover .card__title, .card__title a:hover { color: var(--lok-red); }
.card__excerpt {
  font-size: .9rem; color: var(--lok-ink-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--fs-meta); color: var(--lok-ink-3); margin-top: auto;
}
.meta__item { display: inline-flex; align-items: center; gap: var(--s-1); }
.meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .8; }

/* wide card variant — media beside text */
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { width: 38%; flex: none; aspect-ratio: 4 / 3; }
.card--row .card__body { padding: var(--s-3) var(--s-4); }
.card--row .card__title { font-size: 1rem; -webkit-line-clamp: 3; }

/* bare list item — no card chrome */
.card--bare { border: 0; background: none; border-radius: 0; flex-direction: row; gap: var(--s-3); align-items: flex-start; }
.card--bare:hover { transform: none; box-shadow: none; }
.card--bare .card__media { width: 92px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); }
.card--bare .card__body { padding: 0; }
.card--bare .card__title { font-size: .95rem; -webkit-line-clamp: 3; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.9fr 1fr; gap: var(--s-5); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }

.hero__lead { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; display: flex; }
.hero__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__lead::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 12%, rgba(0, 0, 0, .78) 45%, rgba(0, 0, 0, .28) 100%);
}
.hero__lead-body {
  position: relative; z-index: 2; margin-top: auto;
  padding: var(--s-6); color: #fff; display: flex; flex-direction: column; gap: var(--s-3);
}
.hero__lead-body h2 {
  font-size: var(--fs-h1); color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__lead-body .meta { color: rgba(255, 255, 255, .82); }
.hero__lead-body p { color: rgba(255, 255, 255, .88); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__lead:hover img { transform: scale(1.03); }
.hero__lead img { transition: transform .5s var(--ease); }
@media (max-width: 640px) { .hero__lead { min-height: 320px; } .hero__lead-body { padding: var(--s-5) var(--s-4); } }

.hero__side {
  background: var(--lok-surface); border: 1px solid var(--lok-border);
  border-radius: var(--radius); padding: var(--s-4); display: flex; flex-direction: column;
}
.hero__side-head {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding-bottom: var(--s-3); margin-bottom: var(--s-3);
  border-bottom: 2px solid var(--lok-red); display: flex; align-items: center; gap: var(--s-2);
}
.hero__side-list { display: flex; flex-direction: column; }
.hero__side-list > * { padding-block: var(--s-3); border-bottom: 1px dashed var(--lok-border); }
.hero__side-list > *:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__side-list > *:first-child { padding-top: 0; }

/* ---------- grids ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* state block: 1 featured + 4 supporting */
.stateblock { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-5); }
.stateblock__side { display: grid; gap: var(--s-4); align-content: start; }
.stateblock__lead .card__title { font-size: var(--fs-h3); -webkit-line-clamp: 3; }
@media (max-width: 900px) { .stateblock { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sidebar ---------- */
.widget {
  background: var(--lok-surface); border: 1px solid var(--lok-border);
  border-radius: var(--radius); padding: var(--s-4); margin-bottom: var(--s-5);
}
.widget__title {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 2px solid var(--lok-red);
}
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.rank-list { counter-reset: rank; }
.rank-list li { display: flex; gap: var(--s-3); align-items: flex-start; padding-bottom: var(--s-3); border-bottom: 1px dashed var(--lok-border); }
.rank-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-list li::before {
  counter-increment: rank; content: counter(rank);
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--lok-red); opacity: .35; line-height: 1; min-width: 1.4em;
}
.rank-list a { font-weight: 500; font-size: .95rem; line-height: 1.6; }
.rank-list a:hover { color: var(--lok-red); }

.tagcloud { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tagcloud a {
  font-size: .82rem; padding: var(--s-1) var(--s-3); border-radius: 100px;
  background: var(--lok-surface-2); border: 1px solid var(--lok-border);
  transition: all .15s var(--ease);
}
.tagcloud a:hover { background: var(--lok-red); color: #fff; border-color: var(--lok-red); }

.sticky-side { position: sticky; top: calc(var(--header-h) + var(--s-4)); }

/* ---------- ads ---------- */
.ad {
  display: grid; place-items: center; background: var(--lok-surface-2);
  border: 1px dashed var(--lok-border); border-radius: var(--radius-sm);
  color: var(--lok-ink-3); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; overflow: hidden;
}
/* fixed heights so an unfilled slot causes zero layout shift */
.ad--leaderboard { width: 728px; max-width: 100%; height: 90px; }
.ad--rect { width: 100%; max-width: 300px; height: 250px; margin-inline: auto; }
.ad--infeed { width: 100%; height: 120px; margin-block: var(--s-5); }
.ad--footer { width: 100%; height: 90px; }

/* ---------- video carousel ---------- */
.vrail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr);
  gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-3); scrollbar-width: thin;
}
.vrail > * { scroll-snap-align: start; }
.vcard .card__media::after {
  content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .28);
  transition: background .2s var(--ease);
}
.vcard:hover .card__media::after { background: rgba(0, 0, 0, .12); }
.vcard .play {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--lok-red); display: grid; place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease);
}
.vcard:hover .play { transform: scale(1.12); }
.vcard .play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }

/* ---------- photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: var(--s-3); }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius-sm); display: block; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s-4) var(--s-3) var(--s-3);
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
  color: #fff; font-size: .85rem; font-weight: 500; line-height: 1.45;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* ---------- single post ---------- */
.entry { background: var(--lok-surface); border: 1px solid var(--lok-border); border-radius: var(--radius); overflow: hidden; }
.entry__inner { padding: var(--s-6); }
@media (max-width: 640px) { .entry__inner { padding: var(--s-4); } }
.entry__title { font-size: var(--fs-h1); margin-block: var(--s-3) var(--s-4); }
.entry__lead { font-size: 1.1rem; color: var(--lok-ink-2); line-height: 1.8; margin-bottom: var(--s-5); font-weight: 500; }
.entry__hero { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.entry__meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-4); padding-block: var(--s-4); margin-bottom: var(--s-5);
  border-block: 1px solid var(--lok-border);
}
.byline { display: flex; align-items: center; gap: var(--s-3); }
.byline__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--lok-red); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.byline__name { font-weight: 600; font-size: .92rem; }
.byline__date { font-size: var(--fs-meta); color: var(--lok-ink-3); }

.entry__content { font-size: 1.075rem; line-height: 1.95; }
.entry__content > * + * { margin-top: var(--s-5); }
.entry__content h2 { font-size: var(--fs-h3); margin-top: var(--s-7); }
.entry__content h3 { font-size: var(--fs-h4); margin-top: var(--s-6); }
.entry__content ul, .entry__content ol { padding-left: var(--s-6); display: grid; gap: var(--s-2); }
.entry__content a { color: var(--lok-red); text-decoration: underline; text-underline-offset: 3px; }
.entry__content blockquote {
  border-left: 4px solid var(--lok-red); padding: var(--s-3) var(--s-5);
  background: var(--lok-red-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem; font-weight: 500; font-style: normal;
}
.entry__content img { border-radius: var(--radius-sm); }
.entry__content figcaption { font-size: var(--fs-meta); color: var(--lok-ink-3); margin-top: var(--s-2); text-align: center; }

.share { display: flex; align-items: center; gap: var(--s-2); }
.share a, .share button {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lok-surface-2); border: 1px solid var(--lok-border); cursor: pointer;
  transition: all .15s var(--ease);
}
.share a:hover, .share button:hover { background: var(--lok-red); color: #fff; border-color: var(--lok-red); }
.share svg { width: 15px; height: 15px; fill: currentColor; }

.breadcrumb { font-size: var(--fs-meta); color: var(--lok-ink-3); display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.breadcrumb a:hover { color: var(--lok-red); }
.breadcrumb span[aria-current] { color: var(--lok-ink-2); }

/* ---------- archive header ---------- */
.archive-head {
  background: linear-gradient(135deg, var(--chip, var(--lok-red)), color-mix(in srgb, var(--chip, var(--lok-red)) 65%, #000));
  color: #fff; border-radius: var(--radius); padding: var(--s-7) var(--s-6); margin-bottom: var(--s-6);
  position: relative; overflow: hidden;
}
.archive-head::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.archive-head h1 { font-size: var(--fs-h1); color: #fff; }
.archive-head p { color: rgba(255, 255, 255, .85); margin-top: var(--s-2); }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-7); flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding-inline: var(--s-3); display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--lok-surface);
  border: 1px solid var(--lok-border); font-family: var(--font-head); font-weight: 600;
  transition: all .15s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--lok-red); color: var(--lok-red); }
.pagination .page-numbers.current { background: var(--lok-red); color: #fff; border-color: var(--lok-red); }

/* ---------- search overlay ---------- */
.searchbar {
  display: none; background: var(--lok-surface); border-bottom: 1px solid var(--lok-border);
  padding-block: var(--s-4);
}
.searchbar.is-open { display: block; }
.searchform { display: flex; gap: var(--s-2); max-width: 640px; margin-inline: auto; }
.searchform input[type="search"] {
  flex: 1; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  border: 1px solid var(--lok-border); background: var(--lok-bg);
}
.searchform button {
  padding: var(--s-3) var(--s-5); border: 0; border-radius: var(--radius-sm);
  background: var(--lok-red); color: #fff; font-family: var(--font-head); font-weight: 700; cursor: pointer;
}
.searchform button:hover { background: var(--lok-red-dark); }

/* ---------- newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--lok-red), var(--lok-red-dark));
  color: #fff; border-radius: var(--radius); padding: var(--s-6);
  display: grid; gap: var(--s-4); position: relative; overflow: hidden;
}
.newsletter::after {
  content: ''; position: absolute; right: -40px; bottom: -70px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255, 215, 0, .14);
}
.newsletter h3 { font-size: var(--fs-h3); color: #fff; position: relative; z-index: 1; }
.newsletter p { color: rgba(255, 255, 255, .88); font-size: .92rem; position: relative; z-index: 1; }
.newsletter form { display: flex; gap: var(--s-2); position: relative; z-index: 1; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 180px; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  border: 0; background: rgba(255, 255, 255, .95); color: var(--lok-ink);
}
.newsletter button {
  padding: var(--s-3) var(--s-5); border: 0; border-radius: var(--radius-sm);
  background: var(--lok-gold); color: #111; font-family: var(--font-head); font-weight: 800; cursor: pointer;
}
.newsletter button:hover { background: #fff; }

/* ---------- footer ---------- */
.footer { background: #111; color: #B8B8B8; margin-top: var(--s-8); }
:root[data-theme="dark"] .footer { background: #000; }
.footer a { transition: color .15s var(--ease); }
.footer a:hover { color: var(--lok-gold); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s-6); padding-block: var(--s-8); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
.footer__title {
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff;
  margin-bottom: var(--s-4); position: relative; padding-bottom: var(--s-2);
}
.footer__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--lok-red); border-radius: 2px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); font-size: .92rem; }
.footer__about p { font-size: .92rem; line-height: 1.8; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: var(--s-4);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: .85rem;
}

/* ---------- mobile bottom nav ---------- */
.botnav { display: none; }
@media (max-width: 900px) {
  .botnav {
    position: fixed; inset: auto 0 0 0; z-index: 70;
    background: var(--lok-surface); border-top: 1px solid var(--lok-border);
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .1);
  }
  .botnav a {
    display: grid; place-items: center; gap: 2px; padding: var(--s-2) 0;
    font-size: .68rem; font-weight: 600; color: var(--lok-ink-2);
  }
  .botnav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
  .botnav a:hover, .botnav a.is-active { color: var(--lok-red); }
  body { padding-bottom: 58px; }
}

/* ---------- misc ---------- */
.notfound { text-align: center; padding-block: var(--s-9); }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); color: var(--lok-red); line-height: 1; }
.page-content { background: var(--lok-surface); border: 1px solid var(--lok-border); border-radius: var(--radius); padding: var(--s-6); }
.page-content > * + * { margin-top: var(--s-4); }
