/*
Theme Name: GRIDNET Wizards
Theme URI: https://mag.gridnet.org/
Author: GRIDNET Inc. (Panama) — the Wizards
Author URI: https://gridnet.org/
Description: Clean, professional, gently cyberpunk theme for GRIDNET OS Magazine. Readability-first article layout, terminal accents, system fonts only, no third-party assets. Replaces JMagz; keeps its menu locations and widget areas.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: gridnet-wizards
*/

/* ════════════════════════════════════════════════════════════════
   1. Tokens
   ════════════════════════════════════════════════════════════════ */
:root {
  --gnw-bg: #070b12;
  --gnw-bg-2: #0a1019;
  --gnw-surface: #0d1520;
  --gnw-surface-2: #111b28;
  --gnw-line: rgba(140, 200, 255, 0.09);
  --gnw-line-2: rgba(140, 200, 255, 0.16);
  --gnw-text: #d6e2ec;
  --gnw-text-strong: #f2f7fb;
  --gnw-muted: #8ea3b6;
  --gnw-dim: #627a8f;
  --gnw-cyan: #00e1ff;
  --gnw-cyan-soft: #7fdcec;
  --gnw-teal: #2fd6c3;
  --gnw-green: #5ef2a0;
  --gnw-accent-bg: rgba(0, 225, 255, 0.08);
  --gnw-accent-line: rgba(0, 225, 255, 0.24);
  --gnw-f-ui: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gnw-f-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gnw-f-read: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --gnw-gutter: clamp(14px, 4vw, 32px);
  --gnw-max: 1240px;
  --gnw-header-h: 64px;
  --gnw-radius: 14px;
  --gnw-ease: cubic-bezier(.22, .8, .24, 1);
  /* Aliases used by the articles' own HTML (gn-article etc.) */
  --gn-bg: #070b12; --gn-bg2: #0d1520; --gn-bg3: #111b28;
  --gn-text: #d6e2ec; --gn-muted: #8ea3b6; --gn-cyan: #00e1ff; --gn-gold: #ffd166;
  --gn-mono: var(--gnw-f-mono); --gn-head: var(--gnw-f-ui); --gn-body: var(--gnw-f-read);
}

/* ════════════════════════════════════════════════════════════════
   2. Base
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--gnw-header-h) + 16px); }
body.gnw {
  margin: 0;
  background: var(--gnw-bg);
  color: var(--gnw-text);
  font-family: var(--gnw-f-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.gnw a { color: var(--gnw-cyan); text-underline-offset: 3px; }
body.gnw img { max-width: 100%; height: auto; }
body.gnw :focus-visible { outline: 2px solid var(--gnw-cyan); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(0, 225, 255, 0.28); color: #fff; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.gnw-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--gnw-cyan); color: #001018 !important; font-weight: 700; text-decoration: none; }
.gnw-skip:focus { top: 12px; }

.gnw-wrap { width: 100%; max-width: var(--gnw-max); margin: 0 auto; padding: 0 var(--gnw-gutter); }
.gnw-main { display: block; outline: none; min-height: 50vh; }

.gnw-i { flex: 0 0 auto; display: inline-block; vertical-align: middle; }

/* Shared atoms */
.gnw-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--gnw-f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gnw-cyan-soft);
}
.gnw-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gnw-green); box-shadow: 0 0 10px rgba(94, 242, 160, 0.7); }
.gnw-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gnw-accent-line);
  background: var(--gnw-accent-bg);
  font-family: var(--gnw-f-mono); font-size: 11px; font-weight: 500; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gnw-cyan) !important; text-decoration: none !important;
  transition: background-color .2s, border-color .2s, color .2s;
}
.gnw-chip:hover { background: rgba(0, 225, 255, 0.16); border-color: rgba(0, 225, 255, 0.5); color: #fff !important; }
.gnw-chip--ghost { background: rgba(255, 255, 255, 0.02); border-color: var(--gnw-line-2); color: var(--gnw-muted) !important; text-transform: none; letter-spacing: 0.02em; font-size: 12px; padding: 5px 12px; }
.gnw-chip--ghost:hover { color: var(--gnw-text-strong) !important; border-color: var(--gnw-accent-line); background: var(--gnw-accent-bg); }

.gnw-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--gnw-line-2); background: var(--gnw-surface);
  color: var(--gnw-text-strong) !important; text-decoration: none !important;
  font: 600 14px/1 var(--gnw-f-ui); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.gnw-btn:hover { border-color: var(--gnw-accent-line); background: var(--gnw-surface-2); }
.gnw-btn--primary { background: var(--gnw-cyan); border-color: var(--gnw-cyan); color: #00131a !important; }
.gnw-btn--primary:hover { background: #5fefff; }

.gnw-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 11px;
  border-radius: 11px; border: 1px solid transparent;
  background: transparent; color: var(--gnw-text);
  font: 600 13px/1 var(--gnw-f-ui); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.gnw-iconbtn:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--gnw-line-2); color: #fff; }
.gnw-iconbtn[aria-expanded="true"] { background: var(--gnw-accent-bg); border-color: var(--gnw-accent-line); color: var(--gnw-cyan); }

/* ════════════════════════════════════════════════════════════════
   3. Header
   ════════════════════════════════════════════════════════════════ */
.gnw-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 18, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
          backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--gnw-line);
  transition: box-shadow .25s, background-color .25s;
}
.admin-bar .gnw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gnw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .gnw-header { top: 0; } }
.gnw-header.is-scrolled { background: rgba(7, 11, 18, 0.94); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.gnw-header__inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1360px; height: var(--gnw-header-h);
  margin: 0 auto; padding: 0 var(--gnw-gutter);
}
.gnw-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none !important; color: var(--gnw-text-strong) !important; }
.gnw-brand__mark { width: 38px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.25)); }
.gnw-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.gnw-brand__name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.gnw-brand__name b { color: var(--gnw-cyan); font-weight: 700; }
.gnw-brand__sub { font-family: var(--gnw-f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gnw-dim); white-space: nowrap; margin-top: 3px; }
.gnw-caret {
  display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px;
  background: var(--gnw-cyan); opacity: .85;
  animation: gnw-blink 1.15s steps(1, end) infinite;
}
@keyframes gnw-blink { 50% { opacity: 0; } }

.gnw-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gnw-latest-toggle .gnw-iconbtn__label { display: none; }

/* Desktop navigation */
.gnw-nav { display: none; }
.gnw-nav__list { display: flex; align-items: stretch; height: var(--gnw-header-h); margin: 0; padding: 0; list-style: none; }
.gnw-nav__item { position: relative; display: flex; align-items: center; list-style: none; }
.gnw-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 100%;
  padding: 0 12px;
  color: #b4c6d5 !important; text-decoration: none !important;
  font-size: 14px; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap;
  transition: color .2s;
}
.gnw-nav__link .gnw-i { color: var(--gnw-dim); transition: color .2s; }
.gnw-nav__list > .gnw-nav__item > .gnw-nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: var(--gnw-cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--gnw-ease);
}
.gnw-nav__item:hover > .gnw-nav__link, .gnw-nav__item.is-open > .gnw-nav__link { color: #fff !important; }
.gnw-nav__item:hover > .gnw-nav__link .gnw-i { color: var(--gnw-cyan); }
.gnw-nav__list > .gnw-nav__item:hover > .gnw-nav__link::after,
.gnw-nav__list > .gnw-nav__item.is-current > .gnw-nav__link::after { transform: scaleX(1); }
.gnw-nav__item.is-current > .gnw-nav__link { color: var(--gnw-text-strong) !important; }
.gnw-nav__item.is-current > .gnw-nav__link .gnw-i { color: var(--gnw-cyan); }
.gnw-nav__item.has-sub > .gnw-nav__link { padding-right: 4px; }
.gnw-nav__more {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 32px; margin-right: 6px;
  border: 0; border-radius: 6px; background: transparent; color: var(--gnw-dim); cursor: pointer;
}
.gnw-nav__more:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.gnw-nav__more .gnw-i { transition: transform .2s; }
.gnw-nav__item.is-open > .gnw-nav__more .gnw-i { transform: rotate(180deg); }
.gnw-nav__sub {
  position: absolute; top: calc(100% - 6px); left: 0; z-index: 60;
  min-width: 250px; margin: 0; padding: 6px; list-style: none;
  background: rgba(13, 21, 32, 0.98);
  border: 1px solid var(--gnw-line-2); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s var(--gnw-ease), visibility 0s .18s;
}
.gnw-nav__item:hover > .gnw-nav__sub, .gnw-nav__item:focus-within > .gnw-nav__sub, .gnw-nav__item.is-open > .gnw-nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.gnw-nav__sub .gnw-nav__item { display: block; }
.gnw-nav__sub .gnw-nav__link { display: flex; height: 42px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: #c4d3df !important; }
.gnw-nav__sub .gnw-nav__link:hover { background: rgba(0, 225, 255, 0.07); color: #fff !important; }

/* Search drop-down under the header */
.gnw-search { border-top: 1px solid var(--gnw-line); background: rgba(10, 16, 25, 0.98); }
.gnw-search[hidden] { display: none; }
.gnw-search__inner { max-width: 760px; margin: 0 auto; padding: 14px var(--gnw-gutter) 16px; }

@media (min-width: 1200px) {
  .gnw-nav { display: block; margin-left: 14px; }
  .gnw-menu-toggle { display: none; }
  .gnw-latest-toggle { order: 3; border-color: var(--gnw-line-2); padding: 0 14px 0 12px; }
  .gnw-latest-toggle .gnw-iconbtn__label { display: inline; }
  .gnw-brand { order: 0; }
  .gnw-nav { order: 1; }
  .gnw-header__tools { order: 2; }
}
@media (max-width: 1199px) {
  .gnw-header__inner { gap: 6px; }
  .gnw-brand { margin: 0 auto; }
  .gnw-header__tools { margin-left: 0; }
}
@media (max-width: 420px) {
  .gnw-brand__sub { display: none; }
  .gnw-brand__mark { width: 32px; }
  .gnw-brand__name { font-size: 15px; }
  .gnw-header__tools .gnw-search-toggle { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   4. Off-canvas panels
   ════════════════════════════════════════════════════════════════ */
.gnw-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 5, 10, 0.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s ease;
}
.gnw-scrim[hidden] { display: none; }
.gnw-scrim.is-visible { opacity: 1; }
.gnw-panel {
  position: fixed; top: 0; bottom: 0; z-index: 90;
  display: flex; flex-direction: column;
  width: min(88vw, 380px);
  background: linear-gradient(180deg, #0c131e 0%, #090e17 100%);
  box-shadow: 0 0 0 1px var(--gnw-line-2), 0 30px 80px rgba(0, 0, 0, 0.6);
  visibility: hidden;
  transition: transform .34s var(--gnw-ease), visibility 0s linear .34s;
  outline: none;
}
.gnw-panel--left { left: 0; transform: translateX(-104%); }
.gnw-panel--right { right: 0; transform: translateX(104%); }
.gnw-panel.is-open { transform: none; visibility: visible; transition: transform .34s var(--gnw-ease), visibility 0s; }
.admin-bar .gnw-panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .gnw-panel { top: 46px; } }
.gnw-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--gnw-header-h); flex: 0 0 auto;
  padding: 0 10px 0 20px;
  border-bottom: 1px solid var(--gnw-line);
}
.gnw-panel__title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--gnw-f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gnw-cyan-soft);
}
.gnw-panel__title .gnw-i { color: var(--gnw-cyan); }
.gnw-panel__close { color: var(--gnw-muted); }
.gnw-panel__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 0 16px; }
.gnw-panel__body::-webkit-scrollbar { width: 6px; }
.gnw-panel__body::-webkit-scrollbar-thumb { background: rgba(140, 200, 255, 0.18); border-radius: 3px; }
.gnw-panel__foot {
  flex: 0 0 auto; padding: 14px 20px 18px; border-top: 1px solid var(--gnw-line);
  font-family: var(--gnw-f-mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.02em; color: var(--gnw-dim);
}
.gnw-panel__search { padding: 10px 16px 6px; }
.gnw-panel__more {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  margin: 12px 16px 4px; border-radius: 10px; border: 1px solid var(--gnw-line-2);
  color: var(--gnw-text) !important; text-decoration: none !important; font-size: 14px; font-weight: 600;
}
.gnw-panel__more:hover { border-color: var(--gnw-accent-line); background: var(--gnw-accent-bg); color: #fff !important; }
.gnw-panel__social { display: flex; gap: 6px; margin: 14px 0 0; padding: 14px 16px 0; list-style: none; border-top: 1px solid var(--gnw-line); }
.gnw-panel__social a, .gnw-footer__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 11px; border: 1px solid var(--gnw-line-2); color: var(--gnw-muted) !important;
  transition: color .2s, border-color .2s, background-color .2s;
}
.gnw-panel__social a:hover, .gnw-footer__social a:hover { color: var(--gnw-cyan) !important; border-color: var(--gnw-accent-line); background: var(--gnw-accent-bg); }
body.gnw-panel-open { overflow: hidden; }

/* Mobile navigation list */
.gnw-mnav, .gnw-mnav__sub { margin: 0; padding: 0; list-style: none; }
.gnw-mnav { padding: 6px 8px; }
.gnw-mnav__item { list-style: none; }
.gnw-mnav__row { position: relative; display: flex; align-items: stretch; border-radius: 10px; transition: background-color .18s; }
.gnw-mnav__row:hover { background: rgba(255, 255, 255, 0.035); }
.gnw-mnav__link {
  flex: 1 1 auto; display: flex; align-items: center; gap: 14px; min-height: 50px; min-width: 0;
  padding: 0 12px;
  color: var(--gnw-text) !important; text-decoration: none !important;
  font-size: 16px; font-weight: 500; letter-spacing: 0.005em;
}
.gnw-mnav__link .gnw-i { color: var(--gnw-dim); transition: color .18s; }
.gnw-mnav__row:hover .gnw-mnav__link { color: #fff !important; }
.gnw-mnav__row:hover .gnw-mnav__link .gnw-i { color: var(--gnw-cyan-soft); }
.gnw-mnav__item.is-current > .gnw-mnav__row { background: var(--gnw-accent-bg); }
.gnw-mnav__item.is-current > .gnw-mnav__row::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gnw-cyan);
}
.gnw-mnav__item.is-current > .gnw-mnav__row .gnw-mnav__link, .gnw-mnav__item.is-current > .gnw-mnav__row .gnw-i { color: var(--gnw-cyan) !important; }
.gnw-mnav__toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; min-height: 50px; border: 0; border-radius: 10px;
  background: transparent; color: var(--gnw-muted); cursor: pointer;
}
.gnw-mnav__toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.gnw-mnav__toggle .gnw-i { transition: transform .25s var(--gnw-ease); }
.gnw-mnav__item.is-open > .gnw-mnav__row .gnw-mnav__toggle { color: var(--gnw-cyan); }
.gnw-mnav__item.is-open > .gnw-mnav__row .gnw-mnav__toggle .gnw-i { transform: rotate(180deg); }
.gnw-mnav__sub { display: none; position: relative; margin: 2px 0 6px 22px; padding-left: 10px; }
.gnw-mnav__sub::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--gnw-line-2); }
.gnw-mnav__item.is-open > .gnw-mnav__sub { display: block; animation: gnw-drop .22s var(--gnw-ease); }
.gnw-mnav__sub .gnw-mnav__link { min-height: 46px; font-size: 15px; color: #b9c9d6 !important; gap: 12px; }
.gnw-mnav__sub .gnw-i { width: 18px; height: 18px; }
@keyframes gnw-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Latest-news list (left panel + article rail) */
.gnw-latest { margin: 0; padding: 4px 8px; list-style: none; counter-reset: none; }
.gnw-latest__item { list-style: none; margin: 0; }
.gnw-latest__link {
  position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 12px 10px; border-radius: 10px;
  text-decoration: none !important; color: inherit !important;
  transition: background-color .18s;
}
.gnw-latest__link:hover { background: rgba(255, 255, 255, 0.035); }
.gnw-latest__item + .gnw-latest__item .gnw-latest__link { border-top: 1px solid var(--gnw-line); border-radius: 0 0 10px 10px; }
.gnw-latest__item + .gnw-latest__item .gnw-latest__link:hover { border-radius: 10px; }
.gnw-latest__thumb { width: 58px; height: 58px; border-radius: 9px; overflow: hidden; background: var(--gnw-surface-2); border: 1px solid var(--gnw-line); }
.gnw-latest .gnw-latest__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gnw-latest__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gnw-latest__title {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14.5px; font-weight: 600; line-height: 1.38; color: #e2ecf4;
  transition: color .18s;
}
.gnw-latest__link:hover .gnw-latest__title { color: #fff; }
.gnw-latest__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--gnw-f-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--gnw-dim); }
.gnw-latest__cat { color: var(--gnw-teal); text-transform: uppercase; letter-spacing: 0.08em; }
.gnw-latest__item.is-current .gnw-latest__link { background: var(--gnw-accent-bg); }
.gnw-latest__item.is-current .gnw-latest__link::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gnw-cyan); }
.gnw-latest__item.is-current .gnw-latest__title { color: var(--gnw-cyan); }

/* ════════════════════════════════════════════════════════════════
   5. Search form
   ════════════════════════════════════════════════════════════════ */
.gnw-searchform { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; }
.gnw-searchform__icon { position: absolute; left: 14px; color: var(--gnw-dim); pointer-events: none; }
.gnw-searchform__input {
  flex: 1 1 auto; min-width: 0; height: 46px; margin: 0;
  padding: 0 14px 0 42px;
  border-radius: 11px; border: 1px solid var(--gnw-line-2);
  background: rgba(4, 8, 14, 0.7); color: var(--gnw-text-strong);
  font: 400 15px/1 var(--gnw-f-ui);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.gnw-searchform__input::placeholder { color: var(--gnw-dim); }
.gnw-searchform__input:focus { outline: none; border-color: rgba(0, 225, 255, 0.55); box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.12); }
.gnw-searchform__btn {
  flex: 0 0 auto; height: 46px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--gnw-accent-line); background: var(--gnw-accent-bg); color: var(--gnw-cyan);
  font: 600 14px/1 var(--gnw-f-ui); cursor: pointer; transition: background-color .2s;
}
.gnw-searchform__btn:hover { background: rgba(0, 225, 255, 0.16); color: #fff; }
.gnw-panel .gnw-searchform__btn { display: none; }

/* ════════════════════════════════════════════════════════════════
   6. Home hero (WebGL is decorative; the gradient is the fallback)
   ════════════════════════════════════════════════════════════════ */
.gnw-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(44px, 8vw, 92px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(80% 60% at 50% 115%, rgba(0, 180, 220, 0.16), transparent 70%),
    radial-gradient(60% 50% at 15% 0%, rgba(47, 214, 195, 0.07), transparent 70%),
    linear-gradient(180deg, #070b12 0%, #08111b 100%);
  border-bottom: 1px solid var(--gnw-line);
}
.gnw-hero__gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.gnw-hero__gl.is-live { opacity: 1; }
.gnw-hero::after { /* faint phosphor scanlines */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
}
.gnw-hero__inner { max-width: var(--gnw-max); margin: 0 auto; padding: 0 var(--gnw-gutter); }
.gnw-hero__title {
  margin: 0 0 14px;
  font-family: var(--gnw-f-ui); font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
  color: var(--gnw-text-strong);
}
.gnw-hero__title span { color: var(--gnw-cyan); text-shadow: 0 0 28px rgba(0, 225, 255, 0.35); }
.gnw-hero__lede { max-width: 52ch; margin: 0 0 22px; font-size: clamp(1rem, 2.2vw, 1.18rem); line-height: 1.6; color: var(--gnw-muted); }
.gnw-hero__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ════════════════════════════════════════════════════════════════
   7. Listings: feature, grid, cards, page heads, pagination
   ════════════════════════════════════════════════════════════════ */
.gnw-listing { padding-top: 32px; padding-bottom: 64px; }
.gnw-feature { position: relative; z-index: 2; margin: -56px 0 44px; }
.gnw-sectionhead { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.gnw-sectionhead::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--gnw-line); }
.gnw-sectionhead__title {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--gnw-f-mono) !important; font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase; color: var(--gnw-cyan-soft) !important;
  line-height: 1.4 !important; border: 0 !important; padding: 0 !important;
}
.gnw-sectionhead__title::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--gnw-cyan); box-shadow: 0 0 8px rgba(0, 225, 255, 0.7); }

.gnw-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 680px) { .gnw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1100px) { .gnw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }

.gnw-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--gnw-surface);
  border: 1px solid var(--gnw-line);
  border-radius: var(--gnw-radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--gnw-ease), box-shadow .25s;
}
.gnw-card:hover { border-color: rgba(0, 225, 255, 0.26); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.gnw-card__media { display: block; aspect-ratio: 2 / 1; background: var(--gnw-surface-2); overflow: hidden; }
.gnw-card .gnw-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--gnw-ease); }
.gnw-card:hover .gnw-card__media img { transform: scale(1.025); }
.gnw-card--feature .gnw-card__media { position: relative; }
.gnw-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gnw-dim); }
.gnw-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; padding: 18px 20px 20px; }
.gnw-card__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gnw-card__time { font-family: var(--gnw-f-mono); font-size: 11.5px; color: var(--gnw-dim); letter-spacing: 0.03em; }
.gnw-card__title { margin: 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--gnw-f-ui) !important; font-size: 1.16rem !important; font-weight: 700 !important; line-height: 1.32 !important; letter-spacing: -0.01em; }
.gnw-card__title a { color: var(--gnw-text-strong) !important; text-decoration: none !important; }
.gnw-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.gnw-card__title a:hover { color: var(--gnw-cyan) !important; }
.gnw-card .gnw-chip { position: relative; z-index: 2; }
.gnw-card__excerpt {
  margin: 0; color: #97abbd; font-size: 15px; line-height: 1.6; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gnw-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; font-family: var(--gnw-f-mono); font-size: 12px; color: var(--gnw-dim); }

.gnw-card--feature { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); border-color: var(--gnw-line-2); }
.gnw-card--feature .gnw-card__media { aspect-ratio: 16 / 9; }
.gnw-card--feature .gnw-card__title { font-size: clamp(1.45rem, 3.2vw, 2.1rem) !important; line-height: 1.18 !important; letter-spacing: -0.02em; }
.gnw-card--feature .gnw-card__excerpt { -webkit-line-clamp: 4; font-size: 16px; }
.gnw-card--feature .gnw-card__body { padding: 22px 22px 24px; gap: 12px; }
@media (min-width: 900px) {
  .gnw-card--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .gnw-card--feature .gnw-card__media { aspect-ratio: auto; min-height: 340px; height: 100%; }
  .gnw-card--feature .gnw-card__body { padding: 34px 36px; justify-content: center; }
}
.gnw-card--feature:hover { transform: none; }

.gnw-pagehead { padding: clamp(32px, 6vw, 56px) 0 clamp(20px, 4vw, 32px); border-bottom: 1px solid var(--gnw-line); background: linear-gradient(180deg, #08101a 0%, var(--gnw-bg) 100%); }
.gnw-pagehead__title { margin: 0; font-family: var(--gnw-f-ui) !important; font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important; font-weight: 800 !important; line-height: 1.12 !important; letter-spacing: -0.025em; color: var(--gnw-text-strong) !important; border: 0 !important; padding: 0 !important; text-shadow: none !important; }
.gnw-pagehead__desc { max-width: 68ch; margin-top: 12px; color: var(--gnw-muted); }
.gnw-pagehead__desc p { margin: 0; }
.gnw-pagehead__count { margin: 12px 0 0; font-family: var(--gnw-f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--gnw-dim); }
.gnw-pagehead__search { max-width: 620px; margin-top: 20px; }
.gnw-pagehead--page { padding-bottom: clamp(18px, 3vw, 28px); }

.gnw-pager { margin: 44px 0 0; }
.gnw-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gnw-pager a, .gnw-pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--gnw-line-2);
  font-family: var(--gnw-f-mono); font-size: 14px; color: var(--gnw-muted) !important; text-decoration: none !important;
  transition: border-color .2s, color .2s, background-color .2s;
}
.gnw-pager a:hover { border-color: var(--gnw-accent-line); color: #fff !important; background: var(--gnw-accent-bg); }
.gnw-pager .current { background: var(--gnw-cyan); border-color: var(--gnw-cyan); color: #00131a !important; font-weight: 700; }
.gnw-pager .dots { border-color: transparent; }

.gnw-empty { max-width: 620px; margin: 24px auto; padding: 32px; text-align: center; border: 1px dashed var(--gnw-line-2); border-radius: var(--gnw-radius); color: var(--gnw-muted); }
.gnw-empty__title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; color: var(--gnw-text-strong); }

/* ════════════════════════════════════════════════════════════════
   8. Single article — readability first
   ════════════════════════════════════════════════════════════════ */
.gnw-single__layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  max-width: calc(660px + 2 * var(--gnw-gutter)); margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) var(--gnw-gutter) 56px;
}
@media (min-width: 1200px) {
  .gnw-single__layout { grid-template-columns: minmax(0, 660px) 290px; gap: 88px; max-width: calc(660px + 290px + 88px + 2 * var(--gnw-gutter)); }
}
.gnw-rail { display: none; }
@media (min-width: 1200px) {
  .gnw-rail { display: block; }
  .gnw-rail__inner { position: sticky; top: calc(var(--gnw-header-h) + 28px); padding-top: 6px; }
  .gnw-rail__title { margin: 0 0 6px; padding: 0 10px 12px !important; border-bottom: 1px solid var(--gnw-line) !important; font-family: var(--gnw-f-mono) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.18em !important; text-transform: uppercase; color: var(--gnw-dim) !important; line-height: 1.4 !important; }
  .gnw-rail .gnw-latest { padding: 0; }
  .gnw-rail .gnw-latest__title { font-size: 13.5px; color: #c7d5e1; }
  .gnw-rail .gnw-latest__link { grid-template-columns: 48px minmax(0, 1fr); }
  .gnw-rail .gnw-latest__thumb { width: 48px; height: 48px; }
}
.gnw-article { min-width: 0; }
.gnw-article__head { margin: 0 0 26px; }
.gnw-article__head--compact { margin-bottom: 18px; }
.gnw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-family: var(--gnw-f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gnw-dim); }
.gnw-crumbs a { color: var(--gnw-cyan-soft) !important; text-decoration: none !important; }
.gnw-crumbs a:hover { color: #fff !important; }
.gnw-article__title {
  margin: 0 0 18px !important; padding: 0 !important; border: 0 !important;
  font-family: var(--gnw-f-ui) !important; font-size: clamp(1.9rem, 5vw, 2.85rem) !important; font-weight: 800 !important;
  line-height: 1.12 !important; letter-spacing: -0.025em; color: var(--gnw-text-strong) !important; text-shadow: none !important; text-align: left !important;
}
.gnw-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-family: var(--gnw-f-mono); font-size: 12.5px; color: var(--gnw-muted); }
.gnw-article__meta > * { display: inline-flex; align-items: center; gap: 8px; }
.gnw-article__meta a { color: var(--gnw-text) !important; text-decoration: none !important; }
.gnw-avatar { border-radius: 50%; border: 1px solid var(--gnw-line-2); }

.gnw-featured { margin: 0 0 34px; }
.gnw-featured .gnw-featured__img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--gnw-line); background: var(--gnw-surface); }
.gnw-featured__cap { margin-top: 10px; font-family: var(--gnw-f-mono); font-size: 12px; color: var(--gnw-dim); text-align: left; }

/* Reading typography (applies to all post bodies; designed gn-article posts layer on top) */
.gnw-article__content, .gnw-page__content { font-family: var(--gnw-f-read); font-size: 19.5px; line-height: 1.72; color: #dbe5ee; overflow-wrap: break-word; }
@media (max-width: 600px) { .gnw-article__content, .gnw-page__content { font-size: 17.5px; line-height: 1.72; } }
.gnw-article__content > :first-child { margin-top: 0; }
.gnw-article__content p, .gnw-page__content p { margin: 0 0 1.25em; text-align: left; }
.gnw-article__content :is(h1, h2, h3, h4, h5, h6), .gnw-page__content :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--gnw-f-ui); color: var(--gnw-text-strong); line-height: 1.25; letter-spacing: -0.015em; margin: 2em 0 0.6em; text-wrap: balance;
}
.gnw-article__content h1 { font-size: 2rem; }
.gnw-article__content h2, .gnw-page__content h2 { font-size: 1.6rem; font-weight: 750; }
.gnw-article__content h3, .gnw-page__content h3 { font-size: 1.28rem; font-weight: 700; }
.gnw-article__content h4, .gnw-page__content h4 { font-size: 1.08rem; font-weight: 700; }
.gnw-article__content a, .gnw-page__content a { color: var(--gnw-cyan); text-decoration: underline; text-decoration-color: rgba(0, 225, 255, 0.35); text-decoration-thickness: 1px; }
.gnw-article__content a:hover, .gnw-page__content a:hover { text-decoration-color: var(--gnw-cyan); }
.gnw-article__content :is(ul, ol), .gnw-page__content :is(ul, ol) { margin: 0 0 1.3em; padding-left: 1.4em; }
.gnw-article__content li, .gnw-page__content li { margin: 0 0 0.45em; }
.gnw-article__content li::marker { color: var(--gnw-cyan-soft); }
.gnw-article__content strong { color: #fff; }
.gnw-article__content blockquote {
  margin: 1.8em 0; padding: 0.6em 0 0.6em 1.2em; border-left: 3px solid var(--gnw-cyan);
  color: #c3d2de; font-style: italic; background: none;
}
.gnw-article__content hr { border: 0; height: 1px; margin: 2.4em 0; background: var(--gnw-line-2); }
.gnw-article__content img { border-radius: 8px; }
.gnw-article__content figure { margin: 1.8em 0; max-width: 100%; }
.gnw-article__content figcaption, .gnw-article__content .wp-caption-text { margin-top: 8px; font-family: var(--gnw-f-mono); font-size: 12.5px; line-height: 1.5; color: var(--gnw-dim); text-align: left; }
.gnw-article__content .wp-caption { max-width: 100% !important; }
.gnw-article__content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-family: var(--gnw-f-ui); font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.gnw-article__content th, .gnw-article__content td { padding: 10px 12px; border-bottom: 1px solid var(--gnw-line-2); text-align: left; vertical-align: top; }
.gnw-article__content th { color: var(--gnw-text-strong); font-weight: 650; background: rgba(255, 255, 255, 0.025); }
.gnw-article__content :not(pre) > code { font-family: var(--gnw-f-mono); font-size: 0.86em; }
.gnw-article__content pre { font-size: 14px; line-height: 1.6; max-width: 100%; overflow-x: auto; }
.gnw-article__content iframe, .gnw-article__content video, .gnw-article__content embed { max-width: 100%; }
.gnw-article__content .wp-block-embed__wrapper iframe, .gnw-article__content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

.gnw-article__foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--gnw-line); display: grid; gap: 24px; }
.gnw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gnw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gnw-share__label { margin-right: 6px; font-family: var(--gnw-f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gnw-dim); }
.gnw-share a, .gnw-share__copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--gnw-line-2); background: transparent;
  color: var(--gnw-muted) !important; font: 600 13px/1 var(--gnw-f-ui); text-decoration: none !important; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.gnw-share a:hover, .gnw-share__copy:hover { color: var(--gnw-cyan) !important; border-color: var(--gnw-accent-line); background: var(--gnw-accent-bg); }
.gnw-prevnext { display: grid; gap: 12px; }
@media (min-width: 680px) { .gnw-prevnext { grid-template-columns: 1fr 1fr; } }
.gnw-prevnext__link { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--gnw-line); background: var(--gnw-surface); text-decoration: none !important; transition: border-color .2s; }
.gnw-prevnext__link:hover { border-color: var(--gnw-accent-line); }
.gnw-prevnext__link--next { text-align: right; align-items: flex-end; }
@media (min-width: 680px) { .gnw-prevnext__link--next { grid-column: 2; } }
.gnw-prevnext__dir { display: inline-flex; align-items: center; gap: 6px; font-family: var(--gnw-f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gnw-dim); }
.gnw-prevnext__title { font-family: var(--gnw-f-ui); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--gnw-text-strong); }

.gnw-related { padding: 8px 0 64px; }

/* Comments */
.gnw-comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--gnw-line); font-family: var(--gnw-f-ui); }
.gnw-comments__title { margin: 0 0 18px !important; font-family: var(--gnw-f-ui) !important; font-size: 1.25rem !important; font-weight: 700 !important; color: var(--gnw-text-strong) !important; border: 0 !important; padding: 0 !important; }
.gnw-comments__list, .gnw-comments__list .children { margin: 0; padding: 0; list-style: none; }
.gnw-comments__list .children { margin-left: 22px; padding-left: 16px; border-left: 1px solid var(--gnw-line-2); }
.gnw-comments__list .comment-body { margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--gnw-line); background: var(--gnw-surface); }
.gnw-comments__list .comment-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--gnw-dim); }
.gnw-comments__list .comment-author { display: flex; align-items: center; gap: 10px; }
.gnw-comments__list .comment-author img { border-radius: 50%; }
.gnw-comments__list .says { display: none; }
.gnw-comments__list .comment-metadata a { color: var(--gnw-dim) !important; text-decoration: none; font-family: var(--gnw-f-mono); font-size: 12px; }
.gnw-comments__list .reply a { font-size: 13px; font-weight: 600; }
.gnw-comments .comment-form { display: grid; gap: 14px; }
.gnw-comments .comment-form p { margin: 0; }
.gnw-comments label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--gnw-muted); }
.gnw-comments input[type="text"], .gnw-comments input[type="email"], .gnw-comments input[type="url"], .gnw-comments textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--gnw-line-2);
  background: rgba(4, 8, 14, 0.7); color: var(--gnw-text-strong); font: 15px/1.5 var(--gnw-f-ui);
}
.gnw-comments input:focus, .gnw-comments textarea:focus { outline: none; border-color: rgba(0, 225, 255, 0.55); box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.12); }
.gnw-comments .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.gnw-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.gnw-comments .form-submit input { min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--gnw-cyan); color: #00131a; font: 700 14px/1 var(--gnw-f-ui); cursor: pointer; }

/* ════════════════════════════════════════════════════════════════
   9. Pages (plugin pages get a wide canvas)
   ════════════════════════════════════════════════════════════════ */
.gnw-page .gnw-wrap { max-width: calc(820px + 2 * var(--gnw-gutter)); }
.gnw-page .gnw-page__content { padding: 28px 0 64px; }
.gnw-wide .gnw-page .gnw-wrap { max-width: calc(1240px + 2 * var(--gnw-gutter)); }
.gnw-wide .gnw-page__content { font-family: var(--gnw-f-ui); font-size: 16px; line-height: 1.6; }
.gnw-wide .gnw-page__content p { margin-bottom: 1em; }
.gnw-wide .gnw-page__content a { text-decoration: none; }

/* ════════════════════════════════════════════════════════════════
   10. 404
   ════════════════════════════════════════════════════════════════ */
.gnw-404 { padding: clamp(32px, 7vw, 80px) 0 72px; }
.gnw-404__panel { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.gnw-404__code { margin: 0; font-family: var(--gnw-f-mono); font-size: clamp(4rem, 16vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px rgba(0, 225, 255, 0.55); text-shadow: 0 0 40px rgba(0, 225, 255, 0.18); }
.gnw-404__title { margin: 18px 0 10px !important; font-family: var(--gnw-f-ui) !important; font-size: clamp(1.5rem, 4vw, 2rem) !important; font-weight: 750 !important; color: var(--gnw-text-strong) !important; border: 0 !important; padding: 0 !important; }
.gnw-404__text { margin: 0 auto 22px; max-width: 48ch; color: var(--gnw-muted); }
.gnw-404 .gnw-searchform { max-width: 520px; margin: 0 auto 18px; }

/* ════════════════════════════════════════════════════════════════
   11. Footer
   ════════════════════════════════════════════════════════════════ */
.gnw-footer {
  position: relative; margin-top: 24px;
  background: radial-gradient(900px 260px at 50% 0, rgba(0, 225, 255, 0.05), transparent 70%), linear-gradient(180deg, #0a121d 0%, var(--gnw-bg) 100%);
  border-top: 1px solid var(--gnw-line-2);
  color: var(--gnw-muted); font-family: var(--gnw-f-ui);
}
.gnw-footer__inner { max-width: var(--gnw-max); margin: 0 auto; padding: 56px var(--gnw-gutter) 44px; }
.gnw-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.gnw-footer__grid > * { grid-column: span 6; min-width: 0; }
.gnw-footer__grid .gnw-fw { order: 9; }
.gnw-footer__brand { order: 1; grid-column: span 7; display: flex; flex-direction: column; justify-content: center; padding: 4px 0 8px; }
.gnw-footer__grid .widget_search { order: 2; grid-column: span 5; }
.gnw-footer__grid .widget_recent_entries { order: 3; grid-column: span 7; grid-row: span 2; }
.gnw-footer__grid .widget_recent_comments { order: 4; grid-column: span 5; }
.gnw-footer__grid .widget_meta { order: 5; grid-column: span 5; }
.gnw-footer__grid .widget_categories { order: 6; grid-column: 1 / -1; }
.gnw-footer__grid .widget_archive { order: 7; grid-column: 1 / -1; }
.gnw-footer__name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--gnw-text-strong) !important; text-decoration: none !important; align-self: flex-start; }
.gnw-footer__name b { color: var(--gnw-cyan); }
.gnw-footer__tagline { margin: 8px 0 0; max-width: 60ch; font-size: 0.95rem; line-height: 1.6; }
.gnw-footer__by { margin: 4px 0 0; font-family: var(--gnw-f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--gnw-dim); }
.gnw-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.gnw-fw {
  position: relative; margin: 0; padding: 22px 24px 24px;
  background: linear-gradient(180deg, rgba(17, 27, 40, 0.72) 0%, rgba(13, 21, 32, 0.72) 100%);
  border: 1px solid var(--gnw-line); border-radius: 12px;
}
.gnw-fw::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.4), transparent); }
.gnw-fw__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px !important; padding: 0 0 12px !important;
  border: 0 !important; border-bottom: 1px solid var(--gnw-line) !important;
  font-family: var(--gnw-f-mono) !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.4 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase; color: var(--gnw-cyan-soft) !important; text-shadow: none !important;
}
.gnw-fw__title::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--gnw-cyan); box-shadow: 0 0 8px rgba(0, 225, 255, 0.8); }
.gnw-fw ul { margin: 0; padding: 0; list-style: none; }
.gnw-fw li { margin: 0; list-style: none; }
.gnw-fw a { color: #b3c8d8 !important; text-decoration: none !important; transition: color .2s, border-color .2s, background-color .2s; }
.gnw-fw a:hover { color: #fff !important; }
.gnw-fw.widget_search { padding: 0; background: none; border: 0; display: flex; flex-direction: column; justify-content: center; }
.gnw-fw.widget_search::before { content: none; }
.gnw-fw.widget_recent_entries ul { counter-reset: gnwrp; }
.gnw-fw.widget_recent_entries li { counter-increment: gnwrp; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--gnw-line); }
.gnw-fw.widget_recent_entries li:first-child { padding-top: 2px; }
.gnw-fw.widget_recent_entries li:last-child { border-bottom: 0; padding-bottom: 0; }
.gnw-fw.widget_recent_entries li::before { content: counter(gnwrp, decimal-leading-zero); font-family: var(--gnw-f-mono); font-size: 12px; color: rgba(0, 225, 255, 0.55); }
.gnw-fw.widget_recent_entries li a { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--gnw-text) !important; }
.gnw-fw.widget_recent_entries li a:hover { color: var(--gnw-cyan) !important; }
.gnw-fw.widget_archive ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.gnw-fw.widget_archive li a, .gnw-fw.widget_categories li a {
  display: block; padding: 7px 12px; font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(0, 225, 255, 0.03); border: 1px solid var(--gnw-line); border-radius: 8px; color: #a9c0d1 !important;
}
.gnw-fw.widget_archive li a:hover, .gnw-fw.widget_categories li a:hover { color: #fff !important; background: rgba(0, 225, 255, 0.08); border-color: var(--gnw-accent-line); }
.gnw-fw.widget_categories ul { display: flex; flex-wrap: wrap; gap: 8px; }
.gnw-fw.widget_categories li a { border-radius: 999px; padding: 6px 14px; }
.gnw-fw.widget_categories .children { display: none; }
.gnw-fw.widget_recent_comments li { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--gnw-line); font-size: 14.5px; line-height: 1.55; }
.gnw-fw.widget_recent_comments li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.gnw-fw.widget_recent_comments .comment-author-link, .gnw-fw.widget_recent_comments .comment-author-link a { color: var(--gnw-cyan) !important; font-weight: 600; }
.gnw-fw.widget_recent_comments li > a { color: var(--gnw-text) !important; }
.gnw-fw.widget_meta ul { display: flex; flex-wrap: wrap; gap: 8px; }
.gnw-fw.widget_meta li a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; font-family: var(--gnw-f-mono); font-size: 12px; border: 1px solid var(--gnw-line-2); border-radius: 8px; background: rgba(4, 8, 14, 0.4); }
.gnw-fw.widget_meta li a:hover { border-color: var(--gnw-accent-line); color: var(--gnw-cyan) !important; }
.gnw-footer__bar { border-top: 1px solid var(--gnw-line); background: rgba(0, 0, 0, 0.28); }
.gnw-footer__bar-inner { max-width: var(--gnw-max); margin: 0 auto; padding: 18px var(--gnw-gutter) 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.gnw-footer__copy { margin: 0; font-family: var(--gnw-f-mono); font-size: 12px; letter-spacing: 0.04em; color: #7890a4; }
.gnw-footer__nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.gnw-footer__nav a { font-family: var(--gnw-f-mono); font-size: 12px; color: var(--gnw-muted) !important; text-decoration: none !important; }
.gnw-footer__nav a:hover { color: var(--gnw-cyan) !important; }
@media (max-width: 899px) {
  .gnw-footer__inner { padding-top: 44px; padding-bottom: 36px; }
  .gnw-footer__brand, .gnw-footer__grid .widget_search, .gnw-footer__grid .widget_recent_entries { grid-column: 1 / -1; grid-row: auto; }
  .gnw-footer__grid .widget_recent_comments, .gnw-footer__grid .widget_meta { grid-column: span 6; }
}
@media (max-width: 599px) {
  .gnw-footer__grid { gap: 14px; }
  .gnw-footer__grid > *, .gnw-footer__grid .widget_recent_comments, .gnw-footer__grid .widget_meta { grid-column: 1 / -1; }
  .gnw-fw { padding: 18px 16px 20px; }
  .gnw-fw.widget_archive ul { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .gnw-footer__bar-inner { justify-content: center; text-align: center; }
}

/* ════════════════════════════════════════════════════════════════
   12. Mobile listing density
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 679px) {
  .gnw-listing { padding-top: 22px; padding-bottom: 48px; }
  .gnw-feature { margin: -40px 0 32px; }
  .gnw-card__body { padding: 16px 16px 18px; }
  .gnw-card--feature .gnw-card__body { padding: 18px 16px 20px; }
  .gnw-card__title { font-size: 1.1rem !important; }
  .gnw-hero__topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gnw-gutter)); padding: 2px var(--gnw-gutter) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .gnw-hero__topics::-webkit-scrollbar { display: none; }
  .gnw-hero__topics li { flex: 0 0 auto; }
}

/* ════════════════════════════════════════════════════════════════
   13. Motion preferences
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .gnw-caret { animation: none; }
  .gnw-card:hover { transform: none; }
  .gnw-card:hover .gnw-card__media img { transform: none; }
}


/* Guard: some articles ship global inline CSS (a, h1-h4, p, *). Keep it out of the theme chrome. */
body.gnw :is(.gnw-header, .gnw-panel, .gnw-footer, .gnw-crumbs, .gnw-article__meta, .gnw-card, .gnw-latest, .gnw-share, .gnw-prevnext, .gnw-pager, .gnw-tags, .gnw-hero, .gnw-pagehead, .gnw-rail) a,
body.gnw a.gnw-chip, body.gnw a.gnw-btn {
  border-bottom: 0 !important;
  background-image: none;
}

/* Plugin pages: centre ProfileGrid blocks, give wpForo a little breathing room on phones */
.gnw-wide .pmagic > * { margin-left: auto; margin-right: auto; }
.gnw-wide .gnw-page__content { padding-top: 20px; }
@media (max-width: 700px) {
  .gnw-wide #wpforo-wrap { padding-left: 10px; padding-right: 10px; border-radius: 10px; }
  .gnw-wide .pmagic { overflow-x: hidden; }
}

/* ════════════════════════════════════════════════════════════════
   14. Round 3 (2026-10-26): longer byline, card hover, sparks, image zoom
   ════════════════════════════════════════════════════════════════ */
/* "Managed by the Wizards and Wizardly Community" — keep the header tidy where space is tight */
@media (max-width: 640px), (min-width: 1200px) and (max-width: 1319px) { .gnw-brand__sub { display: none; } }
@media (max-width: 520px) {
  .gnw-hero .gnw-kicker { font-size: 11px; letter-spacing: 0.1em; line-height: 1.5; align-items: flex-start; }
  .gnw-hero .gnw-kicker__dot { margin-top: 5px; flex: 0 0 auto; }
}

/* Card hover: HUD corner brackets draw in, a light sweep + scanlines cross the image,
   a faint chromatic split on the title, and a soft cyan rim. */
.gnw-card { --gnw-bracket: rgba(0, 225, 255, 0.9); }
.gnw-card::before, .gnw-card::after {
  content: ""; position: absolute; inset: 8px; z-index: 3; pointer-events: none;
  background-repeat: no-repeat;
  transition: background-size .38s var(--gnw-ease), opacity .3s;
  opacity: 0;
}
.gnw-card::before {
  background-image: linear-gradient(var(--gnw-bracket), var(--gnw-bracket)), linear-gradient(var(--gnw-bracket), var(--gnw-bracket)),
                    linear-gradient(var(--gnw-bracket), var(--gnw-bracket)), linear-gradient(var(--gnw-bracket), var(--gnw-bracket));
  background-position: left top, left top, right bottom, right bottom;
  background-size: 0 1.5px, 1.5px 0, 0 1.5px, 1.5px 0;
}
.gnw-card::after {
  background-image: linear-gradient(var(--gnw-bracket), var(--gnw-bracket)), linear-gradient(var(--gnw-bracket), var(--gnw-bracket)),
                    linear-gradient(var(--gnw-bracket), var(--gnw-bracket)), linear-gradient(var(--gnw-bracket), var(--gnw-bracket));
  background-position: right top, right top, left bottom, left bottom;
  background-size: 0 1.5px, 1.5px 0, 0 1.5px, 1.5px 0;
}
.gnw-card__media { position: relative; }
.gnw-card__media::before { /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  transition: opacity .35s;
}
.gnw-card__media::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(170, 240, 255, 0.16) 48%, rgba(255, 255, 255, 0.22) 50%, rgba(170, 240, 255, 0.16) 52%, transparent 62%);
  transform: translateX(-110%); opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .gnw-card:hover, .gnw-card:focus-within {
    border-color: rgba(0, 225, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(0, 225, 255, 0.10), 0 0 28px rgba(0, 225, 255, 0.10), 0 18px 40px rgba(0, 0, 0, 0.38);
  }
  .gnw-card:hover::before, .gnw-card:hover::after, .gnw-card:focus-within::before, .gnw-card:focus-within::after {
    opacity: 1; background-size: 22px 1.5px, 1.5px 22px, 22px 1.5px, 1.5px 22px;
  }
  .gnw-card:hover .gnw-card__media::before { opacity: 1; }
  .gnw-card:hover .gnw-card__media::after { opacity: 1; transform: translateX(110%); transition: transform .9s var(--gnw-ease), opacity .2s; }
  .gnw-card:hover .gnw-card__title a { text-shadow: -0.6px 0 rgba(255, 60, 140, 0.45), 0.6px 0 rgba(0, 225, 255, 0.55); }
  .gnw-card:hover .gnw-card__title a { animation: gnw-glitch .42s steps(2, end) 1; }
}
@keyframes gnw-glitch {
  0% { text-shadow: -2px 0 rgba(255, 60, 140, 0.6), 2px 0 rgba(0, 225, 255, 0.7); }
  50% { text-shadow: 1.5px 0 rgba(255, 60, 140, 0.5), -1.5px 0 rgba(0, 225, 255, 0.6); }
  100% { text-shadow: -0.6px 0 rgba(255, 60, 140, 0.45), 0.6px 0 rgba(0, 225, 255, 0.55); }
}
/* Touch devices: a quiet pressed state instead of hover choreography */
@media (hover: none) {
  .gnw-card:hover { transform: none; box-shadow: none; }
  .gnw-card:hover .gnw-card__media img { transform: none; }
  .gnw-card:active { border-color: rgba(0, 225, 255, 0.35); }
}

/* Sparks around the featured title (canvas; decorative) */
.gnw-card--feature .gnw-card__body { position: relative; isolation: isolate; }
.gnw-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ─── Image zoom: holographic magnifier (desktop) — round 4 ─── */
img.zoooom { cursor: zoom-in; }
@property --gnw-rim { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.gnw-zoom {
  --px: 0px; --py: 0px; --sx: 50%; --sy: 50%;
  position: fixed; left: 50%; top: calc(50% + var(--gnw-header-h) / 2); z-index: 120;
  pointer-events: none; visibility: hidden;
  transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py)));
  transition: transform .6s var(--gnw-ease);
}
.gnw-zoom.is-on { visibility: visible; }
.gnw-zoom:not(.is-on), .gnw-zoom:not(.is-on) * { animation-play-state: paused !important; }
.gnw-zoom__aura {
  position: absolute; inset: -1px; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 225, 255, 0.28), 0 0 42px rgba(0, 225, 255, 0.22), 0 0 110px rgba(0, 170, 255, 0.10);
  animation: gnw-breathe 3.6s ease-in-out infinite;
}
@keyframes gnw-breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.gnw-zoom__frame {
  position: absolute; inset: 0; overflow: hidden; border-radius: 18px;
  background: rgba(4, 9, 15, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 40px 90px rgba(0, 0, 0, 0.55);
}
.gnw-zoom__view { /* hologram translucency: centre opaque, edges ~0.88 */
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(135% 125% at 50% 50%, #000 60%, rgba(0, 0, 0, 0.88) 100%);
          mask-image: radial-gradient(135% 125% at 50% 50%, #000 60%, rgba(0, 0, 0, 0.88) 100%);
}
body.gnw .gnw-zoom .gnw-zoom__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; border-radius: 0; }
.gnw-zoom__lines {
  position: absolute; left: 0; right: 0; top: -6px; height: calc(100% + 12px); pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 8, 14, 0.22) 0 1px, rgba(140, 230, 255, 0.06) 1px 2px, transparent 2px 3px);
  animation: gnw-lines 1.4s linear infinite;
}
@keyframes gnw-lines { from { transform: translateY(0); } to { transform: translateY(6px); } }
.gnw-zoom__spec {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at var(--sx) var(--sy), rgba(255, 255, 255, 0.06), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 15%, transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 34px rgba(0, 225, 255, 0.10);
}
.gnw-zoom__grid, .gnw-zoom__scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.gnw-zoom__grid {
  background-image: linear-gradient(rgba(0, 225, 255, 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 225, 255, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
}
.gnw-zoom__scan { background: linear-gradient(180deg, transparent calc(100% - 3px), rgba(170, 245, 255, 0.95) calc(100% - 1px), transparent 100%); filter: drop-shadow(0 0 8px rgba(0, 225, 255, 0.9)); }
.gnw-zoom__rim {
  position: absolute; inset: 0; border-radius: 18px; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--gnw-rim), rgba(0, 225, 255, 0.14), rgba(0, 225, 255, 0.7) 10%, rgba(255, 255, 255, 0.6) 13%, rgba(0, 225, 255, 0.14) 24%, rgba(130, 90, 255, 0.32) 55%, rgba(0, 225, 255, 0.14) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gnw-rim 8s linear infinite;
}
@keyframes gnw-rim { to { --gnw-rim: 360deg; } }
.gnw-zoom__view.is-glitch { animation: gnw-zglitch .17s steps(3, end) 1; }
@keyframes gnw-zglitch {
  0% { transform: translateX(-3px); filter: drop-shadow(2px 0 rgba(255, 40, 150, 0.6)) drop-shadow(-2px 0 rgba(0, 225, 255, 0.6)); clip-path: inset(18% 0 52% 0); }
  50% { transform: translateX(2px); clip-path: inset(0 0 0 0); }
  100% { transform: none; filter: none; clip-path: inset(0 0 0 0); }
}
/* materialise (open) */
.gnw-zoom.is-rez .gnw-zoom__frame { animation: gnw-rez-in .42s cubic-bezier(.2, .8, .2, 1) both; }
.gnw-zoom.is-rez .gnw-zoom__view { animation: gnw-rez-split .42s ease-out both; }
.gnw-zoom.is-rez .gnw-zoom__grid { animation: gnw-rez-grid .42s ease-out both; }
.gnw-zoom.is-rez .gnw-zoom__scan { animation: gnw-rez-scan .42s cubic-bezier(.4, 0, .2, 1) both; }
.gnw-zoom.is-rez .gnw-zoom__aura { animation: gnw-rez-aura .42s ease-out both; }
@keyframes gnw-rez-in { 0% { clip-path: inset(0 0 100% 0 round 18px); opacity: .55; } 75% { clip-path: inset(0 0 0 0 round 18px); } 100% { clip-path: inset(0 0 0 0 round 18px); opacity: 1; } }
@keyframes gnw-rez-split {
  0% { filter: drop-shadow(-8px 0 rgba(255, 40, 150, 0.75)) drop-shadow(8px 0 rgba(0, 225, 255, 0.75)) brightness(1.35); }
  100% { filter: drop-shadow(0 0 0 rgba(255, 40, 150, 0)) drop-shadow(0 0 0 rgba(0, 225, 255, 0)) brightness(1); }
}
@keyframes gnw-rez-grid { 0% { opacity: .9; } 60% { opacity: .35; } 100% { opacity: 0; } }
@keyframes gnw-rez-scan { 0% { opacity: 1; transform: translateY(-100%); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes gnw-rez-aura { 0% { opacity: 0; } 100% { opacity: 1; } }
/* de-rez (close): collapse to a scan line, channels split, fade */
.gnw-zoom.is-derez .gnw-zoom__frame { animation: gnw-derez .24s cubic-bezier(.6, 0, .8, .2) both; }
.gnw-zoom.is-derez .gnw-zoom__view { animation: gnw-rez-split .24s ease-in reverse both; }
.gnw-zoom.is-derez .gnw-zoom__aura, .gnw-zoom.is-derez .gnw-zoom__rim, .gnw-zoom.is-derez .gnw-zoom__hud { animation: gnw-fade-out .2s ease-in both; }
@keyframes gnw-derez { 0% { clip-path: inset(0 0 0 0 round 18px); opacity: 1; } 70% { clip-path: inset(48% 0 48% 0 round 4px); opacity: .9; } 100% { clip-path: inset(50% 30% 50% 30% round 2px); opacity: 0; } }
@keyframes gnw-fade-out { to { opacity: 0; } }

.gnw-zoom__hud {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(5, 10, 16, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 225, 255, 0.25);
  font-family: var(--gnw-f-mono); font-size: 11.5px; letter-spacing: 0.04em; color: #bfefff;
}
.gnw-zoom__mag { color: var(--gnw-cyan); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.4ch; display: inline-block; }
.gnw-zoom__mag.tick-a { animation: gnw-tick-a .28s ease-out; }
.gnw-zoom__mag.tick-b { animation: gnw-tick-b .28s ease-out; }
@keyframes gnw-tick-a { 0% { color: #fff; text-shadow: 0 0 10px rgba(0, 225, 255, 0.9); } 100% { color: var(--gnw-cyan); text-shadow: none; } }
@keyframes gnw-tick-b { 0% { color: #fff; text-shadow: 0 0 10px rgba(0, 225, 255, 0.9); } 100% { color: var(--gnw-cyan); text-shadow: none; } }
.gnw-zoom__tip { display: none; color: var(--gnw-muted); }
.gnw-zoom.show-tip .gnw-zoom__tip { display: inline; }

.gnw-zoom-reticle {
  position: fixed; left: 0; top: 0; z-index: 116; pointer-events: none;
  border-radius: 6px;
  border: 1px solid rgba(0, 225, 255, 0.85);
  background: rgba(0, 225, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(0, 225, 255, 0.4), inset 0 0 12px rgba(0, 225, 255, 0.2);
  opacity: 0; transition: opacity .18s;
}
.gnw-zoom-reticle.is-on { opacity: 1; }
.gnw-zoom-beam { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 115; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.gnw-zoom-beam.is-on { opacity: 1; }

/* ─── Round 5: living scanlines + pointer see-through (additions only) ─── */
/* fine per-line shimmer (slow, low contrast) and a soft refresh band rolling top→bottom every 6.5 s */
.gnw-zoom__lines::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(180, 240, 255, 0.075) 0 1px, transparent 1px 4px);
  animation: gnw-shimmer 3.2s ease-in-out infinite alternate;
}
@keyframes gnw-shimmer { from { opacity: .35; } to { opacity: 1; } }
.gnw-zoom__lines::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(180deg, transparent 0%, rgba(150, 235, 255, 0.09) 30%, rgba(210, 250, 255, 0.19) 49%, rgba(235, 253, 255, 0.30) 50%, rgba(210, 250, 255, 0.19) 51%, rgba(150, 235, 255, 0.09) 70%, transparent 100%);
  animation: gnw-roll 5s linear infinite;
}
@keyframes gnw-roll { from { transform: translateY(-110%); } to { transform: translateY(400%); } }
.gnw-zoom:not(.is-on) *::before, .gnw-zoom:not(.is-on) *::after { animation-play-state: paused !important; }

/* the whole projection at 75% so the page reads through it */
.gnw-zoom { opacity: .75; }
/* (a) feathered see-through window where the magnifier covers the real pointer: 20% opaque core as seen
   (0.27 here x the panel's 0.75), soft edge */
.gnw-zoom { --hx: -9999px; --hy: -9999px; }
.gnw-zoom__frame {
  -webkit-mask-image: radial-gradient(circle 88px at var(--hx) var(--hy), rgba(0, 0, 0, 0.27) 0, rgba(0, 0, 0, 0.27) 32%, rgba(0, 0, 0, 0.72) 66%, #000 100%);
          mask-image: radial-gradient(circle 88px at var(--hx) var(--hy), rgba(0, 0, 0, 0.27) 0, rgba(0, 0, 0, 0.27) 32%, rgba(0, 0, 0, 0.72) 66%, #000 100%);
}
/* (b) laser from the pointer to the projection (canvas, above the panel) */
.gnw-zoom-laser { position: fixed; left: 0; top: 0; z-index: 121; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.gnw-zoom-laser.is-on { opacity: 1; }
/* targeting cursor on the image being projected */
@media (hover: hover) and (pointer: fine) {
  img.zoooom.gnw-zoom-src {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='7' stroke='%23000' stroke-opacity='.6' stroke-width='3.5'/%3E%3Cpath d='M16 3v6M16 23v6M3 16h6M23 16h6' stroke='%23000' stroke-opacity='.6' stroke-width='3.5'/%3E%3Ccircle cx='16' cy='16' r='7' stroke='%2300e1ff' stroke-width='1.5'/%3E%3Cpath d='M16 3v6M16 23v6M3 16h6M23 16h6' stroke='%23bff6ff' stroke-width='1.5'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2' fill='%23000' fill-opacity='.6'/%3E%3Ccircle cx='16' cy='16' r='1.2' fill='%23fff'/%3E%3C/svg%3E") 16 16, crosshair;
  }
}

/* ─── Image zoom: full-screen viewer (touch, click, keyboard) ─── */
html.gnw-viewer-open { overflow: hidden; }
.gnw-viewer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 11, 0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.gnw-viewer[hidden] { display: none; }
.gnw-viewer.is-open { opacity: 1; }
.gnw-viewer__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-out; }
.gnw-viewer.is-zoomed .gnw-viewer__stage { cursor: grab; }
body.gnw .gnw-viewer .gnw-viewer__img {
  max-width: none; border-radius: 10px; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 1px rgba(0, 225, 255, 0.22), 0 30px 80px rgba(0, 0, 0, 0.6);
  will-change: transform; transform-origin: 50% 50%;
}
.gnw-viewer__img.is-anim { transition: transform .22s var(--gnw-ease); }
.gnw-viewer.is-rez .gnw-viewer__img { animation: gnw-vrez .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes gnw-vrez {
  0% { clip-path: inset(0 0 100% 0); filter: drop-shadow(-8px 0 rgba(255, 40, 150, 0.7)) drop-shadow(8px 0 rgba(0, 225, 255, 0.7)) brightness(1.3); }
  80% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); filter: drop-shadow(0 0 0 rgba(255, 40, 150, 0)) drop-shadow(0 0 0 rgba(0, 225, 255, 0)) brightness(1); }
}
.gnw-viewer__close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 19, 30, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #e6f3fb; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 225, 255, 0.18);
}
.gnw-viewer__close:hover { color: var(--gnw-cyan); border-color: rgba(0, 225, 255, 0.5); }
.gnw-viewer__bar {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 19, 30, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gnw-viewer__bar button { width: 44px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #e6f3fb; font: 600 20px/1 var(--gnw-f-ui); cursor: pointer; }
.gnw-viewer__bar button:hover { background: rgba(0, 225, 255, 0.12); color: var(--gnw-cyan); }
.gnw-viewer__level { min-width: 56px; text-align: center; font-family: var(--gnw-f-mono); font-size: 12px; color: var(--gnw-muted); }

@media (prefers-reduced-motion: reduce) {
  .gnw-card::before, .gnw-card::after, .gnw-card__media::after { transition: none !important; }
  .gnw-card:hover .gnw-card__media::after { opacity: 0 !important; }
  .gnw-card:hover .gnw-card__title a { animation: none !important; }
  .gnw-zoom, .gnw-zoom *, .gnw-zoom *::before, .gnw-zoom *::after { animation: none !important; transition: none !important; }
  .gnw-zoom__lines::after { display: none; }
  .gnw-zoom-beam { display: none; }
  .gnw-zoom-laser { transition: none; }
  .gnw-zoom__grid, .gnw-zoom__scan { display: none; }
  .gnw-viewer, .gnw-viewer.is-rez .gnw-viewer__img { animation: none !important; transition: none !important; }
}
.gnw-kicker, .gnw-footer__copy, .gnw-footer__by { text-wrap: balance; }
