:root {
  --frame-margin: 14px;
  --wine-950: #4e0602;
  --wine-900: #650800;
  --wine-800: #7f0c03;
  --source-burgundy: #700b06;
  --gold-500: #ffcc3d;
  --gold-300: #ffe08a;
  --cream-100: #fff6d8;
  --cream-200: #fff1c5;
  --cream-300: #edcf80;
  --paper: #fffaf0;
  --ink: #24100c;
  --muted: #704834;
  --line: #d4a84e;
  --blue: #517fa8;
  --green: #7b9d45;
  --rose: #bb6d6b;
  --shadow: 0 18px 44px rgba(89, 43, 8, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream-100);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

h2,
h3,
h4,
h5,
p,
li,
dd {
  overflow-wrap: anywhere;
}

.page-header {
  margin: 8px var(--frame-margin) 0;
  min-height: 302px;
  padding: 8px;
  background: var(--source-burgundy);
  border-radius: 14px;
  overflow: hidden;
}

.image-banner {
  display: grid;
  place-items: center start;
  min-height: 286px;
  background: var(--source-burgundy);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.image-banner img {
  display: block;
  width: min(1120px, 100%);
  height: auto;
  max-width: 1120px;
}

.app-layout {
  min-height: calc(100vh - 390px);
  margin: 18px var(--frame-margin) 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 22px;
  color: var(--cream-100);
  background: linear-gradient(180deg, var(--wine-900), var(--wine-950));
  box-shadow: inset -1px 0 0 rgba(255, 231, 163, 0.18);
}

.side-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 224, 138, 0.25);
}

.side-title span,
.section-heading span {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold-500);
  border-radius: 6px;
  font-weight: 900;
}

.side-title span {
  width: 42px;
  height: 42px;
}

.section-tabs {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.tab-button {
  padding: 12px 10px;
  color: var(--cream-100);
  text-align: left;
  background: transparent;
  border-left: 3px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.tab-button:hover,
.tab-button.is-active {
  color: var(--gold-500);
  background: rgba(255, 204, 61, 0.09);
  border-left-color: var(--gold-500);
}

.content-stage {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(112, 11, 6, 0.06), rgba(112, 11, 6, 0) 96px),
    var(--cream-100);
}

.stage-top {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--wine-800);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-top h1 {
  margin: 0;
  color: var(--wine-950);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.article-subtitle {
  max-width: 980px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.article-authors {
  display: block;
  margin-top: 3px;
  color: var(--wine-800);
}

.article-authors strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-panel {
  display: none;
}

.content-panel.is-visible {
  display: block;
}

.paper-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 310px;
  overflow: hidden;
  color: #fff8dc;
  background:
    linear-gradient(120deg, rgba(255, 204, 61, 0.18), transparent 42%),
    linear-gradient(135deg, var(--wine-900), var(--wine-950));
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(91, 19, 6, 0.14);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
  padding: 30px;
}

.kicker,
.keyword-row span,
.evidence-copy span,
.finding-card > span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  color: var(--wine-950);
  background: var(--gold-300);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-copy h2 {
  max-width: 820px;
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: #f5d9a0;
  font-size: 1.04rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.article-link-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--wine-950);
  background: var(--gold-500);
  border: 1px solid var(--gold-300);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(36, 16, 12, 0.18);
  white-space: normal;
}

.article-link-button:hover {
  background: var(--gold-300);
}

.hero-facts {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 246, 216, 0.09);
  border-left: 1px solid rgba(255, 224, 138, 0.22);
}

.hero-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  padding: 13px;
  background: rgba(255, 246, 216, 0.13);
  border: 1px solid rgba(255, 224, 138, 0.24);
  border-radius: 7px;
}

.hero-facts dt {
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: #fff8dc;
  line-height: 1.35;
}

.overview-section {
  min-width: 0;
  max-width: 100%;
  margin-top: 22px;
}

.compact-section,
.visual-section {
  padding: 18px;
  background: rgba(255, 241, 197, 0.55);
  border: 1px solid rgba(212, 168, 78, 0.72);
  border-radius: 8px;
}

.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.section-heading span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.section-heading h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 1.35rem;
}

.small-heading {
  margin-bottom: 10px;
}

.small-heading span {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.lens-grid,
.finding-grid {
  display: grid;
  gap: 14px;
}

.lens-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 1.1fr);
}

.finding-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lens-card,
.section-card,
.finding-card,
.evidence-card {
  min-width: 0;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(91, 19, 6, 0.08);
}

.lens-card,
.section-card,
.finding-card {
  padding: 16px;
}

.lens-card h4,
.finding-card h4 {
  margin: 0 0 9px;
  color: var(--wine-900);
  font-size: 1.08rem;
}

.lens-card p,
.lens-card li,
.section-card li,
.finding-card p,
.evidence-copy p {
  color: var(--muted);
  line-height: 1.43;
}

.lens-card p,
.finding-card p {
  margin: 0;
}

.lens-card ul,
.section-card ul {
  margin: 0;
  padding-left: 18px;
}

.lens-card li + li,
.section-card li + li {
  margin-top: 7px;
}

.keyword-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.keyword-row span {
  width: auto;
  background: #fff6d8;
  white-space: normal;
}

.finding-card {
  position: relative;
  min-height: 205px;
  border-top: 6px solid var(--gold-500);
}

.bottom-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
}

.conclusion-card {
  background: linear-gradient(180deg, #fffaf0, #fff1c5);
}

.site-footer {
  margin: 0 var(--frame-margin) 18px;
  padding: 14px 18px;
  color: #fff8dc;
  background: linear-gradient(90deg, var(--wine-900), var(--wine-950));
  border-radius: 14px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}


/* Reusable tool layouts, using the existing journal palette and cards. */
[hidden] { display: none !important; }
.stage-top { scroll-margin-top: 20px; }
.stage-top h1:focus { outline: none; }
.tab-button { min-width: 0; overflow-wrap: anywhere; transition: background 160ms ease, color 160ms ease; }
.finding-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.finding-card { min-height: 145px; }
.finding-card:nth-child(2) { border-top-color: var(--blue); }
.finding-card:nth-child(3) { border-top-color: var(--green); }
.section-card p, .tool-slot p, .interpretation-card p, .tool-intro p { color: var(--muted); line-height: 1.6; }
.tool-intro { margin: 0 0 22px; }
.tool-intro h2 { color: var(--wine-950); font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 14px 0 8px; }
.tool-intro p { max-width: 780px; margin: 0; }
.tool-workspace { display: grid; gap: 18px; }
.input-output { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.explorer { grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); }
.explorer .controls-slot { grid-row: span 2; }
.process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process .controls-slot { grid-column: 1 / -1; min-height: 120px; }
.tool-slot { min-width: 0; padding: 24px; min-height: 235px; background: var(--paper); border: 1px solid var(--cream-300); border-radius: 10px; box-shadow: 0 6px 18px rgba(91, 19, 6, .06); }
.tool-slot h3, .interpretation-card h3 { color: var(--wine-900); font-size: 1.05rem; margin: 0 0 12px; }
.tool-slot p { margin: 0; max-width: 540px; }
.result-slot { background: linear-gradient(145deg, var(--paper), var(--cream-200)); border-top: 4px solid var(--gold-500); }
.visual-slot { display: grid; align-content: center; border: 1px dashed var(--blue); background: linear-gradient(135deg, #fffaf0, #f1f4f5); }
.explorer .result-slot { min-height: 135px; }
.process .visual-slot { border-color: var(--green); background: linear-gradient(135deg, #fffaf0, #f3f5ed); }
.interpretation-card { padding: 22px; margin-top: 18px; border-left: 3px solid var(--gold-500); background: rgba(255, 250, 240, .65); border-radius: 0 8px 8px 0; }
.interpretation-card p { margin: 6px 0 0; }
.source-note { padding-top: 14px; font-size: .86rem; }
/* Ready for real article-specific controls without adding fake input behavior. */
.tool-slot label { display: block; margin: 12px 0 6px; font-weight: 700; }
.tool-slot input, .tool-slot select, .tool-slot textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf7; color: var(--ink); font: inherit; }
.tool-slot :is(input, select, textarea):focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.tool-slot output { display: block; font-size: 1.8rem; color: var(--wine-900); }
.tool-slot :is(svg, canvas, img) { max-width: 100%; }
.content-panel.is-visible { animation: section-reveal 200ms ease-out; }
@keyframes section-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .paper-hero, .lens-grid, .bottom-grid { grid-template-columns: 1fr; }
  .hero-facts { border-left: 0; border-top: 1px solid rgba(255, 224, 138, .22); }
}
@media (max-width: 980px) {
  .app-layout { grid-template-columns: 1fr; }
  .side-panel { border-radius: 12px 12px 0 0; }
  .section-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  :root { --frame-margin: 8px; }
  .page-header { min-height: 0; padding: 4px; border-radius: 12px; }
  .image-banner { min-height: 0; border-radius: 12px; }
  .content-stage, .side-panel { padding: 16px; }
  .hero-copy, .hero-facts, .compact-section, .section-card, .finding-card { padding: 14px; }
  .hero-copy h2 { font-size: 1.42rem; }
  .tool-workspace { grid-template-columns: minmax(0, 1fr); }
  .explorer .controls-slot { grid-row: auto; }
  .tool-slot { padding: 18px; min-height: 160px; }
  .interpretation-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Publication metadata and article actions remain placeholders until verified. */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
.hero-actions .article-link-button { gap: 24px; min-height: 52px; padding: 14px 20px; }
.read-article-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gold-300); font-size: .9rem; text-underline-offset: 4px; }
.read-article-link:hover { color: var(--gold-500); }
.read-article-link.is-placeholder { color: #f5d9a0; }
.read-article-link small { flex-basis: 100%; font-size: .75rem; }
.hero-facts { display: grid; align-content: center; }
.publication-details { padding: 20px; border: 1px solid rgba(255,224,138,.25); border-top: 2px solid var(--gold-500); background: rgba(36,16,12,.16); }
.publication-details h3 { margin: 0 0 22px; color: var(--gold-500); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.publication-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.publication-details dl div { padding: 0 0 12px; background: none; border: 0; border-bottom: 1px solid rgba(255,224,138,.2); border-radius: 0; }
.publication-details dl div:last-child { grid-column: 1 / -1; }
.publication-details dt { text-transform: none; font-weight: 400; font-size: .84rem; }
.publication-details dd { margin-top: 8px; font-size: .95rem; }
.research-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.research-facts div { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--cream-300); }
.research-facts dt { font-size: .78rem; font-weight: 700; color: var(--wine-900); }
.research-facts dd { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
#researchOverview { scroll-margin-top: 20px; }
@media (max-width: 620px) {
  .publication-details { padding: 16px; }
  .research-facts { grid-template-columns: 1fr; }
  .hero-actions { gap: 18px; }
}

/* Publication polish: permanent shell, selected panels and shared controls. */
:root { --section-offset: 28px; --card-radius: 12px; --soft-border: #e7d7b8; --card-shadow: 0 8px 24px rgba(65, 26, 12, .055); }
.app-layout { overflow: visible; }
.side-panel { border-radius: 13px 0 0 13px; }
.side-sticky { position: sticky; top: 24px; }
.tab-button { min-height: 46px; transition: background 180ms, color 180ms, box-shadow 180ms; }
.tab-button.is-active { background: rgba(255,204,61,.16); box-shadow: inset 0 0 0 1px rgba(255,204,61,.12); }
.content-stage { padding: clamp(20px, 3vw, 46px); background: linear-gradient(110deg, #fff6df, #fffaf2 65%); border-radius: 0 13px 13px 0; }
.stage-top { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--soft-border); }
.stage-top h1 { font-size: 1.65rem; }
.eyebrow { letter-spacing: .13em; font-size: .7rem; margin-bottom: 10px; }
.content-panel { display: block; scroll-margin-top: var(--section-offset); }
.content-panel:focus { outline: none; }
.paper-hero { min-height: 350px; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); border-radius: var(--card-radius); background: radial-gradient(ellipse at 0 0, rgba(255,204,61,.15), transparent 65%), linear-gradient(120deg, #650800, #420904); box-shadow: 0 16px 32px rgba(78,6,2,.13); }
.hero-copy { padding: clamp(24px, 3vw, 42px); gap: 20px; }
.hero-label { color: var(--gold-300); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(1.7rem, 3vw, 3.1rem); line-height: 1.16; text-wrap: pretty; }
.hero-copy .hero-authors { color: #fff0c8; font-size: .88rem; padding-left: 12px; border-left: 2px solid var(--gold-500); }
.hero-copy #researchSummary { font-size: .98rem; line-height: 1.65; }
.hero-facts { background: rgba(0,0,0,.1); padding: 24px; }
.publication-details { padding: 20px 0; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; }
.hero-actions .article-link-button { box-shadow: 0 5px 12px rgba(0,0,0,.12); font-size: .85rem; transition: transform 160ms, background 160ms; }
.hero-actions .article-link-button:hover { transform: translateY(-2px); }
.overview-section { margin-top: 32px; }
.compact-section { padding: 24px; background: rgba(255,255,255,.38); border-color: var(--soft-border); border-radius: var(--card-radius); }
.section-heading { gap: 12px; margin-bottom: 22px; }
.section-heading span { background: #f6e6bb; color: var(--wine-900); font-size: .75rem; border-radius: 50%; }
.section-heading h3 { font-size: 1.17rem; letter-spacing: -.015em; }
.lens-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lens-card, .finding-card, .section-card { padding: 22px; border-color: var(--soft-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); background: #fffdf8; }
.lens-card { border-top: 3px solid #d7bc85; }
.lens-card:nth-child(2) { border-top-color: #aab8ae; }
.lens-card:nth-child(3) { border-top-color: #a4b9c9; }
.lens-card h4, .finding-card h4 { font-size: 1rem; margin-bottom: 12px; }
.lens-card p, .finding-card p { font-size: .94rem; line-height: 1.65; }
.finding-card { min-height: 170px; border-top-width: 3px; }
.finding-card:first-child { background: linear-gradient(130deg, #fff8e5, #fffdf8); }
.research-facts { margin-bottom: 24px; gap: 22px; }
.keyword-row { margin-top: 22px; gap: 10px; }
.keyword-row span { text-transform: none; font-size: .78rem; font-weight: 400; border-color: var(--soft-border); border-radius: 20px; padding: 7px 13px; }
#interactiveApplications > .content-panel { margin-top: 56px; padding-top: 40px; border-top: 1px solid #d6bd8c; }
.tool-intro { margin-bottom: 26px; padding-left: 20px; border-left: 3px solid var(--gold-500); }
.tool-intro .kicker { padding: 0; min-height: 0; border: 0; background: none; font-size: .68rem; letter-spacing: .13em; }
.tool-intro h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(1.6rem, 2.7vw, 2.35rem); }
.tool-intro p { max-width: 65ch; font-size: .95rem; }
.tool-workspace { gap: 20px; }
.tool-slot { padding: 28px; border-color: var(--soft-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); background: #fffdf8; }
.tool-slot h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.tool-slot p { font-size: .93rem; }
.controls-slot { border-top: 3px solid #c4aa7d; }
.result-slot { border-top: 3px solid var(--gold-500); background: linear-gradient(135deg, #fff1c5, #fffaf0); }
.result-slot h3 { color: #700b06; }
.visual-slot { min-height: 270px; background: linear-gradient(135deg, #f8fafb, #edf2f4); border-color: #acbdc7; }
.process .visual-slot { background: linear-gradient(135deg, #fafbf6, #eef2e6); }
.interpretation-card { border-left-color: #d2b879; background: #f4eddd; border-radius: 0 var(--card-radius) var(--card-radius) 0; }
.source-note { border-top: 1px solid var(--soft-border); margin-top: 16px !important; }
.tool-slot fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 20px; }
.tool-slot legend { font-weight: 700; margin-bottom: 10px; }
.tool-slot input, .tool-slot select, .tool-slot textarea { min-height: 48px; border-color: #cbb994; border-radius: 8px; transition: border-color 160ms, box-shadow 160ms; }
.tool-slot input[type="range"] { padding: 0; accent-color: var(--wine-800); cursor: pointer; }
.tool-slot input:is([type="checkbox"], [type="radio"]) { width: 20px; min-height: 20px; accent-color: var(--wine-800); }
.tool-slot button { min-height: 46px; padding: 12px 18px; color: var(--cream-100); background: var(--wine-900); border-radius: 8px; transition: background 160ms; }
.tool-slot button:hover { background: var(--wine-800); }
.tool-slot button:disabled { opacity: .5; cursor: not-allowed; }
.tool-slot .field-help { font-size: .8rem; margin-top: 7px; }
.tool-slot [aria-invalid="true"] { border-color: #a62920; }
.result-slot output { font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.8rem); padding: 12px 0; overflow-wrap: anywhere; }
.result-slot [data-result-interpretation] { padding-top: 12px; border-top: 1px solid var(--soft-border); }
.chart-frame { min-width: 0; width: 100%; overflow-x: auto; }
.reveal-ready.is-revealed { animation: card-enter 420ms both; animation-delay: var(--reveal-delay, 0ms); }
.paper-hero { animation: card-enter 440ms ease-out; }
@keyframes card-enter { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .paper-hero { grid-template-columns: minmax(0, 1fr); }
  .lens-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { padding: 20px 28px; }
}
@media (max-width: 980px) {
  .side-panel { border-radius: 13px 13px 0 0; }
  .side-sticky { position: static; }
  .content-stage { border-radius: 0 0 13px 13px; }
}
@media (max-width: 620px) {
  .content-stage { padding: 18px 14px; }
  .hero-copy { padding: 24px 20px; }
  .hero-facts { padding: 8px 20px 20px; }
  .compact-section, .lens-card, .finding-card, .section-card, .tool-slot { padding: 18px; }
  .tool-intro { padding-left: 14px; }
  #interactiveApplications > .content-panel { margin-top: 38px; padding-top: 30px; }
  .tool-workspace { gap: 14px; }
  .stage-top { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Only the selected section is shown; retain its polished tool layout. */
#interactiveApplications > .content-panel { margin-top: 0; padding-top: 0; border-top: 0; }
/* Article-specific charts and readable data summaries. */
.metric-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0; }
.metric-grid dt { color:var(--muted); font-size:.78rem; }
.metric-grid dd { margin:5px 0 0; font-weight:700; font-size:1.05rem; }
.visual-slot svg { width:100%; display:block; height:auto; }
.visual-slot svg text { fill:var(--ink); font-family:Arial,sans-serif; font-size:16px; }
.control-row { display:flex; align-items:center; flex-wrap:wrap; gap:20px; }
.control-row > div { flex:1 1 220px; }
.tool-slot .check-label { display:flex; gap:10px; align-items:center; }
.button-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.controls-slot > button { margin:20px 0 12px; }
.evidence-alert { padding:14px; border-left:3px solid var(--blue); background:#f0f4f5; }
.metadata-note { color:#f5d9a0; font-size:.78rem; line-height:1.6; margin-top:20px; }
.comparison-detail { border-top:1px solid var(--line); padding-top:14px; margin-top:20px; }
.comparison-detail h4 { color:var(--wine-900); margin:0 0 12px; }
.comparison-detail p { margin-top:12px; }
.comparison-detail table { width:100%; border-collapse:collapse; font-size:.88rem; }
.comparison-detail th,.comparison-detail td { text-align:left; padding:9px 4px; border-bottom:1px solid var(--soft-border); }
.comparison-detail caption { text-align:left; font-size:.78rem; color:var(--muted); margin-bottom:8px; }
.explorer { grid-template-columns:minmax(210px,.65fr) minmax(0,1.35fr); }
.explorer .result-slot { grid-column:2; }
.process .visual-slot { align-content:start; }
.process .result-slot output { font-size:clamp(1.5rem,2.4vw,2.2rem); }
.equation { font-family:Georgia,serif; font-size:1.2rem !important; margin-top:18px !important; }
@media(max-width:1120px) { .process { grid-template-columns:1fr; } }
@media(max-width:760px) { .explorer {grid-template-columns:1fr;} .explorer .controls-slot {grid-row:auto;} .explorer .result-slot {grid-column:auto;} }
@media(max-width:400px) { .tool-slot {padding:12px;} .visual-slot svg text {font-size:18px;} .control-row {gap:10px;} }
.source-table { margin-top:18px; border-top:1px solid var(--soft-border); padding-top:14px; }
.source-table summary { cursor:pointer; color:var(--wine-900); font-weight:700; font-size:.86rem; }
.source-table figure { margin:16px 0 0; }
.source-table figcaption { color:var(--muted); font-size:.8rem; line-height:1.6; margin-top:12px; }
.source-image-frame { overflow:auto; }
.source-image-frame img { display:block; width:100%; min-width:580px; }
.visual-slot > div { overflow-x:auto; }
.chart-expanded svg { min-width:600px; }
@media(max-width:980px) { .explorer {grid-template-columns:1fr;} .explorer .controls-slot {grid-row:auto;} .explorer .result-slot {grid-column:auto;} }
/* Article experiences: editorial workbench and explorable story scenes. */
.experience-stage { min-width:0; --experience-blue:#244459; --experience-paper:#fffdf6; }
.experience-stage button { font:inherit; cursor:pointer; min-height:44px; padding:10px 14px; border:1px solid #d6bf94; border-radius:8px; color:var(--wine-900); background:#fffdf5; }
.experience-stage button:hover { background:#fff0c4; border-color:#a77930; }
.experience-stage button[aria-pressed="true"] { color:#fff8df; background:var(--wine-900); border-color:var(--wine-900); }
.experience-stage button:disabled { cursor:default; opacity:.5; }
.experience-bar { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; padding:20px; border-radius:12px 12px 0 0; color:var(--gold-300); background:var(--wine-950); }
.experience-mark { font-size:.73rem; letter-spacing:.16em; font-weight:800; }
.experience-actions { display:flex; gap:8px; flex-wrap:wrap; }
.experience-bar button { color:#fff4d0; border-color:#946336; background:transparent; font-size:.82rem; }
.experience-bar button:hover { color:var(--wine-950); background:var(--gold-300); }
.small-label { display:block; font-size:.67rem; letter-spacing:.12em; font-weight:800; color:var(--muted); }
.editor-brief { padding:24px; background:#f3e8d2; border:1px solid #d8c3a1; border-top:0; }
.brief-options { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.editor-brief p { color:var(--muted); line-height:1.5; margin:12px 0 0; }
.editor-brief .brief-status { font-size:.8rem; color:var(--wine-900); }
.editing-desk { display:grid; grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr); gap:28px; padding:28px; background:linear-gradient(115deg,#e7d8be,#f0e6d4); border-radius:0 0 14px 14px; }
.card-tray > h3 { font-family:Georgia,serif; font-size:1.3rem; color:var(--wine-950); margin:0 0 8px; }
.card-tray > p { color:var(--muted); font-size:.84rem; line-height:1.6; margin:0 0 20px; }
.ingredient-list { display:grid; gap:12px; }
.ingredient { display:grid; grid-template-columns:30px 1fr; gap:12px; padding:16px; background:var(--experience-paper); border:1px solid #cbb591; border-radius:8px; box-shadow:0 4px 0 #dac9ac; cursor:grab; }
.ingredient.is-used { border-left:4px solid #8b9d87; }
.ingredient-number { font-family:Georgia,serif; font-size:1.25rem; color:#a38554; }
.ingredient h4 { margin:5px 0 8px; color:var(--wine-900); font-size:.96rem; }
.ingredient p { margin:0; font-size:.81rem; color:var(--muted); line-height:1.6; }
.ingredient-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.ingredient-actions button { min-height:36px; padding:7px 9px; font-size:.73rem; }
.edition-label { display:block; margin-bottom:12px; color:#64452f; font-size:.7rem; letter-spacing:.12em; font-weight:800; }
.newspaper { min-width:0; padding:clamp(18px,2vw,32px); color:#302d27; background:#fffdf6; border:1px solid #e1d6c0; box-shadow:0 14px 25px #62462d24; }
.newspaper header { border-bottom:3px double #8f806a; padding-bottom:18px; }
.paper-date { display:block; font-size:.57rem; letter-spacing:.13em; text-align:center; color:#827361; }
.paper-masthead { border-top:1px solid #8f806a; border-bottom:1px solid #8f806a; padding:10px 0; margin:12px 0 18px; font-family:Georgia,serif; font-weight:800; font-size:clamp(.9rem,1.6vw,1.3rem); text-align:center; letter-spacing:.07em; }
.newspaper header h3 { margin:0; font-family:Georgia,serif; font-size:clamp(1.7rem,2.8vw,2.6rem); line-height:1.15; font-weight:400; }
.newspaper .paper-deck { color:#7b6c59; font-size:.8rem; margin:12px 0 0; }
.story-block { position:relative; margin-top:18px; padding:18px; background:#fff; border:1px solid #e2d9c6; border-left:3px solid #c9b185; }
.story-block[draggable] { cursor:grab; }
.block-tag { display:block; font-size:.64rem; text-transform:uppercase; letter-spacing:.1em; color:#826e54; }
.story-block h4 { font-family:Georgia,serif; font-size:1.17rem; font-weight:400; margin:8px 0; }
.story-block p { font-family:Georgia,serif; font-size:.96rem; line-height:1.65; margin:0; }
.block-actions { display:flex; flex-wrap:wrap; gap:7px; border-top:1px solid #e6dfd2; padding-top:12px; margin-top:14px; }
.block-actions button { font-size:.71rem; min-height:34px; padding:7px 9px; }
.paper-drop { padding:22px 12px; margin-top:18px; font-size:.8rem; color:#7c6847; text-align:center; border:2px dashed #c9b185; }
.newspaper footer { font-size:.66rem; line-height:1.5; color:#8a7b68; padding-top:22px; }
.card-inspector { display:flex; gap:20px; align-items:start; padding:24px; margin-top:20px; border-left:4px solid var(--blue); background:#edf3f6; border-radius:8px; }
.card-inspector > div { flex:1; }
.card-inspector h3 { font-family:Georgia,serif; color:var(--wine-900); }
.card-inspector p,.editor-feedback p,.comparison-reading { font-size:.91rem; line-height:1.7; color:var(--muted); }
.editor-feedback { padding:24px; margin-top:24px; background:#fff8e7; border:1px solid #dfc895; border-radius:12px; }
.editor-feedback h3 { font-family:Georgia,serif; font-weight:400; color:var(--wine-900); font-size:1.5rem; margin:0 0 16px; }
.coverage-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.coverage-tiles button { text-align:left; font-size:.86rem; }
.coverage-tiles button span { display:block; font-size:.62rem; color:#97795c; letter-spacing:.06em; margin-bottom:8px; text-transform:uppercase; }
.coverage-tiles button.is-present { background:#eef2e8; border-color:#aabb9c; }
.edition-comparison { padding:24px; border:1px solid #d8c3a1; background:#eee1cb; }
.edition-comparison > h3 { font-family:Georgia,serif; font-size:1.5rem; color:var(--wine-950); }
.editions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.reader-edition { padding:32px; background:#e7d8be; }
.reader-edition .newspaper { max-width:720px; margin:auto; }
.experience-announcement { min-height:22px; font-size:.83rem; color:var(--wine-800); }
.fiction-label { color:var(--muted); background:#f1e7d4; padding:12px 20px; font-size:.77rem; margin:0; border:1px solid #dfc9a4; }
.story-chapters { display:flex; gap:10px; margin:22px 0; }
.story-chapters button { flex:1; display:flex; align-items:center; gap:12px; text-align:left; font-size:.9rem; }
.story-chapters button span { font-size:.7rem; opacity:.7; }
.story-scene,.story-ending { border:1px solid #dbcaad; border-radius:14px; background:#fffdf7; overflow:hidden; scroll-margin-top:24px; }
.scene-heading { padding:24px 28px; }
.scene-heading h3 { font-family:Georgia,serif; font-size:clamp(1.5rem,2.6vw,2rem); color:var(--wine-900); font-weight:400; margin:9px 0; }
.scene-heading p { font-size:.88rem; color:var(--muted); line-height:1.6; margin:0; }
.scene-window { position:relative; height:410px; overflow:hidden; }
.scene-art { position:absolute; inset:0; overflow:hidden; }
.scene-art.street { background:linear-gradient(#163246,#37556b 68%,#ad9371 68%); }
.scene-moon { position:absolute; width:60px; height:60px; border-radius:50%; background:#f7e3b5; top:30px; left:12%; box-shadow:0 0 50px #fff3c734; }
.skyline { position:absolute; bottom:31%; left:0; right:0; height:48%; display:flex; align-items:end; gap:4%; }
.skyline i { position:relative; width:20%; height:80%; background:repeating-linear-gradient(90deg,transparent 0 12px,#e4c28d66 12px 20px,transparent 20px 34px),repeating-linear-gradient(0deg,#233c4f 0 20px,transparent 20px 40px); border-top:12px solid #233c4f; }
.skyline i:nth-child(2) {height:65%;}.skyline i:nth-child(3){height:110%;}.skyline i:nth-child(4){height:60%;}
.street-path { position:absolute; bottom:0; width:100%; height:18%; background:#c3ac86; border-top:5px solid #e3ca9c; }
.street-lamp { position:absolute; left:72%; top:30%; width:6px; height:55%; background:#b89c6b; }
.street-lamp:before {content:'';position:absolute;left:-23px;top:-16px;width:50px;height:24px;background:#dfc285;border-radius:30px 30px 5px 5px;}
.street-lamp i {position:absolute;left:-50px;top:10px;width:110px;height:220px;background:linear-gradient(#ffe49b3d,transparent);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);}
.street-tree {position:absolute;left:6%;bottom:18%;width:9px;height:100px;background:#c0a778;}
.street-tree i {position:absolute;top:-60px;left:-35px;width:80px;height:95px;background:#315953;border-radius:50% 50% 40% 40%;}
.mara-figure {position:absolute;width:84px;height:172px;left:38%;bottom:10%;filter:drop-shadow(4px 6px 3px #162a3433);}
.mara-figure i {position:absolute;display:block;}
.mara-figure .hair {width:40px;height:48px;left:24px;top:0;background:#3c241d;border-radius:25px 25px 12px 12px;}
.mara-figure .face {width:28px;height:35px;left:31px;top:8px;background:#d8ad85;border-radius:18px;}
.mara-figure .coat {width:56px;height:87px;left:17px;top:39px;background:#eac466;clip-path:polygon(24% 0,76% 0,100% 100%,0 100%);}
.mara-figure .leg {height:50px;width:13px;background:#23384c;top:121px;}.mara-figure .one{left:27px;transform:rotate(5deg);}.mara-figure .two{left:48px;transform:rotate(-5deg);}
.scene-art.home {background:linear-gradient(#a77f69 0 75%,#d7b996 75%);}
.room-floor {position:absolute;bottom:0;height:18%;width:100%;background:repeating-linear-gradient(90deg,#c09c79 0 100px,#b8926d 100px 103px);}
.room-window {position:absolute;left:12%;top:12%;width:120px;height:130px;background:#25485b;border:12px solid #f4e2b9;box-shadow:0 4px 0 #7e604f;}
.room-window:after,.room-window:before {content:'';position:absolute;background:#f4e2b9;}.room-window:after{height:6px;width:100%;top:50%;}.room-window:before{height:100%;width:6px;left:50%;}
.room-window i {position:absolute;right:15px;top:15px;width:24px;height:24px;background:#f2d399;border-radius:50%;}
.room-frame {position:absolute;left:45%;top:16%;width:60px;height:75px;border:8px solid #654437;background:#ddbc8b;transform:rotate(-3deg);}
.room-sofa {position:absolute;left:14%;bottom:18%;width:30%;height:92px;background:#6a3330;border-radius:20px 20px 6px 6px;border:8px solid #753d37;box-shadow:0 10px 0 -2px #533d2f;}
.room-table {position:absolute;left:55%;bottom:18%;width:18%;height:60px;border-top:12px solid #e1c895;border-left:9px solid #775741;border-right:9px solid #775741;}
.room-plant {position:absolute;right:8%;bottom:18%;width:34px;height:52px;background:#9b5b3b;clip-path:polygon(0 0,100% 0,80% 100%,20% 100%);}
.room-plant:before {content:'';position:absolute;width:5px;height:90px;bottom:0;left:50%;background:#315b47;}
.scene-art.home .mara-figure {left:47%;bottom:13%;}
.scene-thought {position:absolute;top:26px;right:24px;width:min(300px,44%);padding:18px 20px;background:#fff9eaf2;box-shadow:0 8px 24px #14273226;border-radius:12px 12px 12px 0;}
.scene-thought span {font-size:.58rem;letter-spacing:.12em;color:#80664d;}
.scene-thought p {font-family:Georgia,serif;font-size:1.15rem;line-height:1.5;margin:8px 0 0;color:#472a22;}
.scene-hotspot {position:absolute;display:flex;align-items:center;gap:8px;box-shadow:0 6px 20px #14273240;font-size:.8rem !important;}
.scene-hotspot span {display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gold-500);color:var(--wine-950);font-weight:800;}
.scene-hotspot.spot-0 {left:8%;bottom:25%;}.scene-hotspot.spot-1 {right:8%;bottom:14%;}
.scene-hotspot.was-opened {border:2px solid #55714c;}
.scene-bottom {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:26px;}
.scene-clue {padding:22px;background:#f0eadc;border-radius:10px;}
.scene-clue h4 {font-family:Georgia,serif;font-size:1.3rem;font-weight:400;color:var(--wine-900);margin:8px 0 12px;}
.scene-clue p {font-size:.92rem;line-height:1.7;color:var(--muted);margin:0;}
.perspective-choices {border:0;padding:0;margin:0;min-width:0;display:grid;gap:10px;}
.perspective-choices legend {font-size:.76rem;font-weight:700;margin-bottom:12px;color:var(--muted);}
.perspective-choices button {text-align:left;display:grid;gap:8px;}
.perspective-choices button strong {font-size:.88rem;}.perspective-choices button span{font-size:.8rem;line-height:1.5;}
.story-next {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding:18px 26px;background:#f5eddf;border-top:1px solid #dfcfb2;}
.story-next > span {font-size:.76rem;color:var(--muted);}
.story-next > button {background:var(--wine-900);color:#fff4d6;}
.story-ending {padding:28px;}
.story-ending > h3 {font-family:Georgia,serif;font-size:clamp(1.6rem,2.8vw,2.4rem);color:var(--wine-900);font-weight:400;line-height:1.25;margin:12px 0 24px;}
.perspective-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.perspective-pair article {background:#f3ecdE;border:1px solid #e1cfb2;padding-bottom:20px;border-radius:10px;overflow:hidden;}
.mini-scene {position:relative;height:220px;overflow:hidden;margin-bottom:22px;}
.mini-scene .mara-figure {transform:scale(.65);transform-origin:bottom;}
.mini-scene .scene-moon {width:35px;height:35px;top:16px;}
.mini-scene .room-window {width:70px;height:90px;border-width:8px;}
.mini-scene .room-sofa {height:56px;}.mini-scene .room-table{height:40px;}.mini-scene .room-frame{height:40px;width:35px;border-width:5px;}
.perspective-pair .small-label,.perspective-pair blockquote {margin:0 20px;}
.perspective-pair blockquote {font-family:Georgia,serif;font-size:1.2rem;line-height:1.55;margin-top:12px;margin-bottom:18px;color:#56372b;}
.perspective-pair button {margin:0 20px;}
.ending-reading {font-size:1.02rem;line-height:1.8;color:var(--muted);margin:24px 0;}
.story-remix {display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #deceb0;padding-top:20px;}
.story-remix h4 {width:100%;color:var(--wine-900);margin:0 0 8px;}
.story-remix button {font-size:.79rem;}
.story-evidence {margin-top:24px;border:1px solid #dfcfb2;border-radius:10px;background:#f6efdf;padding:20px;}
.story-evidence summary {cursor:pointer;font-weight:700;color:var(--wine-900);}
.story-evidence p {color:var(--muted);font-size:.88rem;line-height:1.75;}
.study-table {margin:20px 0 0;overflow-x:auto;}
.study-table img {display:block;width:100%;min-width:580px;}.study-table figcaption{font-size:.75rem;line-height:1.6;color:var(--muted);margin-top:12px;}
@media(max-width:1200px){.editing-desk{grid-template-columns:1fr;padding:22px;}.ingredient-list{grid-template-columns:repeat(2,minmax(0,1fr));}.coverage-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.scene-bottom,.perspective-pair,.editions{grid-template-columns:1fr;}.story-chapters{gap:6px;}.story-chapters button{font-size:.76rem;display:grid;gap:6px;padding:10px;}.scene-thought{width:52%;right:12px;top:16px;padding:12px;}.scene-thought p{font-size:1rem;}.scene-window{height:380px;}.room-window{left:6%;width:90px;height:110px;}.scene-hotspot.spot-0{left:5%;bottom:30%;}.scene-hotspot.spot-1{right:5%;bottom:8%;}.scene-bottom,.scene-heading,.story-ending{padding:20px;}.card-inspector{flex-direction:column;}.ingredient-list{grid-template-columns:1fr;}.editor-brief,.editor-feedback{padding:18px;}.editing-desk,.reader-edition,.edition-comparison{padding:14px;}.experience-bar{padding:16px;}.brief-options{display:grid;}.coverage-tiles{gap:8px;}.coverage-tiles button{padding:10px;font-size:.77rem;}.newspaper{padding:16px;}.story-block{padding:14px;}.story-next{padding:16px;}.story-next button{width:100%;}.scene-art .mara-figure{left:32%;}.scene-art.home .mara-figure{left:42%;}.scene-thought span{font-size:.55rem;}.scene-thought p{font-size:.95rem;}}
@media(max-width:700px) {
 .ingredient-list {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px;}
 .ingredient {flex:0 0 94%;scroll-snap-align:start;min-width:0;}
 .card-tray > p:after {content:' Swipe sideways to see all six ingredients.';}
 .scene-art.street .mara-figure {left:23%;}
 .scene-hotspot.spot-0 {bottom:25%;}
 .scene-thought {width:52%;}
}
.card-tray,.edition-workbench,.ingredient-list {min-width:0;max-width:100%;}
@media(max-width:1200px) {.editing-desk {grid-template-columns:minmax(0,1fr);}}
@media(max-width:700px) {
 .scene-art.street .mara-figure,.scene-art.home .mara-figure {left:18%;}
 .ingredient-list {width:100%;}
}

/* Source-grounded visual summary in the Overview. */
.research-picture { margin: 24px 0; padding: 28px; border: 1px solid #dccbb8; border-radius: 18px; background: linear-gradient(135deg, #fbf6eb, #fffdf8); }
.picture-heading h4 { margin: 8px 0 26px; font-size: clamp(22px, 3vw, 30px); }
.association-map { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr); align-items: center; gap: 16px; }
.research-node { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 14px; background: #fff; border: 1px solid #d8c8b8; border-radius: 14px; min-height: 190px; justify-content: center; }
.research-node svg { width: 62px; height: 62px; color: #782c39; margin-bottom: 12px; }
.research-node span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #736359; margin-bottom: 8px; }
.research-node strong { font-size: 18px; line-height: 1.35; }
.safety-node { border-color: #782c39; background: #f8edf0; }
.relationship-node { background: #f4efe3; }
.association-link, .construct-link { text-align: center; font-size: 13px; line-height: 1.5; }
.association-link strong, .construct-link strong { display: block; color: #782c39; margin-top: 12px; font-size: 13px; }
.association-link p, .construct-link p { margin: 8px 0; }
.association-line { height: 3px; background: #782c39; position: relative; }
.association-line::before, .association-line::after { content: ''; position: absolute; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: #782c39; }
.association-line::before { left: 0; } .association-line::after { right: 0; }
.construct-link { min-width: 0; }
.construct-link .association-line { background: none; border-top: 2px dashed #a99b89; }
.construct-link .association-line::before, .construct-link .association-line::after { background: #a99b89; }
.visual-comparison { margin-top: 26px; border-top: 1px solid #dccbb8; padding-top: 22px; }
.comparison-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.comparison-heading h5 { margin: 0; font-size: 18px; }
.visual-lenses { display: flex; flex-wrap: wrap; gap: 8px; }
.visual-lenses button { border: 1px solid #bba89a; border-radius: 20px; padding: 10px 14px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; color: #582332; }
.visual-lenses button[aria-pressed="true"] { background: #782c39; color: #fff; border-color: #782c39; }
.visual-lenses button:focus-visible { outline: 3px solid #b78529; outline-offset: 3px; }
.comparison-measure { font-size: 12px; color: #736359; margin: 18px 0 12px; }
.visual-group-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.visual-group { display: grid; padding: 16px; background: #fff; border-radius: 10px; border-left: 4px solid #ba984e; }
.visual-group + .visual-group { border-color: #782c39; }
.visual-group span { font-size: 13px; } .visual-group strong { font-size: 36px; color: #782c39; line-height: 1.4; } .visual-group small { font-size: 12px; color: #736359; }
.comparison-reading { font-size: 13px; line-height: 1.6; }
.research-picture figcaption { padding-top: 14px; border-top: 1px solid #dccbb8; font-size: 11px; line-height: 1.6; color: #736359; }
@media (max-width: 1050px) {
 .association-map { grid-template-columns: minmax(0,1fr); max-width: 540px; margin-inline: auto; gap: 16px; }
 .association-link, .construct-link { position: relative; padding: 12px 26px; }
 .association-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; height: auto; }
 .association-line::before { top: 0; left: -3px; }
 .association-line::after { top: auto; bottom: 0; right: -3px; }
 .construct-link .association-line { border-top: 0; border-left: 2px dashed #a99b89; }
 .association-link strong, .construct-link strong, .association-link p, .construct-link p { position: relative; background: #fcf8ef; padding: 5px; }
}
@media (max-width: 700px) {
 .research-picture { padding: 18px; }
 .association-map { grid-template-columns: minmax(0,1fr); gap: 14px; }
 .relationship-node, .construct-link { grid-column: 1; grid-row: auto; }
 .research-node { min-height: auto; padding: 18px; }
 .association-link, .construct-link { padding: 0 12px; }
 .visual-group { padding: 12px; }
 .visual-group strong { font-size: 30px; }
}

.findings-picture { margin: 22px 0 0; padding: 24px; border: 1px solid #dccbb8; border-radius: 16px; background: #fcf8ef; }
.findings-picture h4, .scope-picture h4 { font-size: 21px; margin: 0 0 20px; }
.finding-comparisons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.comparison-diagram { padding: 20px; background: #fff; border: 1px solid #e0d2c4; border-radius: 12px; }
.comparison-diagram h5 { font-size: 18px; line-height: 1.4; margin: 12px 0 8px; }
.diagram-direction { font-size: 12px; color: #736359; margin-bottom: 22px; }
.mean-row { margin: 16px 0; }
.mean-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; }
.mean-label strong { font-size: 23px; color: #782c39; }
.mean-track { height: 18px; background: #f4eee6; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.mean-fill { height: 100%; border-radius: 4px; }
.mean-fill-0 { background: #ba984e; } .mean-fill-1 { background: #782c39; }
.mean-row small { font-size: 11px; color: #736359; }
.mean-axis { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #dccbb8; padding-top: 6px; font-size: 10px; color: #736359; }
.diagram-verdict { display: grid; gap: 8px; border-top: 1px solid #e0d2c4; padding-top: 16px; font-size: 13px; line-height: 1.5; }
.diagram-verdict strong { color: #782c39; }
.findings-picture figcaption { font-size: 12px; line-height: 1.6; color: #736359; padding-top: 18px; }
.scope-picture { margin: 22px 0 0; padding: 20px; border: 1px solid #dccbb8; background: #fcf8ef; border-radius: 12px; }
.scope-path { padding: 0; margin: 0; list-style: none; }
.scope-path li { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; position: relative; padding-bottom: 24px; }
.scope-path li:not(:last-child)::before { content: ''; position: absolute; top: 31px; bottom: 0; left: 15px; border-left: 2px solid #ba984e; }
.scope-number { width: 32px; height: 32px; display: grid; place-items: center; background: #782c39; color: #fff; border-radius: 50%; font-size: 12px; }
.scope-label { display: block; font-size: 11px; color: #736359; margin-bottom: 5px; }
.scope-path strong { font-size: 15px; display: block; }
.scope-path p { font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.scope-boundary { border-top: 2px dashed #b49c8f; padding-top: 16px; }
.scope-boundary h5 { margin: 0 0 12px; font-size: 14px; }
.scope-boundary p { display: flex; align-items: baseline; gap: 10px; font-size: 12px; margin: 10px 0; }
.scope-boundary p span { color: #782c39; font-weight: bold; font-size: 20px; }
@media (max-width: 700px) {
 .finding-comparisons { grid-template-columns: minmax(0,1fr); }
 .findings-picture { padding: 16px; }
 .comparison-diagram { padding: 16px; }
 .scope-picture { padding: 16px; }
}

.meaning-picture { margin: 22px 0 0; border: 1px solid #dccbb8; border-radius: 12px; background: #fcf8ef; padding: 20px; }
.meaning-picture h4 { font-size: 21px; line-height: 1.35; margin: 0 0 20px; }
.meaning-perspectives { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.meaning-perspective { background: #fff; padding: 20px 14px; border: 1px solid #d8c8b8; border-radius: 12px; text-align: center; }
.meaning-perspective + .meaning-perspective { background: #f8edf0; border-color: #b78f96; }
.meaning-perspective svg { display: block; width: 60px; height: 60px; margin: 0 auto 16px; color: #782c39; }
.meaning-perspective span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #736359; margin-bottom: 10px; }
.meaning-perspective strong { display: block; font-size: 16px; line-height: 1.4; }
.meaning-perspective p { font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.meaning-join { margin: 0 15%; height: 66px; border: solid #ba984e; border-width: 0 2px 2px; border-radius: 0 0 14px 14px; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.meaning-join span { position: relative; top: 12px; padding: 6px 12px; background: #fcf8ef; font-size: 12px; color: #782c39; }
.meaning-join::after { content: ''; position: absolute; width: 2px; height: 20px; top: calc(100% + 22px); background: #ba984e; }
.meaning-outcome { margin-top: 44px; padding: 20px; border-radius: 10px; border: 1px solid #bca263; background: #f5ecd6; text-align: center; }
.meaning-outcome h5 { margin: 0 0 10px; font-size: 18px; }
.meaning-outcome p { font-size: 13px; margin: 0; line-height: 1.6; }
.meaning-picture figcaption { margin-top: 18px; font-size: 11px; line-height: 1.6; color: #736359; }
@media (max-width: 700px) {
 .meaning-picture { padding: 16px; }
 .meaning-perspectives { grid-template-columns: minmax(0,1fr); }
 .meaning-join { height: 42px; }
}

/* Sidebar navigation follows the supplied visual reference. */
.side-panel { padding: 22px 14px; background: #700d05; }
.navigation-label { border-top: 1px solid rgba(255,231,163,.28); padding-top: 22px; color: #ffe394; text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.section-tabs { margin-top: 8px; gap: 8px; }
.tab-button { padding: 10px 12px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; font-size: 16px; font-weight: 400; line-height: 1.4; color: #fffaf0; }
.tab-button:hover { color: #fffaf0; background: rgba(255,255,255,.06); border-color: transparent; }
.tab-button.is-active { color: #fffaf0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,221,186,.45); box-shadow: none; }
.tab-button:focus-visible { outline: 2px solid #ffe394; outline-offset: 2px; }

.accessible-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Match the full sidebar reference, including its identity block. */
.app-layout { grid-template-columns: 281px minmax(0,1fr); }
.side-panel { padding: 18px 15px; background: #710e05; }
.navigation-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,224,170,.3); }
.navigation-badge { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #ffcc3d; color: #24100c; font-size: 18px; font-weight: 700; }
.navigation-brand div { min-width: 0; }
.navigation-brand strong { display: block; color: #fffaf0; font-size: 16px; font-weight: 700; line-height: 22px; }
.navigation-brand div > span { display: block; color: #ffedae; font-size: 14px; line-height: 22px; }
.navigation-label { border: 0; padding-top: 22px; color: #ffedae; font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0; }
.section-tabs { margin-top: 8px; gap: 8px; }
.tab-button { padding: 10px 12px; min-height: 44px; font-size: 16px; line-height: 22px; font-weight: 400; border-radius: 6px; }
.tab-button.is-active { background: #843025; border-color: #ad7660; color: #fffaf0; }
@media (max-width: 980px) { .app-layout { grid-template-columns: minmax(0,1fr); } }

/* Let the long article title use the full hero width. */
.paper-hero { grid-template-columns: minmax(0,1fr); min-height: 0; }
.hero-copy h2 { max-width: none; font-size: clamp(1.65rem,2.2vw,2.5rem); line-height: 1.2; text-wrap: initial; }
.hero-copy p { max-width: none; }
.hero-facts { border-left: 0; border-top: 1px solid rgba(255,224,138,.25); }
#publicationFacts { display: grid; grid-template-columns: minmax(0,.5fr) minmax(0,.7fr) minmax(0,1.8fr); gap: 18px; }
@media (max-width: 620px) { #publicationFacts { grid-template-columns: minmax(0,1fr); gap: 8px; } }
#publicationFacts div:last-child { grid-column: auto; }

/* Keep publication details beside the article introduction on desktop. */
.paper-hero { grid-template-columns: minmax(0,1fr) 300px; }
.hero-facts { border-top: 0; border-left: 1px solid rgba(255,224,138,.25); }
#publicationFacts { grid-template-columns: minmax(0,1fr); gap: 14px; }
@media (max-width: 980px) {
 .paper-hero { grid-template-columns: minmax(0,1fr); }
 .hero-facts { border-left: 0; border-top: 1px solid rgba(255,224,138,.25); }
}

.comparison-guide { margin: 18px 0; padding: 20px; background: #fffdf8; border: 1px solid #dccbb8; border-radius: 12px; }
.comparison-guide h3 { font-size: 19px; margin: 0 0 16px; }
.comparison-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding-left: 22px; font-size: 13px; line-height: 1.6; }
.comparison-guide li strong { display: block; color: #782c39; margin-bottom: 4px; }
.comparison-guide > p { font-size: 12px; color: #736359; }
.edition-differences { padding: 14px 18px; margin-bottom: 18px; border: 1px solid #dccbb8; border-radius: 10px; background: #fffdf8; font-size: 13px; line-height: 1.6; }
dialog.card-inspector { position: fixed; inset: 0; margin: auto; width: min(560px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #ba984e; border-radius: 14px; background: #fffdf8; padding: 24px; color: #24100c; box-shadow: 0 24px 80px #0005; }
dialog.card-inspector:not([open]) { display: none; }
dialog.card-inspector[open] { display: block; }
dialog.card-inspector::backdrop { background: #200a0877; }
dialog.card-inspector p { line-height: 1.7; }
dialog.card-inspector button { margin-top: 16px; }
@media(max-width:700px) { .comparison-guide ol { grid-template-columns: minmax(0,1fr); gap: 12px; } }
.version-selectors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 18px; }
.version-choice { padding: 16px; background: #f8f1e6; border: 1px solid #dccbb8; border-radius: 10px; }
.version-choice label { display: block; margin-bottom: 10px; font-size: 15px; color: #782c39; }
.version-choice select { width: 100%; min-width: 0; padding: 12px; font: inherit; font-size: 14px; background: #fff; border: 1px solid #bba89a; border-radius: 6px; color: #24100c; }
.version-choice p { font-size: 12px; line-height: 1.6; }
@media(max-width:700px) { .version-selectors { grid-template-columns: minmax(0,1fr); } }

.journey-task { display:flex; align-items:center; gap:16px; padding:18px 20px; margin-bottom:20px; background:#f6ecd5; border:1px solid #d4ba7b; border-radius:12px; }
.task-number { flex:0 0 36px; height:36px; display:grid; place-items:center; background:#782c39; color:#fff; border-radius:50%; font-size:12px; }
.journey-task > div { flex:1; } .journey-task strong { font-size:16px; } .journey-task p { margin:5px 0 0; font-size:13px; line-height:1.6; }
.observation-notebook { padding:22px; margin-bottom:20px; background:#fffdf8; border:1px solid #dccbb8; border-radius:12px; }
.observation-notebook h3 { margin:0 0 8px; font-size:20px; } .observation-notebook > p { font-size:12px; color:#736359; }
.notebook-accounts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.notebook-accounts button { display:grid; gap:10px; text-align:left; } .notebook-accounts span,.notebook-accounts small { font-size:11px; } .notebook-accounts strong { font-size:14px; }
.world-clue-dialog { width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; margin:auto; border:1px solid #ba984e; border-radius:16px; padding:28px; background:#fffdf8; color:#24100c; box-shadow:0 24px 80px #0005; }
.world-clue-dialog::backdrop { background:#182c3e88; } .world-clue-dialog h3 { font-family:Georgia,serif; font-size:27px; font-weight:400; color:#782c39; } .world-clue-dialog p { line-height:1.8; font-size:16px; } .world-clue-dialog button { margin-top:12px; }
.story-next button:disabled { opacity:.5; cursor:default; } .hinted-clue { outline:4px solid #ffcc3d; outline-offset:4px; }
.story-save { padding:18px; background:#f6ecd5; border-radius:10px; margin:20px 0; } .story-save p { font-size:12px; line-height:1.6; }
.story-comparison { border:1px solid #dccbb8; padding:20px; border-radius:12px; margin-bottom:24px; }
.story-comparison h4 { margin:0 0 16px; } .saved-story-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .saved-story-pair article { padding:16px; background:#f6f0e5; border-radius:8px; } .saved-story-pair h5 { font-size:17px; line-height:1.4; margin:12px 0; } .saved-story-pair p,.story-comparison > p { font-size:13px; line-height:1.7; }
@media(max-width:700px) { .journey-task { flex-wrap:wrap; padding:16px; } .journey-task > div { flex-basis:calc(100% - 60px); } .journey-task > button { margin-left:52px; } .notebook-accounts { grid-template-columns:repeat(2,minmax(0,1fr)); } .saved-story-pair { grid-template-columns:minmax(0,1fr); } .world-clue-dialog { padding:22px; } }

/* Two places: one focused narrative canvas, then an independent-perspective lab. */
.tw-experience { --tw-ink:#263d43; --tw-muted:#596a69; --tw-line:#ddd9ce; --tw-paper:#fffdf8; color:var(--tw-ink); scroll-margin-top:20px; }
.tw-experience *, .tw-experience *::before, .tw-experience *::after { box-sizing:border-box; }
.tw-experience button { font-family:Arial,Helvetica,sans-serif; font-size:14px; line-height:1.45; font-weight:400; min-height:44px; cursor:pointer; }
.tw-experience button:focus-visible, .tw-experience summary:focus-visible { outline:3px solid #a7701e; outline-offset:3px; }
.tw-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 16px; }
.tw-eyebrow { display:block; color:#67756e; font-size:10px; line-height:1.6; letter-spacing:.13em; font-weight:700; }
.tw-topline .tw-eyebrow { color:#772f35; }
.tw-reset { color:#645f55; background:transparent; padding:8px 12px; border:1px solid transparent; border-radius:7px; }
.tw-reset:hover { border-color:var(--tw-line); background:#faf4e8; }
.tw-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:#f6f1e7; border:1px solid var(--tw-line); border-radius:12px; padding:6px; gap:5px; margin-bottom:20px; }
.tw-steps button { display:flex; align-items:center; gap:12px; text-align:left; color:#64716b; background:transparent; border:1px solid transparent; border-radius:8px; padding:12px 16px; }
.tw-steps button > span:first-child { font-size:11px; color:#8e978b; }
.tw-steps button[aria-current] { background:#fffdf8; border-color:#d9d6cb; color:#713038; box-shadow:0 2px 5px #33221108; }
.tw-steps button[aria-current] > span:first-child { color:#713038; }
.tw-scene-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr); min-height:600px; border:1px solid var(--tw-line); border-radius:18px; overflow:hidden; background:var(--tw-paper); }
.tw-art-panel { position:relative; min-height:580px; overflow:hidden; background:#435c64; }
.tw-illustration { display:block; width:100%; height:100%; position:absolute; inset:0; }
.tw-art-panel::after { content:''; position:absolute; inset:55% 0 0; background:linear-gradient(transparent,#172f38de); pointer-events:none; }
.tw-location { position:absolute; top:24px; left:24px; right:24px; display:flex; align-items:center; gap:8px; color:#fff9e9; font-size:12px; text-shadow:0 1px 3px #0006; }
.tw-location > span:last-child { margin-left:auto; font-size:10px; opacity:.85; }
.tw-location-dot { width:6px; height:6px; border-radius:50%; background:#edcc87; flex:none; }
.tw-art-caption { position:absolute; z-index:1; bottom:28px; left:28px; right:28px; max-width:420px; color:#fff9ec; }
.tw-art-caption > span { font-size:10px; letter-spacing:.17em; color:#edd8af; }
.tw-art-caption h3 { font-family:Georgia,serif; font-weight:400; font-size:clamp(26px,2.5vw,36px); line-height:1.18; margin:10px 0 0; text-wrap:balance; }
.tw-conversation { padding:28px; display:flex; flex-direction:column; min-width:0; }
.tw-conversation-heading > p { color:var(--tw-muted); font-size:13px; line-height:1.65; margin:8px 0 18px; }
.tw-questions { display:grid; gap:7px; }
.tw-questions button { display:flex; gap:12px; align-items:center; background:#f8f5ed; color:#394d4c; text-align:left; padding:11px 13px; border:1px solid #e2ded3; border-radius:8px; font-size:13px; }
.tw-questions button > span:first-child { font-size:10px; opacity:.7; }
.tw-questions button[aria-pressed="true"] { border-color:#899b91; background:#eaf0e8; color:#264e45; }
.tw-questions button:hover { border-color:#899b91; }
.tw-read-mark { margin-left:auto; font-size:12px; }
.tw-dialogue { padding:23px 0; min-height:210px; }
.tw-dialogue blockquote { font-family:Georgia,serif; font-size:clamp(21px,1.8vw,26px); line-height:1.45; font-weight:400; margin:10px 0 16px; color:#293f42; }
.tw-dialogue > p { margin:0; font-size:12px; line-height:1.7; color:var(--tw-muted); padding-left:13px; border-left:2px solid #c0cbbd; }
.tw-scene-footer { border-top:1px solid var(--tw-line); margin-top:auto; padding-top:16px; }
.tw-scene-footer p { font-size:12px; line-height:1.65; color:var(--tw-muted); margin:0 0 15px; }
.tw-experience .tw-primary { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:13px 16px; border:1px solid #713038; border-radius:8px; background:#713038; color:#fffaf0; }
.tw-experience .tw-primary:hover { background:#58252c; }
.tw-fiction { font-size:11px; color:#736b5c; line-height:1.6; margin:14px 4px 0; }
.tw-lab { background:var(--tw-paper); border:1px solid var(--tw-line); border-radius:18px; padding:28px; }
.tw-lab-heading { margin-bottom:24px; }
.tw-lab-heading h3 { font-family:Georgia,serif; font-size:clamp(24px,2.4vw,34px); font-weight:400; line-height:1.25; margin:8px 0 12px; }
.tw-lab-heading p { font-size:13px; color:var(--tw-muted); line-height:1.7; margin:0; }
.tw-lab-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.tw-lab-card { border:1px solid var(--tw-line); border-radius:12px; overflow:hidden; }
.tw-mini-art { height:190px; position:relative; overflow:hidden; background:#435c64; }
.tw-mini-art .tw-illustration { object-fit:cover; }
.tw-mini-art > span { position:absolute; bottom:14px; left:16px; padding:7px 12px; color:#fff; background:#203b41d9; border-radius:20px; font-size:11px; }
.tw-lab-copy { padding:20px; }
.tw-lab-copy fieldset { padding:0; border:0; margin:0; min-width:0; }
.tw-lab-copy legend { padding:0; margin-bottom:12px; font-size:12px; color:var(--tw-muted); }
.tw-switch { display:flex; gap:6px; flex-wrap:wrap; }
.tw-switch button { flex:1; border:1px solid #d7d8cd; border-radius:7px; background:#f7f5ee; padding:10px 12px; color:#53605b; font-size:12px; }
.tw-switch button[aria-pressed="true"] { color:#244d43; background:#e4ece2; border-color:#8ba18c; }
.tw-switch button:hover { border-color:#819481; }
.tw-lab-copy blockquote { margin:20px 0 0; min-height:84px; font-family:Georgia,serif; font-size:21px; line-height:1.5; }
.tw-meaning { display:flex; gap:18px; background:#f2eddf; border:1px solid #ded3b5; border-radius:12px; padding:23px; margin-top:22px; }
.tw-meaning-icon { display:grid; place-items:center; align-self:flex-start; flex:0 0 36px; height:36px; border-radius:50%; background:#e3d6b2; color:#6c5734; font-size:24px; }
.tw-meaning h4 { font-family:Georgia,serif; font-weight:400; font-size:23px; line-height:1.3; margin:7px 0 10px; }
.tw-meaning p { font-size:13px; line-height:1.75; margin:0; color:#675e4d; }
.tw-combinations { margin-top:26px; }
.tw-combinations > div:first-child { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:12px; }
.tw-combinations strong { font-size:13px; font-weight:400; } .tw-combinations > div > span { font-size:11px; color:var(--tw-muted); }
.tw-combination-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.tw-combination-grid button { display:flex; align-items:center; gap:10px; text-align:left; padding:14px; border:1px solid var(--tw-line); border-radius:8px; font-size:12px; color:#59675f; background:#faf8f1; }
.tw-combination-grid button[aria-pressed="true"] { background:#ede6dc; color:#723139; border-color:#b29989; }
.tw-combination-number { font-size:10px; color:#858b7e; } .tw-combination-check { margin-left:auto; }
.tw-insight { font-size:14px; line-height:1.75; color:#4d615b; padding:0 16px; margin:24px 0; border-left:2px solid #879e8f; }
.tw-research { border-top:1px solid var(--tw-line); margin-top:24px; }
.tw-research summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 0 0; cursor:pointer; }
.tw-research summary::-webkit-details-marker { display:none; }
.tw-research summary strong { display:block; font-weight:400; margin-top:5px; font-size:17px; }
.tw-details-icon { font-size:26px; color:#7b857b; }
.tw-research[open] .tw-details-icon { transform:rotate(45deg); }
.tw-research-body > p { font-size:13px; line-height:1.7; color:var(--tw-muted); }
.tw-stat-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.tw-stat-grid > div { display:grid; gap:10px; padding:18px; background:#f7f3e9; border-radius:10px; border-left:3px solid #bfa366; }
.tw-stat-grid > div + div { border-left-color:#7e464a; }
.tw-stat-grid span { font-size:12px; } .tw-stat-grid strong { font-size:30px; font-weight:400; color:#713038; } .tw-stat-grid small { font-size:11px; line-height:1.6; }
.tw-research-note { padding:18px 0 0; margin-top:18px; border-top:1px solid var(--tw-line); }
.tw-research-note strong { font-size:14px; font-weight:400; }
.tw-research-note p { font-size:12px; line-height:1.8; color:var(--tw-muted); margin:8px 0 0; }
@media(min-width:1600px) { .tw-scene-layout { grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr); } .tw-conversation { padding:36px; } }
@media(max-width:1200px) and (min-width:981px) { .tw-scene-layout { grid-template-columns:minmax(0,1fr); } .tw-art-panel { min-height:300px; } .tw-art-panel .tw-illustration { height:155%; top:-28%; } .tw-conversation { padding:24px; } }
@media(max-width:700px) {
 .tw-steps { gap:2px; padding:4px; margin-bottom:14px; } .tw-steps button { display:grid; align-content:start; gap:6px; padding:10px 7px; font-size:11px; line-height:1.45; }
 .tw-topline { padding-bottom:10px; } .tw-topline .tw-eyebrow { font-size:9px; letter-spacing:.08em; }
 .tw-scene-layout { grid-template-columns:minmax(0,1fr); border-radius:12px; }
 .tw-art-panel { min-height:300px; } .tw-art-panel .tw-illustration { height:100%; }
 .tw-location { top:16px; left:18px; right:18px; } .tw-location > span:last-child { display:none; }
 .tw-art-caption { left:18px; right:18px; bottom:18px; max-width:280px; } .tw-art-caption h3 { font-size:26px; }
 .tw-conversation { padding:20px; } .tw-dialogue { min-height:0; padding:22px 0; } .tw-dialogue blockquote { font-size:22px; }
 .tw-questions button { font-size:12px; padding:10px; gap:8px; }
 .tw-lab { padding:18px; border-radius:12px; } .tw-lab-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
 .tw-lab-heading h3 { font-size:26px; } .tw-lab-copy { padding:16px; } .tw-lab-copy blockquote { min-height:0; font-size:20px; }
 .tw-mini-art { height:155px; } .tw-meaning { padding:17px; gap:12px; } .tw-meaning-icon { display:none; } .tw-meaning h4 { font-size:22px; }
 .tw-combination-grid { grid-template-columns:minmax(0,1fr); } .tw-stat-grid { grid-template-columns:minmax(0,1fr); } .tw-switch { flex-direction:column; }
}
@media(prefers-reduced-motion:no-preference) { .tw-dialogue { animation:tw-appear 160ms ease-out; } @keyframes tw-appear { from { opacity:.4; transform:translateY(4px); } to { opacity:1; transform:none; } } }

/* Qualitative indicators track expressed accounts, never a danger score. */
.tw-indicator { margin-top:22px; padding:24px; border:1px solid #d1d8d5; border-radius:12px; background:#f4f7f4; }
.tw-indicator-heading h4 { margin:6px 0 10px; font-family:Georgia,serif; font-weight:400; font-size:25px; line-height:1.3; }
.tw-indicator-heading p { margin:0 0 20px; font-size:13px; line-height:1.7; color:#596a69; }
.tw-indicator-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.tw-indicator-channel { display:flex; gap:12px; padding:18px; border:1px solid #c8d3d5; background:#edf2f3; border-radius:10px; }
.tw-indicator-channel.has-concern { border-color:#d3b47a; background:#fbf2df; }
.tw-indicator-symbol { flex:0 0 32px; height:32px; display:grid; place-items:center; color:#405b66; background:#d6e1e3; border-radius:50%; font-family:Georgia,serif; font-size:26px; }
.has-concern .tw-indicator-symbol { color:#795318; background:#edd6a7; font-family:Arial,sans-serif; font-size:20px; }
.tw-indicator-channel strong { display:block; margin:6px 0; font-weight:400; font-size:17px; line-height:1.4; color:#294a53; }
.has-concern strong { color:#775114; }
.tw-indicator-channel p { font-size:12px; line-height:1.7; color:#536361; margin:0; }
.tw-indicator-summary { font-size:14px; line-height:1.7; margin:18px 0 12px; color:#304b49; }
.tw-indicator-note { padding-top:14px; margin:0; border-top:1px solid #d5dcd5; font-size:12px; color:#596a69; line-height:1.7; }
.tw-indicator details { margin-top:14px; font-size:12px; line-height:1.7; }
.tw-indicator summary { cursor:pointer; color:#345953; min-height:32px; padding-top:5px; }
.tw-indicator details p { margin:8px 0 0; color:#596a69; }
@media(max-width:700px) { .tw-indicator { padding:18px; } .tw-indicator-grid { grid-template-columns:minmax(0,1fr); } .tw-indicator-channel { padding:14px; } }

/* Compact scenario workspace: controls, accounts and readout in one desktop view. */
.tw-lab { padding:22px; }
.tw-lab-heading { margin-bottom:16px; }
.tw-lab-heading h3 { font-family:Arial,Helvetica,sans-serif; font-size:24px; font-weight:400; line-height:1.3; margin:6px 0 7px; }
.tw-lab-heading p { font-size:12px; }
.tw-combinations { margin:0 0 18px; padding:14px 0 16px; border-top:1px solid #e4e0d6; border-bottom:1px solid #e4e0d6; }
.tw-combinations > div:first-child { margin-bottom:10px; }
.tw-combination-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.tw-combination-grid button { padding:10px 12px; border-color:#dedbd1; border-radius:7px; font-size:12px; line-height:1.4; background:#faf8f2; }
.tw-combination-grid button[aria-pressed="true"] { background:#713038; border-color:#713038; color:#fffaf0; }
.tw-combination-grid button[aria-pressed="true"] .tw-combination-number { color:#edd7ce; }
.tw-combination-check { display:none; }
.tw-lab-workspace { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr); gap:20px; align-items:stretch; }
.tw-lab-grid { gap:14px; }
.tw-mini-art { height:140px; }
.tw-mini-art > span { bottom:10px; left:12px; font-size:10px; }
.tw-lab-card { border-color:#deded4; background:#fffefa; }
.tw-lab-copy { padding:16px; }
.tw-lab-copy legend { font-size:12px; line-height:1.5; margin-bottom:10px; }
.tw-lab-copy .tw-switch { flex-direction:column; gap:6px; }
.tw-lab-copy .tw-switch button { padding:8px 10px; min-height:38px; font-size:12px; }
.tw-lab-copy blockquote { font-size:19px; line-height:1.45; margin-top:15px; min-height:0; }
.tw-indicator { margin:0; border:0; border-left:1px solid #dfdfd5; border-radius:0; background:transparent; padding:0 0 0 20px; }
.tw-indicator-heading .tw-eyebrow { color:#64766c; }
.tw-indicator-heading h4 { font-family:Arial,Helvetica,sans-serif; font-size:19px; margin:6px 0 16px; }
.tw-indicator-heading > p { display:none; }
.tw-indicator-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
.tw-indicator-channel { border:0; padding:13px; background:#edf2f0; gap:10px; }
.tw-indicator-channel.has-concern { background:#f7eddb; }
.tw-indicator-symbol { width:26px; height:26px; flex-basis:26px; font-size:22px; }
.has-concern .tw-indicator-symbol { font-size:17px; }
.tw-indicator-channel strong { font-size:15px; margin:4px 0 5px; }
.tw-indicator-channel p { font-size:11px; line-height:1.55; }
.tw-indicator-summary { font-size:12px; line-height:1.6; margin:14px 0 10px; }
.tw-indicator-note { font-size:11px; line-height:1.55; padding-top:10px; }
.tw-indicator details { margin-top:8px; font-size:11px; }
.tw-indicator summary { min-height:30px; }
.tw-meaning { margin-top:18px; padding:16px 18px; border:0; border-left:3px solid #bca56b; border-radius:0 8px 8px 0; background:#f7f3e7; gap:12px; }
.tw-meaning-icon { display:none; }
.tw-meaning h4 { font-family:Arial,Helvetica,sans-serif; font-weight:400; font-size:18px; margin:5px 0 7px; }
.tw-meaning p { font-size:12px; line-height:1.6; }
.tw-lab-bottom { display:flex; gap:20px; align-items:center; justify-content:space-between; margin-top:14px; }
.tw-lab-bottom > p { margin:0; max-width:85ch; font-size:11px; line-height:1.6; color:#64716a; }
.tw-evidence-button { background:transparent; color:#713038; border:1px solid #cbbbab; border-radius:7px; padding:9px 14px; flex-shrink:0; font-size:12px!important; }
.tw-evidence-button:hover { background:#f6eee0; }
.tw-research-modal { position:fixed; inset:0; margin:auto; width:min(740px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:24px; border:1px solid #d5cfbd; border-radius:16px; background:#fffdf8; color:#263d43; overflow:auto; box-shadow:0 20px 80px #15252355; }
.tw-research-modal::backdrop { background:#152c3688; }
.tw-modal-top { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.tw-modal-top h3 { font-family:Georgia,serif; font-size:25px; font-weight:400; margin:0; }
.tw-modal-top button { padding:9px 14px; border:1px solid #cfc7b5; border-radius:7px; background:#faf5e9; color:#713038; flex-shrink:0; }
.tw-research-modal .tw-research { margin-top:16px; }
details.interpretation-card { padding:12px 16px; margin-top:12px; }
details.interpretation-card summary { cursor:pointer; font-size:12px; color:#6c5142; }
details.interpretation-card p { font-size:12px; }
@media(min-width:1600px) { .tw-lab-copy .tw-switch { flex-direction:row; } .tw-mini-art { height:155px; } }
@media(max-width:1240px) { .tw-lab-workspace { grid-template-columns:minmax(0,1fr); } .tw-indicator { border-left:0; border-top:1px solid #dfdfd5; padding:18px 0 0; } .tw-indicator-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
 .tw-lab { padding:16px; } .tw-lab-heading h3 { font-size:22px; }
 .tw-combination-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .tw-combination-grid button { gap:6px; font-size:11px; padding:10px 8px; }
 .tw-combination-number { display:none; } .tw-lab-grid { grid-template-columns:minmax(0,1fr); }
 .tw-indicator-grid { grid-template-columns:minmax(0,1fr); } .tw-lab-bottom { flex-direction:column; align-items:stretch; gap:10px; }
 .tw-research-modal { padding:18px; } .tw-modal-top h3 { font-size:21px; }
}
@media(min-width:1250px) {
 .tw-experience:has(.tw-lab) .tw-topline { padding-bottom:6px; }
 .tw-experience:has(.tw-lab) .tw-steps { margin-bottom:14px; padding:4px; }
 .tw-experience:has(.tw-lab) .tw-steps button { padding:8px 14px; }
 .tw-lab { padding:18px; }
 .tw-lab-heading { margin-bottom:10px; }
 .tw-lab-heading > .tw-eyebrow { display:none; }
 .tw-lab-heading h3 { margin-top:0; font-size:23px; }
 .tw-combinations { padding:10px 0 12px; margin-bottom:14px; }
 .tw-combinations > div:first-child { margin-bottom:8px; }
 .tw-indicator-heading h4 { margin-bottom:12px; }
 .tw-indicator-channel { padding:11px; }
 .tw-indicator-note { margin-top:12px; }
 .tw-meaning { margin-top:14px; padding:13px 16px; }
 .tw-lab-bottom { margin-top:10px; justify-content:flex-end; }
 .tw-mini-art { height:135px; }
 .tw-lab-copy { padding:14px; }
}
