* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
 * `overflow-x: clip` (not `hidden`) as a hard guarantee against horizontal overflow —
 * `clip` doesn't establish a new scroll container the way `hidden` would, so it doesn't
 * break `position: sticky` on descendants (e.g. .section-heading-sticky) the way
 * `overflow-x: hidden` on an ancestor can.
 */
html {
  overflow-x: clip;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #6b6b6b; /* #777 was 4.48:1 on white; this is 4.68:1 even on #f0f0f0 */
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /*
   * IDM design tokens — port of idm-prototype/app/globals.css's @theme block.
   * --riso-ink / --riso-ink-text / --riso-ink-r/g/b / --treatment are set
   * per-request by site/snippets/treatment-style.php; these are the rest of
   * the system. Use --riso-ink-text for text, --riso-ink for everything else.
   */
  --idm-font-display: 'Faculty Glyphic', ui-sans-serif, system-ui, sans-serif;
  --idm-font-sans: 'Public Sans', ui-sans-serif, system-ui, sans-serif;
  --idm-font-mono: 'Geist Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;

  --idm-text: #1a1a1a;
  --idm-text-light: #595959;
  --idm-text-muted: #6b6b6b; /* see --color-grey */
  --idm-bg: #ffffff;
  --idm-border: #e0e0e0;
  --idm-surface: #fafafa;
  --idm-surface-light: #f0f0f0;

  /* rem, not px, so the fixed sidebar widens with text resizing (1.4.4);
     10rem = 200px at the 20px root size. */
  --idm-nav-width: 10rem;
}

html {
  font-family: var(--idm-font-sans);
  color: var(--idm-text);
  background: var(--idm-bg);
  font-weight: 400;
  letter-spacing: 0.1px;
  /* idm-prototype/app/globals.css:85 — every ported rem value was authored
     against this, not the 16px default; without it every rem renders at 80%
     and rem/px/vw values ported 1:1 desynchronize from each other. */
  font-size: 20px;
}
img {
  width: 100%;
}
body {
  padding: var(--padding);
  /* .footer is edge-to-edge horizontally via the .header/.main/.footer
     negative-margin trick, but that doesn't touch body's own
     padding-bottom — left at var(--padding) it'd leave a gap below the
     footer instead of it sitting flush with the true bottom of the page. */
  padding-bottom: 0;
  max-width: 70rem;
  margin: 0 auto;
  line-height: 1.7;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
  font-family: var(--idm-font-mono);
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}

/* Keyboard focus ring (2.4.7). --riso-ink-text is >= 5:1 on the light
   surfaces; the ink-colored footer panel swaps in white. */
:focus-visible {
  outline: 2px solid var(--riso-ink-text, var(--idm-text));
  outline-offset: 2px;
}
.footer :focus-visible {
  outline-color: #fff;
}

/* Skip link — first Tab stop on every page (2.4.1); off-screen until focused. */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--idm-bg);
  color: var(--idm-text);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--idm-font-display);
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
}

/* Ambient background canvas — see assets/js/field-background.js. */
#field-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
}
/* At desktop the side nav and site label are fixed over the canvas with no
   background, and dense field lines behind them pulled ink-colored and muted
   text under 4.5:1 (1.4.3). Fade the field out behind both: the right-hand
   nav column, and a top band under the label. rem-based, so the faded area
   grows with the nav when text is enlarged. */
@media screen and (min-width: 48em) {
  #field-background {
    --field-fade-nav: linear-gradient(to left, transparent calc(var(--idm-nav-width) + 0.5rem), #000 calc(var(--idm-nav-width) + 3rem));
    --field-fade-top: linear-gradient(to bottom, transparent 4rem, #000 6rem);
    -webkit-mask-image: var(--field-fade-nav), var(--field-fade-top);
    -webkit-mask-composite: source-in;
    mask-image: var(--field-fade-nav), var(--field-fade-top);
    mask-composite: intersect;
  }
}

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

/* ==========================================================================
   Header / site label / side nav — port of app/layout.tsx + SideNav.tsx.
   Full-bleed layout (no `body` max-width) so the fixed right nav + main
   content match the prototype's `sm:pr-[200px]` reservation.
   ========================================================================== */

.header,
.main,
.footer {
  /*
   * Edge-to-edge relative to the *viewport*, not to `body`'s own padding box —
   * `body` keeps its `max-width: 70rem; margin: 0 auto` centering for the legacy
   * unstyled templates' .grid/.text content, but these three chrome elements need
   * to reach the true screen edge on any viewport width, including wider than
   * 70rem + padding. The `50% - 50vw` trick centers on the viewport regardless of
   * body's own width/centering, without the `vw`-vs-scrollbar overflow risk that
   * `width: 100vw` alone would carry (html's `overflow-x: clip` above is a second,
   * independent guard against that).
   */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.header {
  position: relative;
  padding: 0;
  margin-bottom: 0;
}

.site-label {
  display: block;
  padding: 1.25rem 1.5rem;
  font-family: var(--idm-font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* Picks up the per-request treatment ink, like .link-primary/nav links do. */
  color: var(--riso-ink-text, var(--idm-text));
  transition: font-size 0.2s ease-out, color 0.3s ease;
}
/* The scroll-driven shrink (html.is-scrolled, scroll-reveal.js) snaps instead
   of animating under reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .site-label {
    transition: color 0.3s ease;
  }
}
@media screen and (min-width: 48em) {
  .site-label {
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    z-index: 30;
    padding: 0;
  }
  /* Fades a white scrim behind the label so it stays legible over whatever
     scrolls underneath (hero images, carousel slides) — a full-width bar
     like .mobile-nav-topbar's, not a box hugging the text, so it reads as
     part of the page's top edge rather than its own UI chip. `position:
     fixed` (not absolute) makes it span the viewport instead of the
     label's own auto-sized box. Sits behind the text via negative z-index. */
  .site-label::before {
    content: '';
    position: fixed;
    inset: 0 0 auto 0;
    height: 4.5rem;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      var(--idm-bg) 0%,
      var(--idm-bg) 55%,
      color-mix(in srgb, var(--idm-bg) 96%, transparent) 62%,
      color-mix(in srgb, var(--idm-bg) 88%, transparent) 68%,
      color-mix(in srgb, var(--idm-bg) 78%, transparent) 74%,
      color-mix(in srgb, var(--idm-bg) 65%, transparent) 79%,
      color-mix(in srgb, var(--idm-bg) 50%, transparent) 84%,
      color-mix(in srgb, var(--idm-bg) 35%, transparent) 89%,
      color-mix(in srgb, var(--idm-bg) 22%, transparent) 93%,
      color-mix(in srgb, var(--idm-bg) 12%, transparent) 96%,
      color-mix(in srgb, var(--idm-bg) 5%, transparent) 98%,
      transparent 100%
    );
  }
  html.is-scrolled .site-label {
    font-size: 0.79rem;
  }
}

.side-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--idm-bg);
}
@media screen and (min-width: 48em) {
  .side-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--idm-nav-width);
    /* Above .site-label (z-index 30) so its full-width scrim (which spans
       under the side-nav's own top-right corner) never paints over the nav
       links. */
    z-index: 31;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.75rem 1.5rem;
    /* SideNav.tsx's <aside> is `bg-transparent` with no shadow — the field
       background canvas shows through. No `pointer-events-none`/`-auto` split
       needed here since nothing sits under the sidebar's own width to click. */
    background: transparent;
    /* Enlarged text (1.4.4) makes the nav taller than the viewport-high
       column; scroll it in place rather than spill over the footer. */
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Set by assets/js/sidebar-footer-guard.js once the footer scrolls near
     the bottom of the fixed sidebar — swaps `fixed` for `absolute` so the
     sidebar scrolls away with the page instead of sitting on top of the
     footer. `top` is set inline by that script; height stays 100vh so the
     internal flex layout (logo / nav / clock pinned via margin-top: auto)
     doesn't collapse. */
  .side-nav.is-detached {
    position: absolute;
    top: 0;
    bottom: auto;
    height: 100vh;
  }
}

/* Sidebar top group — logomark + search bar, port of SideNav.tsx's
   `<div className="pointer-events-auto flex flex-col gap-3">`. */
.side-nav-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* IDM logomark — top of the sidebar. Port of IdmLogomark.tsx: a treatment-dithered
   background square (canvas painted by the site-wide dither-image script) with the
   white IDM glyph absolutely centered over it. */
.idm-logomark,
.side-nav .idm-logomark {
  display: block;
  width: 100%;
  /* Its root element is an <a> inside .side-nav — `.side-nav .idm-logomark`
     (two classes) is needed, not just `.idm-logomark`, to out-specificity
     the generic `.side-nav a` padding below (one class + one element),
     which would otherwise leak onto it regardless of source order. */
  padding: 0;
}
.idm-logomark-figure {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--idm-surface-light);
}
.idm-logomark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.idm-logomark-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Search bar — port of SideNav.tsx's SearchBar, simplified to always show
   the input rather than collapsing to an icon-only button first (that
   collapsed state — `.search-bar.is-collapsed .search-bar-input` forcing
   width/opacity to 0 — was the actual cause of "invisible" search text: the
   JS-added `.is-collapsed` class never got removed reliably). The icon is
   now just a submit button. */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--riso-ink, var(--idm-text));
  background: var(--idm-bg);
  padding: 0.45rem 0.6rem;
  transition: border-color 0.2s ease-out;
}
/* The input itself is borderless and outline-less, so the ring goes on the
   bordered bar around it. */
.search-bar:focus-within {
  outline: 2px solid var(--riso-ink-text, var(--idm-text));
  outline-offset: 2px;
}
.search-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: none;
  color: var(--idm-text-muted);
  cursor: pointer;
}
.search-bar-icon svg {
  width: 100%;
  height: 100%;
}
.search-bar-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--idm-text);
  opacity: 1;
  transition: width 0.2s ease-out, opacity 0.15s ease-out;
  /* type="search" gets native platform chrome (WebKit/Blink) that can
     override `color` for the typed text unless appearance is reset —
     without this the input can render with invisible/system-colored text
     despite the color rule above being technically correct. */
  -webkit-appearance: none;
  appearance: none;
  -webkit-text-fill-color: var(--idm-text);
}
.search-bar-input::-webkit-search-cancel-button,
.search-bar-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-bar-input::placeholder {
  color: var(--idm-text-muted);
  /* Without this, `-webkit-text-fill-color` set above on the input itself
     can leak into ::placeholder's rendering in WebKit/Blink and make the
     placeholder render in the (dark) typed-text color instead of this
     lighter, standard "greyed out" placeholder color. */
  -webkit-text-fill-color: var(--idm-text-muted);
  opacity: 1;
}

/* Sidebar footer — NYC clock + NYU Tandon logo, pinned to the bottom via
   margin-top: auto (works whether .side-nav is a fixed-height column at desktop or
   an in-flow block on mobile, where it just falls after the nav links instead). */
.side-nav-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}
.side-nav-clock {
  font-family: var(--idm-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: #444;
  text-align: right;
}
.side-nav-clock-label {
  color: var(--idm-text-light);
  margin-right: 0.4rem;
}
.side-nav-tandon {
  display: block;
}
.side-nav-tandon img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.side-nav a,
.menu a {
  display: block;
  padding: 0.2rem 0 0.2rem 0.75rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-left: 2px solid transparent;
  color: var(--idm-text);
  opacity: 0.8;
  transition: opacity 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}
.side-nav a:hover,
.menu a:hover {
  opacity: 1;
  color: var(--riso-ink-text, var(--idm-text));
}
.side-nav a[aria-current],
.menu a[aria-current] {
  opacity: 1;
  font-weight: 600;
  border-color: currentColor;
  color: var(--riso-ink-text, var(--idm-text));
}

/* Submenu group (side-nav.php, `people` template) — a <details> whose
   <summary> matches the link type above, with a +/− marker in place of the
   native triangle. Children indent one step and keep the same left-border
   current-page marker. */
.side-nav-group {
  width: 100%;
}
.side-nav-group summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0 0.2rem 0.75rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-left: 2px solid transparent;
  color: var(--idm-text);
  opacity: 0.8;
  cursor: pointer;
  list-style: none;
  transition: opacity 0.2s ease-out, color 0.2s ease-out;
}
.side-nav-group summary::-webkit-details-marker {
  display: none;
}
.side-nav-group summary::after {
  content: "+";
  font-weight: 400;
  opacity: 0.6;
}
.side-nav-group[open] summary::after {
  content: "\2212";
}
.side-nav-group summary:hover,
.side-nav-group summary.is-active {
  opacity: 1;
  color: var(--riso-ink-text, var(--idm-text));
}
.side-nav-group summary.is-active {
  font-weight: 600;
}
.side-nav-group a {
  margin-left: 0.75rem;
}

.social {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0 0 0.75rem;
}
/* Icons are non-text (1.4.11, 3:1), so the treatment's primary --riso-ink,
   not the darker --riso-ink-text: >= 3.2:1 on every light surface token. */
.social a {
  display: flex;
  align-items: center;
  padding: 0;
  border-left: none;
  color: var(--riso-ink, #444);
}
.social a:hover {
  color: var(--idm-text);
}
.social svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Mobile nav — port of MobileNav.tsx. Below 48em this fully replaces
   `.site-label` + `.side-nav` (both hidden here), same split as the
   prototype's `hidden sm:flex` SideNav / `sm:hidden` MobileNav.
   ========================================================================== */

@media screen and (max-width: 47.99em) {
  .site-label,
  .side-nav {
    display: none;
  }
}
@media screen and (min-width: 48em) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
}
/* Fading scrim instead of a solid bar + border — keeps the label/logo
   legible over whatever scrolls underneath, fading out past the bar's own
   edge rather than cropping content right at a hard line. Sits behind the
   in-flow label/logo via negative z-index, same technique as .site-label. */
.mobile-nav-topbar::before {
  content: '';
  position: absolute;
  inset: 0 0 -1.5rem 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--idm-bg) 0%,
    var(--idm-bg) 63%,
    color-mix(in srgb, var(--idm-bg) 85%, transparent) 72%,
    color-mix(in srgb, var(--idm-bg) 60%, transparent) 80%,
    color-mix(in srgb, var(--idm-bg) 35%, transparent) 88%,
    color-mix(in srgb, var(--idm-bg) 15%, transparent) 94%,
    transparent 100%
  );
}
.mobile-nav-label {
  font-family: var(--idm-font-sans);
  font-weight: 600;
  font-size: 0.62rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 12rem;
  color: var(--riso-ink-text, var(--idm-text));
}
.mobile-nav-tandon {
  display: block;
  flex-shrink: 0;
}
.mobile-nav-tandon img {
  display: block;
  width: 110px;
  height: auto;
}

.mobile-nav-bottombar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  height: 56px;
  display: flex;
  background: var(--idm-bg);
  border-top: 1px solid var(--idm-border);
}
.mobile-nav-bottombar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--idm-font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--idm-text-light);
}
.mobile-nav-bottombar-item:first-child {
  border-right: 1px solid var(--idm-border);
}
.mobile-nav-bottombar-item svg {
  width: 15px;
  height: 15px;
}
.mobile-nav-bottombar-item[aria-expanded="true"] {
  color: var(--idm-text);
}
.mobile-nav-menu-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 10px;
}
.mobile-nav-menu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease-out, opacity 0.15s ease-out, top 0.2s ease-out;
}
.mobile-nav-menu-icon span:nth-child(1) {
  top: 0;
}
.mobile-nav-menu-icon span:nth-child(2) {
  top: 4px;
}
.mobile-nav-menu-icon span:nth-child(3) {
  top: 8px;
}
.mobile-nav-bottombar-item[aria-expanded="true"] .mobile-nav-menu-icon span:nth-child(1) {
  top: 4px;
  transform: rotate(45deg);
}
.mobile-nav-bottombar-item[aria-expanded="true"] .mobile-nav-menu-icon span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-bottombar-item[aria-expanded="true"] .mobile-nav-menu-icon span:nth-child(3) {
  top: 4px;
  transform: rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}
.mobile-nav.is-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  inset: auto 0 56px 0;
  z-index: 35;
  max-height: calc(100vh - 52px - 56px - 24px);
  overflow-y: auto;
  border-top: 1px solid var(--idm-border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.mobile-nav.is-open .mobile-nav-drawer {
  transform: translateY(0);
}
.mobile-nav-drawer-handle {
  width: 32px;
  height: 3px;
  margin: 1rem auto 0.5rem;
  background: rgba(0, 0, 0, 0.25);
}
.mobile-nav-links {
  padding: 0 1rem;
}
.mobile-nav-links li {
  border-bottom: 1px solid var(--idm-border);
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--idm-text);
  opacity: 0.85;
}
.mobile-nav-links a[aria-current] {
  font-weight: 700;
  opacity: 1;
}
.mobile-nav-links a span {
  opacity: 0.4;
}
/* Group (mobile-nav.php, `people` template) — non-link label, children
   always visible and indented, sharing the row dividers above. */
.mobile-nav-group-label {
  display: block;
  padding: 0.9rem 0 0.25rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--idm-text-muted);
}
.mobile-nav-group ul {
  padding-left: 1rem;
}
.mobile-nav-group li:last-child {
  border-bottom: none;
}
.mobile-nav-drawer .social {
  padding: 1.25rem 1rem;
}

@media screen and (max-width: 47.99em) {
  /* Focus and anchor scrolling land clear of the fixed 52px top bar and
     56px bottom bar instead of underneath them. */
  html {
    scroll-padding-top: 60px;
    scroll-padding-bottom: 64px;
  }
  /* .main's existing 4.5rem top padding already clears the fixed 52px
     topbar; bottom padding is raised to clear the fixed 56px bottombar
     (mobile-nav-bottombar) plus some breathing room. */
  .main {
    padding-bottom: 5rem;
  }
  .footer {
    margin-bottom: 56px;
  }
}

.main {
  /*
   * .main no longer inherits `body`'s padding now that it's viewport-edge-to-edge
   * (see the .header/.main/.footer rule above), so its own left/right content
   * padding is set directly here instead.
   */
  display: block;
  padding: 4.5rem 1rem 3rem;
}
@media screen and (min-width: 40em) {
  .main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media screen and (min-width: 48em) {
  .main {
    /* At least one screen tall, so on short pages the footer starts below
       the fold and the 100vh fixed sidebar (see sidebar-footer-guard.js)
       never has to detach up and off the top of the page. */
    min-height: 100vh;
    padding-top: 3rem;
    padding-right: calc(var(--idm-nav-width) + 1.5rem);
  }
}

/* ==========================================================================
   Footer — port of components/Footer.tsx: riso-ink panel with a noise
   texture, a Location/Follow/Stay-in-touch grid, and a bottom bar.
   ========================================================================== */

.footer {
  position: relative;
  padding: 3rem 1rem; /* matches .main's mobile side padding */
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 4rem;
}
@media screen and (min-width: 40em) {
  .footer {
    padding: 3rem 3rem;
  }
}
.footer-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  z-index: 1;
}
@media screen and (min-width: 40em) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-label {
  font-family: var(--idm-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  /* 0.92, not lower: small text on the ink panel needs 4.5:1, and 0.75
     white dropped to ~3.6:1 on the darker inks. */
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.5rem;
}
.footer-address {
  font-family: var(--idm-font-sans);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #fff;
}

.footer-colophon {
  font-family: var(--idm-font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #fff;
  max-width: 32ch;
}
.footer-colophon a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
/* The panel is ink-colored, so an ink hover color would vanish into it —
   signal hover with a heavier underline and keep the text white. */
.footer-colophon a:hover {
  text-decoration-thickness: 2px;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  transition: opacity 0.2s ease-out;
}
/* Underline rather than fade: 60% white on the ink panel was 2.9:1. */
.footer-social a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media screen and (min-width: 40em) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-bottom span {
  font-family: var(--idm-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92); /* see .footer-label */
}

/* ==========================================================================
   Section heading — port of components' shared "Programs" / "Exhibitions" /
   etc. heading treatment (large display type + arrow-link "view more").
   ========================================================================== */

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.section-heading-title {
  font-family: var(--idm-font-display);
  font-weight: 500;
  line-height: 1;
  /* Single long words ("WWWunderkammer") at display size overflow 320px. */
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--idm-text);
}
.section-heading-intro {
  font-family: var(--idm-font-sans);
  font-size: 0.95rem;
  color: var(--idm-text-light);
  max-width: 60ch;
}

/* Section bands & dividers */
.section-band {
  border-bottom: 1px solid var(--idm-border);
  padding: 2rem 0;
}
.section-band:first-child {
  padding-top: 0;
}
.section-band:last-child {
  border-bottom: none;
}
.section-band-title {
  font-family: var(--idm-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--idm-text-muted);
  margin-bottom: 1.25rem;
}

.heading-col-2 {
  grid-column: 2 / 3;
}
.heading-col-2-4 {
  grid-column: 2 / 4;
}
@media screen and (max-width: 47.99em) {
  .heading-col-2,
  .heading-col-2-4 {
    grid-column: 1 / -1;
  }
}

/* .section-heading-sticky's actual rules live in
   assets/css/templates/home.css (auto-loaded for home.php only) — it's the
   only template that uses this class, and a duplicate definition here was
   silently losing the cascade to that one since it loads later via `@auto`. */

/* ==========================================================================
   Arrow link — "view all" / "view more" / detail links.
   ========================================================================== */

/* Port of idm-prototype/app/globals.css's .link-primary/.link-btn — used by
   the home-hero Apply button (home.php, home.yml's applyButton). */
.link-primary {
  color: var(--riso-ink-text, var(--color-text));
  transition: color 0.2s ease-out, gap 0.2s ease-out;
}
.link-primary:hover {
  color: var(--idm-text-light);
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2em 1.8em;
  border: 1px solid currentColor;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: color-mix(in srgb, white 80%, transparent);
  transition: color 0.2s ease-out, background 0.2s ease-out, box-shadow 0.3s ease-out;
}
/* Matches the drop-shadow glow used on `.card:hover` and the showcase links
   — both keyed off `--riso-ink` so the glow follows the page's treatment ink.
   This used to key off `--ui-primary`/`--ui-secondary`, which are never set
   anywhere in the codebase, so it always fell back to a hardcoded blue glow
   regardless of treatment — visually inconsistent with every other hover. */
.link-btn:hover {
  background: color-mix(in srgb, white 90%, transparent);
  box-shadow:
    0 0 10px 1px color-mix(in srgb, var(--riso-ink, #5B7FFF) 70%, transparent),
    0 0 28px 4px color-mix(in srgb, var(--riso-ink, #7B9FFF) 40%, transparent);
}
.home-hero-apply {
  align-self: flex-start;
  margin-top: 1.5rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.home-hero-apply-arrow {
  font-size: 1.2em;
  margin-bottom: 2px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--riso-ink-text, var(--idm-text));
  transition: gap 0.2s ease-out, color 0.2s ease-out;
}
.arrow-link:hover {
  gap: 0.75rem;
  color: var(--idm-text-light);
}
.arrow-link-arrow {
  transition: transform 0.2s ease-out;
}

/* ==========================================================================
   Card / card-grid — generic content-preview card, reused across index
   templates (programs, events, gallery, work, research, faculty, editorial).
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media screen and (min-width: 32em) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--idm-border);
  background: var(--idm-bg);
  color: var(--idm-text);
  overflow: hidden;
  filter: drop-shadow(0 0 0 transparent);
  transition: border-color 0.2s ease-out, filter 0.3s ease-out;
}
.card:hover {
  border-color: var(--riso-ink, var(--idm-text));
  filter: drop-shadow(0 0 24px var(--riso-ink, rgba(255, 255, 255, 0.4)));
}
.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  /* .card clips (overflow: hidden, for the image hover), so long words
     at enlarged text sizes must wrap rather than be cut off (1.4.4, 1.4.12). */
  overflow-wrap: anywhere;
}
.card-meta {
  font-family: var(--idm-font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--idm-text-muted);
}
.card-title {
  font-family: var(--idm-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--idm-text);
}
/* Reserves room in the body so card-text can't run under the badge. */
.card:has(.card-external-icon) .card-body {
  padding-right: 2.5rem;
}
.card-external-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.85rem;
  color: var(--idm-text-muted);
  background: var(--idm-bg);
  border: 1px solid var(--idm-border);
  border-radius: 50%;
  transition: color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.card:hover .card-external-icon {
  color: var(--riso-ink-text, var(--idm-text));
  border-color: var(--riso-ink, var(--idm-text));
  transform: translate(0.1em, -0.1em);
}
.card-text {
  font-family: var(--idm-font-sans);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--idm-text-light);
}
.card:hover .card-title {
  color: var(--riso-ink-text, var(--idm-text));
}

/* Two-up card grid — events' Upcoming and gallery's Current groups. */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media screen and (min-width: 32em) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* One item per row — faculty, and past events/gallery shows. Still the
   `card` snippet (same meta/title/text type treatment as every index); only
   the box changes: 200px-wide image left at its native aspect ratio
   (templates pass ratio 'auto', so card.php doesn't crop), text right, rows
   divided by a rule instead of bordered cards. */
.card-list {
  display: flex;
  flex-direction: column;
  background: var(--idm-bg);
}
.card-list .card {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border: none;
  overflow: visible;
}
.card-list .card + .card {
  border-top: 1px solid var(--idm-border);
}
/* The card-wide glow reads as a stray halo on a full-width row — the photo
   reveal and title color are hover feedback enough. */
.card-list .card:hover {
  filter: none;
}
.card-list .card > img {
  flex: none;
  width: 200px;
  height: auto;
}
.card-list .card-body {
  padding: 0;
  max-width: 36rem;
}
/* No image (card.php omits the <img>): hold the text column in line with
   the rows that have one. */
.card-list .card:not(:has(> img)) .card-body {
  margin-left: calc(200px + 1.5rem);
}
.card-list .card-external-icon {
  right: 0;
  bottom: 1.25rem;
}
/* A 200px image leaves a phone ~120px for text — shrink it there. */
@media screen and (max-width: 31.99em) {
  .card-list .card {
    gap: 1rem;
  }
  .card-list .card > img {
    width: 96px;
  }
  .card-list .card:not(:has(> img)) .card-body {
    margin-left: calc(96px + 1rem);
  }
}

/* Image gallery on detail pages (layouts/entry.php's `gallery` param) —
   shared by event/exhibition and research-project, so it lives here rather
   than in a per-template stylesheet. */
.entry-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media screen and (min-width: 32em) {
  .entry-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Dither image — canvas figure painted by assets/js/treatments/dither-image.js.
   ========================================================================== */

.dither-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--idm-surface);
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 300ms ease;
}
.dither-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.dither-image-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 1;
  transition: opacity 300ms ease;
}
.dither-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 300ms ease;
}
.dither-image.is-revealed .dither-image-canvas,
[data-image-reveal].is-revealed .dither-image-canvas,
.dither-image:hover .dither-image-canvas,
[data-image-reveal]:hover .dither-image-canvas,
.discovery-tile:hover .dither-image-canvas,
.card:hover .dither-image-canvas {
  opacity: 0;
}
.dither-image.is-revealed .dither-image-photo,
[data-image-reveal].is-revealed .dither-image-photo,
.dither-image:hover .dither-image-photo,
[data-image-reveal]:hover .dither-image-photo,
.discovery-tile:hover .dither-image-photo,
.card:hover .dither-image-photo {
  opacity: 1;
}
.dither-image.is-revealed,
[data-image-reveal].is-revealed,
.dither-image:hover,
[data-image-reveal]:hover,
.discovery-tile:hover .dither-image,
.card:hover .dither-image {
  filter: drop-shadow(0 0 24px var(--riso-ink, rgba(255, 255, 255, 0.4)));
}
/* A page's own single featured/hero image (dither-image.php's $static param)
   — no canvas treatment, no hover/scroll reveal crossfade, just the photo. */
.dither-image-static,
.dither-image-static:hover {
  filter: none;
}
.dither-image-static .dither-image-photo {
  opacity: 1;
  transition: none;
}

.dither-image-caption {
  padding-top: 0.6rem;
  font-family: var(--idm-font-sans);
  font-size: 0.8rem;
  color: var(--idm-text-light);
}

/* ==========================================================================
   Program card — port of components/content/ProgramCard.tsx's glass card.
   ========================================================================== */

.program-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--riso-ink, #1a1a1a) 22%, transparent);
  background: color-mix(in srgb, var(--riso-ink, #1a1a1a) 6%, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.program-card-eyebrow {
  font-family: var(--idm-font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--idm-text-light);
}
.program-card-title {
  font-family: var(--idm-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--idm-text);
}
.program-card-body {
  font-family: var(--idm-font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--idm-text) 90%, transparent);
  max-width: 62ch;
}
.program-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.3rem;
}
.program-card-chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.program-card-chip {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  font-family: var(--idm-font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--idm-text) 70%, transparent);
}
.program-card-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--riso-ink-text, var(--idm-text));
  transition: gap 0.2s ease-out;
}
.program-card-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   Featured carousel — port of components/FeaturedCarousel.tsx.
   ========================================================================== */

/* Header row: "Featured" label left, controls right — above the slides so
   they hold still while slides with different text lengths swap below. */
.featured-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.featured-carousel-label {
  font-family: var(--idm-font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--idm-text) 80%, transparent);
}
.featured-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.featured-carousel-counter {
  font-family: var(--idm-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--idm-text-light);
  margin-right: 0.4rem;
}
/* 2.25rem = 45px at the 20px root — a comfortable touch target (2.5.5). */
.featured-carousel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--idm-border);
  border-radius: 50%;
  background: var(--idm-bg);
  color: var(--riso-ink-text, var(--idm-text));
  transition: border-color 0.2s ease-out, background 0.2s ease-out, color 0.2s ease-out;
}
.featured-carousel-button:hover {
  border-color: var(--riso-ink, var(--idm-text));
  background: var(--riso-ink, var(--idm-text));
  color: #fff;
}
/* Stand-in frame for a slide with no image, same ratio as the cropped ones. */
.featured-carousel-noimage {
  width: 100%;
  background: var(--idm-surface-light);
}

.featured-carousel-slides {
  position: relative;
}
/* Hidden slides stay display:none (so their links aren't focusable). A plain
   opacity transition can't run across a display change, so:
   - fade-out: `display` transitions as a discrete property (allow-discrete),
     which keeps the outgoing slide rendered until its opacity reaches 0;
   - fade-in: @starting-style gives the incoming slide opacity 0 as its first
     style, so it transitions up from there instead of appearing at 1.
   Browsers without these features swap instantly, as before. */
.featured-carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 300ms ease, display 300ms allow-discrete;
}
.featured-carousel-slide[data-carousel-visible="true"] {
  display: block;
  opacity: 1;
}
@starting-style {
  .featured-carousel-slide[data-carousel-visible="true"] {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .featured-carousel-slide {
    transition: none;
  }
}

.featured-carousel-link {
  display: block;
  color: var(--idm-text);
}
.featured-carousel-body {
  padding-top: 0.9rem;
  max-width: 46rem;
}
.featured-carousel-title {
  font-family: var(--idm-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--idm-text);
}
.featured-carousel-meta {
  font-family: var(--idm-font-sans);
  font-size: 0.85rem;
  color: var(--idm-text-light);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}
.featured-carousel-description {
  font-family: var(--idm-font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--idm-text);
  margin-bottom: 0.75rem;
}
.featured-carousel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
}
.featured-carousel-tag {
  font-family: var(--idm-font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--idm-text-muted);
}

/* ==========================================================================
   [data-reveal] — vanilla approximation of the prototype's InView /
   whileInView scroll reveal. See assets/js/scroll-reveal.js.
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* Reduced motion: content is simply there — no rise, blur, or fade, and no
   dependency on scroll-reveal.js having run. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
  /* Migrated content has long bare URLs as link text; let them wrap
     instead of running past a 320px viewport (1.4.10). */
  overflow-wrap: anywhere;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text p {
  max-width: 65ch;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1 {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
/* Article body headings start at h2 (directly under the page h1), but keep
   the in-text subhead look they had as h3s. */
.article .text h2 {
  font-size: inherit;
  margin-bottom: 0;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.video {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.margin-xl {
  margin-bottom: 4.5rem;
}

@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  gap: 0.75rem;
  padding-top: 3rem;
}
.pagination > span {
  color: var(--idm-text-muted);
}
.pagination > * {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--idm-font-mono);
  border: 1px solid var(--idm-border);
  color: var(--idm-text);
  transition: border-color 0.2s ease-out, color 0.2s ease-out;
}
.pagination > a:hover {
  border-color: var(--riso-ink, var(--idm-text));
  color: var(--riso-ink-text, var(--idm-text));
}
