/* ════════════════════════════════════════════════════════════
   ATOMURUS — Explore / Knowledge article styles
   Long-form prose layout that sits on top of atomurus-lab-console.css.
   Used by every page under /explore/<slug>.
   ════════════════════════════════════════════════════════════ */

/* The article scrolls inside .content (app-shell). */
.art-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── Hero / masthead ─── */
.art-hero {
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--lc-rule);
  margin-bottom: 30px;
}
.art-kicker {
  font-family: var(--lc-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-green);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.art-kicker .art-cat {
  border: 1px solid var(--lc-rule);
  color: var(--lc-ink-2);
  padding: 3px 9px;
  border-radius: 999px;
}
.art-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--lc-ink);
  margin: 0 0 16px;
  max-width: 20ch;
}
.art-title em { font-style: italic; color: var(--lc-green); }
.art-dek {
  font-size: 18px;
  line-height: 1.55;
  color: var(--lc-ink-2);
  max-width: 60ch;
  margin: 0 0 22px;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--lc-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--lc-ink-3);
}
.art-meta .am-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--lc-ink-4); display: inline-block; }
.art-meta strong { color: var(--lc-ink-2); font-weight: 500; }

/* ─── Body grid: prose + sticky aside (TOC) ─── */
.art-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: start;
  padding-bottom: 60px;
}
.art-body { min-width: 0; max-width: 760px; }

/* ─── Prose typography ─── */
.art-body > * + * { margin-top: 1.15em; }
.art-body p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--lc-ink);
  letter-spacing: .002em;
}
.art-body p .lead,
.art-body p.lead { font-size: 19px; color: var(--lc-ink); }
.art-body h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.008em;
  color: var(--lc-ink);
  margin-top: 1.9em;
  padding-top: .2em;
  scroll-margin-top: 80px;
}
.art-body h2 .h-no {
  font-family: var(--lc-mono);
  font-size: 11px;
  color: var(--lc-green);
  letter-spacing: .14em;
  display: block;
  margin-bottom: 6px;
}
.art-body h3 {
  font-family: var(--lc-sans);
  font-weight: 600;
  font-size: 19px;
  color: var(--lc-ink);
  margin-top: 1.6em;
  letter-spacing: -.003em;
  scroll-margin-top: 80px;
}
.art-body a {
  color: var(--lc-green);
  text-decoration: none;
  border-bottom: 1px solid var(--lc-green-soft);
  transition: border-color .12s;
}
.art-body a:hover { border-bottom-color: var(--lc-green); }
.art-body strong { font-weight: 600; color: var(--lc-ink); }
.art-body em { font-style: italic; }
.art-body ul, .art-body ol { padding-left: 1.4em; }
.art-body li { font-size: 17px; line-height: 1.7; color: var(--lc-ink); margin-top: .5em; }
.art-body li::marker { color: var(--lc-ink-3); }
.art-body blockquote {
  border-left: 3px solid var(--lc-green);
  padding: 4px 0 4px 20px;
  margin-left: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  color: var(--lc-ink-2);
}
.art-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--lc-mono);
  font-size: 11.5px;
  font-style: normal;
  color: var(--lc-ink-3);
  letter-spacing: .04em;
}
.art-body code {
  font-family: var(--lc-mono);
  font-size: .88em;
  background: var(--lc-surface);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--lc-ink);
}

/* ─── Callout / fact boxes ─── */
.art-callout {
  border: 1px solid var(--lc-rule);
  border-left: 3px solid var(--lc-green);
  background: var(--lc-paper);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--lc-ink-2);
}
.art-callout .ac-label {
  font-family: var(--lc-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-green);
  display: block;
  margin-bottom: 8px;
}
.art-callout.is-warning { border-left-color: #B4541E; }
.art-callout.is-warning .ac-label { color: #B4541E; }

/* Quick-facts panel */
.art-facts {
  border: 1px solid var(--lc-rule);
  border-radius: 10px;
  background: var(--lc-paper);
  padding: 6px 18px;
}
.art-facts .af-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--lc-rule-soft);
  font-size: 14px;
}
.art-facts .af-row:last-child { border-bottom: 0; }
.art-facts .af-k { color: var(--lc-ink-3); font-family: var(--lc-mono); font-size: 11.5px; letter-spacing: .03em; }
.art-facts .af-v { color: var(--lc-ink); font-weight: 500; text-align: right; }

/* Figures */
.art-fig { margin: 1.6em 0; }
.art-fig img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--lc-rule); display: block; }
.art-fig.is-portrait img { max-width: 360px; margin-left: auto; margin-right: auto; }
.art-fig figcaption {
  font-family: var(--lc-mono);
  font-size: 11.5px;
  color: var(--lc-ink-3);
  margin-top: 8px;
  letter-spacing: .02em;
  line-height: 1.5;
}

/* ─── Clickable figure ("view" card that links to a tool) ─── */
.art-figclick { position: relative; margin: 1.8em 0; }
.art-figclick > a {
  display: block;
  position: relative;
  border: 1px solid var(--lc-rule);
  border-radius: 12px;
  background: var(--lc-paper);
  padding: 20px 20px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--lc-rule);
  transition: border-color .14s, box-shadow .14s, transform .14s;
  overflow: hidden;
}
.art-figclick > a:hover {
  border-color: var(--lc-green);
  box-shadow: 0 6px 22px rgba(0,0,0,.07);
  transform: translateY(-1px);
}
.art-figclick svg, .art-figclick img { display: block; width: 100%; height: auto; }
.art-figclick .figclick-badge {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lc-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lc-green);
  padding: 5px 10px;
  border-radius: 999px;
  opacity: .92;
  transition: opacity .14s, transform .14s;
}
.art-figclick > a:hover .figclick-badge { opacity: 1; transform: translateX(2px); }

/* Block / category legend chips */
.fig-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-family: var(--lc-mono);
  font-size: 11px;
  color: var(--lc-ink-2);
}
.fig-legend .fl-item { display: inline-flex; align-items: center; gap: 6px; }
.fig-legend .fl-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

/* ─── Molecule / structure diagrams (inline SVG) ─── */
.molfig {
  margin: 1.6em 0;
  border: 1px solid var(--lc-rule);
  border-radius: 10px;
  background: var(--lc-paper);
  padding: 18px 16px 12px;
}
.molfig.is-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; align-items: end; }
.molfig svg { display: block; width: 100%; height: auto; max-height: 220px; }
.molfig .mol-name {
  font-family: var(--lc-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--lc-ink-2);
  text-align: center;
  margin-top: 8px;
}
.molfig .mol-name strong { color: var(--lc-ink); font-weight: 600; }
.molfig figcaption {
  grid-column: 1 / -1;
  font-family: var(--lc-mono);
  font-size: 11.5px;
  color: var(--lc-ink-3);
  margin-top: 10px;
  line-height: 1.5;
  letter-spacing: .02em;
}
/* shared molecule-svg tokens (inherit theme via currentColor on the figure) */
.molfig svg text { font-family: var(--lc-mono); }
.molfig .bond { stroke: var(--lc-ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.molfig .atom-c { fill: var(--lc-ink); }
.molfig .atom-o { fill: #C0452A; }
.molfig .atom-n { fill: #2E6FB0; }
.molfig .atom-h { fill: var(--lc-ink-3); }
@media (max-width: 560px) {
  .molfig.is-pair { grid-template-columns: 1fr; }
}

/* Interactive molecule preview inside articles */
.art-mol3d {
  margin: 1.8em 0;
  border: 1px solid var(--lc-rule);
  border-radius: 12px;
  background: var(--lc-paper);
  overflow: hidden;
}
.art-mol3d .mol3d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--lc-rule);
}
.art-mol3d .mol3d-kicker {
  display: block;
  font-family: var(--lc-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-green);
  margin-bottom: 5px;
}
.art-mol3d h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.art-mol3d .mol3d-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1px solid var(--lc-green);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--lc-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--lc-green);
  background: var(--lc-green-soft);
  text-decoration: none;
}
.art-mol3d .mol3d-explore:hover { background: var(--lc-green); color: #fff; }
.art-mol3d .mol3d-explore svg { width: 13px; height: 13px; }
.art-mol3d .mol3d-stage {
  position: relative;
  background: var(--lc-surface);
}
.art-mol3d #mvwr-canvas {
  display: block;
  width: 100%;
  height: 390px;
  cursor: grab;
  touch-action: none;
}
.art-mol3d .mvwr-ctrls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.art-mol3d .mvwr-ctrls button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--lc-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--lc-ink-2);
  background: var(--lc-paper);
  border: 1px solid var(--lc-rule);
  border-radius: 999px;
  padding: 6px 10px;
  transition: border-color .14s, color .14s, background .14s;
}
.art-mol3d .mvwr-ctrls button:hover { border-color: var(--lc-green); color: var(--lc-ink); }
.art-mol3d .mvwr-ctrls button[aria-pressed="true"] { border-color: var(--lc-green); color: var(--lc-green); }
.art-mol3d .mvwr-ctrls svg { width: 13px; height: 13px; flex-shrink: 0; }
.art-mol3d .mvwr-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--lc-mono);
  font-size: 10.5px;
  color: var(--lc-ink-3);
  opacity: .8;
  pointer-events: none;
}
.art-mol3d .mvwr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px 0;
  font-family: var(--lc-mono);
  font-size: 11.5px;
  color: var(--lc-ink-2);
}
.art-mol3d .ml-item { display: inline-flex; align-items: center; gap: 7px; }
.art-mol3d .ml-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.art-mol3d figcaption {
  font-family: var(--lc-mono);
  font-size: 11.5px;
  color: var(--lc-ink-3);
  padding: 12px 16px 16px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .art-mol3d .mol3d-head { align-items: flex-start; flex-direction: column; }
  .art-mol3d #mvwr-canvas { height: 330px; }
  .art-mol3d .mvwr-ctrls button span { display: none; }
  .art-mol3d .mvwr-ctrls { gap: 6px; }
}

/* Reaction / formula block */
.art-formula {
  font-family: var(--lc-mono);
  font-size: 15px;
  background: var(--lc-surface);
  border: 1px solid var(--lc-rule);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--lc-ink);
  overflow-x: auto;
  letter-spacing: .01em;
}

/* ─── Table of contents (sticky aside) ─── */
.art-toc {
  position: sticky;
  top: 18px;
  font-size: 13px;
}
.art-toc .toc-label {
  font-family: var(--lc-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-ink-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lc-rule);
}
.art-toc a {
  display: block;
  color: var(--lc-ink-3);
  text-decoration: none;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--lc-rule);
  line-height: 1.35;
  transition: color .12s, border-color .12s;
}
.art-toc a:hover { color: var(--lc-ink); }
.art-toc a.is-active { color: var(--lc-green); border-left-color: var(--lc-green); font-weight: 500; }

/* ─── Reading progress bar (top of content) ─── */
.art-progress {
  position: sticky;
  top: 0;
  left: 0;
  height: 2px;
  background: transparent;
  z-index: 25;
}
.art-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lc-green);
  transition: width .1s linear;
}

/* ─── References ─── */
.art-refs {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--lc-rule);
}
.art-refs h2 { margin-top: 0; }
.art-refs ol { padding-left: 1.3em; }
.art-refs li { font-size: 13.5px; color: var(--lc-ink-2); line-height: 1.55; }

/* ─── Related articles ─── */
.art-related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--lc-rule);
}
.art-related .ar-label {
  font-family: var(--lc-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-ink-3);
  margin-bottom: 16px;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ar-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--lc-rule);
  border-radius: 10px;
  text-decoration: none;
  background: var(--lc-paper);
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.ar-card:hover { transform: translateY(-1px); border-color: var(--lc-green); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ar-card .ar-cat { font-family: var(--lc-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--lc-ink-3); }
.ar-card .ar-title { font-size: 15px; font-weight: 600; color: var(--lc-ink); margin: 6px 0 4px; line-height: 1.3; }
.ar-card .ar-desc { font-size: 12.5px; color: var(--lc-ink-2); line-height: 1.45; }

/* ─── Photo figure credit (real images) ─── */
.art-fig figcaption .fig-credit {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--lc-ink-4);
  letter-spacing: .01em;
}
.art-fig figcaption .fig-credit a { color: var(--lc-ink-3); }

/* ─── "Follow Atomurus" block at the end of every article ─── */
.art-follow {
  margin-top: 48px;
  padding: 22px 22px;
  border: 1px solid var(--lc-rule);
  border-radius: 12px;
  background: var(--lc-paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.art-follow .afl-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.15;
  color: var(--lc-ink);
}
.art-follow .afl-sub {
  font-size: 13px;
  color: var(--lc-ink-2);
  margin-top: 3px;
  line-height: 1.4;
}
.art-follow .afl-links { display: flex; gap: 10px; flex-shrink: 0; }
.art-follow .afl-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lc-rule);
  border-radius: 999px;
  padding: 9px 15px 9px 13px;
  text-decoration: none;
  color: var(--lc-ink);
  font-family: var(--lc-mono);
  font-size: 12px;
  letter-spacing: .02em;
  transition: border-color .14s, background .14s, transform .14s;
}
.art-follow .afl-links a:hover { border-color: var(--lc-green); transform: translateY(-1px); }
.art-follow .afl-links svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 560px) {
  .art-follow { flex-direction: column; align-items: flex-start; }
  .art-follow .afl-links { width: 100%; }
  .art-follow .afl-links a { flex: 1; justify-content: center; }
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .art-grid { grid-template-columns: 1fr; gap: 0; }
  .art-aside { display: none; }
}
@media (max-width: 720px) {
  .art-wrap { padding: 0 16px; }
  .art-hero { padding: 26px 0 20px; margin-bottom: 22px; }
  .art-body p, .art-body li { font-size: 16px; }
  .art-body h2 { font-size: 25px; }
}
