/* Scoped continuation: Typora's annotated window, then Stoic's card composition. */
.explore-section { background: #fff; color: #272727; padding: 95px 32px 135px; }
.explore-section > h2 { margin: 0 0 32px; text-align: center; font-size: clamp(30px, 3vw, 42px); line-height: 1.35; font-weight: 450; letter-spacing: -.055em; }
.explore-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; margin-bottom: 26px; }
.explore-tabs button { border: 0; background: none; color: #787878; padding: 9px 13px; font-size: 15px; line-height: 1.4; transition: color .15s, background .15s; }
.explore-tabs button[aria-selected="true"], .explore-tabs button:hover { background: #efefef; color: #222; }
.explore-stage { max-width: 1060px; display: grid; grid-template-columns: 1fr minmax(0, 500px) 1fr; gap: 38px; margin: 0 auto; outline-offset: 12px; }
.explore-window { position: relative; display: grid; grid-template-rows: 26px minmax(0, 1fr) 24px; min-width: 0; height: 550px; border: 1px solid #cbcbcb; border-radius: 5px; background: #fff; box-shadow: 0 28px 23px -12px #0006, 0 6px 24px #0002; }
.explore-window-bar { height: 26px; display: flex; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(#fff, #fafafa); border-radius: 5px 5px 0 0; font-size: 10px; color: #777; }
.window-lights { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.window-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff6058; box-shadow: inset 0 0 0 1px #0001; }
.window-lights i:nth-child(2) { background: #febc2e; }
.window-lights i:nth-child(3) { background: #28c840; }
.window-menu { font-size: 11px; }
.explore-document { overflow-y: auto; padding: 26px 30px 16px; font-size: 14px; line-height: 1.7; scrollbar-width: thin; }
.document-eyebrow { display: block; margin-bottom: 8px; font-size: 10px; color: #a0a0a0; letter-spacing: .07em; }
.explore-document h3 { margin: 0 0 20px; padding-bottom: 11px; border-bottom: 1px solid #ededed; font-size: 25px; line-height: 1.4; font-weight: 650; letter-spacing: -.03em; }
.explore-document h4 { margin: 21px 0 8px; font-size: 16px; font-weight: 600; }
.explore-document p { margin: 11px 0; }
.explore-document blockquote { margin: 21px 0; padding: 9px 15px; border-left: 3px solid #d8d8d8; background: #f7f7f7; color: #777; }
.explore-document ul, .explore-document ol { padding-left: 22px; margin: 10px 0; }
.explore-document li { margin: 5px 0; }
.explore-document mark { background: #f8eed0; color: inherit; padding: 1px 3px; border-radius: 2px; }
.explore-document table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 13px; }
.explore-document th, .explore-document td { padding: 9px 10px; border: 1px solid #e6e6e6; text-align: left; }
.explore-document th { font-weight: 600; background: #f6f6f6; }
.document-equation { margin: 24px 0; padding: 20px 12px; background: #f9f9f9; text-align: center; font: 22px/1.8 Georgia, serif; }
.document-equation small { display: block; margin-top: 8px; font: 11px/1.6 var(--sans); color: #888; }
.document-flow { margin: 22px 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.document-flow b { border: 1px solid #ccc; border-radius: 4px; font-size: 12px; padding: 7px 20px; font-weight: 500; }
.document-flow span { font-size: 16px; color: #bbb; line-height: 1; }
.document-checklist { list-style: none; padding: 0 !important; }
.document-checklist li::before { content: '✓'; display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 3px; background: #7c91a4; color: #fff; font-size: 10px; margin-right: 9px; }
.document-checklist li:last-child::before { content: ''; background: #fff; border: 1px solid #ddd; }
.explore-window-foot { align-self: center; padding-right: 17px; text-align: right; color: #aaa; font-size: 9px; letter-spacing: .04em; }
.explore-notes { position: relative; display: flex; flex-direction: column; gap: 52px; padding-top: 106px; font-size: 12px; color: #999; }
.explore-notes-left { padding-top: 178px; }
.explore-note { position: relative; }
.explore-note h3 { font-size: 15px; font-weight: 450; margin: 0 0 7px; border-bottom: 1px solid #d6d6d6; padding-bottom: 5px; color: #666; }
.explore-note p { margin: 0; line-height: 1.65; text-wrap: pretty; }
.explore-note::before { content: ''; position: absolute; top: 14px; width: 80px; border-top: 1px solid #c9cdd0; pointer-events: none; z-index: 2; }
/* Real blue buttons keep their hit area while the associated note is hidden. */
.explore-note-dot { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; position: absolute; top: -3px; z-index: 3; padding: 0; cursor: pointer; }
.explore-note-dot::after { content: ''; display: block; width: 9px; height: 9px; margin: auto; background: #507b98; box-shadow: 0 0 8px #7598b980; border-radius: 50%; }
.explore-note-dot:hover::after, .explore-note-dot:focus-visible::after { background: #286f9d; box-shadow: 0 0 0 5px #7598b924; }
.explore-notes-left .explore-note::before { left: calc(100% + 6px); }
.explore-notes-left .explore-note-dot { left: calc(100% + 70px); }
.explore-notes-right .explore-note::before { right: calc(100% + 6px); }
.explore-notes-right .explore-note-dot { right: calc(100% + 70px); }
.explore-note-content, .explore-note::before { opacity: 0; visibility: hidden; }
.explore-note.is-open .explore-note-content, .explore-note.is-open::before { opacity: 1; visibility: visible; transition: opacity var(--note-fade-duration, 500ms) cubic-bezier(.22,.61,.36,1); }
.explore-section:not(.notes-interactive) .explore-note > :is(h3,p) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .explore-note.is-open .explore-note-content, .explore-note.is-open::before { transition: none; } }


.learning-stories { background: #f0f1f2; color: #242424; padding: 120px 0 0; overflow: clip; }
.learning-stories > h2 { max-width: 870px; margin: 0 auto 65px; padding: 0 28px; text-align: center; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.3; font-weight: 630; letter-spacing: -.035em; text-wrap: balance; }
.story-rails { display: grid; gap: 12px; }
.story-viewport { overflow-x: auto; scrollbar-width: thin; }
.story-track, .story-batch { display: flex; width: max-content; }
.story-batch { gap: 12px; padding-right: 12px; }
.story-card { width: 480px; min-height: 260px; display: grid; grid-template-columns: 105px 1fr; gap: 26px; align-items: center; margin: 0; padding: 39px 35px; border-radius: 22px; background: #fff; }
.story-card img { display: block; width: 100%; height: 110px; object-fit: contain; }
.story-card p { font-size: 15px; line-height: 1.7; margin: 0 0 24px; text-wrap: pretty; }
.story-card span { font-size: 12px; color: #666; }
.stories-scroll-driven .story-viewport { overflow: hidden; }
.story-batch[aria-hidden="true"] { display: none; }
.stories-scroll-driven .story-batch[aria-hidden="true"] { display: flex; }
.story-actions { display: flex; flex-direction: column; align-items: center; padding: 35px 24px 45px; }
.story-continue { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 17px 27px; border: 1px solid #e1e2e3; border-radius: 100px; text-decoration: none; color: #151515; background: #fff; font-size: 14px; }
.story-continue > :last-child { font-size: 23px; line-height: 18px; }
.story-continue:hover { border-color: #aaa; }

.weekly-section { background: #f0f1f2; padding: 125px 32px 100px; scroll-margin-top: 95px; }
.weekly-shell { max-width: 1120px; margin: 0 auto; padding: 68px; border-radius: 68px; background: #000; color: #fff; }
.weekly-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin-bottom: 60px; }
.weekly-heading h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1.25; }
.weekly-heading h2 > span { color: #fff; }
.weekly-heading p { color: #b4b4b4; font-size: 17px; line-height: 1.7; margin: 0 0 22px; text-wrap: pretty; }
.weekly-shuffle { display: inline-flex; align-items: center; gap: 25px; border: 0; border-radius: 100px; background: #fff; color: #111; font-size: 14px; padding: 15px 25px; }
.weekly-shuffle:hover { background: #e8e8e8; }
.weekly-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.weekly-card { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 455px; aspect-ratio: .96; padding: 35px; border: 0; border-radius: 30px; overflow: hidden; color: #fff; text-align: left; background: #405154; }
.weekly-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.weekly-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0002, #0002 70%, #0003); z-index: -1; }
.weekly-card-label { display: block; font-size: 17px; font-weight: 550; margin-bottom: 44px; }
.weekly-card-body { display: block; margin: auto 0; padding-bottom: 24px; }
.weekly-card-intro { display: block; font-size: 13px; line-height: 1.6; margin-bottom: 18px; opacity: .85; }
.weekly-card strong { display: block; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.33; font-weight: 620; letter-spacing: -.025em; text-wrap: pretty; }
.weekly-card-signature { display: block; font-size: 13px; margin-top: 23px; opacity: .85; }
.weekly-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; font-size: 11px; }
.weekly-card-bottom > :first-child { opacity: 0; transition: opacity .2s; }
.weekly-card-bottom > :last-child { font-size: 30px; font-weight: 350; line-height: 1; }
.weekly-card:hover .weekly-card-bottom > :first-child, .weekly-card:focus-visible .weekly-card-bottom > :first-child { opacity: 1; }
.weekly-card:focus-visible { outline-color: #fff; outline-offset: 6px; }

@media (min-width: 1600px) { .explore-section { padding-top: 125px; padding-bottom: 160px; } .learning-stories { padding-top: 150px; } .story-card { width: 530px; min-height: 285px; } }
@media (max-width: 1000px) {
  .explore-stage { grid-template-columns: 1fr minmax(0, 440px) 1fr; gap: 24px; }
  .explore-note::before { width: 48px; }
  .explore-notes-left .explore-note-dot { left: calc(100% + 37px); }
  .explore-notes-right .explore-note-dot { right: calc(100% + 37px); }
  .explore-notes { font-size: 11px; gap: 45px; }
  .explore-note h3 { font-size: 13px; }
  .weekly-shell { padding: 45px; border-radius: 48px; }
  .weekly-heading { gap: 40px; margin-bottom: 44px; }
  .weekly-card { padding: 26px; min-height: 410px; }
  .weekly-card-label { font-size: 15px; }
}
@media (max-width: 760px) {
  .explore-section { padding: 75px 25px 85px; }
  .explore-section > h2 { margin-bottom: 23px; font-size: 30px; }
  .explore-tabs { gap: 2px; margin-bottom: 25px; }
  .explore-tabs button { padding: 8px 10px; font-size: 13px; }
  .explore-stage { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 500px; gap: 35px; }
  .explore-window { grid-row: 1; height: 570px; }
  .explore-document { padding: 25px 22px 16px; font-size: 13px; }
  .explore-document h3 { font-size: 23px; }
  .explore-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding-top: 0; font-size: 12px; }
  .explore-notes-right { display: grid; }
  .explore-notes { padding-top: 26px; }
  .explore-notes .explore-note-dot { left: -9px; right: auto; top: -33px; }
  .explore-note h3 { font-size: 14px; }
  .explore-note::before, .explore-note::after { display: none; }
  .learning-stories { padding-top: 80px; }
  .learning-stories > h2 { font-size: 29px; margin-bottom: 40px; }
  .story-rails { gap: 10px; }
  .story-batch { gap: 10px; padding-right: 10px; }
  .story-card { width: 350px; min-height: 235px; grid-template-columns: 70px 1fr; gap: 18px; padding: 28px 25px; border-radius: 18px; }
  .story-card img { height: 84px; }
  .story-card p { font-size: 13px; margin-bottom: 18px; }
  .story-card span { font-size: 10px; }
  .story-actions { padding-top: 30px; }
  .story-continue { font-size: 13px; }
  .weekly-section { padding: 80px 16px 55px; scroll-margin-top: 145px; }
  .weekly-shell { padding: 40px 24px 24px; border-radius: 35px; }
  .weekly-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 35px; }
  .weekly-heading h2 { font-size: 34px; }
  .weekly-heading p { font-size: 15px; }
  .weekly-cards { grid-template-columns: 1fr; gap: 20px; }
  .weekly-card { min-height: 365px; aspect-ratio: .92; padding: 27px; border-radius: 24px; }
  .weekly-card strong { font-size: clamp(24px, 5.8vw, 31px); }
  .weekly-card-label { margin-bottom: 35px; }
  .weekly-card-bottom > :first-child { opacity: .8; }
}
@media (max-width: 374px) { .weekly-card { min-height: 460px; } }
@media (prefers-reduced-motion: reduce) {
  .stories-scroll-driven .story-viewport { overflow-x: auto; }
  .stories-scroll-driven .story-track { transform: none !important; }
  .stories-scroll-driven .story-batch[aria-hidden="true"] { display: none; }
}
