:root {
  --ed-ink: #152b25;
  --ed-accent: #135f4d;
  --ed-pale: #e9f3eb;
  --ed-paper: #fff;
  --ed-border: #d4ded6;
  --ed-muted: #475a51;
  --ed-serif: Georgia, 'Times New Roman', serif;
}

body:has(.ed-mast) {
  margin: 0;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font: 1rem/1.55 system-ui, -apple-system, sans-serif;
}

.ed-wrap { width: min(1140px, calc(100% - 3rem)); margin-inline: auto; }
.ed-header, .ed-footer { background: #fff; }
.ed-header { border-bottom: 1px solid var(--ed-border); }
.ed-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-block: .65rem;
}
.ed-brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 700; }
.ed-brand img { object-fit: contain; }
.ed-header a,.ed-footer a { color: var(--ed-ink); text-underline-offset: .2rem; }
.ed-header nav, .ed-footer .ed-wrap { display: flex; gap: .45rem 1.25rem; flex-wrap: wrap; }
.ed-header nav a { font-size: .875rem; }
.ed-skip { position: fixed; top: .75rem; left: .75rem; z-index: 4; background: white; padding: .7rem 1rem; transform: translateY(-190%); }
.ed-skip:focus { transform: none; }
:where(.ed-wrap, .ed-topic-guide, .ed-topic-hero, .ed-footer, .ed-skip) :focus-visible { outline: 3px solid #c57816; outline-offset: 3px; }
.ed-hero { background: #123d34; color: #fffefa; }
.ed-hero-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.3rem, 5vw, 4rem); padding-block: clamp(2rem, 6vw, 5rem); }
.ed-hero h1 { margin: .22rem 0 .9rem; font: 500 clamp(2.75rem, 5.8vw, 5.45rem)/.98 var(--ed-serif); letter-spacing: -.055em; text-wrap: balance; }
.ed-edition { margin: 0; color: #d6e5cd; font-size: .875rem; font-weight: 700; }
.ed-deck { font-size: clamp(1.05rem, 2.1vw, 1.35rem); max-width: 39ch; margin: 0 0 1.35rem; color: #f2f7ed; }
.ed-meta { font-size: .875rem; color: var(--ed-muted); }
.ed-hero .ed-meta { color: #d6e5cd; }
.ed-hero-actions { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; margin: 1.25rem 0 0; }
.ed-hero-actions a { color: inherit; text-underline-offset: .2rem; }
.ed-hero-actions .ed-button { display: inline-block; border-radius: .2rem; background: #f4dead; color: #15372e; font-weight: 750; padding: .7rem .95rem; text-decoration: none; }
.ed-hero-actions .ed-button:hover { background: #ffeac8; }
.ed-photo { min-width: 0; margin: 0; }
.ed-photo img { display: block; aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; background: #a6bfb0; border-radius: .3rem; }
.ed-photo figcaption { margin-top: .55rem; font-size: .82rem; line-height: 1.45; }
.ed-photo a { color: inherit; text-underline-offset: .15rem; }
.ed-topic-hero .ed-photo { align-self: center; }
.ed-topic-hero .ed-button { background: var(--ed-accent); color: #fff; }
.ed-topic-hero .ed-button:hover { background: #0e493b; }
.ed-topic-guide { padding-block: 1.2rem 2.5rem; }
.ed-topic-guide h2 { margin-bottom: .9rem; }

.ed-nav { display: flex; gap: .45rem .7rem; flex-wrap: wrap; border-bottom: 1px solid var(--ed-border); padding-block: 1.05rem; }
.ed-nav a { padding: .45rem .58rem; border-radius: .2rem; color: var(--ed-accent); font-size: .88rem; text-decoration: underline; text-underline-offset: .18rem; }
.ed-nav a[aria-current] { color: #fff; background: var(--ed-accent); text-decoration: none; }
.ed-layout { display: grid; grid-template-columns: minmax(0, 208px) minmax(0, 1fr); align-items: start; gap: clamp(1.8rem, 6vw, 5rem); padding-block: clamp(1.75rem, 5vw, 3rem) 3.5rem; }
.ed-no-toc { display: block; }
.ed-body { min-width: 0; }
.ed-toc { position: sticky; top: 1.25rem; overflow: auto; max-height: calc(100vh - 2.5rem); font-size: .9rem; scrollbar-width: thin; padding-left: .8rem; border-left: 2px solid var(--ed-border); }
.ed-toc ul { list-style: none; padding: 0; margin: .55rem 0 0; }
.ed-toc a { display: block; padding-block: .3rem; }
.ed-body a, .ed-toc a, .ed-topic-guide a, .ed-languages a { color: var(--ed-accent); text-underline-offset: .18rem; }
.ed-body h2, .ed-body h3 { color: var(--ed-ink); scroll-margin-top: 1rem; text-wrap: pretty; }
.ed-body h2 { margin: 2.7rem 0 .7rem; font: 500 clamp(1.95rem, 4vw, 2.85rem)/1.08 var(--ed-serif); letter-spacing: -.037em; }
.ed-body h2:first-child { margin-top: 0; }
.ed-body h3 { margin: 1.8rem 0 .55rem; font-size: 1.22rem; line-height: 1.25; }
.ed-body p { max-width: 72ch; margin: 0 0 .95rem; }
.ed-body p.ed-standfirst { max-width: 62ch; font-size: 1.3rem; line-height: 1.45; }
.ed-body .ed-status { padding: .75rem 1rem; border-left: 3px solid #ae7425; background: #faf1dd; }
.ed-body ul:not([class]) { max-width: 72ch; padding-left: 1.45rem; }
.ed-body ul:not([class]) li + li { margin-top: .45rem; }
.ed-body > section + section { margin-top: clamp(2.35rem, 5vw, 4.2rem); }
.ed-body :is(p,li,a,td,th) { overflow-wrap: anywhere; }
.ed-source { color: var(--ed-muted); font-size: .88rem; }
.ed-details { margin-block: 1.15rem; border: 1px solid var(--ed-border); border-radius: .3rem; padding: .65rem .85rem; }
.ed-details summary { color: var(--ed-accent); cursor: pointer; font-weight: 650; }
.ed-details table { margin-bottom: .4rem; }
.ed-roles { padding: 0; margin: .9rem 0 0; list-style: none; border-top: 1px solid var(--ed-border); max-width: 52rem; }
.ed-roles li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: .2rem 1rem; padding: .65rem 0; border-bottom: 1px solid var(--ed-border); }
.ed-chapters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); list-style: none; padding: 0; gap: .75rem; margin: 1.05rem 0; }
.ed-chapters li { background: #f3f7f2; border: 1px solid var(--ed-border); border-radius: .25rem; padding: .9rem 1rem; }
.ed-chapters h3 { font-size: 1.03rem; margin: 0 0 .4rem; }
.ed-chapters li p { margin: 0; }
.ed-editions { display: grid; grid-template-columns: minmax(80px, 145px) minmax(0, 1fr); align-items: center; gap: .8rem clamp(.8rem, 4vw, 2rem); padding: 1rem; background: #f3f7f2; border: 1px solid var(--ed-border); }
.ed-editions img { display: block; width: 100%; height: auto; }
.ed-editions h2 { margin: 0 0 .55rem; }
.ed-editions p:last-child { margin-bottom: 0; }
.ed-languages { color: var(--ed-muted); display: flex; gap: .4rem 1rem; flex-wrap: wrap; padding-block: 1.1rem; font-size: .9rem; border-top: 1px solid var(--ed-border); }
.ed-footer { border-top: 1px solid var(--ed-border); font-size: .9rem; padding-block: 1.15rem; }

.ed-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1rem 0 1.45rem; font-size: .91rem; text-align: left; }
.ed-table :is(th,td) { vertical-align: top; padding: .65rem .62rem; border-bottom: 1px solid var(--ed-border); }
.ed-table th[scope="col"] { background: #143f35; color: #fff; }
.ed-table th[scope="row"] { font-weight: 650; }
.ed-table tbody tr:nth-child(even) { background: #f1f5f0; }
.ed-table textarea { box-sizing: border-box; width: 100%; min-height: 3rem; font: inherit; padding: .3rem; border: 1px solid #75877d; background: #fff; color: var(--ed-ink); resize: vertical; }
.ed-bibliography { padding: .55rem 0; border-bottom: 1px solid var(--ed-border); scroll-margin-top: 1.2rem; }
.ed-bibliography:target { background: #faf1dd; }

.ed-diagram { background: var(--ed-pale); border: 1px solid var(--ed-border); border-radius: .35rem; padding: clamp(.75rem, 3vw, 1.25rem); margin: 1rem 0 1.4rem; }
.ed-diagram figcaption strong { display: block; margin-bottom: .32rem; font: 600 1.42rem/1.14 var(--ed-serif); }
.ed-diagram figcaption p { margin-bottom: .7rem; }
.ed-flow, .ed-branches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap: 1rem; margin: .7rem 0; }
.ed-flow li, .ed-branches li { position: relative; border: 1px solid #becfc0; border-top: 3px solid var(--ed-accent); border-radius: .2rem; background: #fff; padding: .65rem .7rem; }
.ed-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -.95rem; top: calc(50% - .8rem); color: var(--ed-accent); font-weight: 750; }
.ed-branches li::before { content: "↓"; position: absolute; top: -1.2rem; left: calc(50% - .3rem); color: var(--ed-accent); font-weight: 750; }
.ed-branches { margin-top: 1.15rem; }
.ed-flow span, .ed-branches span { display: block; margin-top: .16rem; font-size: .92rem; }
.ed-diagram p.ed-source { margin: .7rem 0 0; }
.ed-diagram p.ed-diagram-note { margin: .65rem 0 0; }

@media (max-width: 900px) {
  .ed-layout:not(.ed-no-toc) { display: block; }
  .ed-toc { position: static; max-height: none; margin-bottom: 1.75rem; }
  .ed-toc ul { columns: 2; column-gap: 1rem; }
  .ed-toc li { break-inside: avoid; }
  .ed-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ed-wrap { width: calc(100% - 2rem); }
  .ed-hero-inner { grid-template-columns: 1fr; }
  .ed-flow, .ed-branches { grid-template-columns: 1fr; }
  .ed-flow li:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -1.13rem; }
  .ed-branches li::before { content: none; }
  .ed-branches { border-left: 2px solid #aabdae; padding-left: .55rem; gap: .55rem; }
}
@media (max-width: 480px) {
  .ed-header nav { gap: .4rem .85rem; }
  .ed-roles li, .ed-chapters { grid-template-columns: minmax(0,1fr); }
  .ed-toc ul { columns: 1; }
}
@media print {
  .ed-header, .ed-nav, .ed-footer, .ed-toc, .ed-photo, .ed-languages, .ed-skip, .ed-hero-actions { display: none; }
  .ed-layout { display: block; padding: 0; }
  .ed-hero, .ed-hero :is(.ed-meta,.ed-edition,.ed-deck) { background: #fff; color: #152b25; }
  .ed-hero-inner { display: block; padding-block: .6rem; }
  .ed-hero h1 { font-size: 35pt; }
  .ed-table tr { break-inside: avoid; }
  .ed-table th[scope="col"] { background: #e9f3eb; color: #152b25; }
}

/* Education publication */
:root{--ed-ink:#131416;--ed-border:#d2d2d2;--ed-muted:#51545a;--ed-pale:#f1f3f4;--ed-accent:#164d75;--ed-sans:Arial,Helvetica,sans-serif}
body:has(.ed-mast){background:#fff;color:var(--ed-ink);font-family:var(--ed-sans)}
.ed-wrap,.ed-front .wrap{width:min(83rem,calc(100% - clamp(2rem,9vw,9rem)));margin-inline:auto}
.ed-mast{position:relative;z-index:5;background:#09090b;color:white}
.ed-mast-inner{display:flex;min-height:4.4rem;align-items:center;gap:1.6rem}
.ed-mast .ed-brand{color:white;text-decoration:none;line-height:1.12;font-weight:760;font-size:1rem;letter-spacing:-.025em}
.ed-mast .ed-brand img{width:2.75rem;height:2.75rem;background:white;object-fit:contain}
.ed-toplinks{margin-left:auto;display:flex;gap:1.5rem}
.ed-toplinks a,.ed-menu summary{font:700 1rem/1.2 var(--ed-sans);color:white;text-decoration:none}
.ed-toplinks a:hover,.ed-menu summary:hover{text-decoration:underline;text-underline-offset:4px}
.ed-menu{position:relative;border-left:1px solid #626267;padding-left:1.4rem}
.ed-menu summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center;gap:.55rem}
.ed-menu summary::-webkit-details-marker{display:none}
.ed-menu summary i{display:block;width:16px;height:8px;border-block:2px solid currentColor}
.ed-menu nav{position:absolute;right:0;top:100%;width:min(19rem,84vw);max-height:74vh;overflow-y:auto;background:#101115;padding:.6rem 0;border:1px solid #56585c;box-shadow:0 .4rem 1rem #0004}
.ed-menu nav a{display:block;padding:.65rem 1rem;color:white;text-decoration:none}
.ed-menu nav a:is(:hover,:focus-visible,[aria-current]){background:#32343a;text-decoration:underline}
.ed-mast :focus-visible,.ed-banner :focus-visible,.ed-shelf :focus-visible{outline:3px solid #80cbff;outline-offset:3px}
.ed-banner{--height:clamp(23.5rem,36vw,35rem);position:relative;isolation:isolate;background:#08090b;color:#fff}
.ed-front .ed-banner{--height:clamp(26rem,40vw,39rem)}
.ed-banner .ed-photo{margin:0}
.ed-banner .ed-photo img{display:block;width:100%;height:var(--height);border-radius:0;object-fit:cover;background:#191c21}
.ed-banner .ed-photo figcaption{margin:0;padding:.5rem max(1rem,calc((100% - min(83rem,100% - clamp(2rem,9vw,9rem)))/2));text-align:right;color:#d5d6d8;background:#111216;font: .79rem/1.45 var(--ed-sans)}
.ed-banner .ed-photo figcaption a{color:inherit}
.ed-banner-copy{position:absolute;top:0;left:0;right:0;height:var(--height);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1.25rem;padding:0 max(1rem,calc((100% - min(83rem,100% - clamp(2rem,9vw,9rem)))/2));pointer-events:none;background:linear-gradient(90deg,#050609eb 0%,#050609ae 22%,#08090b40 55%,transparent 80%)}
.ed-banner-copy h1{margin:0;max-width:11.4ch;color:white;font:800 clamp(3.5rem,6.15vw,6.3rem)/.98 var(--ed-sans);letter-spacing:-.055em;text-wrap:balance;text-shadow:0 1px 12px #0005}
.ed-front .ed-banner-copy h1{max-width:10ch}
.ed-banner-copy .ed-read{pointer-events:auto;display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:.72rem 1.15rem;background:#b72d16;color:#fff;border-radius:3px;font:700 1rem/1.2 var(--ed-sans);text-decoration:none}
.ed-banner-copy .ed-read:hover{background:#91230f}
.ed-shelf{background:#111216;color:white;border-top:1px solid #393a40}
.ed-shelf .ed-wrap{display:flex;align-items:center;gap:clamp(1rem,3vw,3.5rem);min-height:4.4rem;padding-block:.5rem}
.ed-shelf a{display:inline-flex;align-items:center;min-height:44px;gap:.75rem;color:#fff;text-decoration:none;font-weight:700;font-size:.98rem}
.ed-shelf a:hover{text-decoration:underline}
.ed-download img{width:1.9rem;height:auto}.ed-download small{font:600 .75rem var(--ed-sans);color:#c5cad0}
.ed-layout{display:block;padding-block:clamp(2rem,4.5vw,4rem)}
.ed-guide .ed-layout{max-width:53rem;margin:auto}
.ed-section-menu,.ed-credits{border-block:1px solid var(--ed-border);margin:0 0 1.5rem}
.ed-section-menu summary,.ed-credits summary{padding:.7rem 0;cursor:pointer;font-weight:700}
.ed-section-menu ul{padding-left:1.4rem}.ed-section-menu a{color:var(--ed-accent);display:inline-block;padding:.15rem 0}
.ed-features{margin:0 0 clamp(2.5rem,6vw,5.5rem);color:var(--ed-ink)}
.ed-front .ed-features h2,.ed-body h2,.ed-front .read-column h2{font-family:var(--ed-sans);font-weight:760;letter-spacing:-.045em}
.ed-front .ed-features h2{font-size:clamp(2.25rem,4.2vw,4.4rem);line-height:1;margin:0 0 1.3rem}
.ed-front .wrap>.ed-features{padding-top:clamp(2rem,4.5vw,4rem)}
.ed-features .ed-mosaic,.ed-features .ed-picks{list-style:none;padding:0;margin:0;max-width:none}
.ed-mosaic{display:grid;grid-template-columns:1.5fr 1fr 1fr;grid-template-rows:repeat(2,clamp(9rem,12vw,12.5rem));gap:.5rem}
.ed-mosaic li{min-height:0;min-width:0}.ed-mosaic li:nth-child(-n+2){grid-row:span 2}
.ed-mosaic a{position:relative;display:block;width:100%;height:100%;overflow:hidden;background:#222}
.ed-mosaic img{width:100%;height:100%;object-fit:cover;display:block}
.ed-mosaic a::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#060708ed,transparent 73%)}
.ed-mosaic a span{position:absolute;z-index:1;bottom:clamp(.8rem,1.4vw,1.65rem);inset-inline:clamp(.8rem,1.4vw,1.65rem);font:750 clamp(1.15rem,1.8vw,1.85rem)/1.04 var(--ed-sans);letter-spacing:-.04em;color:white}
.ed-mosaic li:first-child a span{font-size:clamp(1.55rem,2.75vw,2.9rem)}
.ed-features a b{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:1.3em;height:1.3em;margin-left:.5em;vertical-align:.07em;background:#c43219;color:#fff;font:700 .62em/1 var(--ed-sans)}
.ed-features a b{position:relative;vertical-align:.02em}.ed-features a b::before{content:"";width:45%;height:2px;background:white;transform:rotate(-45deg)}.ed-features a b::after{content:"";position:absolute;width:25%;height:25%;top:25%;right:25%;border-top:2px solid white;border-right:2px solid white}
.ed-features a:hover span{text-decoration:underline;text-underline-offset:.13em}
.ed-features .ed-picks{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:1.4rem}
.ed-picks a{display:flex;align-items:center;gap:1rem;color:var(--ed-ink);text-decoration:none;font:bold clamp(1.13rem,1.6vw,1.5rem)/1.16 var(--ed-sans)}
.ed-picks img{width:clamp(4.5rem,7vw,6rem);aspect-ratio:1;object-fit:cover;height:auto}
.ed-credits{margin:1.3rem 0 0;border-bottom:0;color:var(--ed-muted);font-size:.87rem}
.ed-credits ul{padding-left:1.25rem}
.ed-credits a{color:inherit}
.ed-body>section:not(.ed-features),.ed-body>p.ed-status{max-width:58rem;margin-inline:auto}
.ed-body .ed-status{background:#f3f4f5;border-color:#53585d;color:#26292b}
.ed-body .ed-diagram{background:#f2f4f5;border:0;border-radius:0;border-left:4px solid #34393e}
.ed-diagram figcaption strong{font-family:var(--ed-sans);font-weight:750}
.ed-roles li{border-radius:0}.ed-table th[scope="col"]{background:#25282c;color:#fff}
.ed-footer{background:#0a0a0c;color:#fff}.ed-footer a{color:#fff}
@media(max-width:800px){
.ed-mosaic{grid-template-columns:1.2fr 1fr;grid-template-rows:12rem 12rem 9rem}
.ed-mosaic li:first-child{grid-row:span 2}.ed-mosaic li:nth-child(2){grid-row:span 1}.ed-mosaic li:last-child{grid-column:span 2}
}
@media(max-width:600px){
.ed-wrap,.ed-front .wrap{width:calc(100% - 2rem)}
.ed-mast-inner{min-height:3.65rem;gap:.4rem}.ed-toplinks{display:none}.ed-menu{margin-left:auto;border:0;padding-left:.4rem}
.ed-mast .ed-brand{font-size:.88rem;gap:.55rem}.ed-mast .ed-brand img{width:2.1rem;height:2.1rem}
.ed-banner,.ed-front .ed-banner{--height:24rem}
.ed-banner-copy{justify-content:flex-end;padding:0 1rem 1.7rem;gap:.85rem;background:linear-gradient(0deg,#030405ed,#03040595 31%,transparent 78%)}
.ed-banner-copy h1{font-size:clamp(3rem,11vw,4.15rem);max-width:14ch}.ed-front .ed-banner-copy h1{max-width:11ch}
.ed-banner .ed-photo figcaption{text-align:left;padding:.45rem 1rem}
.ed-shelf .ed-wrap{gap:.45rem 1.05rem;flex-wrap:wrap;min-height:3.4rem}.ed-shelf a{font-size:.87rem;gap:.42rem}.ed-download img{width:1.4rem}
.ed-front .ed-features h2{margin-bottom:.9rem}
.ed-mosaic{grid-template-columns:1fr 1fr;grid-template-rows:13.5rem 10rem 9rem}
.ed-mosaic li:first-child{grid-row:span 1;grid-column:span 2}
.ed-features .ed-picks{grid-template-columns:1fr;gap:.8rem}
.ed-picks img{width:4.4rem;height:3.5rem}
}
@media print{
.ed-mast,.ed-section-menu,.ed-shelf,.ed-banner .ed-photo,.ed-banner .ed-read,.ed-credits{display:none}
.ed-banner-copy{position:static;height:auto;background:#fff;padding:0}.ed-banner-copy h1{color:black;text-shadow:none;font-size:30pt}
.ed-mosaic,.ed-picks{display:block}.ed-features a img,.ed-features a b,.ed-mosaic a::after{display:none}.ed-mosaic a span{position:static;color:#000}
}
