:root {
  color-scheme: light;
  --paper: #f6f1e9;
  --paper-deep: #efe6da;
  --paper-strong: #fffdf9;
  --mist: rgba(255, 255, 255, 0.68);
  --mist-strong: rgba(255, 255, 255, 0.84);
  --mist-border: rgba(91, 72, 54, 0.12);
  --mist-border-strong: rgba(91, 72, 54, 0.2);
  --ink: #2f2721;
  --ink-soft: #5f5348;
  --ink-faint: #857668;
  --accent: #7d5c48;
  --accent-soft: #ead8ca;
  --sage: #6c8375;
  --gold: #b08a58;
  --rose: #b98273;
  --shadow-soft: 0 18px 50px rgba(71, 54, 39, 0.08);
  --shadow-strong: 0 30px 70px rgba(71, 54, 39, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --site-width: min(1120px, calc(100% - 2rem));
  --reading-width: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #f6f1e9;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: #f6f1e9;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 193, 171, 0.58), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(192, 208, 199, 0.6), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, var(--paper) 54%, #f2e8db 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(125, 92, 72, 0.02) 0,
      rgba(125, 92, 72, 0.02) 1px,
      transparent 1px,
      transparent 28px
    );
  opacity: 0.42;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.26), transparent 58%);
  pointer-events: none;
  z-index: -3;
}

body.modal-open {
  overflow: hidden;
}

.theme-fade-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.34s ease;
  will-change: opacity;
}

.theme-fade-overlay.is-visible {
  opacity: 1;
}

.theme-fade-overlay.is-hiding {
  opacity: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-frame,
.selector-shell {
  width: var(--site-width);
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
  position: relative;
  z-index: 0;
}

.page-frame > *,
.selector-shell > * {
  min-width: 0;
}

.page-stack {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

.page-stack > :first-child {
  margin-top: 0;
}

.page-stack > *,
.page-hero > *,
.artifact-lead > *,
.split-grid > *,
.support-grid > *,
.artifact-grid > *,
.route-grid > *,
.note-grid > *,
.timeline-grid > *,
.featured-grid > *,
.stats-grid > *,
.section-block > *,
.document-head > *,
.artifact-stack > * {
  min-width: 0;
}

.site-header {
  display: grid;
  gap: 0;
  padding: 1rem 1rem 0;
  position: relative;
  z-index: 3;
}

.site-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-home,
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.back-home:hover,
.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--ink);
}

.back-home svg,
.breadcrumb-link svg {
  width: 15px;
  height: 15px;
}

.course-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}

.course-mark-icon,
.icon-badge,
.route-icon,
.micro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(125, 92, 72, 0.11);
  color: var(--accent);
}

.course-mark-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(125, 92, 72, 0.16);
}

.course-mark-icon svg,
.icon-badge svg,
.route-icon svg,
.micro-icon svg {
  width: 18px;
  height: 18px;
}

.course-mark-text {
  display: grid;
  gap: 0.12rem;
}

.course-mark-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.course-mark-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: flex-end;
  padding: 0 0.4rem;
  margin-top: 0.9rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.66rem 0.92rem 0.64rem;
  border-radius: 18px 18px 0 0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(91, 72, 54, 0.09);
  border-bottom-color: rgba(91, 72, 54, 0.14);
  color: var(--ink-soft);
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  margin-bottom: 0.16rem;
  position: relative;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(125, 92, 72, 0.18);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 244, 238, 0.96));
  border-color: rgba(125, 92, 72, 0.28);
  border-bottom-color: transparent;
  color: var(--ink);
  box-shadow: none;
  margin-bottom: 0;
  padding-bottom: 0.78rem;
  z-index: 4;
}

.site-nav a.is-disabled,
.site-nav a.is-disabled:hover,
.site-nav a.is-disabled:focus-visible {
  opacity: 0.42;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(91, 72, 54, 0.06);
  border-bottom-color: rgba(91, 72, 54, 0.08);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.site-nav a svg {
  width: 16px;
  height: 16px;
}

.glass-card,
.note-card,
.stat-card,
.artifact-card,
.quote-card,
.timeline-card,
.document-frame,
.pull-card,
.route-card,
.status-card,
.sheet-topbar,
.artifact-sheet,
.hero-note,
.folder-back,
.folder-pocket-shape,
.folder-shape {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-browser="safari"] .glass-card,
[data-browser="safari"] .note-card,
[data-browser="safari"] .stat-card,
[data-browser="safari"] .artifact-card,
[data-browser="safari"] .quote-card,
[data-browser="safari"] .timeline-card,
[data-browser="safari"] .document-frame,
[data-browser="safari"] .pull-card,
[data-browser="safari"] .route-card,
[data-browser="safari"] .status-card,
[data-browser="safari"] .sheet-topbar,
[data-browser="safari"] .artifact-sheet {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-browser="safari"] body {
  background-color: #f6f1e9;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 193, 171, 0.52), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(192, 208, 199, 0.46), transparent 28%),
    linear-gradient(180deg, #fbf7f1 0%, #f6f1e9 54%, #f2e8db 100%);
}

[data-browser="safari"] body::after {
  background: radial-gradient(circle at center, rgba(246, 241, 233, 0.28), transparent 58%);
}

[data-browser="safari"] .folder-back,
[data-browser="safari"] .folder-pocket-shape,
[data-browser="safari"] .folder-shape {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #14110e;
  --paper-deep: #1a1612;
  --paper-strong: #211c17;
  --mist: rgba(33, 28, 23, 0.8);
  --mist-strong: rgba(41, 35, 29, 0.92);
  --mist-border: rgba(217, 197, 174, 0.12);
  --mist-border-strong: rgba(217, 197, 174, 0.24);
  --ink: #f2e9dc;
  --ink-soft: #d4c3ae;
  --ink-faint: #a9927a;
  --accent: #d3a279;
  --accent-soft: rgba(211, 162, 121, 0.14);
  --sage: #9cb7a8;
  --gold: #ddbc83;
  --rose: #d6a094;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-strong: 0 30px 70px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body {
  background-color: #14110e;
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 91, 64, 0.3), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(78, 100, 90, 0.26), transparent 28%),
    linear-gradient(180deg, #17130f 0%, #14110e 54%, #100d0b 100%);
}

html[data-theme="dark"] body::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(211, 192, 169, 0.016) 0,
      rgba(211, 192, 169, 0.016) 1px,
      transparent 1px,
      transparent 28px
    );
  opacity: 0.22;
}

html[data-theme="dark"] body::after {
  background: radial-gradient(circle at center, rgba(22, 18, 14, 0.45), transparent 58%);
}

html[data-browser="safari"][data-theme="dark"] body {
  background-color: #14110e;
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 91, 64, 0.26), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(78, 100, 90, 0.2), transparent 28%),
    linear-gradient(180deg, #17130f 0%, #14110e 54%, #100d0b 100%);
}

html[data-browser="safari"][data-theme="dark"] body::after {
  background: radial-gradient(circle at center, rgba(20, 17, 14, 0.38), transparent 58%);
}

html[data-theme="dark"] .site-nav a {
  background: rgba(39, 33, 28, 0.84);
  border-color: rgba(217, 197, 174, 0.12);
  border-bottom-color: rgba(217, 197, 174, 0.18);
  color: var(--ink-faint);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible {
  background: rgba(53, 45, 38, 0.94);
  border-color: rgba(211, 162, 121, 0.24);
  color: var(--ink);
}

html[data-theme="dark"] .site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(52, 44, 37, 0.98), rgba(39, 33, 28, 0.98));
}

html[data-theme="dark"] .writing-group-open {
  background: rgba(39, 33, 28, 0.82);
  border-color: rgba(217, 197, 174, 0.12);
  color: rgba(232, 220, 208, 0.8);
}

html[data-theme="dark"] .writing-group-open:hover,
html[data-theme="dark"] .writing-group-open:focus-visible {
  background: rgba(53, 45, 38, 0.96);
  border-color: rgba(211, 162, 121, 0.24);
  color: var(--ink);
}

html[data-theme="dark"] .site-nav a.is-disabled,
html[data-theme="dark"] .site-nav a.is-disabled:hover,
html[data-theme="dark"] .site-nav a.is-disabled:focus-visible {
  opacity: 0.42;
  color: rgba(232, 220, 208, 0.52);
  background: rgba(39, 33, 28, 0.52);
  border-color: rgba(217, 197, 174, 0.08);
  border-bottom-color: rgba(217, 197, 174, 0.1);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

html[data-theme="dark"] .course-mark-icon,
html[data-theme="dark"] .icon-badge,
html[data-theme="dark"] .route-icon,
html[data-theme="dark"] .micro-icon,
html[data-theme="dark"] .folder-icon {
  background: rgba(211, 162, 121, 0.14);
  border-color: rgba(211, 162, 121, 0.18);
  color: var(--accent);
}

html[data-theme="dark"] .meta-chip,
html[data-theme="dark"] .tag-chip,
html[data-theme="dark"] .artifact-chip,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .button-link-secondary,
html[data-theme="dark"] .sheet-expand,
html[data-theme="dark"] .sheet-close,
html[data-theme="dark"] .csv-search-input {
  background: rgba(39, 33, 28, 0.9);
  border-color: rgba(217, 197, 174, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .artifact-sheet {
  background: linear-gradient(180deg, rgba(35, 29, 24, 0.96), rgba(24, 20, 17, 0.98));
  border-color: rgba(217, 197, 174, 0.12);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .button-link {
  background: #d3a279;
  color: #1a120c;
  border-color: rgba(211, 162, 121, 0.32);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .button-link:hover,
html[data-theme="dark"] .button-link:focus-visible {
  background: #e0b189;
}

html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .pull-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .meta-panel,
html[data-theme="dark"] .sheet-topbar,
html[data-theme="dark"] .sheet-viewport-wrap,
html[data-theme="dark"] .status-card {
  background: rgba(35, 30, 25, 0.9);
  border-color: rgba(217, 197, 174, 0.12);
}

html[data-theme="dark"] .artifact-label,
html[data-theme="dark"] .csv-search-label,
html[data-theme="dark"] .sheet-title,
html[data-theme="dark"] .sheet-empty,
html[data-theme="dark"] .sheet-muted,
html[data-theme="dark"] .status-card p {
  color: rgba(232, 220, 208, 0.76);
}

html[data-theme="dark"] .status-card {
  background: linear-gradient(180deg, rgba(35, 29, 24, 0.96), rgba(24, 20, 17, 0.98));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .status-pill {
  background: rgba(156, 183, 168, 0.12);
  color: var(--sage);
}

html[data-theme="dark"] .sheet-viewport-wrap {
  background: linear-gradient(180deg, rgba(42, 35, 30, 0.96), rgba(29, 24, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .sheet-viewport {
  background: rgba(26, 22, 18, 0.96);
}

html[data-theme="dark"] .pdf-embed-shell {
  background: linear-gradient(180deg, rgba(31, 26, 22, 0.98), rgba(23, 19, 16, 0.98));
  border-color: rgba(217, 197, 174, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .pdf-toolbar {
  background: linear-gradient(180deg, rgba(39, 33, 28, 0.92), rgba(30, 25, 21, 0.94));
  border-color: rgba(217, 197, 174, 0.12);
}

html[data-theme="dark"] .pdf-tool-button {
  background: rgba(39, 33, 28, 0.9);
  border-color: rgba(217, 197, 174, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .pdf-tool-button:hover,
html[data-theme="dark"] .pdf-tool-button:focus-visible {
  background: rgba(53, 45, 38, 0.96);
  border-color: rgba(211, 162, 121, 0.24);
}

html[data-theme="dark"] .pdf-tool-button.is-active {
  background: rgba(211, 162, 121, 0.18);
  border-color: rgba(211, 162, 121, 0.3);
  color: var(--ink);
}

html[data-theme="dark"] .pdf-page-indicator {
  color: rgba(232, 220, 208, 0.76);
}

html[data-theme="dark"] .pdf-canvas-wrap {
  background: linear-gradient(180deg, rgba(32, 27, 23, 0.92), rgba(24, 20, 17, 0.96));
}

html[data-theme="dark"] .pdf-canvas {
  filter: invert(1) hue-rotate(180deg);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.34),
    0 2px 12px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .lo-chip-accordion {
  background: rgba(39, 33, 28, 0.82);
  border-color: rgba(217, 197, 174, 0.12);
  color: var(--ink-soft);
}

html[data-theme="dark"] .lo-chip-accordion:hover,
html[data-theme="dark"] .lo-chip-accordion:focus-visible {
  background: rgba(53, 45, 38, 0.94);
  border-color: rgba(211, 162, 121, 0.22);
  color: var(--ink);
}

html[data-theme="dark"] .lo-chip-accordion.active {
  background: rgba(45, 38, 32, 0.96);
  border-color: rgba(211, 162, 121, 0.28);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .pdf-page-status {
  color: rgba(232, 220, 208, 0.66);
}

html[data-theme="dark"] .pdf-loading,
html[data-theme="dark"] .pdf-error {
  background: rgba(24, 20, 17, 0.82);
  color: rgba(232, 220, 208, 0.82);
}

html[data-theme="dark"] .pdf-error a {
  color: var(--accent);
}

html[data-theme="dark"] .pdf-embed {
  background: #1b1713;
}

html[data-theme="dark"] .sheet-table th,
html[data-theme="dark"] .sheet-table td {
  border-right-color: rgba(217, 197, 174, 0.08);
  border-bottom-color: rgba(217, 197, 174, 0.08);
  color: var(--ink-soft);
}

html[data-theme="dark"] .sheet-table {
  background: rgba(28, 23, 19, 0.98);
}

html[data-theme="dark"] .sheet-table th {
  background: rgba(40, 34, 29, 0.98);
  color: var(--ink);
}

html[data-theme="dark"] .sheet-table td {
  background: rgba(34, 29, 24, 0.92);
}

html[data-theme="dark"] .sheet-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .sheet-tooltip {
  background: rgba(41, 34, 29, 0.98);
  border-color: rgba(217, 197, 174, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--ink-soft);
}

html[data-theme="dark"] .csv-search-input::placeholder {
  color: rgba(232, 220, 208, 0.42);
}

html[data-theme="dark"] .sheet-fade-top {
  background: linear-gradient(to bottom, rgba(34, 29, 24, 0.95), rgba(34, 29, 24, 0));
}

html[data-theme="dark"] .sheet-fade-bottom {
  background: linear-gradient(to top, rgba(34, 29, 24, 0.95), rgba(34, 29, 24, 0));
}

html[data-theme="dark"] .sheet-fade-left {
  background: linear-gradient(to right, rgba(34, 29, 24, 0.95), rgba(34, 29, 24, 0));
}

html[data-theme="dark"] .sheet-fade-right {
  background: linear-gradient(to left, rgba(34, 29, 24, 0.95), rgba(34, 29, 24, 0));
}

html[data-theme="dark"] .sheet-overlay {
  background: rgba(8, 7, 6, 0.56);
}

html[data-theme="dark"] .sheet-link {
  color: var(--gold);
  border-bottom-color: rgba(221, 188, 131, 0.28);
}

html[data-theme="dark"] .status-pill {
  background: rgba(156, 183, 168, 0.14);
  color: var(--sage);
}

html[data-theme="dark"] .folder-back {
  background: linear-gradient(180deg, rgba(74, 60, 50, 0.94), rgba(49, 40, 33, 0.82));
  border-color: rgba(217, 197, 174, 0.12);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.34),
    0 10px 16px rgba(214, 182, 146, 0.08);
}

html[data-theme="dark"] .card-surface::before {
  inset: 44px 32px 28px;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(206, 170, 132, 0.24), rgba(206, 170, 132, 0.1) 44%, transparent 66%);
  filter: blur(18px);
  opacity: 0.82;
}

html[data-theme="dark"] .folder-pocket-shape {
  background: linear-gradient(180deg, rgba(64, 53, 44, 0.96), rgba(42, 35, 29, 0.88));
}

html[data-theme="dark"] .folder-shape {
  background: linear-gradient(180deg, rgba(52, 44, 37, 0.98), rgba(34, 29, 24, 0.98));
  border-color: rgba(217, 197, 174, 0.16);
  box-shadow:
    0 30px 58px rgba(0, 0, 0, 0.34),
    0 10px 18px rgba(214, 182, 146, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .reserved-overlay {
  background: rgba(21, 18, 15, 0.66);
}

html[data-theme="dark"] .reserved-overlay span {
  background: rgba(43, 36, 30, 0.82);
  border-color: rgba(217, 197, 174, 0.14);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.glass-card,
.note-card,
.stat-card,
.artifact-card,
.quote-card,
.timeline-card,
.document-frame,
.pull-card,
.route-card,
.status-card,
.artifact-sheet {
  background: linear-gradient(180deg, var(--mist-strong), var(--mist));
  border: 1px solid var(--mist-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-width: 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1.2rem;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  align-items: start;
  margin-top: -1px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.83rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.icon-badge {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(125, 92, 72, 0.14);
}

.page-title,
.section-title,
.artifact-title,
.folder-title,
.selector-intro h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-title {
  margin: 0.55rem 0 0.55rem;
  font-size: clamp(2.7rem, 4.9vw, 4.1rem);
  line-height: 0.92;
  font-weight: 600;
  max-width: 11ch;
}

.page-summary {
  max-width: var(--reading-width);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.64;
  color: var(--ink-soft);
}

.page-end-note {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-faint);
  opacity: 0.9;
}

.meta-row,
.tag-row,
.link-cluster,
.artifact-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.meta-chip,
.tag-chip,
.artifact-chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(91, 72, 54, 0.09);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.tag-chip,
.badge {
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.meta-chip svg,
.artifact-chip svg {
  width: 14px;
  height: 14px;
}

.hero-note,
.pull-card,
.quote-card {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(91, 72, 54, 0.1);
  border-radius: 22px;
}

.hero-note h2,
.document-frame h2,
.artifact-section h2,
.note-card h2,
.section-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.hero-note p,
.quote-card p,
.note-card p,
.document-frame p,
.pull-card p,
.artifact-card p,
.route-card p,
.status-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.hero-note strong,
.pull-card strong,
.quote-card strong,
.artifact-card strong,
.note-card strong {
  color: var(--ink);
}

.section-block {
  display: grid;
  gap: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.section-kicker {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.section-text {
  margin: 0;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.72;
}

.stats-grid,
.featured-grid,
.path-grid,
.split-grid,
.artifact-grid,
.note-grid,
.route-grid,
.timeline-grid {
  display: grid;
  gap: 0.95rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-grid,
.artifact-grid,
.route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

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

.stat-card,
.artifact-card,
.note-card,
.route-card,
.timeline-card,
.status-card {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.is-reserved {
  position: relative;
  overflow: hidden;
}

.reserved-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: inherit;
  background: rgba(246, 241, 233, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5;
}

.reserved-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.74);
  border: 1px solid rgba(91, 72, 54, 0.12);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 14px 32px rgba(71, 54, 39, 0.1);
}

.stat-card-number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  line-height: 0.85;
  color: var(--accent);
}

.stat-card-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.stat-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.route-icon,
.micro-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(125, 92, 72, 0.12);
}

.card-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.artifact-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.artifact-card h3,
.route-card h3,
.note-card h3,
.timeline-card h3,
.status-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 600;
}

.artifact-card p,
.route-card p,
.note-card p,
.timeline-card p,
.status-card p {
  margin: 0;
}

.reflection-feature-card {
  --reflection-card-fade-end: var(--mist);
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.reflection-feature-card__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 0.98;
}

.reflection-feature-card__content {
  position: relative;
  display: grid;
  gap: 0.85rem;
  max-height: 25rem;
  overflow: hidden;
  padding-bottom: 4rem;
}

.reflection-feature-card__content::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--reflection-card-fade-end));
  pointer-events: none;
}

.reflection-feature-card__section-label {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  font-weight: 600;
  color: var(--ink);
}

.reflection-feature-card__section-label + p {
  margin-top: -0.35rem;
}

.reflection-feature-card .card-actions {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
}

.link-cluster > *,
.card-actions > * {
  max-width: 100%;
}

.button-link,
.button-link-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button-link,
.button-link-secondary {
  padding: 0.54rem 0.82rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 38px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.button-link {
  background: var(--accent);
  color: #fff7f0;
  border: 1px solid rgba(125, 92, 72, 0.4);
  box-shadow: 0 10px 20px rgba(125, 92, 72, 0.14);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-1px);
  background: #6d4f3e;
}

.button-link-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(91, 72, 54, 0.12);
}

.button-link-secondary:hover,
.button-link-secondary:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(125, 92, 72, 0.22);
}

.text-link {
  font-weight: 600;
  color: var(--accent);
}

.process-route-grid .button-link {
  min-height: 38px;
  white-space: nowrap;
}

.process-route-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.process-route-grid .route-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.process-route-grid .route-card .button-link {
  margin-top: auto;
}

.button-link svg,
.button-link-secondary svg,
.text-link svg {
  width: 14px;
  height: 14px;
}

.quote-card {
  position: relative;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.6rem;
  line-height: 0.7;
  color: rgba(125, 92, 72, 0.2);
}

.quote-card blockquote {
  margin: 0;
  padding-left: 1.6rem;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
}

.quote-card figcaption {
  margin-top: 0.8rem;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.timeline-list {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(91, 72, 54, 0.1);
}

.timeline-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.timeline-copy strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.timeline-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.lo-outcomes-card .section-sub {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.lo-accordion {
  margin-top: 0.5rem;
  --lo-body-height: 220px;
}

.lo-accordion-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.6rem 0 0.4rem;
}

.lo-chip-accordion {
  appearance: none;
  position: relative;
  border: 1px solid rgba(91, 72, 54, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  font: inherit;
  transition:
    background 0.15s ease,
    border 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease,
    border-radius var(--chip-radius-speed, 0.18s) ease;
}

.lo-chip-accordion:hover,
.lo-chip-accordion:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(125, 92, 72, 0.18);
  color: var(--ink);
}

.lo-chip-accordion.active {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(125, 92, 72, 0.25), 0 12px 28px rgba(71, 54, 39, 0.08);
}

.lo-chip-accordion.opening {
  --chip-radius-speed: 0s;
  border-radius: var(--radius-md);
}

.lo-chip-accordion.collapsing {
  border-radius: var(--radius-md);
}

.lo-chip-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.lo-chip-body {
  font-size: 0.92rem;
  color: inherit;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease;
  text-align: center;
}

.lo-chip-body p {
  margin: 0;
  line-height: 1.58;
}

.lo-chip-accordion.active .lo-chip-body {
  margin-top: 0.35rem;
  max-height: var(--lo-body-height, 220px);
  opacity: 1;
}

@supports (-webkit-touch-callout: none) {
  .lo-chip-accordion {
    -webkit-appearance: none;
  }

  .lo-chip-header {
    line-height: 1.24;
  }

  .lo-chip-body {
    will-change: max-height, opacity;
    transform: translateZ(0);
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }
}

.prose-card,
.document-frame,
.support-card {
  padding: 1rem 1.02rem 1.05rem;
  max-width: 100%;
}

.prose-card p,
.prose-card li,
.document-frame li,
.support-card p,
.support-card li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.prose-card p,
.support-card p {
  margin: 0 0 1rem;
}

.prose-card p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}

.prose-card ul,
.prose-card ol,
.support-card ul,
.support-card ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.artifact-layout {
  display: grid;
  gap: 0.9rem;
}

.artifact-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 0.9rem;
  padding: 1.05rem 1.08rem 1.12rem;
  align-items: start;
}

.artifact-lead--center {
  align-items: center;
}

.artifact-lead--center .meta-panel {
  align-self: center;
}

.closing-reflection-lead {
  grid-template-columns: minmax(0, 1fr);
}

.closing-reflection-lead .page-title {
  max-width: none;
}

.closing-reflection-lead .page-summary {
  max-width: 62ch;
}

.closing-reflection-lead .quick-jump-grid {
  margin-top: 1rem;
  gap: 0.45rem;
}

.closing-reflection-lead .quick-jump-grid .button-link-secondary {
  padding: 0.42rem 0.64rem;
  min-height: 0;
  font-size: 0.81rem;
  line-height: 1.2;
}

.closing-reflection-page .reflection-body,
.closing-reflection-page .reflection-body p,
.closing-reflection-page .reflection-body strong {
  -webkit-user-select: none !important;
  user-select: none !important;
}

.closing-reflection-page a.artifact-inline-link,
.closing-reflection-page a.artifact-reference-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 92, 72, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  vertical-align: baseline;
  margin-left: 0.28rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  -webkit-touch-callout: default;
}

.closing-reflection-page a.artifact-inline-link:hover,
.closing-reflection-page a.artifact-inline-link:focus-visible,
.closing-reflection-page a.artifact-reference-link:hover,
.closing-reflection-page a.artifact-reference-link:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(125, 92, 72, 0.26);
  transform: translateY(-1px);
}

.closing-reflection-page .artifact-reference-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

.closing-reflection-page .artifact-reference-label {
  font-weight: 600;
  color: var(--ink-faint);
}

.closing-reflection-page .artifact-reference-separator {
  color: rgba(125, 92, 72, 0.58);
}

.closing-reflection-page a.artifact-reference-link {
  margin-left: 0;
  padding: 0.18rem 0.46rem;
  font-size: 0.76rem;
}

html[data-theme="dark"] .closing-reflection-page a.artifact-inline-link,
html[data-theme="dark"] .closing-reflection-page a.artifact-reference-link {
  background: rgba(39, 33, 28, 0.9);
  border-color: rgba(217, 197, 174, 0.12);
  color: var(--ink);
}

html[data-theme="dark"] .closing-reflection-page a.artifact-inline-link:hover,
html[data-theme="dark"] .closing-reflection-page a.artifact-inline-link:focus-visible,
html[data-theme="dark"] .closing-reflection-page a.artifact-reference-link:hover,
html[data-theme="dark"] .closing-reflection-page a.artifact-reference-link:focus-visible {
  background: rgba(53, 45, 38, 0.94);
  border-color: rgba(211, 162, 121, 0.24);
  color: var(--ink);
}

.artifact-lead .page-title {
  font-size: clamp(2.3rem, 4vw, 3.45rem);
  max-width: 11ch;
}

.meta-panel {
  padding: 0.98rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(91, 72, 54, 0.1);
  background: rgba(255, 255, 255, 0.52);
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.meta-panel h2 {
  margin: 0;
  font-size: 1.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.meta-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.meta-list div {
  display: grid;
  gap: 0.15rem;
}

.meta-list dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.meta-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.reflect-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.reflect-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(91, 72, 54, 0.09);
}

.reflect-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.reflect-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.document-frame {
  display: grid;
  gap: 0.8rem;
  width: 100%;
  max-width: 100%;
}

.anchor-section {
  scroll-margin-top: 1.3rem;
}

.quick-jump-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quick-jump-grid a {
  flex: 0 1 auto;
}

.reflection-frame {
  gap: 0.9rem;
}

.reflection-frame .document-head p {
  max-width: 72ch;
}

.reflection-body {
  width: 100%;
  max-width: 100%;
}

.reflection-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.74;
  color: var(--ink-soft);
  max-width: 100%;
}

.reflection-body p + p {
  margin-top: 1rem;
}

.artifact-stack .document-frame {
  gap: 0.95rem;
}

.artifact-stack .document-head {
  display: grid;
  justify-content: flex-start;
  gap: 0.75rem;
}

.artifact-stack .document-head > :first-child {
  flex: none;
  width: 100%;
  max-width: 100%;
}

.artifact-stack .document-head > :last-child {
  justify-self: start;
}

.artifact-stack .document-head p {
  max-width: 100%;
}

.artifact-stack .artifact-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.05rem;
}

.document-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.document-head > :first-child {
  flex: 1 1 420px;
}

.document-head > :last-child {
  flex: 0 1 auto;
}

.document-head p {
  max-width: 68ch;
}

.writing-group-card {
  position: relative;
}

.writing-group-open {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(91, 72, 54, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  text-decoration: none;
  z-index: 3;
  transition: opacity 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.writing-group-open:hover,
.writing-group-open:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(125, 92, 72, 0.22);
}

.writing-group-open svg {
  width: 16px;
  height: 16px;
}

.pdf-embed-shell {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(91, 72, 54, 0.12);
  background: linear-gradient(180deg, rgba(249, 244, 238, 0.95), rgba(238, 231, 223, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
}

.pdf-viewer {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.pdf-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: #f8f4ee;
}

.pdf-embed--compact,
.pdf-viewer--compact {
  min-height: 540px;
  height: clamp(540px, 66vh, 880px);
}

.pdf-embed--essay,
.pdf-viewer--essay {
  min-height: 720px;
  height: clamp(720px, 86vh, 1260px);
}

.pdf-embed--tall,
.pdf-viewer--tall {
  min-height: 840px;
  height: clamp(840px, 92vh, 1480px);
}

.course-1102 .pdf-embed--compact,
.course-1102 .pdf-viewer--compact {
  min-height: 620px;
  height: clamp(620px, 74vh, 980px);
}

.course-1102 .pdf-embed--essay,
.course-1102 .pdf-viewer--essay {
  min-height: 820px;
  height: clamp(820px, 90vh, 1380px);
}

.course-1102 .pdf-embed--tall,
.course-1102 .pdf-viewer--tall {
  min-height: 980px;
  height: clamp(980px, 95vh, 1560px);
}

.pdf-embed--wide,
.pdf-viewer--wide {
  min-height: 560px;
  height: clamp(560px, 76vh, 940px);
}

.course-1102 .pdf-embed--ma1-main,
.course-1102 .pdf-viewer--ma1-main {
  min-height: 900px;
  height: clamp(900px, 88vh, 1460px);
}

.course-1102 .pdf-embed--ma1-support,
.course-1102 .pdf-viewer--ma1-support {
  min-height: 700px;
  height: clamp(700px, 78vh, 1060px);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.78rem 0.9rem 0.72rem;
  border-bottom: 1px solid rgba(91, 72, 54, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.72), rgba(244, 236, 228, 0.74));
}

.pdf-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pdf-tool-button {
  appearance: none;
  border: 1px solid rgba(91, 72, 54, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border-radius: 999px;
  min-height: 32px;
  padding: 0.42rem 0.72rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.pdf-tool-button:hover,
.pdf-tool-button:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(125, 92, 72, 0.22);
}

.pdf-tool-button.is-active {
  background: rgba(125, 92, 72, 0.14);
  border-color: rgba(125, 92, 72, 0.28);
  color: var(--ink);
}

.pdf-tool-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.pdf-page-indicator {
  min-width: 132px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pdf-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0.9rem;
  overflow: auto;
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.74), rgba(238, 231, 223, 0.8));
}

.pdf-viewer--wide .pdf-canvas-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.pdf-stack {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  justify-items: center;
  min-width: 0;
}

.pdf-viewer--wide .pdf-stack {
  display: block;
  width: max-content;
  min-width: 100%;
}

.pdf-stack-page {
  width: 100%;
  display: grid;
  justify-items: center;
}

.pdf-viewer--wide .pdf-stack-page {
  width: max-content;
  justify-items: start;
}

.pdf-stack-page.is-rendered .pdf-page-status {
  display: none;
}

.pdf-canvas {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    0 18px 35px rgba(71, 54, 39, 0.08),
    0 2px 10px rgba(71, 54, 39, 0.08);
}

.pdf-page-status {
  display: grid;
  place-items: center;
  min-height: 160px;
  width: 100%;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.pdf-loading,
.pdf-error {
  position: absolute;
  inset: 0.9rem;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 14px;
  background: rgba(246, 241, 233, 0.8);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pdf-error {
  gap: 0.45rem;
  align-content: center;
}

.pdf-error p {
  margin: 0;
}

.pdf-error a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
}

.pdf-viewer:not(.is-loading) .pdf-loading,
.pdf-viewer:not(.is-error) .pdf-error[hidden] {
  display: none;
}

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

.artifact-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 244, 238, 0.9));
  border: 1px solid rgba(91, 72, 54, 0.12);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.artifact-head,
.sheet-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.artifact-stack {
  display: grid;
  gap: 0.95rem;
}

.artifact-label,
.csv-search-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.csv-search-input {
  flex: 1;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid rgba(91, 72, 54, 0.14);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.68rem 0.92rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.csv-search-input::placeholder {
  color: rgba(95, 83, 72, 0.62);
}

.sheet-expand,
.sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 72, 54, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.sheet-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(91, 72, 54, 0.1);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 16px;
}

.sheet-title {
  font-weight: 600;
}

.sheet-viewport-wrap {
  height: clamp(500px, 72vh, 900px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(91, 72, 54, 0.1);
  background: rgba(255, 255, 255, 0.55);
  position: relative;
}

.artifact-sheet--preview .sheet-viewport-wrap {
  height: clamp(380px, 52vh, 540px);
}

.sheet-viewport {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 92, 72, 0.32) transparent;
  cursor: zoom-in;
}

.sheet-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.sheet-viewport::-webkit-scrollbar-thumb {
  background: rgba(125, 92, 72, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sheet-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.artifact-sheet.is-expanded .sheet-viewport {
  cursor: default;
}

.sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.sheet-table col.sheet-col-compact {
  width: clamp(84px, 8vw, 118px);
}

.sheet-table col.sheet-col-short {
  width: clamp(128px, 12vw, 172px);
}

.sheet-table col.sheet-col-label {
  width: clamp(150px, 15vw, 210px);
}

.sheet-table col.sheet-col-medium {
  width: clamp(190px, 18vw, 250px);
}

.sheet-table col.sheet-col-long {
  width: clamp(250px, 25vw, 340px);
}

.sheet-table th,
.sheet-table td {
  padding: 0.58rem 0.72rem;
  border-right: 1px solid rgba(91, 72, 54, 0.08);
  border-bottom: 1px solid rgba(91, 72, 54, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
  line-height: 1.36;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.sheet-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(247, 241, 233, 0.96);
  color: var(--ink);
  font-weight: 600;
}

.sheet-table tbody tr:nth-child(even) td {
  background: rgba(125, 92, 72, 0.03);
}

.sheet-table th:last-child,
.sheet-table td:last-child,
.sheet-table col:last-child {
  display: none;
}

.sheet-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sheet-header-text {
  min-width: 0;
}

.sheet-info {
  appearance: none;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 92, 72, 0.12);
  color: var(--accent);
  cursor: pointer;
}

.sheet-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-width: min(360px, 70vw);
  padding: 0.75rem 0.82rem;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(91, 72, 54, 0.14);
  box-shadow: 0 18px 40px rgba(71, 54, 39, 0.12);
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
}

.sheet-info:hover + .sheet-tooltip,
.sheet-info:focus + .sheet-tooltip,
.sheet-info.is-open + .sheet-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.sheet-empty {
  padding: 1rem;
  color: var(--ink-faint);
}

.sheet-cell {
  display: block;
}

.sheet-cell-status {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

.sheet-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 92, 72, 0.24);
}

.sheet-link:hover,
.sheet-link:focus-visible {
  border-bottom-color: rgba(125, 92, 72, 0.56);
}

.sheet-muted {
  color: var(--ink-faint);
}

.sheet-fade {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.sheet-fade-top,
.sheet-fade-bottom {
  left: 0;
  right: 0;
  height: 32px;
}

.sheet-fade-left,
.sheet-fade-right {
  top: 0;
  bottom: 0;
  width: 32px;
}

.sheet-fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(247, 241, 233, 0.9), rgba(247, 241, 233, 0));
}

.sheet-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(247, 241, 233, 0.9), rgba(247, 241, 233, 0));
}

.sheet-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(247, 241, 233, 0.9), rgba(247, 241, 233, 0));
}

.sheet-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(247, 241, 233, 0.9), rgba(247, 241, 233, 0));
}

.sheet-viewport-wrap[data-fade-top="1"] .sheet-fade-top,
.sheet-viewport-wrap[data-fade-right="1"] .sheet-fade-right,
.sheet-viewport-wrap[data-fade-bottom="1"] .sheet-fade-bottom,
.sheet-viewport-wrap[data-fade-left="1"] .sheet-fade-left {
  opacity: 1;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51, 39, 28, 0.22);
  backdrop-filter: blur(6px);
  z-index: 30;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.sheet-overlay.is-visible {
  opacity: 1;
}

.artifact-sheet.is-expanded {
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 234, 0.98));
  z-index: 31;
}

.artifact-sheet.is-expanded .sheet-topbar {
  display: flex;
}

.artifact-sheet.is-expanded .sheet-expand {
  display: none;
}

.artifact-sheet.is-expanded .sheet-viewport-wrap {
  flex: 1;
  height: auto;
  min-height: 0;
}

.sheet-placeholder {
  border-radius: 18px;
}

.status-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 236, 227, 0.94));
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.status-pill {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(108, 131, 117, 0.12);
  color: var(--sage);
  font-size: 0.85rem;
}

.selector-body {
  min-height: 100vh;
  display: block;
}

.selector-shell {
  padding-top: 2.6rem;
  padding-bottom: 2.2rem;
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.selector-intro {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.selector-intro h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5rem);
  line-height: 0.92;
  font-weight: 600;
}

.selector-intro p {
  margin: 0 auto;
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  perspective: 1400px;
  position: relative;
  z-index: 1;
  align-items: start;
}

.card {
  display: block;
  min-height: 430px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.card-surface {
  position: relative;
  min-height: 430px;
  padding: 0.45rem 0.45rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1);
  overflow: visible;
  isolation: isolate;
}

.card-surface::before {
  content: "";
  position: absolute;
  inset: 42px 28px 24px;
  border-radius: 44px;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(82, 63, 47, 0.34), rgba(82, 63, 47, 0.16) 42%, transparent 64%);
  filter: blur(16px);
  opacity: 0.88;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.folder-front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.55rem 1.78rem 1.55rem;
  z-index: 2;
  pointer-events: none;
}

.folder-back,
.folder-pocket-shape,
.folder-shape {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("/assets/folder-mask.svg");
  mask-image: url("/assets/folder-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

.folder-back {
  transform: translate(12px, 12px);
  background: linear-gradient(180deg, rgba(224, 208, 190, 0.9), rgba(204, 188, 171, 0.68));
  border: 1px solid rgba(125, 92, 72, 0.1);
  box-shadow:
    0 24px 42px rgba(71, 54, 39, 0.16),
    0 8px 18px rgba(109, 84, 61, 0.12);
  opacity: 0.94;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.35s ease, opacity 0.35s ease;
}

.folder-pocket-shape {
  transform: translate(5px, 7px);
  background: linear-gradient(180deg, rgba(247, 241, 233, 0.92), rgba(225, 212, 198, 0.82));
  z-index: 1;
  opacity: 0.96;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1), opacity 0.35s ease;
}

.folder-shape {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(238, 230, 220, 0.96));
  box-shadow:
    0 26px 48px rgba(71, 54, 39, 0.18),
    0 10px 20px rgba(109, 84, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(125, 92, 72, 0.15);
  z-index: 1;
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.folder-content {
  position: relative;
  z-index: 3;
  width: min(58%, 288px);
  min-height: auto;
  padding-top: 0.18rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: flex-start;
  pointer-events: auto;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.folder-heading {
  display: block;
}

.folder-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(125, 92, 72, 0.11);
  border: 1px solid rgba(125, 92, 72, 0.14);
}

.folder-icon svg {
  width: 18px;
  height: 18px;
}

.folder-heading .card-label {
  margin: 0 0 0.55rem 0.85rem;
}

.folder-title-row {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding-inline: 0.6rem;
  transform: translateY(2px);
}

.folder-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.folder-summary {
  width: 100%;
  min-height: 146px;
  padding: 0.5rem 0.7rem 0 0.7rem;
}

.folder-desc {
  margin: 0;
  max-width: none;
  color: var(--ink-soft);
  line-height: 1.56;
  font-size: 1rem;
}

.folder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card:hover .card-surface,
.card:focus-visible .card-surface {
  transform: translateY(-6px) rotateX(5deg);
}

.card:hover .card-surface::before,
.card:focus-visible .card-surface::before {
  opacity: 1;
  transform: scale(1.04);
}

.card:hover .folder-back,
.card:focus-visible .folder-back {
  transform: translate(22px, 19px) rotate(-1.4deg);
  box-shadow:
    0 30px 56px rgba(71, 54, 39, 0.22),
    0 10px 16px rgba(109, 84, 61, 0.16);
}

.card:hover .folder-pocket-shape,
.card:focus-visible .folder-pocket-shape {
  transform: translate(11px, 0);
  opacity: 1;
}

.card:hover .folder-shape,
.card:focus-visible .folder-shape {
  transform: translateY(-14px);
  box-shadow:
    0 34px 62px rgba(71, 54, 39, 0.22),
    0 10px 16px rgba(109, 84, 61, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.card:hover .folder-content,
.card:focus-visible .folder-content {
  transform: translateY(-10px);
}

.selector-footer {
  margin-top: 0.2rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(91, 72, 54, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 232, 222, 0.98));
  color: var(--ink);
  box-shadow:
    0 16px 36px rgba(71, 54, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 92, 72, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 237, 227, 1));
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle {
  background: linear-gradient(180deg, rgba(48, 40, 33, 0.98), rgba(28, 24, 20, 0.98));
  border-color: rgba(217, 197, 174, 0.22);
  color: var(--ink);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card-surface,
  .site-nav a,
  .button-link,
  .button-link-secondary {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .page-hero,
  .artifact-lead,
  .split-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .artifact-grid,
  .route-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-frame,
  .selector-shell {
    width: min(100% - 1rem, 100%);
  }

  .site-header {
    padding-inline: 0.4rem;
  }

  .note-grid,
  .timeline-grid,
  .reflect-strip,
  .featured-grid,
  .artifact-grid,
  .route-grid,
  .stats-grid,
  .folder-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
  }

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

  .selector-intro h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .card {
    min-height: 390px;
  }

  .card-surface {
    min-height: 390px;
  }
}

@media (max-width: 640px) {
  .page-frame,
  .selector-shell {
    width: calc(100% - 0.7rem);
  }

  .page-frame {
    padding-top: 0.7rem;
  }

  .page-hero,
  .glass-card,
  .artifact-card,
  .note-card,
  .route-card,
  .status-card,
  .quote-card,
  .timeline-card,
  .document-frame,
  .artifact-sheet {
    border-radius: 22px;
  }

  .page-title {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px 16px 0 0;
  }

  .page-stack {
    margin-top: 0;
  }

  .folder-front {
    padding: 2.35rem 1.2rem 1rem;
  }

  .folder-content {
    width: min(76%, 100%);
    padding: 0;
  }

  .theme-toggle {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 54px;
    height: 54px;
  }

  .meta-chip,
  .tag-chip,
  .artifact-chip,
  .badge {
    width: 100%;
    justify-content: flex-start;
  }

  .csv-search-input {
    min-width: 100%;
  }

  .pdf-embed--compact,
  .pdf-viewer--compact {
    min-height: 420px;
    height: 60vh;
  }

  .pdf-embed--essay,
  .pdf-embed--tall,
  .pdf-embed--wide,
  .pdf-viewer--essay,
  .pdf-viewer--tall,
  .pdf-viewer--wide {
    min-height: 520px;
    height: 72vh;
  }

  .course-1102 .pdf-embed--compact,
  .course-1102 .pdf-viewer--compact {
    min-height: 500px;
    height: 66vh;
  }

  .course-1102 .pdf-embed--essay,
  .course-1102 .pdf-embed--tall,
  .course-1102 .pdf-embed--wide,
  .course-1102 .pdf-viewer--essay,
  .course-1102 .pdf-viewer--tall,
  .course-1102 .pdf-viewer--wide {
    min-height: 620px;
    height: 76vh;
  }
}
