:root {
  --background: #fffdf5;
  --foreground: #1e293b;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #8b5cf6;
  --accent-foreground: #ffffff;
  --secondary: #f472b6;
  --tertiary: #fbbf24;
  --quaternary: #34d399;
  --card: #ffffff;
  --border: #1e293b;
  --soft-border: #dbe4ef;
  --shadow-hard: 4px 4px 0 0 #1e293b;
  --shadow-soft: 8px 8px 0 0 rgba(203, 213, 225, 0.7);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --container: 1120px;
  --transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(251, 191, 36, 0.18) 0 12%, transparent 12%),
    radial-gradient(circle at 88% 14%, rgba(244, 114, 182, 0.15) 0 10%, transparent 10%),
    linear-gradient(135deg, rgba(52, 211, 153, 0.08), transparent 24%),
    var(--background);
  background-size: 320px 320px, 280px 280px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(30, 41, 59, 0.08) 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  opacity: 0.32;
}

body,
button,
input,
select,
textarea,
table {
  font: inherit;
}

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

button {
  cursor: pointer;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.site-header,
.page-hero,
.section-panel,
.unit-card,
.note-card,
.example-card,
.flashcard-card,
.empty-panel {
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-soft);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-hard);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.site-brand-text {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--muted-foreground);
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.is-current {
  border-color: var(--border);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-hard);
  transform: translate(-2px, -2px);
}

.page-main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.page-hero,
.section-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
}

.page-hero {
  padding: 28px;
  box-shadow: 10px 10px 0 0 rgba(244, 114, 182, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 32%);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -26px;
  width: 180px;
  height: 92px;
  border: 2px solid rgba(30, 41, 59, 0.16);
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(45deg, rgba(52, 211, 153, 0.22) 0 25%, transparent 25% 50%, rgba(139, 92, 246, 0.18) 50% 75%, transparent 75%),
    rgba(255, 255, 255, 0.7);
  background-size: 22px 22px;
}

.page-hero-compact {
  padding: 24px 28px;
}

.page-kicker,
.section-kicker,
.flashcard-label,
.status-chip,
.meta-label,
.answer-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.page-kicker,
.section-kicker,
.status-chip {
  border: 2px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

.status-ready {
  background: rgba(52, 211, 153, 0.18);
}

.page-title,
.section-title,
.card-title,
.flashcard-term {
  margin: 0;
  font-family: "Outfit", "Noto Serif SC", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.page-title {
  max-width: 16ch;
  margin-top: 16px;
  font-family: "Bricolage Grotesque", "Noto Serif SC", serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 3px 3px 0 rgba(251, 191, 36, 0.24);
}

.page-lead,
.section-desc,
.card-copy,
.breadcrumb,
.ipa-text,
.meta-value,
.flashcard-ipa {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.page-lead {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 1.02rem;
}

.hero-actions,
.card-actions,
.flashcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: var(--transition);
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button:active {
  transform: translate(2px, 2px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-hard);
}

.button-secondary {
  background: var(--card);
}

.button-secondary:hover {
  background: rgba(251, 191, 36, 0.2);
  box-shadow: var(--shadow-hard);
}

.section-panel {
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

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

.section-title {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.06;
}

.section-desc {
  max-width: 50ch;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.unit-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.unit-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.unit-card-top,
.unit-card-meta,
.breadcrumb,
.example-head,
.example-grid,
.flashcard-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  display: grid;
  gap: 14px;
}

.overview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.unit-card-top {
  align-items: center;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-weight: 700;
}

.card-title {
  font-size: 1.45rem;
  line-height: 1.1;
}

.unit-card-meta {
  gap: 8px;
}

.unit-switcher-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.unit-switcher-label {
  flex: none;
  margin: 0;
  font-weight: 700;
  color: var(--muted-foreground);
}

.unit-switcher-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.unit-switcher-list::-webkit-scrollbar {
  display: none;
}

.unit-switcher-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-full);
  background: rgba(248, 250, 252, 0.96);
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}

.unit-switcher-chip:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-hard);
  transform: translate(-2px, -2px);
}

.unit-switcher-chip.is-current {
  border-color: var(--border);
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-hard);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-full);
  background: rgba(248, 250, 252, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.breadcrumb {
  align-items: center;
  font-size: 0.92rem;
}

.breadcrumb a {
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
}

thead th {
  background: rgba(241, 245, 249, 0.9);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
}

tbody tr + tr {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.table-select {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--foreground);
  transition: var(--transition);
}

.table-select:hover {
  color: var(--accent);
}

.table-select.is-selected {
  color: var(--accent);
}

.table-empty {
  color: var(--muted-foreground);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.note-card,
.example-card,
.flashcard-card,
.empty-panel {
  border-radius: var(--radius-lg);
}

.note-card {
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.note-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.98));
}

.note-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.14), rgba(255, 255, 255, 0.98));
}

.card-copy {
  margin-top: 10px;
}

.detail-examples-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 14px;
}

.example-list {
  display: grid;
  gap: 16px;
}

.example-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.example-card {
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.example-head {
  align-items: start;
  justify-content: space-between;
}

.example-main {
  min-width: 0;
}

.ipa-text {
  margin-top: 8px;
  font-size: 0.95rem;
}

.audio-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-hard);
  transition: var(--transition);
}

.audio-button:hover,
.audio-button.is-playing {
  transform: translate(-2px, -2px) rotate(-4deg);
}

.audio-button svg {
  width: 26px;
  height: 26px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.example-meta {
  padding: 14px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.94);
}

.meta-label {
  padding: 0;
  min-height: 0;
}

.meta-value {
  margin-top: 8px;
  font-weight: 700;
}

.flashcard-shell {
  display: grid;
  gap: 18px;
}

.flashcard-card {
  padding: 24px;
  box-shadow: 10px 10px 0 0 rgba(244, 114, 182, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 28%);
}

.flashcard-front {
  display: grid;
  gap: 10px;
}

.flashcard-label {
  justify-content: start;
  padding: 0;
  min-height: 0;
}

.flashcard-term {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.flashcard-ipa {
  font-size: 1rem;
}

.flashcard-answer {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.answer-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
  padding: 16px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
}

.answer-value {
  display: block;
  margin-top: 8px;
  min-height: 56px;
  font-size: 1.1rem;
  line-height: 1.65;
}

.answer-value.is-empty {
  color: transparent;
  user-select: none;
}

.empty-panel {
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.section-panel.is-empty {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.final-hero .page-title {
  max-width: none;
}

.final-nav-panel {
  padding: 14px;
}

.final-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.final-section {
  scroll-margin-top: 18px;
}

.final-section.is-pending {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.16) 0 10px, transparent 10px 20px);
}

.final-subsection-stack {
  display: grid;
  gap: 24px;
}

.final-subsection {
  display: grid;
  gap: 16px;
}

.final-subsection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.match-list,
.question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.drag-match-workspace,
.drag-fill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.drag-question-column,
.drag-question-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.drag-column-title {
  margin: 0;
  font-family: "Outfit", "Noto Serif SC", system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.answer-bank {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 32px);
  padding: 16px;
  overflow: auto;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.97);
  box-shadow: var(--shadow-soft);
}

.answer-bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.answer-token-list {
  display: grid;
  gap: 9px;
}

#fill-word-bank .answer-token-list {
  display: flex;
  flex-wrap: wrap;
}

.answer-token {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: var(--transition);
}

.answer-token:hover,
.answer-token.is-selected {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 3px 3px 0 0 var(--border);
  transform: translate(-1px, -1px);
}

.answer-token.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.drag-ghost {
  position: fixed;
  z-index: 1000;
  width: min(320px, calc(100vw - 28px));
  pointer-events: none;
  opacity: 0.94;
  box-shadow: var(--shadow-hard);
  transform: rotate(-1deg);
}

#fill-word-bank .answer-token {
  width: auto;
}

.drag-question-card {
  align-content: start;
}

.drop-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  background: rgba(241, 245, 249, 0.72);
  transition: var(--transition);
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-drag-over {
  border-color: var(--accent);
  outline: none;
  background: rgba(139, 92, 246, 0.1);
}

.drop-zone.has-answer {
  border-style: solid;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.drop-zone .answer-token {
  width: auto;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.drop-placeholder,
.bank-empty {
  margin: 0;
  color: var(--muted-foreground);
  font-weight: 700;
}

.clear-assignment {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--foreground);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.clear-assignment:hover {
  background: rgba(244, 114, 182, 0.18);
}

.answer-bank.is-drag-over {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.short-answer-list {
  display: grid;
  gap: 18px;
}

.practice-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.12), transparent 28%);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.practice-card.is-correct {
  border-color: #15803d;
  box-shadow: 6px 6px 0 0 rgba(21, 128, 61, 0.24);
}

.practice-card.is-incorrect {
  border-color: #e11d48;
  box-shadow: 6px 6px 0 0 rgba(225, 29, 72, 0.18);
}

.practice-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.question-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.28);
  box-shadow: 3px 3px 0 0 var(--border);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
}

.field-label {
  display: block;
  margin: 0;
  font-weight: 800;
  color: var(--foreground);
}

select,
.text-input,
.text-area {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

select,
.text-input {
  min-height: 48px;
  padding: 10px 12px;
}

.text-area {
  min-height: 132px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}

.question-text {
  margin: 0;
  color: var(--foreground);
  line-height: 1.75;
}

.question-text-en {
  font-weight: 700;
}

.blank-slot {
  display: inline-flex;
  min-width: 9ch;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 2px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.choice-option input {
  margin-top: 4px;
}

.choice-option.is-correct-choice {
  border-color: #15803d;
  background: rgba(52, 211, 153, 0.18);
}

.choice-option.is-selected-incorrect {
  border-color: #e11d48;
  background: rgba(244, 114, 182, 0.14);
}

.answer-reveal {
  display: none;
  gap: 8px;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.16);
}

.answers-visible .answer-reveal {
  display: grid;
}

.answer-copy {
  margin: 0;
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.75;
}

.answer-zh {
  color: var(--muted-foreground);
}

.short-answer-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.practice-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.practice-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.short-answer-workspace {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .unit-grid,
  .overview-grid,
  .note-grid,
  .example-list-grid,
  .example-grid,
  .match-list,
  .question-list,
  .drag-match-workspace,
  .drag-fill-layout,
  .short-answer-layout {
    grid-template-columns: 1fr;
  }

  .answer-bank {
    position: sticky;
    top: 8px;
    order: -1;
    z-index: 5;
    max-height: 42vh;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 16px, var(--container));
    padding-top: 12px;
  }

  .site-header,
  .page-hero,
  .section-panel {
    padding: 18px;
  }

  .site-header,
  .site-nav,
  .hero-actions,
  .card-actions,
  .flashcard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    justify-content: center;
  }

  .page-title {
    max-width: none;
  }

  .detail-examples-head,
  .overview-card-head,
  .final-subsection-head {
    align-items: start;
    flex-direction: column;
  }

  .page-hero::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
