/* Buildroom Academy. Archivo throughout: the wide cut (wdth 125) for the wordmark and headlines, the normal cut for reading.
   Rounded hero panel with a notch cut out of its corner for the headline, staggered rounded cards, pills for controls.
   Off-white, ink, one grey, red only as an accent. Photos: people moving fast in a city, black and white, motion blur; only red survives. */
:root {
  --paper: #EEECE7; --white: #FBFAF7; --ink: #121212; --grey-2: #514F4A; --card: #E2DFD8; --rule: #D6D2C9; --red: #D9221A;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --r: 28px; --pad: clamp(14px, 1.6vw, 24px); --in: clamp(20px, 3.6vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, .logo .word, .giant, .statement { font-stretch: 125%; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo svg { width: 26px; height: 26px; }
.logo { --bg: var(--paper); }
.logo .word { font-family: Sora, var(--sans); font-stretch: 100%; font-weight: 700; font-size: 21px; letter-spacing: -0.05em; line-height: 1; }
.logo .tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-2); padding-top: 3px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.pill.line { border-color: var(--ink); background: transparent; }
.pill.line:hover { background: var(--ink); color: var(--white); }
.pill.solid { background: var(--ink); color: var(--white); }
.pill.solid:hover { background: var(--red); }
.tile .pill.solid { background: var(--white); color: var(--ink); }
.tile .pill.solid:hover { background: var(--red); color: #fff; }
.pill.red { background: var(--red); color: #fff; }
.pill.red:hover { background: var(--white); color: var(--ink); }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 12.5px; font-weight: 500; width: max-content; }
.chip.light { color: #fff; border-color: rgba(255,255,255,.7); }

/* Bar */
.bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding: 0 calc(var(--pad) + 18px); background: var(--paper); }
.bar .pill { justify-self: end; height: 42px; }

/* Photos */
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.blur { filter: url(#motion) url(#redpop); transform: scale(1.1); }
.ph.sharp { filter: url(#redpop); -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 62%); mask-image: linear-gradient(100deg, transparent 10%, #000 62%); }
.card .ph.blur, .tile .ph.blur { filter: url(#motion-sm) url(#redpop); }

/* Hero: one rounded panel; the headline sits in a notch cut from its top-left corner. */
.hero { padding: 0; }
/* Fills the screen under the bar, edge to edge. */
.panel { position: relative; height: calc(100svh - 72px); min-height: 480px; border-radius: 0; overflow: hidden; background: #cfcdc8; }
.notch { position: absolute; left: 0; top: 0; z-index: 3; width: min(700px, 52%); background: var(--paper); padding: 10px var(--in) var(--in) calc(var(--pad) + 18px); border-bottom-right-radius: var(--r); }
/* The two inverted corners that make the notch read as cut out of the photo. */
.notch::before, .notch::after { content: ""; position: absolute; width: var(--r); height: var(--r); background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), var(--paper) var(--r)); }
.notch::before { top: 0; right: calc(var(--r) * -1); }
.notch::after { left: 0; bottom: calc(var(--r) * -1); }
.hero h1 { font-size: clamp(40px, 4.6vw, 74px); line-height: .96; letter-spacing: -0.05em; font-weight: 800; max-width: 13ch; }
.notch p { margin: 20px 0 26px; color: var(--grey-2); font-size: 17px; max-width: 38ch; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.intake { position: absolute; right: var(--in); top: var(--in); z-index: 3; width: 250px; height: 160px; border-radius: 20px; overflow: hidden; color: #fff; background: #222; }
.intake img { width: 100%; height: 100%; object-fit: cover; filter: url(#motion-sm) url(#redpop); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.intake::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.intake span { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-size: 13.5px; line-height: 1.3; }
.intake b { display: block; font-size: 16px; font-stretch: 125%; letter-spacing: -0.02em; }
.intake i { position: absolute; right: 14px; top: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.intake:hover img { transform: scale(1.05); }
/* No descenders in buildroom, so the word sits whole on the panel's bottom edge. */
.giant { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; font-weight: 800; font-size: min(16.2vw, 30svh); line-height: .74; letter-spacing: -0.065em; color: var(--paper); white-space: nowrap; pointer-events: none; }

/* About */
.about { padding: clamp(90px, 12vw, 180px) var(--in) clamp(70px, 9vw, 130px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.about-mark { --bg: var(--paper); grid-column: 1 / span 2; width: clamp(56px, 6vw, 96px); height: clamp(56px, 6vw, 96px); color: var(--ink); }
.statement { grid-column: 3 / span 10; font-size: clamp(28px, 3.3vw, 52px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 700; text-wrap: pretty; }
.inline { display: inline-block; width: 1.9em; height: .82em; border-radius: 999px; overflow: hidden; vertical-align: -.06em; margin: 0 .04em; }
.inline img { width: 100%; height: 100%; object-fit: cover; filter: url(#redpop); }

/* Staggered cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 var(--pad) clamp(80px, 10vw, 150px); align-items: start; }
.card { position: relative; height: 400px; border-radius: 22px; overflow: hidden; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.card.low { margin-top: 70px; } .card.lower { margin-top: 140px; }
.card.ink { background: var(--ink); color: var(--white); }
.card.grey { background: var(--card); }
.card.photo { color: #fff; background: #222; }
.card.photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.card > *:not(.ph) { position: relative; z-index: 2; }
.card > .ph { z-index: 0; }
.card h3 { font-size: 21px; line-height: 1.12; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 8px; max-width: 15ch; }
.card p { font-size: 14px; opacity: .8; max-width: 30ch; }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--in) clamp(80px, 10vw, 150px); }
.courses-head { grid-column: 1 / span 4; position: sticky; top: 104px; align-self: start; }
.courses-head h2 { font-size: clamp(32px, 3.2vw, 50px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; }
.courses-head p { color: var(--grey-2); margin: 18px 0 24px; max-width: 32ch; }
.list { grid-column: 6 / span 7; list-style: none; }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 8px; border-radius: 999px; background: var(--white); transition: background .25s, color .25s, padding .3s cubic-bezier(.16,1,.3,1); }
.list b { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.list .chip { color: var(--grey-2); border-color: var(--rule); flex: none; }
.list a:hover { background: var(--ink); color: var(--white); padding-left: 30px; }
.list a:hover .chip { color: var(--white); border-color: rgba(255,255,255,.4); }
.list .more a { background: transparent; border: 1.5px dashed var(--rule); }
.list .arrow { font-size: 20px; }

/* Duo */
.duo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; padding: 0 var(--pad) 16px; }
.tile { position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden; padding: var(--in); display: flex; flex-direction: column; justify-content: space-between; }
.tile.photo { color: #fff; background: #222; }
.tile.photo::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.tile > *:not(.ph) { position: relative; z-index: 2; }
.tile > .ph { z-index: 0; }
.tile.grey { background: var(--card); }
.tile h2 { font-size: clamp(26px, 2.5vw, 40px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 800; max-width: 15ch; }
.tile p { margin: 14px 0 22px; max-width: 42ch; opacity: .85; }

/* Call */
.call { padding: 0 var(--pad) var(--pad); scroll-margin-top: 80px; }
.call-panel { background: var(--ink); color: var(--white); border-radius: var(--r); padding: clamp(40px, 6vw, 96px) var(--in); display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.call h2 { font-size: clamp(40px, 5vw, 84px); line-height: .95; letter-spacing: -0.055em; font-weight: 800; }
.call-sub { color: #B9B6AF; margin-top: 20px; max-width: 38ch; }
.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 8px; font-size: 13.5px; color: #B9B6AF; }
.form label[hidden] { display: none; }
.opt { color: #8d8a84; }
.form input:not([type=radio]), .form select { font: inherit; font-size: 17px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid #3A3936; border-radius: 999px; padding: 13px 20px; caret-color: var(--red); appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, #B9B6AF 50%), linear-gradient(135deg, #B9B6AF 50%, transparent 50%); background-position: calc(100% - 26px) 52%, calc(100% - 20px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus { outline: none; border-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #3A3936; color: #D8D5CE; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form .pill { justify-self: start; height: 52px; padding: 0 30px; }
.msg { font-size: 14px; color: #D8D5CE; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px calc(var(--pad) + 18px); font-size: 14px; color: var(--grey-2); }
.foot .fine { font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; } .bar nav { display: none; }
  .logo .tag { display: none; }
  .panel { height: auto; min-height: 0; padding-bottom: 62vw; }
  .notch { position: relative; width: auto; border-bottom-right-radius: 0; padding: 6px 20px 26px; }
  .notch::before, .notch::after { display: none; }
  .intake { display: none; }
  .about, .courses { grid-template-columns: 1fr; }
  .about-mark, .statement, .courses-head, .list { grid-column: 1 / -1; }
  .courses-head { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { height: 300px; } .card.low { margin-top: 40px; } .card.lower { margin-top: 0; }
  .duo, .call-panel { grid-template-columns: 1fr; }
  .tile { min-height: 420px; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .card, .card.low, .card.lower { margin-top: 0; height: 280px; } .list a { border-radius: 18px; } .two { grid-template-columns: 1fr; } }


/* ── Round 4: tab bars, ticker, problem, course tabs, FAQ, motion ── */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.pill.big { height: 52px; padding: 0 26px; font-size: 16px; }
.pill.white { background: var(--white); color: var(--ink); }
.pill.white:hover { background: var(--red); color: #fff; }
.bar .pill { height: 42px; }

/* Sliding tab bars (nav and course groups): a pill highlight that glides to the hovered or current tab. */
.tabs, .ctabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); }
.tabs a, .ctabs button { position: relative; z-index: 1; height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font: 500 14.5px/1 var(--sans); color: var(--grey-2); background: none; border: 0; cursor: pointer; transition: color .25s; white-space: nowrap; }
.tabs a[aria-current], .ctabs [aria-selected=true] { color: var(--white); }
.slider { position: absolute; left: 0; top: 4px; height: 38px; width: 0; border-radius: 999px; background: var(--ink); z-index: 0; }
.ready .slider { transition: transform .45s cubic-bezier(.16,1,.3,1), width .45s cubic-bezier(.16,1,.3,1); }
.tabs a:hover:not([aria-current]), .ctabs button:hover:not([aria-selected=true]) { color: var(--ink); }

/* Hero proof line */
.proof { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--grey-2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(217,34,26,.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,34,26,.45); } 70% { box-shadow: 0 0 0 9px rgba(217,34,26,0); } 100% { box-shadow: 0 0 0 0 rgba(217,34,26,0); } }
.notch p:not(.proof) { margin: 18px 0 26px; }

/* Ticker bar */
.ticker { background: var(--ink); color: var(--white); overflow: hidden; height: 64px; display: flex; align-items: center; }
.track { display: flex; gap: 0; white-space: nowrap; animation: tick 38s linear infinite; }
.track span { font-stretch: 125%; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .track { animation-play-state: paused; }

/* Problem */
.problem { padding: clamp(90px, 11vw, 170px) var(--in) clamp(60px, 7vw, 110px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.problem h2 { grid-column: 1 / span 7; font-stretch: 125%; font-size: clamp(36px, 4.4vw, 70px); line-height: .98; letter-spacing: -0.055em; font-weight: 800; }
.pains { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pains p { background: var(--white); border-radius: 22px; padding: 26px; font-size: 16px; color: var(--grey-2); }
.pains b { display: block; color: var(--ink); font-stretch: 125%; font-size: 21px; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 10px; }

/* Cards now hold one line each */
.card { height: 340px; }
.card h3 { font-size: 22px; max-width: 14ch; margin: 0; }
.card.low { margin-top: 60px; } .card.lower { margin-top: 120px; }
.reveal.pre { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.pre.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3) { transition-delay: .06s; } .cards .reveal:nth-child(4) { transition-delay: .12s; } .cards .reveal:nth-child(5) { transition-delay: .18s; }

/* Courses with tabs */
.courses { display: block; }
.courses h2 { font-stretch: 125%; font-size: clamp(36px, 4.4vw, 70px); line-height: .98; letter-spacing: -0.055em; font-weight: 800; }
.ctabs { margin: 32px 0 20px; }
.panels .list { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panels .list a { margin: 0; }
.panels .list .chip { font-style: normal; }

/* FAQ */
.faq { padding: clamp(80px, 10vw, 150px) var(--in); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq h2 { grid-column: 1 / span 4; font-stretch: 125%; font-size: clamp(32px, 3.4vw, 54px); letter-spacing: -0.05em; font-weight: 800; line-height: 1; }
.qs { grid-column: 6 / span 7; }
.qs details { background: var(--white); border-radius: 22px; margin-bottom: 8px; }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' stroke='%23121212' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.qs details[open] summary::after { transform: rotate(45deg); background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.qs details p { padding: 0 24px 22px; color: var(--grey-2); max-width: 62ch; }

/* Call panel without a sub-line */
.call-panel { align-items: start; }

@media (prefers-reduced-motion: reduce) { .track, .live { animation: none; } }
@media (max-width: 900px) {
  .tabs { display: none; }
  .ticker { height: 52px; } .track span { font-size: 16px; }
  .problem, .faq { grid-template-columns: 1fr; }
  .problem h2, .faq h2, .qs { grid-column: 1 / -1; }
  .pains { grid-template-columns: 1fr; }
  .panels .list { grid-template-columns: 1fr; }
  .ctabs { display: flex; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .card { height: 240px; }
}
.panels .list[hidden] { display: none; }
.tile h2 + .pill { margin-top: 22px; }

/* Tools: the software learners already use, as a logo wall. Logos stay in ink; a tile lifts on hover. */
.tools { padding: 0 var(--in) clamp(80px, 10vw, 150px); }
.tools h2 { font-stretch: 125%; font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; max-width: 16ch; }
.logos { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 36px; }
.logos li { display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 22px; background: var(--white); border-radius: 999px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; transition: transform .35s cubic-bezier(.16,1,.3,1), background .25s; }
.logos img { width: 26px; height: 26px; flex: none; }
.logos li:hover { transform: translateY(-3px); background: #fff; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { height: 60px; padding: 0 16px; font-size: 14px; } }

/* Logos fetched in full colour, turned to ink to match the rest of the wall. */
.logos img.mono { filter: brightness(0); object-fit: contain; }

/* Small laptops: the nav needs the room the Academy tag takes. */
@media (max-width: 1100px) { .logo .tag { display: none; } .tabs a { padding-inline: 13px; } }

/* Core course drop-downs in "Start here": each opens a real course outline, week by week, with the units and how each is assessed. */
.panels .list .core-course { grid-column: 1 / -1; }
.core-course > details { border-radius: 28px; background: var(--white); transition: background .25s; }
.core-course > details > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; border-radius: 999px; }
.core-course > details > summary::-webkit-details-marker, .wk > summary::-webkit-details-marker { display: none; }
.core-course > details > summary b { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.core-course > details > summary .chip { color: var(--grey-2); border-color: var(--rule); font-style: normal; }
.open-label { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey-2); }
.open-label::after, .wk > summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s cubic-bezier(.16,1,.3,1); }
details[open] > summary .open-label::after, .wk[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.core-course > details:not([open]):hover { background: var(--ink); color: var(--white); }
.core-course > details:not([open]):hover summary .chip, .core-course > details:not([open]):hover .open-label { color: var(--white); border-color: rgba(255,255,255,.4); }
.outline { padding: 4px clamp(18px, 2.4vw, 36px) clamp(22px, 2.4vw, 36px); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); font-size: 13.5px; color: var(--grey-2); }
.facts li:last-child { color: var(--ink); border-color: var(--ink); }
.outline .lede { color: var(--grey-2); max-width: 70ch; margin: 16px 0 18px; }
.wk { border-top: 1px solid var(--rule); }
.wk > summary { list-style: none; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; }
.wk > summary::after { color: var(--grey-2); }
.wk .n { font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.wk > summary b { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.wk .meta { font-size: 13px; color: var(--grey-2); }
.wk.core .n { color: var(--red); }
.chip.red { color: var(--red); border-color: var(--red); font-style: normal; height: 24px; font-size: 12px; }
.wk > summary .chip.red { grid-column: 3; }
.wk > summary:has(.chip.red) .meta { display: none; }
.wk-body { padding: 0 0 26px 112px; }
.wk-body .sum { max-width: 70ch; }
.wk-body h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); margin: 22px 0 10px; }
.wk-body .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.wk-body .cols p { color: var(--grey-2); }
.ticks, .qs-list { list-style: none; display: grid; gap: 6px; }
.ticks li, .qs-list li { position: relative; padding-left: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.qs-list li::before { content: "?"; position: absolute; left: 0; color: var(--grey-2); font-weight: 600; }
.lessons { list-style: none; display: grid; gap: 4px; }
.lessons li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.lessons em { font-style: normal; font-size: 13px; color: var(--grey-2); white-space: nowrap; }
.tasks { list-style: none; display: grid; gap: 8px; }
.tasks li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--paper); }
.tasks i { font-style: normal; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--grey-2); padding-top: 2px; }
.tasks b { font-weight: 600; }
.tasks p { color: var(--grey-2); margin-top: 4px; max-width: 72ch; }
.tasks .ev { color: var(--ink); }
.tasks .ev span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-right: 10px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--rule); padding-top: 6px; margin-bottom: 24px; }
.rules h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); margin: 22px 0 10px; }
.rules p { color: var(--grey-2); }
@media (max-width: 900px) {
  .core-course > details > summary { flex-wrap: wrap; border-radius: 28px; }
  .open-label { margin-left: 0; width: 100%; }
  .wk > summary { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .wk > summary .n { grid-column: 1; }
  .wk > summary b { grid-column: 1; }
  .wk > summary .chip.red, .wk > summary .meta { grid-column: 1; }
  .wk > summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .wk-body { padding: 0 0 22px; }
  .wk-body .cols, .rules { grid-template-columns: 1fr; gap: 0; }
  .lessons li { flex-direction: column; gap: 2px; }
}
.outline > .pill { display: inline-flex; width: max-content; max-width: 100%; }
@media (max-width: 900px) { .tasks li { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; } }
