/* Polish layer for inner pages: same light, colour and type as the home page, plus the
   fixes from the full design review. */

/* page headers lit like the home hero */
.page-hero { position: relative; padding: clamp(80px, 9vw, 130px) 0 clamp(48px, 5vw, 72px) !important; border-bottom: 1px solid var(--edge) !important;
  background: radial-gradient(700px 420px at 85% 0%, rgba(124,92,255,.42), transparent 70%), radial-gradient(500px 360px at 100% 90%, rgba(217,70,239,.2), transparent 70%) !important; }
.page-hero h1, .page-hero .two-tone.big { font-size: clamp(40px, 4.6vw, 62px) !important; letter-spacing: -0.035em; line-height: 1.06; max-width: 920px; color: #fff; }
.page-hero h1 span, .two-tone span { color: var(--slate) !important; }
.page-hero .lede { font-size: 20px; color: var(--slate); max-width: 720px; margin-top: 22px; }
section h2, .two-tone { color: #fff; }
.two-tone { font-size: clamp(30px, 3.2vw, 44px) !important; line-height: 1.12; letter-spacing: -0.032em; max-width: 760px; }

/* section rhythm and colour, no flat light bands */
main > section { border-top: 1px solid var(--edge) !important; }
main > section.page-hero { border-top: 0 !important; }
.wash, .cream { background: linear-gradient(180deg, rgba(124,92,255,.07), rgba(124,92,255,0) 70%) !important; color: var(--ink); }
.cream h2, .cream h3, .wash h2, .wash h3 { color: #fff !important; }
.dark { background: linear-gradient(180deg, #1a1350, #120e36) !important; }
.dark p, .dark .muted { color: var(--slate) !important; }

/* readable sizes everywhere */
body { font-size: 18px; }
p { color: var(--slate); }
.small, .muted.small, .note-line { font-size: 16px !important; }
.muted { color: var(--slate) !important; }
.end a, .nav-more > button, .nav-ask { font-size: 16.5px !important; }
table.data { font-size: 16px; }
table.data th { font: 600 14px 'Inter', sans-serif !important; color: var(--slate) !important; }
table.data td { font-size: 16px; }
.ch-body p, .gen span, .w-figs small { font-size: 16px !important; }
.qa summary { font-size: 20px !important; padding: 24px 0 !important; }
.qa .ans p { font-size: 18px; }

/* no floating tick marks, no boxed tags, no eyebrows */
.spine::after, .spine::before { display: none !important; }
.spine, .spine.lav, .spine.ink { padding: 22px 0 0 !important; border-top: 1px solid var(--edge-2) !important; }
.spine h3 { font-size: 21px; color: #fff; margin-bottom: 8px; }
.spine p { font-size: 17px; }
.work .links { gap: 22px !important; }
.work .links a { background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; font: 600 16px 'Inter', sans-serif !important; color: #c6b8ff !important; }
.work .links a:hover { color: #fff !important; }
.work b { font-size: 18px; }
.work .small { font-size: 16px !important; color: var(--slate) !important; }
.ch-label { display: none !important; }
.part-title { font-size: 20px !important; color: #fff !important; margin: 64px 0 20px !important; }

/* cards: one consistent raised surface with colour */
.panel, .ch-card, .gal-item, .table-wrap, .cite-box, .gen { background: linear-gradient(160deg, #221b55, #17143b 70%) !important; box-shadow: var(--lift) !important; border-radius: 18px !important; }
.panel.soft { background: rgba(124,92,255,.06) !important; box-shadow: 0 0 0 1px var(--edge) !important; }
.ch-card { padding: 22px !important; gap: 24px !important; }
.ch-card:hover, .gen:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(198,184,255,.3), 0 40px 80px -30px rgba(3,2,15,.9) !important; }
.ch-body h3 { font-size: 21px !important; }
.ch-go { color: #f0abfc !important; font-size: 16px !important; }
.gen { display: flex !important; flex-direction: column; justify-content: flex-start !important; }

/* buttons: the home-page style everywhere, no stray arrows on utility buttons */
.btn { height: auto; min-height: 50px; padding: 0 24px; border-radius: 10px !important; font: 600 16.5px 'Inter', sans-serif !important; }
.btn::after { display: none !important; }
.btn-ink, .btn-purple { background: linear-gradient(180deg, #8b6bff, #6d4cf0) !important; color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -8px rgba(124,92,255,.7) !important; }
.btn-soft, .btn-white { background: rgba(255,255,255,.06) !important; color: #fff !important; box-shadow: 0 0 0 1px var(--edge-2) inset !important; }
.link-arrow { color: #fff !important; font-weight: 600; font-size: 17px; }
.link-arrow::after { border-color: #f0abfc !important; }

/* text tabs */
.chip, .subnav a { font-size: 17px !important; color: var(--slate) !important; }
.chip[aria-pressed="true"] { color: #fff !important; border-bottom-color: #f0abfc !important; }

/* forms line up */
.form-grid { align-items: start !important; }
.check input { accent-color: #8b5cf6; }
.input, .textarea, .select { background: rgba(10,8,30,.55) !important; border: 1px solid var(--edge-2) !important; border-radius: 10px !important; font-size: 16.5px !important; min-height: 50px; }

/* no sideways scrolling on phones */
.tool-grid > *, .split > *, .row-grid > * { min-width: 0; }
.mx-staff .staff, .ni-staff .staff { min-width: 0 !important; }
.panel { max-width: 100%; }
.table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  table.data.stack-sm tr, .argument-table tr { display: block; padding: 14px 16px; border-top: 1px solid var(--edge); }
  table.data.stack-sm td { display: block; border: 0; padding: 4px 0; }
  table.data.stack-sm thead { display: none; }
}

/* stats that do not wrap */
.stat .big { white-space: nowrap; font-size: clamp(32px, 3vw, 46px) !important; }
.stat .big.purple { color: #f0abfc !important; }

/* reading list */
.bib p { font-size: 16px !important; }

/* core idea pages */
.idea-body { padding: clamp(72px, 8vw, 110px) 0; }
.idea-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 6vw, 88px); align-items: start; }
.idea-text p { font-size: 20px; line-height: 1.7; color: #d9d4f2; margin: 0 0 22px; max-width: 640px; }
.idea-text p:first-child { font-size: 22px; color: #fff; }
.idea-side { position: sticky; top: 110px; display: grid; gap: 22px; }
.idea-quote { margin: 0; padding: 34px; border-radius: 20px; background: linear-gradient(135deg, #5b3fd9 0%, #8e2fc9 60%, #3a2591 100%); box-shadow: var(--lift); }
.idea-quote blockquote { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; color: #fff; }
.idea-quote figcaption { margin-top: 18px; color: rgba(255,255,255,.8); font-size: 16px; }
.idea-nums { display: grid; background: linear-gradient(160deg, #221b55, #17143b 70%); border-radius: 20px; box-shadow: var(--lift); }
.idea-nums div { padding: 22px 28px; border-top: 1px solid var(--edge); }
.idea-nums div:first-child { border-top: 0; }
.idea-nums b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.035em; color: #fff; line-height: 1.05; }
.idea-nums div:nth-child(2) b { color: #f0abfc; } .idea-nums div:nth-child(3) b { color: #93c5fd; }
.idea-nums span { display: block; color: var(--slate); font-size: 16px; margin-top: 6px; }
.idea-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.idea-links a { display: block; padding: 24px 26px; border-radius: 16px; background: linear-gradient(160deg, #221b55, #17143b 70%); box-shadow: var(--lift); transition: transform .2s, box-shadow .2s; }
.idea-links a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(198,184,255,.3), 0 30px 60px -30px rgba(3,2,15,.9); }
.idea-links b { display: block; color: #fff; font-size: 19px; font-weight: 600; }
.idea-links span { display: block; color: var(--slate); font-size: 16px; margin-top: 4px; }
@media (max-width: 900px) { .idea-grid, .idea-links { grid-template-columns: 1fr; } .idea-side { position: static; } }

/* the hero book is a link into the reader */
a.book3d-stage { cursor: pointer; }
a.book3d-stage:hover .book3d { filter: brightness(1.05); }
.book-hint { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); color: var(--slate); font-size: 15px; white-space: nowrap; }

@media (max-width: 560px) { .stat .big, .num { white-space: normal !important; font-size: 30px !important; word-break: break-word; } .stats { grid-template-columns: 1fr 1fr !important; } }

/* spacing restored on inner pages */
main p { margin: 0 0 1em; }
main p:last-child { margin-bottom: 0; }
main h2 { margin: 0 0 .55em; }
main h3 { margin: 0 0 .45em; }
.page-hero h1 { margin-bottom: 0; }
.stack > * + * { margin-top: 20px; }
.cite-box p, .cite-box pre { padding-right: 90px; }
.cite-box .copy { position: absolute; top: 16px; right: 16px; min-height: 38px; padding: 0 14px; }
ol.stack li { color: var(--slate); font-size: 18px; line-height: 1.6; }
ol.stack li b { color: #fff; }

@media (max-width: 560px) {
  .hero, .row, main { overflow-x: hidden; }
  .mini-mx { table-layout: fixed; font-size: 10px; } .mini-mx td { padding: 3px 0; }
  .ladder { padding: 22px 18px; } .ld-sub { flex-direction: column; gap: 4px; }
}
@media (max-width: 700px) {
  #rel-bars > div, #ceiling > div, #floor > div { grid-template-columns: 1fr auto !important; gap: 8px 14px !important; }
  #rel-bars > div > div:nth-child(2), #ceiling > div > div:nth-child(2), #floor > div > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

.author-card { margin: 0; padding: 40px; border-radius: 20px; }
.author-card blockquote { margin: 0; font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: #fff; }
.author-card figcaption { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(206,194,255,.18); }
.author-card figcaption b { display: block; color: #fff; font-size: 19px; }
.author-card figcaption span { display: block; color: #c9c3ec; font-size: 16px; margin-top: 2px; }

/* home matrix: full width, real labels */
.mx-intro { max-width: 760px; margin-bottom: 44px; }
.home-mx { padding: 32px 36px 28px; }
.home-mx .mx-table { margin: 0 auto; }
.home-mx .mx-staff { margin-top: 24px; }
.matrix-sec .go { margin-top: 28px; }
.mx-table td.diag { background: rgba(167,139,250,.16); }

.q-progress { width: 160px; height: 2px; margin: 30px auto 0; background: rgba(206,194,255,.18); border-radius: 2px; overflow: hidden; }
.q-progress i { display: block; height: 100%; width: 0; background: #f0abfc; }
.mx-tog .chip { border: 0 !important; border-bottom: 2px solid transparent !important; outline: 0; box-shadow: none !important; background: none !important; }
.mx-tog .chip[aria-pressed="true"] { border-bottom-color: #f0abfc !important; }
.home-mx .mx-staff .staff, .mx-staff .staff { max-width: 760px; margin: 0 auto; }

/* on narrow screens every picture follows its text, never above a title */
@media (max-width: 980px) {
  .cover-stage, .visual, .desk-shot, .book3d-stage, .video-card, .video-frame, .ladder, .author-works, .split > .cover-stage, .hero-grid > :last-child { order: 2 !important; }
  .split, .row-grid, .hero-grid, .ch-grid, .idea-grid { display: flex !important; flex-direction: column; }
  .split > *, .row-grid > *, .hero-grid > * { width: 100%; }
  .book3d-stage { height: 440px; }
}

.author-name { font: 800 clamp(64px, 7vw, 104px)/.9 'Cover', sans-serif; text-transform: uppercase; color: #fff; margin: 0 0 8px; letter-spacing: 0; }
.author-works { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.work-obj { display: block; color: inherit; text-align: left; }
.work-obj img { width: 100%; aspect-ratio: 0.7; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 0 0 0 1px rgba(206,194,255,.2), 0 30px 60px -24px rgba(0,0,0,.9); transition: transform .25s; }
.work-obj:nth-child(1) img { transform: rotate(-3deg); } .work-obj:nth-child(2) img { transform: rotate(3deg); }
.work-obj:hover img { transform: translateY(-6px) rotate(0); }
.work-obj b { display: block; margin-top: 22px; color: #fff; font-size: 19px; font-weight: 600; }
.work-obj span { display: block; color: #c9c3ec; font-size: 16px; }

/* note strip replaces the staff everywhere */
.note-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 4px 2px; padding: 18px 8px 12px; }
.note-strip .nh { text-align: center; }
.note-strip .nh b { display: block; font: 600 clamp(20px, 2vw, 28px)/1.1 'Inter', sans-serif; color: #fff; letter-spacing: -0.02em; transition: color .15s; }
.note-strip .nh i { display: block; font-style: normal; font-size: 12px; color: var(--dim); margin-top: 4px; }
.note-strip .nh.empty b { color: rgba(206,194,255,.25); }
.note-strip .nh.on b { color: #f0abfc; }
.ni-staff { padding: 4px 6px; }

/* listen cards */
.lg { padding: clamp(70px, 8vw, 110px) 0; }
.lcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.lcard { padding: 24px 24px 20px; border-radius: 16px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); box-shadow: 0 0 0 1px var(--card-edge), 0 24px 48px -24px rgba(0,0,0,.85); display: flex; flex-direction: column; }
.lc-comp { color: #f0abfc; font-weight: 600; font-size: 15px; }
.lcard h3 { font-size: 21px; color: #fff; margin: 6px 0 8px; line-height: 1.25; }
.lcard p { color: #c9c3ec; font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.lc-links { margin-top: auto; display: flex; gap: 20px; padding-top: 14px; border-top: 1px solid rgba(206,194,255,.16); }
.lc-links a { color: #c6b8ff; font-weight: 600; font-size: 15.5px; }
.lc-links a:hover { color: #fff; }
.lg:nth-of-type(odd) .lc-comp { color: #93c5fd; }
.bowl-feature { padding: clamp(80px, 9vw, 120px) 0; }
@media (max-width: 980px) { .lcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lcards { grid-template-columns: 1fr; } }
