:root {
  --ink: #193b35;
  --muted: #63736d;
  --paper: #f5f4ee;
  --green: #174f43;
  --lime: #dceac0;
  --line: #dedfd5;
  --white: #fffefb;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
textarea,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b27932;
  outline-offset: 4px;
}
.topbar {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  background: var(--white);
}
.brand {
  font-weight: 800;
  letter-spacing: 2.4px;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.brand span {
  font-weight: 400;
}
.brand-dot {
  background: var(--green);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: var(--lime);
}
.workspace {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 84px);
}
.sidebar {
  padding: 38px 28px 30px 38px;
  border-right: 1px solid var(--line);
}
.mini-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  line-height: 1.7;
  display: block;
  text-transform: uppercase;
}
.sidebar h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.22;
  margin: 13px 0;
}
.sidebar-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.overall-progress {
  margin: 28px 0 24px;
}
.overall-progress > div {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: 12px;
}
.overall-progress span {
  color: var(--muted);
}
progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: none;
  margin: 12px 0 0;
  background: #e0e3d8;
  border-radius: 3px;
}
progress::-webkit-progress-bar {
  background: #e0e3d8;
  border-radius: 3px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 3px;
}
progress::-moz-progress-bar {
  background: var(--green);
}
.overall-progress p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.chapter {
  display: flex;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 13px 10px;
  gap: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.chapter.active {
  background: #e6ebdf;
  border-color: #d6dfca;
  color: var(--ink);
}
.chapter:hover {
  background: #e9ece2;
}
.chapter-num {
  font-family: Georgia, serif;
  font-size: 18px;
  padding-top: 1px;
  opacity: 0.65;
}
.chapter strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.chapter small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.8;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}
.sidebar-foot p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.sidebar-foot a,
.sidebar-foot button {
  display: block;
  font-size: 11px;
  margin-top: 14px;
}
.sidebar-foot button {
  padding: 0;
}
main#learning {
  max-width: 1000px;
  width: 100%;
  padding: 42px 64px 56px;
  outline: none;
}
.chapter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.chapter-heading h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 9px 0;
}
.chapter-heading p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 550px;
  margin: 0;
}
.time-pill {
  font-size: 10px;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.card-position {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 12px;
  gap: 10px;
}
.learning-card {
  position: relative;
  background: var(--white);
  border: 1px solid #d9dfd3;
  border-radius: 12px;
  padding: 42px 44px;
  box-shadow: 0 12px 28px #213a2910;
  overflow: hidden;
}
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 14px 0 22px;
}
.lead {
  font-size: 16px;
  line-height: 1.7;
  color: #465d52;
  margin-bottom: 30px;
}
.text-block {
  margin-top: 24px;
}
h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 9px;
}
.text-block p,
.text-block li,
.compare p,
.exercise p,
.feedback p,
.quiz-result p {
  font-size: 14px;
  line-height: 1.8;
  color: #40554c;
}
.text-block p {
  margin: 0;
}
.text-block ul {
  padding-left: 20px;
  margin: 0;
}
.text-block li {
  padding-left: 4px;
  margin-bottom: 8px;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.compare section {
  background: #f3f2ec;
  border-radius: 8px;
  padding: 20px;
}
.compare section:last-child {
  background: #eaf0e0;
}
.compare p {
  margin-bottom: 0;
}
.compare .mini-label {
  font-size: 9px;
}
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 26px 0;
}
.flow li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #eaf0e0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.flow span {
  width: 22px;
  height: 22px;
  border: 1px solid #b6c6a6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.exercise,
.quiz {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.exercise h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
.exercise .small,
.small {
  font-size: 11px !important;
  line-height: 1.65 !important;
  color: var(--muted) !important;
}
.exercise textarea {
  width: 100%;
  padding: 17px;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  border: 1px solid #c4cec0;
  background: #fafbf7;
  border-radius: 8px;
  min-height: 170px;
  color: var(--ink);
}
.answer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
}
.answer-actions > span {
  font-size: 10px;
  color: var(--muted);
}
.primary,
.secondary {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 13px 18px;
  background: var(--green);
  color: white;
  line-height: 1.4;
}
.primary:hover {
  background: #246759;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #cdd5c7;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  font-size: 12px;
}
.quiet:hover {
  color: var(--ink);
  text-decoration: underline;
}
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.session-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.8;
}
.feedback {
  background: #edf3e4;
  padding: 23px;
  border-radius: 9px;
  margin-top: 24px;
}
.feedback h3 {
  margin-top: 20px;
}
.feedback p {
  margin: 6px 0;
}
.feedback details {
  font-size: 12px;
  margin-top: 20px;
}
.feedback summary {
  cursor: pointer;
}
.uncertainty {
  font-style: italic;
}
.quiz fieldset {
  border: none;
  margin: 18px 0;
  padding: 0;
}
.option {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.option:has(input:checked) {
  border-color: var(--green);
  background: #edf3e4;
}
.option input {
  accent-color: var(--green);
  align-self: flex-start;
  margin-top: 5px;
}
.quiz-result {
  border-left: 3px solid #b3834b;
  padding: 16px;
  background: #f8f0e3;
  margin-top: 20px;
  font-size: 14px;
}
.quiz-result.correct {
  background: #edf3e4;
  border-color: var(--green);
}
.error {
  font-size: 12px;
  color: #933d27;
}
.gate {
  max-width: 660px;
  margin: 12vh auto;
  padding: 30px;
}
.gate .mini-label {
  margin-top: 60px;
}
.gate h1 {
  font-size: 52px;
  margin: 20px 0 24px;
}
.gate p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}
.gate .primary {
  margin-top: 20px;
}
.preview-banner {
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 8px;
  text-align: center;
  background: #ebe5cb;
  color: #63551d;
}
.finish {
  background: #e6ecdb;
  border-radius: 12px;
  padding: 26px;
  margin-top: 30px;
}
.finish h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.finish p,
.finish a {
  font-size: 13px;
  line-height: 1.8;
}
dialog {
  max-width: 600px;
  max-height: 85vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 30px;
}
dialog::backdrop {
  background: #12332b66;
}
dialog li,
dialog p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: #193b35;
  color: white;
  border-radius: 8px;
  padding: 13px 20px;
  z-index: 10;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1450px) {
  main#learning {
    margin-left: 30px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 20px;
  }
  main#learning {
    padding: 32px;
  }
  .learning-card {
    padding: 32px;
  }
  .chapter-heading {
    align-items: flex-start;
  }
  .time-pill {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .brand {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions button {
    font-size: 10px;
    padding: 8px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    padding: 20px 18px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .mini-label,
  .sidebar h2,
  .sidebar-intro,
  .sidebar-foot {
    display: none;
  }
  .overall-progress {
    margin: 0 0 14px;
  }
  .overall-progress > div {
    font-size: 11px;
  }
  .overall-progress p {
    margin-bottom: 0;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .chapter {
    min-width: 185px;
    width: 185px;
    padding: 10px;
    margin: 0;
  }
  .chapter strong {
    font-size: 11px;
  }
  .chapter-num {
    font-size: 16px;
  }
  .chapter small {
    font-size: 9px;
  }
  main#learning {
    padding: 24px 16px 40px;
  }
  .chapter-heading {
    margin-bottom: 22px;
  }
  .chapter-heading h2 {
    font-size: 21px;
  }
  .chapter-heading p {
    font-size: 11px;
  }
  .card-position {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .learning-card {
    padding: 29px 23px;
    border-radius: 10px;
  }
  h1 {
    font-size: 29px;
  }
  .lead {
    font-size: 15px;
    line-height: 1.7;
  }
  .text-block p,
  .text-block li,
  .compare p,
  .exercise p,
  .feedback p {
    font-size: 14px;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .navigation .primary {
    font-size: 10px;
    padding: 12px;
  }
  .navigation .secondary {
    font-size: 11px;
    padding: 12px;
  }
  .navigation .quiet {
    font-size: 10px;
  }
  .answer-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .answer-actions .primary {
    width: 100%;
  }
  .gate {
    margin: 8vh auto;
    padding: 26px;
  }
  .gate h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.reflection {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
}
.reflection p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0;
}
.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .mobile-menu {
    display: block;
  }
}

.dependency {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid #cddac4;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4f7ec, #e6efdf);
}
.dependency h3 {
  font-size: 16px;
}
.change-label {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 20px;
  background: #174f43;
  color: white;
  font-size: 12px;
}
.dependency ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
}
.dependency li {
  position: relative;
  min-width: 0;
  border-top: 2px solid #769365;
  padding-top: 14px;
}
.dependency li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  top: -14px;
  font-size: 18px;
  color: #476443;
}
.dependency-number {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 9px;
  color: #527347;
}
.dependency strong {
  font-size: 13px;
}
.dependency li p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}
.dependency-caption {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 0;
  color: #40554c;
}
@media (max-width: 600px) {
  .dependency {
    padding: 18px;
  }
  .dependency ol {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 18px 0;
  }
  .dependency li {
    padding: 12px 0 12px 38px;
    border-top: 0;
    border-left: 2px solid #769365;
  }
  .dependency-number {
    position: absolute;
    left: 12px;
    top: 15px;
  }
  .dependency li:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -12px;
    left: -8px;
    right: auto;
  }
  .dependency li p {
    margin-top: 4px;
  }
}

.reference {
  margin: 24px 0;
  border: 1px solid #ddd5ba;
  background: #f7f5eb;
  border-radius: 8px;
  padding: 18px 20px;
}
.reference summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.reference p {
  font-size: 13px;
  line-height: 1.8;
  margin: 14px 0 0;
  color: #40554c;
}

/* A calm editorial frame; teaching blocks retain semantic content. */
:root {
  --paper: #f6f5ef;
  --ink: #173e35;
  --muted: #5f7169;
  --green: #215b4b;
  --line: #e0e5d9;
}
body {
  background:
    radial-gradient(ellipse at 90% 0, #e9efdf 0, transparent 44%), var(--paper);
}
.topbar {
  background: #fffef9;
}
.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px 6px 6px 0;
  transform: rotate(-12deg);
  box-shadow: inset -5px -5px 0 #91ae86;
}
.avatar {
  border: 3px solid #fffef9;
  box-shadow: 0 0 0 1px #d1dcc6;
}
.sidebar {
  background: #f4f5ed;
}
.sidebar h2 {
  font-size: 29px;
}
.overall-progress {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
}
progress {
  height: 7px;
  border-radius: 10px;
}
.chapter {
  border-radius: 12px;
  padding: 14px 12px;
}
.chapter.active {
  background: #e5edda;
  border-color: #cedbbf;
  box-shadow: inset 3px 0 0 #215b4b;
}
.chapter.active .chapter-num {
  color: #215b4b;
  opacity: 1;
}
.chapter-heading h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.6px;
}
.chapter-heading p {
  font-size: 13px;
}
.time-pill {
  background: #fffef9;
}
.card-position {
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.9px;
}
.card-mode {
  padding: 7px 11px;
  border: 1px solid #d6dfcb;
  border-radius: 30px;
  background: #edf2e6;
  font-size: 9px;
}
.practice-mode {
  background: #f3eddf;
  border-color: #e5d6b8;
  color: #705c37;
}
.quiz-mode {
  background: #edeaf3;
  border-color: #dcd5e8;
  color: #65557c;
}
.learning-card {
  border-radius: 20px;
  padding: 42px;
  box-shadow:
    0 8px 32px #193e3508,
    0 1px 3px #193e3508;
}
.card-accent {
  height: 5px;
  background: linear-gradient(90deg, #215b4b 0%, #70916e 65%, #d7e5c7 100%);
}
h1 {
  font-size: 39px;
  line-height: 1.16;
  letter-spacing: -0.8px;
}
.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 26px;
}
.text-block {
  margin-top: 28px;
}
.text-block h3 {
  font-size: 15px;
}
.text-block p,
.text-block li,
.compare p,
.exercise p,
.feedback p,
.quiz-result p {
  font-size: 15px;
  line-height: 1.85;
}
.welcome-card .card-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: center;
}
.welcome-card h1 {
  font-size: 39px;
}
.welcome-card .lead {
  border-left: 3px solid #d4b16d;
  padding-left: 18px;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
}
.welcome-art {
  display: block;
  width: 100%;
  height: auto;
}
.tiles-block {
  margin-top: 28px;
}
.tiles-block > h3 {
  margin-bottom: 14px;
  font-size: 15px;
}
.teaching-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tiles-2,
.tiles-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.teaching-tile {
  position: relative;
  background: #f0f4e9;
  border: 1px solid #e2e8d8;
  border-radius: 13px;
  padding: 20px 18px;
  min-width: 0;
}
.teaching-tile:nth-child(2) {
  background: #f6f0e3;
  border-color: #ece2cc;
}
.teaching-tile:nth-child(3) {
  background: #efedf4;
  border-color: #e2dfec;
}
.teaching-tile:nth-child(4) {
  background: #e9f1ed;
  border-color: #dbe7df;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fffdf7;
  color: #49694f;
  margin-bottom: 18px;
}
.tile-icon svg,
.note-mark svg {
  width: 23px;
  height: 23px;
}
.teaching-tile:nth-child(2) .tile-icon {
  color: #967038;
}
.teaching-tile:nth-child(3) .tile-icon {
  color: #79668d;
}
.tile-step {
  position: absolute;
  top: 25px;
  right: 19px;
  font-size: 10px;
  font-weight: 600;
  color: #667268;
  letter-spacing: 1.5px;
}
.teaching-tile h4 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
.teaching-tile p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #465c50;
}
.note-sheet {
  margin: 28px 0;
  border: 1px solid #dce3d6;
  border-radius: 14px;
  background: #fafbf7;
  overflow: hidden;
}
.note-sheet figcaption {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #edf2e5;
  padding: 17px 20px;
  border-bottom: 1px solid #dce3d6;
}
.note-sheet figcaption h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.note-sheet figcaption > .mini-label {
  margin-left: auto;
  font-size: 8px;
  white-space: nowrap;
}
.note-mark {
  display: flex;
  color: #54734e;
  flex-shrink: 0;
}
.note-sheet dl {
  margin: 0;
}
.note-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
  padding: 13px 21px;
  border-bottom: 1px solid #e6eade;
  font-size: 13px;
  line-height: 1.8;
}
.note-row dt {
  font-weight: 650;
  color: #526950;
}
.note-row dd {
  margin: 0;
}
.note-emphasis {
  background: #fcf3df;
}
.note-emphasis dt {
  color: #85652e;
}
.note-caption {
  font-size: 12px;
  line-height: 1.8;
  color: #52665a;
  padding: 16px 21px;
  margin: 0;
}
.compare {
  gap: 14px;
}
.compare section {
  border-radius: 13px;
  padding: 22px;
  border: 1px solid #e4e1d8;
}
.compare section:last-child {
  border-color: #d6e2c7;
}
.reflection {
  margin-top: 30px;
  padding: 20px 22px;
  background: #f7f4ea;
  border: 1px solid #e8e0c9;
  border-radius: 13px;
}
.reflection .mini-label {
  color: #8c703d;
  font-size: 9px;
}
.reflection p {
  font-size: 14px;
  color: #536356;
}
.primary,
.secondary {
  border-radius: 10px;
  padding: 14px 20px;
}
.primary {
  box-shadow: 0 3px 7px #163e3512;
}
.primary:hover {
  background: #286e58;
}
.option {
  border-radius: 12px;
  background: #fcfcf8;
}
.option:hover {
  border-color: #a9b99f;
}
.feedback {
  border: 1px solid #d5e2c9;
  border-radius: 15px;
  background: #edf4e6;
}
.exercise textarea {
  border-radius: 12px;
  background: #fcfdf9;
  font-size: 15px;
}
.entry-gate {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  max-width: 1050px;
  margin: 8vh auto;
  padding: 0;
  background: #fffef9;
  border: 1px solid #dce3d6;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px #193e350c;
}
.entry-copy {
  padding: 50px;
}
.entry-gate .mini-label {
  margin-top: 50px;
  font-size: 10px;
  color: #6e845c;
}
.entry-gate h1 {
  font-size: 47px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
.entry-gate h1 em {
  font-weight: 400;
  color: #648254;
}
.entry-gate .entry-lead {
  font-size: 16px;
  line-height: 1.8;
}
.entry-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  background: #edf1e4;
}
.entry-art img {
  width: 100%;
  height: auto;
}
.entry-art p {
  font-family: Georgia, serif;
  font-size: 22px;
  text-align: center;
  line-height: 1.5;
  color: #557047;
}
.entry-facts {
  display: flex;
  gap: 28px;
  margin: 30px 0 7px;
}
.entry-facts span {
  font-size: 11px;
  line-height: 1.8;
  color: #5c705d;
}
.entry-facts strong {
  display: block;
  font-size: 21px;
  font-weight: 550;
  color: var(--ink);
}
.entry-gate .primary {
  min-width: 170px;
  text-align: center;
}
.entry-access {
  font-size: 11px;
  color: #627361;
  margin-top: 20px;
}
.entry-access summary {
  cursor: pointer;
}
.entry-access p {
  font-size: 12px;
}
@media (max-width: 1150px) {
  .welcome-card .card-intro {
    grid-template-columns: minmax(0, 1fr) 155px;
  }
  .welcome-card h1 {
    font-size: 34px;
  }
  .teaching-tiles {
    grid-template-columns: 1fr;
  }
  .tiles-2,
  .tiles-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teaching-tile {
    padding: 18px;
  }
  .teaching-tile p {
    font-size: 14px;
  }
  .entry-gate {
    margin: 5vh 24px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 68px;
  }
  .brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px 4px 4px 0;
  }
  .overall-progress {
    padding: 12px 15px;
    margin-bottom: 14px;
  }
  .overall-progress p {
    font-size: 10px;
  }
  .sidebar {
    padding: 16px 16px 12px;
  }
  .chapter {
    min-width: 200px;
    width: 200px;
    padding: 10px 12px;
  }
  .chapter-heading h2 {
    font-size: 25px;
  }
  .chapter-heading p {
    font-size: 12px;
  }
  .learning-card {
    padding: 29px 22px;
    border-radius: 16px;
  }
  h1,
  .welcome-card h1 {
    font-size: 31px;
  }
  .welcome-card .card-intro {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .welcome-card .lead {
    font-size: 18px;
    margin-bottom: 0;
  }
  .welcome-art {
    height: 165px;
    object-fit: contain;
    margin: 8px 0;
  }
  .teaching-tiles,
  .tiles-2,
  .tiles-4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .teaching-tile {
    padding: 18px 18px 18px 70px;
  }
  .tile-icon {
    position: absolute;
    left: 17px;
    top: 18px;
    width: 34px;
    height: 34px;
  }
  .tile-step {
    top: 60px;
    right: auto;
    left: 28px;
    font-size: 9px;
  }
  .teaching-tile h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .teaching-tile p {
    font-size: 14px;
  }
  .note-sheet figcaption {
    padding: 15px;
    flex-wrap: wrap;
  }
  .note-sheet figcaption > .mini-label {
    display: none;
  }
  .note-row {
    grid-template-columns: 73px minmax(0, 1fr);
    padding: 12px 15px;
    gap: 10px;
  }
  .note-caption {
    padding: 14px 15px;
  }
  .card-position {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .card-mode {
    font-size: 8px;
    padding: 6px 9px;
  }
  .text-block p,
  .text-block li,
  .compare p,
  .exercise p,
  .feedback p {
    font-size: 15px;
  }
  .reflection {
    padding: 17px;
  }
  .navigation {
    flex-wrap: wrap;
  }
  .navigation .primary {
    font-size: 11px;
    padding: 13px 12px;
  }
  .entry-gate {
    display: flex;
    flex-direction: column;
    margin: 20px 16px;
    border-radius: 20px;
  }
  .entry-copy {
    padding: 28px;
  }
  .entry-gate .mini-label {
    margin-top: 35px;
  }
  .entry-gate h1 {
    font-size: 39px;
  }
  .entry-gate .entry-lead {
    font-size: 15px;
  }
  .entry-art {
    padding: 18px 28px;
  }
  .entry-art img {
    width: 230px;
    max-width: 100%;
  }
  .entry-art p {
    font-size: 18px;
    margin-top: 0;
  }
}
.gate:not(.entry-gate) {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 40px #193e3508;
}
@media (max-width: 760px) {
  .gate:not(.entry-gate) {
    margin: 24px 16px;
  }
}
