/* Zumread White and Carbon. The approved page fan keeps its exact geometry. */
:root {
  --bg: #ffffff;
  --paper: #f5f5f7;
  --ink: #17171a;
  --muted: #60606a;
  --soft: #eeeef1;
  --line: #dadae0;
  --accent: #c13b12;
  --accent-dark: #a92f0b;
  --brand-orange: #ff4c16;
  --accent-soft: #fff0ea;
  --peach: #f1f1f4;
  --green: #315c42;
  --heading: 'Manrope', 'DM Sans', sans-serif;
  --sidebar: 232px;
}

html { scroll-padding-bottom: 96px; }
body { font-size: 14px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--heading); font-weight: 650; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { transition: background .18s ease, color .18s ease, border-color .18s ease; }
.sidebar { background: var(--paper); padding: 32px 18px 0; border-color: var(--line); }
.brand, .reader-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand { margin: 0 0 40px; padding: 0 10px; min-height: 44px; }
.brand-mark { width: 35px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.brand-wordmark { font-family: var(--heading); font-weight: 750; font-size: 27px; letter-spacing: -1.4px; line-height: 1; }
.workspace-label { font-size: 10px; letter-spacing: 1.25px; color: var(--muted); padding-left: 14px; }
#navigation { gap: 6px; }
#navigation a { color: var(--muted); min-height: 48px; font-size: 13px; padding: 12px 14px; border-radius: 9px; }
#navigation a:hover { background: var(--soft); color: var(--ink); }
#navigation a.active { background: var(--soft); color: var(--accent); font-weight: 650; }
#navigation a.active svg { color: var(--accent); }
#navigation .nav-dot { background: var(--accent); }
.new-label { color: var(--muted); background: var(--soft); font-size: 8px; }
.sidebar-note { margin-top: 26px; border-color: var(--line); padding: 28px 14px; }
.sidebar-note .sunflower { color: var(--brand-orange); }
.sidebar-note p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.sidebar-note > span:last-child { color: var(--muted); font-size: 11px; }
.membership { background: var(--soft); border-color: var(--soft); padding: 16px; }
.membership strong { font-size: 12px; }
.membership-icon, .membership b { color: var(--accent); }
.membership > span:not(.membership-icon) { color: var(--muted); font-size: 11px; }
.profile { margin-left: -18px; margin-right: -18px; padding: 18px; border-color: var(--line); min-height: 74px; }
.profile strong { font-size: 11px; }
.profile small { font-size: 10px; color: var(--muted); }
.avatar { background: var(--soft); border-color: var(--paper); color: var(--muted); }
.topbar { height: 78px; min-height: 78px; background: var(--bg); border-color: var(--line); padding: 0 36px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.header-actions { gap: 14px; }
.search-box { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; width: 278px; padding: 0 12px; }
.search-box input { min-height: 42px; font-size: 12px; }
.search-box input::placeholder { color: var(--muted); }
.search-box svg { color: var(--muted); }
.search-box kbd { border-color: var(--soft); background: var(--paper); color: var(--muted); }
.notification-button { border-left: 0; width: 42px; padding: 0; color: var(--muted); border-radius: 9px; }
.notification-button:hover { background: var(--soft); }
.notification-button i { background: var(--brand-orange); }
.reader-brand, .mobile-navigation { display: none; }
main { padding: 32px 36px 40px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-family: var(--heading); font-size: 29px; font-weight: 650; line-height: 1.35; letter-spacing: -1px; }
.page-heading > p, .heading-row p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.3px; }
.heading-row { align-items: flex-start; }
.date-chip { background: var(--paper); border-color: var(--line); color: var(--muted); font-size: 11px; padding: 9px 12px; margin-top: 15px; }
.dashboard-top { grid-template-columns: minmax(0,1fr) 278px; gap: 22px; margin-bottom: 32px; }
.hero { background: var(--soft); min-height: 366px; border-radius: 14px; border: 1px solid var(--soft); }
.hero-copy { width: 66%; padding: 28px; }
.tag { font-size: 10px; letter-spacing: 1px; color: var(--muted); background: var(--paper); border-color: var(--soft); padding: 5px 8px; }
.tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-orange); }
.hero-title { font-family: var(--heading); font-size: 31px; font-weight: 650; line-height: 1.25; letter-spacing: -1.1px; margin-top: 16px; max-width: 390px; }
.hero-description { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 12px; max-width: 305px; }
.hero-meta, .hero-meta span { font-size: 11px; color: var(--muted); }
.hero-meta { gap: 9px; margin: 18px 0; flex-wrap: wrap; }
.hero-meta span { gap: 5px; }
.hero-art { width: 43%; }
.hero-art img { filter: saturate(.6); }
.hero-art:after { background: linear-gradient(90deg,var(--soft) 0%,var(--theme-hero-fade) 15%,var(--theme-hero-wash) 56%,transparent 85%); }
.art-caption { color: var(--paper); font-size: 8px; letter-spacing: 1px; bottom: 20px; right: 12px; }
.hero-footnote { color: var(--muted); font-size: 10px; margin-top: 12px; white-space: normal; }
.next-read-label { color: var(--muted); font-size: 12px; margin-top: 12px; font-weight: 500; }
.next-read-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.primary-button, .outline-button, .button { min-height: 44px; font-size: 12px; padding: 11px 17px; border-radius: 8px; }
.primary-button { background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 600; }
.primary-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.outline-button { border-color: var(--soft); background: var(--paper); color: var(--muted); }
.outline-button:hover { background: var(--paper); border-color: var(--line); }
.text-button { color: var(--accent); font-size: 12px; min-height: 40px; }
.text-button:hover { color: var(--accent); }
.icon-button { width: 44px; height: 44px; }
.icon-button:hover { background: var(--soft); }
.daily-card { background: var(--paper); border-color: var(--line); border-radius: 14px; padding: 24px 20px; }
.card-top h2 { font-family: var(--heading); font-size: 14px; font-weight: 650; }
.card-top > svg { color: var(--muted); width: 18px; height: 18px; }
.daily-card > p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.goal-options { background: var(--paper); border-color: var(--soft); border-radius: 8px; padding: 3px; gap: 4px; }
.goal-options button { color: var(--muted); min-height: 36px; border-radius: 5px; font-size: 12px; }
.goal-options button.active { color: var(--accent); background: var(--paper); box-shadow: 0 1px 3px #0b0b0c10; font-weight: 600; }
.goal-visual { width: 132px; height: 132px; margin: 20px auto 12px; }
.goal-visual .ring-bg { stroke: var(--soft); }
.goal-visual .ring-value, .goal-visual circle:last-child { stroke: var(--brand-orange); }
.goal-center > svg { color: var(--muted); }
.goal-center strong { font-family: var(--heading); font-weight: 600; color: var(--ink); font-size: 28px; }
.goal-center strong > span { font-size: 16px; color: var(--muted); }
.goal-center > span { color: var(--muted); font-size: 11px; }
.week-row { border-color: var(--line); gap: 8px; padding-top: 15px; }
.week-row .day { color: var(--muted); font-size: 11px; }
.day b { background: var(--paper); color: var(--muted); }
.day.done b { color: var(--accent); background: var(--soft); }
.day.today b { border-color: var(--line); background: var(--paper); }
.day b i { background: var(--accent); }
.daily-card .goal-caption { color: var(--muted); font-size: 10px; text-align: center; line-height: 1.6; margin-top: 14px; }
.section-heading { margin: 28px 0 18px; }
.section-heading h2 { font-family: var(--heading); font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.section-heading p { color: var(--muted); font-size: 12px; }
.section-heading > .text-button { font-size: 12px; }
.filter-row { gap: 8px; margin-bottom: 4px; padding-bottom: 16px; }
.filter-chip { border-color: var(--line); background: var(--paper); color: var(--muted); min-height: 38px; font-size: 12px; padding: 8px 13px; }
.filter-chip.active { background: var(--soft); border-color: var(--line); color: var(--accent); }
.filter-chip:hover { background: var(--soft); }
.path-grid, .path-grid.home-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.path-grid.home-paths .path-card:last-child { display: block; }
.path-card { background: var(--paper); border-color: var(--line); border-radius: 12px; overflow: hidden; box-shadow: none; }
.path-image { height: 154px; }
.path-image img { transition: transform .4s ease; }
.path-image-link:hover img { transform: scale(1.035); }
.category-tag { background: var(--theme-overlay-paper); color: var(--muted); font-size: 10px; padding: 4px 8px; left: 12px; bottom: 12px; }
.save-button { width: 36px; height: 36px; top: 10px; right: 10px; background: var(--theme-overlay-paper); color: var(--muted); }
.save-button.saved { color: var(--accent); background: var(--paper); }
.path-info, .path-grid.home-paths .path-info { padding: 18px; }
.path-info h3 { font-family: var(--heading); font-size: 17px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; }
.path-info h3 button { text-align: left; font: inherit; padding: 0; }
.path-info p { color: var(--muted); font-size: 12px; line-height: 1.6; min-height: 38px; }
.path-meta { color: var(--muted); font-size: 10px; margin-bottom: 9px; }
.free-badge { background: var(--soft); color: var(--muted); font-size: 10px; }
.indie-badge { background: var(--soft); color: var(--muted); font-size: 10px; }
.path-bottom, .path-stats { color: var(--muted); font-size: 11px; }
.path-bottom { margin-top: 17px; }
.card-arrow { width: 32px; height: 32px; border-color: var(--soft); color: var(--muted); background: var(--paper); }
.card-arrow:hover { background: var(--soft); color: var(--accent); }
.progress-line { background: var(--soft); }
.progress-line > span { background: var(--brand-orange); }
.schedule-banner { background: var(--soft); border-color: var(--soft); border-radius: 12px; padding: 22px; gap: 16px; }
.schedule-icon { background: var(--paper); color: var(--muted); width: 44px; height: 44px; border-radius: 12px; }
.schedule-copy h3 { font-family: var(--heading); font-size: 14px; font-weight: 650; }
.schedule-copy p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.quote-strip { margin: 25px 0 0; }
.quote-strip p { color: var(--muted); font-size: 12px; }
.quote-strip small { color: var(--muted); font-size: 10px; border-color: var(--line); }
.content-note { color: var(--muted); font-size: 11px; }
.content-note a { color: var(--accent); }
.site-footer { border-color: var(--line); color: var(--muted); font-size: 10px; margin: 0 36px; }
.tiny-star { color: var(--brand-orange); }
.sidebar-page-mark { display: block; width: 30px; height: 25px; object-fit: contain; margin-bottom: 14px; }
.footer-signature { display: inline-flex; align-items: center; gap: 8px; }
.footer-signature img { display: inline-block; width: 16px; height: 14px; object-fit: contain; }
.settings-links { margin: 24px 0; border-top: 1px solid var(--line); }
.settings-link { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 74px; padding: 15px 3px; text-align: left; border-bottom: 1px solid var(--line); }
.settings-link:hover { color: var(--accent); }
.settings-link > svg:first-child { width: 21px; height: 21px; color: var(--muted); }
.settings-link > span { min-width: 0; flex: 1; }
.settings-link strong { display: block; font-size: 13px; font-weight: 600; }
.settings-link small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.settings-link > svg:last-child { width: 17px; height: 17px; color: var(--muted); }
.stats-grid { gap: 18px; }
.stat-card, .activity-card, .author-card { background: var(--paper); border-color: var(--line); border-radius: 12px; }
.stat-card > svg { color: var(--muted); }
.stat-card > span { color: var(--muted); font-size: 12px; }
.stat-card strong { font-family: var(--heading); font-weight: 600; }
.activity-card > h2, .activity-card h2 { font-family: var(--heading); font-size: 19px; font-weight: 650; }
.activity-row { border-color: var(--line); }
.activity-row strong { color: var(--ink); font-size: 13px; }
.activity-row p { color: var(--muted); font-size: 11px; }
.activity-icon { background: var(--paper); color: var(--muted); }
.score-badge { background: var(--soft); color: var(--accent); }
.author-hero { background: var(--soft); border-color: var(--soft); border-radius: 14px; }
.author-hero h1 { font-family: var(--heading); font-size: 36px; letter-spacing: -1.1px; line-height: 1.3; }
.author-hero p { color: var(--muted); }
.author-card > svg { color: var(--muted); }
.author-card h2 { font-family: var(--heading); font-size: 19px; }
.author-card p { color: var(--muted); font-size: 12px; }
.notice { background: var(--paper); border-color: var(--soft); color: var(--muted); font-size: 12px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state > svg { color: var(--muted); }
.reader-layout { max-width: 840px; margin: 0 auto; }
.reader-top { margin-bottom: 20px; }
.reader-progress { background: var(--soft); }
.reader-progress > span { background: var(--brand-orange); }
.reader-meta { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.reader-paper { background: var(--paper); border-color: var(--line); padding: 48px 56px; border-radius: 12px; }
.reader-paper h1 { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.25; letter-spacing: -.9px; }
.reader-byline { color: var(--muted); font-size: 11px; }
.reader-text { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); font-size: 18px; line-height: 1.9; }
.reader-text.large-text { font-size: 21px; }
.takeaway { background: var(--soft); border-color: var(--line); }
.takeaway > span { color: var(--muted); font-size: 10px; }
.takeaway p { color: var(--muted); }
.reader-footer strong { font-family: var(--heading); font-size: 14px; }
.reader-footer p { font-size: 11px; color: var(--muted); }
dialog { background: var(--paper); border-color: var(--line); border-radius: 14px; }
dialog::backdrop { background: var(--theme-backdrop); backdrop-filter: blur(4px); }
.modal-head { border-color: var(--line); }
.modal-head h2 { font-family: var(--heading); font-size: 25px; font-weight: 650; letter-spacing: -.7px; line-height: 1.35; }
.modal-body > p { color: var(--muted); font-size: 13px; }
.modal-footer { border-color: var(--line); background: var(--paper); }
.field, .field > legend { color: var(--muted); font-size: 12px; }
.input { background: var(--paper); border-color: var(--soft); color: var(--ink); border-radius: 8px; min-height: 44px; font-size: 13px; }
.input:focus { border-color: var(--brand-orange); }
.goal-choice { min-height: 38px; font-size: 12px; color: var(--muted); }
.goal-choice:has(input:checked) { background: var(--paper); color: var(--accent); }
.goal-choice input { accent-color: var(--accent); }
.day-toggle { background: var(--paper); border-color: var(--soft); color: var(--muted); font-size: 11px; min-height: 44px; }
.day-toggle:has(input:checked) { background: var(--soft); border-color: var(--line); color: var(--accent); }
.switch-row { border-color: var(--line); }
.switch-row strong { color: var(--muted); font-size: 13px; }
.switch-row small { color: var(--muted); font-size: 11px; }
.switch-row input[type=checkbox], .check-label input { accent-color: var(--accent); }
.notification-status { background: var(--paper); color: var(--muted); }
.notification-status strong { font-size: 12px; color: var(--muted); }
.notification-status p { font-size: 11px; }
.notification-status .text-button { font-size: 11px; }
.lesson-item { border-color: var(--line); min-height: 66px; }
.lesson-item strong { font-size: 13px; }
.lesson-item small { font-size: 11px; color: var(--muted); }
.lesson-number { background: var(--soft); color: var(--accent); }
.quiz-question { font-family: var(--heading); font-size: 21px; font-weight: 650; color: var(--ink); }
.quiz-counter { color: var(--muted); font-size: 11px; }
.quiz-option { color: var(--muted); background: var(--paper); border-color: var(--soft); min-height: 54px; border-radius: 8px; font-size: 13px; }
.quiz-option > span { background: var(--soft); color: var(--muted); }
.quiz-option.selected { background: var(--soft); border-color: var(--line); }
.quiz-option.correct { background: var(--paper); border-color: var(--line); color: var(--muted); }
.quiz-option.incorrect { background: var(--soft); border-color: var(--line); color: var(--muted); }
.quiz-feedback { background: var(--paper); color: var(--muted); font-size: 12px; }
.score-ring { color: var(--accent); border-color: var(--line); background: var(--paper); }
.results h3 { font-family: var(--heading); font-weight: 650; font-size: 22px; }
.form-error { color: var(--theme-error-ink); }
.check-label { color: var(--muted); font-size: 11px; }
#toast { background: var(--ink); border-radius: 10px; font-size: 12px; box-shadow: 0 8px 30px #0b0b0c1f; }

/* Focus mode is shared by the desktop and mobile reading room. */
body[data-view='read'] .sidebar, body[data-view='read'] .mobile-navigation { display: none; }
body[data-view='read'] .app-shell { margin-left: 0; }
body[data-view='read'] .topbar { max-width: 1000px; width: 100%; margin: 0 auto; border-bottom: 1px solid var(--line); }
body[data-view='read'] .reader-brand { display: inline-flex; min-height: 44px; }
body[data-view='read'] .reader-brand .brand-mark { width: 27px; height: 25px; }
body[data-view='read'] .reader-brand .brand-wordmark { font-size: 23px; letter-spacing: -1px; }
body[data-view='read'] .header-actions, body[data-view='read'] .breadcrumb { display: none; }
body[data-view='read'] main { max-width: 960px; padding-top: 24px; }
body[data-view='read'] .site-footer { max-width: 840px; width: calc(100% - 72px); margin: 0 auto; }

@media (max-width: 1199px) {
  :root { --sidebar: 208px; }
  .sidebar { padding: 28px 16px 0; }
  .brand { padding: 0 6px; gap: 8px; }
  .brand-mark { width: 31px; height: 28px; }
  .brand-wordmark { font-size: 25px; }
  .profile { margin-left: -16px; margin-right: -16px; padding: 16px; }
  .topbar { padding: 0 28px; }
  main { padding: 28px; }
  .page-heading h1 { font-size: 27px; }
  .date-chip { display: none; }
  .dashboard-top { grid-template-columns: 1fr; }
  .hero { min-height: 330px; }
  .hero-copy { width: 66%; padding: 28px; }
  .hero-title { font-size: 30px; max-width: 430px; }
  .hero-description { max-width: 360px; }
  .daily-card { display: grid; grid-template-columns: minmax(0,1fr) 148px; column-gap: 28px; padding: 22px 28px; }
  .card-top { grid-column: 1; grid-row: 1; }
  .daily-card > p { grid-column: 1; grid-row: 2; align-self: start; margin-top: 4px; }
  .daily-card .goal-options { grid-column: 1; grid-row: 3; margin-top: 12px; max-width: 380px; }
  .daily-card .goal-visual { grid-column: 2; grid-row: 1 / 5; margin: 0; width: 128px; height: 128px; justify-self: center; }
  .daily-card .goal-caption { grid-column: 1; grid-row: 4; text-align: left; margin-top: 8px; }
  .daily-card .week-row { grid-column: 1 / -1; grid-row: 5; margin-top: 18px; justify-content: space-between; }
  .path-grid, .path-grid.home-paths { gap: 16px; }
  .path-image { height: 140px; }
  .path-info, .path-grid.home-paths .path-info { padding: 15px; }
  .path-info h3 { font-size: 16px; }
  .path-info p { font-size: 11px; }
  .path-stats { font-size: 10px; }
  .site-footer { margin: 0 28px; }
  .schedule-banner { flex-wrap: wrap; }
}

@media (max-width: 1023px) {
  :root { --sidebar: 192px; }
  .brand-wordmark { font-size: 23px; }
  .brand-mark { width: 28px; height: 26px; }
  #navigation a { padding: 12px; gap: 9px; font-size: 12px; }
  .sidebar-note p { font-size: 16px; }
  .search-box { width: 230px; }
  .topbar { padding: 0 24px; }
  main { padding: 26px 24px; }
  .hero-title { font-size: 29px; }
  .path-grid, .path-grid.home-paths { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .path-grid.home-paths .path-card:nth-child(3) { display: none; }
  .section-heading { gap: 16px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 11px; }
  .site-footer { margin: 0 24px; }
  .activity-row { flex-wrap: wrap; }
  .activity-row > .text-button { margin-left: auto; }
}

@media (max-width: 767px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .sidebar { position: sticky; top: 0; display: flex; height: 72px; width: 100%; padding: 0 20px; z-index: 20; background: var(--theme-nav-overlay); backdrop-filter: blur(16px); border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0; padding: 0; min-height: 72px; gap: 9px; align-self: flex-start; }
  .brand-mark { width: 32px; height: 29px; }
  .brand-wordmark { font-size: 27px; letter-spacing: -1.4px; }
  .sidebar #navigation, .workspace-label, .sidebar-note, .membership, .profile { display: none; }
  .app-shell { margin-left: 0; }
  .topbar { height: 64px; min-height: 64px; padding: 10px 20px; border-bottom: 0; background: var(--bg); }
  .breadcrumb { display: none; }
  .header-actions { width: 100%; gap: 10px; justify-content: space-between; }
  .search-box { width: calc(100% - 52px); padding: 0 12px; background: var(--soft); }
  .search-box input { font-size: 12px; min-height: 42px; }
  .notification-button { width: 42px; }
  .notification-button i { right: 8px; top: 10px; }
  .small-avatar { position: fixed; top: 18px; right: 20px; z-index: 22; width: 36px; height: 36px; font-size: 12px; }
  main { padding: 20px 20px 32px; }
  .page-heading { margin-bottom: 23px; }
  .page-heading h1 { font-size: 26px; letter-spacing: -.9px; }
  .page-heading > p, .heading-row p { font-size: 12px; max-width: 460px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .dashboard-top { gap: 18px; margin-bottom: 26px; }
  .hero { min-height: 330px; border-radius: 13px; }
  .hero-copy { width: 67%; padding: 26px; }
  .hero-title { font-size: 29px; line-height: 1.25; }
  .hero-description { font-size: 12px; }
  .hero-art { width: 43%; opacity: .9; }
  .daily-card { padding: 22px 24px; grid-template-columns: minmax(0,1fr) 128px; column-gap: 20px; }
  .card-top h2 { font-size: 14px; }
  .daily-card > p { font-size: 11px; }
  .daily-card .goal-visual { width: 118px; height: 118px; }
  .goal-center strong { font-size: 26px; }
  .goal-center > span { font-size: 10px; }
  .goal-options button { font-size: 12px; }
  .section-heading { margin: 26px 0 16px; gap: 12px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 11px; }
  .section-heading > .text-button { font-size: 11px; gap: 5px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; padding-bottom: 15px; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; font-size: 11px; min-height: 38px; }
  .path-grid, .path-grid.home-paths { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .path-image { height: 150px; }
  .path-info, .path-grid.home-paths .path-info { padding: 16px; }
  .path-info h3 { font-size: 17px; }
  .path-info p { font-size: 12px; }
  .schedule-banner { padding: 20px; gap: 13px; }
  .schedule-copy h3 { font-size: 13px; }
  .schedule-copy p { font-size: 11px; }
  .schedule-banner .outline-button { margin-left: 57px; min-height: 40px; font-size: 11px; }
  .quote-strip { margin-top: 25px; }
  .quote-strip p { font-size: 12px; }
  .site-footer { margin: 0 20px; padding: 18px 0; font-size: 10px; }
  .mobile-navigation { position: fixed; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); bottom: 0; left: 0; right: 0; z-index: 30; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--theme-nav-overlay); backdrop-filter: blur(18px); border-top: 1px solid var(--soft); box-shadow: 0 -4px 18px #0b0b0c05; }
  .mobile-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; color: var(--muted); font-size: 10px; font-weight: 500; border-radius: 8px; padding: 4px; }
  .mobile-nav-link svg { width: 21px; height: 21px; }
  .mobile-nav-link.active { color: var(--accent); font-weight: 650; background: var(--paper); }
  .mobile-nav-link:hover { background: var(--paper); }
  #toast { bottom: calc(94px + env(safe-area-inset-bottom)); font-size: 12px; }
  dialog { max-height: calc(100dvh - 36px); }
  .modal-head h2 { font-size: 23px; }
  .modal-body > p { font-size: 13px; }
  .modal-body, .modal-head { padding-left: 23px; padding-right: 23px; }
  .modal-footer { padding-left: 23px; padding-right: 23px; }
  .day-select { gap: 5px; }
  .day-toggle { font-size: 11px; min-width: 0; min-height: 44px; padding: 5px; }
  .goal-choice { font-size: 12px; min-height: 40px; }
  .quiz-question { font-size: 20px; }
  .quiz-option { font-size: 13px; min-height: 54px; }
  .author-hero h1 { font-size: 30px; }
  .author-card h2 { font-size: 20px; }
  .reader-paper { padding: 36px; }
  .reader-paper h1 { font-size: 33px; }
  .reader-text { font-size: 18px; }
  body[data-view='read'] { padding-bottom: 0; }
  body[data-view='read'] .topbar { justify-content: flex-start; border-bottom: 1px solid var(--line); min-height: 70px; padding: 0 22px; }
  body[data-view='read'] .reader-brand { min-height: 44px; }
  body[data-view='read'] main { padding-top: 22px; }
  body[data-view='read'] .site-footer { width: calc(100% - 40px); }
  body[data-view='read'] #toast { bottom: 22px; }
}

@media (max-width: 599px) {
  .hero { min-height: 365px; }
  .hero-copy { width: 77%; padding: 25px 23px; }
  .hero-title { font-size: 28px; max-width: 285px; }
  .hero-description { max-width: 235px; font-size: 12px; }
  .hero-art { width: 42%; opacity: .62; }
  .hero-art:after { background: linear-gradient(90deg,var(--soft) 0%,var(--theme-hero-fade) 20%,var(--theme-hero-wash) 70%); }
  .art-caption { display: none; }
  .hero-meta { gap: 8px; margin: 16px 0 18px; }
  .hero-meta, .hero-meta span { font-size: 11px; }
  .hero-copy .primary-button { min-height: 46px; font-size: 12px; padding: 12px 17px; }
  .daily-card { grid-template-columns: minmax(0,1fr) 108px; padding: 21px 20px; column-gap: 14px; }
  .daily-card .goal-visual { width: 106px; height: 106px; }
  .daily-card > p { font-size: 10px; }
  .daily-card .goal-caption { font-size: 10px; }
  .goal-options button { min-height: 34px; font-size: 11px; }
  .card-top h2 { font-size: 13px; }
  .path-grid, .path-grid.home-paths { gap: 13px; }
  .path-image { height: 132px; }
  .path-info, .path-grid.home-paths .path-info { padding: 13px; }
  .path-info h3 { font-size: 15px; letter-spacing: -.3px; }
  .path-info p { font-size: 11px; min-height: 36px; }
  .path-meta, .free-badge, .indie-badge { font-size: 10px; }
  .path-bottom { gap: 4px; flex-wrap: nowrap; }
  .path-stats { font-size: 10px; gap: 4px; }
  .path-stats svg { width: 12px; height: 12px; }
  .card-arrow { width: 28px; height: 28px; }
  .category-tag { left: 8px; bottom: 9px; font-size: 9px; padding: 4px 6px; }
  .save-button { width: 34px; height: 34px; top: 8px; right: 8px; }
  .schedule-banner { padding: 18px; }
  .schedule-copy { min-width: 175px; }
  .schedule-banner .outline-button { margin-left: 57px; font-size: 11px; }
  .reader-paper { padding: 30px 23px; border-radius: 10px; }
  .reader-paper h1 { font-size: 31px; }
  .reader-text { font-size: 17px; line-height: 1.9; }
  .reader-text.large-text { font-size: 20px; }
  .reader-meta { font-size: 11px; gap: 10px; line-height: 1.6; }
  .reader-footer .primary-button { width: 100%; min-height: 48px; }
  .reader-footer strong { font-size: 14px; }
  .modal-head, .modal-body { padding-left: 21px; padding-right: 21px; }
  .modal-head h2 { font-size: 22px; }
  .modal-footer { padding-left: 21px; padding-right: 21px; gap: 8px; }
  .modal-footer .primary-button, .modal-footer .outline-button { font-size: 11px; min-height: 44px; }
  .quiz-option { font-size: 12px; padding: 13px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-card > span { font-size: 11px; }
  .activity-card { padding: 21px; }
  .activity-row strong { font-size: 12px; }
  .activity-row p { font-size: 11px; }
}

@media (max-width: 374px) {
  .sidebar { padding: 0 16px; }
  .small-avatar { right: 16px; }
  .topbar { padding: 10px 16px; }
  main { padding: 20px 16px 28px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading > p { font-size: 12px; }
  .hero-copy { width: 86%; padding: 24px 20px; }
  .hero-title { font-size: 27px; }
  .hero-art { width: 37%; opacity: .46; }
  .daily-card { grid-template-columns: minmax(0,1fr) 90px; padding: 19px 16px; column-gap: 9px; }
  .daily-card .goal-visual { width: 90px; height: 90px; }
  .goal-center strong { font-size: 23px; }
  .goal-center strong > span { font-size: 13px; }
  .goal-center > span { font-size: 9px; }
  .goal-options button { font-size: 10px; min-height: 34px; }
  .card-top h2 { font-size: 12px; }
  .card-top > svg { width: 15px; height: 15px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading > .text-button { font-size: 10px; }
  .path-grid, .path-grid.home-paths { gap: 11px; }
  .path-info, .path-grid.home-paths .path-info { padding: 12px 10px; }
  .path-info h3 { font-size: 14px; }
  .path-info p { font-size: 11px; }
  .path-stats { font-size: 9px; }
  .path-bottom { flex-wrap: wrap; }
  .category-tag { font-size: 9px; left: 6px; padding: 4px 5px; }
  .schedule-copy { min-width: 155px; }
  .schedule-copy h3 { font-size: 12px; }
  .schedule-banner .outline-button { margin-left: 0; width: 100%; }
  .modal-head, .modal-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .day-select { gap: 3px; }
  .day-toggle { font-size: 10px; }
  .reader-paper { padding: 28px 20px; }
  .reader-paper h1 { font-size: 29px; }
  .reader-text { font-size: 17px; }
  .site-footer { margin-left: 16px; margin-right: 16px; }
}

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

/* Navigation remains reachable in compact desktop windows. */
@media(min-width:768px){.sidebar{overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}}
@media(min-width:768px) and (max-height:820px){.sidebar-note{display:none}.brand{margin-bottom:24px}.membership{margin-top:28px}}

/* Primary texts and personal guides belong to the same reading experience. */
.archive-invitation{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px;border:1px solid var(--soft);border-radius:14px;background:var(--soft);margin:28px 0 16px}
.archive-invitation h2{font-family:var(--heading);font-size:25px;letter-spacing:-.8px;line-height:1.3;margin:7px 0 10px}
.archive-invitation p{max-width:470px;color:var(--muted);font-size:13px;line-height:1.7}
.archive-invitation-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex-shrink:0}
.archive-collection-links{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 26px}
.archive-collection-links>a{display:inline-flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 15px;min-height:46px;background:var(--paper);border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:550;flex:1;min-width:160px;color:var(--muted)}
.archive-collection-links svg{width:15px;height:15px;color:var(--accent)}
.native-source-link{display:inline-flex;align-items:center;min-height:44px;color:var(--accent)!important;font-weight:600;font-size:13px}
@media(max-width:767px){.archive-invitation{padding:24px;align-items:flex-start;flex-direction:column;gap:18px}.archive-invitation h2{font-size:23px}.archive-invitation-actions{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 18px}.archive-invitation-actions .primary-button{flex-shrink:0}.archive-collection-links{gap:8px}.archive-collection-links>a{min-width:150px;font-size:12px}.archive-collection-links>a:last-child{flex-basis:100%}}

/* A reading bit always has a visible path to its source in Zumread. */
#reader-primary-source{margin-top:30px;padding-top:25px;border-top:1px solid var(--line)}
.lesson-source-card{display:flex;gap:18px;padding:24px;background:var(--soft);border:1px solid var(--soft);border-radius:12px}
.lesson-source-icon,.saved-primary-icon{display:flex;align-items:center;justify-content:center;width:44px;height:52px;border-radius:6px;background:var(--accent);color:var(--paper);flex-shrink:0}
.lesson-source-card h2{font-family:var(--heading);font-size:22px;line-height:1.4;letter-spacing:-.5px;margin:7px 0}
.lesson-source-card p{font-family:var(--sans);font-size:13px;line-height:1.75;color:var(--muted);margin:8px 0}
.lesson-source-card .lesson-source-credit{font-weight:550;font-size:12px}
.lesson-source-card small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:12px}
.lesson-source-actions{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;margin-top:17px}
.reader-source-shortcut{display:inline-flex;align-items:center;gap:7px;font:550 12px var(--sans);color:var(--accent);padding:10px 0;min-height:44px;margin:0 0 17px;text-decoration:underline;text-underline-offset:4px}
.reader-source-shortcut svg{width:16px;height:16px}
.saved-primary-empty{border:1px dashed var(--line);padding:23px;border-radius:10px;background:var(--paper);font-size:13px;color:var(--muted)}
.saved-primary-row{display:flex;gap:15px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.saved-primary-row>div{flex:1;min-width:0}.saved-primary-row h3{font-size:16px;line-height:1.5}.saved-primary-row p{font-size:12px;color:var(--muted);margin-top:3px}.saved-primary-icon{height:44px;width:35px;background:var(--soft);color:var(--accent)}
@media(max-width:599px){.lesson-source-card{padding:20px 17px;gap:12px}.lesson-source-icon{width:30px;height:39px}.lesson-source-icon svg{width:18px;height:18px}.lesson-source-card h2{font-size:19px}.lesson-source-card .eyebrow{font-size:9px;line-height:1.6}.lesson-source-card p{font-size:12px}.lesson-source-actions{align-items:flex-start;flex-direction:column;gap:3px}.lesson-source-actions .primary-button{font-size:11px;padding-inline:12px}.reader-source-shortcut{font-size:11px}.saved-primary-row{gap:12px}.saved-primary-row h3{font-size:14px}.saved-primary-row p{font-size:11px}}

.guided-invitation {display:flex;align-items:center;justify-content:space-between;gap:32px;margin:40px 0;padding:36px;border:1px solid var(--soft);border-radius:20px;background:linear-gradient(115deg,var(--soft),var(--paper));}
.guided-invitation h2 {font-family:'Playfair Display',serif;font-size:30px;font-weight:500;margin:10px 0;letter-spacing:-.7px;}
.guided-invitation p {max-width:560px;line-height:1.75;color:var(--muted);margin:0;}
.guided-invitation>div:last-child {flex-shrink:0;display:flex;align-items:flex-start;flex-direction:column;gap:18px;}
@media(max-width:1000px){.guided-invitation{align-items:flex-start;flex-direction:column;gap:24px}.guided-invitation h2{font-size:27px}}
@media(max-width:600px){.guided-invitation{padding:25px 22px;margin:28px 0}.guided-invitation>div:last-child{width:100%}.guided-invitation .primary-button{width:100%;justify-content:center}}

/* The artwork is composed as one complete canvas, with no inner photo frame. */
.path-image:has(img[src$="stoic-hero.png"]),
.path-detail-visual:has(img[src$="stoic-hero.png"]) {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  padding: 0;
  background: transparent;
}
.path-image:has(img[src$="stoic-hero.png"]) .path-image-link {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
}
.path-image img[src$="stoic-hero.png"],
.path-detail-visual img[src$="stoic-hero.png"] {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
  mix-blend-mode: normal;
}
.path-card:hover .path-image img[src$="stoic-hero.png"],
.path-image-link:hover img[src$="stoic-hero.png"] { transform: none; }
.path-image:has(img[src$="stoic-hero.png"]):after { display: none; }
.path-detail-visual:has(img[src$="stoic-hero.png"]) { margin: 0 0 24px; border-radius: 9px; }
.hero:has(.hero-art img[src$="stoic-hero.png"]) {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.hero:has(.hero-art img[src$="stoic-hero.png"]) .hero-copy { width: auto; }
.hero-art:has(img[src$="stoic-hero.png"]) {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  align-self: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
  opacity: 1;
}
.hero-art img[src$="stoic-hero.png"] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  filter: none;
  mix-blend-mode: normal;
}
.hero-art:has(img[src$="stoic-hero.png"]):after { display: none; }
.hero-art:has(img[src$="stoic-hero.png"]) .art-caption { display: none; }
@media(max-width:599px) {
  .hero:has(.hero-art img[src$="stoic-hero.png"]) { grid-template-columns: 1fr; min-height: 0; }
  .hero:has(.hero-art img[src$="stoic-hero.png"]) .hero-copy { padding: 27px 24px; }
  .hero-art:has(img[src$="stoic-hero.png"]) { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .hero-art img[src$="stoic-hero.png"] { position: static; width: 100%; height: auto; object-fit: contain; }
}
