/* Frontier Lab Editorial Standard — site-wide enforcement layer. */
:root{
  --fle-ink:#111426;
  --fle-muted:#596078;
  --fle-line:#d8dce8;
  --fle-indigo:#5148e5;
  --fle-teal:#008f78;
  --fle-coral:#e96655;
  --fle-sky:#1688b8;
  --fle-lavender:#7765b9;
}

/* One visual, one row. The outer figure has one quiet rule; nested frames do not. */
body.frontier-editorial.frontier-editorial figure{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:2.25rem 0!important;
  padding:0!important;
  overflow-x:auto!important;
  border:0!important;
  border-top:1px solid var(--fle-ink)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.frontier-editorial.frontier-editorial figure :is(.figure-frame,.figure-shell,.plot-shell,.chart-shell,.visual-shell,.canvas,.panel,.graphic-frame){
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.frontier-editorial.frontier-editorial figure :is(img,svg,canvas,picture){
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.frontier-editorial.frontier-editorial figure figcaption{
  box-sizing:border-box!important;
  width:100%!important;
  margin:0!important;
  padding:.8rem 0 0!important;
  border:0!important;
  background:#fff!important;
  color:var(--fle-muted)!important;
  font:400 .86rem/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-align:left!important;
}
body.frontier-editorial.frontier-editorial figure::before{border:0!important}
.frontier-editorial :is(.fig-grid,.figure-grid,.figures-grid,.image-grid,.diagram-grid,.visual-grid){
  display:block!important;
  grid-template-columns:1fr!important;
  columns:1!important;
  width:100%!important;
}
.frontier-editorial :is(.fig-grid,.figure-grid,.figures-grid,.image-grid,.diagram-grid,.visual-grid)>*{
  width:100%!important;
  max-width:100%!important;
  margin-inline:0!important;
}

/* A five-point decision brief, not a decorative card stack. */
.frontier-editorial .paper-tldr{
  box-sizing:border-box!important;
  width:min(100%,76rem)!important;
  margin:2rem auto 2.75rem!important;
  padding:1.1rem 0 0!important;
  border:0!important;
  border-top:1px solid var(--fle-ink)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
.frontier-editorial .paper-tldr h2{
  margin:0 0 .9rem!important;
  color:var(--fle-ink)!important;
  font:700 .76rem/1.2 ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
.frontier-editorial .paper-tldr :is(ol,ul){
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  counter-reset:fle-tldr!important;
}
.frontier-editorial .paper-tldr li{
  min-width:0!important;
  margin:0!important;
  padding:.15rem 1rem .2rem!important;
  border:0!important;
  border-left:1px solid var(--fle-line)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--fle-ink)!important;
  box-shadow:none!important;
  font:500 .9rem/1.5 ui-sans-serif,system-ui,sans-serif!important;
  counter-increment:fle-tldr!important;
}
.frontier-editorial .paper-tldr li:first-child{border-left:0!important;padding-left:0!important}
.frontier-editorial .paper-tldr li::before{
  display:block!important;
  margin-bottom:.42rem!important;
  color:var(--fle-indigo)!important;
  content:"0" counter(fle-tldr)!important;
  font:700 .68rem/1 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  letter-spacing:.08em!important;
}

.frontier-editorial :is(main,article,.prose,.reading) :is(p,li){overflow-wrap:anywhere}
.frontier-editorial :is(pre,.code-block,.table-wrap){max-width:100%;overflow:auto}
.frontier-editorial table{max-width:100%}

@media (max-width:760px){
  .frontier-editorial :is(main,article,.prose,.reading) p{
    text-align:left!important;
    text-justify:auto!important;
    hyphens:none!important;
  }
  .frontier-editorial .paper-tldr :is(ol,ul){display:block!important}
  .frontier-editorial .paper-tldr li{
    padding:.78rem 0!important;
    border-left:0!important;
    border-top:1px solid var(--fle-line)!important;
  }
  .frontier-editorial .paper-tldr li:first-child{border-top:0!important}
  .frontier-editorial figure{margin:1.65rem 0!important}
}

@media (prefers-reduced-motion:reduce){
  .frontier-editorial *,
  .frontier-editorial *::before,
  .frontier-editorial *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
