/* Atmosphere: every section lit differently, smooth transitions, fine grain. Loaded last. */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main > section { border-top: 0 !important; position: relative; isolation: isolate; }
main > section::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* no flat bands: the base stays one colour, light does the work */
main > section:nth-of-type(even):not(.page-hero):not(.hero), .census, .wash, .cream, .dark, .quote-sec { background: transparent !important; }
main > section:nth-of-type(6n+1)::after { background: radial-gradient(900px 520px at 85% 30%, rgba(124,92,255,.22), transparent 70%); }
main > section:nth-of-type(6n+2)::after { background: radial-gradient(800px 520px at 10% 60%, rgba(217,70,239,.16), transparent 70%), radial-gradient(600px 400px at 95% 100%, rgba(124,92,255,.12), transparent 70%); }
main > section:nth-of-type(6n+3)::after { background: radial-gradient(1000px 560px at 50% 0%, rgba(59,130,246,.16), transparent 70%), radial-gradient(700px 500px at 100% 100%, rgba(124,92,255,.14), transparent 70%); }
main > section:nth-of-type(6n+4)::after { background: radial-gradient(800px 520px at 90% 50%, rgba(240,171,252,.13), transparent 70%); }
main > section:nth-of-type(6n+5)::after { background: radial-gradient(900px 600px at 15% 40%, rgba(124,92,255,.2), transparent 70%), radial-gradient(500px 400px at 85% 90%, rgba(59,130,246,.12), transparent 70%); }
main > section:nth-of-type(6n)::after { background: radial-gradient(900px 520px at 70% 70%, rgba(217,70,239,.14), transparent 70%); }
.hero::after, .page-hero::after { display: none; }
/* a thin glowing seam between sections instead of a hard edge */
main > section + section::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(900px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,184,255,.35), transparent); }
/* the census and quote keep a stronger colour field */
.census::after { background: linear-gradient(180deg, rgba(36,26,110,.55), rgba(36,26,110,0) 85%), radial-gradient(900px 500px at 20% 10%, rgba(217,70,239,.14), transparent 70%) !important; }
.quote::after { background: radial-gradient(700px 360px at 50% 50%, rgba(124,92,255,.3), transparent 70%) !important; }

/* menus: wide, clearly lighter panels that float over the page */
.nav-more .menu { min-width: 300px !important; padding: 12px !important; border-radius: 16px !important; left: -12px !important;
  background: linear-gradient(180deg, #342b7c, #2a2268) !important;
  box-shadow: 0 0 0 1px rgba(206,194,255,.32), 0 30px 70px -20px rgba(0,0,0,.95), 0 0 80px -30px rgba(124,92,255,.6) !important; }
.nav-more .menu.wide { width: 600px; }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.menu.wide .menu-grid { grid-template-columns: 1fr 1fr; }
.nav-more .menu a { padding: 13px 14px !important; border-radius: 10px !important; }
.nav-more .menu a b { font-size: 16px !important; color: #fff !important; font-weight: 600 !important; }
.nav-more .menu a span { font-size: 14.5px !important; color: #cfc8f2 !important; }
.nav-more .menu a:hover { background: rgba(255,255,255,.09) !important; }
.nav-more .menu a:hover b { color: #f0abfc !important; }
.menu-foot { display: block; margin-top: 8px; padding: 14px 14px 6px !important; border-top: 1px solid rgba(206,194,255,.22); border-radius: 0 !important; color: #f0abfc !important; font-weight: 600; font-size: 15.5px; }
.menu-foot:hover { background: none !important; color: #fff !important; }
.nav-more > button { font-size: 16px !important; font-weight: 600 !important; color: #fff !important; }
.nav-right { gap: 26px !important; }
.nav-ask { font-weight: 600 !important; color: #fff !important; }
.nav-ask:hover { color: #f0abfc !important; }
@media (max-width: 1060px) { .nav-more .menu.wide { width: auto; } .menu.wide .menu-grid { grid-template-columns: 1fr; } }

/* history: each era as a wide card with its picture */
.timeline { display: grid; gap: 28px; padding-top: 20px; }
.era { display: grid !important; grid-template-columns: 300px 1fr !important; gap: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge), 0 30px 60px -28px rgba(0,0,0,.9); }
.era:nth-child(even) { grid-template-columns: 1fr 300px !important; }
.era:nth-child(even) .era-img { order: 2; }
.era .yr { display: none !important; }
.era > div:nth-child(2) { padding: 34px 38px; order: 1; }
.era:nth-child(odd) > div:nth-child(2) { order: 2; }
.era h3 { font-size: 26px !important; margin-bottom: 10px; }
.era h3::before { content: attr(data-yr); }
.era p.muted { font-size: 18px; color: #d6d0f3 !important; max-width: 640px; }
.era .works { margin-top: 18px; }
.era-img { margin: 0; position: relative; min-height: 240px; }
.era-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.era-img figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; font-size: 13px; background: linear-gradient(transparent, rgba(5,4,20,.85)); }
.era-img figcaption a { color: #e6e0ff; }
.era-year { display: inline-block; font: 700 16px 'Inter', sans-serif; margin-bottom: 8px; }
.era:nth-child(4n+1) .era-year { color: #c6b8ff; } .era:nth-child(4n+2) .era-year { color: #f0abfc; } .era:nth-child(4n+3) .era-year { color: #93c5fd; } .era:nth-child(4n) .era-year { color: #fcd34d; }
@media (max-width: 900px) { .era, .era:nth-child(even) { grid-template-columns: 1fr !important; } .era-img { order: 0 !important; min-height: 220px; } .era > div:nth-child(2) { order: 1 !important; padding: 24px; } }

/* argument: idea cards and proof cards */
.idea-grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.idea-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 24px; border-radius: 18px; color: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 28%, #221b55), #1a1548 75%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 24px 48px -24px rgba(0,0,0,.9); transition: transform .2s; }
.idea-card:hover { transform: translateY(-4px); color: inherit; }
.idea-card b { color: #fff; font-size: 20px; line-height: 1.25; font-weight: 600; }
.idea-card span { color: var(--c); font-size: 15.5px; margin-top: 18px; font-weight: 500; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.proof { position: relative; padding: 22px 22px 22px 70px; border-radius: 16px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); }
.proof i { position: absolute; left: 22px; top: 20px; font: 700 26px 'Inter', sans-serif; font-style: normal; color: #f0abfc; }
.proof b { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }
.proof span { color: #c9c3ec; font-size: 16px; line-height: 1.5; }
.proof:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 980px) { .idea-grid-cards { grid-template-columns: 1fr 1fr; } .proof-grid { grid-template-columns: 1fr; } }

/* plain headings with a short line under them */
.plain-h { font-size: clamp(30px, 3.2vw, 44px) !important; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin: 0 0 12px !important; max-width: 820px; }
h1.plain-h, .page-hero .plain-h { font-size: clamp(40px, 4.8vw, 64px) !important; }
.sub-h { font-size: clamp(18px, 1.5vw, 21px) !important; color: #c9c3ec !important; line-height: 1.5; max-width: 680px; margin: 0 0 8px !important; }
.page-hero .sub-h { font-size: clamp(19px, 1.6vw, 22px) !important; }
.mx-intro .sub-h, .row-grid .sub-h { margin-bottom: 16px !important; }

/* videos: exact 16:9, black, nothing around them */
.video-card, .video-frame, .video { aspect-ratio: 16 / 9 !important; background: #000 !important; border-radius: 14px; overflow: hidden; padding: 0 !important; }
.video-card img { width: 100%; height: 100%; object-fit: cover !important; }
.video-frame iframe, .video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* tables: fewer columns, readable, stacked on phones */
.pct-bar { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); margin-right: 12px; vertical-align: middle; position: relative; overflow: hidden; }
.pct-bar::after { content: ''; position: absolute; inset: 0; width: var(--v); background: linear-gradient(90deg, #7c5cff, #c6b8ff); border-radius: 99px; }
.pct-bar.k::after { background: linear-gradient(90deg, #c026d3, #f0abfc); }
table.data td, table.data th { padding: 14px 18px !important; }
@media (max-width: 700px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 14px 16px; border-top: 1px solid rgba(206,194,255,.14); }
  table.data td { border: 0 !important; padding: 3px 0 !important; text-align: left !important; }
  .pct-bar { width: 70px; }
}

/* ideas: text only, comfortable width */
.idea-sec .idea-grid { display: block !important; max-width: 780px; }
.idea-sec .idea-text p { font-size: 19px; }
.qa .ans .src { font-size: 16px !important; color: #c9c3ec !important; margin-top: 4px; }
.qa .ans .src a { color: #f0abfc; font-weight: 600; }

/* idea sections: text beside a picture */
.idea-sec .idea-grid { display: grid !important; grid-template-columns: 1.4fr .8fr; gap: 56px; max-width: none !important; align-items: center; }
.idea-sec .idea-grid.flip .idea-pic { order: -1; }
.idea-pic { margin: 0; }
.idea-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 18px; box-shadow: 0 0 0 1px rgba(206,194,255,.25), 0 30px 60px -24px rgba(0,0,0,.9); }
.idea-pic figcaption { margin-top: 12px; color: #c9c3ec; font-size: 15.5px; line-height: 1.45; }
@media (max-width: 900px) { .idea-sec .idea-grid { grid-template-columns: 1fr; } .idea-sec .idea-grid.flip .idea-pic { order: 2; } .idea-pic img { aspect-ratio: 16 / 11; } }
/* headshots */
.headshot { width: 200px !important; height: 200px !important; border-radius: 50% !important; object-fit: cover; box-shadow: 0 0 0 3px rgba(206,194,255,.35), 0 20px 40px -16px rgba(0,0,0,.9); }
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 22px; box-shadow: 0 0 0 3px rgba(206,194,255,.35); }

/* live rows read as one line each */
.c-row { display: grid !important; grid-template-columns: 300px 1fr 220px !important; gap: 24px !important; align-items: center; padding: 18px 28px !important; }
.c-what b { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.c-what span { display: block; color: #c9c3ec; font-size: 14.5px; }
.c-row.none .c-what b { color: #fdba74; }
.c-line { font: 500 18px 'Mono', monospace; color: #d9d3f5; letter-spacing: .02em; word-spacing: .35em; white-space: nowrap; }
.c-line mark { background: rgba(167,139,250,.28); color: #fff; padding: 3px 6px; border-radius: 6px; box-shadow: inset 0 -2px 0 #c6b8ff; }
.c-stat { color: #a9a3cf; font-size: 14.5px; text-align: right; }
@media (max-width: 900px) { .c-row { grid-template-columns: 1fr !important; gap: 6px !important; } .c-line { white-space: normal; font-size: 16px; } .c-stat { text-align: left; } }

/* home rows: text and visual line up at the top */
.row .row-grid { align-items: start !important; }
.row .row-grid > div:first-child { padding-top: 8px; }

/* glossary as a grid of cards */
#glossary .cols-2 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
#glossary .cols-2 > div { padding: 22px 22px 20px; border-radius: 16px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); }
#glossary .cols-2 > div:nth-child(4n+1) h3 { color: #c6b8ff; } #glossary .cols-2 > div:nth-child(4n+2) h3 { color: #f0abfc; }
#glossary .cols-2 > div:nth-child(4n+3) h3 { color: #93c5fd; } #glossary .cols-2 > div:nth-child(4n) h3 { color: #fcd34d; }
#glossary h3 { font-size: 19px !important; margin: 0 0 8px !important; }
#glossary p { font-size: 16px !important; color: #d1cbf0 !important; margin: 0 !important; line-height: 1.5; }
@media (max-width: 980px) { #glossary .cols-2 { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { #glossary .cols-2 { grid-template-columns: 1fr !important; } }

/* tables: modern and clean */
.table-wrap { background: rgba(20,15,52,.65) !important; border-radius: 16px !important; box-shadow: 0 0 0 1px rgba(206,194,255,.16) !important; overflow: auto; }
table.data { width: 100%; border-collapse: separate !important; border-spacing: 0; font-size: 16px; }
table.data thead th { position: sticky; top: 0; z-index: 1; background: #221b52 !important; color: #b9b2df !important; font: 600 13.5px 'Inter', sans-serif !important; letter-spacing: .01em; text-align: left; padding: 14px 20px !important; border-bottom: 1px solid rgba(206,194,255,.18) !important; white-space: nowrap; }
table.data th.n, table.data td.n { text-align: right !important; font-variant-numeric: tabular-nums; }
table.data tbody td { padding: 16px 20px !important; border-top: 1px solid rgba(206,194,255,.08) !important; color: #e2ddf7 !important; vertical-align: middle !important; line-height: 1.45; }
table.data tbody tr:first-child td { border-top: 0 !important; }
table.data tbody tr:hover td { background: rgba(167,139,250,.08) !important; }
table.data tbody td b { color: #fff !important; font-weight: 600 !important; }
table.data td .muted, table.data td.muted { color: #a9a3cf !important; font-size: 14.5px; }
table.data th.sortable { cursor: pointer; } table.data th.sortable:hover { color: #fff !important; }
#survey .table-wrap { max-height: 560px; }
#five table.data td:first-child { width: 32%; }
#five table.data td:last-child { color: #a9a3cf !important; white-space: nowrap; font-size: 14.5px; }
@media (max-width: 700px) {
  table.data thead { display: none; }
  table.data tbody td { padding: 4px 0 !important; border: 0 !important; text-align: left !important; }
  table.data tbody tr { display: block; padding: 16px 18px; border-top: 1px solid rgba(206,194,255,.1); }
  table.data tbody tr:first-child { border-top: 0; }
}

/* one container system: same width, radius, edge and padding everywhere */
.wrap { width: min(1160px, 100% - 48px) !important; }
.panel, .card, .ladder, .census-panel, .live, .lcard, .gen, .proof, .idea-card, .era, #glossary .cols-2 > div, .raised, .table-wrap { border-radius: 18px !important; }
.panel, .ladder, .raised { padding: 28px 30px !important; }
.tool-grid, .row-grid, .split { gap: 28px 48px !important; }

/* questions and answers: each group is one card, questions are rows inside it */
#faq > .wrap > section { padding: 0 !important; margin-top: 40px; border: 0 !important; }
#faq > .wrap > section::before, #faq > .wrap > section::after { display: none !important; }
#faq .qa { margin: 0; padding: 0 26px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); border: 0 !important; border-top: 1px solid rgba(206,194,255,.12) !important; }
#faq section > .qa:first-of-type, #faq h2 + .qa, #faq p + .qa { border-top: 0 !important; border-radius: 18px 18px 0 0; }
#faq section .qa:last-of-type { border-radius: 0 0 18px 18px; }
#faq section { box-shadow: none; }
#faq .qa summary { font-size: 18px !important; padding: 20px 0 !important; }
#faq h2 { font-size: 24px !important; margin: 0 0 16px !important; }
#faq > .wrap > h2.plain-h { font-size: clamp(30px, 3.2vw, 44px) !important; margin-bottom: 12px !important; }
#faq .qa { background: #261f5e !important; }

/* documentation-style layout: sticky grouped sidebar + content */
.side-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; max-width: 1440px; margin: 0 auto; }
.side { position: sticky; top: 76px; align-self: start; height: calc(100vh - 76px); overflow-y: auto; padding: 36px 20px 40px 32px; border-right: 1px solid rgba(206,194,255,.1); }
.side-toggle { display: none; }
.side-g { margin-bottom: 26px; }
.side-g b { display: block; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.side-g a { display: block; padding: 6px 12px; margin-left: -12px; border-radius: 8px; color: #a9a3cf; font-size: 15px; line-height: 1.35; border-left: 2px solid transparent; }
.side-g a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-g a.on { color: #fff; background: rgba(167,139,250,.14); border-left-color: #c6b8ff; border-radius: 0 8px 8px 0; }
.side-content { min-width: 0; }
.side-content > section .wrap { width: min(980px, 100% - 64px) !important; }
.has-side .page-hero .wrap { width: min(1380px, 100% - 64px) !important; }
@media (max-width: 1060px) {
  .side-layout { grid-template-columns: 1fr; }
  .side { position: sticky; top: 64px; height: auto; z-index: 30; padding: 10px 20px; border-right: 0; border-bottom: 1px solid rgba(206,194,255,.12); background: rgba(8,6,26,.92); backdrop-filter: blur(10px); }
  .side-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; color: #fff; font: 600 16px 'Inter', sans-serif; padding: 8px 0; cursor: pointer; }
  .side-toggle::after { content: ''; width: 8px; height: 8px; border-right: 2px solid #c6b8ff; border-bottom: 2px solid #c6b8ff; transform: rotate(45deg); }
  .side-nav { display: none; max-height: 60vh; overflow-y: auto; padding: 12px 0 8px; }
  .side.open .side-nav { display: block; }
  .side-content > section .wrap { width: min(980px, 100% - 40px) !important; }
}

/* About: big photo, bio in short blocks with pictures */
.author-top { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.author-big { width: 360px; height: 360px; object-fit: cover; border-radius: 28px; box-shadow: 0 0 0 1px rgba(206,194,255,.3), 0 40px 80px -30px rgba(0,0,0,.95), 0 0 120px -20px rgba(167,139,250,.45); }
.author-top h1 { font-size: clamp(48px, 6vw, 84px) !important; margin: 0 0 12px; }
.author-top .lede { font-size: 24px !important; }
.author-bio { padding: 40px 0 96px; }
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bio-block { padding: 28px 30px 30px; border-radius: 18px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); }
.bio-block img { width: 100%; height: 240px; object-fit: cover; object-position: center 30%; border-radius: 12px; margin-bottom: 22px; }
.bio-block h2 { font-size: 26px !important; margin: 0 0 10px !important; }
.bio-block p { font-size: 17.5px !important; line-height: 1.65; color: #ddd8f5 !important; margin: 0; }
.bio-block.wide { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .author-top { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }
  .author-top .actions { justify-content: center; }
  .author-big { width: 260px; height: 260px; }
  .bio-grid { grid-template-columns: 1fr; }
}

/* no default scrollers: thin themed bars, no inner scroll boxes */
html { scrollbar-width: thin; scrollbar-color: rgba(198,184,255,.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(198,184,255,.28); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(198,184,255,.5); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.side { scrollbar-width: none; } .side::-webkit-scrollbar { display: none; }
#survey .table-wrap { max-height: none !important; overflow: visible !important; }
.table-wrap { overflow-x: auto; overflow-y: visible; }
.mel-list { max-height: none !important; overflow: visible !important; }
.more-rows { margin-top: 16px; }
.more-rows[hidden] { display: none; }
/* flipped idea rows keep the text column wide */
.idea-sec .idea-grid.flip { grid-template-columns: .8fr 1.4fr; }
/* page title lines up with the content column beside the sidebar */
.has-side .page-hero > .wrap { width: min(980px, 100% - 64px) !important; margin-left: calc(max(0px, (100% - 1440px) / 2) + 250px + max(32px, (min(100%, 1440px) - 250px - 980px) / 2)) !important; margin-right: 0 !important; }
@media (max-width: 1060px) { .has-side .page-hero > .wrap { width: min(980px, 100% - 40px) !important; margin: 0 auto !important; } }
@media (max-width: 900px) { .idea-sec .idea-grid.flip { grid-template-columns: 1fr; } }
.bio-block img { object-fit: contain !important; background: #120d36; }

/* history as a timeline you can follow */
.timeline { position: relative; padding-left: 44px !important; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 150px; bottom: 30px; width: 2px; background: linear-gradient(#c6b8ff, #f0abfc 50%, #93c5fd); opacity: .55; border-radius: 2px; }
.timeline .era { position: relative; overflow: visible !important; }
.timeline .era::before { content: ''; position: absolute; left: -32px; top: 44px; width: 22px; height: 2px; background: #c6b8ff; }
.timeline .era > * { overflow: hidden; }
.timeline .era-img { border-radius: 18px 0 0 18px; }
.timeline .era:nth-child(even) .era-img { border-radius: 0 18px 18px 0; }
.era-year { font-size: 22px !important; letter-spacing: -.01em; margin-bottom: 4px !important; }
.era:not(:has(.era-img)) { grid-template-columns: 1fr !important; }
.era-img img { object-position: center 22%; filter: saturate(1.05) contrast(1.04); }
@media (max-width: 900px) { .timeline { padding-left: 26px !important; } .timeline::before { left: 4px; } .timeline .era::before { left: -22px; width: 14px; } .timeline .era-img, .timeline .era:nth-child(even) .era-img { border-radius: 18px 18px 0 0; } }

/* top bar: slimmer, glass, lined up with the page */
.nav { height: 64px !important; background: rgba(9,7,28,.72) !important; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(206,194,255,.10) !important; box-shadow: none !important; }
.nav .wrap, .nav > div { width: min(1376px, 100% - 64px) !important; }
.nav-right .btn, .nav .btn-read { height: 38px !important; padding: 0 16px !important; font-size: 15px !important; border-radius: 10px !important; box-shadow: none !important; }
.nav-more > button, .nav-ask, .nav-right a { font-size: 15px !important; }
.side { top: 64px !important; height: calc(100vh - 64px) !important; }
.nav .wrap { height: 64px !important; } .nav-more.active > button { color: #fff !important; box-shadow: inset 0 -2px 0 #c6b8ff; border-radius: 0 !important; }

/* sidebar: quiet, docs-style */
.side { padding: 40px 18px 40px 32px !important; border-right: 1px solid rgba(206,194,255,.08) !important; }
.side-g { margin-bottom: 28px !important; }
.side-g b { color: #8f88bd !important; font-size: 13px !important; font-weight: 600 !important; margin-bottom: 10px !important; letter-spacing: .01em; }
.side-g a { margin-left: 0 !important; padding: 5px 0 5px 14px !important; border-radius: 0 !important; background: none !important; color: #b9b2df !important; font-size: 15px !important; border-left: 1px solid rgba(206,194,255,.14) !important; }
.side-g a:hover { color: #fff !important; border-left-color: rgba(206,194,255,.4) !important; }
.side-g a.on { color: #fff !important; font-weight: 600; border-left: 2px solid #c6b8ff !important; padding-left: 13px !important; }
/* About: portrait */
.author-top { grid-template-columns: 400px 1fr !important; }
.author-big { width: 400px !important; height: 500px !important; border-radius: 24px !important; object-fit: cover; }
@media (max-width: 860px) { .author-top { grid-template-columns: 1fr !important; } .author-big { width: 280px !important; height: 350px !important; } }
.claim-line { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: #e9e4ff; font-weight: 500; max-width: 760px; margin: 8px 0 0; letter-spacing: -.01em; }

/* forms: modern, calm, clear */
#contrib-form, #contact-form { padding: 36px !important; border-radius: 20px !important; background: linear-gradient(180deg, #241d58, #1a1446) !important; box-shadow: 0 0 0 1px rgba(206,194,255,.16), 0 40px 80px -40px rgba(0,0,0,.9) !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px !important; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 600 14.5px 'Inter', sans-serif !important; color: #e9e4ff !important; margin-bottom: 8px !important; }
.field .hint { display: block; font-size: 13.5px !important; color: #a9a3cf !important; margin-top: 7px; }
.input, .select, .textarea { width: 100%; box-sizing: border-box; background: rgba(9,7,30,.55) !important; border: 1px solid rgba(206,194,255,.18) !important; border-radius: 12px !important; color: #fff !important; font: 400 16px 'Inter', sans-serif !important; padding: 13px 15px !important; min-height: 50px; transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: none !important; }
.textarea { min-height: 140px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #7f78ad !important; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(206,194,255,.32) !important; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #c6b8ff !important; background: rgba(9,7,30,.8) !important; box-shadow: 0 0 0 4px rgba(167,139,250,.22) !important; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c6b8ff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 16px center !important; }
.select option { background: #1a1446; color: #fff; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-size: 15px !important; color: #d6d0f3 !important; line-height: 1.5; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 6px; border: 1px solid rgba(206,194,255,.4); background: rgba(9,7,30,.55); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: #8b5cf6; border-color: #a78bfa; }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible { box-shadow: 0 0 0 4px rgba(167,139,250,.3); outline: none; }
#contrib-form .btn, #contact-form .btn { width: 100%; height: 50px; justify-content: center; font-size: 16px !important; border-radius: 12px !important; }
.form-note { margin: 14px 0 0 !important; font-size: 15px; color: #c6b8ff; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #fda4af !important; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } #contrib-form, #contact-form { padding: 24px !important; } }

/* Learn page */
.lesson { padding: 96px 0; }
.lesson.alt { background: linear-gradient(180deg, rgba(36,28,88,.35), rgba(20,15,52,.2)); }
.lesson-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.lesson-grid.flip > :first-child { order: 2; } .lesson-grid.flip { grid-template-columns: 1fr 1.25fr; }
.lesson-text p { font-size: 18px; line-height: 1.7; color: #ddd8f5; }
.lesson-text .sub-h { font-size: 21px !important; color: #c9c3ec !important; margin-bottom: 22px; }
.lesson-text a { color: #f0abfc; font-weight: 600; }
.lesson-visual { position: sticky; top: 96px; }
.lesson-visual h3 { font-size: 18px !important; margin: 0 0 16px !important; }
.lesson-pic { margin: 0; position: sticky; top: 96px; }
.lesson-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 18px; box-shadow: 0 0 0 1px rgba(206,194,255,.25), 0 30px 60px -24px rgba(0,0,0,.9); }
.lesson-pic figcaption { margin-top: 12px; color: #c9c3ec; font-size: 15.5px; }
.pull-demo { display: grid; gap: 18px; }
.pull-demo > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(206,194,255,.1); }
.pull-demo > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pull-demo b { color: #fff; font-size: 16.5px; } .pull-demo span { color: #a9a3cf; font-size: 14.5px; grid-column: 1; }
.pull-demo .rowline { grid-column: 1; } .pull-demo .btn { grid-column: 2; grid-row: 1 / span 3; }
.form-row { padding: 14px 0; border-bottom: 1px solid rgba(206,194,255,.1); } .form-row:last-child { border-bottom: 0; }
.form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .form-head b { color: #fff; }
.hist-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 40px 0; }
.hist-strip figure { margin: 0; }
.hist-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(206,194,255,.2); }
.hist-strip figcaption { font-size: 14.5px; color: #c9c3ec; margin-top: 10px; line-height: 1.45; }
.hist-strip figcaption b { display: block; color: #fff; font-size: 17px; margin-bottom: 2px; }
.lesson-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } .lesson-cols p { font-size: 18px; line-height: 1.7; color: #ddd8f5; margin: 0; }
.fact-big { font: 700 clamp(34px, 4vw, 52px) 'Inter', sans-serif; color: #fff; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.big-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.share-bar { height: 10px; border-radius: 10px; background: rgba(206,194,255,.12); margin-top: 22px; overflow: hidden; } .share-bar span { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #f0abfc); }
#nf { width: 100%; accent-color: #a78bfa; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.next-grid a { display: block; padding: 26px; border-radius: 18px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); text-decoration: none; transition: box-shadow .15s; }
.next-grid a:hover { box-shadow: 0 0 0 1px #c6b8ff; }
.next-grid b { display: block; color: #fff; font-size: 19px; margin-bottom: 6px; } .next-grid span { color: #c9c3ec; font-size: 15.5px; }
@media (max-width: 980px) { .lesson { padding: 64px 0; } .lesson-grid, .lesson-grid.flip { grid-template-columns: 1fr; gap: 32px; } .lesson-grid.flip > :first-child { order: 0; } .lesson-visual, .lesson-pic { position: static; } .hist-strip { grid-template-columns: repeat(2, 1fr); } .lesson-cols, .next-grid { grid-template-columns: 1fr; } }
@media (max-width: 1060px) { .side { height: auto !important; padding: 8px 20px !important; border-left: 0 !important; } }

/* why 12! builder */
.fb-pool { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.fb-key { height: 42px; border-radius: 10px; border: 1px solid rgba(206,194,255,.25); background: rgba(9,7,30,.5); color: #fff; font: 600 15px 'Inter', sans-serif; cursor: pointer; transition: background .12s, border-color .12s; }
.fb-key:hover { background: rgba(167,139,250,.25); border-color: #c6b8ff; }
.fb-key.used { opacity: .22; cursor: default; }
.fb-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 18px 0 14px; }
.fb-slot { height: 34px; border-radius: 8px; border: 1px dashed rgba(206,194,255,.22); display: grid; place-items: center; font: 600 12.5px 'Inter', sans-serif; color: #fff; }
.fb-slot.full { border: 0; background: linear-gradient(180deg, #8b5cf6, #6d4ae0); }
.fb-slot.next { border: 1px solid #f0abfc; }
.fb-math { font: 500 15px 'Inter', sans-serif; color: #7f78ad; line-height: 1.8; font-variant-numeric: tabular-nums; }
.fb-math i { font-style: normal; margin: 0 5px; color: #5d568c; }
.fb-math .done { color: #e9e4ff; } .fb-math .now { color: #f0abfc; font-weight: 700; }
.fb-total { font-size: 15.5px; color: #c9c3ec; margin: 10px 0 14px; min-height: 48px; } .fb-total b { color: #fff; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-small { border-top: 1px solid rgba(206,194,255,.1); margin-top: 18px; }
.fb-nf { margin: 8px 0 0; color: #c9c3ec; font-size: 15px; } .fb-nf b { color: #fff; font-size: 20px; }
.fb-actions .btn { height: 36px !important; padding: 0 14px !important; font-size: 14px !important; }
.why12 { font-size: 16.5px; color: #c9c3ec; max-width: 680px; margin: 10px 0 0; line-height: 1.6; } .why12 a { color: #f0abfc; font-weight: 600; white-space: nowrap; }

/* contact hub */
.contact-hub { padding: 104px 0; background: linear-gradient(180deg, rgba(36,28,88,.4), rgba(14,10,40,.2)); }
.intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 32px; }
.intent { text-align: left; padding: 22px 22px 20px; border-radius: 18px; border: 0; cursor: pointer; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); color: inherit; font: inherit; transition: box-shadow .15s; }
.intent:hover { box-shadow: 0 0 0 1px rgba(206,194,255,.45); }
.intent.on { box-shadow: 0 0 0 2px #c6b8ff, 0 24px 50px -24px rgba(139,92,246,.7); background: linear-gradient(180deg, #3a2f86, #261e63); }
.intent:focus-visible { outline: none; box-shadow: 0 0 0 3px #f0abfc; }
.intent svg { width: 28px; height: 28px; fill: none; stroke: #c6b8ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; display: block; }
.intent.on svg { stroke: #f0abfc; }
.intent b { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
.intent span { display: block; color: #c9c3ec; font-size: 15px; line-height: 1.45; }
.intent-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.intent-side h3 { font-size: 26px !important; margin: 6px 0 12px !important; }
.intent-side p { font-size: 17.5px; line-height: 1.65; color: #ddd8f5; }
.intent-side a { color: #f0abfc; font-weight: 600; }
.intent-direct { color: #a9a3cf !important; font-size: 15.5px !important; }
.intent-forms form[hidden], #contribute[hidden] { display: none; }
@media (max-width: 980px) { .intent-grid { grid-template-columns: 1fr 1fr; } .intent-body { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .intent-grid { grid-template-columns: 1fr; } .intent { padding: 18px; } }
@media (max-width: 1180px) { .nav-right { gap: 18px !important; } }

/* About, editorial layout */
.author-hero { padding: 72px 0 80px !important; }
.author-top { display: grid !important; grid-template-columns: 420px 1fr !important; gap: 72px !important; align-items: center !important; }
.author-big { width: 420px !important; height: 525px !important; border-radius: 24px !important; object-fit: cover; object-position: center 30%; box-shadow: 0 0 0 1px rgba(206,194,255,.22), 0 50px 90px -40px rgba(0,0,0,.95), 0 0 140px -30px rgba(167,139,250,.5) !important; }
.author-intro h1 { font-size: clamp(52px, 6vw, 88px) !important; line-height: 1 !important; margin: 0 0 14px !important; letter-spacing: -.03em; }
.author-intro .lede { font-size: 23px !important; color: #c9c3ec !important; margin: 0 0 34px !important; }
.author-facts { margin: 0 0 36px; display: grid; gap: 0; max-width: 560px; }
.author-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(206,194,255,.14); }
.author-facts > div:last-child { border-bottom: 1px solid rgba(206,194,255,.14); }
.author-facts dt { color: #a9a3cf; font-size: 15px; font-weight: 600; }
.author-facts dd { margin: 0; color: #fff; font-size: 17px; }
.author-story { padding: 96px 0 104px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.story-text { max-width: 700px; }
.story-text h2 { font-size: 28px !important; margin: 44px 0 14px !important; }
.story-text h2:first-child { margin-top: 0 !important; }
.story-text p { font-size: 19px; line-height: 1.75; color: #ddd8f5; margin: 0; }
.story-text a { color: #f0abfc; }
.story-works { position: sticky; top: 100px; display: grid; gap: 36px; }
.work-cover { display: block; text-decoration: none; }
.work-cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.95), 0 10px 20px -10px rgba(0,0,0,.6); transition: transform .2s; }
.work-cover:hover img { transform: translateY(-4px); }
.work-cover span { display: block; margin-top: 14px; color: #c9c3ec; font-size: 15px; line-height: 1.4; }
.work-cover b { display: block; color: #fff; font-size: 17px; }
@media (max-width: 980px) {
  .author-top { grid-template-columns: 1fr !important; gap: 36px !important; justify-items: start; }
  .author-big { width: min(360px, 100%) !important; height: auto !important; aspect-ratio: 4 / 5; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-works { position: static; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 520px) { .author-facts > div { grid-template-columns: 1fr; gap: 2px; } .story-text p { font-size: 17.5px; } }
.story-grid { grid-template-columns: minmax(0, 760px) !important; justify-content: start; }
.author-intro .lede { margin-bottom: 30px !important; }
.author-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; } .author-split .author-name { margin: 0 !important; } .author-split .body { font-size: 19px !important; line-height: 1.7; margin: 0; } @media (max-width: 860px) { .author-split { grid-template-columns: 1fr; gap: 24px; } }

/* Listen cards: video preview + snapshot */
.lcards { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 22px !important; }
.lcard { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px !important; background: linear-gradient(180deg, var(--card-top), var(--card-bot)) !important; box-shadow: 0 0 0 1px var(--card-edge) !important; }
.lc-video, .lc-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; background: #000; position: relative; cursor: pointer; overflow: hidden; }
.lc-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s, transform .3s; }
.lc-video:hover img { opacity: 1; transform: scale(1.02); }
.lc-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(139,92,246,.92); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.lc-play::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.lc-video:focus-visible { outline: 3px solid #f0abfc; outline-offset: -3px; }
.lc-body { padding: 22px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.lc-comp { color: #c6b8ff !important; font-size: 14px !important; font-weight: 600; }
.lcard h3 { font-size: 21px !important; margin: 4px 0 8px !important; color: #fff; }
.lc-note { color: #fff !important; font-size: 16px !important; margin: 0 0 8px !important; }
.lc-snap { color: #c9c3ec !important; font-size: 15.5px !important; line-height: 1.6; margin: 0 0 16px !important; }
.lc-links { margin-top: auto !important; display: flex !important; gap: 20px !important; padding-top: 14px; border-top: 1px solid rgba(206,194,255,.12); }
.lc-links a { color: #f0abfc !important; font-size: 14.5px !important; font-weight: 600; }
@media (max-width: 760px) { .lcards { grid-template-columns: 1fr !important; } }

/* lesson pages */
.ls { padding: 64px 0 8px; }
.ls:first-of-type { padding-top: 56px; }
.ls .wrap > h2 { font-size: clamp(28px, 2.6vw, 36px) !important; margin: 0 0 18px !important; }
.ls h3 { font-size: 21px !important; color: #fff; margin: 34px 0 10px !important; }
.ls p, .ls li { font-size: 18.5px; line-height: 1.75; color: #ddd8f5; max-width: 720px; }
.ls p { margin: 0 0 18px; }
.ls ul, .ls ol { padding-left: 22px; margin: 0 0 20px; max-width: 720px; }
.ls li { margin-bottom: 8px; }
.ls a { color: #f0abfc; }
.ls b, .ls strong { color: #fff; }
.ls blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 2px solid #c6b8ff; max-width: 680px; }
.ls blockquote p { font-size: 20px; color: #fff; margin: 0 0 6px; }
.ls blockquote cite { color: #a9a3cf; font-size: 15px; font-style: normal; }
.ls .key { margin: 28px 0; padding: 22px 26px; border-radius: 16px; background: linear-gradient(180deg, rgba(58,47,134,.55), rgba(38,30,99,.45)); box-shadow: 0 0 0 1px rgba(206,194,255,.2); max-width: 720px; }
.ls .key h3 { margin: 0 0 8px !important; font-size: 18px !important; color: #f0abfc; }
.ls .key p:last-child, .ls .key ul:last-child { margin-bottom: 0; }
.ls figure.lfig { margin: 30px 0; max-width: 760px; }
.ls figure.lfig img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(206,194,255,.2); }
.ls figure.lfig.portrait { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.ls figure.lfig.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.ls figcaption { color: #c9c3ec; font-size: 15.5px; line-height: 1.55; margin-top: 10px; }
.ls .demo { margin: 28px 0; padding: 24px 26px; border-radius: 18px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); max-width: 760px; }
.ls .demo h3 { margin: 0 0 14px !important; font-size: 18px !important; }
.ls table.data { max-width: 760px; margin: 20px 0 26px; }
.ls .reading li { margin-bottom: 14px; }
.ls .reading i { color: #fff; }
.ls .booklinks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lesson-nav { padding: 48px 0 96px; }
.lesson-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lesson-nav a { display: block; padding: 20px 24px; border-radius: 16px; text-decoration: none; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); }
.lesson-nav a:hover { box-shadow: 0 0 0 1px #c6b8ff; }
.lesson-nav span { display: block; color: #a9a3cf; font-size: 14px; margin-bottom: 4px; }
.lesson-nav b { color: #fff; font-size: 17.5px; }
.lesson-nav .ln-next { text-align: right; }
@media (max-width: 700px) { .lesson-nav .wrap { grid-template-columns: 1fr; } .lesson-nav .ln-next { text-align: left; } .ls figure.lfig.portrait { grid-template-columns: 1fr; } .ls p, .ls li { font-size: 17.5px; } }

/* formulas and proofs */
.ls .formula { margin: 22px 0 24px; padding: 18px 22px; border-radius: 14px; background: rgba(9,7,30,.6); box-shadow: inset 0 0 0 1px rgba(206,194,255,.16); font: 500 19px/1.7 'Inter', sans-serif; color: #fff; max-width: 720px; overflow-x: auto; font-variant-numeric: tabular-nums; }
.ls .formula .eq { display: block; white-space: nowrap; }
.ls .formula .note { display: block; font-size: 15px; color: #a9a3cf; margin-top: 6px; white-space: normal; }
.ls .formula sup { font-size: 70%; } .ls .formula i { font-family: Georgia, 'Times New Roman', serif; font-size: 112%; }
.ls .proof { margin: 24px 0 28px; padding: 22px 26px 8px; border-radius: 16px; background: linear-gradient(180deg, rgba(36,28,88,.5), rgba(20,15,52,.35)); box-shadow: 0 0 0 1px rgba(206,194,255,.16); max-width: 740px; }
.ls .proof > b:first-child { display: block; color: #f0abfc; font-size: 17px; margin-bottom: 10px; }
.ls .proof ol { counter-reset: step; list-style: none; padding: 0; }
.ls .proof ol > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.ls .proof ol > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px; background: rgba(167,139,250,.22); color: #e9e4ff; font: 700 13.5px/26px 'Inter', sans-serif; text-align: center; }
.ls .proof .qed { display: block; text-align: right; color: #a9a3cf; font-size: 15px; margin: -4px 0 14px; }
.ls var { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.08em; color: #fff; position: static; } .ls var sub { font-family: Inter, sans-serif; font-style: normal; font-size: .7em; }
.ls .proof ol > li b { display: inline !important; font-size: inherit !important; margin: 0 !important; color: #fff !important; }
#score td:nth-child(2) { white-space: nowrap; }

/* course overview */
.course-part { padding: 72px 0 8px; }
#how { padding-bottom: 96px; }
.lesson-grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.lesson-card { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 24px; border-radius: 18px; text-decoration: none; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge); transition: box-shadow .15s; }
.lesson-card:hover { box-shadow: 0 0 0 1px #c6b8ff, 0 20px 40px -24px rgba(139,92,246,.6); }
.lesson-card .lc-n { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(167,139,250,.2); color: #fff; font: 700 18px 'Inter', sans-serif; }
.lesson-card b { color: #fff; font-size: 18.5px; align-self: end; }
.lesson-card > span:last-child { color: #c9c3ec; font-size: 15.5px; line-height: 1.45; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.howto > div { padding: 22px; border-radius: 16px; background: rgba(36,28,88,.45); box-shadow: 0 0 0 1px rgba(206,194,255,.14); }
.howto b { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; } .howto span { color: #c9c3ec; font-size: 15.5px; line-height: 1.5; }
@media (max-width: 860px) { .lesson-grid-cards, .howto { grid-template-columns: 1fr; } }
main { overflow: visible !important; overflow-x: clip !important; }
.nav-links .nav-top { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; padding: 8px 12px; border-radius: 0 !important; text-decoration: none; background: none !important; }
.nav-links .nav-top:hover { color: #f0abfc !important; }
.nav-more .menu.xl { width: 860px; }
.menu.xl .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
.menu.xl .menu-grid a { padding: 10px 12px !important; }
.menu.xl .menu-grid a span { display: none; }
.menu.xl .menu-grid a b { font-size: 15px !important; }
@media (max-width: 1060px) { .menu.xl .menu-grid { grid-template-columns: 1fr; } }
.anchor { display: block; position: relative; top: -70px; height: 0; }
