/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --black:    #0a0a0a;
  --ink:      #e5e2e1;
  --ink-2:    #333333;
  --ink-3:    #555555;
  --ink-4:    #888888;
  --rule:     #3a3c38;
  --rule-lt:  #2c2e2a;
  --bg:       #131313;
  --white:    #ffffff;
  --accent:   #a9b25b;
  --accent2:  #c7cf8f;  /* hover tint — light olive, matches the theme (was blue) */
  --focus:    #005fcc;       /* WCAG AA focus colour */
  --f-display:'Montserrat', Georgia, serif;
  --f-serif:  'Inter', Georgia, serif;
  --f-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --tap:      44px;           /* minimum touch target */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

/* ── Accessibility: skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--focus);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* ── Global focus ring (WCAG 2.4.7) ── */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 16px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: all .15s;
  flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--ink-3); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.lang-btn.active { border-color: var(--ink); box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.lang-btn svg { width: 24px; height: 16px; display: block; }
.lang-sep {
  width: 1px; height: 10px;
  background: var(--rule);
  flex-shrink: 0;
}
.lang-sep {
  width: 1px; height: 10px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--black);
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar a { color: rgba(255,255,255,.55); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }
#top-date { color: rgba(255,255,255,.35); font-size: 10px; }

/* ── HEADER ──
   NOTE: only .site-header must be sticky/stacked. This generic `header{}`
   rule used to also set position:sticky + z-index:200, which leaked onto the
   homepage hero (<header class="zeus-hero">) — making the hero a stacking
   context ABOVE the real header, so the mobile menu opened *behind* the hero
   until you scrolled past it. Scoped to .site-header instead. */
.site-header {
  box-shadow: 0 1px 0 var(--rule), 0 4px 24px rgba(0,0,0,.04);
}
.zeus-hero { z-index: auto; }
.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: clamp(56px, 8vw, 64px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  font-family: var(--f-display);
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.logo sup {
  font-family: var(--f-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: super;
  margin-left: 5px;
}
.header-divider { width: 1px; height: 24px; background: var(--rule); flex-shrink: 0; }
.header-section {
  font-family: var(--f-sans);
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); flex-shrink: 0;
}
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.back-link {
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  text-decoration: none; display: inline-flex; align-items: center;
  gap: 5px; min-height: var(--tap); transition: color .15s;
  padding: 0 4px;
}
.back-link:hover { color: var(--ink); }

.refresh-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; padding: 0 16px;
  min-height: var(--tap);
  border-radius: 2px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.refresh-btn:hover { background: var(--ink); color: var(--white); }
.refresh-btn.spinning svg { animation: spin .7s linear infinite; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1340px; margin: 0 auto;
  padding: 10px 1.25rem;
  font-size: 12px; color: var(--ink-4);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-4); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--accent2); text-decoration: underline; }
.breadcrumb-sep { color: var(--rule); font-size: 14px; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 500; }

/* ── SECTION HEADER ── */
.section-header {
  max-width: 1340px; margin: 0 auto;
  padding: 1rem 1.25rem 0;
  display: flex; align-items: center; gap: 14px;
}
.section-label {
  font-family: var(--f-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap;
}
.section-rule { flex: 1; height: 1px; background: var(--rule); }
#count-label { font-size: 11px; color: var(--ink-4); font-weight: 500; white-space: nowrap; }

/* ── STATUS BADGES ── */
.status-row {
  max-width: 1340px; margin: 0 auto;
  padding: 8px 1.25rem 0;
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; align-items: center;
}
.src-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; border: 1px solid var(--rule);
  color: var(--ink-4); display: flex; align-items: center; gap: 5px; transition: all .2s;
}
.src-badge.ok   { color: #1d6a2e; border-color: #3f5a44; background: #1c231a; }
.src-badge.fail { color: #e8a89a; border-color: #5a3f3f; background: #271a17; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── UNIFIED SITE HEADER ── */
.site-header{background:#141514;border-bottom:1px solid var(--rule);padding:0 clamp(1rem,4vw,2.5rem);display:flex;align-items:center;justify-content:space-between;gap:1rem;height:62px;position:sticky;top:0;z-index:100;}
.site-header .logo{font-family:var(--f-display);font-size:clamp(15px,2.5vw,19px);font-weight:800;color:var(--ink);text-decoration:none;letter-spacing:.02em;display:flex;align-items:center;min-height:var(--tap);white-space:nowrap}
.site-header .logo-dot{color:var(--accent)}
.header-nav{display:flex;align-items:center;gap:clamp(8px,2vw,28px);min-width:0;overflow-x:auto;scrollbar-width:none}
.header-nav::-webkit-scrollbar{display:none}
.hnav-link{font-family:var(--f-sans);font-size:13px;font-weight:600;color:#e5e2e1;text-decoration:none;padding:4px 2px;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;white-space:nowrap}
.hnav-link:hover{color:var(--ink)}
.site-header .logo:hover{color:var(--ink)}
.site-header .logo:hover .logo-dot{color:var(--accent)}
.hnav-link.active{color:var(--accent);border-bottom-color:var(--accent)}
@media (max-width:820px){.header-nav{gap:12px}.hnav-link{font-size:12px}}
@media (max-width:640px){
  .site-header{padding:0 .85rem;gap:.5rem}
  .site-header .logo{font-size:14px}
  .header-nav{gap:9px}
  .hnav-link{font-size:11px;letter-spacing:0;padding:4px 1px}
  .header-actions{gap:6px}
  .refresh-btn span{display:none}
  .refresh-btn{padding:6px 8px}
  .header-section,.header-divider{display:none}
}
@media (max-width:420px){
  .site-header .logo{font-size:12.5px}
  .header-nav{gap:7px}
  .hnav-link{font-size:10px}
  .lang-btn{width:22px;height:15px}
}

/* ── ZEUS HERO BANNER ── */
.zeus-hero { position: relative; width: 100%; height: min(72vh, 620px); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.zeus-hero > img, .zeus-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zeus-hero > picture { display: contents; }
.zeus-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,16,.55) 0%, rgba(15,16,16,.35) 45%, rgba(19,19,19,.92) 100%); }
.zeus-content { position: relative; z-index: 2; text-align: center; max-width: 780px; padding: 2rem 1.5rem; }
.zeus-badge { display: inline-block; background: var(--accent); color: #1d1e0a; font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px; margin-bottom: 1.1rem; }
.zeus-title { font-family: var(--f-display); font-size: clamp(28px, 6vw, 58px); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.zeus-sub { font-family: var(--f-sans); font-size: clamp(14px, 2.2vw, 18px); font-weight: 400; color: #e2e0dc; line-height: 1.6; margin: 0 auto 1.75rem; max-width: 600px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.zeus-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.zeus-btn { display: inline-block; font-family: var(--f-sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 13px 30px; border-radius: 3px; text-decoration: none; transition: all .18s; min-width: 220px; }
.zeus-btn-primary { background: var(--accent); color: #1d1e0a; }
.zeus-btn-primary:hover { background: #bcc46a; transform: translateY(-1px); }
.zeus-btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.zeus-btn-ghost:hover { background: rgba(255,255,255,.12); }
@media (min-width: 640px) { .zeus-btns { flex-direction: row; justify-content: center; } .zeus-btn { min-width: 0; } }

/* ── MAIN ── */
.main { max-width: 1340px; margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }

/* ── HERO LAYOUT ── */
.layout-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.hero-card {
  padding-right: 2rem;
  border-right: 1px solid var(--rule);
  padding-bottom: 2rem;
}
.hero-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: var(--rule-lt); margin-bottom: 1.1rem;
}
.hero-img-ph {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(145deg, #2c2e2a, #3a3c38);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.hero-img-ph svg { width: 40px; height: 40px; opacity: .18; color: var(--ink-4); }

.source-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 8px;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: .85rem;
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: var(--accent2); }
.excerpt {
  font-family: var(--f-serif);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300; color: var(--ink-2);
  line-height: 1.65; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.meta {
  font-size: 11px; color: var(--ink-4); font-weight: 500;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); flex-shrink: 0; }

/* ── SIDEBAR STACK ── */
.sidebar-stack {
  padding-left: 1.5rem; padding-bottom: 2rem;
  display: flex; flex-direction: column; gap: 0;
}
.stack-item {
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
  min-height: var(--tap);
  transition: opacity .15s;
}
.stack-item:first-child { padding-top: 0; }
.stack-item:last-child { border-bottom: none; padding-bottom: 0; }
.stack-item:hover h3 { color: var(--accent2); }
.stack-item:hover { opacity: .85; }
.stack-img {
  width: 100%; height: 80px; object-fit: cover;
  display: block; background: var(--rule-lt); margin-bottom: 3px;
}
.stack-title {
  font-family: var(--f-display);
  font-size: 14px; font-weight: 600; line-height: 1.28;
  letter-spacing: -.01em; color: var(--ink); transition: color .15s;
}

/* ── 3-COL GRID ── */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
}
.grid-col {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-right: 1px solid var(--rule);
}
.grid-col:last-child { border-right: none; padding-right: 0; }
.grid-col:not(:first-child) { padding-left: 1.25rem; }

.col-header {
  font-family: var(--f-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
  padding-bottom: 10px; margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.col-header span { color: var(--ink); }

.grid-card {
  display: block; text-decoration: none; color: inherit;
  background: #161718; border: 1px solid var(--rule-lt);
  border-radius: 8px; overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.grid-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.grid-card:hover h3 { color: var(--accent2); }
/* pad the text area; image stays full-bleed at the top */
.grid-card .source-tag,
.grid-card .grid-title,
.grid-card .grid-excerpt,
.grid-card .meta { padding-left: .9rem; padding-right: .9rem; }
.grid-card .source-tag { margin-top: .7rem; }
.grid-card .meta { padding-bottom: .95rem; }

.grid-img-wrap {
  width: 100%; aspect-ratio: 16/10; overflow: hidden;
  background: var(--rule-lt); margin-bottom: .6rem; position: relative;
}
.grid-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.grid-card:hover .grid-img { transform: scale(1.04); }
.grid-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #2c2e2a, #3a3c38);
  display: flex; align-items: center; justify-content: center;
}
.grid-img-ph svg { width: 26px; height: 26px; opacity: .18; color: var(--ink-4); }

.grid-title {
  font-family: var(--f-display);
  font-size: clamp(13px, 1.5vw, 15px); font-weight: 600; line-height: 1.28;
  letter-spacing: -.01em; color: var(--ink); margin-bottom: 5px;
  transition: color .15s;
}
.grid-excerpt {
  font-family: var(--f-serif); font-size: 13px; font-weight: 300;
  color: var(--ink-3); line-height: 1.6; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   IN-FEED AD CARDS — Premium sponsored content style
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Desktop: full-width horizontal card with image */
.ad-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid #3c3a2e;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.ad-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Sponsored badge — top right corner */
.ad-sponsored-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--f-sans);
  font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  padding: 3px 8px; border-radius: 2px;
  z-index: 2;
}

/* Left image panel */
.ad-img-wrap {
  position: relative;
  overflow: hidden;
  background: #333531;
  flex-shrink: 0;
}
.ad-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.ad-card:hover .ad-img { transform: scale(1.06); }

/* Offer badge overlaid on image */
.ad-offer-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 2;
}

/* Right content panel */
.ad-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.ad-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-sans);
  font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--rule);
  padding: 2px 7px; border-radius: 2px;
  width: fit-content;
}
.ad-label svg { width: 9px; height: 9px; }
.ad-name {
  font-family: var(--f-display);
  font-size: 19px; font-weight: 700;
  line-height: 1.15; letter-spacing: -.01em;
}
.ad-tagline {
  font-family: var(--f-serif);
  font-size: 13px; font-weight: 300;
  color: var(--ink-3); line-height: 1.6;
}
.ad-offer-text {
  font-family: var(--f-sans);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.ad-offer-text svg { width: 14px; height: 14px; flex-shrink: 0; }
.ad-stars {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: #e0a020;
}
.ad-stars span { font-family: var(--f-sans); font-size: 11px; color: var(--ink-4); margin-left: 4px; }
.ad-footer {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
}
.ad-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-sans);
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: #fff;
  padding: 9px 18px; border-radius: 3px;
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.ad-card:hover .ad-cta { opacity: .9; transform: translateX(2px); }
.ad-cta svg { width: 12px; height: 12px; }
.ad-website {
  font-family: var(--f-sans);
  font-size: 11px; color: var(--ink-4);
  display: flex; align-items: center; gap: 4px;
}
.ad-website svg { width: 10px; height: 10px; }

/* ── Mobile ad: full card stacked ── */
.ad-mobile {
  display: none;
  text-decoration: none; color: inherit;
  background: var(--white);
  border: 1px solid #3c3a2e;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  overflow: hidden;
  margin: .5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: relative;
  flex-direction: column;
}
.ad-mobile-img-wrap {
  width: 100%; height: 120px; overflow: hidden;
  background: #333531; position: relative; flex-shrink: 0;
}
.ad-mobile-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ad-mobile-body {
  padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: 6px;
}
.ad-mobile .ad-name { font-size: 16px; font-family: var(--f-display); font-weight: 700; line-height: 1.2; }
.ad-mobile .ad-tagline { font-size: 12px; color: var(--ink-3); line-height: 1.5; font-family: var(--f-serif); font-weight: 300; }
.ad-mobile .ad-cta {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-sans); font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: #fff; padding: 10px; border-radius: 3px; margin-top: 2px;
  text-align: center;
}

@media (max-width: 600px) {
  .ad-card   { display: none !important; }
  .ad-mobile { display: flex; }
}

/* ── MOBILE CARD (single col on small screens) ── */
.mobile-card {
  display: none;
  text-decoration: none; color: inherit;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
  gap: 12px; align-items: flex-start;
}
.mobile-card:last-child { border-bottom: none; }
.mobile-card:hover .mobile-title { color: var(--accent2); }
.mobile-thumb {
  width: 90px; height: 68px; flex-shrink: 0;
  object-fit: cover; display: block; background: var(--rule-lt);
}
.mobile-thumb-ph {
  width: 90px; height: 68px; flex-shrink: 0;
  background: linear-gradient(145deg, #2c2e2a, #3a3c38);
  display: flex; align-items: center; justify-content: center;
}
.mobile-thumb-ph svg { width: 20px; height: 20px; opacity: .18; color: var(--ink-4); }
.mobile-body { flex: 1; min-width: 0; }
.mobile-title {
  font-family: var(--f-display); font-size: 14px; font-weight: 600;
  line-height: 1.3; color: var(--ink); margin-bottom: 4px;
  transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── NAV MENU ── */
.nav {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  padding: 0 1.25rem;
}
.nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  padding: 0 16px;
  height: 42px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink-4); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link svg { width: 13px; height: 13px; }

@media (max-width: 600px) {
  .nav-link { padding: 0 10px; font-size: 11px; gap: 4px; }
  .nav-link svg { display: none; }
}

/* ── LOADING ── */
.loading-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5rem 2rem; gap: 18px;
}
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--rule); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.loading-text { font-family: var(--f-serif); font-size: 16px; font-style: italic; color: var(--ink-4); }


.footer-disclaimer {
  max-width: 1340px; margin: 14px auto 0; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-disclaimer p {
  font-size: 11px; color: rgba(255,255,255,.3); line-height: 1.6; max-width: 820px;
}

/* ── SSR fallback content (visible until JS renders) ── */
#ssr-content { max-width: 720px; margin: 0 auto; padding: 1rem 1.5rem 2rem; }
#ssr-content a:hover { color: var(--accent2) !important; }

/* ── FOOTER (4-column, mockup style) ── */
footer { background: #0d0e0f; color: rgba(255,255,255,.45); padding: 3.5rem 1.25rem 2rem; border-top: 1px solid var(--rule); margin-top: 3rem; }
.footer-cols {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem;
}
.footer-col-brand { max-width: 320px; }
.footer-logo {
  font-family: var(--f-display); font-size: 18px; font-weight: 800;
  color: rgba(255,255,255,.9); letter-spacing: -.02em; text-decoration: none; text-transform: uppercase;
  display: inline-block; margin-bottom: 1rem;
}
.footer-tagline { font-family: var(--f-sans); font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.4); margin: 0; }
.footer-h { font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .9rem; }
.footer-list a { font-family: var(--f-sans); font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.footer-list a:hover { color: #fff; }
.footer-list-sm a { font-size: 11px; }
.footer-copy-small { font-family: var(--f-sans); font-size: 10px; line-height: 1.6; color: rgba(255,255,255,.4); margin: 0 0 1rem; }
footer a:hover { color: rgba(255,255,255,.85); }
@media (max-width: 840px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ━━━━━━━━━━━━━━━ RESPONSIVE ━━━━━━━━━━━━━━━ */

/* Tablet: 2-col hero, 3-col grid */
@media (max-width: 1024px) {
  .layout-hero { grid-template-columns: 1fr 260px; }
  .layout-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small tablet: stack hero, 2-col grid */
@media (max-width: 840px) {
  .layout-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-card { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
  .sidebar-stack { padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
  .layout-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: single column everything, thumbnail list */
@media (max-width: 600px) {
  .top-bar { display: none; }
  .header-divider, .header-section { display: none; }
  .header-inner { gap: 6px; padding: 0 0.75rem; }
  .logo { font-size: 18px; }

  /* Hide refresh text on mobile to save space */
  .refresh-btn span { display: none; }
  .refresh-btn { padding: 0; width: 36px; justify-content: center; }

  /* Hide ALL desktop layout on mobile */
  #grid-wrap { display: none !important; }

  /* Show mobile list */
  .mobile-list { display: block !important; }
  .mobile-card { display: flex !important; }

}

/* Very small screens */
@media (max-width: 380px) {
  .back-link span { display: none; }
}

/* High-contrast / forced colours */
@media (forced-colors: active) {
  .src-badge.ok   { border: 2px solid CanvasText; }
  .src-badge.fail { border: 2px solid CanvasText; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .grid-img, .spinner { transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

#scroll-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, background .15s;
  z-index: 9999;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
#scroll-top:hover { background: var(--accent); }


/* ── Εργαλεία (Tools) page: flip imported light cards → dark theme ──
   Applies to BOTH the Greek page (id 12) and its English Polylang
   translation (id 65) so the theme is identical in both languages. */
body.page-id-12,
body.page-id-65 {
  --white: #191a1a;   /* card / input / chip backgrounds */
  --ink-2: #d0cec9;   /* was #333 dark text on white cards */
  --ink-3: #a9a7a2;   /* was #555 */
}
body.page-id-12 .tool,
body.page-id-12 .toolnav a,
body.page-id-65 .tool,
body.page-id-65 .toolnav a { border: 1px solid var(--rule) !important; }
body.page-id-12 .toolnav a:hover,
body.page-id-65 .toolnav a:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

/* Ported guides/pages redefine --accent2 to the old blue (#9fb8d8) in their
   inline :root; force the theme olive so links/accents aren't blue. */
body.page-template-page-raw { --accent2: #c7cf8f; }

/* Content links on ported (page-raw) pages — e.g. the inline links inside the
   Tools notes (<a class="inline">) had no colour rule and fell back to the
   browser-default BLUE. Force the theme olive on every in-content link, but
   leave buttons, the tool sub-nav, the back link and the AddToAny share
   buttons to their own styling. Scoped to #main-content so header/footer nav
   is untouched. */
body.page-template-page-raw #main-content a:not(.cta-btn):not(.nav-link):not(.back-link):not(.footer-logo):not(.logo):not(.hnav-link):not([class*="a2a"]):not([class*="addtoany"]) {
  color: var(--accent2) !important;
}
body.page-template-page-raw #main-content a:not(.cta-btn):not(.nav-link):not(.back-link):not(.footer-logo):not(.logo):not(.hnav-link):not([class*="a2a"]):not([class*="addtoany"]):hover {
  color: var(--accent) !important;
}

/* Header "Messages" unread badge */
.sm-nav-badge { display:inline-block; background:var(--accent); color:#1d1e0a; font-size:10px; font-weight:800; line-height:1; padding:2px 6px; border-radius:9px; vertical-align:middle; }

/* Header profile / messages icons (logged-in) */
.sm-hicon { position:relative; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; color:var(--ink); text-decoration:none; border-radius:6px; transition:color .15s, background .15s; }
.sm-hicon:hover { color:var(--accent); background:rgba(255,255,255,.06); }
.sm-hicon svg { width:20px; height:20px; }
.sm-hicon-badge { position:absolute; top:-3px; right:-3px; background:var(--accent); color:#1d1e0a; font-size:9px; font-weight:800; line-height:1; min-width:15px; height:15px; display:flex; align-items:center; justify-content:center; border-radius:8px; padding:0 3px; }
/* Content links → theme colour, never browser-blue */
.page-content a { color: var(--accent2); }
.page-content a:hover { color: var(--accent); }

/* ══════════════ MOBILE HEADER (hamburger) ══════════════ */
.sm-burger { display:none; background:none; border:none; color:var(--ink); cursor:pointer; padding:6px; align-items:center; }
.sm-burger svg { width:26px; height:26px; }
@media (max-width: 820px) {
  .sm-burger { display:inline-flex; }
  /* Mobile dropdown: FIXED to the viewport (not absolute inside the sticky
     header) so it can never be clipped by an ancestor's overflow or trapped
     in a stacking context — the earlier "menu disappears" bug. */
  .site-header .header-nav {
    position:fixed; top:62px; left:0; right:0; width:auto;
    background:#141514; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
    flex-direction:column; align-items:stretch; gap:0; padding:6px 0;
    overflow-y:auto; -webkit-overflow-scrolling:touch; max-height:calc(100vh - 62px);
    display:none; z-index:1000; box-shadow:0 12px 26px rgba(0,0,0,.45);
  }
  .site-header.nav-open .header-nav { display:flex !important; }
  .site-header .header-nav .hnav-link { padding:14px 22px; font-size:15px; border-bottom:1px solid var(--rule-lt); white-space:nowrap; }
  .site-header .header-nav .hnav-link.active { color:var(--accent); border-bottom-color:var(--rule-lt); }
  .header-actions { gap:8px; }
}
/* Tighter mobile footer */
@media (max-width: 480px) {
  footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-cols { gap: 1.5rem; }
  .footer-list li { margin-bottom: .5rem; }
}

/* Force header icons bright & visible (stroke, not relying on currentColor) */
.sm-burger, .sm-hicon { color: #e5e2e1 !important; }
.sm-burger svg, .sm-hicon svg { stroke: #e5e2e1 !important; fill: none !important; width: 23px; height: 23px; }
.sm-hicon:hover, .sm-burger:hover { color: var(--accent) !important; }
.sm-hicon:hover svg, .sm-burger:hover svg { stroke: var(--accent) !important; }

/* ══════════════ NAV DROPDOWNS (categories + profile) ══════════════ */
.hnav-item { position: relative; display: inline-flex; align-items: center; gap: 1px; }
.nav-caret { background: none; border: none; padding: 3px 2px; margin: 0; cursor: pointer; color: #a0a39b; display: inline-flex; align-items: center; }
.nav-caret svg { width: 13px; height: 13px; transition: transform .2s; }
.nav-caret:hover { color: var(--accent); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px; z-index: 250;
  background: #191a1a; border: 1px solid var(--rule); border-radius: 10px; padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55); margin-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-caret svg, .has-dropdown.open .nav-caret svg { transform: rotate(180deg); }
.nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dd-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: 7px; font-family: var(--f-sans); font-size: 13px; font-weight: 500;
  color: #c9c7c5; text-decoration: none; transition: background .12s, color .12s;
}
.nav-dd-link:hover { background: rgba(169,178,91,.12); color: var(--accent2); }
.nav-dd-count { font-size: 10px; color: #7d8078; background: rgba(255,255,255,.05); padding: 1px 7px; border-radius: 999px; flex-shrink: 0; }
.nav-dd-all { display: block; margin-top: 6px; padding: 9px 11px; border-top: 1px solid var(--rule); font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); text-decoration: none; }
.nav-dd-all:hover { color: var(--accent2); }
/* profile dropdown (single column, right-aligned) */
.sm-hicon-wrap { position: relative; display: inline-flex; }
.nav-dropdown-profile { left: auto; right: 0; min-width: 215px; }
.nav-dropdown-profile .nav-dd-link { justify-content: flex-start; }
.nav-dd-user { display: block; padding: 4px 11px 9px; font-family: var(--f-sans); font-size: 12px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.nav-dd-logout { color: #e0918d !important; }
.nav-dd-logout:hover { color: #f0a5a2 !important; }

/* mobile: dropdowns render inline inside the burger menu (tap caret to expand) */
@media (max-width: 820px) {
  .hnav-item { display: block; width: 100%; flex-wrap: wrap; }
  .hnav-item .hnav-link { flex: 1; }
  .nav-caret { margin-left: auto; padding: 13px 22px; color: var(--ink); }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; margin: 0; padding: 0 0 .5rem 1.4rem; min-width: 0;
    background: transparent; display: none; width: 100%;
  }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dd-grid { grid-template-columns: 1fr; }
  /* brighter + bolder on mobile so categories are clearly readable */
  .nav-dropdown .nav-dd-link { color: #e5e2e1 !important; font-weight: 600; font-size: 14px; padding: 11px 8px; }
  .nav-dropdown .nav-dd-all { color: var(--accent) !important; font-size: 13px; }
  .nav-dd-count { color: #c9c7c5; background: rgba(255,255,255,.08); }
  /* profile dropdown not shown in the top nav on mobile (icon links to account) */
  .sm-hicon-wrap .nav-dropdown-profile { display: none !important; }
}

/* Header action icons: always white + soft shadow so they stay visible over the hero/background */
.header-actions .sm-hicon,
.header-actions .sm-burger { color:#fff !important; }
.header-actions .sm-hicon svg,
.header-actions .sm-burger svg { stroke:#fff !important; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
