@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&family=Syne:wght@500;600;700;800&display=swap');
/* Shared visual layer and accessibility controls. */
body::before,body::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:1}
body::before{background-image:linear-gradient(#f6b33c13 1px,transparent 1px),linear-gradient(90deg,#f6b33c13 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(#0008,#000 40%,#0006)}
body::after{opacity:0;background:center/cover no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 780' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffc45b' stroke-width='1.6'%3E%3Cpath d='M0 155h154l63 59h144l26 43h104l65 69h145l45 63h136l41 51h128l149 105M241 0v131l-24 83 35 82v95l-56 80v115L61 780M491 257l35-91h152l54-58h236l110-108M701 326l42-85h116l56-64h285M746 389l-49 113H537l-67 82H290l-65 76M923 440l-27 84v82l103 95h201'/%3E%3C/g%3E%3C/svg%3E");filter:drop-shadow(0 0 5px #ffab2d);animation:jwb-surge 19s linear infinite}
@keyframes jwb-surge{0%,64%,78%,100%{opacity:0}67%,74%{opacity:.25}70%{opacity:.08}}
html[data-grid-motion=off] body::after,body.quiet::after{animation:none;opacity:0}@media(prefers-reduced-motion:reduce){body::after{animation:none;opacity:0}}
.reader-dock{position:fixed;z-index:5;right:12px;bottom:12px;display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;max-width:calc(100% - 24px)}
.reader-dock button,.reader-control{background:#19130b;color:#ffd17a;border:1px solid #936833;border-radius:8px;padding:.4rem .7rem;font:700 .82rem system-ui;cursor:pointer}.reader-dock button:focus-visible,.reader-control:focus-visible{outline:2px solid #ffca66;outline-offset:2px}
body{padding-bottom:49px}
.jwb-reader{width:min(680px,calc(100% - 28px));max-height:82dvh;overflow:auto;color:#faf6ee;background:#101112;border:1px solid #896131;border-radius:14px;padding:clamp(14px,4vw,24px);box-shadow:0 12px 48px #000b}.jwb-reader::backdrop{background:#080809d0}.jwb-reader h2,.jwb-reader h3,.jwb-reader p{margin:.55rem 0}.reader-top,.reader-actions,.reader-words{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.reader-top{justify-content:space-between}.reader-actions{margin:.7rem 0}.reader-actions label{display:flex;align-items:center;gap:6px}.reader-text{padding:.85rem;background:#272015;border-left:3px solid #ffbf53;border-radius:6px;font-size:clamp(1.08rem,3vw,1.45rem);line-height:1.55}.spoken-word{background:#ffc758;color:#211605;border-radius:3px}.jwb-reader [data-definition]{color:#ffd17a;font-weight:700}
.practice-paper{margin:14px 0 0;background:#fcfbf7;color:#171a20;border:1px solid #d6d0c4;border-radius:7px;box-shadow:0 10px 24px #0006;padding:clamp(12px,3vw,24px);color-scheme:light}.practice-paper p,.practice-paper label,.practice-paper small{color:#292e38}.practice-paper>header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-bottom:2px solid #394e65;padding-bottom:10px}.paper-org{font-size:.8rem;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.paper-stamp{color:#5f3600;background:#fff0ce;align-self:start;border:1px solid #b68640;border-radius:4px;font-size:.69rem;padding:3px 5px}.practice-paper dl{display:flex;gap:12px;flex-wrap:wrap}.practice-paper dl div{padding:7px 10px;background:#eaeff4;border-radius:4px}.practice-paper dd{margin:0;font-weight:750}.paper-table{overflow:auto}.paper-table table{width:100%;min-width:440px;border-collapse:collapse;font-size:.86rem}.paper-table caption{text-align:left;font-weight:700;margin-bottom:5px}.paper-table th,.paper-table td{text-align:left;border-bottom:1px solid #cbd2db;padding:.45rem;white-space:nowrap}.paper-table thead{background:#e4eaf0}.paper-table th[scope=row]{font-weight:600}.practice-paper .sheet-form fieldset{padding:.75rem;margin:1rem 0;border:1px solid #c6cfd8;border-radius:5px}.practice-paper .sheet-form label{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,125px);gap:6px;align-items:center;font-size:.88rem;padding:4px 0}.sheet-form small{grid-column:1/-1;font-weight:650}.sheet-input{display:flex;gap:4px;align-items:center}.sheet-input input{width:100%;min-width:0;background:#fff;color:#171a20;border:1px solid #586c82;border-radius:4px;padding:5px;font:inherit}.sheet-input input[aria-invalid=true]{border-color:#a32518;outline:1px solid #a32518}.sheet-input input:focus-visible{outline:2px solid #315a8f}.practice-paper output{display:block;font-weight:750;margin-top:7px}.practice-paper button{background:#173047;color:#fff;border-color:#173047}.sheet-feedback{font-weight:750}.practice-paper .sheet-form legend{padding:0 5px}.sheet-planner>p{font-size:.88rem;margin-bottom:5px}
@media print{.reader-dock,.reader-control,body::before,body::after{display:none}}

/* Detroit Equity Group visual system shared by the Junior program. */
:root {
  --deg-background: hsl(223 30% 2.5%);
  --deg-surface: hsl(223 30% 4.5%);
  --deg-gold: hsl(38 92% 55%);
  --deg-line: hsl(38 92% 55% / .26);
  --deg-text: hsl(210 20% 95%);
  --deg-gold-gradient: linear-gradient(112deg, #ffe49a, #ffba39 58%, #e67b17);
  --deg-display: Syne, system-ui, sans-serif;
  --deg-body: Outfit, system-ui, sans-serif;
  --deg-mono: "Space Mono", ui-monospace, monospace;
  --ink: var(--deg-background);
  --card: var(--deg-surface);
  --gold: #ffc36a;
  --line: var(--deg-line);
  --text: var(--deg-text);
  --muted: #bcc1cd;
}
body {
  color: var(--deg-text);
  font-family: var(--deg-body);
  background: radial-gradient(ellipse at 85% 5%, #0b1420 0, transparent 38rem), var(--deg-background);
}
body::before {
  background-image: linear-gradient(#f8b03a15 1px, transparent 1px), linear-gradient(90deg, #f8b03a15 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(#0006, #000c 44%, #0007);
}
body::after { filter: drop-shadow(0 0 8px #ffab2d); }
@keyframes jwb-surge {
  0%, 55%, 73%, 100% {opacity: 0}
  58%, 65% {opacity: .36}
  61% {opacity: .12}
}
h1, h2, h3 {font-family: var(--deg-display); letter-spacing: -.025em}
.eyebrow, .top nav, .brand strong {font-family: var(--deg-mono); letter-spacing: .12em}
.top, body > header:not(.top) {
  background: #020305e8;
  border-bottom: 1px solid var(--deg-line);
  box-shadow: 0 6px 30px #0005;
}
button, a.primary, .entry-actions .secondary { border-radius: 7px; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #ffc469;
  outline-offset: 3px;
}
.primary:not(.practice-paper button), .entry-actions .primary {
  background: linear-gradient(112deg, #f2a92b, #f9b538);
  color: #090806;
  border: 1px solid #fbc45c;
  box-shadow: 0 0 24px #f6a62835;
}
.card:not(.practice-paper *), .paths article, .entry-card:not(.welcome), .impact,
#staff, #activity, #safety, #panel, .settings, .workspace .panel {
  background: radial-gradient(ellipse at 0 0, #18202c80, transparent 75%), linear-gradient(125deg, #0b1018, #05070b 76%);
  border-color: var(--deg-line);
  box-shadow: inset 0 1px #ffffff09, 0 8px 30px #0004;
}
body:has(.front) .front {background: transparent}
.front .welcome.deg-welcome {
  position: relative;
  isolation: isolate;
  max-width: 1380px;
  min-height: clamp(490px, 52vw, 660px);
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .94fr);
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(45px, 6.2vw, 96px) clamp(4px, 3vw, 48px);
}
.deg-welcome::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -18px;
  background: linear-gradient(90deg, #030508fa 0, #030609d1 36%, #03060930 100%),
    linear-gradient(0deg, #04060a 1%, transparent 35%, transparent 85%, #04060a9e),
    url('/deg-detroit-2100.jpg') right center / cover no-repeat;
  border-bottom: 1px solid var(--deg-line);
}
.front .deg-welcome h1 {
  max-width: 12ch;
  margin: .22em 0 .32em;
  color: #fff;
  font-size: clamp(3rem, 5.45vw, 5.8rem);
  letter-spacing: -.05em;
  line-height: .94;
}
.deg-welcome h1 em, .deg-hero-brand strong span {
  color: #ffc36a;
  background: var(--deg-gold-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px #f5a42c44);
}
.deg-welcome .entry-actions a {padding: .95rem 1.15rem; font: 700 .76rem/1.4 var(--deg-mono); text-transform: uppercase; letter-spacing: .1em}
.deg-welcome .entry-actions .secondary {background: #071019cf; color: #f1f2f4}
.deg-hero-brand {display: grid; justify-items: start; gap: clamp(26px, 6vw, 88px); min-width: 0}
.deg-hero-brand img {display: block; width: min(100%, 335px); max-height: 138px; object-fit: contain; padding: 13px; justify-self: end; background: #020305a8; border: 1px solid var(--deg-line); border-radius: 4px; box-shadow: inset 0 0 30px #0008}
.deg-hero-brand strong {font: 800 clamp(2.35rem, 4.7vw, 5rem)/.96 var(--deg-display); letter-spacing: -.04em; text-transform: uppercase; color: #fff}
.deg-hero-brand strong span {display: block}
.deg-classroom-photo {width: min(100%, 540px); height: auto; display: block; margin: 1.3rem 0 0; border-radius: 8px; border: 1px solid var(--deg-line)}
.stage:has(#city) {border-color: var(--deg-line); box-shadow: 0 0 26px #d596271c}
@media (max-width: 760px) {
  .front .welcome.deg-welcome {grid-template-columns: 1fr; min-height: auto; gap: 24px}
  .deg-hero-brand {grid-template-columns: minmax(0, 108px) minmax(0, 1fr); gap: 14px; align-items: center}
  .deg-hero-brand img {justify-self: start; padding: 6px}
  .deg-hero-brand strong {font-size: clamp(1.18rem, 4.7vw, 2.1rem)}
  .deg-welcome::before {background-position: center, center, 65% center}
}
