:root {
  --ink:#203044;
  --muted:#526276;
  --paper:#f7f8fa;
  --line:#dfe5ec;
  --accent:#245aba;
  --tint:#edf3ff;
  --sidebar:288px;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  line-height:1.65;
}
.blue {
  --accent:#245aba;
  --tint:#edf3ff;
}
.intro {
  --accent:#203044;
  --tint:#edf1f5;
}
.teal {
  --accent:#087369;
  --tint:#eaf7f3;
}
.purple {
  --accent:#7044b0;
  --tint:#f3edfb;
}
.orange {
  --accent:#a74817;
  --tint:#fff1e7;
}
a {
  color:var(--accent);
  text-underline-offset:3px;
}
@media (hover: hover) {
a:hover {
  text-decoration-thickness:2px;
}
}
a,button,summary {
  -webkit-tap-highlight-color:transparent;
}
:focus-visible {
  outline:3px solid #bd5907;
  outline-offset:4px;
  border-radius:3px;
}
.skip-link {
  position:fixed;
  top:-100px;
  left:1rem;
  padding:.7rem 1rem;
  background:#fff;
  z-index:10;
}
.skip-link:focus {
  top:1rem;
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  overflow-y:auto;
  background:#fff;
  border-right:1px solid var(--line);
  padding:25px 18px 18px;
  scrollbar-width:thin;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  text-decoration:none;
  font-size:25px;
  font-weight:780;
  line-height:1.3;
  padding:0 10px 23px;
}
.brand-sub {
  display:block;
  font-size:9px;
  letter-spacing:1.55px;
  color:var(--muted);
  margin-top:4px;
}
.card-menu>summary {
  display:block;
}
.js .card-menu>summary {
  display:none;
}
.card-menu ol {
  list-style:none;
  margin:0;
  padding:0;
}
.nav-group {
  font-size:10px;
  letter-spacing:1.35px;
  text-transform:uppercase;
  font-weight:750;
  color:#657080;
  padding:17px 12px 7px;
}
.card-link {
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 10px;
  margin:2px 0;
  color:#435168;
  text-decoration:none;
  font-size:12px;
  font-weight:570;
  border-radius:9px;
  border:1px solid transparent;
  line-height:1.4;
  min-height:39px;
}
@media (hover: hover) {
.card-link:hover {
  background:var(--tint);
  color:var(--accent);
}
}
.card-link[aria-current] {
  background:var(--tint);
  border-color:var(--accent);
  color:var(--accent);
  font-weight:750;
}
.card-number {
  font-size:10px;
  letter-spacing:.5px;
  background:var(--tint);
  color:var(--accent);
  width:27px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:7px;
  flex-shrink:0;
  font-variant-numeric:tabular-nums;
}
.card-link[aria-current] .card-number {
  background:var(--accent);
  color:white;
}
main {
  margin-left:var(--sidebar);
  max-width:1230px;
  padding:48px clamp(24px,4vw,66px) 20px;
}
.page-header {
  position:relative;
  margin-bottom:26px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.8px;
  font-weight:780;
  color:var(--accent);
  margin:0 0 12px;
}
h1 {
  font-size:clamp(28px,3.2vw,43px);
  line-height:1.17;
  letter-spacing:-1.4px;
  margin:0 0 12px;
  font-weight:780;
}
h2 {
  font-size:21px;
  letter-spacing:-.45px;
  line-height:1.3;
  margin:30px 0 14px;
}
h2:first-child {
  margin-top:0;
}
h3 {
  font-size:17px;
  line-height:1.4;
}
.subtitle {
  color:var(--muted);
  font-size:16px;
  margin:0 0 14px;
}
.study-tag {
  display:inline-block;
  font-size:10px;
  font-weight:650;
  padding:4px 10px;
  border-radius:20px;
  background:var(--tint);
  color:var(--accent);
}
.tabs {
  display:flex;
  gap:5px;
  border-bottom:1px solid var(--line);
  margin-bottom:23px;
}
.tabs a {
  padding:11px 22px 13px;
  text-decoration:none;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  border-bottom:3px solid transparent;
  margin-bottom:-1px;
}
.tabs a[aria-current] {
  border-color:var(--accent);
  color:var(--accent);
}
@media (hover: hover) {
.tabs a:hover {
  background:var(--tint);
  border-radius:8px 8px 0 0;
}
}
.content {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:30px 34px;
  box-shadow:0 5px 20px #22365204;
  font-size:14px;
  min-width:0;
}
.content>p:first-child {
  margin-top:0;
}
p {
  margin:0 0 16px;
}
p:last-child {
  margin-bottom:0;
}
.table-wrap {
  overflow-x:auto;
  margin:24px 0;
  border:1px solid var(--line);
  border-radius:10px;
  max-width:100%;
}
.table-wrap:first-child {
  margin-top:0;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  text-align:left;
  line-height:1.55;
}
caption {
  text-align:left;
  font-size:14px;
  font-weight:750;
  padding:14px 17px;
  color:var(--accent);
  background:var(--tint);
}
th,td {
  padding:11px 15px;
  vertical-align:top;
  border-top:1px solid var(--line);
  overflow-wrap:break-word;
}
thead th {
  font-size:11px;
  font-weight:750;
  color:#59677a;
  background:#fafbfd;
}
tbody th {
  font-weight:620;
}
tbody tr:nth-child(even) {
  background:#fcfcfd;
}
th:first-child {
  min-width:110px;
}
td {
  min-width:90px;
}
.note {
  border-left:3px solid var(--accent);
  border-radius:0 9px 9px 0;
  background:var(--tint);
  padding:17px 19px;
  margin:24px 0;
}
.note>strong {
  display:block;
  color:var(--accent);
  font-size:10px;
  letter-spacing:1.3px;
  text-transform:uppercase;
  margin-bottom:7px;
}
.note p {
  font-size:13px;
  line-height:1.75;
}
.stem {
  color:#245aba;
  font-weight:700;
}
.ending {
  color:#a74817;
  font-weight:700;
}
.dialogue {
  border-left:2px solid var(--line);
  padding:3px 0 3px 17px;
  margin:17px 0;
}
.speaker {
  text-transform:uppercase;
  letter-spacing:1.2px;
  font-size:10px;
  color:var(--accent);
  font-weight:750;
}
.dialogue p[lang] {
  font-size:16px;
  font-weight:550;
  margin:4px 0;
}
.translation,.muted {
  color:var(--muted);
  font-size:13px;
}
.question {
  padding:19px 0;
  border-top:1px solid var(--line);
}
.question>p {
  font-weight:600;
  margin-bottom:12px;
}
.q-number {
  display:inline-grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:var(--tint);
  color:var(--accent);
  font-size:11px;
  margin-right:7px;
}
summary {
  cursor:pointer;
  font-weight:650;
  color:var(--accent);
  font-size:12px;
  min-height:28px;
}
.answer {
  background:var(--tint);
  border-radius:8px;
  padding:14px 16px;
  margin-top:8px;
  font-size:14px;
}
.sources {
  padding:21px 3px;
}
.sources>span {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.3px;
  color:var(--muted);
  font-weight:700;
}
.sources>div {
  display:flex;
  flex-wrap:wrap;
  gap:7px 15px;
  margin-top:6px;
}
.sources a {
  font-size:11px;
}
.pagination {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding:22px 0;
}
.pagination a {
  max-width:48%;
  text-decoration:none;
}
.pagination span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:4px;
}
.pagination strong {
  display:block;
  font-size:12px;
  line-height:1.5;
}
.next {
  text-align:right;
}
.page-foot {
  font-size:10px;
  color:var(--muted);
  text-align:center;
  margin:15px 0 0;
}
.page-foot span {
  margin-left:5px;
}
.video {
  width:100%;
  aspect-ratio:16/9;
  border:0;
  border-radius:10px;
  background:#172435;
  display:block;
}
.video-section {
  margin:20px 0 30px;
}
.watch-link {
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  font-weight:650;
}
.focus-list {
  padding-left:20px;
}
.focus-list li {
  padding:4px 0;
}
.empty-video {
  background:var(--tint);
  border:1px dashed var(--accent);
  border-radius:12px;
  padding:36px 20px;
  text-align:center;
  margin:20px 0 30px;
}
.empty-icon {
  font-size:36px;
  color:var(--accent);
}
.empty-video h3 {
  margin:3px 0 7px;
}
.empty-video p {
  color:var(--muted);
}
.button {
  display:inline-block;
  border-radius:8px;
  padding:10px 16px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:650;
}
figure {
  margin:24px 0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:15px;
}
figcaption {
  font-size:11px;
  text-align:center;
  margin-top:12px;
  color:var(--muted);
}
.how-to {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:27px 0;
}
.how-to>div {
  background:var(--paper);
  border-radius:9px;
  padding:15px;
}
.how-to span {
  color:var(--accent);
  font-size:10px;
  margin-right:8px;
}
.how-to strong {
  font-size:12px;
}
.how-to p {
  font-size:11px;
  color:var(--muted);
  margin:7px 0 0;
}
.card-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.tile {
  display:grid;
  grid-template-columns:32px 1fr;
  column-gap:10px;
  text-decoration:none;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:11px;
  padding:18px;
  background:linear-gradient(125deg,var(--tint),#fff 60%);
}
@media (hover: hover) {
.tile:hover {
  border-color:var(--accent);
  box-shadow:0 4px 12px #22365209;
}
}
.tile-number {
  grid-row:1/4;
  color:var(--accent);
  font-size:19px;
  font-weight:750;
}
.tile strong {
  font-size:13px;
  line-height:1.4;
}
.tile>span:not(.tile-number) {
  grid-column:2;
  font-size:11px;
  color:var(--muted);
  margin-top:6px;
}
.tile .tile-action {
  color:var(--accent)!important;
  font-weight:700;
  margin-top:13px!important;
}
.shelf-title {
  margin-top:30px;
  font-size:17px;
  color:var(--accent);
}
.revision-shelf {
  display:grid;
  gap:28px;
}
.course-group .tile:last-child {
  grid-column:1 / -1;
}
.checkpoint-tile,
.introduction-tile {
  grid-template-columns:72px 1fr;
}
.card-link.intro .card-number {
  width:36px;
}
.card-link.rose .card-number {
  font-size:11px;
}
@media(min-width:1500px) {
  main {
    margin-right:auto;
    margin-left:calc(var(--sidebar) + (100vw - 1500px)/2);
  }
}
@media(max-width:1050px) {
  :root {
    --sidebar:250px;
  }
  .sidebar {
    padding-left:12px;
    padding-right:12px;
  }
  main {
    padding:35px 25px;
  }
  .content {
    padding:25px;
  }
  .card-link {
    font-size:11px;
  }
}
@media(max-width:760px) {
  .sidebar {
    position:static;
    width:100%;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:16px 20px;
  }
  .brand {
    font-size:22px;
    padding:0 0 14px;
  }
  .brand-sub {
    font-size:8px;
  }
  .card-menu>summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:11px 13px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:8px;
    font-size:12px;
    list-style:none;
  }
  .card-menu>summary::-webkit-details-marker {
    display:none;
  }
  .card-menu[open]>summary span {
    transform:rotate(180deg);
  }
  .card-menu nav {
    max-height:55vh;
    overflow-y:auto;
    padding-top:5px;
  }
  .card-link {
    font-size:12px;
    min-height:42px;
  }
  main {
    margin:0;
    padding:27px 18px 20px;
    max-width:100%;
  }
  h1 {
    font-size:30px;
    letter-spacing:-1px;
  }
  .subtitle {
    font-size:14px;
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1.3px;
  }
  .page-header {
    margin-bottom:20px;
  }
  .content {
    padding:23px 18px;
    border-radius:12px;
  }
  .tabs {
    margin-bottom:18px;
  }
  .tabs a {
    flex:1;
    text-align:center;
    padding:10px 8px;
    font-size:12px;
  }
  table {
    font-size:12px;
  }
  th,td {
    padding:10px 12px;
  }
  .table-wrap {
    margin:20px 0;
  }
  .card-grid {
    grid-template-columns:1fr;
  }
  .how-to {
    gap:8px;
  }
  .how-to>div {
    padding:11px;
  }
  .how-to span {
    display:block;
    margin:0 0 3px;
  }
  .how-to p {
    font-size:10px;
  }
  .pagination strong {
    font-size:11px;
  }
  .note {
    padding:14px;
  }
  .video {
    min-height:180px;
  }
}
@media print {
  .sidebar,.tabs,.pagination,.page-foot,.skip-link,.video-section {
    display:none;
  }
  main {
    margin:0;
    padding:0;
    max-width:none;
  }
  .content {
    border:0;
    box-shadow:none;
    padding:0;
  }
  .table-wrap {
    overflow:visible;
  }
  body {
    background:#fff;
  }
  .page-header {
    margin-bottom:20px;
  }
}

/* Conversation checkpoints share a color across the shelf, navigation and pages. */
.rose {
  --accent: #a23b63;
  --tint: #fceef3;
}
.conversation-preview {
  padding: 0;
  overflow: hidden;
  background: var(--tint);
}
.preview-link {
  display: block;
  position: relative;
  background: #203044;
}
.preview-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.preview-link:focus-visible {
  outline-offset: -5px;
}
.preview-play {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #a23b63;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 2px 12px #0003;
  pointer-events: none;
}
@media (hover: hover) {
.preview-link:hover .preview-play {
  background: #203044;
}
}
.conversation-preview figcaption {
  margin: 0;
  padding: 10px 16px 14px;
}
.conversation-preview .watch-link {
  margin: 0;
}


/* The document owns vertical content scrolling; panels never create a second scroller. */
html {
  min-height: 100%;
}
body {
  min-height: 100%;
  touch-action: pan-x pan-y pinch-zoom;
}
main, .content {
  height: auto;
  max-height: none;
  overflow: visible;
  min-width: 0;
}
.sidebar {
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  max-height: var(--viewport-height, 100dvh);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.table-wrap {
  /* Horizontal table pans must not trap vertical document gestures. */
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
.duration-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: #edf0f4;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.video-length {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin: -5px 0 18px;
}
@media (max-width: 760px) {
  .sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: 16px;
    overscroll-behavior-y: auto;
  }
  .card-menu nav {
    max-height: 65vh;
    max-height: var(--menu-height, 65dvh);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }
}

.brand-mark {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
  background: #203044;
}
@media (max-width: 760px) {
  .js .card-menu>summary { display: flex; }
  .brand-mark { width: 38px; height: 38px; }
}
