/* ═══════════════════════════════════════════════════════════════════
   NEON PULSE — Professional 1980s Magazine Stylesheet v2
   Inspired by: Crash, Smash Hits, Zzap!64, Your Sinclair
   the1980s.co.uk/magazine/
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Anton&family=Oswald:wght@400;600;700&family=Roboto+Condensed:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=VT323&family=Permanent+Marker&family=Black+Han+Sans&display=swap');

/* ── ROOT VARIABLES ── */
:root {
  --ink:        #1a1008;
  --paper:      #f5f0e8;
  --paper-alt:  #ede7d9;
  --red:        #cc1122;
  --yellow:     #f5c800;
  --cyan:       #009bb5;
  --magenta:    #cc0077;
  --green:      #1a7a2e;
  --orange:     #e05a00;
  --blue:       #1a3a8f;
  --white:      #ffffff;
  --rule:       #1a1008;
  --col-gap:    18px;
  --page-max:   960px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BODY / SHELL ── */
body.mag-body {
  background: #2a2a2a;
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 60px;
}

/* ── MAGAZINE OUTER WRAPPER ── */
.mag-wrapper {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  position: relative;
}

/* ── TOP MASTHEAD BAR ── */
.mag-topbar {
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mag-topbar a { color: var(--yellow); text-decoration: none; }
.mag-topbar a:hover { color: var(--white); }

/* ── PAGE FRAME ── */
.mag-page-frame {
  position: relative;
  background: var(--paper);
  border-left: 6px solid var(--ink);
  border-right: 6px solid var(--ink);
  min-height: 900px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

/* ── NAV ARROWS — sticky, always in viewport ── */
.nav-arrow {
  position: fixed;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 1000;
  width: 48px;
  height: 96px;
  background: var(--ink);
  color: var(--yellow);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, opacity 0.2s;
  box-shadow: 3px 0 12px rgba(0,0,0,0.5);
}
.nav-arrow:hover { background: var(--red); color: var(--white); }
.nav-arrow.hidden { opacity: 0; pointer-events: none; }

/* Position relative to the magazine column */
.nav-prev {
  left: calc(50vw - (var(--page-max) / 2) - 48px);
}
.nav-next {
  left: calc(50vw + (var(--page-max) / 2));
}

/* On narrow screens where the magazine fills the viewport, hug the edges */
@media (max-width: calc(960px + 96px)) {
  .nav-prev { left: 0; }
  .nav-next { right: 0; left: auto; }
}

/* ── PAGE CONTENT AREA ── */
.mag-page {
  flex: 1;
  overflow: hidden;
  animation: pageIn 0.3s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.page-anim-back { animation: pageInBack 0.3s ease forwards; }
@keyframes pageInBack {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── BOTTOM BAR ── */
.mag-bottombar {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.mag-page-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}
.page-counter-sep { color: var(--red); }

/* ── BACK LINK ── */
.back-to-site {
  position: fixed;
  bottom: 18px;
  left: 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px 8px 12px;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  z-index: 400;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 2px solid var(--ink);
}
.back-to-site:hover { background: var(--yellow); color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════
   COVER PAGE
   ════════════════════════════════════════════════════════════════════ */

.cover-page {
  width: 100%;
  min-height: 900px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Cover: top strip */
.cover-topstrip {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  border-bottom: 3px solid var(--yellow);
}
.cover-topstrip-left {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
}
.cover-topstrip-right {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--yellow);
}

/* Cover: masthead */
.cover-masthead {
  padding: 14px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.cover-title-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0;
  line-height: 1;
}
.cover-title-main {
  font-family: 'Anton', sans-serif;
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--yellow);
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-shadow: 5px 5px 0 var(--red), 8px 8px 0 rgba(0,0,0,0.4);
}
.cover-title-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 8px;
}
.cover-issue-badge {
  background: var(--cyan);
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 10px;
}

/* Cover: hero image area */
.cover-hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.3) contrast(1.1);
}
.cover-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,0,16,0.85) 100%);
}

/* Cover: feature teasers */
.cover-teasers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 4px solid var(--yellow);
}
.cover-teaser {
  padding: 10px 14px;
  border-right: 2px solid rgba(255,255,255,0.15);
  position: relative;
}
.cover-teaser:last-child { border-right: none; }
.cover-teaser-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cover-teaser-hed {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 3px;
}
.cover-teaser-dek {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* Cover: bottom bar */
.cover-bottombar {
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
}
.cover-price {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  color: var(--ink);
}
.cover-tagline {
  font-family: 'Permanent Marker', cursive;
  font-size: 0.85rem;
  color: var(--red);
}
.cover-barcode {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.barcode-lines {
  width: 70px;
  height: 24px;
  background: repeating-linear-gradient(90deg,
    #000 0,#000 2px,transparent 2px,transparent 4px,
    #000 4px,#000 5px,transparent 5px,transparent 8px,
    #000 8px,#000 11px,transparent 11px,transparent 13px,
    #000 13px,#000 14px,transparent 14px,transparent 17px,
    #000 17px,#000 20px,transparent 20px,transparent 22px,
    #000 22px,#000 23px,transparent 23px,transparent 26px,
    #000 26px,#000 29px,transparent 29px,transparent 31px,
    #000 31px,#000 32px,transparent 32px,transparent 35px,
    #000 35px,#000 37px,transparent 37px,transparent 40px,
    #000 40px,#000 42px,transparent 42px,transparent 44px,
    #000 44px,#000 46px,transparent 46px,transparent 48px,
    #000 48px,#000 50px,transparent 50px,transparent 52px,
    #000 52px,#000 55px,transparent 55px,transparent 57px,
    #000 57px,#000 59px,transparent 59px,transparent 62px,
    #000 62px,#000 64px,transparent 64px,transparent 66px,
    #000 66px,#000 68px,transparent 68px,transparent 70px
  );
}
.barcode-num {
  font-family: 'VT323', monospace;
  font-size: 0.65rem;
  color: var(--ink);
}

/* ════════════════════════════════════════════════════════════════════
   CONTENTS PAGE (page001)
   ════════════════════════════════════════════════════════════════════ */

.contents-page {
  width: 100%;
  min-height: 900px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.contents-header {
  background: var(--red);
  padding: 16px 24px 12px;
  border-bottom: 5px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.contents-title {
  font-family: 'Anton', sans-serif;
  font-size: 3.5rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  line-height: 1;
}
.contents-issue {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  text-align: right;
}

.contents-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
}

.contents-col {
  padding: 20px 22px;
  border-right: 2px solid var(--ink);
}
.contents-col:last-child { border-right: none; }

.contents-section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.contents-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,16,8,0.2);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
  cursor: pointer;
}
.contents-entry:hover { background: rgba(245,200,0,0.2); }
.contents-entry:hover .contents-entry-pg { background: var(--red); color: var(--white); }

.contents-entry-pg {
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  color: var(--white);
  background: var(--ink);
  min-width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.contents-entry-text { flex: 1; padding-top: 2px; }
.contents-entry-section {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contents-entry-hed {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 3px;
}
.contents-entry-dek {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.4;
}
.contents-entry-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.2);
}

.contents-editors-note {
  background: var(--cyan);
  padding: 14px 22px;
  border-top: 3px solid var(--ink);
}
.contents-editors-note h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}
.contents-editors-note p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════════
   INNER ARTICLE PAGES
   ════════════════════════════════════════════════════════════════════ */

.inner-page {
  width: 100%;
  min-height: 900px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: stretch;
  border-bottom: 4px solid var(--ink);
}
.page-header-section {
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 16px;
  display: flex;
  align-items: center;
}
.page-header-title {
  flex: 1;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  display: flex;
  align-items: center;
}
.page-header-num {
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  padding: 2px 14px;
  display: flex;
  align-items: center;
}

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  flex: 1;
  padding: 5% 5%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── HEADLINE BLOCK ── */
.article-headline-block {
  margin-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
}
.article-kicker {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 6px;
}
.article-headline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.article-headline.hl-red { color: var(--red); }
.article-headline.hl-cyan { color: var(--cyan); }
.article-headline.hl-blue { color: var(--blue); }

.article-deck {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #444;
  line-height: 1.4;
  max-width: 680px;
}
.article-byline {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-transform: uppercase;
}

/* ── EDITORIAL LAYOUT: main column + sidebar ── */
/* Use flexbox so float works inside .article-main */
.article-grid {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.article-main {
  flex: 1 1 0;
  min-width: 0;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-sidebar {
  flex: 0 0 230px;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Paragraphs */
.article-main p { margin-bottom: 11px; }

/* Drop cap on first paragraph */
.article-main p.drop-cap::first-letter {
  font-family: 'Anton', sans-serif;
  font-size: 3.8em;
  line-height: 0.78;
  float: left;
  margin: 2px 6px 0 0;
  color: var(--red);
}

/* Section subheading inside body */
.article-subhead {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  margin: 16px 0 8px;
  letter-spacing: 0.02em;
}

/* Responsive: stack sidebar below main on small screens
   (handled by the comprehensive @media (max-width: 768px) block below) */

/* Legacy column classes kept for compatibility */
.article-columns { font-family: 'Roboto Condensed', sans-serif; font-size: 0.9rem; line-height: 1.75; color: var(--ink); }
.article-columns p { margin-bottom: 11px; }
.article-columns p.drop-cap::first-letter {
  font-family: 'Anton', sans-serif;
  font-size: 3.8em;
  line-height: 0.78;
  float: left;
  margin: 2px 6px 0 0;
  color: var(--red);
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 22px 16px 14px;
  margin: 16px 0;
  background: var(--yellow);
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.2;
  position: relative;
  clear: both;
}
.pull-quote::before {
  content: '\201C';
  font-family: 'Anton', sans-serif;
  font-size: 5rem;
  color: var(--red);
  position: absolute;
  top: -18px;
  left: 10px;
  line-height: 1;
}
.pull-quote-attr {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-top: 6px;
  font-weight: 700;
}

/* ── IMAGES ── */
/* Full-width image block (between sections) */
.article-img-wrap {
  margin: 16px 0;
  display: grid;
  gap: 10px;
  clear: both;
}
.article-img-wrap.img-2col { grid-template-columns: 1fr 1fr; }
.article-img-wrap.img-3col { grid-template-columns: 1fr 1fr 1fr; }
.article-img-wrap.img-wide { grid-template-columns: 3fr 2fr; }
.article-img-wrap.img-solo { grid-template-columns: 1fr; }

/* Floated inline image (wraps text around it) */
.article-img-float {
  float: right;
  width: 42%;
  max-width: 300px;
  min-width: 160px;
  margin: 2px 0 14px 18px;
  shape-outside: border-box;
}
.article-img-float.float-left {
  float: left;
  margin: 2px 18px 14px 0;
}

/* Clearfix after floated images */
.article-main::after {
  content: '';
  display: table;
  clear: both;
}

.article-img-item { position: relative; }
.article-img-item img {
  width: 100%;
  display: block;
  border: 2px solid var(--ink);
  object-fit: cover;
  max-height: 300px;
}
.article-img-caption {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.68rem;
  padding: 4px 8px;
  line-height: 1.3;
}
.article-img-caption strong { color: var(--yellow); }

/* ── SIDEBAR / FACT BOX ── */
.sidebar-box {
  width: 100%;
  margin: 0 0 14px 0;
  border: 3px solid var(--ink);
  background: var(--paper-alt);
  break-inside: avoid;
}
.sidebar-box.sb-red { border-color: var(--red); background: #fff0f3; }
.sidebar-box.sb-cyan { border-color: var(--cyan); background: #f0fafc; }
.sidebar-box.sb-yellow { border-color: var(--ink); background: var(--yellow); }

.sidebar-box-header {
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  padding: 5px 10px;
  letter-spacing: 0.05em;
}
.sidebar-box.sb-red .sidebar-box-header { background: var(--red); color: var(--white); }
.sidebar-box.sb-cyan .sidebar-box-header { background: var(--cyan); color: var(--ink); }

.sidebar-box-body {
  padding: 10px 12px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink);
}
.sidebar-box-body p { margin-bottom: 7px; }
.sidebar-box-body ul { padding-left: 14px; margin-bottom: 7px; }
.sidebar-box-body ul li { margin-bottom: 3px; }
.sidebar-box-body strong { color: var(--red); }

/* ── RATINGS BOX ── */
.ratings-box {
  column-span: all;
  display: flex;
  gap: 0;
  border: 3px solid var(--ink);
  margin: 14px 0;
}
.ratings-box-label {
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Anton', sans-serif;
  font-size: 0.9rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 10px 6px;
  letter-spacing: 0.1em;
  transform: rotate(180deg);
}
.ratings-items {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.rating-item {
  padding: 10px 12px;
  border-right: 1px solid rgba(26,16,8,0.2);
  text-align: center;
}
.rating-item:last-child { border-right: none; }
.rating-item-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
}
.rating-item-score {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.rating-item-pct {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  color: #888;
}

/* ── CHART / LIST BOX ── */
.chart-list {
  column-span: all;
  border: 3px solid var(--ink);
  margin: 14px 0;
}
.chart-list-header {
  background: var(--blue);
  color: var(--white);
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-list-header span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
}
.chart-entry {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(26,16,8,0.15);
}
.chart-entry:last-child { border-bottom: none; }
.chart-entry:nth-child(even) { background: rgba(26,16,8,0.04); }
.chart-num {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  background: var(--ink);
  min-width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chart-num.new { background: var(--red); }
.chart-num.up  { background: var(--green); }
.chart-entry-text {
  flex: 1;
  padding: 6px 12px;
}
.chart-entry-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.chart-entry-sub {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.75rem;
  color: #666;
}
.chart-entry-score {
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  color: var(--red);
  padding: 0 14px;
}

/* ── INTERVIEW BLOCK ── */
.interview-q {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 3px;
  break-inside: avoid;
}
.interview-a {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 10px;
  break-inside: avoid;
}

/* ── COLOUR BAND SEPARATOR ── */
.colour-band {
  column-span: all;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 33%, var(--cyan) 66%, var(--magenta) 100%);
  margin: 12px 0;
  clear: both; /* always clear floats before a section break */
  display: block;
}

/* ── PAGE FOOTER STRIP ── */
.page-footer-strip {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 5%;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  border-top: 3px solid var(--yellow);
}
.page-footer-strip .pf-mag { color: var(--yellow); font-weight: 700; }
.page-footer-strip .pf-pg  { color: var(--cyan); }

/* ── RESPONSIVE ── */

/* ── 720px: tablet-small adjustments ── */
@media (max-width: 720px) {
  .article-columns { column-count: 2; }
  .article-columns.col-3 { column-count: 2; }
  .cover-teasers { grid-template-columns: 1fr 1fr; }
  .contents-body { grid-template-columns: 1fr; }
  .ratings-items { grid-template-columns: repeat(2, 1fr); }
  .article-img-wrap.img-3col { grid-template-columns: 1fr 1fr; }
  .sidebar-box { float: none; width: 100%; margin: 12px 0; }
}

/* ── 520px: single-column fallbacks ── */
@media (max-width: 520px) {
  .article-columns { column-count: 1; }
  .cover-teasers { grid-template-columns: 1fr; }
  .article-img-wrap.img-2col,
  .article-img-wrap.img-wide { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — comprehensive small-screen overhaul (≤ 768px)
   Desktop styles are untouched; all rules below are mobile-only.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── SHELL ── */
  body.mag-body {
    padding: 0 0 80px;
  }

  .mag-wrapper {
    width: 100%;
    max-width: 100%;
  }

  /* Remove side borders so content fills the full viewport width */
  .mag-page-frame {
    border-left: none;
    border-right: none;
    min-height: 100vh;
    /* Clip so slide-out animation doesn't cause horizontal scroll */
    overflow-x: hidden;
  }

  /* ── NAV ARROWS — fixed to viewport edges, always visible ── */
  .nav-arrow {
    position: fixed;
    top: 50vh;
    transform: translateY(-50%);
    z-index: 1100;
    width: 36px;
    height: 72px;
    font-size: 1.1rem;
    /* Semi-transparent so they don't block content too much */
    background: rgba(26, 16, 8, 0.82);
    color: var(--yellow);
    border: none;
    box-shadow: 2px 0 10px rgba(0,0,0,0.55);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, opacity 0.2s;
  }
  .nav-arrow:hover { background: var(--red); color: var(--white); }
  .nav-arrow.hidden { opacity: 0; pointer-events: none; }

  /* Prev arrow: left edge of viewport */
  .nav-prev {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 4px 4px 0;
  }

  /* Next arrow: right edge of viewport */
  .nav-next {
    right: 0 !important;
    left: auto !important;
    border-radius: 4px 0 0 4px;
  }

  /* ── PAGE CONTENT ── */
  .mag-page {
    width: 100%;
    overflow-x: hidden;
  }

  /* ── TOPBAR ── */
  .mag-topbar {
    font-size: 0.6rem;
    padding: 4px 10px;
    letter-spacing: 0.08em;
  }

  /* ── BACK LINK ── */
  .back-to-site {
    font-size: 0.72rem;
    padding: 6px 10px 6px 8px;
    bottom: 10px;
    left: 10px;
  }

  /* ════════════════════════════════════════════════════════
     COVER PAGE (mag.html) — .cv-* classes
     ════════════════════════════════════════════════════════ */

  /* Stack the 3fr/2fr grid into a single column */
  .mag-scope .cv-body {
    grid-template-columns: 1fr;
  }

  /* Show the right panels on mobile (stacked below left) */
  .mag-scope .cv-right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 3px solid var(--ink);
  }

  /* Each right panel takes half width on mobile */
  .mag-scope .cv-panel {
    flex: 1 1 48%;
    min-width: 140px;
    border-bottom: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
  }
  .mag-scope .cv-panel:nth-child(even) {
    border-right: none;
  }

  .mag-scope .cv-title {
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .mag-scope .cv-tagline {
    font-size: 0.78rem;
  }

  .mag-scope .cv-main-hed {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .mag-scope .cv-main-img {
    max-height: 180px;
  }

  .mag-scope .cv-panel-img {
    max-height: 70px;
  }

  /* Bottom bar: keep it compact */
  .mag-scope .cv-bottombar {
    padding: 6px 4%;
  }
  .mag-scope .cv-starburst {
    width: 56px;
    height: 56px;
    font-size: 0.65rem;
  }
  .mag-scope .cv-barcode-lines {
    width: 56px;
  }

  /* ════════════════════════════════════════════════════════
     CONTENTS PAGE (page1) — .ct-* classes
     ════════════════════════════════════════════════════════ */

  .contents-outer {
    min-height: auto;
  }

  .ct-header {
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ct-title {
    font-size: 2.4rem;
  }

  .ct-issue {
    font-size: 0.6rem;
    text-align: left;
  }

  .ct-body {
    padding: 12px 4% 16px;
  }

  /* Entry rows: thumbnail stays but shrinks; text wraps */
  .ct-entry {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .ct-pg-num {
    font-size: 1.5rem;
    min-width: 48px;
    padding: 0 6px;
  }

  .ct-thumb {
    width: 64px;
  }

  .ct-text {
    padding: 8px 10px;
  }

  .ct-hed {
    font-size: 1rem;
    line-height: 1.1;
  }

  .ct-dek {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .ct-arrow {
    padding: 0 8px;
    font-size: 1.1rem;
  }

  .ct-section-head {
    margin: 12px 0 6px;
  }

  .ct-editors {
    margin-top: 14px;
  }

  .ct-editors-body {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  /* ════════════════════════════════════════════════════════
     INNER ARTICLE PAGES (page2, page3, page4)
     ════════════════════════════════════════════════════════ */

  .inner-page {
    min-height: auto;
  }

  /* Page header: allow text to wrap on very narrow screens */
  .page-header {
    flex-wrap: wrap;
  }
  .page-header-section {
    font-size: 0.6rem;
    padding: 5px 10px;
    letter-spacing: 0.15em;
  }
  .page-header-title {
    font-size: 0.6rem;
    padding: 5px 10px;
    letter-spacing: 0.1em;
  }
  .page-header-num {
    font-size: 1rem;
    padding: 2px 10px;
  }

  /* Article wrap: reduce side padding */
  .article-wrap {
    padding: 4% 4%;
  }

  /* Headline block */
  .article-headline {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .article-deck {
    font-size: 0.88rem;
    max-width: 100%;
  }

  /* ── ARTICLE GRID: stack sidebar below main body ── */
  .article-grid {
    flex-direction: column;
    gap: 0;
  }

  .article-main {
    width: 100%;
  }

  .article-sidebar {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ── FLOATED IMAGES: keep float on mobile but reduce width ── */
  /* Images float right/left with text wrapping around them */
  .article-img-float {
    float: right;
    width: 38%;
    min-width: 110px;
    max-width: 200px;
    margin: 2px 0 12px 12px;
  }
  .article-img-float.float-left {
    float: left;
    margin: 2px 12px 12px 0;
  }

  /* Limit image height on mobile so they don't dominate */
  .article-img-item img {
    max-height: 180px;
  }

  /* Hero image grid: stack to single column */
  .article-img-wrap.img-wide,
  .article-img-wrap.img-2col {
    grid-template-columns: 1fr;
  }
  /* Give hero images a reasonable height */
  .article-img-wrap .article-img-item img {
    max-height: 220px;
  }

  /* Pull quote: smaller font */
  .pull-quote {
    font-size: 1.1rem;
    padding: 20px 12px 12px;
  }
  .pull-quote::before {
    font-size: 3.5rem;
    top: -14px;
  }

  /* Article subhead */
  .article-subhead {
    font-size: 1rem;
  }

  /* ── SIDEBAR BOXES ── */
  .sidebar-box {
    float: none;
    width: 100%;
    margin: 0 0 12px 0;
  }
  .sidebar-box-body {
    font-size: 0.78rem;
  }

  /* ── CHART LIST (page3 sidebar) ── */
  .chart-list {
    margin: 0 0 12px 0;
  }
  .chart-entry-score {
    padding: 0 8px;
    font-size: 1.1rem;
  }
  .chart-num {
    min-width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .chart-entry-title {
    font-size: 0.82rem;
  }
  .chart-entry-sub {
    font-size: 0.68rem;
  }

  /* ── RATINGS BOX ── */
  .ratings-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .rating-item-score {
    font-size: 1.6rem;
  }

  /* ── PAGE FOOTER STRIP ── */
  .page-footer-strip {
    font-size: 0.58rem;
    padding: 4px 4%;
    flex-wrap: wrap;
    gap: 4px;
  }
  .page-footer-strip span:nth-child(2) {
    /* Middle label: allow it to shrink/wrap */
    flex: 1 1 100%;
    order: 3;
    text-align: center;
    opacity: 0.7;
  }

  /* ── BOTTOM BAR ── */
  .mag-bottombar {
    font-size: 0.6rem;
    padding: 5px 10px;
  }
  .mag-page-counter {
    font-size: 0.65rem;
    gap: 6px;
  }

}
