/* Search Evidence Notebook — self-contained editorial stylesheet */
:root{
  --paper:#f6f3ea;
  --paper-2:#efeade;
  --ink:#1f2418;
  --ink-soft:#3a4030;
  --olive:#2f3a24;
  --olive-mid:#4a5537;
  --red:#c53a1d;
  --red-dark:#9e2c14;
  --rule:#c9c2ae;
  --rule-strong:#8f8a76;
  --focus:#1c4fa0;
  --field-bg:#fffdf7;
  --mono:"IBM Plex Mono","SFMono-Regular","Consolas","Liberation Mono",Menlo,monospace;
  --sans:"Helvetica Neue",Helvetica,"Arial","Segoe UI",system-ui,sans-serif;
  --serif:"Iowan Old Style","Charter","Georgia","Times New Roman",serif;
  --measure:68ch;
  --gutter:clamp(16px,4vw,40px);
}

*,*::before,*::after{box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(1.0625rem,0.98rem + 0.35vw,1.1875rem);
  line-height:1.62;
  letter-spacing:0.002em;
  overflow-wrap:break-word;
}

img{display:block;max-width:100%;height:auto;}

main{display:block;}

/* ---------- shared shell (structural only; shell styles supplied elsewhere) ---------- */
.site-header .header-inner,
.site-footer .footer-inner{
  max-width:1320px;
  margin-inline:auto;
  padding-inline:var(--gutter);
}

nav.site-nav ul,
nav.footer-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem 1.25rem;
  font-family:var(--mono);
  font-size:0.8125rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

nav.site-nav a,
nav.footer-nav a{
  color:var(--olive);
  text-decoration:none;
  overflow-wrap:anywhere;
  border-bottom:1px solid transparent;
}

nav.site-nav a:hover,
nav.footer-nav a:hover{color:var(--red-dark);border-bottom-color:var(--red-dark);}

/* ---------- typography ---------- */
h1,h2,h3,h4{
  font-family:var(--sans);
  color:var(--ink);
  line-height:1.14;
  letter-spacing:-0.014em;
  margin:0 0 0.6em;
  font-weight:700;
  text-wrap:balance;
}

h1{
  font-size:clamp(1.95rem,1.4rem + 2.5vw,3.4rem);
  letter-spacing:-0.024em;
  line-height:1.06;
}

h2{
  font-size:clamp(1.45rem,1.2rem + 1vw,2.05rem);
  letter-spacing:-0.018em;
}

h3,.subhead{
  font-size:clamp(1.12rem,1.04rem + 0.35vw,1.3rem);
  letter-spacing:-0.008em;
  margin-top:1.9em;
}

p{margin:0 0 1.05em;}

strong{font-weight:700;color:var(--ink);}

em{font-style:italic;}

a{
  color:var(--olive);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:0.18em;
  text-decoration-color:var(--rule-strong);
  overflow-wrap:anywhere;
}

a:hover{color:var(--red-dark);text-decoration-color:var(--red-dark);}

a:active{color:var(--red-dark);}

:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
  border-radius:1px;
}

code{
  font-family:var(--mono);
  font-size:0.86em;
  background:var(--paper-2);
  border:1px solid var(--rule);
  padding:0.06em 0.32em;
  overflow-wrap:anywhere;
}

ul,ol{margin:0 0 1.15em;padding-left:1.4em;}
li{margin-bottom:0.55em;}
li:last-child{margin-bottom:0;}

/* ---------- mono evidence labels ---------- */
.mono-label{
  font-family:var(--mono);
  font-size:0.72rem;
  line-height:1.5;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--red-dark);
  margin:0 0 0.9em;
  overflow-wrap:anywhere;
}

.kicker{
  display:block;
  margin:0 0 1.5em;
  padding-bottom:0.7em;
  border-bottom:2px solid var(--olive);
  color:var(--olive);
}

/* ---------- home opener ---------- */
.page-home{padding-bottom:clamp(48px,8vw,110px);}

.home-editorial{
  display:block;
  max-width:1320px;
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.editorial-opener{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  padding-top:clamp(32px,6vw,84px);
  padding-bottom:clamp(24px,4vw,48px);
  max-width:calc(var(--measure) + 6ch);
}

.editorial-opener h1{max-width:22ch;}

.standfirst{
  font-family:var(--serif);
  font-size:clamp(1.12rem,1.02rem + 0.5vw,1.32rem);
  line-height:1.6;
  color:var(--ink-soft);
  max-width:var(--measure);
  margin-bottom:1.6em;
}

.opener-links{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0.9rem 1.9rem;
  margin:0;
  padding-top:1.3em;
  border-top:1px solid var(--rule);
}

.action-link{
  font-family:var(--mono);
  font-size:0.8125rem;
  letter-spacing:0.07em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--paper);
  background:var(--red-dark);
  padding:0.7em 1.05em;
  text-decoration:none;
  border:1px solid var(--red-dark);
  overflow-wrap:anywhere;
}

.action-link:hover,
.action-link:active{background:var(--olive);border-color:var(--olive);color:var(--paper);}

.text-link{
  font-family:var(--mono);
  font-size:0.8125rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  text-decoration-thickness:2px;
}

/* ---------- figures ---------- */
.article-figure{
  margin:clamp(28px,4vw,52px) 0;
  min-width:0;
}

.article-figure img{
  width:100%;
  height:auto;
  border:1px solid var(--rule-strong);
  background:var(--paper-2);
}

.article-figure--wide img{
  aspect-ratio:16 / 9;
  object-fit:cover;
}

.article-figure--portrait img{
  aspect-ratio:3 / 4;
  object-fit:cover;
}

.media-caption{
  font-family:var(--mono);
  font-size:0.775rem;
  line-height:1.55;
  letter-spacing:0.012em;
  color:var(--olive);
  margin-top:0.7em;
  padding-left:0.9em;
  border-left:2px solid var(--red);
  max-width:64ch;
}

.home-editorial > .article-figure--wide{
  margin-top:0;
}

/* ---------- editorial sections ---------- */
.editorial-section{
  position:relative;
  max-width:var(--measure);
  padding-block:clamp(30px,5vw,64px);
  border-top:1px solid var(--rule);
  min-width:0;
}

.editorial-section--close{border-top:2px solid var(--olive);}

.section-head{
  margin-bottom:1.3em;
  padding-bottom:0.2em;
}

.section-head h2{max-width:26ch;margin-bottom:0;}

.editorial-section > p{max-width:var(--measure);}

/* margin note (annotated checklist aesthetic) */
.margin-note{
  margin:1.7em 0;
  padding:1.05em 1.15em 1.05em 1.2em;
  background:var(--paper-2);
  border-left:4px solid var(--red);
  max-width:52ch;
}

.margin-note p:last-child{margin-bottom:0;}

.margin-note .mono-label{color:var(--red-dark);margin-bottom:0.55em;}

.margin-note p{font-size:0.975rem;line-height:1.58;}

/* sidebar block */
.sidebar-block{
  margin:1.8em 0 0;
  padding:1.1em 1.2em;
  border:1px solid var(--rule-strong);
  border-top:4px solid var(--olive);
  background:var(--field-bg);
}

.sidebar-block p:last-child{margin-bottom:0;}

.sidebar-block .mono-label{color:var(--olive);margin-bottom:0.55em;}

/* split */
.split{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(20px,4vw,44px);
  align-items:start;
}

.split-main{min-width:0;}
.split-side{min-width:0;}

.split-side .article-figure{margin-top:0.4em;}

/* lists */
.step-list{
  list-style:none;
  padding-left:0;
  margin:1.4em 0 1.5em;
}

.step-list > li{
  position:relative;
  padding-left:2.3em;
  margin-bottom:1em;
  counter-increment:step;
}

.step-list > li::before{
  content:"—";
  position:absolute;
  left:0;
  top:0;
  font-family:var(--mono);
  color:var(--red);
  font-weight:700;
}

.step-list--numbered{counter-reset:step;}

.step-list--numbered > li::before{
  content:counter(step,decimal-leading-zero);
  font-family:var(--mono);
  font-size:0.8125rem;
  letter-spacing:0.06em;
  color:var(--red-dark);
  padding-top:0.28em;
}

.check-list{
  list-style:none;
  padding-left:0;
  margin:1.3em 0 1.5em;
}

.check-list > li{
  position:relative;
  padding-left:1.85em;
  margin-bottom:1em;
}

.check-list > li::before{
  content:"\2713";
  position:absolute;
  left:0.1em;
  top:0;
  font-family:var(--mono);
  font-weight:700;
  color:var(--olive);
  font-size:0.95em;
}

/* handoff two-column grid */
.handoff-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(18px,3vw,40px);
  margin:1.6em 0 1.8em;
  padding-top:1.2em;
  border-top:1px solid var(--rule);
}

.handoff-grid > div{min-width:0;}
.handoff-grid .subhead{margin-top:0;}

.handoff-grid ul{padding-left:0;list-style:none;}

.handoff-grid ul li{
  position:relative;
  padding-left:1.55em;
  font-size:0.975rem;
  line-height:1.55;
}

.handoff-grid > div + div ul li::before{
  content:"\00D7";
  position:absolute;
  left:0;
  top:0;
  font-family:var(--mono);
  font-weight:700;
  color:var(--red-dark);
}

.handoff-grid > div:first-child ul li::before{
  content:"\2022";
  position:absolute;
  left:0.15em;
  top:0;
  color:var(--olive);
}

.closing-line{
  margin-top:1.8em;
  padding-top:1.2em;
  border-top:1px solid var(--rule);
  font-size:0.95rem;
  color:var(--ink-soft);
  max-width:var(--measure);
}

/* ---------- tools ---------- */
.page.tool-page,
.tool-page{
  max-width:1360px;
  margin-inline:auto;
  padding:clamp(28px,5vw,64px) var(--gutter) clamp(48px,8vw,100px);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(24px,4vw,48px);
}

.tool-page > h1{max-width:30ch;}

.page.tool-page > h1,
.page.tool-page > .lede,
.page.tool-page > .note{
  max-width:var(--measure);
  grid-column:1 / -1;
}

.lede{
  font-size:clamp(1.08rem,1rem + 0.4vw,1.24rem);
  line-height:1.6;
  color:var(--ink-soft);
}

.note{
  font-family:var(--mono);
  font-size:0.79rem;
  line-height:1.6;
  color:var(--olive);
  background:var(--paper-2);
  border-left:3px solid var(--olive-mid);
  padding:0.9em 1.05em;
  margin:0 0 1.5em;
}

/* form */
#brief-form{
  min-width:0;
  max-width:820px;
  border-top:2px solid var(--olive);
  padding-top:1.6em;
}

#tool-fields{
  border:0;
  margin:0;
  padding:0;
  min-width:0;
}

#tool-fields legend{
  font-family:var(--mono);
  font-size:0.75rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--red-dark);
  padding:0 0 0.9em;
  margin-bottom:1.2em;
  border-bottom:1px solid var(--rule);
  width:100%;
}

#tool-fields[disabled]{opacity:1;}

.field{
  margin:0 0 1.5em;
  min-width:0;
}

.field label{
  display:block;
  font-family:var(--sans);
  font-weight:700;
  font-size:1rem;
  line-height:1.35;
  letter-spacing:-0.005em;
  margin-bottom:0.35em;
  color:var(--ink);
}

.req{
  font-family:var(--mono);
  font-weight:400;
  font-size:0.7rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--red-dark);
  margin-left:0.25em;
}

.opt{
  font-family:var(--mono);
  font-weight:400;
  font-size:0.7rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--olive-mid);
  margin-left:0.25em;
}

.help{
  font-family:var(--mono);
  font-size:0.765rem;
  line-height:1.55;
  color:var(--olive);
  margin:0 0 0.55em;
  max-width:62ch;
}

.field textarea,
.field input[type="text"],
.field select{
  display:block;
  width:100%;
  max-width:100%;
  font-family:var(--mono);
  font-size:0.9rem;
  line-height:1.55;
  color:var(--ink);
  background:var(--field-bg);
  border:1px solid var(--rule-strong);
  border-radius:0;
  padding:0.6em 0.7em;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
  min-height:2.6em;
}

.field select{
  background-image:
    linear-gradient(45deg,transparent 50%,var(--olive) 50%),
    linear-gradient(135deg,var(--olive) 50%,transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  padding-right:2.2em;
  cursor:pointer;
}

.field textarea{
  resize:vertical;
  min-height:4.2em;
}

.field textarea::placeholder,
.field input::placeholder{
  color:#6a6650;
  opacity:1;
}

.field textarea:hover,
.field input[type="text"]:hover,
.field select:hover{
  border-color:var(--olive);
}

.field textarea:focus-visible,
.field input[type="text"]:focus-visible,
.field select:focus-visible{
  border-color:var(--focus);
  outline:3px solid var(--focus);
  outline-offset:1px;
}

.field textarea:disabled,
.field input:disabled,
.field select:disabled{
  background:var(--paper-2);
  color:#5a5748;
  cursor:not-allowed;
  border-color:var(--rule);
}

/* actions */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.7rem;
  margin-top:1.8em;
  padding-top:1.4em;
  border-top:1px solid var(--rule);
}

.actions button{
  font-family:var(--mono);
  font-size:0.8125rem;
  letter-spacing:0.07em;
  text-transform:uppercase;
  line-height:1.2;
  border-radius:0;
  border:1px solid var(--olive);
  background:var(--paper);
  color:var(--olive);
  padding:0.75em 1.1em;
  cursor:pointer;
  min-width:0;
  transition:background-color 120ms linear,color 120ms linear,border-color 120ms linear;
}

.actions button:hover{background:var(--paper-2);border-color:var(--ink);color:var(--ink);}

.actions button:active{background:var(--rule);}

.actions button#run{
  background:var(--red-dark);
  border-color:var(--red-dark);
  color:var(--paper);
  font-weight:600;
}

.actions button#run:hover,
.actions button#run:active{
  background:var(--olive);
  border-color:var(--olive);
}

.actions button:disabled,
.actions button[disabled]{
  background:var(--paper-2);
  color:#5c5949;
  border-color:var(--rule);
  cursor:not-allowed;
}

/* status and results */
#status{
  font-family:var(--mono);
  font-size:0.79rem;
  line-height:1.55;
  color:var(--olive);
  border-left:3px solid var(--olive-mid);
  padding:0.6em 0 0.6em 0.9em;
  margin:1.4em 0 0.6em;
  max-width:70ch;
  overflow-wrap:anywhere;
}

#status[data-state="error"]{
  color:var(--red-dark);
  border-left-color:var(--red-dark);
  font-weight:600;
}

#status[data-state="ready"],
#status[data-state="success"]{
  color:var(--olive);
  border-left-color:var(--olive);
}

#results{
  margin:0.8em 0 1.6em;
  padding:1.1em 1.2em;
  background:var(--field-bg);
  border:1px solid var(--rule-strong);
  border-top:4px solid var(--olive);
  font-family:var(--mono);
  font-size:0.79rem;
  line-height:1.62;
  color:var(--ink);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  max-height:38rem;
  overflow:auto;
  min-width:0;
}

#results:empty{
  display:none;
}

#results:focus-visible{outline:3px solid var(--focus);outline-offset:2px;}

/* how to use */
.tool-page > section[aria-labelledby="how-to-use"]{
  max-width:var(--measure);
  min-width:0;
  border-top:2px solid var(--olive);
  padding-top:1.5em;
}

.tool-page > section[aria-labelledby="how-to-use"] ol{
  padding-left:1.3em;
}

.tool-page > section[aria-labelledby="how-to-use"] li{
  margin-bottom:0.85em;
}

/* noscript */
noscript p,
.no-script p{
  display:block;
  font-family:var(--mono);
  font-size:0.82rem;
  line-height:1.6;
  color:var(--ink);
  background:var(--paper-2);
  border:1px solid var(--rule-strong);
  border-left:4px solid var(--red-dark);
  padding:1em 1.1em;
  margin:1.4em 0;
  max-width:70ch;
}

/* ---------- articles (guide pages) ---------- */
article.page.article{
  max-width:1360px;
  margin-inline:auto;
  padding:clamp(28px,5vw,64px) var(--gutter) clamp(48px,8vw,100px);
  min-width:0;
}

.article-header{
  max-width:calc(var(--measure) + 4ch);
  padding-bottom:clamp(18px,3vw,32px);
  border-bottom:2px solid var(--olive);
  margin-bottom:clamp(22px,3.5vw,40px);
}

.article-header h1{max-width:24ch;}

.article-header p{
  max-width:var(--measure);
  color:var(--ink-soft);
}

.article-body{
  max-width:var(--measure);
  min-width:0;
}

.article-body > p{max-width:var(--measure);}

.article-body .article-figure{margin:clamp(24px,4vw,44px) 0;}

.article-body .article-figure--wide img{aspect-ratio:16 / 9;object-fit:cover;}

.article-body .article-figure--portrait{max-width:56ch;}

.article-body .article-figure--portrait img{aspect-ratio:3 / 4;object-fit:cover;}

.article-body .article-figure:not(.article-figure--wide):not(.article-figure--portrait) img{
  aspect-ratio:14 / 9;
  object-fit:cover;
}

.article-body aside{
  margin:1.8em 0;
  max-width:56ch;
}

/* ---------- source table ---------- */
.source-table{
  margin:2em 0;
  min-width:0;
  max-width:100%;
}

.table-wrap{
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  border:1px solid var(--rule-strong);
  background:var(--field-bg);
  -webkit-overflow-scrolling:touch;
}

.source-table table,
.table-wrap table{
  border-collapse:collapse;
  width:100%;
  min-width:34rem;
  font-family:var(--mono);
  font-size:0.79rem;
  line-height:1.55;
}

.source-table caption,
.table-wrap caption{
  caption-side:top;
  text-align:left;
  font-family:var(--mono);
  font-size:0.75rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--red-dark);
  padding:0 0 0.6em;
}

.source-table th,
.source-table td,
.table-wrap th,
.table-wrap td{
  text-align:left;
  vertical-align:top;
  padding:0.65em 0.8em;
  border-bottom:1px solid var(--rule);
  overflow-wrap:anywhere;
}

.source-table thead th,
.table-wrap thead th{
  background:var(--paper-2);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:700;
  font-size:0.86rem;
  letter-spacing:0;
  border-bottom:2px solid var(--olive);
}

.source-table tbody tr:last-child td,
.source-table tbody tr:last-child th,
.table-wrap tbody tr:last-child td{
  border-bottom:0;
}

.source-table a{overflow-wrap:anywhere;}

/* generic details */
details{
  margin:1.4em 0;
  border:1px solid var(--rule-strong);
  border-left:4px solid var(--olive);
  background:var(--field-bg);
  max-width:var(--measure);
}

details[open]{background:var(--field-bg);}

summary{
  font-family:var(--sans);
  font-weight:700;
  font-size:0.98rem;
  line-height:1.4;
  padding:0.85em 1em;
  cursor:pointer;
  color:var(--ink);
  list-style-position:outside;
  overflow-wrap:anywhere;
}

summary:hover{background:var(--paper-2);}

summary:focus-visible{outline:3px solid var(--focus);outline-offset:-3px;}

details > *:not(summary){padding-inline:1em;}

details > *:not(summary):first-of-type{margin-top:0.4em;}

details > *:not(summary):last-child{margin-bottom:1em;}

/* role/ownership markers used sparingly */
hr{
  border:0;
  border-top:1px solid var(--rule);
  margin:2.2em 0;
}

/* ---------- responsive ---------- */
@media (min-width:640px){
  .handoff-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .editorial-opener{padding-top:clamp(40px,6vw,84px);}
}

@media (min-width:900px){
  .split{
    grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);
    gap:clamp(32px,4.5vw,64px);
  }
  .split-side .article-figure{position:sticky;top:24px;}
}

@media (min-width:1200px){
  .editorial-section{
    display:grid;
    grid-template-columns:minmax(0,var(--measure));
    padding-block:clamp(36px,4.5vw,68px);
  }
  .section-head{grid-column:1;}
}

.profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(18px,3vw,36px);
  margin:1.6em 0;
  min-width:0;
}

.profile-grid > *{min-width:0;}

.profile-card{
  min-width:0;
  padding:1.1em 1.2em;
  background:var(--field-bg);
  border:1px solid var(--rule-strong);
  border-top:4px solid var(--olive);
}

.profile-card h3,
.profile-card .subhead{margin-top:0;}

.profile-card dl{margin:0;font-size:0.975rem;line-height:1.55;}

.profile-card dt{
  font-family:var(--mono);
  font-size:0.72rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--red-dark);
  margin-top:0.9em;
}

.profile-card dd{margin:0.25em 0 0;color:var(--ink);overflow-wrap:anywhere;}

.profile-meta{
  font-family:var(--mono);
  font-size:0.765rem;
  line-height:1.6;
  color:var(--olive);
  overflow-wrap:anywhere;
}

.list-plain{list-style:none;padding-left:0;margin:1.1em 0;}

.list-plain > li{
  padding:0.55em 0;
  border-bottom:1px solid var(--rule);
  overflow-wrap:anywhere;
}

.list-plain > li:last-child{border-bottom:0;}

.source-list{
  list-style:none;
  padding-left:0;
  margin:1.3em 0;
  font-size:0.975rem;
  line-height:1.55;
}

.source-list > li{
  min-width:0;
  padding:0.7em 0 0.7em 1.2em;
  border-left:2px solid var(--rule);
  margin-bottom:0.6em;
  overflow-wrap:anywhere;
}

.source-list .source-url,
.source-url{
  display:block;
  font-family:var(--mono);
  font-size:0.765rem;
  line-height:1.5;
  color:var(--olive);
  overflow-wrap:anywhere;
  word-break:break-word;
}

.result-card{
  min-width:0;
  margin:1.2em 0;
  padding:1.05em 1.2em;
  background:var(--field-bg);
  border:1px solid var(--rule-strong);
  border-left:4px solid var(--olive);
  font-size:0.975rem;
  line-height:1.6;
  overflow-wrap:anywhere;
}

.result-card > :last-child{margin-bottom:0;}

.error-message,
.field-error{
  min-width:0;
  margin:0.4em 0 1em;
  padding:0.7em 0.9em;
  font-family:var(--mono);
  font-size:0.79rem;
  line-height:1.55;
  color:var(--red-dark);
  background:var(--paper-2);
  border:1px solid var(--red-dark);
  border-left:4px solid var(--red-dark);
  overflow-wrap:anywhere;
}

.noscript-banner{
  margin:0 0 1.4em;
  padding:1em 1.1em;
  font-family:var(--mono);
  font-size:0.82rem;
  line-height:1.6;
  color:var(--ink);
  background:var(--paper-2);
  border:1px solid var(--rule-strong);
  border-left:4px solid var(--red-dark);
  max-width:70ch;
}

.table-wrap{max-width:100%;min-width:0;}

.table-wrap table{width:100%;}

@media (min-width:640px){
  .profile-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}

@media (max-width:390px){
  body{overflow-wrap:anywhere;}
  .editorial-opener,
  .editorial-section,
  .home-editorial,
  .article-header,
  .article-body,
  .tool-page,
  article.page.article{
    max-width:100%;
    padding-inline:12px;
  }
  .split,
  .split-main,
  .split-side,
  .handoff-grid,
  .handoff-grid > div,
  .profile-grid,
  .profile-card,
  .sidebar-block,
  .margin-note,
  details,
  .result-card,
  .source-list,
  .source-list > li,
  .source-list .source-url,
  .source-url,
  .field,
  #brief-form,
  #tool-fields,
  #results,
  #status,
  .error-message{
    min-width:0;
    max-width:100%;
  }
  .article-figure img,
  .article-body .article-figure--wide img,
  .article-body .article-figure--portrait img{
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:auto;
  }
  .media-caption{max-width:100%;font-size:0.8rem;line-height:1.5;}
  .source-list .source-url,
  .source-url,
  .source-table a{overflow-wrap:anywhere;word-break:break-all;}
  .table-wrap{overflow-x:auto;}
  .source-table table,
  .table-wrap table{min-width:0;width:100%;}
  h1{font-size:1.7rem;}
  h2{font-size:1.35rem;}
  .actions button,
  .action-link{width:100%;text-align:center;}
}

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

@media print{
  body{background:#fff;color:#000;font-size:11pt;}
  a{color:#000;text-decoration:underline;}
  .site-header .site-nav,
  .site-footer,
  .actions{display:none !important;}
  .article-figure img{border:1px solid #999;}
  .table-wrap{overflow:visible;}
  .source-table table,
  .table-wrap table{min-width:0;}
  h1,h2,h3{break-after:avoid;}
  .article-figure,.table-wrap,details{break-inside:avoid;}
}
