/* ============================================================
   CyberArtical WordPress Theme — assets/css/style.css
   Based on styles-v10.css (NGX Magazine, NatGeo-ish vibe)
   Light-first, photo-led, yellow accent, dark mode
   ============================================================ */

:root {
  --bg:      #f6f5f1;
  --paper:   #ffffff;
  --ink:     #0f1114;
  --muted:   #58606a;

  --line:    rgba(15,17,20,.10);
  --line2:   rgba(15,17,20,.06);

  --top:     #0a0a0a;
  --top2:    #121212;

  --accent:  #ffcc00;
  --accent2: #ffd84d;

  --shadow:  0 16px 42px rgba(0,0,0,.10);
  --shadow2: 0 10px 26px rgba(0,0,0,.08);

  --container: 1240px;

  --sans:  ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;

  /* Sticky offset — overridden by JS after header renders */
  --sticky-top: 105px;
}

body.theme-dark {
  --bg:     #0c1014;
  --paper:  #0f151c;
  --ink:    #f2f5f8;
  --muted:  rgba(242,245,248,.72);
  --line:   rgba(255,255,255,.12);
  --line2:  rgba(255,255,255,.07);
  --shadow: 0 22px 52px rgba(0,0,0,.42);
  --shadow2:0 14px 30px rgba(0,0,0,.34);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*{box-sizing:border-box}
html{height:100%}
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Main content grows to fill space — pushes footer to bottom */
.ngx-main {
  flex: 1 0 auto;
}
/* Footer never shrinks */
.ngx-footer {
  flex-shrink: 0;
}
img{display:block; max-width:100%}
a{color:inherit; text-decoration:none}
button,input{font:inherit}
::selection{background: rgba(255,204,0,.22)}

/* ─── Shell ─────────────────────────────────────────────────── */
.ngx-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
@media (max-width:760px) {
  .ngx-shell { width: calc(100% - 24px); }
}

/* ─── Header ────────────────────────────────────────────────── */
.ngx-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
.ngx-top {
  background: var(--top);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.ngx-top__inner {
  display: grid;
  grid-template-columns: 60px 1fr 240px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.ngx-top__left  { display:flex; align-items:center; }
.ngx-top__center{ display:flex; justify-content:center; }
.ngx-top__right { display:flex; justify-content:flex-end; gap:10px; align-items:center; }

/* Tablet & mobile (nav bar is hidden): pull logo flush to the burger */
@media (max-width:980px) {
  .ngx-top__inner  { grid-template-columns: auto auto 1fr; gap: 6px; }
  .ngx-top__center { justify-content: flex-start; }
}

/* Controls */
.ngx-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.ngx-ico:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,204,0,.22);
  border-color: rgba(255,255,255,.32);
}
.ngx-ico--menu {
  width: 44px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
}
.ngx-burger {
  width: 20px;
  height: 14px;
  display: grid;
  align-content: space-between;
}
.ngx-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  opacity: .92;
}
.ngx-ico--search svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  opacity: .92;
}
.ngx-ico--search span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .92;
}
@media (max-width:640px) {
  .ngx-ico--search { display:none; }
}

/* Brand */
.ngx-brand {
  display: flex;
  align-items: center;
  gap: 0;
}
/* WordPress custom logo */
.ngx-brand .custom-logo-link {
  display: flex;
  align-items: center;
}
.ngx-brand .custom-logo,
.ngx-brand img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height .15s ease;
}
@media (max-width:980px) {
  .ngx-brand .custom-logo,
  .ngx-brand img { height: 40px; }
}
@media (max-width:640px) {
  .ngx-brand .custom-logo,
  .ngx-brand img { height: 32px; }
  .ngx-name { font-size: 13px; }
}
.ngx-mark {
  width: 14px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
}
.ngx-name {
  color: #fff;
  font-weight: 950;
  letter-spacing: .01em;
  font-size: 16px;
}
@media (max-width:420px) { .ngx-name { font-size:14px; } }

/* Theme toggle */
.ngx-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
}
.ngx-theme:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,204,0,.22);
  border-color: rgba(255,255,255,.32);
}
.ngx-theme__sun,
.ngx-theme__moon {
  width: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  opacity: .85;
  transform: translateY(-.5px);
  transition: opacity .18s ease, transform .18s ease;
}
.ngx-theme__track {
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
}
.ngx-theme__knob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translate(0,-50%);
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,.22);
  transition: transform .18s ease, background .18s ease;
}
body.theme-dark .ngx-theme__knob { transform: translate(22px,-50%); background:#f2f5f8; }
body.theme-dark .ngx-theme__sun  { opacity:.55; }
body.theme-dark .ngx-theme__moon { opacity:1; transform:translateY(-.5px) scale(1.04); }
body:not(.theme-dark) .ngx-theme__sun  { opacity:1; transform:translateY(-.5px) scale(1.04); }
body:not(.theme-dark) .ngx-theme__moon { opacity:.55; }

/* Primary nav */
.ngx-nav {
  background: var(--top2);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.ngx-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 0;
}
.ngx-nav__a {
  color: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 0 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ngx-nav__a:hover  { color:#fff; border-bottom-color:rgba(255,255,255,.25); }
.ngx-nav__a.is-active { color:#fff; border-bottom-color:var(--accent); }
@media (max-width:980px) { .ngx-nav { display:none; } }

/* Mobile drawer */
.ngx-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ngx-drawer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.50);
  cursor: pointer;
}
.ngx-drawer__panel {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--paper);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translateX(-105%);
  transition: transform .22s ease;
  overflow: auto;
}
.ngx-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 12px;
  border-bottom: 1px solid var(--line);
}
.ngx-drawer__title {
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.ngx-drawer__close {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.ngx-drawer__label {
  margin-top: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.ngx-drawer__label--pages { margin-top:18px; }
.ngx-drawer__list { display:grid; gap:6px; padding-top:10px; }
.ngx-drawer__a {
  display: block;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--line2);
}
body.theme-dark .ngx-drawer__a { background: rgba(255,255,255,.06); }
.ngx-drawer__a:hover { border-color:var(--line); background:var(--paper); }
.ngx-drawer__cta {
  display: block;
  margin-top: 16px;
  background: var(--accent);
  color: #111;
  font-weight: 950;
  text-align: center;
  border-radius: 12px;
  padding: 12px 10px;
}

body.is-menu-open .ngx-drawer { opacity:1; visibility:visible; pointer-events:auto; }
body.is-menu-open .ngx-drawer__panel { transform:translateX(0); z-index:999; }

/* ─── Main ──────────────────────────────────────────────────── */
.ngx-main { padding:16px 0 44px; }

/* ─── Meta chip ─────────────────────────────────────────────── */
.ngx-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ngx-k  { color:var(--accent); font-weight:950; }
.ngx-dot { opacity:.75; }
.ngx-t   { opacity:.88; }
.ngx-x   { opacity:.88; }
/* Light mode: meta text uses muted colour (visible on white card/row backgrounds) */
body:not(.theme-dark) .ngx-meta { color: var(--muted); }
body:not(.theme-dark) .ngx-meta .ngx-k { color:#b38b00; }
/* Hero overlay: override the light-mode muted rule with equal or higher specificity */
body:not(.theme-dark) .ngx-hero__body .ngx-meta { color: rgba(255,255,255,.86); }
body:not(.theme-dark) .ngx-hero__body .ngx-meta .ngx-k { color: var(--accent); }
/* Category label clickable cursor */
.ngx-k[data-cat-url],
.ngx-rail__k[data-cat-url] { cursor: pointer; }

/* ─── Home top (hero + rail) ────────────────────────────────── */
.ngx-homeTop {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  align-items: start;
}
@media (max-width:980px) { .ngx-homeTop { grid-template-columns:1fr; } }

/* Sticky both columns: shorter sticks, longer scrolls */
.ngx-homeTop__lead,
.ngx-homeTop__rail {
  position: sticky;
  top: var(--sticky-top);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.ngx-hero {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  overflow: hidden;
}
.ngx-hero__media { background:#ddd; }
.ngx-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ngx-hero__shade {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.18) 55%, rgba(0,0,0,0));
  pointer-events: none;
}
.ngx-hero__body {
  position: absolute; left:0; right:0; bottom:0;
  padding: 16px;
  color: #fff;
}
.ngx-hero__t {
  margin: 10px 0 0;
  font-weight: 1000;
  letter-spacing: -.02em;
  line-height: 1.06;
  text-transform: capitalize;
}
.ngx-hero--xl .ngx-hero__t { font-size: clamp(28px,3.2vw,54px); }
.ngx-hero--lg .ngx-hero__t { font-size: clamp(24px,2.6vw,44px); }
.ngx-hero__d {
  margin: 10px 0 0;
  opacity: .92;
  font-size: 15px;
  line-height: 1.7;
  max-width: 68ch;
}
.ngx-hero__more {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  color: var(--accent2);
}
.ngx-hero__more::after { content:"→"; }
@media (max-width:640px) {
  .ngx-hero__body { padding:14px; }
  .ngx-hero__d    { display:none; }
}

/* ─── Rail (sidebar story list) ─────────────────────────────── */
.ngx-homeTop__rail { align-self:start; }
.ngx-rail__head {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 12px 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 14px 14px 0 0;
}
.ngx-rail {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 12px;
  box-shadow: var(--shadow2);
  border-radius: 0 0 14px 14px;
}
.ngx-rail__item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line2);
}
.ngx-rail__item:last-child { border-bottom:0; }
.ngx-rail__t {
  font-weight: 950;
  line-height: 1.25;
  font-size: 14px;
  text-transform: capitalize;
}
.ngx-rail__m {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.ngx-rail__k { color:var(--ink); font-weight:800; }

/* ─── Category chips strip ──────────────────────────────────── */
.ngx-strip,
.ngx-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;       /* row-gap col-gap */
  row-gap: 14px;
}
.ngx-chip {
  /* button reset */
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* chip look */
  border: 1px solid var(--line);
  background: rgba(127,127,127,.10);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  font-size: 12px;
  transition: border-color .18s ease, transform .10s ease;
}
body.theme-dark .ngx-chip {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.ngx-chip:hover  { border-color:rgba(255,204,0,.75); }
.ngx-chip:active { transform:translateY(1px); }

/* ─── Triptych ──────────────────────────────────────────────── */
.ngx-triptych {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
@media (max-width:980px) { .ngx-triptych { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px)  { .ngx-triptych { grid-template-columns:1fr; } }

/* ─── Card ──────────────────────────────────────────────────── */
.ngx-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  overflow: hidden;
}
.ngx-card__media { background:#ddd; }
.ngx-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.ngx-card__body { padding:12px; }
.ngx-card__t {
  margin-top: 8px;
  font-weight: 1000;
  font-size: 16px;
  line-height: 1.22;
  text-transform: capitalize;
}

/* ─── Home bottom (editor picks + latest) ───────────────────── */
.ngx-homeBottom {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
@media (max-width:980px) { .ngx-homeBottom { grid-template-columns:1fr; } }

.ngx-block      { min-width:0; }
.ngx-block--space { margin-top:16px; }
.ngx-h {
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 0 10px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 10px;
}

/* ─── Grid (editor picks, more stories) ─────────────────────── */
.ngx-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.ngx-grid--related { margin-top:10px; }
@media (max-width:980px) { .ngx-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px)  { .ngx-grid { grid-template-columns:1fr; } }

/* ─── List rows ─────────────────────────────────────────────── */
.ngx-list { display:grid; gap:0; }
.ngx-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ngx-row__t {
  margin-top: 6px;
  font-weight: 1000;
  letter-spacing: -.01em;
  font-size: 18px;
  line-height: 1.18;
  text-transform: capitalize;
}
.ngx-row__d {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.ngx-row__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ddd;
}
.ngx-row__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width:640px) {
  .ngx-row { grid-template-columns:1fr; }
  .ngx-row__media { order:-1; }
}

/* ─── Category header ───────────────────────────────────────── */
.ngx-catHead {
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  padding: 16px;
}
.ngx-catHead__k {
  color: #b38b00;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
}
body.theme-dark .ngx-catHead__k { color:var(--accent); }
.ngx-catHead__t {
  margin: 8px 0 0;
  font-size: clamp(28px,3.4vw,48px);
  letter-spacing: -.02em;
  line-height: 1.06;
  font-weight: 1000;
}
.ngx-catHead__p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Category top grid ─────────────────────────────────────── */
.ngx-catTop {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  align-items: start;
}
@media (max-width:980px) { .ngx-catTop { grid-template-columns:1fr; } }

/* Sticky both columns */
.ngx-catTop__lead,
.ngx-catTop__rail {
  position: sticky;
  top: var(--sticky-top);
}

/* ─── Article page layout ───────────────────────────────────── */
.ngx-articleGrid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}
@media (max-width:980px) { .ngx-articleGrid { grid-template-columns:1fr; } }

/* Sticky both columns: article content + sidebar */
.ngx-articleGrid > .ngx-article,
.ngx-articleGrid > .ngx-side {
  position: sticky;
  top: var(--sticky-top);
}

.ngx-article {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 16px;
}
.ngx-article__title {
  margin: 10px 0 0;
  font-size: clamp(26px,3.2vw,48px);
  font-weight: 1000;
  letter-spacing: -.03em;
  line-height: 1.06;
  max-width: 34ch;
}
@media (max-width:640px) { .ngx-article__title { max-width:100%; } }
.ngx-article__sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ngx-figure {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
}
.ngx-figure img {
  width: 100%;
  height: clamp(220px,42vw,440px);
  object-fit: cover;
}
.ngx-divider { height:1px; background:var(--line); margin:16px 0; }

/* Prose */
.ngx-prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.9;
  margin-top: 12px;
}
.ngx-prose p { margin:0 0 18px; }
.ngx-prose h2 {
  margin: 26px 0 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 1000;
  font-family: var(--sans);
}
.ngx-prose h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 1000;
  font-family: var(--sans);
}
.ngx-prose a { color:#8a6a00; text-decoration:underline; text-underline-offset:3px; }
body.theme-dark .ngx-prose a { color:var(--accent2); }
.ngx-prose ul,
.ngx-prose ol { margin:0 0 18px 1.2em; }
.ngx-prose li { margin:10px 0; }
.ngx-prose blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(255,204,0,.16);
}
body.theme-dark .ngx-prose blockquote { background:rgba(255,204,0,.20); }
.ngx-prose img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Side (article sidebar) */
.ngx-side { min-width:0; }

/* ─── Search page ───────────────────────────────────────────── */
.ngx-search {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: start;
}
@media (max-width:980px) { .ngx-search { grid-template-columns:1fr; } }
.ngx-search__left {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  padding: 16px;
}
.ngx-search__k {
  color: #b38b00;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
}
body.theme-dark .ngx-search__k { color:var(--accent); }
.ngx-search__t {
  margin: 10px 0 0;
  font-weight: 1000;
  font-size: clamp(26px,3vw,42px);
  letter-spacing: -.02em;
}
.ngx-search__p { margin:10px 0 0; color:var(--muted); line-height:1.7; }
.ngx-search__box {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width:520px) { .ngx-search__box { grid-template-columns:1fr; } }
.ngx-search__in {
  height: 54px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
  border-radius: 14px;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ngx-search__in:focus {
  border-color: rgba(255,204,0,.80);
  box-shadow: 0 0 0 4px rgba(255,204,0,.18);
}
.ngx-search__go {
  height: 54px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #111;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(255,204,0,.18);
  transition: transform .10s ease, filter .18s ease, box-shadow .18s ease;
}
.ngx-search__go:hover {
  filter: brightness(1.03);
  box-shadow: 0 16px 26px rgba(255,204,0,.22);
}
.ngx-search__go:active { transform:translateY(1px); }
.ngx-search__back { display:inline-block; margin-top:14px; color:#8a6a00; font-weight:900; }
body.theme-dark .ngx-search__back { color:var(--accent2); }

/* WP search results within search page */
.ngx-search-results { margin-top:20px; }
.ngx-search-results .ngx-h { margin-bottom:14px; }
.ngx-search-noresults {
  padding: 24px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Static pages ──────────────────────────────────────────── */
.ngx-static {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  padding: 16px;
}
.ngx-static__k {
  color: #b38b00;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
}
body.theme-dark .ngx-static__k { color:var(--accent); }
body.theme-dark .ngx-static__t { color: var(--ink); }
.ngx-static__t {
  margin: 26px 0 12px;
  font-family: var(--sans);
  font-weight: 1000;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  color: #333;
  text-transform: uppercase;
}

/* ─── 404 page ──────────────────────────────────────────────── */
.ngx-404-wrap {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ngx-404-wrap__code {
  font-size: clamp(72px,12vw,140px);
  font-weight: 1000;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
}
.ngx-404-wrap__t {
  margin: 12px 0 0;
  font-size: clamp(22px,3vw,36px);
  font-weight: 1000;
  letter-spacing: -.02em;
}
.ngx-404-wrap__p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.ngx-404-wrap__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: var(--accent);
  color: #111;
  font-weight: 950;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  letter-spacing: .06em;
  transition: filter .18s ease, transform .10s ease;
}
.ngx-404-wrap__btn:hover { filter:brightness(1.05); }
.ngx-404-wrap__btn:active { transform:translateY(1px); }

/* ─── Pagination ────────────────────────────────────────────── */
.ngx-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
}
.ngx-pbtn {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  font-weight: 900;
  border-radius: 12px;
}
.ngx-pbtn.is-disabled { opacity:.45; cursor:not-allowed; }
.ngx-pills { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.ngx-pill {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 1000;
  border-radius: 12px;
}
.ngx-pill.is-active {
  border-color: rgba(255,204,0,.90);
  box-shadow: 0 0 0 3px rgba(255,204,0,.18);
}
.ngx-pill-ellipsis {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: .05em;
}

/* ─── Placeholder (no image) ────────────────────────────────── */
.ngx-ph {
  width: 100%;
  height: 180px;
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,.08),
    rgba(0,0,0,.08) 10px,
    rgba(0,0,0,.03) 10px,
    rgba(0,0,0,.03) 20px
  );
}
body.theme-dark .ngx-ph {
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,.14),
    rgba(255,255,255,.14) 10px,
    rgba(255,255,255,.06) 10px,
    rgba(255,255,255,.06) 20px
  );
}

/* ─── Footer ────────────────────────────────────────────────── */
.ngx-footer {
  margin-top: 30px;
  background: var(--top);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
}
.ngx-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.ngx-footer__links { display:flex; gap:14px; flex-wrap:wrap; }
.ngx-footer__links a { color:rgba(255,255,255,.78); }
.ngx-footer__links a:hover { color:#fff; text-decoration:underline; }
.ngx-footer__copy { color:rgba(255,255,255,.70); }

/* Logo in header */
.ngx-logo,
.custom-logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height .15s ease;
}

/* ─── WordPress alignment classes ───────────────────────────── */
.alignleft  { float:left; margin:0 1.5em 1em 0; }
.alignright { float:right; margin:0 0 1em 1.5em; }
.aligncenter { display:block; margin:0 auto 1em; }
.alignwide  { width:100%; }
.wp-caption { max-width:100%; }
.wp-caption-text { font-size:13px; color:var(--muted); text-align:center; margin:6px 0 0; }
