/* ============================================================
   POLARIS — artiklar/ (ljust tema #f8f4ee, editorial läsvy)
   Laddar efter ../style.css
   ============================================================ */

/* ── NAV: alltid glasmörk ── */
.article-page .nav {
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--gold-ghost);
  padding: 14px var(--gutter);
}

/* ── BODY ── */
.article-page {
  background: #f8f4ee;
  color: #1a1a1a;
}
.article-page .aurora,
.article-page .starfield { display: none; }

/* ── DARK VISUAL HEADER (mörk, echolar fleet-kort på startsidan) ── */
.article-visual-header {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 15vw, 164px) 0 0;
  background: var(--bg);
}
.article-visual-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 60% at 25% 30%, var(--aurora-teal) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 80% 70%, var(--aurora-violet) 0%, transparent 65%);
  z-index: 0;
}
.article-visual-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 9, 12, 0.4) 0%,
    rgba(7, 9, 12, 0.6) 55%,
    rgba(7, 9, 12, 0.97) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Noise-overlay på header */
.article-visual-header .article-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.article-visual-inner {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(48px, 7vw, 80px);
}

/* Tillbaka-länk */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(232, 224, 208, 0.2);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.article-back:hover { color: var(--gold); border-color: var(--gold-soft); }

/* Stor typografisk dekorering — modellnamn */
.article-typo-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 28px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  color: var(--bone-bright);
  text-shadow: 0 2px 24px rgba(7, 9, 12, 0.5);
  margin-bottom: clamp(28px, 4vw, 44px);
  letter-spacing: 0.01em;
}
.article-typo-sep {
  color: var(--gold);
  font-size: 0.65em;
  opacity: 0.75;
}

/* Eyebrow i header */
.article-header-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* Artikel-H1 */
.article-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--bone-bright);
  max-width: 22ch;
  margin-bottom: 0;
}

/* ── ARTIKEL-META (ljus sektion direkt under mörk header) ── */
.article-meta-section {
  background: #f8f4ee;
  padding: clamp(36px, 5vw, 56px) 0 0;
}

.article-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.55;
  color: #1a1a1a;
  max-width: 62ch;
  margin-bottom: 32px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(7, 9, 12, 0.38);
  margin-bottom: 24px;
}
.article-byline-sep { color: rgba(201, 168, 76, 0.5); margin: 0 4px; }
.article-byline-author { color: rgba(7, 9, 12, 0.55); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.article-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(7, 9, 12, 0.12);
  color: rgba(7, 9, 12, 0.45);
  background: #ffffff;
  border-radius: 2px;
}

.article-rule {
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(201, 168, 76, 0.2) 60%, transparent);
  margin-bottom: 0;
}

/* ── ARTIKEL-BODY (smal läskolumn) ── */
.article-body-section {
  background: #f8f4ee;
  padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 112px);
}

.article-reading {
  max-width: 760px;
  /* centreras via container + margin auto */
}

/* H2 i artikeln */
.article-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: #07090c;
  margin-bottom: 22px;
  margin-top: clamp(48px, 6vw, 72px);
}
.article-reading > *:first-child .article-h2,
.article-reading > .article-h2:first-child { margin-top: 0; }

/* Brödtext */
.article-p {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: #3a3a3a;
  margin-bottom: 22px;
  max-width: 68ch;
}
.article-p:last-child { margin-bottom: 0; }
.article-p strong { font-weight: 500; color: #1a1a1a; }

/* Sektion-avdelare i body */
.article-section-rule {
  height: 1px;
  background: rgba(7, 9, 12, 0.07);
  margin: clamp(48px, 6vw, 72px) 0;
}

/* ── PULL QUOTE ── */
.pull-quote {
  margin: clamp(36px, 5vw, 60px) 0;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 4px solid var(--gold);
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.45;
  color: #07090c;
  margin-bottom: 14px;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CODE BLOCK (mörk break i ljus artikel) ── */
.code-block {
  background: #0c0e14;
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px);
  margin: clamp(36px, 5vw, 56px) 0;
  position: relative;
  /* Bredd: sträcker sig lite utanför läskolumnen för visuell variation */
}
.code-block-label {
  position: absolute;
  top: -1px;
  left: clamp(28px, 4vw, 44px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  background: #0c0e14;
  padding: 0 10px;
  transform: translateY(-50%);
}
.code-block p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--bone-muted);
  margin-bottom: 10px;
}
.code-block p:last-child { margin-bottom: 0; }
.code-block .code-comment {
  color: var(--bone-faint);
  font-style: italic;
}

/* ── NUMRERAD LISTA (guld 01–04) ── */
.article-num-list {
  border-top: 1px solid rgba(7, 9, 12, 0.1);
  margin: clamp(36px, 4vw, 48px) 0;
  list-style: none;
}
.article-num-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid rgba(7, 9, 12, 0.07);
  align-items: start;
}
.article-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.article-num-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  color: #07090c;
  margin-bottom: 14px;
}
.article-num-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.article-num-body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 12px;
}
.article-num-body p:last-child { margin-bottom: 0; }

/* ── PROMPT-SVAR (modellernas svar, kort kommentar) ── */
.article-responses {
  margin: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid rgba(7, 9, 12, 0.1);
}
.article-response {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(7, 9, 12, 0.07);
  align-items: start;
}
.article-response-model {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #07090c;
}
.article-response-note {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #3a3a3a;
}
.article-response-verdict {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── SIMPLE UNORDERED LIST ── */
.article-ul {
  margin: 0 0 22px 0;
  padding: 0;
  list-style: none;
}
.article-ul li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: #3a3a3a;
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px solid rgba(7, 9, 12, 0.05);
}
.article-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ── AVSLUTNING PARAGRAPH ── */
.article-closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.6;
  color: #07090c;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 2px solid rgba(201, 168, 76, 0.25);
  max-width: 60ch;
}

/* ── H3 UNDERRUBRIK ── */
.article-h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: #07090c;
  margin-bottom: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}
.article-h3 em { font-style: italic; color: var(--gold); }

/* ── RESPONSIV ── */
@media (max-width: 920px) {
  .article-typo-display { font-size: clamp(28px, 7vw, 52px); }
  .article-num-item { grid-template-columns: 56px 1fr; }
  .article-num { font-size: 28px; }
  .article-response { grid-template-columns: 80px 1fr; }
}

@media (max-width: 600px) {
  .article-num-item { grid-template-columns: 1fr; gap: 6px; }
  .article-num { font-size: 24px; }
  .article-response { grid-template-columns: 1fr; gap: 8px; }
}
