/* ============================================================
   MORPHEUS8 ELITE · editorial stylesheet
   A dossier, not a brochure.
   ============================================================ */

:root{
  --paper:#f4f1ec;
  --ink:#15201d;
  --muted:#5b6661;
  --line:#c9c2b4;
  --accent:#3c5a52;
  --inverse:#15201d;
  --inverse-ink:#f4f1ec;
  --display:'Fraunces',Georgia,'Times New Roman',serif;
  --text:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --max:1280px;
  --measure:68ch;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
img{max-width:100%;display:block}
a{color:inherit}
:focus{outline:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

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

body.ed{
  background:var(--paper);
  color:var(--ink);
  font:400 17px/1.7 var(--text);
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}

.ed-skip{
  position:absolute;left:-9999px;top:auto;
  background:var(--ink);color:var(--inverse-ink);
  padding:12px 18px;font:600 13px/1 var(--text);
  letter-spacing:.08em;text-transform:uppercase;z-index:999;
}
.ed-skip:focus{
  left:12px;top:12px;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.ed-header{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:relative;
}
.ed-header-inner{
  max-width:var(--max);margin:0 auto;padding:22px 20px 18px;
  display:flex;flex-direction:column;gap:14px;
}
.ed-wordmark{
  display:flex;align-items:baseline;gap:.35em;
  font-family:var(--display);font-weight:600;
  font-size:clamp(28px,6vw,46px);
  letter-spacing:-.01em;line-height:1;color:var(--ink);text-decoration:none;
}
.ed-wordmark-sub{
  font-style:italic;font-weight:400;color:var(--accent);
  font-size:.62em;
}
.ed-nav{
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  border-top:1px solid var(--line);
}
.ed-nav ul{
  list-style:none;margin:0;padding:10px 0 0;
  display:flex;gap:4px;white-space:nowrap;
}
.ed-nav a{
  display:block;padding:7px 12px;
  font:600 11px/1.3 var(--text);letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;
}
.ed-nav a:hover{color:var(--ink)}
.ed-nav a:focus-visible{outline-offset:1px}

@media (min-width:768px){
  .ed-header-inner{flex-direction:row;align-items:center;gap:28px;padding:28px 32px}
  .ed-nav{overflow:visible;border-top:0}
  .ed-nav ul{padding-top:0;margin-left:auto}
}

/* ============================================================
   HOME · intro strapline
   ============================================================ */
.ed-main{max-width:var(--max);margin:0 auto;padding:0 20px}
.ed-intro{
  padding:26px 0 24px;border-bottom:1px solid var(--line);
  display:flex;flex-direction:column;gap:6px;
}
.ed-h1{
  font-family:var(--text);font-weight:600;
  font-size:14px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);margin:0;
}
.ed-dek{
  margin:0;font-family:var(--display);font-weight:400;font-style:italic;
  font-size:clamp(16px,2.4vw,20px);color:var(--ink);max-width:56ch;
}

/* ============================================================
   COVER STORY (split)
   ============================================================ */
.ed-cover{padding:0;border-bottom:1px solid var(--line)}
.ed-cover-link{
  display:grid;grid-template-columns:1fr;text-decoration:none;color:inherit;
}
.ed-cover-media{
  margin:0;aspect-ratio:4/3;overflow:hidden;background:var(--line);
}
.ed-cover-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .25s ease;
}
.ed-cover-link:hover .ed-cover-media img{transform:scale(1.04)}
.ed-cover-text{padding:28px 0 40px}
.ed-cover-title{
  font-family:var(--display);font-weight:600;
  font-size:clamp(34px,7vw,64px);line-height:.98;letter-spacing:-.01em;
  margin:0 0 .4em;max-width:16ch;
}
.ed-standfirst{
  font-size:18px;line-height:1.6;color:var(--muted);
  max-width:46ch;margin:0 0 20px;font-family:var(--text);
}
.ed-meta{
  margin:0;font:600 12px/1 var(--text);letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted);
  display:flex;flex-wrap:wrap;gap:0;align-items:center;
}
.ed-dot{margin:0 8px;color:var(--line)}

@media (min-width:768px){
  .ed-cover-link{grid-template-columns:1.2fr 1fr;align-items:stretch;gap:0}
  .ed-cover-media{aspect-ratio:auto;height:100%;min-height:560px}
  .ed-cover-text{padding:48px 48px 48px 56px;display:flex;flex-direction:column;justify-content:center}
}
@media (min-width:1280px){
  .ed-cover-media{min-height:720px}
  .ed-cover-title{font-size:clamp(52px,6vw,78px)}
}

/* ============================================================
   FEATURES GRID · ledger
   ============================================================ */
.ed-band{padding:56px 0}
.ed-band + .ed-band{border-top:1px solid var(--line)}
.ed-band-title{
  font:600 12px/1 var(--text);letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent);margin:0 0 28px;padding-bottom:14px;
  border-bottom:1px solid var(--ink);display:inline-block;
}
.ed-features .ed-grid{
  display:grid;grid-template-columns:1fr;gap:34px;
}
.ed-card-link{display:block;text-decoration:none;color:inherit}
.ed-card-media{margin:0;aspect-ratio:3/2;overflow:hidden;background:var(--line)}
.ed-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.ed-card-link:hover .ed-card-media img{transform:scale(1.04)}
.ed-card-text{padding:16px 0 0}
.ed-card-title{
  font-family:var(--display);font-weight:600;line-height:1.1;
  font-size:22px;margin:0 0 .4em;
}
.ed-card-dek{
  font-size:15px;line-height:1.6;color:var(--muted);margin:0 0 .6em;max-width:42ch;
}
.ed-features--ledger .ed-card--1{grid-column:1/-1}
.ed-features--ledger .ed-card--1 .ed-card-media{aspect-ratio:16/8}
.ed-features--ledger .ed-card--1 .ed-card-title{font-size:clamp(26px,4vw,36px)}

@media (min-width:768px){
  .ed-features .ed-grid{grid-template-columns:repeat(2,1fr);gap:40px 36px}
  .ed-features--ledger .ed-card--1{grid-column:1/-1}
}
@media (min-width:1280px){
  .ed-features .ed-grid{grid-template-columns:repeat(3,1fr)}
  .ed-features--ledger .ed-card--1{grid-column:1/-1;display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center}
  .ed-features--ledger .ed-card--1 .ed-card-media{aspect-ratio:auto;height:100%;min-height:380px}
}

/* ============================================================
   NEWSLETTER · inverse band
   ============================================================ */
.ed-newsletter{
  background:var(--inverse);color:var(--inverse-ink);
}
.ed-newsletter .ed-band-title{color:var(--inverse-ink);border-bottom-color:var(--inverse-ink)}
.ed-newsletter-inner{max-width:640px}
.ed-newsletter-dek{
  font-family:var(--display);font-style:italic;font-weight:400;
  font-size:clamp(17px,2.4vw,21px);color:var(--inverse-ink);
  margin:0 0 28px;max-width:46ch;opacity:.92;
}
.ed-form{margin:0}
.ed-form-label{
  display:block;font:600 11px/1 var(--text);letter-spacing:.14em;
  text-transform:uppercase;color:var(--inverse-ink);opacity:.7;margin-bottom:10px;
}
.ed-form-row{display:flex;flex-direction:column;gap:10px}
.ed-form-row input{
  background:transparent;border:1px solid var(--inverse-ink);color:var(--inverse-ink);
  padding:13px 14px;font:400 15px/1.4 var(--text);width:100%;
}
.ed-form-row input::placeholder{color:var(--inverse-ink);opacity:.5}
.ed-form-row button{
  background:var(--inverse-ink);color:var(--inverse);border:1px solid var(--inverse-ink);
  padding:13px 22px;font:600 12px/1 var(--text);letter-spacing:.1em;text-transform:uppercase;
  cursor:pointer;transition:background .2s ease,color .2s ease;
}
.ed-form-row button:hover{background:transparent;color:var(--inverse-ink)}
@media (min-width:600px){
  .ed-form-row{flex-direction:row}
  .ed-form-row input{flex:1}
}

/* ============================================================
   INDEX · contents columns
   ============================================================ */
.ed-index-list{
  list-style:none;counter-reset:idx;margin:0;padding:0;
  columns:1;column-gap:48px;
}
.ed-index-list li{
  counter-increment:idx;break-inside:avoid;
  border-top:1px solid var(--line);padding:12px 0;
}
.ed-index-list li:before{
  content:counter(idx,decimal-leading-zero);
  font:600 11px/1.6 var(--text);color:var(--accent);margin-right:14px;
}
.ed-index-list a{text-decoration:none;color:var(--ink)}
.ed-index-list a:hover{color:var(--accent)}
.ed-index-list b{font-weight:500;font-family:var(--display);font-size:16px}

@media (min-width:768px){.ed-index-list{columns:2}}
@media (min-width:1280px){.ed-index-list{columns:3}}

/* ============================================================
   FOOTER
   ============================================================ */
.ed-footer{
  background:var(--inverse);color:var(--inverse-ink);
  border-top:1px solid var(--line);
}
.ed-footer-inner{max-width:var(--max);margin:0 auto;padding:48px 20px 26px}
.ed-footer .ed-wordmark{color:var(--inverse-ink)}
.ed-footer .ed-wordmark-sub{color:#9fb4ac}
.ed-footer-cols{
  display:grid;grid-template-columns:1fr;gap:28px;margin:36px 0 32px;
}
.ed-footer-cols h2{
  font:600 11px/1 var(--text);letter-spacing:.16em;text-transform:uppercase;
  color:#9fb4ac;margin:0 0 14px;
}
.ed-footer-cols ul{list-style:none;margin:0;padding:0}
.ed-footer-cols li{margin:0 0 10px}
.ed-footer-cols a{
  color:var(--inverse-ink);text-decoration:none;font-size:14.5px;border-bottom:1px solid transparent;
}
.ed-footer-cols a:hover{border-bottom-color:var(--inverse-ink)}
.ed-fine{
  border-top:1px solid rgba(244,241,236,.2);padding-top:18px;
  font-size:12.5px;color:#9fb4ac;
}
@media (min-width:768px){
  .ed-footer-cols{grid-template-columns:repeat(4,1fr)}
}

/* ============================================================
   ARTICLE PAGES · override the inline stylesheet
   (specificity raised with html/body prefixes)
   ============================================================ */
html body{
  background:var(--paper);color:var(--ink);
  font:400 17px/1.75 var(--text);
}
html body header.site{
  background:var(--paper);border-bottom:1px solid var(--line);
}
html body .hbar{padding:18px 0;flex-wrap:wrap;gap:14px}
html body .brand .nm{
  font-family:var(--display);font-weight:600;font-size:22px;color:var(--ink);letter-spacing:-.01em;
}
html body .brand .nm i{font-style:italic;color:var(--accent)}
html body nav.hnav{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-left:0;width:100%}
html body nav.hnav ul{flex-wrap:nowrap;white-space:nowrap}
html body nav.hnav a{
  font:600 11px/1.3 var(--text);letter-spacing:.14em;color:var(--muted);
}
html body nav.hnav a:hover{color:var(--ink)}
html body nav.hnav a[aria-current]{color:var(--ink);border-bottom-color:var(--accent)}
@media (min-width:768px){
  html body nav.hnav{overflow:visible;width:auto;margin-left:auto}
}

html body .wrap{max-width:860px}

html body main.nb-art{display:block;padding:0 20px;max-width:860px;margin:0 auto}
html body article.nb-piece{max-width:var(--measure);margin:0 auto}

html body .nb-piece h1{
  font-family:var(--display);font-weight:600;color:var(--ink);
  font-size:clamp(32px,6vw,54px);line-height:1.04;letter-spacing:-.01em;
  margin:28px 0 10px;max-width:20ch;
}
html body .nb-piece > p.meta{
  font:600 12px/1 var(--text);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
  margin:0 0 30px;padding-bottom:22px;border-bottom:1px solid var(--line);
}
html body p.answer{
  font-family:var(--display);font-weight:400;font-size:21px;line-height:1.5;color:var(--ink);
  background:transparent;border-left:3px solid var(--accent);padding:4px 0 4px 22px;margin:0 0 2.4em;
}
html body p.answer strong{font-weight:600}

html body .prose,
html body .nb-piece > p,
html body .nb-piece > h2,
html body .nb-piece > ol,
html body .nb-piece section{font-size:17.5px;line-height:1.78}

html body .nb-piece h2{
  font-family:var(--display);font-weight:600;color:var(--ink);
  font-size:clamp(23px,3.4vw,30px);margin:2.2em 0 .6em;scroll-margin-top:24px;
  padding-top:1em;border-top:1px solid var(--line);
}
html body .nb-piece h2:first-of-type{border-top:0;padding-top:0}
html body .nb-piece h3{
  font-family:var(--text);font-weight:600;color:var(--ink);font-size:18.5px;margin:1.8em 0 .5em;
}
html body .nb-piece p{margin:0 0 1.25em;max-width:none}
html body .nb-piece > section > p:first-of-type:first-letter{
  float:left;font-family:var(--display);font-weight:600;color:var(--accent);
  font-size:3.4em;line-height:.8;padding:.05em .08em 0 0;
}

html body .prose a,
html body .nb-piece a,
html body td a,
html body .ans a,
html body .note a,
html body .src a{
  color:var(--accent);text-decoration:underline;
  text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--line);
}
html body .prose a:hover,
html body .nb-piece a:hover{text-decoration-color:var(--accent)}

html body .nb-piece ul,
html body .nb-piece ol{margin:0 0 1.5em;padding-left:1.3em}
html body .nb-piece li{margin:.5em 0}
html body .nb-piece li::marker{color:var(--accent);font-weight:600}

html body blockquote{
  margin:2.4em 0;padding:1.4em 0 1.4em 1.6em;border-left:3px solid var(--accent);
  font-family:var(--display);font-style:italic;font-size:22px;line-height:1.5;color:var(--ink);
}
html body blockquote p{margin:0}
html body blockquote strong{font-style:normal;color:var(--accent);font-weight:600}

html body .tscroll{
  overflow-x:auto;-webkit-overflow-scrolling:touch;margin:2.2em 0;
  border-top:2px solid var(--ink);border-bottom:1px solid var(--line);
}
html body table{
  width:100%;border-collapse:collapse;font:400 15px/1.6 var(--text);min-width:540px;
}
html body th,html body td{
  text-align:left;padding:13px 16px 13px 0;border-bottom:1px solid var(--line);vertical-align:top;
}
html body thead th{
  font:600 11px/1.4 var(--text);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
}
html body td:first-child,html body th:first-child{font-weight:600;color:var(--ink)}

html body .note{
  border:1px solid var(--line);border-left:3px solid var(--ink);background:transparent;
  padding:20px 24px;margin:2.2em 0;
}
html body .note.warn{border-left-color:var(--accent);background:rgba(60,90,82,.06)}
html body .note .lbl,
html body .src .lbl,
html body .ans .lbl,
html body .toc .lbl{
  font:600 11px/1 var(--text);letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
}

html body .toc{border:1px solid var(--line);padding:24px 26px}
html body .toc a{color:var(--ink);font-size:15.5px}
html body .toc a:before{color:var(--accent)}

html body .fig{border:1px solid var(--line);background:transparent;padding:26px 24px 20px}
html body .fig figcaption{color:var(--muted);border-top:1px solid var(--line)}

html body .faq h3{
  font-family:var(--display);font-weight:600;font-size:18px;color:var(--ink);margin:1.8em 0 .4em;
}

html body ol.steps li:before{
  border:1px solid var(--ink);color:var(--accent);background:var(--paper);
}
html body .cards{background:var(--line);border:1px solid var(--line)}
html body .card{background:var(--paper)}
html body .card:hover{background:rgba(60,90,82,.06)}
html body .card .n{color:var(--accent)}

/* hero image block that opens an article */
html body .ed-hero{
  margin:0 0 2.4em;border:1px solid var(--line);
}
html body .ed-hero figure{margin:0}
html body .ed-hero img{
  width:100%;aspect-ratio:16/9;object-fit:cover;display:block;
}
html body .ed-hero figcaption{
  padding:14px 18px;font:400 14px/1.6 var(--text);color:var(--muted);border-top:1px solid var(--line);
}
@media (min-width:1280px){
  html body .ed-hero img{aspect-ratio:21/9}
}

/* three pictured story cards at the foot */
html body .ed-more{margin:3.2em 0 1em;padding-top:2.2em;border-top:2px solid var(--ink)}
html body .ed-more h2{
  font:600 12px/1 var(--text);letter-spacing:.16em;text-transform:uppercase;color:var(--accent);
  margin:0 0 24px;border:0;padding:0;
}
html body .ed-more ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:28px}
html body .ed-more li{margin:0}
html body .ed-more a{text-decoration:none;color:inherit;display:block}
html body .ed-more figure{margin:0;aspect-ratio:3/2;overflow:hidden;background:var(--line)}
html body .ed-more img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
html body .ed-more a:hover img{transform:scale(1.04)}
html body .ed-more h3{
  font-family:var(--display);font-weight:600;font-size:18px;margin:14px 0 0;color:var(--ink);
}
@media (min-width:768px){
  html body .ed-more ul{grid-template-columns:repeat(3,1fr)}
}

/* footer on article pages */
html body footer.site{background:var(--inverse);color:var(--inverse-ink);border-top:1px solid var(--line)}
html body footer.site .brand .nm{color:var(--inverse-ink)}
html body footer.site .brand .nm i{color:#9fb4ac}
html body footer.site h3{
  font:600 11px/1 var(--text);letter-spacing:.16em;text-transform:uppercase;color:#9fb4ac;
}
html body footer.site a{color:var(--inverse-ink);text-decoration:none}
html body footer.site a:hover{text-decoration:underline}
html body footer.site .fine,
html body footer.site .nb-tm{color:#9fb4ac;border-top:1px solid rgba(244,241,236,.2)}
html body footer.site .fine a,
html body footer.site .nb-tm a{color:var(--inverse-ink)}

@media (min-width:768px){
  html body footer.site .cols{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
}

/* hub-safety v2 */
/* Held by the Hub under every title's own design */
.ed-header nav{overflow-x:auto;scrollbar-width:none}
.ed-header nav::-webkit-scrollbar{display:none}
.ed-header nav ul,.ed-header nav ol{flex-wrap:nowrap}
.ed-header nav li,.ed-header nav a{flex:0 0 auto;min-width:max-content;white-space:nowrap}
img{max-width:100%}
/* The cover owns the first screen: the H1 above it is the title's strapline, set modestly (20 November 2026) */
.ed-intro{padding-top:clamp(1rem,2.5vw,2rem)!important;padding-bottom:clamp(.75rem,2vw,1.5rem)!important;margin-bottom:0!important}
.ed-intro .ed-h1{font-size:clamp(1.3rem,2.3vw,1.9rem)!important;line-height:1.2!important;max-width:min(44ch,100%);min-width:0;margin-bottom:.35em!important}
/* No page is wider than a phone (2 December 2026). Each rule is :where() so any rule of the title's own wins over it:
   a column holds its content instead of growing to its widest line, pictures and frames never pass their box, a long
   word or address wraps, and a table or code block scrolls inside its own box on a small screen. Links and list items
   keep their size, so a row that scrolls sideways (a masthead) still scrolls instead of squeezing. */
:where(aside,nav,main,fieldset),:where(:not(header,footer):has(> aside,> nav)) > :where(div,section,article,aside,nav,main){min-width:0}
:where(img,video,canvas,iframe,embed,object){max-width:100%}
:where(img,video){height:auto}
:where(body){overflow-wrap:break-word}
:where(pre){max-width:100%;overflow-x:auto}
@media (max-width:640px){
:where(div,figure,section,aside):has(> table:only-child){display:block!important;width:auto!important;height:auto!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important}
:where(table:not(:only-child)){display:block!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important}
:where(.ed-main){overflow-x:clip}
}
.ed-intro .ed-dek{font-size:clamp(.95rem,1.2vw,1.05rem)!important;max-width:60ch}
/* The newsletter, easy to find: the masthead's Subscribe link and the sign-up at the foot of an article */
.ed-header .ed-subscribe{font-weight:700!important;text-decoration:underline!important;text-underline-offset:.3em}
.ed-signup{margin:clamp(2rem,5vw,4rem) auto!important;max-width:min(100% - 2rem,72rem);padding:clamp(1.5rem,4vw,3rem)!important;box-sizing:border-box}
.ed-signup .ed-form-row{display:flex;flex-wrap:wrap;gap:.5rem}
.ed-signup input[type=email]{flex:1 1 14rem;min-width:0}
.ed-skip{position:absolute;left:-9999px}
.ed-skip:focus{left:1rem;top:1rem;z-index:100}
