@font-face {
  font-family: 'Google Sans Flex';
  src: url('/fonts/google-sans-flex-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Google Sans Flex';
  src: url('/fonts/google-sans-flex-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Material Symbols Rounded';
  src: url('/fonts/material-symbols-rounded-full.woff2') format('woff2');
  font-display: block;
}

:root {
  --md-sys-typescale-body-medium-font: 'Google Sans Flex', system-ui, sans-serif;
  --md-sys-typescale-label-large-font: var(--md-sys-typescale-body-medium-font);
  --md-sys-typescale-display-large-weight: 680;
  --md-sys-typescale-headline-large-weight: 650;
  --md-sys-typescale-title-large-weight: 630;
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;
  --hero-surface: color-mix(in srgb, var(--md-sys-color-primary-container) 55%, var(--md-sys-color-surface));
  --card-tint: 24%;
  --card-hover-tint: 30%;
  /* Single source of truth: website-planning/33-Design-Contract.md */
  --content-width: 1380px;
  --pane-width: 304px;
  --ml-page-gutter: clamp(10px, 3vw, 42px);
  --ml-hero-height: 390px;
  --ml-hero-title-size: clamp(2rem, 3.4vw, 3.4rem);
  --rail-width: 88px;
  --bar-height: 64px;
  --corner: 28px;
  --motion-spatial: 380ms cubic-bezier(.2, .8, .15, 1);
  --motion-effects: 180ms cubic-bezier(.2, 0, 0, 1);
  --md-filled-button-container-height: 48px;
  --md-outlined-button-container-height: 48px;
  --md-focus-ring-color: var(--md-sys-color-primary);
}

:root[data-theme='dark'] {
  --hero-surface: var(--md-sys-color-surface-container-low);
  --card-tint: 8%;
  --card-hover-tint: 10%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-height); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  font: 400 1rem/1.55 var(--md-sys-typescale-body-medium-font);
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
}
h1, h2, h3, p { margin: 0; }
a { color: var(--md-sys-color-primary); text-underline-offset: .18em; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.symbol {
  display: inline-block;
  flex: none;
  width: 1em;
  overflow: hidden;
  font: 400 24px/1 'Material Symbols Rounded';
  font-feature-settings: 'liga';
  white-space: nowrap;
  user-select: none;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.skip-link:focus { transform: none; }

.top-bar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(240px, 600px) minmax(210px, 1fr);
  align-items: center;
  gap: 20px;
  height: var(--bar-height);
  padding-inline: 20px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
}
.top-bar-brand, .top-bar-actions { display: flex; align-items: center; min-width: 0; }
.top-bar-brand [data-menu-open] { display: none; }
.top-bar .brand { min-width: 0; }
.brand-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--md-sys-color-primary);
}
.brand-mark .symbol { font-size: 20px; color: var(--md-sys-color-on-primary); }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-bar-actions { justify-content: flex-end; gap: 6px; }
.top-bar-actions a { color: inherit; }
.top-bar-icon { display: block; width: 22px; height: 22px; }
.top-bar .top-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-inline: 18px;
  border-radius: 100px;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container);
  text-align: start;
}
.language-picker, .palette-picker { position: relative; }
.language-picker .language-toggle {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  width: auto;
  padding-inline: 10px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 650;
}
.top-bar [data-header-picker][open] > summary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.language-panel, .palette-panel {
  position: absolute;
  padding: 15px 10px 10px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 20px;
  background: var(--md-sys-color-surface-container);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--md-sys-color-shadow) 19%, transparent);
}
.language-panel { inset: calc(100% + 9px) -38px auto auto; width: 238px; }
.palette-panel {
  inset: calc(100% + 9px) -95px auto auto;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--bar-height) - 14px);
  overflow: auto;
}
.palette-title { padding-inline: 8px; font-size: 1.125rem; font-weight: 650; }
.palette-panel fieldset { margin: 0; padding: 0; border: 0; }
.palette-group { display: grid; gap: 4px; }
.palette-group > p { margin: 9px 8px 2px; font-size: .8rem; color: var(--md-sys-color-on-surface-variant); }
.palette-option {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 12px;
  cursor: pointer;
}
.palette-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.palette-option:hover { background: var(--md-sys-color-surface-container-highest); }
.palette-option:has(:checked) {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.palette-option:has(:focus-visible) { outline: 2px solid var(--md-sys-color-primary); outline-offset: -2px; }
.palette-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 28px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 100px;
  background: var(--swatch-surface);
}
.palette-preview i { width: 11px; height: 11px; border-radius: 50%; background: var(--swatch-primary); }
.palette-preview i:nth-child(2) { background: var(--swatch-secondary); }
.palette-preview i:nth-child(3) { background: var(--swatch-tertiary); }
.palette-label { display: grid; line-height: 1.23; }
.palette-label small { font-size: .76rem; color: var(--md-sys-color-on-surface-variant); }
.palette-option:has(:checked) small { color: inherit; }
.palette-marker { width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.palette-option:has(:checked) .palette-marker { background: radial-gradient(circle, currentColor 4px, transparent 4.5px); }
.language-title, .language-note { padding-inline: 9px; }
.language-title { font-weight: 650; }
.language-note { margin: 8px 0 0; color: var(--md-sys-color-on-surface-variant); font-size: .875rem; }
.language-panel ul { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.language-current, .language-panel a, .language-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border: 0;
  border-radius: 11px;
  text-align: start;
}
.language-panel a {
  position: relative;
  color: inherit;
  text-decoration: none;
}
.language-panel a:hover { background: var(--md-sys-color-surface-container-high); }
.language-current {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 600;
}
.language-panel button:disabled {
  cursor: default;
  background: transparent;
  color: color-mix(in srgb, var(--md-sys-color-on-surface-variant) 76%, var(--md-sys-color-surface-container));
}
.account-avatar {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-inline-start: 4px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  font-weight: 650;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.account-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rail {
  position: fixed;
  z-index: 4;
  inset: var(--bar-height) auto 0 0;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  scrollbar-width: thin;
  gap: 16px;
  padding: 18px 4px;
  border-inline-end: 1px solid color-mix(in srgb, var(--md-sys-color-on-surface) 7%, transparent);
  background: var(--md-sys-color-surface-container);
}
.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.main-links {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
}
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 68px;
  justify-content: center;
  padding: 2px 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: center;
  text-decoration: none;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .75rem;
  line-height: 1.25;
}
.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  border-radius: 100px;
  transition: background var(--motion-effects);
}
.nav-icon .symbol { font-size: 22px; }
.nav-link:is([aria-current], [data-active='true'], [aria-expanded='true']) {
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 650;
}
.nav-link:is([aria-current], [data-active='true'], [aria-expanded='true']) .nav-icon {
  background: var(--md-sys-color-secondary-container);
}
.preferences {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.preferences .icon-button {
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface-variant);
}
.preferences [aria-pressed='true'] {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 17px;
  border-radius: 100px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: .875rem;
}
.section-nav a:hover { background: var(--md-sys-color-surface-container-high); }
.section-nav a[aria-current] {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-weight: 650;
}
.desktop-section-nav {
  position: fixed;
  z-index: 3;
  inset: var(--bar-height) auto 0 var(--rail-width);
  width: var(--pane-width);
  overflow: auto;
  padding: 10px 8px;
  border-radius: 0 18px 18px 0;
  background: var(--md-sys-color-surface-container);
  box-shadow: 2px 2px 8px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);
  transition: transform var(--motion-spatial), visibility var(--motion-spatial);
}
.desktop-section-nav[inert] { visibility: hidden; transform: translateX(-100%); }
.drawer { display: none; }

main, .footer {
  margin-inline-start: var(--rail-width);
}
body[data-design-page]:has(#desktop-design:not([inert])) :is(main, .footer) {
  margin-inline-start: calc(var(--rail-width) + var(--pane-width));
}
main { flex-grow: 1; padding: 8px 0 0; }
.player-frame {
  display: block;
  width: 100%;
  height: max(28rem, calc(100dvh - var(--bar-height) - 16px));
  margin-bottom: 8px;
  border: 0;
  border-radius: 20px;
  background: var(--md-sys-color-surface);
}
.hero { display: grid; gap: 8px; }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(34px, 4vw, 66px);
  border-radius: var(--corner);
  background: var(--hero-surface);
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.hero-eyebrow { color: var(--md-sys-color-primary); font-size: .875rem; text-transform: none; }
h1 {
  max-width: 21ch;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: var(--md-sys-typescale-display-large-weight);
  letter-spacing: -.05em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-lead {
  margin-top: 20px;
  max-width: 63ch;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.45;
  color: var(--md-sys-color-on-surface-variant);
}
.hero-cycle {
  margin-top: 18px;
  color: var(--md-sys-color-primary);
  font-weight: 650;
}
.hero-home h1, .hero-system-detail h1 { font-size: clamp(2rem, 4.1vw, 4.4rem); }
.hero-system-detail h1 { max-width: 24ch; }
.hero-system-detail .hero-eyebrow { margin-top: 12px; }
.system-content .section + .section { margin-top: clamp(38px, 5vw, 68px); }
.system-content .section > h3 { margin-top: 24px; }
.system-content .section > h3 + p { margin-top: 6px; }
.system-next { margin-top: 34px; }
.section-kesfet .page-card { min-height: 198px; padding-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .symbol { font-size: 20px; }
md-filled-button:not(:defined), md-outlined-button:not(:defined) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  gap: 8px;
  border-radius: 100px;
  color: var(--md-sys-color-on-primary);
  background: var(--md-sys-color-primary);
}

.conversation-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 52px);
  border-radius: var(--corner);
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}
.conversation-prompt {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 25px 25px 25px 7px;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
}
.conversation-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .875rem;
  font-weight: 650;
  color: var(--md-sys-color-on-surface-variant);
}
.conversation-prompt p { font-size: clamp(1.65rem, 3vw, 3.25rem); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
.conversation-reply {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 16px;
  padding: 11px 17px;
  border-radius: 20px 20px 6px 20px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-weight: 650;
  text-decoration: none;
}
.conversation-reply:hover { text-decoration: underline; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 20px; color: var(--md-sys-color-primary); }
.wave i { width: 3px; height: 45%; border-radius: 100px; background: currentColor; animation: wave 3s ease-in-out infinite alternate; }
.wave i:nth-child(2), .wave i:nth-child(4) { height: 73%; animation-delay: -1s; }
.wave i:nth-child(3) { height: 100%; animation-delay: -.45s; }
@keyframes wave { from { transform: scaleY(.46); } to { transform: scaleY(1); } }
:root[data-motion='paused'] { scroll-behavior: auto; --motion-spatial: 0ms; --motion-effects: 0ms; }
:root[data-motion='paused'] .wave i { animation-play-state: paused; }

.hero-module { grid-template-columns: minmax(0, 1fr) minmax(190px, .37fr); }
.hero-module h1 { font-size: clamp(2rem, 4vw, 3.75rem); }
.parent-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--md-sys-color-primary);
  font-size: .88rem;
  font-weight: 600;
}
.parent-link .symbol { font-size: 18px; }
.module-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 200px;
  border-radius: var(--corner);
  background: var(--art-bg, var(--md-sys-color-primary-container));
  color: var(--art-ink, var(--md-sys-color-on-primary));
}
.module-shape {
  display: grid;
  place-items: center;
  width: clamp(108px, 58%, 225px);
  aspect-ratio: 1;
  background: var(--art-shape, var(--md-sys-color-primary));
  border-radius: 37% 63% 54% 46% / 53% 39% 61% 47%;
  rotate: -11deg;
}
.module-shape .symbol { font-size: clamp(55px, 9vw, 105px); rotate: 11deg; }
.art-design, .art-seed, .art-glossary {
  --art-bg: var(--md-sys-color-secondary-container);
  --art-shape: var(--md-sys-color-secondary);
  --art-ink: var(--md-sys-color-on-secondary);
}
.art-classroom, .art-narrative {
  --art-bg: var(--md-sys-color-tertiary-container);
  --art-shape: var(--md-sys-color-tertiary);
  --art-ink: var(--md-sys-color-on-tertiary);
}
:root[data-theme='dark'] .module-art { background: var(--md-sys-color-surface-container); }

.content {
  margin-inline: auto;
  padding: clamp(40px, 6vw, 82px) clamp(10px, 4vw, 64px) 68px;
}
.section + .section { margin-top: clamp(48px, 7vw, 94px); }
.section { scroll-margin-top: 20px; }
.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: var(--md-sys-typescale-headline-large-weight);
  text-wrap: balance;
}
.section > p {
  max-width: 70ch;
  margin-top: 14px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: clamp(1.025rem, 1.7vw, 1.19rem);
}
.section > ul { margin: 18px 0 0; padding-left: 22px; }
.section > ul li + li { margin-top: 8px; }
.reading {
  max-width: var(--content-width);
  padding-block-start: clamp(32px, 6vw, 74px);
  padding-inline: clamp(14px, 4vw, 36px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.reading h1 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); max-width: 24ch; }
.reading-header p, .reading .section > p { margin-top: 16px; }
.reading-header p { font-size: clamp(1.08rem, 1.85vw, 1.24rem); }
.reading .section + .section { margin-top: clamp(36px, 5vw, 58px); }
.reading .section h2 { font-size: clamp(1.55rem, 3vw, 2.12rem); }
.reading .section h3 { margin-top: 26px; line-height: 1.25; }
.reading .section h3 + p { margin-top: 8px; }
.reading :is([id], .reading-anchor) { scroll-margin-top: 18px; }
.reading-anchor { display: block; }
.reading :is(ul, ol) ul { padding-inline-start: 1.3em; }
.reading-actions { margin-block: 24px 36px; }
.reading-topics, .reading-topics-mobile {
  margin-block: 26px 36px;
  padding-block: 12px;
  border-block: 1px solid var(--md-sys-color-outline-variant);
}
.reading-topics-mobile { display: none; }
.reading-topics ul, .reading-topics-mobile ul, .reading-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reading-topics ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.reading-topics a, .reading-topics-mobile a { display: inline-block; padding-block: 5px; }
.reading-topics a[aria-current], .reading-topics-mobile a[aria-current] {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
}
.reading-index {
  margin-bottom: 36px;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--md-sys-color-outline-variant);
}
.reading-index p { font-weight: 650; margin-bottom: 5px; }
.reading-index li + li { margin-top: 4px; }
.reading table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
  line-height: 1.5;
}
.reading :is(th, td) {
  padding: 12px 14px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  text-align: start;
  vertical-align: top;
}
.reading th { background: var(--md-sys-color-surface-container); }
.reading table:not(.example-table) th:first-child { width: 37%; }
.section-bir-hikaye > ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding-inline-start: 1.5em;
}
.section-bir-hikaye > ol li {
  padding: 16px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: 19px;
}
.section-bir-hikaye > ol li::marker { color: var(--md-sys-color-primary); font-weight: 650; }
.section-bir-hikaye > ol strong { font-size: 1.04rem; }

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}
.demo-scene, .demo-response {
  padding: clamp(20px, 4vw, 40px);
  border-radius: var(--corner);
}
.demo-scene { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
:root[data-theme='dark'] .demo-scene {
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
}
.demo-scene .eyebrow { color: inherit; }
.demo-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 21px;
  border-radius: 50%;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.demo-question { font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.18; letter-spacing: -.032em; font-weight: var(--md-sys-typescale-title-large-weight); }
.demo-response { background: var(--md-sys-color-surface-container-low); }
.demo-details { margin-top: 16px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.demo-details summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-size: .9rem;
  font-weight: 650;
}
.demo-details summary .symbol { font-size: 20px; transition: transform var(--motion-spatial); }
.demo-details[open] summary .symbol { transform: rotate(180deg); }
.demo-details .when-open, .demo-details[open] .when-closed { display: none; }
.demo-details[open] .when-open { display: inline; }
.model-answer { margin-top: 14px; padding: 14px 17px; border-radius: 17px; background: var(--md-sys-color-surface); }
.model-answer p + p { margin-top: 5px; }
.model-answer [lang='de'] { font-weight: 650; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin-top: 22px;
}
.page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 235px;
  padding: 23px;
  --card-container: var(--md-sys-color-secondary-container);
  --card-on-container: var(--md-sys-color-on-secondary-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: color-mix(in srgb, var(--card-container) var(--card-tint), var(--md-sys-color-surface-container-low));
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  transition: border-radius var(--motion-spatial), background var(--motion-effects), border-color var(--motion-effects);
}
.card-player, .card-question {
  --card-container: var(--md-sys-color-primary-container);
  --card-on-container: var(--md-sys-color-on-primary-container);
}
.card-classroom, .card-narrative {
  --card-container: var(--md-sys-color-tertiary-container);
  --card-on-container: var(--md-sys-color-on-tertiary-container);
}
.page-card:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--card-container) var(--card-hover-tint), var(--md-sys-color-surface-container-high));
  border-color: var(--md-sys-color-outline);
}
.card-icon, .card-arrow {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 15px;
  background: var(--card-container);
  color: var(--card-on-container);
}
.card-title { margin-top: 14px; font-size: clamp(1.2rem, 2vw, 1.48rem); font-weight: var(--md-sys-typescale-title-large-weight); line-height: 1.18; letter-spacing: -.018em; overflow-wrap: anywhere; }
.card-copy { margin: 8px 0 17px; color: var(--md-sys-color-on-surface-variant); }
.card-arrow { width: 35px; height: 35px; margin: auto 0 0 auto; border-radius: 50%; }
.card-arrow .symbol { font-size: 20px; }

.faq { display: grid; gap: 5px; max-width: 810px; margin-top: 21px; }
.faq details { border-radius: 15px; background: var(--md-sys-color-surface-container-low); }
.faq summary {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-radius: inherit;
  padding: 12px 17px;
  font-weight: 600;
}
.faq summary .symbol { transition: transform var(--motion-spatial); }
.faq details[open] summary .symbol { transform: rotate(90deg); }
.faq-answer { padding: 0 17px 17px; color: var(--md-sys-color-on-surface-variant); }
.back-to-design { margin-top: 40px; }
.back-to-design a, .footer > a, .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px clamp(22px, 5vw, 70px);
  background: var(--md-sys-color-surface-container);
}
.brand { color: var(--md-sys-color-on-surface); text-decoration: none; font-weight: 650; }
.brand > .symbol { color: var(--md-sys-color-primary); }

dialog {
  border: 0;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
}
dialog::backdrop { background: color-mix(in srgb, var(--md-sys-color-scrim) 48%, transparent); }
.search-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(640px, 85dvh);
  padding: 16px 20px 22px;
  border-radius: var(--corner);
}
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-heading h2 { font-size: 1.5rem; font-weight: 600; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-inline: 15px;
  border-radius: 100px;
  background: var(--md-sys-color-surface);
}
.search-field:focus-within { outline: 2px solid var(--md-sys-color-primary); }
.search-field input {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
}
.search-status { min-height: 1.5em; margin: 14px 4px 4px; color: var(--md-sys-color-on-surface-variant); font-size: .9rem; }
.search-results { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.search-results a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  border-radius: 15px;
  padding: 7px 14px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}
.search-results a:hover { background: var(--md-sys-color-secondary-container); }
.search-results small { color: var(--md-sys-color-on-surface-variant); }

@media (min-width: 1060px) {
  .hero-home { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}
@media (max-width: 1099px) {
  body[data-design-page]:has(#desktop-design:not([inert])) .hero-module { grid-template-columns: 1fr; }
  body[data-design-page] .module-art { min-height: 145px; }
  body[data-design-page] .module-shape { width: 105px; }
}
@media (max-width: 879px) {
  .rail, .desktop-section-nav { display: none; }
  :root { --bar-height: 60px; }
  .top-bar {
    display: flex;
    gap: 2px;
    padding-inline: 6px 10px;
  }
  .top-bar-brand { flex: 1; gap: 3px; }
  .top-bar-brand [data-menu-open] { display: inline-grid; }
  .top-bar-actions { gap: 0; }
  .top-bar .icon-button { width: 44px; height: 44px; }
  .top-bar .top-search { justify-content: center; padding: 0; background: transparent; }
  .search-label { display: none; }
  .top-bar .language-toggle { width: auto; gap: 4px; padding-inline: 4px; }
  .palette-picker { position: static; }
  .palette-panel { inset: calc(100% + 4px) 10px auto auto; width: min(360px, calc(100% - 20px)); }
  .account-avatar { width: 32px; height: 32px; }
  .drawer[open] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(345px, calc(100% - 40px));
    height: 100dvh;
    max-height: none;
    margin: 0 auto 0 0;
    padding: 12px;
    border-radius: 0 24px 24px 0;
    animation: drawer-in var(--motion-spatial) both;
  }
  @keyframes drawer-in { from { transform: translateX(-100%); } }
  .drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-left: 7px; }
  .drawer .nav-link { min-height: 52px; padding: 4px 11px; flex-direction: row; justify-content: flex-start; gap: 10px; font-size: .95rem; }
  .drawer .nav-link .nav-icon { width: 40px; }
  .drawer [data-section-toggle] > .symbol { margin-left: auto; transition: transform var(--motion-spatial); }
  .drawer [data-section-toggle][aria-expanded='true'] > .symbol { transform: rotate(90deg); }
  .drawer .preferences { display: flex; padding: 4px 7px; }
  .mobile-section-nav { margin-left: 16px; padding-left: 10px; border-left: 1px solid var(--md-sys-color-outline-variant); }
  .mobile-section-nav[inert] { display: none; }
  main, .footer, body[data-design-page]:has(#desktop-design:not([inert])) :is(main, .footer) { margin-inline-start: 0; }
  main { padding: 8px 0 0; }
  .hero-copy { padding: clamp(22px, 6vw, 42px); }
  .hero-module { grid-template-columns: 1fr; }
  .module-art { min-height: 145px; }
  .module-shape { width: 105px; }
}
@media (max-width: 600px) {
  .demo { grid-template-columns: 1fr; }
  .reading-topics { display: none; }
  .reading-topics-mobile { display: block; }
  .reading-topics-mobile summary { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-weight: 650; }
  .reading-topics-mobile[open] ul { margin-top: 7px; }
  .reading-topics-mobile a { display: block; padding-block: 8px; }
  .reading :is(th, td) { padding-inline: 8px; }
  .example-table, .example-table :is(tbody, tr, td) { display: block; }
  .example-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .example-table tbody tr {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 12px;
  }
  .reading .example-table td { padding: 4px 0; border: 0; }
  .example-table td::before { content: attr(data-label); display: block; font-size: .86rem; font-weight: 650; }
}
@media (max-width: 480px) {
  .top-bar .brand { gap: 6px; font-size: .8rem; line-height: 1.15; }
  .top-bar .brand-mark { width: 26px; height: 26px; }
  .brand-text { white-space: normal; }
  .brand-suffix { display: none; }
}
@media (max-width: 390px) {
  .brand-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; --motion-spatial: 0ms; --motion-effects: 0ms; }
  :root:not([data-motion='active']) .wave i { animation-play-state: paused; }
}


/* Editorial landing pages — Material 3 surface hierarchy and responsive section index. */
body[data-editorial-page] .hero-copy {
  background: linear-gradient(150deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-secondary-container));
}
body[data-editorial-page] .hero-module h1 { max-width: 18ch; }
body[data-editorial-page] .hero-lead { max-width: 54ch; }
.editorial-content { max-width: var(--content-width); padding-top: clamp(28px, 4vw, 48px); }
.editorial-index {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.editorial-index-title {
  margin: 0 0 12px;
  color: var(--md-sys-color-primary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.editorial-index ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.editorial-index a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-height: 44px;
  padding: 10px 9px;
  border-radius: 12px;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-weight: 550;
  line-height: 1.4;
}
.editorial-index a span {
  flex: 0 0 auto;
  color: var(--md-sys-color-primary);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.editorial-index a:hover { background: var(--md-sys-color-secondary-container); }
.editorial-index a:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.editorial-content > .section {
  padding: clamp(24px, 3.5vw, 46px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
  scroll-margin-top: calc(var(--bar-height) + 24px);
}
.editorial-content > .section:nth-of-type(even) {
  background: var(--md-sys-color-surface-container);
}
.editorial-content > .section + .section { margin-top: clamp(18px, 3vw, 30px); }
.editorial-content > .section h2 { max-width: 23ch; }
.editorial-content > .section > p { max-width: 75ch; line-height: 1.67; }
.editorial-content > .section strong { color: var(--md-sys-color-on-surface); }
.editorial-content > .section a:not(.page-card) {
  color: var(--md-sys-color-primary);
  text-underline-offset: 3px;
}
.editorial-content > .section :is(ul, ol) { max-width: 75ch; line-height: 1.7; }
.editorial-content > .section li + li { margin-top: 8px; }
.editorial-content > .section blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-inline-start: 4px solid var(--md-sys-color-tertiary);
  border-radius: 0 14px 14px 0;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}
@media (max-width: 700px) {
  .editorial-index ul { grid-template-columns: 1fr; }
  .editorial-content { padding-inline: 8px; }
  .editorial-content > .section { padding: clamp(19px, 5vw, 28px); }
  .editorial-content > .section h2 { max-width: none; }
}


/* Main System and Player: content-led Material Design 3 landing pages. */
.reading-landing {
  width: 100%;
  max-width: var(--content-width);
  padding-top: clamp(12px, 3vw, 34px);
  padding-bottom: clamp(52px, 7vw, 94px);
}
.reading-landing .reading-header {
  position: relative;
  overflow: hidden;
  padding: clamp(29px, 5.5vw, 78px);
  border-radius: var(--corner);
  background: linear-gradient(145deg, var(--md-sys-color-primary-container), var(--md-sys-color-surface-container-low) 76%);
  color: var(--md-sys-color-on-surface);
}
.reading-landing .reading-header::after {
  content: '';
  position: absolute;
  top: -76px;
  right: -80px;
  width: clamp(140px, 24vw, 300px);
  aspect-ratio: 1;
  border: 2px solid var(--md-sys-color-outline-variant);
  border-radius: 40% 60% 65% 35%;
  transform: rotate(-23deg);
  pointer-events: none;
  opacity: .65;
}
.reading-landing .reading-header h1 { max-width: 17ch; font-size: clamp(2.3rem, 5vw, 4.8rem); }
.reading-landing .reading-header p {
  max-width: 67ch;
  color: var(--md-sys-color-on-surface-variant);
}
.reading-landing .reading-header p:first-of-type { font-size: clamp(1.12rem, 1.9vw, 1.34rem); }
.reading-landing .reading-actions { margin: 18px 0 10px; }
.landing-index {
  margin: clamp(28px, 4vw, 48px) 0;
  padding: clamp(19px, 2.5vw, 29px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.landing-index-label {
  margin-bottom: 12px;
  color: var(--md-sys-color-primary);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.landing-index ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-index a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  min-height: 44px;
  padding: 10px;
  border-radius: 13px;
  color: var(--md-sys-color-on-surface);
  font-weight: 580;
  line-height: 1.35;
  text-decoration: none;
}
.landing-index a span {
  flex: 0 0 auto;
  color: var(--md-sys-color-primary);
  font-weight: 750;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.landing-index a:hover { background: var(--md-sys-color-secondary-container); }
.landing-index a:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.reading-landing > .section { scroll-margin-top: calc(var(--bar-height) + 20px); }
.reading-landing > .section + .section { margin-top: clamp(24px, 4vw, 44px); }
.reading-landing > .section h2 { max-width: 26ch; font-size: clamp(1.9rem, 3.3vw, 2.95rem); }
.reading-landing > .section > p, .reading-landing > .section > ul { max-width: 75ch; }
.reading-landing > .section > p { line-height: 1.76; }
.reading-landing > .section:nth-of-type(2n) {
  padding: clamp(22px, 4.5vw, 55px);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.reading-landing > .section:nth-of-type(3n) {
  padding: clamp(22px, 4.5vw, 55px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container);
}
.reading-landing > .section > ul {
  padding-inline-start: 24px;
  line-height: 1.75;
}
.reading-landing > .section > ul li + li { margin-top: 13px; }
.reading-landing > .section > ul li::marker { color: var(--md-sys-color-primary); }
.reading-landing > .section a { text-underline-offset: 4px; }
.reading-landing > .section :is(h2, h3) { text-wrap: balance; }
.reading-landing .landing-section-yontemi-olusturan-parcalar > p:first-of-type,
.reading-landing .landing-section-bir-soru-geldiginde-ne-olur > p:first-of-type {
  color: var(--md-sys-color-primary);
  font-weight: 700;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: 25px;
}
.promise-panel {
  min-width: 0;
  padding: clamp(19px, 3vw, 35px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: calc(var(--corner) - 4px);
  background: var(--md-sys-color-surface-container-low);
}
.promise-panel:nth-child(2), .promise-panel:nth-child(5) { background: var(--md-sys-color-secondary-container); }
.promise-panel:nth-child(3) { background: var(--md-sys-color-tertiary-container); }
.promise-panel:last-child { grid-column: 1 / -1; }
.promise-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.promise-panel h3 { margin: 0; max-width: 33ch; font-size: clamp(1.18rem, 2vw, 1.52rem); }
.promise-panel p, .promise-panel ul { margin-top: 14px; line-height: 1.7; }
.promise-panel li + li { margin-top: 7px; }
.promise-panel strong { color: var(--md-sys-color-on-surface); }
.reading-landing-player .landing-section-magic-playerin-bes-temel-vaadi {
  padding: 0;
  border: 0;
  background: transparent;
}
.reading-landing-player .landing-section-magic-playerin-bes-temel-vaadi > p { max-width: 76ch; }
@media (max-width: 760px) {
  .promise-grid, .landing-index ul { grid-template-columns: 1fr; }
  .promise-panel:last-child { grid-column: auto; }
}
@media (max-width: 600px) {
  .reading-landing { padding-inline: 6px; }
  .reading-landing .reading-header { padding: clamp(22px, 6vw, 34px); }
  .reading-landing .reading-header::after { opacity: .2; }
  .reading-landing > .section:nth-of-type(2n),
  .reading-landing > .section:nth-of-type(3n) { padding: 22px; }
  .reading-landing > .section h2 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .promise-panel { padding: 20px; }
}


/* Turkish editorial resources: readable MD3 long-form layout. */
.reading-resource {
  max-width: var(--content-width);
  padding-top: clamp(22px, 4vw, 52px);
  padding-bottom: clamp(55px, 7vw, 90px);
}
.reading-resource .reading-header {
  padding: clamp(24px, 4vw, 54px);
  border-radius: var(--corner);
  background: linear-gradient(145deg, var(--md-sys-color-secondary-container), var(--md-sys-color-surface-container-low));
}
.reading-resource .reading-header h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
}
.reading-resource .reading-header p {
  max-width: 68ch;
  color: var(--md-sys-color-on-surface-variant);
}
.reading-resource .reading-index {
  margin: clamp(24px, 4vw, 40px) 0;
  padding: 18px clamp(18px, 3vw, 30px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-inline-start: 4px solid var(--md-sys-color-primary);
  border-radius: 16px;
  background: var(--md-sys-color-surface-container-low);
}
.reading-resource .reading-index p {
  color: var(--md-sys-color-primary);
  font-size: .85rem;
  font-weight: 700;
}
.reading-resource .reading-index ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 5px 18px;
}
.reading-resource .reading-index a {
  display: block;
  min-height: 44px;
  padding: 9px 3px;
  color: var(--md-sys-color-on-surface);
  font-weight: 550;
  text-decoration: none;
}
.reading-resource .reading-index a:hover { color: var(--md-sys-color-primary); text-decoration: underline; }
.reading-resource > .section {
  scroll-margin-top: calc(var(--bar-height) + 18px);
  padding: clamp(23px, 4vw, 42px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.reading-resource > .section:nth-of-type(2n) { background: var(--md-sys-color-surface-container); }
.reading-resource > .section + .section { margin-top: clamp(18px, 2.5vw, 26px); }
.reading-resource .section h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.reading-resource .section h3 {
  margin-top: 28px;
  color: var(--md-sys-color-on-surface);
  font-size: clamp(1.13rem, 1.9vw, 1.4rem);
}
.reading-resource .section :is(p, li) { line-height: 1.78; }
.reading-resource .section :is(ul, ol) { padding-inline-start: 22px; }
.reading-resource .section a { text-underline-offset: 4px; }
.reading-resource .section blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-inline-start: 4px solid var(--md-sys-color-tertiary);
  border-radius: 0 14px 14px 0;
  background: var(--md-sys-color-tertiary-container);
}
@media (max-width: 600px) {
  .reading-resource { padding-inline: 6px; }
  .reading-resource .reading-header, .reading-resource > .section { padding: 21px; }
  .reading-resource .reading-index ul { grid-template-columns: 1fr; }
}


/* Related editorial resources on the Turkish home landing. */
.resource-discovery {
  margin-top: clamp(38px, 6vw, 72px);
  padding: clamp(24px, 3.5vw, 45px);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.resource-discovery h2 {
  max-width: 25ch;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}
.resource-discovery > p {
  margin-top: 12px;
  max-width: 68ch;
  color: var(--md-sys-color-on-surface-variant);
}
.resource-discovery .card-grid { margin-top: 24px; }
.resource-discovery .page-card { min-height: 205px; background: var(--md-sys-color-surface-container); }
.resource-discovery .card-title { font-size: 1.16rem; }
@media (max-width: 600px) {
  .resource-discovery { padding: 20px; }
  .resource-discovery .page-card { min-height: 170px; }
}


/* Design editorial deep-reading links. Preserve MD3 rails and drawer density. */
.deep-resources {
  margin-top: clamp(30px, 5vw, 58px);
  padding: clamp(22px, 3.7vw, 40px);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.deep-resources > h2 {
  max-width: 28ch;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.deep-resources > p {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--md-sys-color-on-surface-variant);
}
.deep-resources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.deep-resources li { min-width: 0; }
.deep-resources a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 18px;
  background: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-on-surface);
  font-weight: 620;
  line-height: 1.4;
  text-decoration: none;
  transition: background var(--motion-effects), border-color var(--motion-effects);
}
.deep-resources a:is(:hover, :focus-visible) {
  background: var(--md-sys-color-secondary-container);
  border-color: var(--md-sys-color-outline);
}
.deep-resource-number {
  flex: 0 0 auto;
  color: var(--md-sys-color-primary);
  font-size: .76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.deep-resources a > .symbol {
  margin-inline-start: auto;
  color: var(--md-sys-color-primary);
}
@media (max-width: 700px) {
  .deep-resources { padding: 20px; }
  .deep-resources ul { grid-template-columns: 1fr; }
}


/* Separate the learning journey from the deeper System background on Home. */
.reading-landing .resource-discovery + .resource-discovery { margin-top: clamp(18px, 3vw, 28px); }
.resource-discovery-secondary {
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container);
}
.resource-discovery-secondary .page-card {
  background: var(--md-sys-color-surface-container-low);
}


/* Store learning resources: separate from catalog, account and checkout UI. */
.store-editorial-links {
  max-width: var(--content-width);
  margin: clamp(28px, 5vw, 60px) auto clamp(50px, 7vw, 90px);
  padding: clamp(22px, 3.5vw, 42px);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
}
.store-editorial-links h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.store-editorial-links > p {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--md-sys-color-on-surface-variant);
}
.store-editorial-links .card-grid { margin-top: 22px; }
.store-editorial-links .page-card { background: var(--md-sys-color-surface-container); }
@media (max-width: 600px) {
  .store-editorial-links { margin-inline: 8px; padding: 20px; }
}


/* Shared chapter navigation and consistent reading column, across all modules.
   The live Store retains its single-column commerce layout. */
/* Dimensions are owned by the first :root block only. */
.section-nav-heading {
  padding: 22px 14px 9px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: .77rem;
  font-weight: 720;
  letter-spacing: .045em;
}
.section-nav-pages {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.section-nav .section-page-link {
  border-radius: 14px;
  min-height: 44px;
  font-size: .88rem;
}
.section-nav .chapter-heading { padding-top: 19px; }
.section-nav-chapters { display: grid; gap: 3px; padding-bottom: 22px; }
.section-nav .chapter-link {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-height: 44px;
  padding: 12px 11px;
  border-radius: 13px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chapter-number {
  color: var(--md-sys-color-primary);
  font-size: .78rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.chapter-title { min-width: 0; }
.section-nav .chapter-link:focus-visible,
.section-nav .section-page-link:focus-visible {
  outline: 3px solid var(--md-sys-color-primary);
  outline-offset: -2px;
}
main > .content,
main > .reading,
main > .reading-resource,
main > .reading-landing {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 42px);
}
main > .content.reading,
main > .content.reading-resource,
main > .content.reading-landing {
  max-width: var(--content-width);
  width: 100%;
}
@media (min-width: 880px) {
  body:has(.desktop-section-nav:not([inert])) :is(main, .footer) {
    margin-inline-start: calc(var(--rail-width) + var(--pane-width));
  }
  main { min-width: 0; }
}
@media (max-width: 879px) {
  .drawer .nav-group { width: 100%; min-width: 0; }
  .drawer .nav-group > .nav-link { width: 100%; }
  .drawer .mobile-section-nav {
    display: block;
    max-height: min(56dvh, 560px);
    overflow-y: auto;
    margin-block: 3px 10px;
  }
  .drawer .mobile-section-nav[inert] { display: none; }
  .drawer .section-nav-chapters .chapter-link { min-height: 44px; }
  main > .content,
  main > .reading,
  main > .reading-resource,
  main > .reading-landing { padding-inline: clamp(12px, 3vw, 22px); }
}


/* Keep the reading column anchored even when a module pane is collapsed. */
@media (min-width: 880px) {
  body[data-section-page] :is(main, .footer) {
    margin-inline-start: calc(var(--rail-width) + var(--pane-width));
  }
}


/* On-demand module flyouts: cover (never reflow) the wide reading surface. */
@media (min-width: 880px) {
  main, .footer,
  body[data-section-page] :is(main, .footer),
  body:has(.desktop-section-nav:not([inert])) :is(main, .footer) {
    margin-inline-start: var(--rail-width);
  }
  .desktop-section-nav {
    z-index: 9;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-inline-start: 0;
    border-radius: 0 22px 22px 0;
    box-shadow: 9px 10px 26px color-mix(in srgb, var(--md-sys-color-shadow) 19%, transparent);
  }
  .desktop-section-nav[inert] {
    visibility: hidden;
    transform: translateX(-105%);
    pointer-events: none;
  }
  .desktop-section-nav:not([inert]) {
    visibility: visible;
    transform: translateX(0);
  }
}


/* Flyout is physically layered behind the fixed main rail, not above it. */
@media (min-width: 880px) {
  .top-bar { z-index: 20; }
  .rail { z-index: 15; isolation: isolate; }
  .desktop-section-nav {
    z-index: 10;
    inset-inline-start: var(--rail-width);
  }
  .desktop-section-nav[inert] {
    transform: translateX(calc(-1 * var(--pane-width)));
  }
}


/* Module icons navigate directly; only the separate mobile chevron expands chapters. */
@media (max-width: 879px) {
  .drawer .nav-group-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
  }
  .drawer .nav-group-header > .nav-link {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .drawer .nav-expand {
    display: inline-grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
  }
  .drawer .nav-expand[aria-expanded='true'] {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
  }
  .drawer .nav-expand[aria-expanded='true'] .symbol { transform: rotate(180deg); }
  .drawer .nav-expand:focus-visible {
    outline: 3px solid var(--md-sys-color-primary);
    outline-offset: -2px;
  }
}


/* ==========================================================================
   Magic Learning — visual foundation v1 (Material Design 3)
   Non-destructive presentation layer. Navigation geometry and store flows stay
   owned by their existing rules above.
   ========================================================================== */
:root {
  --ml-space-1: 4px;
  --ml-space-2: 8px;
  --ml-space-3: 12px;
  --ml-space-4: 16px;
  --ml-space-6: 24px;
  --ml-space-8: 32px;
  --ml-space-12: 48px;
  --ml-space-16: 64px;
  --ml-shape-small: 12px;
  --ml-shape-medium: 20px;
  --ml-shape-large: 32px;
  --ml-shape-hero: 40px;
  --ml-elevation-1: 0 3px 12px color-mix(in srgb, var(--md-sys-color-shadow) 7%, transparent);
  --ml-elevation-2: 0 14px 36px color-mix(in srgb, var(--md-sys-color-shadow) 11%, transparent);
  --ml-stroke: color-mix(in srgb, var(--md-sys-color-outline-variant) 72%, transparent);
  --ml-text-measure: 72ch;
  --corner: var(--ml-shape-large);
  --motion-spatial: 360ms cubic-bezier(.2, 0, 0, 1);
}
:root[data-theme='dark'] {
  --ml-elevation-1: 0 3px 18px color-mix(in srgb, var(--md-sys-color-shadow) 21%, transparent);
  --ml-elevation-2: 0 20px 44px color-mix(in srgb, var(--md-sys-color-shadow) 29%, transparent);
}
body {
  background:
    radial-gradient(ellipse 62% 31rem at 82% 0%, color-mix(in srgb, var(--md-sys-color-primary-container) 24%, transparent), transparent 80%),
    var(--md-sys-color-surface);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
:where(h1, h2, h3) { font-kerning: normal; }
:where(.hero h1, .reading-header h1) { letter-spacing: -.052em; line-height: 1.055; }
:where(.section h2, .resource-discovery h2) { letter-spacing: -.038em; line-height: 1.14; }
:where(.section h3) { letter-spacing: -.02em; line-height: 1.24; }
:where(.reading, .content) :is(p, li) { text-wrap: pretty; }
:where(.section, .reading) :is(p, li) { overflow-wrap: break-word; }
:where(.section, .reading) :is(p, li) + :is(p, ul, ol) { margin-top: 14px; }
:where(.section, .reading) :is(ul, ol) { padding-inline-start: 1.5em; }
:where(.section, .reading) li::marker { color: var(--md-sys-color-primary); }
:where(.section, .reading) :is(strong, b) { color: var(--md-sys-color-on-surface); }
:where(.section, .reading) :is(blockquote, table) { max-width: 100%; }
:where(.section, .reading) table { font-variant-numeric: tabular-nums; }
:where(.section, .reading) :is(a, button) { -webkit-tap-highlight-color: transparent; }

/* Persistent shell: the fixed rail is always the top interaction layer. */
.top-bar {
  background: color-mix(in srgb, var(--md-sys-color-surface) 95%, var(--md-sys-color-primary-container));
  border-bottom-color: var(--ml-stroke);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--md-sys-color-on-surface) 3%, transparent);
}
.top-bar .brand { font-size: .96rem; letter-spacing: -.015em; }
.brand-mark { border-radius: 11px; box-shadow: var(--ml-elevation-1); }
.top-bar .top-search {
  min-height: 44px;
  border: 1px solid transparent;
  transition: background var(--motion-effects), border-color var(--motion-effects), box-shadow var(--motion-effects);
}
.top-bar .top-search:hover, .top-bar .top-search:focus-visible {
  border-color: var(--ml-stroke);
  background: var(--md-sys-color-surface-container-high);
  box-shadow: var(--ml-elevation-1);
}
.rail {
  gap: 20px;
  background: var(--md-sys-color-surface-container-low);
  border-inline-end: 1px solid var(--ml-stroke);
}
.nav-link { transition: color var(--motion-effects), background var(--motion-effects); }
.nav-link:hover { color: var(--md-sys-color-on-surface); }
.nav-link:hover .nav-icon {
  background: var(--md-sys-color-surface-container-highest);
}
.nav-link:is([aria-current], [data-active='true'], [aria-expanded='true']):hover .nav-icon {
  background: var(--md-sys-color-secondary-container);
}
.desktop-section-nav {
  background: var(--md-sys-color-surface-container-low);
  box-shadow: var(--ml-elevation-2);
}
.section-nav .chapter-link, .section-nav .section-page-link {
  transition: background var(--motion-effects), color var(--motion-effects);
}
.section-nav .chapter-link:hover, .section-nav .section-page-link:hover {
  color: var(--md-sys-color-on-secondary-container);
  background: var(--md-sys-color-secondary-container);
}
/* No changes to flyout placement, z-index, click behavior, or content margins. */

/* Editorial hero artwork is created in CSS, not duplicated as DOM content. */
main > .hero, main > .reading-landing, main > .reading-resource,
main > .content { min-width: 0; }
.hero-copy, .reading-landing .reading-header, .reading-resource .reading-header {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 11%, var(--ml-stroke));
  box-shadow: var(--ml-elevation-1);
}
.hero-copy {
  position: relative;
  min-height: clamp(360px, 40vw, 530px);
  border-radius: var(--ml-shape-hero);
  background:
    radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--md-sys-color-tertiary-container) 75%, transparent), transparent 39%),
    linear-gradient(122deg, var(--md-sys-color-primary-container), var(--md-sys-color-surface-container-low) 75%);
}
.hero-copy::after, .reading-resource .reading-header::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: clamp(-120px, -7vw, -42px);
  bottom: -132px;
  width: clamp(230px, 34vw, 470px);
  aspect-ratio: 1;
  border: clamp(28px, 5vw, 65px) solid color-mix(in srgb, var(--md-sys-color-primary) 9%, transparent);
  border-radius: 42% 58% 64% 36%;
  transform: rotate(-28deg);
  pointer-events: none;
}
.hero-copy > *, .reading-header > * { position: relative; z-index: 1; }
.hero-eyebrow, .reading-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .81rem;
  font-weight: 750;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.hero-lead, .reading-header > p {
  max-width: 61ch;
  line-height: 1.65;
}
.hero-actions { gap: 12px; margin-top: 32px; }
.hero-actions :is(md-filled-button, md-outlined-button) { --md-filled-button-container-height: 50px; }
.reading-landing .reading-header {
  min-height: clamp(340px, 39vw, 490px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: var(--ml-shape-hero);
  background:
    radial-gradient(circle at 95% 15%, color-mix(in srgb, var(--md-sys-color-tertiary-container) 72%, transparent), transparent 42%),
    linear-gradient(132deg, var(--md-sys-color-primary-container), var(--md-sys-color-surface-container-low) 78%);
}
.reading-landing .reading-header::after {
  top: auto;
  right: -96px;
  bottom: -120px;
  width: clamp(240px, 35vw, 440px);
  border-width: clamp(27px, 5vw, 60px);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  border-radius: 38% 62% 59% 41%;
  opacity: 1;
}
.reading-resource .reading-header {
  position: relative;
  min-height: 265px;
  border-radius: var(--ml-shape-large);
  background: linear-gradient(125deg, var(--md-sys-color-secondary-container), var(--md-sys-color-surface-container-low) 86%);
}

/* Coherent content rhythm, shared by module pages and all canonical articles. */
main > .content { padding-block-end: clamp(64px, 8vw, 104px); }
.content > .section { scroll-margin-top: calc(var(--bar-height) + 26px); }
.section h2 { max-width: 27ch; }
.section > p { max-width: var(--ml-text-measure); line-height: 1.74; }
.editorial-content > .section, .reading-resource > .section, .reading-landing > .section {
  border-color: var(--ml-stroke);
  box-shadow: var(--ml-elevation-1);
}
.editorial-content > .section, .reading-resource > .section {
  padding: clamp(26px, 4vw, 52px);
}
.editorial-content > .section h2, .reading-resource > .section h2 {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--ml-stroke);
}
.reading-landing > .section {
  border-radius: var(--ml-shape-large);
}
.reading-landing > .section:nth-of-type(2n),
.reading-landing > .section:nth-of-type(3n) {
  border: 1px solid var(--ml-stroke);
}
:where(.editorial-content, .reading-resource, .reading-landing) .section > p {
  max-width: var(--ml-text-measure);
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.76;
}
:where(.editorial-content, .reading-resource, .reading-landing) .section :is(ul, ol) {
  max-width: var(--ml-text-measure);
}
:where(.editorial-content, .reading-resource) .section blockquote {
  border-radius: 0 var(--ml-shape-small) var(--ml-shape-small) 0;
}
.reading :is(th, td) { vertical-align: top; }
.reading table { border-radius: var(--ml-shape-small); }

/* Interactive surfaces: visibly actionable yet calm in their resting state. */
.card-grid { gap: clamp(12px, 1.8vw, 20px); margin-top: 28px; }
.page-card {
  min-height: 246px;
  padding: clamp(22px, 2.4vw, 30px);
  border-color: var(--ml-stroke);
  border-radius: var(--ml-shape-large);
  box-shadow: var(--ml-elevation-1);
  transition: transform var(--motion-spatial), box-shadow var(--motion-effects),
    background var(--motion-effects), border-color var(--motion-effects);
}
.page-card:is(:hover, :focus-visible) {
  transform: translateY(-4px);
  box-shadow: var(--ml-elevation-2);
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 34%, var(--ml-stroke));
}
.card-icon { width: 52px; height: 52px; border-radius: 18px; }
.card-title { margin-top: 24px; letter-spacing: -.035em; line-height: 1.2; }
.card-copy { line-height: 1.58; }
.card-arrow { transition: transform var(--motion-spatial); }
.page-card:is(:hover, :focus-visible) .card-arrow { transform: translateX(4px); }
.faq { gap: 9px; }
.faq details { border: 1px solid var(--ml-stroke); }
.faq summary:hover { background: var(--md-sys-color-surface-container-high); }
.footer {
  border-top: 1px solid var(--ml-stroke);
  background: var(--md-sys-color-surface-container-low);
  padding-block: 32px;
}
.footer a { text-underline-offset: 4px; }
@media (max-width: 879px) {
  .hero-copy, .reading-landing .reading-header { min-height: 320px; border-radius: 28px; }
  .hero-copy::after, .reading-resource .reading-header::after { opacity: .48; }
  .reading-landing .reading-header::after { opacity: .44; }
}
@media (max-width: 600px) {
  .hero-copy, .reading-landing .reading-header { padding: 29px 24px; min-height: 290px; border-radius: 25px; }
  .hero-lead, .reading-header > p { line-height: 1.6; }
  .editorial-content > .section, .reading-resource > .section { padding: 24px 20px; }
  .page-card { min-height: 204px; border-radius: 24px; }
  .card-title { margin-top: 16px; }
  .footer { padding-block: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-card, .card-arrow { transition-duration: 0.01ms; }
  .page-card:is(:hover, :focus-visible), .page-card:is(:hover, :focus-visible) .card-arrow { transform: none; }
}
:root[data-motion='paused'] .page-card,
:root[data-motion='paused'] .card-arrow { transition-duration: 0ms; }
:root[data-motion='paused'] .page-card:is(:hover, :focus-visible),
:root[data-motion='paused'] .page-card:is(:hover, :focus-visible) .card-arrow { transform: none; }


/* ==========================================================================
   Magic Learning — signature compositions v2
   Each product domain has a distinct visual rhythm, using Material 3 tokens.
   Decorative elements are CSS-only and remain outside the accessibility tree.
   ========================================================================== */
:root {
  --ml-hero-accent: var(--md-sys-color-primary);
  --ml-hero-accent-soft: var(--md-sys-color-primary-container);
  --ml-display-tracking: -.055em;
}
:where(.reading-landing, .hero-module, .reading-resource) {
  --ml-local-accent: var(--md-sys-color-primary);
  --ml-local-container: var(--md-sys-color-primary-container);
}
.reading-landing-player {
  --ml-local-accent: var(--md-sys-color-tertiary);
  --ml-local-container: var(--md-sys-color-tertiary-container);
}
.hero-module:has(.art-design), .reading-resource:has(.back-to-design) {
  --ml-local-accent: var(--md-sys-color-secondary);
  --ml-local-container: var(--md-sys-color-secondary-container);
}
.hero-module:has(.art-classroom) {
  --ml-local-accent: var(--md-sys-color-tertiary);
  --ml-local-container: var(--md-sys-color-tertiary-container);
}
.hero-module .hero-copy {
  min-height: clamp(370px, 42vw, 560px);
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--ml-local-container) 78%, transparent), transparent 52%),
    linear-gradient(125deg, var(--md-sys-color-surface-container-low), var(--ml-local-container));
}
.hero-module .hero-copy h1 { max-width: 15ch; font-size: clamp(2.5rem, 4.5vw, 4.8rem); }
.hero-module .module-art {
  position: relative;
  isolation: isolate;
  min-height: clamp(370px, 42vw, 560px);
  border: 1px solid var(--ml-stroke);
  border-radius: var(--ml-shape-hero);
  background:
    radial-gradient(circle at 28% 21%, color-mix(in srgb, var(--md-sys-color-surface) 74%, transparent), transparent 44%),
    var(--art-bg, var(--md-sys-color-primary-container));
  box-shadow: var(--ml-elevation-1);
}
.module-art::before, .module-art::after {
  content: '';
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--art-shape, var(--md-sys-color-primary)) 25%, transparent);
  border-radius: 40% 60% 63% 37%;
  transform: rotate(35deg);
  pointer-events: none;
}
.module-art::before { width: 132%; top: -40%; right: -65%; }
.module-art::after { width: 91%; bottom: -39%; left: -42%; transform: rotate(-35deg); }
.module-shape {
  z-index: 1;
  width: clamp(126px, 67%, 258px);
  border-radius: 32% 68% 57% 43% / 47% 42% 58% 53%;
  box-shadow: 0 22px 48px color-mix(in srgb, var(--md-sys-color-shadow) 12%, transparent);
  transform: rotate(-8deg);
  transition: border-radius 650ms cubic-bezier(.2,0,0,1), transform 650ms cubic-bezier(.2,0,0,1);
}
.module-art:hover .module-shape {
  border-radius: 53% 47% 37% 63% / 39% 56% 44% 61%;
  transform: rotate(2deg);
}
.module-shape .symbol { font-size: clamp(64px, 10vw, 118px); }
.reading-landing .reading-header {
  border-color: color-mix(in srgb, var(--ml-local-accent) 19%, var(--ml-stroke));
}
.reading-landing-player .reading-header {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--md-sys-color-primary-container) 60%, transparent), transparent 52%),
    linear-gradient(130deg, var(--md-sys-color-tertiary-container), var(--md-sys-color-surface-container-low) 78%);
}
.reading-landing-player .reading-header::after {
  border-radius: 50%;
  border-style: double;
  border-width: clamp(30px, 5vw, 68px);
  border-color: color-mix(in srgb, var(--md-sys-color-tertiary) 18%, transparent);
  transform: rotate(16deg);
}
.reading-landing-system .reading-header {
  background:
    radial-gradient(circle at 98% 8%, color-mix(in srgb, var(--md-sys-color-tertiary-container) 65%, transparent), transparent 45%),
    linear-gradient(126deg, var(--md-sys-color-primary-container), var(--md-sys-color-surface-container-low) 82%);
}

/* Feature sections receive a more editorial opening, while all text is intact. */
.reading-landing > .section {
  position: relative;
  isolation: isolate;
}
.reading-landing > .section > h2 {
  position: relative;
  padding-block-start: 19px;
}
.reading-landing > .section > h2::before {
  content: '';
  position: absolute;
  width: 49px;
  height: 5px;
  top: 0;
  inset-inline-start: 0;
  border-radius: 100px;
  background: var(--ml-local-accent);
}
.reading-landing > .section:nth-of-type(2n) {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ml-local-container) 40%, transparent), transparent 60%),
    var(--md-sys-color-surface-container-low);
}
.reading-landing > .section:nth-of-type(3n) {
  background:
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--ml-local-container) 32%, transparent), transparent 60%),
    var(--md-sys-color-surface-container);
}
.promise-panel {
  position: relative;
  overflow: hidden;
  box-shadow: var(--ml-elevation-1);
  transition: border-color var(--motion-effects), transform var(--motion-spatial), box-shadow var(--motion-effects);
}
.promise-panel:is(:hover, :focus-within) {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 38%, var(--ml-stroke));
  box-shadow: var(--ml-elevation-2);
  transform: translateY(-3px);
}
.promise-panel .promise-number { border-radius: 14px; }
.resource-discovery, .deep-resources {
  border: 1px solid var(--ml-stroke);
  box-shadow: var(--ml-elevation-1);
  border-radius: var(--ml-shape-large);
}
.resource-discovery {
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--md-sys-color-primary-container) 18%, var(--md-sys-color-surface-container-low)), var(--md-sys-color-surface-container-low) 63%);
}
.resource-discovery > h2, .deep-resources > h2, .store-editorial-links > h2 {
  max-width: 25ch;
  font-size: clamp(1.85rem, 3.25vw, 3rem);
  letter-spacing: -.045em;
  line-height: 1.12;
}
.resource-discovery > p, .deep-resources > p, .store-editorial-links > p {
  max-width: 67ch;
  line-height: 1.7;
}
.deep-resources a {
  min-height: 82px;
  border-color: var(--ml-stroke);
  border-radius: var(--ml-shape-medium);
  box-shadow: var(--ml-elevation-1);
  transition: transform var(--motion-spatial), box-shadow var(--motion-effects),
    background var(--motion-effects), border-color var(--motion-effects);
}
.deep-resources a:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  box-shadow: var(--ml-elevation-2);
}
.reading-resource .reading-header h1 { letter-spacing: var(--ml-display-tracking); }
.reading-resource > .section { scroll-margin-top: calc(var(--bar-height) + 24px); }
.reading-resource .section > h3 { max-width: 38ch; }
.reading-resource .section :is(ul, ol) li { padding-inline-start: 4px; }
.store-editorial-links {
  border-color: var(--ml-stroke);
  box-shadow: var(--ml-elevation-1);
  background: linear-gradient(145deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface-container));
}
.store-editorial-links .page-card { background: var(--md-sys-color-surface-container-low); }
/* Hero and card geometry adapts without causing horizontal overflow. */
@media (max-width: 1100px) {
  .hero-module .hero-copy, .hero-module .module-art { min-height: 340px; }
  .hero-module .hero-copy h1 { font-size: clamp(2.15rem, 4.6vw, 3.85rem); }
}
@media (max-width: 879px) {
  .hero-module .hero-copy { min-height: 290px; }
  .hero-module .module-art { min-height: 245px; }
}
@media (max-width: 600px) {
  .hero-module .hero-copy h1 { font-size: clamp(2.15rem, 9vw, 3.1rem); }
  .hero-module .module-art { border-radius: 25px; min-height: 190px; }
  .reading-landing > .section > h2 { padding-block-start: 15px; }
  .resource-discovery, .deep-resources { border-radius: 24px; }
  .resource-discovery > h2, .deep-resources > h2 { font-size: clamp(1.7rem, 7vw, 2.25rem); }
  .reading-landing .reading-header::after { opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .module-shape, .promise-panel, .deep-resources a { transition-duration: 0.01ms; }
  .module-art:hover .module-shape, .promise-panel:is(:hover, :focus-within),
  .deep-resources a:is(:hover, :focus-visible) { transform: none; }
}
:root[data-motion='paused'] .module-shape,
:root[data-motion='paused'] .promise-panel,
:root[data-motion='paused'] .deep-resources a { transition-duration: 0ms; }
:root[data-motion='paused'] .module-art:hover .module-shape,
:root[data-motion='paused'] .promise-panel:is(:hover, :focus-within),
:root[data-motion='paused'] .deep-resources a:is(:hover, :focus-visible) { transform: none; }


/* ==========================================================================
   Visual QA pass v3 — Classroom editorial hero / responsive rhythm.
   Classroom content stays verbatim; its first paragraph becomes the hero lead.
   ========================================================================== */
body[data-page-id='classroom'] .reading {
  max-width: var(--content-width);
  padding-top: clamp(20px, 3vw, 42px);
}
body[data-page-id='classroom'] .reading-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 100%;
  min-height: clamp(310px, 31vw, 430px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5.4vw, 72px);
  border: 1px solid var(--ml-stroke);
  border-radius: var(--ml-shape-hero);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--md-sys-color-primary-container) 63%, transparent), transparent 53%),
    linear-gradient(125deg, var(--md-sys-color-tertiary-container), var(--md-sys-color-surface-container-low) 83%);
  box-shadow: var(--ml-elevation-1);
}
body[data-page-id='classroom'] .reading-header::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: clamp(210px, 29vw, 400px);
  aspect-ratio: 1;
  right: -6%;
  bottom: -43%;
  border-radius: 38% 62% 50% 50%;
  border: clamp(30px, 4vw, 58px) solid color-mix(in srgb, var(--md-sys-color-tertiary) 11%, transparent);
  transform: rotate(-19deg);
  pointer-events: none;
}
body[data-page-id='classroom'] .reading-header h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.85rem);
  max-width: 19ch;
  letter-spacing: -.055em;
  line-height: 1.07;
}
body[data-page-id='classroom'] .reading-header > p {
  max-width: 60ch;
  margin-top: 25px;
  font-size: clamp(1.07rem, 1.55vw, 1.33rem);
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.65;
}
body[data-page-id='classroom'] .classroom-intro-body {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: clamp(28px, 3vw, 42px) 0 0;
  padding: clamp(20px, 2.5vw, 34px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  column-count: 1;
}
body[data-page-id='classroom'] .classroom-intro-body p {
  margin: 0 0 18px;
  max-width: 74ch;
  break-inside: avoid;
  font-size: 1.03rem;
  line-height: 1.74;
  color: var(--md-sys-color-on-surface-variant);
}
body[data-page-id='classroom'] .classroom-intro-body strong {
  color: var(--md-sys-color-on-surface);
}
body[data-page-id='classroom'] .resource-discovery {
  margin-top: clamp(24px, 4vw, 48px);
}
body[data-page-id='classroom'] .resource-discovery .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}
@media (max-width: 600px) {
  body[data-page-id='classroom'] .reading-header {
    min-height: 270px;
    padding: 27px 23px;
    border-radius: 25px;
  }
  body[data-page-id='classroom'] .reading-header h1 { font-size: clamp(2.1rem, 9vw, 3.05rem); }
  body[data-page-id='classroom'] .reading-header > p { margin-top: 18px; font-size: 1.05rem; }
  body[data-page-id='classroom'] .reading-header::after { opacity: .35; }
  body[data-page-id='classroom'] .classroom-intro-body {
    margin-top: 24px;
    padding: 12px 0;
    border-radius: 0;
  }
  body[data-page-id='classroom'] .classroom-intro-body p { font-size: 1rem; }
}


/* ==========================================================================
   Visual storytelling v4: product-specific hero compositions.
   These scenes communicate reading/listening, not an invented functional UI.
   ========================================================================== */
.reading-landing-system .reading-header,
.reading-landing-player .reading-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: clamp(430px, 40vw, 580px);
  padding: clamp(38px, 5vw, 76px);
  padding-inline-end: clamp(360px, 43%, 540px);
  overflow: hidden;
}
.reading-landing-system .reading-header > :not(.ml-scene),
.reading-landing-player .reading-header > :not(.ml-scene) { position: relative; z-index: 2; }
.reading-landing-system .reading-header h1,
.reading-landing-player .reading-header h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.25vw, 4.7rem);
  line-height: 1.06;
}
.reading-landing-system .reading-header > p,
.reading-landing-player .reading-header > p { font-size: clamp(1.04rem, 1.35vw, 1.2rem); line-height: 1.67; }
.ml-scene {
  --scene-primary: var(--md-sys-color-primary);
  --scene-container: var(--md-sys-color-primary-container);
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(18px, 3vw, 48px);
  width: min(43%, 470px);
  height: 82%;
  min-height: 320px;
  transform: translateY(-50%);
  pointer-events: none;
  isolation: isolate;
}
.ml-scene-player { --scene-primary: var(--md-sys-color-tertiary); --scene-container: var(--md-sys-color-tertiary-container); }
.ml-scene-orbit {
  position: absolute;
  inset: 12% 1%;
  border: 1px solid color-mix(in srgb, var(--scene-primary) 24%, transparent);
  border-radius: 50%;
  transform: rotate(-24deg) scaleX(1.12);
}
.ml-scene-orbit::before {
  content: '';
  position: absolute;
  inset: 9%;
  border: 1px dashed color-mix(in srgb, var(--scene-primary) 22%, transparent);
  border-radius: 50%;
}
.ml-story-back, .ml-story-front, .ml-audio-device {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 85%, transparent);
  border-radius: 24px;
  background: var(--md-sys-color-surface-container-low);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--md-sys-color-shadow) 17%, transparent);
}
.ml-story-back {
  width: 65%;
  height: 65%;
  right: 7%;
  top: 6%;
  padding: 23px;
  background: var(--md-sys-color-secondary-container);
  transform: rotate(13deg);
}
.ml-story-back > .symbol { font-size: 44px; color: var(--md-sys-color-on-secondary-container); }
.ml-story-back i { display: block; width: 78%; height: 9px; margin-top: 16px; border-radius: 99px; background: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 21%, transparent); }
.ml-story-back i:nth-of-type(2) { width: 60%; }
.ml-story-back i:nth-of-type(3) { width: 47%; }
.ml-story-front {
  width: 77%;
  height: 81%;
  left: 4%;
  bottom: 2%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: clamp(17px, 2.2vw, 26px);
  transform: rotate(-7deg);
}
.ml-story-heading, .ml-device-header, .ml-story-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ml-story-heading .symbol, .ml-story-footer .symbol { color: var(--scene-primary); font-size: 23px; }
.ml-story-heading i, .ml-device-line { flex: 1; max-width: 110px; height: 7px; border-radius: 99px; background: var(--md-sys-color-outline-variant); }
.ml-story-art {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--md-sys-color-tertiary-container));
  color: var(--md-sys-color-on-primary-container);
}
.ml-story-art > .symbol { font-size: clamp(46px, 5vw, 74px); }
.ml-waveform { display: flex; justify-content: center; align-items: center; gap: 3px; color: var(--scene-primary); }
.ml-waveform i { display: block; width: 4px; max-height: 54px; border-radius: 99px; background: currentColor; }
.ml-story-art .ml-waveform i { height: 12px !important; opacity: .8; }
.ml-story-art .ml-waveform i:nth-child(3n) { height: 23px !important; }
.ml-story-lines { display: grid; gap: 9px; }
.ml-story-lines i { height: 7px; border-radius: 99px; background: var(--md-sys-color-outline-variant); }
.ml-story-lines i:nth-child(2) { width: 82%; }
.ml-story-lines i:nth-child(3) { width: 54%; }
.ml-story-footer { margin-top: auto; }
.ml-audio-device {
  left: 12%;
  top: 4%;
  width: 76%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(19px, 2.5vw, 30px);
  border-radius: 37px;
  transform: rotate(-5deg);
}
.ml-device-header .symbol { color: var(--scene-primary); font-size: 23px; }
.ml-record {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  max-height: 170px;
  min-height: 90px;
  width: min(100%, 170px);
  align-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 18px solid color-mix(in srgb, var(--scene-primary) 18%, transparent);
  background: var(--scene-container);
  color: var(--md-sys-color-on-tertiary-container);
}
.ml-record .symbol { font-size: clamp(48px, 5vw, 75px); }
.ml-audio-device > .ml-waveform { margin-top: auto; }
.ml-audio-track { height: 5px; border-radius: 99px; background: var(--md-sys-color-outline-variant); }
.ml-audio-track i { display: block; height: 100%; width: 42%; border-radius: inherit; background: var(--scene-primary); }
.ml-playback { display: flex; align-items: center; justify-content: space-evenly; color: var(--scene-primary); }
.ml-playback > .symbol { font-size: 28px; }
.ml-playback .ml-play-button { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--scene-primary); color: var(--md-sys-color-on-tertiary); font-size: 34px; }
.ml-floating-symbol {
  position: absolute;
  display: grid !important;
  place-items: center;
  width: 62px !important;
  height: 62px;
  border: 1px solid var(--ml-stroke);
  border-radius: 21px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--scene-primary);
  font-size: 34px !important;
  box-shadow: var(--ml-elevation-2);
}
.ml-float-top { top: 7%; left: 0; transform: rotate(-13deg); }
.ml-float-bottom { right: 1%; bottom: 6%; transform: rotate(11deg); }
@media (max-width: 1180px) {
  .reading-landing-system .reading-header,
  .reading-landing-player .reading-header {
    min-height: 0;
    padding: clamp(28px, 4vw, 48px);
    padding-inline-end: clamp(28px, 4vw, 48px);
  }
  .reading-landing-system .reading-header h1,
  .reading-landing-player .reading-header h1 { max-width: 19ch; }
  .reading-landing-system .reading-header .ml-scene,
  .reading-landing-player .reading-header .ml-scene {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(100%, 465px);
    height: 335px;
    min-height: 0;
    margin: 25px auto 0;
  }
}
@media (max-width: 600px) {
  .reading-landing-system .reading-header,
  .reading-landing-player .reading-header { padding: 28px 22px; }
  .reading-landing-system .reading-header h1,
  .reading-landing-player .reading-header h1 { font-size: clamp(2.1rem, 9vw, 3.15rem); }
  .reading-landing-system .reading-header .ml-scene,
  .reading-landing-player .reading-header .ml-scene { height: 300px; width: min(100%, 350px); }
  .ml-floating-symbol { width: 49px !important; height: 49px; font-size: 27px !important; }
  .ml-story-back { padding: 17px; }
  .ml-audio-device { border-radius: 27px; }
}


/* ==========================================================================
   Shared Store-aligned layout contract — Nov 2026.
   Keep Store commerce unchanged; apply its 1380px canvas / 390px hero rhythm
   consistently to editorial modules, resources and all document pages.
   ========================================================================== */
/* Global layout tokens are declared once at the top of this stylesheet. */
main:not([data-account-page]) > :is(.content, .reading, .reading-resource, .reading-landing, .hero) {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--ml-page-gutter);
}
main:not([data-account-page]) > :is(.content, .reading, .reading-resource, .reading-landing) {
  min-width: 0;
}
/* All top-level page canvases fill the same space as the Store catalogue. */
main:not([data-account-page]) > .content {
  padding-top: clamp(26px, 3vw, 42px);
  padding-bottom: clamp(52px, 6vw, 90px);
}
main:not([data-account-page]) > .reading {
  max-width: var(--content-width);
}
main:not([data-account-page]) > .reading > .reading-header {
  width: 100%;
  max-width: none;
}
main:not([data-account-page]) > .hero {
  max-width: var(--content-width);
}
main:not([data-account-page]) > .hero.hero-module {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 0;
  height: var(--ml-hero-height);
  min-height: var(--ml-hero-height);
  overflow: hidden;
  border: 1px solid var(--ml-stroke);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
  box-shadow: var(--ml-elevation-1);
}
main:not([data-account-page]) > .hero.hero-module > .hero-copy {
  height: 100%;
  min-height: 0;
  padding: clamp(26px, 3.5vw, 52px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
main:not([data-account-page]) > .hero.hero-module > .module-art {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
main:not([data-account-page]) > .hero.hero-module h1,
main:not([data-account-page]) > .hero.hero-home h1,
main:not([data-account-page]) > .hero.hero-system-detail h1 {
  max-width: 21ch;
  font-size: var(--ml-hero-title-size);
  line-height: 1.06;
  letter-spacing: -.045em;
}
main:not([data-account-page]) > .hero.hero-module .hero-lead {
  margin-top: 14px;
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.58;
}
main:not([data-account-page]) > .hero.hero-module .hero-actions { margin-top: 20px; }
/* Document-based module heroes: identical vertical scale to Store. */
main:not([data-account-page]) > .reading > .reading-header,
body[data-page-id='classroom'] .reading-header,
.reading-landing-system .reading-header,
.reading-landing-player .reading-header {
  box-sizing: border-box;
  min-height: var(--ml-hero-height);
  height: var(--ml-hero-height);
  border-radius: var(--corner);
  padding: clamp(26px, 3.5vw, 52px);
  overflow: hidden;
}
main:not([data-account-page]) > .reading > .reading-header h1,
body[data-page-id='classroom'] .reading-header h1,
.reading-landing-system .reading-header h1,
.reading-landing-player .reading-header h1 {
  max-width: 21ch;
  font-size: var(--ml-hero-title-size);
  line-height: 1.06;
  letter-spacing: -.045em;
}
main:not([data-account-page]) > .reading > .reading-header > p,
body[data-page-id='classroom'] .reading-header > p {
  max-width: 60ch;
  margin-top: 14px;
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.58;
}
main:not([data-account-page]) > .reading-landing > .reading-header {
  padding-inline-end: min(43%, 535px);
}
.reading-landing-system .reading-header .ml-scene,
.reading-landing-player .reading-header .ml-scene {
  position: absolute;
  top: 50%;
  right: clamp(16px, 3vw, 48px);
  width: min(41%, 470px);
  height: 82%;
  min-height: 0;
  margin: 0;
  transform: translateY(-50%);
}
body[data-page-id='classroom'] .reading-header { padding-inline-end: clamp(28px, 9vw, 120px); }
/* Keep the reading measure comfortable while the containing section goes wide. */
main:not([data-account-page]) .reading > .section,
main:not([data-account-page]) .reading > .resource-discovery,
main:not([data-account-page]) .reading > .deep-resources {
  max-width: none;
}
main:not([data-account-page]) .reading > .section :is(p, li) { max-width: 78ch; }
main:not([data-account-page]) .reading > .section :is(table, .card-grid, .promise-grid) { max-width: 100%; }
main:not([data-account-page]) .reading > .section .card-grid,
main:not([data-account-page]) .reading .resource-discovery .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Responsive: preserve full text and allow decorative artwork to reflow. */
@media (max-width: 1180px) and (min-width: 880px) {
  main:not([data-account-page]) > .reading-landing > .reading-header {
    padding-inline-end: clamp(26px, 4vw, 48px);
  }
  .reading-landing-system .reading-header .ml-scene,
  .reading-landing-player .reading-header .ml-scene { display: none; }
}
@media (max-width: 879px) {
  main:not([data-account-page]) > :is(.content, .reading, .reading-resource, .reading-landing, .hero) {
    padding-inline: clamp(10px, 3vw, 24px);
  }
  main:not([data-account-page]) > .hero.hero-module {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  main:not([data-account-page]) > .hero.hero-module > .hero-copy {
    min-height: 250px;
    height: auto;
  }
  main:not([data-account-page]) > .hero.hero-module > .module-art {
    min-height: 190px;
    height: 190px;
  }
  main:not([data-account-page]) > .reading > .reading-header {
    height: auto;
    min-height: 300px;
  }
  main:not([data-account-page]) > .reading-landing > .reading-header {
    padding-inline-end: clamp(24px, 5vw, 42px);
  }
  .reading-landing-system .reading-header .ml-scene,
  .reading-landing-player .reading-header .ml-scene {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    width: min(100%, 370px);
    height: 285px;
    margin: 22px auto 0;
    transform: none;
  }
}
@media (max-width: 600px) {
  main:not([data-account-page]) > .reading > .reading-header {
    padding: 26px 22px;
    border-radius: 25px;
  }
  main:not([data-account-page]) > .reading > .reading-header h1,
  main:not([data-account-page]) > .hero.hero-module h1 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }
  main:not([data-account-page]) > .reading-landing > .reading-header { height: auto; }
  main:not([data-account-page]) > .reading .section { overflow-wrap: anywhere; }
}


/* Breadcrumb trail — visible context across all modules and articles. */
.breadcrumbs {
  position: sticky;
  top: var(--bar-height);
  /* Must remain below the flyout (10) and rail (15). */
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px var(--ml-page-gutter);
  border: 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface-variant);
  font-size: .84rem;
  line-height: 1.4;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.breadcrumbs li > .symbol {
  width: auto;
  font-size: 17px;
  color: var(--md-sys-color-outline);
}
.breadcrumbs a {
  display: inline-block;
  min-height: 30px;
  padding: 5px 7px;
  margin-inline: -7px;
  border-radius: 9px;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  transition: color var(--motion-effects), background var(--motion-effects);
}
.breadcrumbs a:hover {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.breadcrumbs [aria-current='page'] {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .breadcrumbs { padding-block: 10px 6px; font-size: .78rem; }
  .breadcrumbs ol { gap: 3px 5px; }
  .breadcrumbs li { gap: 5px; }
  .breadcrumbs a { min-height: 34px; padding-block: 8px; }
}


/* Canonical separation between hero and the first content section. */
main:not([data-account-page]) > .reading > .section:first-of-type {
  margin-block-start: clamp(28px, 3vw, 42px);
}
main:not([data-account-page]) > .reading > .reading-header + .resource-discovery,
main:not([data-account-page]) > .reading > .reading-header + .deep-resources {
  margin-block-start: clamp(28px, 3vw, 42px);
}
main:not([data-account-page]) > .hero + .content { padding-block-start: clamp(28px, 3vw, 42px); }
@media (max-width: 600px) {
  main:not([data-account-page]) > .reading > .section:first-of-type { margin-block-start: 24px; }
  .breadcrumbs { padding-block: 8px; }
}


/* Keep every editorial introduction visible below the fixed-height hero. */
main:not([data-account-page]) > .reading > .reading-intro-body {
  margin-block: clamp(26px, 3vw, 42px);
  padding: clamp(24px, 3.5vw, 46px);
  border: 1px solid var(--ml-stroke);
  border-radius: var(--ml-shape-large);
  background: var(--md-sys-color-surface-container-low);
  box-shadow: var(--ml-elevation-1);
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.reading-intro-body :is(p, ul, ol, blockquote) { max-width: 78ch; }
.reading-intro-body :is(p, ul, ol, blockquote) + :is(p, ul, ol, blockquote) {
  margin-block-start: 14px;
}
.reading-intro-body :is(h2, h3, h4) {
  max-width: 34ch;
  margin-block: 22px 12px;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.reading-intro-body :is(h2, h3, h4):first-child { margin-block-start: 0; }
.reading-intro-body a { text-underline-offset: 3px; }
@media (max-width: 600px) {
  main:not([data-account-page]) > .reading > .reading-intro-body {
    margin-block: 24px;
    padding: 23px 20px;
    border-radius: 23px;
  }
}


/* Classroom follows the same hero-to-content rhythm, including on mobile. */
body[data-page-id='classroom'] .classroom-intro-body {
  margin-block-start: clamp(28px, 3vw, 42px);
}
@media (max-width: 600px) {
  body[data-page-id='classroom'] .classroom-intro-body { margin-block-start: 24px; }
}


body[data-page-id='classroom'] .classroom-intro-body > :is(p, ul, ol) {
  max-width: 78ch;
}

/* System overview: section compositions follow the selected Stitch screen. */
.reading-overview {
  --overview-gap: clamp(14px, 2vw, 24px);
  --overview-padding: clamp(20px, 3vw, 40px);
}
main:not([data-account-page]) > .reading-overview > .reading-header {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--overview-gap);
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--corner);
  background: linear-gradient(120deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface-container));
}
main:not([data-account-page]) > .reading-overview > .reading-header h1 {
  max-width: none;
  font-size: clamp(1.65rem, 2.55vw, 2.4rem);
  line-height: 1.13;
}
.overview-hero-copy p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.5;
}
.overview-hero-copy p + p {
  font-size: .94rem;
  color: var(--md-sys-color-on-surface-variant);
}
.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.overview-actions a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  text-decoration: none;
}
.overview-actions a:first-child {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.overview-actions a:hover { text-decoration: underline; }
.overview-diagram {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2vw, 24px);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container);
}
.overview-diagram > strong,
.overview-node,
.overview-connector {
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-node {
  padding: 12px;
  border-radius: 14px;
  background: var(--md-sys-color-surface-container-lowest);
}
.overview-node:last-child {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.overview-node small { display: block; }
.overview-connector {
  justify-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  font-size: .8rem;
}

.reading-overview > .section + .section {
  margin-block-start: clamp(36px, 4.5vw, 64px);
}
.reading-overview .section h2 {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  scroll-margin-top: calc(var(--bar-height) + 56px);
  text-wrap: initial;
}
.reading-overview .section h3 { margin: 0 0 8px; }
main:not([data-account-page]) .reading-overview > .section :is(p, li) {
  max-width: none;
}
.reading-overview .section p {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  line-height: 1.6;
}
.reading-overview .section p + p { margin-top: 12px; }
.overview-split,
.overview-grid {
  display: grid;
  gap: var(--overview-gap);
}
.overview-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-split-story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.overview-split-story .overview-aside { align-content: center; font-style: italic; }
.overview-copy { padding-block: 12px; }
.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reading-overview .overview-grid,
.reading-overview .overview-table,
.reading-overview .overview-panel + .overview-panel,
.reading-overview :is(h2, p, .overview-grid, .overview-table) + .overview-panel,
.reading-overview .overview-links {
  margin-top: var(--overview-gap);
}
.overview-panel {
  min-width: 0;
  padding: clamp(16px, 2.3vw, 28px);
  border-radius: 18px;
  background: var(--md-sys-color-surface-container);
}
.overview-feature { padding: var(--overview-padding); }
.overview-aside {
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.reading-overview .overview-split .overview-aside,
.reading-overview .overview-grid .overview-panel + .overview-panel {
  margin-top: 0;
}
.overview-inset { background: var(--md-sys-color-surface-container-lowest); }
.overview-quote,
.overview-closing {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.overview-quote blockquote { margin: 0; }
.reading-overview :is(.overview-quote, .overview-closing, .overview-method > :nth-child(2)) strong {
  color: inherit;
}
.reading-overview .overview-quote p {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.4;
}
.overview-metrics strong { font-size: 1.15em; }
.overview-metrics .overview-panel { padding-block: clamp(20px, 2.5vw, 32px); }
.overview-closing .overview-inset {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.overview-closing a { color: inherit; }
.reading-overview .overview-closing h2 { font-size: clamp(1.65rem, 3.2vw, 2.55rem); }
.overview-summary {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.overview-method > :nth-child(2) {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.reading-overview .overview-method {
  padding: 0;
  list-style: none;
}
.overview-step-number {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
}
.overview-promises > :last-child { grid-column: span 2; }
.overview-table {
  overflow: hidden;
  border-radius: 18px;
  background: var(--md-sys-color-surface-container-low);
}
.overview-table table { width: 100%; border-collapse: collapse; }
.overview-table :is(th, td) {
  padding: clamp(8px, 1.25vw, 16px);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.overview-table thead,
.overview-table tr:nth-child(even) {
  background: var(--md-sys-color-surface-container-high);
}
.overview-table th:nth-child(2) { width: 45%; }
.overview-cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-block: 12px;
  list-style: none;
}
.overview-cycle li {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--md-sys-color-surface-container-high);
}
.overview-cycle li:last-child {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

@media (min-width: 880px) and (max-width: 1099px) {
  main:not([data-account-page]) > .reading-overview > .reading-header {
    height: auto;
  }
}
@media (max-width: 879px) {
  main:not([data-account-page]) > .reading-overview > .reading-header,
  .overview-split { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-promises > :last-child { grid-column: auto; }
  .overview-table { font-size: .82rem; }
}

/* The home page uses shared panels for decisions and uninterrupted prose for context. */
.reading-landing-system {
  --overview-gap: clamp(14px, 2vw, 24px);
}
.reading-landing-system > .section:nth-of-type(n) {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.reading-landing-system > .section + .section,
.reading-atlas > .section + .section {
  margin-block-start: clamp(36px, 4.5vw, 64px);
}
.reading-landing-system .section h2,
.reading-atlas .section h2 {
  scroll-margin-top: calc(var(--bar-height) + 56px);
}
.reading-landing-system .overview-grid,
.reading-landing-system .overview-split {
  margin-block: 18px;
}
.reading-landing-system .overview-panel p + p,
.home-copy p + p,
.atlas-prose p + p {
  margin-block-start: 12px;
}
.home-method > .overview-panel {
  text-align: center;
}
.home-method > .overview-panel:nth-child(2) {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.home-paths {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reading-landing-system .overview-actions {
  margin-block-start: 20px;
}
.reading-landing-system .overview-actions a {
  padding: 0;
  background: none;
}
.reading-landing-system .overview-actions a:hover { text-decoration: none; }

.reading-landing-system .home-question {
  display: grid;
  align-content: center;
}
.reading-landing-system .home-question .conversation-preview {
  width: 100%;
  margin: 0;
}
.reading-landing-system .home-modules {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.reading-landing-system .home-stage-list {
  padding: 0;
  list-style: none;
}
.home-stage-list li { text-transform: capitalize; }
@media (min-width: 880px) and (max-width: 1180px) {
  .reading-landing-system .home-question { display: none; }
}
@media (max-width: 879px) {
  .reading-landing-system .home-question { height: auto; min-height: 0; }
  .reading-landing-system .home-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .reading-landing-system .home-modules { grid-template-columns: 1fr; }
}

.reading-design {
  --design-gap: clamp(12px, 1.6vw, 22px);
}
main:not([data-account-page]) > .reading-design > .reading-header {
  display: grid;
  align-content: center;
  background: var(--md-sys-color-surface-container-low);
}
main:not([data-account-page]) > .reading-design > .reading-header h1 {
  max-width: 36ch;
}
.reading-design .overview-actions a { padding: 0; background: none; }
.reading-design > .section + .section { margin-block-start: clamp(32px, 4vw, 60px); }
.reading-design .section h2 {
  scroll-margin-top: calc(var(--bar-height) + 56px);
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--md-sys-color-primary);
}
.reading-design .overview-grid {
  gap: var(--design-gap);
  margin-block: 20px;
}
.reading-design .overview-panel > p + p { margin-block-start: 12px; }
.reading-design .section > .overview-panel { margin-block-start: 18px; }
.reading-design .design-pipeline {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}
.reading-design .design-pipeline li + li { margin: 0; }
.design-pipeline strong { display: block; }
.design-specialties { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1099px) {
  .reading-design .design-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .reading-design .design-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-specialties { grid-template-columns: 1fr; }
}

.reading-player-grid > .player-articles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-block: clamp(26px, 4vw, 54px);
}
.reading-player-grid .player-articles > .section {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.8vw, 36px);
  border-radius: var(--corner);
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.reading-player-grid .player-articles h2 { max-width: none; }
.reading-player-grid > .landing-section-kucuk-bir-oyuncu-degil-konusma-calismasinin-merkezi {
  padding: clamp(22px, 4vw, 50px);
  border-radius: var(--corner);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
@media (max-width: 700px) {
  .reading-player-grid > .player-articles { grid-template-columns: 1fr; }
}

.reading-player-grid .overview-actions a { padding: 0; background: none; }
.reading-player-grid .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reading-player-grid .promise-panel:last-child { grid-column: span 2; }
body[data-page-id='classroom'] .reading-header {
  display: grid;
  align-content: center;
  justify-content: stretch;
  position: relative;
}
body[data-page-id='classroom'] .reading-header :is(h1, p) { max-width: min(64%, 60ch); }
.classroom-hero-steps {
  position: absolute;
  inset-inline-end: clamp(24px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  width: 29%;
  display: grid;
  justify-items: start;
  gap: 10px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.classroom-intro-body {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.classroom-intro-body .overview-grid { gap: clamp(14px, 2vw, 24px); }
.classroom-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 879px) {
  body[data-page-id='classroom'] .reading-header :is(h1, p) { max-width: none; }
  .classroom-hero-steps {
    position: static;
    transform: none;
    width: 100%;
    margin-block-start: 18px;
  }
}
@media (max-width: 760px) {
  .reading-player-grid .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .reading-player-grid .promise-grid,
  .classroom-pair { grid-template-columns: 1fr; }
  .reading-player-grid .promise-panel:last-child { grid-column: auto; }
}

/* Atlas uses the home page panel rhythm on a single aligned canvas. */
main:not([data-account-page]) > .reading-atlas > .reading-header {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  background: linear-gradient(120deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface-container));
}
main:not([data-account-page]) > .reading-atlas > .reading-header h1 {
  max-width: none;
}
.atlas-heading p {
  margin-block-end: 8px;
  color: var(--md-sys-color-primary);
  font-weight: 650;
}
.atlas-jump-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(10px, 1.3vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.atlas-jump-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  line-height: 1.3;
  font-weight: 600;
}
.atlas-jump-links a:hover {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.atlas-jump-links a span:last-child { color: var(--md-sys-color-primary); }
.reading-atlas .atlas-chapter {
  padding: clamp(18px, 3vw, 38px);
  background: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.reading-atlas .atlas-chapter + .atlas-chapter {
  margin-block-start: clamp(18px, 3vw, 38px);
}
.atlas-chapter h2 { margin-block-end: 16px; }
.atlas-prose > p { max-width: 76ch; }
.reading-atlas .atlas-prose > ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(10px, 1.5vw, 20px);
  margin-block: 18px;
  padding: 0;
  list-style: none;
}
.reading-atlas .atlas-prose > ol > li {
  margin: 0;
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 14px;
  background: var(--md-sys-color-surface-container-high);
}
.atlas-prose > ol > li > strong {
  display: block;
  margin-block-end: 5px;
  color: var(--md-sys-color-primary);
}
.atlas-chapter .overview-table { margin-block: 18px; }
.atlas-chapter .overview-table th:first-child { width: 29%; }
.atlas-chapter .overview-table th:nth-child(2) { width: 16%; }
.atlas-next { margin-block-start: 24px; }

@media (max-width: 879px) {
  main:not([data-account-page]) > .reading-atlas > .reading-header {
    grid-template-columns: 1fr;
    align-content: center;
  }
  .reading-atlas .atlas-prose > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-paths { grid-template-columns: 1fr; }
  .atlas-jump-links a { padding: 10px; }
  .atlas-chapter .overview-table { font-size: .9rem; }
}

.reading-landing-system .reading-header h1 { font-size: 48px; text-align: left; margin-bottom: 24px; }

/* Visual editor overrides — generated from visual-editor-rules.json */
