/* ==========================================================================
   THISDAYZ — tactical field terminal
   Prototype stylesheet (no build step)
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #07090b;
  --ink-2: #0a0d10;
  --surface: #0d1013;
  --surface-2: #12161a;
  --surface-3: #171c21;
  --line: #242a30;
  --line-soft: #1a1f24;
  --text: #d7dbd8;
  --text-dim: #9aa1a6;
  --muted: #7e868c;
  --accent: #fe6f00;
  --accent-soft: #ff9a3d;
  --accent-ink: #150800;
  --danger: #ff2d2d;
  --white: #f2f5f1;

  --c: 14px;
  --poly: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));

  --container: 1320px;
  --gutter: clamp(16px, 3vw, 32px);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Golos Text", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- background layers ---------- */
.bg { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.bg--base {
  background:
    radial-gradient(1100px 620px at 72% -12%, rgba(254, 111, 0, 0.09), transparent 62%),
    radial-gradient(900px 520px at 8% 12%, rgba(255, 75, 43, 0.05), transparent 60%),
    radial-gradient(1200px 800px at 50% 118%, rgba(254, 111, 0, 0.06), transparent 62%),
    var(--ink);
}
.bg--grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}
.bg--contours {
  background: url("../img/contours.svg") center top / cover no-repeat;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
}
.bg--grain {
  background: url("../img/grain.svg") repeat;
  opacity: 0.04;
  mix-blend-mode: overlay;
}
.bg--scan {
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.18) 3px 4px);
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(36px, 5vw, 62px); position: relative; }
.section--tight { padding-block: clamp(24px, 3vw, 38px); }
.rule { height: 1px; background: var(--line-soft); }
.stack { display: grid; gap: 16px; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
  color: var(--white);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--text-dim); }
.accent { color: var(--accent); }

/* section header */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  position: relative;
}
.sec-head__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sec-head__label::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.sec-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
}
.sec-head__title em {
  font-style: normal;
  color: var(--accent);
}
.sec-head__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.sec-head__link::after { content: "→"; }
.sec-head__link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.18); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 11px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip--live { background: rgba(255, 45, 45, 0.12); border-color: rgba(255, 45, 45, 0.42); color: #ff9a9a; }
.chip--live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 8px var(--danger);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- header ---------- */
.topbar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar__marquee { display: flex; align-items: center; gap: 18px; overflow: hidden; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.topbar__marquee b { color: var(--accent); font-weight: 500; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header__in { display: flex; align-items: center; gap: 22px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 68px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.18s;
}
.nav > li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav > li > a:hover, .nav > li.is-active > a { color: var(--white); }
.nav > li > a:hover::after, .nav > li.is-active > a::after { transform: scaleX(1); }
.nav__caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }

.drop {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 60;
}
.nav > li:hover .drop, .nav > li:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background 0.14s, color 0.14s;
}
.drop a:hover { background: rgba(254, 111, 0, 0.08); color: var(--white); }
.drop a span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  width: 210px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: border-color 0.18s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.search input { width: 100%; border: 0; background: none; outline: 0; font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--text); }

/* ---------- banners ---------- */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 18px 22px;
  background:
    linear-gradient(90deg, rgba(254, 111, 0, 0.08), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 6px, transparent 6px 12px);
}
.banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(254, 111, 0, 0.16);
  transform: rotate(45deg);
}
.banner__kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.banner__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 26px); text-transform: uppercase; color: var(--white); line-height: 1.05; }
.banner__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.banner--tall { min-height: 168px; }
.banner--strip { min-height: 74px; padding-block: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(20px, 3vw, 34px) clamp(30px, 4vw, 48px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 16px;
  align-items: stretch;
}
.hero__grid > *,
.news > *,
.maps > *,
.maps__col > * { min-width: 0; }
.hero-card__foot,
.news-feature__foot { flex-wrap: wrap; }
.hero-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 34px);
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
  animation: hero-wipe 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
@keyframes hero-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0.58) 0%, rgba(7, 9, 11, 0.66) 45%, rgba(7, 9, 11, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 9, 11, 0.82), transparent 72%);
  z-index: -1;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 7px, transparent 7px 14px);
  z-index: 2;
}
.hero-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; position: relative; z-index: 1; }
.hero-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 0.95;
  color: var(--white);
  max-width: 15ch;
  position: relative;
  z-index: 1;
}
.hero-card__title span { color: var(--accent); }
.hero-card__text { margin-top: 14px; max-width: 52ch; color: #b9bfbc; font-size: 14.5px; position: relative; z-index: 1; }
.hero-card__foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; position: relative; z-index: 1; }
.hero-card__dots { display: flex; gap: 6px; margin-left: auto; }
.hero-card__dots i { width: 22px; height: 2px; background: rgba(255, 255, 255, 0.24); }
.hero-card__dots i.on { background: var(--accent); }

.hero-side { display: grid; gap: 16px; grid-template-rows: auto 1fr; }
.stat-panel { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.stat-panel__head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 12px; }
.stat-panel__head b { color: var(--accent); font-weight: 500; }
.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.stat:first-of-type { border-top: 0; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--white); line-height: 1; white-space: nowrap; }
.stat__num small { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-left: 5px; font-weight: 400; }
.stat__label { font-size: 12px; color: var(--muted); text-align: right; }

.quick { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.quick__head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.quick a { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line-soft); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); transition: color 0.16s; }
.quick a:first-of-type { border-top: 0; }
.quick a span { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.quick a:hover { color: var(--accent); }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.news-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: clamp(20px, 2.6vw, 30px);
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}
.news-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.48), rgba(7, 9, 11, 0.68) 55%, rgba(7, 9, 11, 0.97));
  z-index: -1;
}
.news-feature__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 1; }
.news-feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  color: var(--white);
  max-width: 18ch;
}
.news-feature__text { margin-top: 12px; max-width: 56ch; color: #b9bfbc; font-size: 14px; }
.news-feature__foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; }

.news-side { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.news-mini {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  transition: background 0.18s;
}
.news-mini:first-child { border-top: 0; }
.news-mini:hover { background: var(--surface-2); }
.news-mini__img { position: relative; background-size: cover; background-position: center; min-height: 118px; }
.news-mini__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(13, 16, 19, 0.55)); }
.news-mini__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-mini__meta { display: flex; align-items: center; gap: 8px; }
.news-mini__date { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-left: auto; }
.news-mini__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.16s;
}
.news-mini:hover .news-mini__title { color: var(--accent); }
.news-mini__text { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-mini__arrow { margin-left: auto; color: var(--muted); font-family: var(--font-mono); }
.news-mini:hover .news-mini__arrow { color: var(--accent); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.cat::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.cat:hover { border-color: rgba(254, 111, 0, 0.4); background: var(--surface-2); }
.cat:hover::after { transform: scaleX(1); }
.cat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cat__icon { width: 26px; height: 26px; color: var(--accent); opacity: 0.85; }
.cat__count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cat__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; text-transform: uppercase; color: var(--white); line-height: 1; }
.cat__sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- maps ---------- */
.maps { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.maps__col { display: grid; gap: 16px; }
.map-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.1), rgba(7, 9, 11, 0.42) 58%, rgba(7, 9, 11, 0.94));
  z-index: -1;
}
.map-card--tall { min-height: 100%; }
.map-card__region { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.map-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; color: var(--white); line-height: 0.95; }
.map-card__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.map-card__meta b { color: var(--white); font-weight: 500; }
.map-list { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.map-row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-top: 1px solid var(--line); transition: background 0.16s; }
.map-row:first-child { border-top: 0; }
.map-row:hover { background: var(--surface-2); }
.map-row__dot { width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
.map-row__name { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; color: var(--white); letter-spacing: 0.03em; }
.map-row__sub { font-size: 11.5px; color: var(--muted); }
.map-row__num { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.map-row:hover .map-row__name { color: var(--accent); }

/* ---------- servers ---------- */
.servers { border: 1px solid var(--line); background: var(--surface); }
.server-head, .server-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.6fr) 120px 150px 92px 100px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}
.server-head {
  height: 38px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.server-row { min-height: 62px; border-top: 1px solid var(--line-soft); transition: background 0.16s; }
.server-row:first-of-type { border-top: 0; }
.server-row:hover { background: var(--surface-2); }
.server-rank { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--muted); }
.server-row:nth-child(2) .server-rank, .server-row:nth-child(3) .server-rank, .server-row:nth-child(4) .server-rank { color: var(--accent); }
.server-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.server-name b { font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--white); }
.server-name span { font-size: 11.5px; color: var(--muted); }
.server-mode { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--text-dim); }
.server-mode i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--accent); }
.bar { height: 4px; background: rgba(255, 255, 255, 0.09); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.server-players { display: flex; flex-direction: column; gap: 6px; }
.server-players span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.server-ping { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; }
.server-status { justify-self: end; }

/* ---------- article ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-block: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--line); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.article-head { margin-bottom: 22px; }
.article-head__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article-head__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 0.98; text-transform: uppercase; color: var(--white); }
.article-head__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.article-hero { margin-bottom: 26px; border: 1px solid var(--line); background: var(--surface); }
.article-hero img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }

.prose { max-width: 74ch; font-size: 15.5px; color: #c3c9c5; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; text-transform: uppercase; color: var(--white); margin-top: 1.8em; padding-left: 14px; border-left: 3px solid var(--accent); line-height: 1.1; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; text-transform: uppercase; color: var(--white); margin-top: 1.5em; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(254, 111, 0, 0.35); }
.prose ul { padding-left: 18px; list-style: none; }
.prose li { position: relative; padding-left: 16px; margin-top: 0.5em; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; background: var(--surface); border-left: 3px solid var(--accent); font-style: italic; color: var(--text-dim); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.infobox { float: right; width: 300px; margin: 0 0 18px 24px; border: 1px solid var(--line); background: var(--surface); }
.infobox__title { padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 16px; color: var(--white); }
.infobox img { width: 100%; }
.infobox__group { padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.infobox__group h3 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.infobox__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.infobox__row:first-of-type { border-top: 0; }
.infobox__row dt { color: var(--muted); }
.infobox__row dd { margin: 0; text-align: right; color: var(--text); }

/* ---------- sidebar ---------- */
.sidebar { display: grid; gap: 16px; position: sticky; top: 88px; }
.widget { border: 1px solid var(--line); background: var(--surface); }
.widget__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.widget__head b { color: var(--accent); font-weight: 500; }
.widget__body { padding: 8px 14px 14px; }
.pop { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.pop:first-child { border-top: 0; }
.pop__num { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--line); width: 22px; flex-shrink: 0; }
.pop__title { display: block; font-size: 13px; line-height: 1.35; color: var(--text); }
.pop:hover .pop__title { color: var(--accent); }
.pop__meta { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.widget--cta { padding: 16px; background: linear-gradient(160deg, rgba(254, 111, 0, 0.1), transparent 60%), var(--surface); }
.widget--cta .btn { width: 100%; margin-top: 12px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--line); transition: 0.16s; }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.tile:hover { border-color: rgba(254, 111, 0, 0.4); transform: translateY(-2px); }
.tile__img { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--surface-2); filter: brightness(0.82) saturate(0.9); }
.tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 9, 11, 0.04), rgba(7, 9, 11, 0.34)); }
.tile__body { padding: 12px 13px 14px; }
.tile__cat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tile__title { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.1; text-transform: uppercase; color: var(--white); margin-top: 5px; }
.tile:hover .tile__title { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); margin-top: 20px; position: relative; overflow: hidden; }
.footer__in { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 44px 28px; position: relative; z-index: 1; }
.footer__desc { color: var(--muted); font-size: 13px; max-width: 36ch; margin-top: 14px; }
.footer h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer li + li { margin-top: 8px; }
.footer li a { font-size: 13.5px; color: var(--text-dim); }
.footer li a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--line-soft); padding-block: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(80px, 16vw, 220px); line-height: 0.7; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); text-align: center; padding-top: 10px; user-select: none; }

/* ---------- mobile menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 90;
  width: min(88%, 380px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mobile-menu__head span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mobile-menu a { display: block; padding: 12px 0; border-top: 1px solid var(--line-soft); font-family: var(--font-display); font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .search { display: flex; width: 100%; margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav > li > a { padding-inline: 9px; font-size: 12.5px; }
  .search { width: 170px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .nav, .search { display: none; }
  .burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .maps { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .infobox { float: none; width: 100%; margin: 0 0 18px; }
}
@media (max-width: 760px) {
  .topbar__right { display: none; }
  .header__in { height: 60px; }
  .brand__name { font-size: 18px; }
  .hero-card { min-height: 360px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-head { display: none; }
  .server-row { grid-template-columns: 40px minmax(0, 1fr) 90px; gap: 10px; padding: 12px 14px; }
  .server-mode, .server-ping { display: none; }
  .sec-head { flex-wrap: wrap; align-items: flex-start; }
  .footer__in { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .cat-grid, .tiles { grid-template-columns: 1fr; }
  .news-mini { grid-template-columns: 84px minmax(0, 1fr); }
  .article-head__title { font-size: 30px; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* ==========================================================================
   WordPress additions: content, infobox, gallery, comments, widgets
   ========================================================================== */

/* ---------- a11y ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px; left: 12px; z-index: 100000;
  width: auto; height: auto; padding: 10px 16px; margin: 0;
  clip: auto; white-space: normal;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 12px;
}

/* ---------- content ---------- */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; text-transform: uppercase; line-height: 1.1;
  color: var(--white); margin-top: 1.8em; padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.entry-content h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; text-transform: uppercase;
  color: var(--white); margin-top: 1.5em;
}
.entry-content a { color: var(--accent); border-bottom: 1px solid rgba(254, 111, 0, 0.35); }
.entry-content ul { padding-left: 18px; list-style: none; }
.entry-content ol { padding-left: 22px; list-style: decimal; }
.entry-content li { position: relative; margin-top: 0.5em; }
.entry-content ul > li { padding-left: 16px; }
.entry-content ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; background: var(--accent);
}
.entry-content blockquote {
  margin: 1.6em 0; padding: 16px 20px;
  background: var(--surface); border-left: 3px solid var(--accent);
  font-style: italic; color: var(--text-dim);
}
.entry-content img { border-radius: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th {
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.entry-content::after { content: ""; display: table; clear: both; }

/* WP alignment + captions */
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted); padding: 6px 0; text-align: left;
}

/* ---------- infobox (imported wiki posts) ---------- */
.dz-infobox {
  float: right;
  width: 300px;
  max-width: 100%;
  margin: 0 0 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.dz-infobox__title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}
.dz-infobox__image {
  margin: 0;
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #e7ebe4, #d9ded6);
}
.dz-infobox__image img {
  display: inline-block;
  width: auto;
  max-height: 200px;
  margin-inline: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}
.dz-infobox__group + .dz-infobox__group { border-top: 1px solid var(--line); }
.dz-infobox__header {
  margin: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--surface-2);
}
.dz-infobox__row {
  display: flex;
  gap: 12px;
  padding: 7px 14px;
  font-size: 12.5px;
  border-top: 1px solid var(--line-soft);
}
.dz-infobox__group > .dz-infobox__row:first-of-type { border-top: 0; }
.dz-infobox__label { flex: 0 0 42%; color: var(--muted); }
.dz-infobox__value { flex: 1 1 auto; min-width: 0; color: var(--text); overflow-wrap: anywhere; }

/* ---------- quote ---------- */
.dz-quote {
  margin: 0 0 16px;
  padding: 14px 18px;
  font-style: italic;
  color: var(--text-dim);
  background: var(--surface);
  border-left: 3px solid var(--accent);
}
.dz-quote cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- gallery ---------- */
.dz-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 1.2em 0;
}
.dz-gallery__item {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.dz-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.dz-gallery__caption {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* ---------- video ---------- */
.dz-video {
  position: relative;
  margin: 1.2em 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--surface);
}
.dz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- interactive map ---------- */
.dz-map { margin: 1.2em 0; }
.dz-map__canvas {
  height: 70vh;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.dz-map__fallback { display: block; width: 100%; height: 100%; object-fit: contain; }
.dz-map__cat {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dz-map .leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.dz-map .leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line); }
.dz-map .leaflet-popup-content { margin: 10px 14px; font-size: 13px; line-height: 1.4; }
.dz-map .leaflet-popup-content strong { display: block; color: var(--white); font-weight: 600; }
.dz-map .leaflet-popup-close-button { color: var(--muted); }
.dz-map .leaflet-popup-close-button:hover { color: var(--white); }
.dz-map__link { display: inline-block; margin-top: 7px; color: var(--accent); font-weight: 600; }
.dz-map__link:hover { text-decoration: underline; }
.dz-map .leaflet-bar a { background: var(--surface); color: var(--white); border-color: var(--line); }
.dz-map .leaflet-bar a:hover { background: var(--surface-2); }

/* ---------- pagination ---------- */
.dz-pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.dz-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.dz-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.dz-pagination .page-numbers.dots { border: 0; }
.dz-pagination .page-numbers svg { width: 14px; height: 14px; }

/* ---------- post navigation ---------- */
.post-navigation {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
}
.post-navigation a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.16s;
}
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.post-navigation .nav-title {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  color: var(--white);
}
.post-navigation .nav-next { text-align: right; }

/* ---------- comments ---------- */
.comments-area { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; padding-left: 22px; margin-top: 12px; }
.comment-body {
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.comment-author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.comment-author .avatar { width: 32px; height: 32px; border-radius: 0; }
.comment-metadata { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.comment-content { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.comment-content p + p { margin-top: 0.8em; }
.reply { margin-top: 8px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.reply a { color: var(--accent); }
.comment-form { display: grid; gap: 12px; margin-top: 20px; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: 0;
  transition: border-color 0.16s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
  height: 42px;
  padding: 0 22px;
  background: var(--accent);
  border: 0;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); }

/* ---------- widgets ---------- */
.widget { border: 1px solid var(--line); background: var(--surface); }
.widget-title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.widget > ul, .widget > ol { padding: 8px 14px 14px; }
.widget > p { padding: 10px 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.widget li:first-child { border-top: 0; }
.widget a { color: var(--text-dim); }
.widget a:hover { color: var(--accent); }

/* ---------- misc ---------- */
.page-header { margin-bottom: 22px; }
.archive-description { color: var(--muted); font-size: 14px; max-width: 64ch; margin-top: 10px; }
.no-results { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.edit-link { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--muted); }
.edit-link a { color: var(--accent); }
.wp-link-pages { margin-top: 18px; font-size: 13px; }
.wp-link-pages a { color: var(--accent); margin-right: 6px; }

/* admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- responsive content ---------- */
@media (max-width: 1024px) {
  .dz-infobox { float: none; width: 100%; margin: 0 0 18px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .alignleft, .alignright { float: none; margin: 0 0 1rem; }
}
/* ---------- theme integration ---------- */
.tile > a { display: block; color: inherit; height: 100%; }
.tile__img { background-color: var(--surface-2); }

.brand .custom-logo { display: block; max-height: 40px; width: auto; }
.brand .custom-logo-link { display: block; }

.banner--image {
  padding: 0;
  display: block;
  border: 0;
  background: none;
  min-height: 0;
}
.banner--image::before,
.banner--image::after { display: none; }
.banner--image img { display: block; width: 100%; height: auto; }

/* mobile menu: always-expanded submenus */
.mobile-menu .nav { display: block; }
.mobile-menu .nav > li > a {
  height: auto;
  padding: 12px 0;
  font-size: 16px;
}
.mobile-menu .nav > li > a::after { display: none; }
.mobile-menu .nav__caret { display: none; }
.mobile-menu .drop {
  position: static;
  display: block;
  min-width: 0;
  padding: 0 0 8px 12px;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.mobile-menu .drop a {
  padding: 8px 0;
  font-size: 14px;
  border-top: 1px solid var(--line-soft);
}

/* footer menu list reset */
.footer .menu { list-style: none; margin: 0; padding: 0; }

/* WP gallery block */
.wp-block-gallery { display: grid; gap: 10px; }

/* search inside sidebar/404 */
.no-results .search { width: 100%; max-width: 380px; margin-top: 6px; }
/* ---------- custom logo + footer brand ---------- */
.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { display: block; width: 50px; height: auto; }

.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__logo .custom-logo { width: 46px; height: auto; }
.footer__brand .footer__desc { margin-top: 0; }
.footer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
