:root {
  --blue: #07599b;
  --blue-dark: #064777;
  --blue-light: #d7e5f1;
  --blue-pale: #eef5fa;
  --ink: #18222b;
  --muted: #5f6d78;
  --line: #c8d4de;
  --yellow: #fffc9a;
  --yellow-deep: #f5ed65;
  --red: #d9251b;
  --white: #fff;
  --shadow: 0 18px 45px rgba(6, 71, 119, .11);
  --sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f9fb;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(7, 89, 155, .2);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 2px 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { color: var(--blue); font-size: 1.15rem; line-height: 1.1; }
.brand small { margin-top: .16rem; color: var(--muted); font-size: .72rem; }

main { min-height: calc(100vh - 168px); }
.overview { animation: page-in .28s ease both; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 475px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.3rem, 8vw, 9rem);
  border-radius: 0 0 80px 0;
  background: var(--blue-light);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(18px, 3.2vw, 48px);
  border-radius: 0 38px 0 0;
  background: linear-gradient(90deg, var(--blue-dark), #2d83bc);
  box-shadow: 14px 0 22px rgba(7, 89, 155, .2);
}
.hero-copy { max-width: 800px; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 800px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero h1 span { color: var(--blue); }
.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 1.4rem 0 2rem;
  color: #42515d;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}
.hero-panel {
  min-width: 0;
  transform: rotate(1.5deg);
}
.hero-panel--code,
.hero-panel--text {
  border: 1px solid #d6d15c;
  background: var(--yellow);
  box-shadow: 9px 11px 0 rgba(7, 89, 155, .16);
}
.hero-panel--code::after,
.hero-panel--text::after {
  content: "";
  float: right;
  width: 28px;
  height: 28px;
  margin-top: -28px;
  background: linear-gradient(135deg, var(--yellow-deep) 50%, transparent 51%);
}
.hero-panel-label {
  display: block;
  padding: .7rem 1rem;
  border-bottom: 1px solid #d6d15c;
  color: var(--blue);
  font-weight: 700;
}
.hero-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.3rem;
  font: clamp(.82rem, 1.15vw, 1rem)/1.7 var(--mono);
}
.hero-panel-content {
  min-height: 150px;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--blue-dark);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}
.hero-panel--image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(7, 89, 155, .25);
  border-radius: 4px 34px 4px 4px;
  background: var(--white);
  box-shadow: 9px 11px 0 rgba(7, 89, 155, .16);
}
.hero-panel--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.code-keyword { color: #213ab7; }
.code-call { color: var(--red); }

.years-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.2rem, 4vw, 4rem);
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.year-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px 42px 8px 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.year-card > header {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--blue-light);
}
.year-number {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.06em;
}
.year-card h3 { margin: 0; color: var(--blue-dark); font-size: 1.2rem; }
.year-card header p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.course-notice { grid-column: 1 / -1; padding: 1.5rem; }
.course-notice p { margin: 0; color: var(--muted); }
.topic-list { margin: 0; padding: .7rem 1rem 1rem; list-style: none; }
.topic-list li + li { border-top: 1px solid #e6ebef; }
.topic-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .35rem .45rem;
  border-radius: 7px;
  font-weight: 650;
  text-decoration: none;
  transition: color .15s ease, background .15s ease, padding .15s ease;
}
.topic-list a span {
  color: var(--blue);
  font: 700 .75rem var(--mono);
}
.topic-list a b { color: var(--blue); opacity: 0; transition: opacity .15s ease; }
.topic-list a:hover, .topic-list a:focus-visible {
  padding-left: .7rem;
  background: var(--blue-pale);
  color: var(--blue-dark);
  outline: none;
}
.topic-list a:hover b, .topic-list a:focus-visible b { opacity: 1; }

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem clamp(1.2rem, 4vw, 4.5rem);
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
}
.site-footer span { color: var(--white); font-size: 1.05rem; font-weight: 800; }
.site-footer a { color: var(--white); text-decoration: none; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 570px; transform: none; }
  .year-grid { grid-template-columns: 1fr; }
  .year-card { display: grid; grid-template-columns: minmax(230px, .7fr) 1.3fr; }
  .year-card > header { min-height: 100%; border-right: 1px solid var(--line); border-bottom: 0; }
}
@media (max-width: 720px) {
  .site-header { min-height: 72px; }
  .brand small { display: none; }
  .hero { min-height: auto; padding-top: 4.5rem; border-radius: 0 0 38px 0; }
  .hero h1 { font-size: 2.65rem; }
  .hero-panel--code { display: none; }
  .hero-panel-content { min-height: 0; }
  .year-card { display: block; }
  .year-card > header { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .site-footer p { margin: 0; }
}
@media (max-width: 430px) {
  .site-header { padding-inline: .9rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding-inline: 2.4rem 1.2rem; }
}

/* Integrierte Foliendeck-Ansicht */
body.deck-mode .site-header,
body.deck-mode .site-footer,
body.deck-mode #overview {
  display: none;
}
body.deck-mode main { min-height: 0; }
.deck-view {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
body.deck-mode {
  --blue: #07599b;
  --blue-dark: #064777;
  --blue-pale: #e9f2f8;
  --ink: #18222b;
  --muted: #64727d;
  --line: #c8d4de;
  --paper: #fff;
  --stage: #e5ebef;
  --sidebar-width: 310px;
  --sans: "Aptos", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.deck-mode {
  margin: 0;
  overflow: hidden;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.deck-header {
  position: relative;
  z-index: 30;
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid rgba(7, 89, 155, .22);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}
@media (min-width: 1101px) {
  .deck-header.is-title-centered {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}
.deck-header-navigation {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  grid-column: 1;
  justify-self: start;
  gap: .55rem;
  overflow: hidden;
}
.deck-header-navigation .back-link { flex: 0 0 auto; }
.back-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .58rem .75rem;
  border-radius: 8px;
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}
.back-link:hover, .back-link:focus-visible { background: var(--blue-pale); }
.deck-heading {
  min-width: 0;
  width: max-content;
  max-width: min(26vw, 22rem);
  grid-column: 2;
  text-align: center;
}
.deck-heading p {
  margin: 0 0 .08rem;
  color: var(--blue);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.deck-heading h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.22rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mobile-nav-toggle {
  display: none;
  justify-self: end;
  gap: .5rem;
  padding: .58rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.deck-layout {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  grid-template-rows: minmax(0, 1fr);
}
.slides {
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: safe center;
  overflow: auto;
  cursor: grab;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  padding: 0 clamp(1.4rem, 3vw, 3rem) clamp(1.4rem, 3vw, 3rem);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.slides.is-html-document {
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  cursor: default;
}
.html-document {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: white;
}
.html-document-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}
.pdf-slide {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  align-self: safe center;
  overflow: hidden;
  scroll-margin-top: 0;
  border: 1px solid rgba(24, 34, 43, .15);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(24, 34, 43, .16);
}
.slide-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.slide-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .88rem;
}

.textLayer {
  --min-font-size: 1;
  --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
  --min-font-size-inv: calc(1 / var(--min-font-size));
  position: absolute;
  inset: 0;
  overflow: clip;
  color-scheme: only light;
  line-height: 1;
  text-align: initial;
  text-size-adjust: none;
  forced-color-adjust: none;
  user-select: text;
  transform-origin: 0 0;
  z-index: 2;
}
.textLayer :is(span, br) {
  position: absolute;
  color: transparent;
  white-space: pre;
  cursor: text;
  user-select: text;
  transform-origin: 0% 0%;
}
.slides.is-panning,
.slides.is-panning * {
  cursor: grabbing !important;
  user-select: none !important;
}
.textLayer > :not(.markedContent),
.textLayer .markedContent span:not(.markedContent) {
  --font-height: 0;
  --scale-x: 1;
  --rotate: 0deg;
  z-index: 1;
  font-size: calc(var(--text-scale-factor) * var(--font-height));
  transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.textLayer .markedContent { display: contents; }
.textLayer ::selection { background: rgba(7, 89, 155, .32); }

.deck-sidebar {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.15rem 1rem;
  border-bottom: 1px solid #e1e7ec;
}
.sidebar-header p {
  margin: 0 0 .25rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sidebar-header strong { color: var(--blue-dark); font-size: .98rem; }
.sidebar-header > div { min-width: 0; overflow-wrap: anywhere; }
.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-pale);
  color: var(--blue);
  cursor: pointer;
  font-size: 1.45rem;
  flex: 0 0 auto;
}
.slide-nav {
  min-height: 0;
  overflow-y: auto;
  padding: .65rem;
  scrollbar-width: thin;
}
.slide-nav-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  min-height: 48px;
  padding: .68rem .7rem;
  border-left: 3px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  text-decoration: none;
}
.slide-nav-link span {
  padding-top: .08rem;
  color: #7b8994;
  font: 700 .73rem "Cascadia Mono", Consolas, monospace;
}
.slide-nav-link strong {
  overflow: hidden;
  font-size: .84rem;
  line-height: 1.28;
  text-overflow: ellipsis;
}
.slide-nav-link:hover, .slide-nav-link:focus-visible {
  background: var(--blue-pale);
  color: var(--blue-dark);
  outline: none;
}
.slide-nav-link.is-active {
  border-left-color: var(--blue);
  background: #dcebf5;
  color: var(--blue-dark);
}
.slide-nav-link.is-active span { color: var(--blue); }

.deck-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  padding: .85rem;
  border-top: 1px solid #e1e7ec;
}
.slide-size-control {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  align-items: center;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 750;
}
.slide-size-control > span,
.slide-size-control output {
  cursor: pointer;
}
.slide-size-control output {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.slide-size-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}

.deck-actions :is(a, button) {
  min-width: 0;
  padding: .58rem .35rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.deck-actions :is(a, button):hover,
.deck-actions :is(a, button):focus-visible {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.deck-loading, .deck-error {
  width: min(100%, 760px);
  margin-top: 10vh;
  padding: 2rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  text-align: center;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  display: inline-block;
  border: 3px solid #c4d7e5;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.deck-error h2 { color: var(--blue-dark); }
.deck-error a { color: var(--blue); font-weight: 750; }
.sidebar-scrim { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; }
}

.deck-tabs {
  min-width: 0;
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .3rem 0;
  scrollbar-width: thin;
}
/* Aufgaben, Lösungen und Zusatzmaterial eines Themas */
.deck-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  grid-column: 3;
  justify-self: end;
  gap: .55rem;
}
.topic-resource-actions {
  min-width: 0;
  display: flex;
  gap: .4rem;
}
.deck-tabs a,
.topic-resource-actions button {
  flex: 0 0 auto;
  padding: .48rem .72rem;
  border: 1px solid rgba(15, 45, 72, .18);
  border-radius: 999px;
  background: #fff;
  color: #17334d;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.deck-tabs a:hover,
.deck-tabs a:focus-visible,
.topic-resource-actions button:hover,
.topic-resource-actions button:focus-visible {
  border-color: #0874be;
  color: #07599b;
  outline: none;
}
.deck-tabs a.is-active,
.topic-resource-actions button.is-active {
  border-color: #07599b;
  color: #fff;
  background: #07599b;
}
.resource-navigation {
  padding: .8rem;
}
.resource-back {
  width: 100%;
  padding: .65rem .7rem;
  border: 0;
  border-radius: 7px;
  background: var(--blue-pale);
  color: var(--blue);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
}
.resource-back:hover,
.resource-back:focus-visible {
  background: #dcebf5;
  outline: none;
}
.resource-group {
  margin-top: 1rem;
}
.resource-group h2 {
  margin: 0 0 .4rem;
  color: var(--blue-dark);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resource-group ul {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.resource-item {
  display: grid;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  background: white;
}
.resource-item strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.3;
}
.resource-solution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid #dce5eb;
}
.resource-solution > span {
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 800;
}
.resource-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.resource-item-actions a,
.resource-item-actions button {
  padding: .4rem .55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
}
.resource-item-actions button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}.resource-item-actions button:disabled {
  cursor: wait;
  opacity: .55;
}
.resource-item-actions a:hover,
.resource-item-actions a:focus-visible,
.resource-item-actions button:hover,
.resource-item-actions button:focus-visible {
  border-color: var(--blue);
  background: var(--blue-pale);
  outline: none;
}
@media (max-width: 760px) {
  .topic-resource-actions { gap: .25rem; }
  .deck-tabs a,
  .topic-resource-actions button { padding: .42rem .62rem; font-size: .76rem; }
}

/* Nach den Grundregeln, damit die kompakte Anordnung nicht überschrieben wird. */
@media (max-width: 1100px) {
  .deck-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: .4rem .6rem;
    padding: .5rem .75rem;
  }
  .deck-header-navigation,
  .deck-header-actions { display: contents; }
  .back-link { grid-column: 1; grid-row: 1; }
  .deck-heading { grid-column: 2; grid-row: 1; width: auto; max-width: none; }
  .topic-resource-actions { grid-column: 3; grid-row: 1; }
  .mobile-nav-toggle { display: inline-flex; grid-column: 4; grid-row: 1; }
  .deck-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .deck-layout { grid-template-columns: minmax(0, 1fr); }
  .slides { padding: 0 1rem 1rem; gap: 1.2rem; }
  .deck-sidebar {
    position: absolute;
    z-index: 50;
    inset: 0 0 0 auto;
    width: min(90%, 340px);
    height: 100%;
    overflow-y: auto;
    grid-template-rows: auto minmax(3rem, 1fr) auto;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .22s ease, visibility .22s;
    box-shadow: -16px 0 45px rgba(24, 34, 43, .2);
  }
  .deck-sidebar.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .sidebar-close { display: block; }
  .sidebar-scrim {
    display: block;
    position: absolute;
    z-index: 40;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(14, 28, 38, .38);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s;
  }
  .sidebar-scrim.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .deck-header :is(a, button),
  .deck-sidebar :is(a, button) { min-height: 44px; }
}

@media (max-width: 720px) {
  .deck-header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .back-link { width: 44px; justify-content: center; padding-inline: .5rem; }
  .back-link span:last-child { display: none; }
  .deck-heading h1 { font-size: 1rem; line-height: 1.15; }
  .deck-heading p { font-size: .58rem; }
  .mobile-nav-toggle { grid-column: 3; padding-inline: .6rem; }
  .topic-resource-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-wrap: wrap;
  }
  .slides { padding: 0 .7rem .7rem; gap: .8rem; }
  .pdf-slide { box-shadow: 0 8px 24px rgba(24, 34, 43, .14); }
}

