/*rr-house-style*//* Frontier Lab editorial layer for retained hand-authored atlases. */
:root{
  --fle-ink:#111b26;
  --fle-muted:#596078;
  --fle-rule:#cfdbe7;
  --fle-paper:#fff;
  --fle-soft:#f6f7fc;
  --fle-indigo:#5d93cb;
  --fle-sky:#228a98;
  --fle-green:#1f7c89;
  --fle-coral:#d37755;
  --fle-lavender:#9d7bad;
}

body.legacy-editorial{
  background:var(--fle-paper);
  color:var(--fle-ink);
}

.legacy-editorial article p,
.legacy-editorial main p{
  max-width:72ch;
  text-align:left;
  text-wrap:pretty;
}

.legacy-editorial .legacy-reading-route{
  max-width:980px;
  margin:2rem auto 3rem;
  padding:1.15rem 0 1.25rem;
  border-top:1px solid var(--fle-ink);
  border-bottom:0;
  background:transparent;
}

.legacy-editorial .legacy-reading-route h2{
  margin:0 0 .85rem;
  font:700 .8rem/1.2 ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--fle-muted);
}

.legacy-editorial .legacy-reading-route ol{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:route;
}

.legacy-editorial .legacy-reading-route li{
  counter-increment:route;
  min-width:0;
  padding:.2rem .8rem .2rem 0;
  font:600 .84rem/1.35 ui-sans-serif,system-ui,sans-serif;
  color:var(--fle-ink);
}

.legacy-editorial .legacy-reading-route li::before{
  content:"0" counter(route);
  display:block;
  margin-bottom:.32rem;
  color:var(--fle-indigo);
  font:700 .68rem/1 ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.08em;
}

.legacy-editorial figure,
.legacy-editorial .legacy-scientific-figure,
.legacy-editorial .mermaid-card,
.legacy-editorial .diagram-box,
.legacy-editorial .viz,
.legacy-editorial .fieldpanel,
.legacy-editorial .diagram{
  display:block!important;
  width:100%!important;
  max-width:980px!important;
  margin:2.5rem auto!important;
  padding:0!important;
  overflow-x:auto;
  border:0!important;
  border-top:1px solid var(--fle-ink)!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:var(--fle-paper)!important;
}

.legacy-editorial .legacy-figure-head{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:1rem;
  align-items:baseline;
  padding:.72rem .9rem;
  border:0;
  font:600 .72rem/1.25 ui-sans-serif,system-ui,sans-serif;
  color:var(--fle-muted);
}

.legacy-editorial .legacy-figure-head strong{
  font-size:.96rem;
  color:var(--fle-ink);
}

.legacy-editorial .legacy-figure-head em{
  font-style:normal;
}

.legacy-editorial figure svg,
.legacy-editorial .legacy-scientific-figure svg,
.legacy-editorial .mermaid-card svg,
.legacy-editorial .diagram-box svg,
.legacy-editorial .viz svg,
.legacy-editorial .fieldpanel svg,
.legacy-editorial .diagram svg{
  display:block;
  width:100%!important;
  height:auto!important;
  min-width:680px;
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:var(--fle-paper)!important;
}

.legacy-editorial figcaption,
.legacy-editorial .legacy-figure-caption{
  display:block;
  max-width:none!important;
  margin:0!important;
  padding:.82rem .9rem 1rem!important;
  border:0!important;
  color:var(--fle-muted)!important;
  background:var(--fle-paper)!important;
  font:400 .82rem/1.55 ui-sans-serif,system-ui,sans-serif!important;
  text-align:left!important;
}

.legacy-editorial .grid2,
.legacy-editorial .grid3,
.legacy-editorial .grid16,
.legacy-editorial .fig-grid,
.legacy-editorial .figure-grid,
.legacy-editorial .concept-grid{
  grid-template-columns:minmax(0,1fr)!important;
}

.legacy-editorial figure img,
.legacy-editorial .legacy-scientific-figure img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Remove presentation-card furniture while retaining authored geometry. */
.legacy-editorial figure svg rect[rx],
.legacy-editorial .legacy-scientific-figure svg rect[rx]{rx:0!important;ry:0!important}

.legacy-editorial .hero-stats{
  border-radius:0!important;
  box-shadow:none!important;
}

.legacy-editorial .source-review-notice{
  max-width:980px;
  margin:2rem auto;
  padding:1rem 1.1rem;
  border-left:4px solid var(--fle-coral);
  background:var(--fle-soft);
  color:var(--fle-ink);
  font:500 .9rem/1.55 ui-sans-serif,system-ui,sans-serif;
}

.legacy-editorial details.source-review-archive{
  max-width:980px;
  margin:2rem auto 5rem;
  border-top:2px solid var(--fle-ink);
  border-bottom:1px solid var(--fle-rule);
}

.legacy-editorial details.source-review-archive>summary{
  padding:1rem 0;
  cursor:pointer;
  font:700 .86rem/1.3 ui-sans-serif,system-ui,sans-serif;
}

@media(max-width:760px){
  .legacy-editorial article p,
  .legacy-editorial main p{text-align:left;hyphens:none;-webkit-hyphens:none}
  .legacy-editorial .legacy-reading-route{margin:1.4rem 1rem 2rem}
  .legacy-editorial .legacy-reading-route ol{grid-template-columns:1fr}
  .legacy-editorial .legacy-reading-route li{padding:.5rem 0;border-top:1px solid var(--fle-rule)}
  .legacy-editorial .legacy-reading-route li::before{display:inline;margin-right:.65rem}
  .legacy-editorial .legacy-figure-head{grid-template-columns:1fr;gap:.25rem}
}
