/* ===== AtheraPath – PageWeaver minimal theme (green on black) ===== */
:root {
  --bg: #000;
  --fg: #b8ffb0;       /* phosphor green */
  --fg-dim: #78d16f;   /* dim green */
  --accent: #3cff00;   /* bright scanline green */
  --muted: #0a1f0a;    /* deep green-black */
  --border: #0f3a12;
  --font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
}

/* ===== Header ===== */
.pw-header {
  padding: 28px 20px 18px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(60,255,0,.05) 100%),
    var(--muted);
  box-shadow: inset 0 -1px 0 var(--border);
  text-align: center;
}
.pw-header h1 {
  margin: 0 0 6px;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(60,255,0,.35);
}
.pw-sub { color: var(--fg-dim); font-size: .95rem; opacity: .9; }

/* ===== Main container ===== */
.pw-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.pw-banner a {
  color: #00aa00; /* or your ritual green */
  text-decoration: none;
  font-weight: bold;
}
.pw-banner a:hover {
  text-decoration: underline;
}
/* ===== Image block ===== */
.pw-figure {
  margin: 0 0 18px;
  border: 1px solid var(--border);
  background: rgba(60,255,0,.03);
  padding: 10px;
  border-radius: 10px;
}
.pw-figure img,
.pw-figure video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pw-figure figcaption {
  margin-top: 8px;
  color: var(--fg-dim);
  font-size: .9rem;
  text-align: center;
  opacity: .85;
}

/* ===== Article / Markdown ===== */
.pw-article {
  border: 1px solid var(--border);
  background: rgba(60,255,0,.02);
  padding: 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 255, 0, 0.4) rgba(60, 255, 0, 0.02);
  letter-spacing: 0.01em;
}
.pw-article h1, .pw-article h2, .pw-article h3 {
  color: var(--accent);
  margin: 18px 0 8px;
  text-shadow: 0 0 4px rgba(60,255,0,.25);
}
.pw-article p { margin: 10px 0; }
.pw-article ul { padding-left: 22px; margin: 10px 0; }
.pw-article li { margin: 6px 0; }
.pw-article blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(60,255,0,.04);
  color: var(--fg);
}
.pw-article hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 18px 0;
}
code, pre {
  background: rgba(60,255,0,.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .15rem .35rem;
}
pre { padding: .6rem .8rem; overflow-x: auto; }

/* ===== Hyperlink Styling ===== */
.pw-article a {
  color: var(--accent); /* bright scanline green */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.pw-article a:hover {
  color: var(--fg-dim); /* dim green hover */
  text-decoration: underline;
  text-shadow: 0 0 4px rgba(60,255,0,.25);
}

/* ===== Subtle CRT scanline vibe ===== */
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(60,255,0,0.03),
    rgba(60,255,0,0.03) 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  mix-blend-mode: screen;
  opacity: .35;
}

/* ===== Desktop upgrade: two-columns (image | text) ===== */
@media (min-width: 900px) {
  .pw-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: start;
  }
  .pw-figure { order: 1; }
  .pw-article { order: 2; }
  #top-banner { order: 0; grid-column: 1 / -1; }
  #bottom-banner { order: 3; grid-column: 1 / -1; }
}
.pw-article::-webkit-scrollbar {
  width: 8px;
}
.pw-article::-webkit-scrollbar-track {
  background: rgba(60, 255, 0, 0.02);
}
.pw-article::-webkit-scrollbar-thumb {
  background-color: rgba(60, 255, 0, 0.4);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.pw-article {
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 255, 0, 0.4) rgba(60, 255, 0, 0.02);
}

/* ===== Top Banner Section ===== */
.pw-banner {
  grid-column: 1 / -1; /* spans both columns */
  border: 1px solid var(--border);
  background: rgba(60,255,0,.03);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--fg);
}

#bottom-banner { margin-top: 20px; }
