:root {
  color-scheme: light;
  --ink: #23201c;
  --muted: #6f6961;
  --paper: #fffaf1;
  --panel: #ffffff;
  --line: #e6dccd;
  --terracotta: #b85638;
  --terracotta-dark: #843b2b;
  --sage: #6e8065;
  --blue: #496f89;
  --gold: #d9a441;
  --shadow: 0 22px 70px rgba(54, 42, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.hero {
  min-height: 82vh;
  padding: 18px clamp(18px, 4vw, 56px) 42px;
  background:
    linear-gradient(120deg, rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0.62)),
    repeating-linear-gradient(90deg, rgba(73, 111, 137, 0.08) 0 1px, transparent 1px 74px),
    linear-gradient(135deg, #f8ead5 0%, #fdf7ea 44%, #dce8dd 100%);
}

.topbar,
.hero-grid,
.content-layout,
.daily-detail,
.checkin-band,
footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 86, 56, 0.24);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.84fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding-top: clamp(18px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.ghost-link-action,
.ghost-action,
.complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.complete-button {
  background: var(--ink);
  color: #fff;
}

.ghost-link-action,
.ghost-action {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(35, 32, 28, 0.18);
  color: var(--ink);
}

.visual-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(35, 32, 28, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 231, 0.78)),
    linear-gradient(90deg, rgba(217, 164, 65, 0.24), transparent 46%),
    linear-gradient(0deg, rgba(110, 128, 101, 0.16), transparent 58%);
  box-shadow: var(--shadow);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(35, 32, 28, 0.12);
  border-radius: 8px;
}

.book-stack {
  position: absolute;
  right: 10%;
  bottom: 17%;
  width: min(280px, 58%);
  height: 310px;
}

.book {
  position: absolute;
  width: 132px;
  height: 230px;
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 20px 34px rgba(54, 42, 30, 0.2);
}

.book::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 16px;
  width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.book-a {
  right: 120px;
  bottom: 24px;
  transform: rotate(-12deg);
  background: var(--terracotta);
}

.book-b {
  right: 62px;
  bottom: 36px;
  transform: rotate(4deg);
  background: var(--blue);
}

.book-c {
  right: 0;
  bottom: 14px;
  transform: rotate(14deg);
  background: var(--sage);
}

.progress-orbit {
  position: absolute;
  left: 10%;
  top: 12%;
  width: 180px;
  height: 180px;
}

.progress-orbit svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.track,
.meter {
  fill: none;
  stroke-width: 11;
}

.track {
  stroke: rgba(35, 32, 28, 0.1);
}

.meter {
  stroke: var(--terracotta);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s ease;
}

.progress-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.progress-number strong {
  font-size: 3.2rem;
  line-height: 1;
}

.progress-number span {
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-note {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 8%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(54, 42, 30, 0.12);
}

.mini-note span {
  color: var(--muted);
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -34px auto 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.book-downloads {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 36px));
  margin: 26px auto 0;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(35, 32, 28, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(220, 232, 221, 0.6));
  box-shadow: 0 18px 48px rgba(54, 42, 30, 0.08);
}

.book-file-actions,
.daily-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.book-file-actions {
  justify-content: flex-end;
}

.book-file-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.summary-band div {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-band div:last-child {
  border-right: 0;
}

.summary-band strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.summary-band span {
  color: rgba(255, 255, 255, 0.72);
}

.program-rules {
  width: min(1120px, calc(100% - 36px));
  margin: 34px auto 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(35, 32, 28, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(248, 234, 213, 0.64)),
    repeating-linear-gradient(90deg, rgba(73, 111, 137, 0.05) 0 1px, transparent 1px 74px);
  box-shadow: 0 18px 48px rgba(54, 42, 30, 0.08);
}

.rules-jump {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fffdf8;
  color: var(--terracotta-dark);
  font-weight: 900;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.rule-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.rule-card-featured {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(220, 232, 221, 0.52));
}

.rule-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(184, 86, 56, 0.12);
  color: var(--terracotta-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.rule-card h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.35;
}

.rule-card p,
.rule-card li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.66;
}

.rule-card p {
  margin-bottom: 10px;
}

.rule-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.refund-pill,
.muted-note,
.alert-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 900;
}

.refund-pill {
  background: rgba(110, 128, 101, 0.14);
  color: var(--sage);
}

.muted-note {
  background: rgba(184, 86, 56, 0.1);
  color: var(--terracotta-dark);
}

.fine-print {
  font-size: 0.88rem;
}

.meeting-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.meeting-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 164, 65, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.meeting-item span {
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meeting-item strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.meeting-link {
  color: var(--blue);
  font-weight: 900;
  word-break: keep-all;
}

.alert-note {
  margin-top: 14px;
  background: rgba(217, 164, 65, 0.16);
  color: var(--terracotta-dark);
}

.content-layout {
  padding: 84px 0 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.day-card {
  display: grid;
  min-height: 142px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.day-card:hover,
.day-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(184, 86, 56, 0.42);
  box-shadow: 0 16px 42px rgba(54, 42, 30, 0.1);
}

.day-card.is-complete {
  background: linear-gradient(135deg, rgba(110, 128, 101, 0.12), rgba(255, 255, 255, 0.88));
}

.day-number,
.day-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.day-card strong {
  align-self: center;
  font-size: 1.06rem;
  line-height: 1.45;
}

.daily-detail {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.complete-button.is-complete {
  background: var(--sage);
}

.detail-date {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.task-panel {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.task-panel p,
.task-panel li,
.source-link {
  color: var(--muted);
  line-height: 1.8;
}

.source-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--terracotta-dark);
  font-weight: 800;
}

.secondary-file {
  color: var(--blue);
}

.online-reader-link {
  color: var(--ink);
}

.reader-body {
  background: #fffaf1;
}

.reader-shell,
.reader-layout {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.reader-shell {
  padding: 22px 0 24px;
}

.reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.reader-day-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.reader-day-control select {
  max-width: min(520px, 52vw);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.reader-hero {
  padding: clamp(30px, 7vw, 78px) 0 34px;
}

.reader-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1;
}

.reader-hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.reader-subtitle {
  max-width: 820px;
  color: var(--ink);
  font-weight: 900;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.reader-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.reader-actions a + a {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.reader-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 80px;
}

.reader-side-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.reader-side-panel .eyebrow {
  margin-bottom: 8px;
}

.reading-flow-card,
.annotation-guide,
.reader-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 48px rgba(54, 42, 30, 0.08);
}

.reading-flow-card {
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
}

.annotation-guide {
  padding: 22px;
}

.reader-article {
  grid-column: 2;
}

.annotation-guide h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.reading-flow-card h2 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.reading-flow-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
}

.flow-step span {
  grid-row: 1 / span 2;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(191, 84, 48, 0.12);
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-step strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.annotation-guide p {
  color: var(--muted);
  line-height: 1.7;
}

.sample-mark,
.annotation-mark {
  appearance: none;
  display: inline;
  border: 0;
  border-radius: 4px;
  padding: 1px 4px;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}

.word-mark {
  background: rgba(217, 164, 65, 0.24);
  color: var(--terracotta-dark);
}

.sentence-mark {
  background: rgba(73, 111, 137, 0.14);
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.reader-article {
  padding: clamp(24px, 5vw, 54px);
}

.reader-article h2 {
  margin: 34px 0 14px;
  color: var(--terracotta-dark);
  font-size: 1.3rem;
}

.reader-article h2:first-child {
  margin-top: 0;
}

.reader-article p {
  margin: 0 0 20px;
  color: #3b352e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.9;
}

.reader-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px 1.2em;
  padding: 0;
  color: #3b352e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.reader-list li {
  padding-left: 0.25em;
}

.reader-display {
  margin: 18px auto 24px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.reader-display + .reader-display {
  margin-top: -10px;
}

.reader-error {
  padding: 24px;
  border: 1px solid rgba(191, 84, 48, 0.22);
  border-radius: 8px;
  background: rgba(191, 84, 48, 0.08);
}

.reader-error h2 {
  margin-top: 0;
}

.reader-error p {
  font-family: inherit;
  font-size: 1rem;
}

.reader-figure {
  margin: 28px auto 34px;
  text-align: center;
}

.reader-figure img {
  display: block;
  max-width: min(100%, 520px);
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 14px 38px rgba(54, 42, 30, 0.12);
}

.reader-figure figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 900;
}

.annotation-popover {
  position: absolute;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(35, 32, 28, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(35, 32, 28, 0.2);
}

.annotation-popover button {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.annotation-popover strong {
  display: block;
  padding-right: 22px;
  color: var(--ink);
}

.annotation-popover p {
  margin: 10px 0 0;
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.65;
}

.question-panel {
  grid-column: 1 / -1;
}

.question-panel ol,
.question-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

#guideList {
  padding-left: 0;
  list-style: none;
  padding-right: 10px;
}

#guideList li {
  padding: 4px 0;
}

#guideList li + li {
  margin-top: 8px;
}

#guideList li:last-child {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 800;
}

.full-reading {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 20px;
}

#fullReadingContent {
  display: grid;
  gap: 18px;
}

.reading-section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.reading-section h3 {
  margin-bottom: 22px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.reading-section h4 {
  margin: 26px 0 12px;
  color: var(--terracotta-dark);
  font-size: 1.05rem;
}

.reading-line {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.85;
}

.reading-line.bulleted_list,
.reading-line.numbered_list {
  position: relative;
  padding-left: 28px;
}

.reading-line.bulleted_list::before,
.reading-line.numbered_list::before {
  content: attr(data-marker);
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 900;
}

.reading-line.quote,
.reading-line.original_quote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(217, 164, 65, 0.12);
  color: var(--ink);
  font-weight: 700;
}

.reading-line.original_label {
  display: inline-flex;
  margin: 18px 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(73, 111, 137, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.reading-line.original_quote {
  border-left-color: var(--blue);
  background: rgba(73, 111, 137, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 600;
}

.word-table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.word-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.word-table th,
.word-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.55;
}

.word-table th {
  background: rgba(110, 128, 101, 0.12);
  color: var(--ink);
}

.word-table tr:last-child td {
  border-bottom: 0;
}

.checkin-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  margin-top: 56px;
  padding: clamp(28px, 5vw, 52px) 0 64px;
  border-top: 1px solid var(--line);
}

.rules {
  display: grid;
  gap: 14px;
}

.rules p {
  margin: 0;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.75;
}

footer {
  padding: 24px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .topbar,
  .detail-header,
  .checkin-band {
    align-items: start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .detail-grid,
  .checkin-band {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 430px;
  }

  .reader-topbar,
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .reader-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-day-control,
  .reader-day-control select {
    width: 100%;
    max-width: none;
  }

  .reader-side-panel {
    position: static;
  }

  .reading-flow-card {
    max-height: none;
  }

  .reader-article {
    grid-column: 1;
  }


  .summary-band,
  .book-downloads,
  .rules-grid,
  .day-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rule-card,
  .rule-card-featured {
    grid-column: span 1;
  }

  .book-file-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 18px 18px 36px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.4rem);
  }

  .summary-band,
  .book-downloads,
  .rules-grid,
  .day-grid {
    grid-template-columns: 1fr;
  }

  .rule-card {
    min-height: auto;
  }

  .summary-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .visual-panel {
    min-height: 380px;
  }

  .progress-orbit {
    width: 148px;
    height: 148px;
  }

  .book-stack {
    right: 3%;
    width: 250px;
    transform: scale(0.86);
    transform-origin: bottom right;
  }

  .mini-note {
    left: 18px;
    right: 18px;
  }

  .content-layout,
  .daily-detail,
  .checkin-band,
  footer {
    width: calc(100% - 36px);
  }
}
