:root {

  /* ========================================

     COLORS

     ======================================== */

  --bg-color1: white;

  --bg-color2: black;

  --text-color1: var(--bg-color2);

  --text-color2: var(--bg-color1);

  --link-color: #ff48b0;

  --link-hover-color: #ff48b0;

  --selection-bg: #ff48b0;

  /* ========================================

     TYPOGRAPHY

     ======================================== */

  --font-body:

    "Times Simplex Regular",

    Times,

    serif;

  --font-mono:

    "Times Simplex Regular",

    Times,

    serif;

  --font-sans-serif:

    "Futura Duplex Regular",

    Arial,

    sans-serif;

  --font-display:

    "ITYT",

    Arial,

    sans-serif;

  --body-text:

    calc(15px + 0.5vw);

  --h1-size: 10rem;

  --h2-size: 6rem;

  --h3-size: 3rem;

  --line-height-tight: 1;

  --line-height-body: 1.2;

  /* ========================================

     LAYOUT

     ======================================== */

  --page-width: 100%;

  --column-width: 50%;

  --page-height: 100vh;

  /* ========================================

     SPACING

     ======================================== */

  --space-xs: 0.5rem;

  --space-sm: 1rem;

  --space-md: 1.5rem;

  --space-lg: 2.5rem;

  --space-xl: 5rem;

  /* ========================================

     BORDERS

     ======================================== */

  --border-width: 2px;

  --border-color:

    var(--text-color1);

  /* ========================================

     EFFECTS

     ======================================== */

  --transition-speed: 0.25s;

  --transition-slow: 1.5s;

  /* ========================================

     LECTURE

     ======================================== */

  --lecture-bg:

    var(--bg-color1);

  --lecture-text:

    var(--text-color1);

  --lecture-width: 100vw;

  --lecture-height: 100dvh;

  --lecture-padding: 3rem;

  --lecture-title-size: 10rem;

  --lecture-heading-size: 6rem;

  --lecture-body-size:

    calc(2 * var(--body-text));

  --lecture-z-index: 1000;

}

/* ========================================

   RESET

   ======================================== */

*,

*::before,

*::after {

  padding: 0;

  margin: 0;

  box-sizing: border-box;

}

html {

  font-size: 56.25%;

}

/* ========================================

   FONTS

   ======================================== */

@font-face {

  font-family: "ITYT";

  src:

    url("asset/typography/ityt-280125.otf");

  font-weight: normal;

  font-style: normal;

}

@font-face {

  font-family:

    "Futura Duplex Regular";

  src:

    url("asset/typography/hershey/Hershey-Noailles-Futura-Duplex-Regular.otf");

  font-weight: normal;

  font-style: normal;

}

@font-face {

  font-family:

    "Futural Mono Bold 3.2";

  src:

    url("asset/typography/hershey/Hershey-Noailles-futural-mono-bold-3.2.otf");

  font-weight: normal;

  font-style: normal;

}

@font-face {

  font-family:

    "Times Simplex Regular";

  src:

    url("asset/typography/hershey/Hershey-Noailles-Times-Simplex-Regular.otf");

  font-weight: normal;

  font-style: normal;

}

/* ========================================

   DOCUMENT

   ======================================== */

body {

  font-family:

    var(--font-body);

  font-weight: normal;

  font-size:

    var(--body-text);

  line-height:

    var(--line-height-body);

}

/* ========================================

   SELECTION

   ======================================== */

::selection {

  background:

    var(--selection-bg);

}

/* ========================================

   TYPOGRAPHY

   ======================================== */

h1 {

  font-weight: normal;

  font-size:

    var(--h1-size);

  line-height:

    var(--line-height-tight);

  text-transform:

    uppercase;

  margin:

    var(--space-sm);

}

h2 {

  font-size:

    var(--h2-size);

  margin:

    var(--space-sm);

}

p {

  margin: 1.2%;

}

/* ========================================

   LINKS

   ======================================== */

a:link,

a:active,

a:visited {

  color:

    var(--link-color);

  text-decoration:

    none;

}

a:hover {

  color:

    var(--link-hover-color);

  cursor:

    help;

  transition:

    color var(--transition-slow);

}

/* ========================================

   LISTS

   ======================================== */

ul {

  margin: 0 auto;

  padding: 0;

}

li {

  display: list-item;

}

/* ========================================

   IMAGES

   ======================================== */

img {

  display: block;

  margin-left: auto;

  margin-right: auto;

  max-width: 75%;

  filter:

    grayscale(100%);

  transition:

    filter 0.4s ease;

}

img:hover {

  filter:

    grayscale(0%);

}

/* ========================================

   MAIN PAGE LAYOUT

   ======================================== */

.zine {

  height:

    var(--page-height);

  width:

    var(--page-width);

  overflow:

    hidden;

  display:

    flex;

}

/* ========================================

   LEFT / INDEX COLUMN

   ======================================== */

.left,

\#index {

  background-color:

    var(--bg-color1);

  background-image:

    url(asset/texture/Texturelabs_Paper_182L.webp);

  color:

    var(--text-color1);

  height:

    var(--page-height);

  width:

    var(--column-width);

  padding:

    var(--space-lg);

  overflow-y:

    scroll;

  overflow-x:

    hidden;

  -webkit-overflow-scrolling:

    touch;

  transition:

    var(--transition-speed);

}

/* ========================================

   RIGHT / WEEK COLUMN

   ======================================== */

.right,

\#weeks {

  background-color:

    var(--bg-color2);

  background-image:

    url(asset/texture/Texturelabs_Paper_128M.webp);

  color:

    var(--text-color2);

  height:

    var(--page-height);

  width:

    var(--column-width);

  padding:

    var(--space-lg);

  overflow-y:

    scroll;

  overflow-x:

    hidden;

  -webkit-overflow-scrolling:

    touch;

  transition:

    var(--transition-speed);

}

/* ========================================

   SCROLLBARS

   ======================================== */

.left::-webkit-scrollbar,

.right::-webkit-scrollbar,

\#index::-webkit-scrollbar,

\#weeks::-webkit-scrollbar {

  display: none;

  width:

    0 !important;

}

/* ========================================

   INDEX CONTENT

   ======================================== */

.heading1 {

  font-family:

    var(--font-mono);

}

.paragraph1,

.paragraph2 {

  margin:

    var(--space-sm);

}

.sectionTitle {

  font-family:

    var(--font-display);

  font-size:

    calc(2.5 * var(--lecture-heading-size));

  line-height: 102%;

  text-align:

    center;

}

.sectionTitle .letter {

  display: inline;

}

.sectionTitle .letter.highlight {

  background-color:

    var(--selection-bg);

  padding:

    0 2%;

}

/* ========================================

   SECTION TITLE ANIMATION

   ======================================== */

.sectionTitle .word {

  display:

    inline-block;

  opacity:

    0;

  transform:

    translate(var(--start-x, 0),

      var(--start-y, 0)) rotate(var(--start-rotation, 0deg)) scale(1.08);

  animation:

    place-word 700ms cubic-bezier(0.22,

      1,

      0.36,

      1) forwards;

  animation-delay:

    var(--delay, 0ms);

  transform-origin:

    center;

}

@keyframes place-word {

  0% {

    opacity: 0;

    transform:

      translate(var(--start-x),

        var(--start-y)) rotate(var(--start-rotation)) scale(1.08);

  }

  70% {

    opacity: 1;

    transform:

      translate(0.03em,

        -0.02em) rotate(var(--overshoot-rotation)) scale(0.98);

  }

  100% {

    opacity: 1;

    transform:

      translate(0, 0) rotate(var(--final-rotation)) scale(1);

  }

}

/* ========================================

   WEEK

   ======================================== */

.week-header {

  font-family:

    var(--font-mono);

  font-size:

    var(--h2-size);

}

.week-number {

  font-family:

    var(--font-display);

}

.topic {

  margin-bottom:

    var(--space-md);

  font-family:

    var(--font-mono);

  font-size:

    var(--h3-size);

  display:

    inline-block;

  transform:

    rotate(var(--rotation, 0deg));

  transform-origin:

    center;

}

.question {

  font-family:

    var(--font-serif);

  font-size:

    calc(0.75 * var(--h3-size));

  color:

    var(--text-color2);

}

/* ========================================

   WEEK VISUAL

======================================== */

.week-visual {

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  margin:

    var(--space-lg) 0;

}

/* ========================================

   ASCII ART

======================================== */

.ascii-art,

.slide-ascii-art {

    background: transparent;

    color: inherit;

    border: 0;

    border-radius: 0;

    box-shadow: none;

    padding: 0;

}

.ascii-art {

  display: block;

  width: max-content;

  margin:

    var(--space-lg) auto;

  padding: 0;

  font-family:

    "Courier New",

    Courier,

    monospace;

  /*

   * JS scales down only when necessary.

   */

  font-size: calc(0.75*var(--body-text));

  line-height: 1;

  font-weight: normal;

  font-style: normal;

  letter-spacing: 0;

  word-spacing: 0;

  white-space: pre;

  text-align: left;

}

/* Slide ascii art */

.lecture-paragraph:has(.slide-ascii) {

  flex: 1 1 0;

  min-height: 0;

  width: 100%;

  display: flex;

  flex-direction: column;

  overflow: hidden;

}

/*

 * ASCII behaves like the image area.

 * It gets all space remaining after the text.

 */

.lecture-paragraph:has(.slide-ascii) .slide-ascii {

  flex: 1 1 0;

  min-height: 0;

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

}

/*

 * Paragraph stays at the bottom

 * at normal lecture-body size.

 */

.lecture-paragraph:has(.slide-ascii) > p {

  flex: 0 0 auto;

  width: 100%;

  margin:

    var(--space-lg) 0 0;

  font-size:

    var(--lecture-body-size);

  line-height:

    var(--line-height-body);

}

/*

 * Actual ASCII composition.

 * JS grows/shrinks this to fill

 * the available "image" area.

 */

.slide-ascii-art {

  display: block;

  width: max-content;

  margin: 0;

  padding: 0;

  font-family:

    "Courier New",

    Courier,

    monospace;

  font-size:

    calc(0.7 * var(--lecture-body-size));

  line-height: 1;

  font-weight: normal;

  font-style: normal;

  letter-spacing: 0;

  word-spacing: 0;

  white-space: pre;

  text-align: left;

}

/* ========================================

   WEEK IMAGE

======================================== */

.week-visual .thumbnail {

  width: 100%;

  height: 40vh;

  max-width: 100%;

  object-fit: contain;

}

/* ========================================

   DROPDOWNS

   ======================================== */

.dropdown {

  margin:

    var(--space-sm);

}

.dropdown summary {

  font-family:

    var(--font-serif);

  cursor:

    pointer;

}

.dropdownContent {

  margin-top:

    var(--space-md);

  margin-bottom:

    var(--space-md);

  padding-left:

    var(--space-lg);

}

.assignment h3 {

  font-size:

    var(--body-text);

  border-bottom:

    2px solid;

}

.dropdownContent a,

.dropdownContent a:active,

.dropdownContent a:hover {

  color:

    var(--text-color2);

}

/* ========================================

   LISTS INSIDE DROPDOWNS

   ======================================== */

.dropdownContent ul,

.dropdownContent ol {

  margin:

    var(--space-sm) 0;

  padding-left:

    var(--space-lg);

  list-style-position:

    outside;

}

.dropdownContent ul {

  list-style: none;

}

.dropdownContent ul li {

  position: relative;

  padding-left: 1.5em;

}

.dropdownContent ul li::before {

  content: "\25AE";

  position: absolute;

  left: 0;

  color: var(--link-color);

}

/*

 * Remove the gap when one list

 * immediately follows another.

 */

.dropdownContent ul + ul {

  margin-top: 0;

}

.dropdownContent ul:has(+ ul) {

  margin-bottom: 0;

}

/* ========================================

   OPTIONAL NAVIGATION

   ======================================== */

.right-nav {

  position:

    fixed;

  top:

    1%;

  right:

    2.5%;

}

/* ========================================

   HORIZONTAL RULE

   ======================================== */

hr {

  border:

    0;

  padding-top:

    2.5%;

  padding-bottom:

    2.5%;

}

/* ========================================

   FULL-SCREEN IFRAMES

   ======================================== */

.lecture-slide iframe {

  display: block;

  width: 100%;

  height: 100%;

  min-height:

    var(--lecture-height);

  margin: 0;

  padding: 0;

  border: 0;

}

/* ========================================

   LECTURE / ASSIGNMENT OVERLAY

   ======================================== */

.lecture-overlay {

  position:

    fixed;

  inset:

    0;

  width:

    var(--lecture-width);

  height:

    var(--lecture-height);

  background:

    var(--lecture-bg);

  color:

    var(--lecture-text);

  z-index:

    var(--lecture-z-index);

  visibility:

    hidden;

  opacity:

    0;

  pointer-events:

    none;

  transition:

    opacity var(--transition-speed);

}

.lecture-overlay.is-open {

  visibility:

    visible;

  opacity:

    1;

  pointer-events:

    auto;

}

/* ========================================

   PREVENT BACKGROUND SCROLL

   ======================================== */

body.lecture-is-open {

  overflow:

    hidden;

}

/* ========================================

   CLOSE BUTTON

   ======================================== */

.lecture-close {

  position:

    fixed;

  top:

    var(--space-sm);

  right:

    var(--space-sm);

  z-index:

    calc(var(--lecture-z-index) + 10);

  cursor:

    pointer;

  font-size:

    var(--h2-size);

  color:

    var(--link-color);

  background-color:

    transparent;

  padding:

    1%;

  border:

    none;

}

/* ========================================

   LECTURE SCROLLER

   ======================================== */

.lecture-container {

  width:

    100%;

  height:

    100%;

  overflow-y:

    auto;

  overflow-x:

    hidden;

  scroll-snap-type:

    y mandatory;

}

/* ========================================

   ASSIGNMENTS

   Same visual language as lecture slides,

   but vertically scrollable.

   ======================================== */

.assignment {

  width: 100%;

  height: var(--lecture-height);

  min-height: 0;

  overflow: hidden;

  font-size: var(--lecture-body-size);

  line-height: var(--line-height-body);

}

/* ========================================

   ASSIGNMENT SCROLLER

   ======================================== */

.assignment-content {

  width: 100%;

  height: 100%;

  min-height: 0;

  padding: var(--lecture-padding);

  overflow-x: hidden;

  overflow-y: auto;

  overscroll-behavior-y: contain;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  -ms-overflow-style: none;

}

.assignment-content::-webkit-scrollbar {

  display: none;

}

/* ========================================

   ASSIGNMENT HEADER

   ======================================== */

.assignment-header {

  width: 100%;

  margin-bottom: var(--space-xl);

}

.assignment-weeks,

.assignment-meta {

  font-size: var(--body-text);

  margin-bottom: var(--space-md);

}

/* Same visual language as lecture titles */

.assignment-title {

  font-family: var(--font-display);

  font-size: var(--lecture-title-size);

  line-height: var(--line-height-tight);

  letter-spacing: 0.05em;

  margin:

    0 0 var(--space-xl);

}

/* ========================================

   ASSIGNMENT BODY

   ======================================== */

.assignment-body {

  width: 100%;

  font-size: var(--lecture-body-size);

  line-height: var(--line-height-body);

}

/* Section headings within assignments */

.assignment-body h2 {

  font-family: var(--font-body);

  font-size: var(--lecture-heading-size);

  line-height: var(--line-height-tight);

  letter-spacing: 0.05em;

  margin:

    var(--space-xl) 0 var(--space-lg);

}

.assignment-body h3 {

  font-family: var(--font-body);

  font-size: var(--lecture-body-size);

  margin:

    var(--space-lg) 0 var(--space-sm);

}

/* ========================================

   ASSIGNMENT PARAGRAPHS

   ======================================== */

.assignment-body p {

  font-size: inherit;

  line-height: inherit;

  margin:

    0 0 var(--space-md);

}

/* ========================================

   ASSIGNMENT LINKS

   ======================================== */

.assignment-body a {

  color: var(--link-color);

}

/* ========================================

   ASSIGNMENT IFRAMES

   ======================================== */

.assignment-body iframe {

  display: block;

  width: 100%;

  height: 70dvh;

  margin:

    var(--space-lg) 0;

  border: 0;

}

/* ========================================

   INDIVIDUAL LECTURE SLIDE

   ======================================== */

.lecture-slide {

  width:

    100%;

  height:

    var(--lecture-height);

  min-height:

    var(--lecture-height);

  overflow:

    hidden;

  scroll-snap-align:

    start;

  scroll-snap-stop:

    always;

}

/* ========================================

   SLIDE CONTENT

   ======================================== */

.lecture-slide-content {

  width:

    100%;

  height:

    100%;

  min-height:

    0;

  padding:

    var(--lecture-padding);

  display:

    flex;

  flex-direction:

    column;

  overflow:

    hidden;

}

/* ========================================

   TABLES

======================================== */

table {

  width: 100%;

  border-collapse: collapse;

  font-size: calc(0.9 * var(--body-text));

}

th,

td {

  padding: var(--space-sm);

  text-align: left;

  vertical-align: top;

  border-bottom: 1px solid var(--text-color1);

}

/* ========================================

   FULL IMAGE + CAPTION SLIDES

   ======================================== */

.lecture-slide:has(img.full) {

  height:

    var(--lecture-height);

  min-height:

    var(--lecture-height);

  overflow:

    hidden;

}

.lecture-slide:has(img.full) .lecture-slide-content {

  height:

    var(--lecture-height);

  min-height:

    0;

  padding:

    0;

}

.lecture-slide:has(img.full) .lecture-paragraph {

  width:

    100%;

  height:

    var(--lecture-height);

  margin:

    0;

  display:

    grid;

  grid-template-rows:

    80% 20%;

}

.lecture-slide img.full {

  width:

    100%;

  height:

    100%;

  max-width:

    none;

  max-height:

    none;

  object-fit:

    cover;

}

.lecture-slide:has(img.full) .caption {

  width:

    100%;

  height:

    100%;

  margin:

    0;

  padding:

    var(--lecture-padding);

  display:

    flex;

  flex-direction:

    column;

  justify-content:

    flex-end;

}

/* videos behave like timeline images */

.lecture-slide .timeline-images video {

    flex: 0 0 auto;

    width: auto;

    height: 100%;

    max-height: 100%;

    object-fit: contain;

    margin: 0;

}

/* ========================================

   LECTURE TITLE

   ======================================== */

.lecture-title {

  font-family:

    var(--font-display);

  font-size:

    var(--lecture-title-size);

  letter-spacing:

    5%;

}

/* ========================================

   LECTURE SECTION HEADING

   ======================================== */

.lecture-section-heading {

  font-family:

    var(--font-body);

  font-size:

    var(--lecture-heading-size);

  letter-spacing:

    5%;

  margin-bottom:

    var(--space-xl);

}

/* ========================================

   LECTURE BODY

   ======================================== */

.lecture-paragraph {

  font-size:

    var(--lecture-body-size);

}

.lecture-paragraph:has(img) {

  flex:

    1 1 auto;

  min-height:

    0;

  display:

    flex;

  flex-direction:

    column;

}

.lecture-paragraph:has(img) p {

  flex:

    0 0 auto;

}

.lecture-paragraph:has(img) img {

  flex:

    1 1 0;

  min-height:

    0;

  width:

    auto;

  max-width:

    100%;

  height:

    auto;

  max-height:

    100%;

  object-fit:

    contain;

  margin-left:

    auto;

  margin-right:

    auto;

}

.lecture-paragraph:has(.row.images) {

  height:

    100%;

  min-height:

    0;

  margin:

    1.4%;

  display:

    flex;

  flex-direction:

    column;

}

.lecture-paragraph:has(.row.images) .row.images {

  flex:

    1 1 auto;

  min-height:

    0;

  width:

    100%;

}

.lecture-paragraph:has(.row.images)>p {

  flex:

    0 0 auto;

  width:

    100%;

  padding-top:

    var(--space-md);

}

/* ========================================

   BLOCKQUOTE SLIDES

   ======================================== */

/*

 * Override the generic image-slide layout.

 * Any lecture paragraph containing a blockquote

 * becomes a fixed-height two-column grid.

 */

.lecture-paragraph:has(blockquote) {

  flex: 1 1 0;

  min-height: 0;

  height: 100%;

  width: 100%;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: var(--space-lg);

  overflow: hidden;

}

/* ========================================

   BLOCKQUOTE COLUMN

   ======================================== */

.blockquote-text {

  min-width: 0;

  min-height: 0;

  height: 100%;

  padding: var(--space-lg);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  background:

    color-mix(in srgb,

      var(--text-color2) 50%,

      transparent);

}

/*

 * Quote takes the available space.

 * If the text is longer, ONLY this area scrolls.

 */

.blockquote-text blockquote {

  flex: 1 1 0;

  min-width: 0;

  min-height: 0;

  margin: 0;

  overflow-x: hidden;

  overflow-y: auto;

  overscroll-behavior-y: contain;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  -ms-overflow-style: none;

}

.blockquote-text blockquote::-webkit-scrollbar {

  display: none;

}

/* Quote paragraphs */

.blockquote-text blockquote p {

  margin:

    0 0 var(--space-md);

  font-size: inherit;

  line-height: inherit;

}

.blockquote-text blockquote p:last-child {

  margin-bottom: 0;

}

/* Source stays fixed below scrolling quote */

.blockquote-source {

  flex: 0 0 auto;

  margin:

    var(--space-lg) 0 0;

  font-size: var(--body-text);

}

/* ========================================

   IMAGE COLUMN

   ======================================== */

.blockquote-image {

  min-width: 0;

  min-height: 0;

  height: 100%;

  display: flex;

  flex-direction: column;

  overflow: hidden;

}

/*

 * Override lecture img rules

 */

.lecture-paragraph:has(blockquote) .blockquote-image img {

  flex: 1 1 0;

  width: 100%;

  height: auto;

  min-height: 0;

  max-width: 100%;

  max-height: 100%;

  margin: 0;

  object-fit: contain;

}

/* Caption remains beneath image */

.lecture-paragraph:has(blockquote) .blockquote-image .caption {

  flex: 0 0 auto;

  width: 100%;

  margin:

    var(--space-sm) 0 0;

}

/* ========================================

   LECTURE + ASSIGNMENT LISTS

   ======================================== */

.lecture-paragraph ul,

.assignment-body ul {

  list-style: none;

  margin:

    var(--space-md) 0;

  padding-left: 0;

}

.lecture-paragraph ul li,

.assignment-body ul li {

  position: relative;

  display: list-item;

  padding-left: 1.5em;

  margin-bottom: var(--space-sm);

}

/* ▰ */

.lecture-paragraph ul li::before,

.assignment-body ul li::before {

  content: "\25B0";

  position: absolute;

  left: 0;

  color: var(--link-color);

}

/* ========================================

   LECTURE CAPTION

   ======================================== */

.lecture-slide .caption {

  font-size:

    40%;

}

p.caption {

  font-family:

    var(--font-sans-serif);

  margin-top:

    auto;

  text-align:

    left;

}

/* ========================================

   TWO IMAGE COLUMNS

   ======================================== */

.lecture-slide .row.images {

  gap:

    var(--lecture-column-gap, 4rem);

  padding:

    var(--lecture-padding);

}

.lecture-slide .row.images .column {

  display:

    flex;

  align-items:

    center;

  justify-content:

    center;

  padding:

    var(--lecture-padding);

  overflow:

    hidden;

}

.lecture-slide .row.images .column img {

  width:

    100%;

  height:

    100%;

  max-width:

    100%;

  max-height:

    100%;

  object-fit:

    contain;

  margin:

    0;

}

.row.images.small .column img {

  max-width:

    60%;

  max-height:

    60%;

}

.row.images.medium .column img {

  max-width:

    75%;

  max-height:

    75%;

}

.row.images.large .column img {

  max-width:

    90%;

  max-height:

    90%;

}

/* ========================================

   TWO-COLUMN SLIDES

   ======================================== */

.lecture-slide:has(.row) {

  height:

    var(--lecture-height);

  min-height:

    var(--lecture-height);

  overflow:

    hidden;

}

.lecture-slide:has(.row) .lecture-slide-content {

  height:

    var(--lecture-height);

  min-height:

    0;

  padding:

    0;

}

.lecture-slide:has(.row) .lecture-paragraph {

  width:

    100%;

  height:

    100%;

  margin:

    0;

}

/* ========================================

   ROW

   ======================================== */

.lecture-slide .row {

  width:

    100%;

  height:

    100%;

  display:

    grid;

  grid-template-columns:

    1fr 1fr;

}

.lecture-slide .row.equal {

  grid-template-columns:

    1fr 1fr;

}

.lecture-slide .row.image-large {

  grid-template-columns:

    2fr 1fr;

}

.lecture-slide .row.text-large {

  grid-template-columns:

    1fr 2fr;

}

.lecture-slide .row.image-xlarge {

  grid-template-columns:

    3fr 1fr;

}

.lecture-slide .row.text-xlarge {

  grid-template-columns:

    1fr 3fr;

}

/* ========================================

   COLUMNS

   ======================================== */

.lecture-slide .column {

  width:

    100%;

  height:

    100%;

  min-width:

    0;

  min-height:

    0;

}

.lecture-slide .column:has(img) {

  overflow:

    hidden;

}

.lecture-slide .column img {

  width:

    100%;

  max-width:

    none;

  height:

    100%;

  margin:

    0;

  display:

    block;

  object-fit:

    cover;

}

.lecture-slide .column img.contain {

  object-fit:

    contain;

}

.lecture-slide .column img.cover {

  object-fit:

    cover;

}

.lecture-slide .column:not(:has(> img:only-child)) {

  padding:

    var(--lecture-padding);

  display:

    flex;

  flex-direction:

    column;

}

.lecture-slide .column p {

  margin:

    0;

  padding-top:

    3%;

}

.lecture-slide .column.top {

  justify-content:

    flex-start;

}

.lecture-slide .column.center {

  justify-content:

    center;

}

.lecture-slide .column.bottom {

  justify-content:

    flex-end;

}

/* ========================================

   HORIZONTAL TIMELINE

   ======================================== */

.timeline {

  flex:

    1 1 0;

  min-height:

    0;

  width:

    100%;

  display:

    flex;

  align-items:

    stretch;

  gap:

    var(--space-md);

  overflow-x:

    auto;

  overflow-y:

    hidden;

  overscroll-behavior-x:

    contain;

  touch-action:

    pan-x;

  scrollbar-width:

    thin;

}

.timeline-item {

  flex:

    0 0 auto;

  width:

    fit-content;

  min-width:

    0;

  min-height:

    0;

  display:

    grid;

  grid-template-rows:

    minmax(0, 1fr) auto;

  grid-template-columns:

    max-content;

  gap:

    var(--space-sm);

}

.timeline-images {

  width:

    fit-content;

  min-width:

    0;

  min-height:

    0;

  display:

    flex;

  align-items:

    center;

  gap:

    var(--space-xs);

  overflow:

    hidden;

}

.lecture-slide .timeline-images img {

  flex:

    0 1 auto;

  width:

    auto;

  height:

    100%;

  max-width:

    none;

  max-height:

    100%;

  object-fit:

    contain;

  margin:

    0;

}

.timeline-images iframe {

  flex:

    0 0 auto;

  width:

    750px;

  height:

    500px;

  max-height:

    100%;

  border:

    0;

}

.lecture-slide .timeline-item .caption {

  width:

    100%;

  max-width:

    100%;

  min-width:

    0;

  margin:

    0;

  padding:

    0;

  box-sizing:

    border-box;

  font-size:

    40%;

  text-align:

    left;

  white-space:

    normal;

  overflow-wrap:

    break-word;

}

.timeline::-webkit-scrollbar {

  height:

    8px;

}

.timeline::-webkit-scrollbar-thumb {

  background:

    var(--selection-bg);

}

/* ========================================

   GENEALOGY CHART

======================================== */

.genealogy-chart {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    overflow-x: auto;

    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;

}

/* ========================================

   HORIZONTAL FIELD

======================================== */

.genealogy-grid {

    width: max-content;

    height: 100%;

    min-height: 0;

    display: flex;

    align-items: stretch;

    gap: 6rem;

    padding: 0 4rem 1rem 0;

    box-sizing: border-box;

}

.genealogy-column {

    width: 34rem;

    height: 100%;

    flex: 0 0 34rem;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

}

/* ========================================

   NODES

   Content determines height.

======================================== */

.genealogy-node {

    width: 100%;

    height: auto;

    flex: 0 0 auto;

    padding: 1.5rem;

    box-sizing: border-box;

    background: var(--link-color);

    color: var(--text-color2);

}

/* ========================================

   TYPOGRAPHY

   Reverted

======================================== */

.genealogy-node h3 {

    margin: 0 0 .35rem 0;

    font-family: var(--font-sans-serif);

    font-size: var(--publication-title-text);

    font-weight: normal;

    line-height: 1;

}

.genealogy-years {

    margin: .25rem 0 1rem 0;

    font-family: inherit;

    font-size: calc(var(--caption-text) * .75);

    line-height: 1;

}

.genealogy-node p {

    margin: 0;

    font-family: inherit;

    font-size: var(--body-text);

    line-height: var(--body-line-height);

}

/* ========================================

   INDIVIDUAL VERTICAL POSITIONS

======================================== */

.genealogy-column-1 {

    justify-content: flex-start;

}

.genealogy-column-2 {

    justify-content: center;

}

.genealogy-column-3 {

    justify-content: flex-end;

}

.genealogy-column-4 {

    justify-content: center;

}

.genealogy-column-8 {

    justify-content: center;

}

.genealogy-column-9 {

    justify-content: flex-end;

}

.genealogy-column-10 {

    justify-content: flex-start;

}

.genealogy-column-11 {

    justify-content: center;

}

.genealogy-column-12 {

    justify-content: flex-end;

}

.genealogy-column-13 {

    justify-content: flex-start;

}

.genealogy-column-14 {

    justify-content: center;

}

.genealogy-column-15 {

    justify-content: flex-end;

}

.genealogy-column-16 {

    justify-content: flex-start;

}

.genealogy-column-17 {

    justify-content: center;

}

/* ========================================

   PRESENTATION LAYOUT

======================================== */

.presentation-slide-content {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    padding: 4rem;

    display: grid;

    grid-template-rows: minmax(0, 1fr);

    overflow: hidden;

}

.presentation-slide-content:has(> .presentation-section-heading) {

    grid-template-rows:

        auto

        minmax(0, 1fr);

    gap: 2rem;

}

/* ========================================

   PRESENTATION LAYOUT

======================================== */

.presentation-slide-content {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    padding: 4rem;

    display: grid;

    grid-template-rows: minmax(0, 1fr);

    overflow: hidden;

}

.presentation-slide-content:has(> .presentation-section-heading) {

    grid-template-rows:

        auto

        minmax(0, 1fr);

    gap: 2rem;

}

/* ========================================

   PARAGRAPH + IFRAME SLIDES

   ======================================== */

.lecture-paragraph:has(iframe) {

  flex:

    1 1 0;

  min-height:

    0;

  display:

    flex;

  flex-direction:

    column;

  gap:

    var(--space-md);

  overflow:

    hidden;

}

.lecture-paragraph:has(iframe)>p {

  flex:

    0 0 auto;

  margin-top:

    0;

  margin-bottom:

    0;

}

.lecture-paragraph:has(iframe)>iframe {

  flex:

    1 1 0;

  width:

    100%;

  min-height:

    0;

  height:

    auto;

  border:

    0;

}

/* ========================================

   VENN DIAGRAM

   ======================================== */

.lecture-slide:has(.venn) {

  height:

    var(--lecture-height);

  min-height:

    var(--lecture-height);

  overflow:

    hidden;

}

.lecture-slide:has(.venn) .lecture-slide-content {

  height:

    var(--lecture-height);

  min-height:

    0;

  overflow:

    hidden;

}

.lecture-slide:has(.venn) .lecture-paragraph {

  flex:

    1 1 0;

  width:

    100%;

  height:

    100%;

  min-height:

    0;

  margin:

    0;

  overflow:

    hidden;

}

/* ========================================

   VENN CONTAINER

   ======================================== */

.venn {

  position:

    relative;

  width:

    100%;

  height:

    100%;

  min-height:

    0;

  overflow:

    hidden;

  font-size:

    var(--body-text);

  line-height:

    1.1;

}

/* ========================================

   VENN CIRCLES

   ======================================== */

.venn-circle {

  position:

    absolute;

  top:

    50%;

  width:

    58%;

  height:

    75%;

  transform:

    translateY(-50%);

  border:

    var(--border-width) solid var(--border-color);

  border-radius:

    50%;

  background:

    color-mix(in srgb,

      var(--link-color) 20%,

      transparent);

  padding:

    var(--space-lg);

  display:

    flex;

  flex-direction:

    column;

  min-width:

    0;

  min-height:

    0;

}

.venn-left {

  left:

    0;

}

.venn-right {

  right:

    0;

}

/* ========================================

   VENN TITLES

   ======================================== */

.venn-title {

  margin:

    0;

  font-family:

    var(--font-mono);

  font-size:

    var(--body-text);

  line-height:

    1;

}

.venn-left .venn-title {

  align-self:

    flex-start;

}

.venn-right .venn-title {

  align-self:

    flex-end;

}

/* ========================================

   VENN SIDE CONTENT

   ======================================== */

.venn-content {

  width:

    40%;

  margin-top:

    auto;

  margin-bottom:

    auto;

  min-width:

    0;

  min-height:

    0;

}

.venn-right .venn-content {

  margin-left:

    auto;

}

/* ========================================

   VENN TEXT

   ======================================== */

.venn p {

  position:

    relative;

  margin:

    0 0 var(--space-sm);

  padding-left:

    1.25em;

  font-size:

    inherit;

  line-height:

    inherit;

  overflow-wrap:

    break-word;

}

.venn p::before {

  content:

    "\25B8";

  position:

    absolute;

  left:

    0;

  top:

    0;

}

/* ========================================

   VENN OVERLAP

   ======================================== */

.venn-overlap {

  position:

    absolute;

  top:

    50%;

  left:

    50%;

  width:

    12%;

  height:

    30%;

  transform:

    translate(-50%, -50%);

  z-index:

    3;

  padding:

    var(--space-md) var(--space-xs);

  display:

    block;

  min-width:

    0;

  min-height:

    0;

  overflow-x:

    hidden;

  overflow-y:

    auto;

  overscroll-behavior-y:

    contain;

  scrollbar-width:

    none;

  -ms-overflow-style:

    none;

  -webkit-overflow-scrolling:

    touch;

}

.venn-overlap::-webkit-scrollbar {

  display:

    none;

}

.venn-overlap p {

  display:

    block;

  width:

    100%;

  margin:

    0 0 var(--space-sm);

  padding-left:

    1.25em;

  overflow-wrap:

    break-word;

  word-break:

    normal;

}

/* ========================================

   IMAGE COMPARISON GRID

======================================== */

.comparison-grid {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-template-rows: repeat(2, minmax(0, 1fr));

    gap: 1rem 2rem;

}

/* ========================================

   IMAGE PAIRS

======================================== */

.comparison-pair {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    display: flex;

    align-items: stretch;

    gap: 1rem;

}

/* ========================================

   INDIVIDUAL IMAGES

======================================== */

.comparison-item {

    flex: 1 1 0;

    width: 50%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    gap: .35rem;

}

.comparison-item img {

    display: block;

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    flex: 1 1 0;

    object-fit: contain;

    object-position: center;

}

/* ========================================

   CAPTIONS

======================================== */

.comparison-item .caption {

    flex: 0 0 auto;

    width: 100%;

    margin: 0;

    text-align: center;

}

/* ========================================

   POSTDIGITAL TIMELINE DIVIDERS

======================================== */

.postdigital-timeline .timeline-divider {

    flex: 0 0 35vw;

    min-width: 0;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    padding: 3rem;

    background: var(--link-color);

    color: black;

}

.postdigital-timeline .timeline-divider h3 {

    width: 100%;

    margin: 0 0 2rem;

    font-family: var(--font-sans-serif);

    font-size: clamp(3rem, 4vw, 7rem);

    font-weight: normal;

    line-height: 1;

    overflow-wrap: break-word;

}

.postdigital-timeline .timeline-divider p {

    width: 100%;

    min-width: 0;

    margin: 0;

    font-size: 2.5rem;

    line-height: 1.3;

    white-space: normal;

    overflow-wrap: break-word;

}

/* ========================================

   TIMELINE TEXT ITEMS

======================================== */

.postdigital-timeline .timeline-text-item {

    flex: 0 0 35vw;

    width: 35vw;

    min-width: 350px;

    grid-template-columns: minmax(0, 1fr);

}

.postdigital-timeline .timeline-text {

    width: 100%;

    min-width: 0;

    min-height: 0;

    overflow-y: auto;

    padding: 2rem;

    background: var(--link-color);

    color: black;

}

.postdigital-timeline .timeline-text h3 {

    font-family: var(--font-sans-serif);

    font-size: 3rem;

    margin-bottom: 1rem;

}

.postdigital-timeline .timeline-text p {

    font-size: 2.5;

    line-height: 1.3;

    margin: 0 0 1rem;

}

/* ========================================

   WEEK 8 ILLOS + EXAMPLES + WORKSHEET

======================================== */

/* worksheet */
    #zine-workshop { font-size: .68em; line-height: 1.5; color: inherit; font-family: inherit; }
    #zine-workshop .zine-scroll { max-height: 65vh; overflow-y: auto; padding: .7em 1em; border: 1px solid currentColor; }
    #zine-workshop h2, #zine-workshop h3 { font-family: inherit; color: inherit; margin: .8em 0 .3em; line-height: 1.25; }
    #zine-workshop h2 { font-size: 1.45em; } #zine-workshop h3 { font-size: 1.15em; }
    #zine-workshop p { margin: .55em 0; }
    #zine-workshop .prompt { margin: .85em 0; }
    #zine-workshop input[type=text] { display: inline-block; width: 24ch; max-width: 90%; min-width: 12ch; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: .15em .25em; vertical-align: baseline; }
    #zine-workshop input[type=text]:focus { outline: 1px dotted currentColor; outline-offset: 2px; }
    #zine-workshop button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; padding: .5em .8em; cursor: pointer; }
    #zine-workshop .zine-actions { display: flex; flex-wrap: wrap; gap: .5em; margin: 1em 0; }
    #zine-workshop .exercise { margin: 1em 0; padding-top: .5em; border-top: 1px solid currentColor; }
    #zine-workshop code, #zine-workshop .html-example { font-size: .8em; }
    #zine-workshop .html-example { overflow-x: auto; }
    #zine-workshop .html-example div { white-space: pre; }
    #zine-workshop label { cursor: pointer; }
    #zine-workshop .muted { opacity: .8; }
    @media (max-width: 600px) { #zine-workshop input[type=text] { width: 18ch; } }
  
  .lecture-slide:has(#zine-workshop) .lecture-slide-content, .lecture-slide:has(#zine-workshop) .lecture-paragraph { height: 100%; min-height: 0; display: flex; flex-direction: column; }

#zine-workshop { flex: 1; min-height: 0; display: flex; flex-direction: column; }

#zine-workshop .zine-scroll { flex: 1; min-height: 0; max-height: none; overflow-y: auto; box-sizing: border-box; }

/* examples */

.lecture-slide .row.file-examples {

  align-items: flex-start;

  gap: 2rem;

  height: auto;

}

.lecture-slide .file-examples > .column {

  min-width: 0;

  height: auto;

  align-self: flex-start;

  justify-content: flex-start;

}

.lecture-slide .file-examples h3 {

  margin-top: 0;

  margin-bottom: 1.5rem;

}

.lecture-slide .file-examples .files {

  font-family: monospace;

  font-size: clamp(16px, 1.5vw, 24px);

  line-height: 1.5;

}

.lecture-slide .file-examples .files > div {

  margin: 0;

  padding: 0;

}

.lecture-slide .file-tree > div {

  white-space: pre;

  font-variant-ligatures: none;

  letter-spacing: 0;

}

  /* illos */

.lecture-slide .row.paper-screen-layout { height:100%; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }

.lecture-slide .paper-screen-layout > .column.paper-screen-column { display:grid; grid-template-rows:auto 350px auto; gap:0; align-content:center; min-width:0; min-height:0; height:100%; padding:var(--lecture-padding); }

.paper-screen-column > h3 { margin:0; align-self:start; }

.paper-screen-stage { height:350px; min-height:0; min-width:0; width:100%; display:flex; justify-content:center; align-items:center; }

.lecture-slide .paper-screen-column > p { margin:0; padding:2rem 0 0; text-align:center; align-self:start; }

.paper-anatomy { display:flex; align-items:flex-end; justify-content:center; gap:clamp(.25rem,1vw,1rem); width:100%; }

.paper-anatomy figure { flex:1 1 0; min-width:0; margin:0; text-align:center; }

.paper-anatomy figcaption { margin-top:1rem; font-size:.75em; }

.paper-anatomy .drawing { position:relative; width:100%; max-width:180px; height:145px; margin:0 auto; }

.paper-anatomy .sheet { position:absolute; width:70px; height:88px; left:50%; top:15px; margin-left:-35px; background:white; border:1.5px solid currentColor; transform:skewY(18deg) rotate(-18deg); }

.paper-anatomy .stack .sheet:nth-child(1){top:39px}.paper-anatomy .stack .sheet:nth-child(2){top:36px}.paper-anatomy .stack .sheet:nth-child(3){top:33px}.paper-anatomy .stack .sheet:nth-child(4){top:30px}.paper-anatomy .stack .sheet:nth-child(5){top:27px}.paper-anatomy .stack .sheet:nth-child(6){top:24px}.paper-anatomy .stack .sheet:nth-child(7){top:21px}.paper-anatomy .stack .sheet:nth-child(8){top:18px}.paper-anatomy .stack .sheet:nth-child(9){top:15px}

.paper-anatomy .loose .sheet{top:27px}.paper-anatomy .loose .sheet:nth-child(2){transform:translate(7px,7px) skewY(18deg) rotate(-18deg)}

.paper-anatomy .fold .outline {position:absolute;inset:0;width:100%;height:100%;fill:white;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}

.laptop-screen { width:min(100%,470px); aspect-ratio:16/10; border:1.5px solid currentColor; padding:0; background:white; box-sizing:border-box; }

/* Override your global .lecture-slide iframe full-viewport rules. */

.lecture-slide .paper-screen-layout .laptop-screen > iframe.paper-screen-demo { display:block; width:100%; height:100%; min-height:0; max-height:none; margin:0; padding:0; border:0; background:white; }

@media(max-width:750px){.lecture-slide .paper-screen-layout > .column.paper-screen-column{padding:1.5rem}.paper-anatomy .drawing{transform:scale(.7);transform-origin:center bottom}.paper-anatomy figcaption{font-size:.55em}.laptop-screen{padding:0}}

/* center both demonstrations within the slide */

.row.equal:has(.paper-anatomy) {

  height: 100%;

  align-items: stretch;

}

.row.equal:has(.paper-anatomy) > .column {

  display: flex;

  flex-direction: column;

  align-items: center;

  min-width: 0;

}

/* Keep headings aligned at the top */

.row.equal:has(.paper-anatomy) > .column > h3 {

  align-self: flex-start;

}

/* Center illustrations and iframe vertically */

.paper-anatomy,

.paper-screen-demo {

  margin-top: auto;

  margin-bottom: auto;

}

/* Paper illustrations */

.paper-anatomy {

  width: 100%;

  justify-content: center;

  align-items: flex-end;

}

/* Screen flipbook */

.paper-screen-demo {

  display: block;

  width: 100%;

  max-width: 480px;

  height: 310px;

  flex-shrink: 0;

}

/* Keep captions below the demonstrations */

.row.equal:has(.paper-anatomy) > .column > p {

  align-self: stretch;

  text-align: center;

  margin-top: 0;

}

/* ========================================

   PRESENTATION CODE SANDBOX

======================================== */

.presentation-sandbox {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    align-self: stretch;

    overflow: hidden;

    font-family: var(--font-sans-serif);

}

/* ========================================

   SANDBOX OUTER INTERFACE

======================================== */

.presentation-sandbox code-sandbox {

    display: block;

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

}

.presentation-sandbox .sandbox {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: var(--link-color);

    color: #000;

    border: 1px solid #000;

}

/* ========================================

   SANDBOX HEIGHT

======================================== */

.presentation-sandbox {

    width: 100%;

    height: 100%;

    min-width: 0;

    min-height: 0;

    overflow: hidden;

}

.presentation-sandbox code-sandbox {

    display: block;

    width: 100%;

    height: 100%;

    min-height: 0;

}

.presentation-sandbox .sandbox {

    width: 100%;

    height: 100%;

    min-height: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

}

/* ========================================

   EDITOR + RESULT ROW

======================================== */

.presentation-sandbox .sandbox-content {

    flex: 1 1 0;

    height: 0;

    min-height: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    overflow: hidden;

}

/* ========================================

   LEFT EDITOR

======================================== */

.presentation-sandbox .sandbox-code {

    height: 100%;

    min-height: 0;

    overflow: auto;

}

/* ========================================

   RIGHT RESULT

======================================== */

.presentation-sandbox .sandbox-result {

    height: 100%;

    min-height: 0;

    overflow: hidden;

}

.presentation-sandbox .sandbox-iframe {

    display: block;

    width: 100%;

    height: 100%;

    border: 0;

}

/* ========================================

   INTERFACE TYPOGRAPHY

======================================== */

.presentation-sandbox .sandbox-header,

.presentation-sandbox .sandbox-title,

.presentation-sandbox .sandbox-controls,

.presentation-sandbox button,

.presentation-sandbox select,

.presentation-sandbox option,

.presentation-sandbox label,

.presentation-sandbox [role="tab"] {

    font-family: var(--font-sans-serif);

}

/* ========================================

   CONTROLS

======================================== */

.presentation-sandbox .sandbox-controls {

    flex: 0 0 auto;

    background: var(--link-color);

    color: #000;

    border-bottom: 1px solid #000;

}

/* ========================================

   BUTTONS

======================================== */

.presentation-sandbox button {

    appearance: none;

    padding: .65rem 1.1rem;

    font-family: var(--font-sans-serif);

    font-size: 1.2rem;

    line-height: 1;

    color: #000;

    background: transparent;

    border: 1px solid #000;

    border-radius: 0;

    cursor: pointer;

}

.presentation-sandbox button:hover,

.presentation-sandbox button:focus-visible {

    color: var(--link-color);

    background: #000;

}

.presentation-sandbox button:focus-visible {

    outline: 2px solid #000;

    outline-offset: 2px;

}

/* ========================================

   TABS / DROPDOWNS

======================================== */

.presentation-sandbox [role="tab"],

.presentation-sandbox select {

    font-family: var(--font-sans-serif);

    color: #000;

    background: transparent;

}

.presentation-sandbox [role="tab"][aria-selected="true"] {

    color: var(--link-color);

    background: #000;

}

.presentation-sandbox option {

    font-family: var(--font-sans-serif);

}

/* ========================================

   SANDBOX PREVIEW

======================================== */

.presentation-sandbox .sandbox-result {

    height: 100%;

    min-height: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

}

.presentation-sandbox .sandbox-iframe {

    flex: 1 1 0;

    width: 100%;

    min-height: 0;

    border: 0;

}

/* ========================================

   SANDBOX CONTROLS

======================================== */

.presentation-sandbox .sandbox-result .sandbox-controls {

    flex: 0 0 auto;

    display: flex;

    justify-content: flex-end;

    padding: .75rem;

    background: var(--link-color);

    border-top: 1px solid #000;

    border-bottom: 0;

}

/* ========================================

   CODE EDITOR TYPOGRAPHY

======================================== */

.presentation-sandbox .sandbox-editor,

.presentation-sandbox .sandbox-text,

.presentation-sandbox .sandbox-mirror,

.presentation-sandbox .sandbox-mirror code {

    font-family: monospace;

    font-size: 14px;

    line-height: 1.5;

    font-weight: normal;

    letter-spacing: normal;

    text-transform: none;

    tab-size: 4;

}

.presentation-sandbox .sandbox-text,

.presentation-sandbox .sandbox-mirror {

    margin: 0;

    padding: 1rem;

}

.presentation-sandbox .sandbox-text {

    caret-color: currentColor;

}

/* ========================================

   CODE EDITOR SELECTION

======================================== */

.presentation-sandbox .sandbox-text::selection {

    background: Highlight;

    color: HighlightText;

}

/* ========================================

   SANDBOX DROPDOWNS

======================================== */

.presentation-sandbox .sandbox-code summary {

    font-family: var(--font-sans-serif);

    font-size: 60%;

    line-height: 1;

}

/* ========================================

   MOBILE

   ======================================== */

@media only screen and (max-width: 800px) {

  .venn {

    font-size:

      calc(var(--body-text) * 0.55);

  }

  .venn-circle {

    width:

      62%;

    height:

      65%;

    padding:

      var(--space-md);

  }

  .venn-content {

    width:

      35%;

  }

  .venn-overlap {

    width:

      16%;

    height:

      40%;

    padding:

      var(--space-sm) var(--space-xs);

  }

  .lecture-slide .row,

  .lecture-slide .row.equal,

  .lecture-slide .row.image-large,

  .lecture-slide .row.text-large,

  .lecture-slide .row.image-xlarge,

  .lecture-slide .row.text-xlarge {

    grid-template-columns:

      1fr;

    grid-template-rows:

      1fr 1fr;

  }

  html {

    font-size:

      20%;

  }

}

/* ========================================

   SMALL MOBILE

   ======================================== */

@media only screen and (max-width: 320px) {

  html {

    font-size:

      15%;

  }

}
/* Consistent column inset for text-only columns, including headings and lists. */
.lecture-slide .row > .column:not(:has(> img)) {
  padding: var(--lecture-padding);
  display: flex;
  flex-direction: column;
}

/* Preserve edge-to-edge image-only columns. */
.lecture-slide .row > .column:has(> img:only-child) {
  padding: 0;
}

/* Restore ordered list spacing after the global reset. */
.lecture-paragraph ol {
  margin: var(--space-md) 0;
  padding-left: 1.5em;
  list-style: decimal outside;
}
.lecture-paragraph ol li {
  display: list-item;
  margin-bottom: var(--space-sm);
}
