/* ==========================================================
   schladebeck.de — shared styles
   Fonts are self-hosted (no external requests, DSGVO-friendly).
   ========================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #F5F6FA;
  --surface: #E8E9F4;
  --ink: #1D2042;
  --muted: #545979;
  --line: #CDD0E3;
  --pink: #C2126E;        /* text-safe pink for links */
  --thread: #E8308F;      /* brighter pink for the thread motif */
  --wash: #ECE9F8;        /* lilac wash for tinted sections */
  --btn-ink: #FFFFFF;
  --band: #1D2042;        /* moderation band background */
  --band-ink: #F5F6FA;

  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --prose: 44rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(3rem, 6vw, 5rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16182E;
    --surface: #222543;
    --ink: #ECEDF7;
    --muted: #A9ADCB;
    --line: #353A5E;
    --pink: #FF7ABD;
    --thread: #FF5FB0;
    --wash: #1F2242;
    --btn-ink: #16182E;
    --band: #ECEDF7;
    --band-ink: #16182E;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16182E; --surface: #222543; --ink: #ECEDF7; --muted: #A9ADCB;
  --line: #353A5E; --pink: #FF7ABD; --thread: #FF5FB0; --wash: #1F2242; --btn-ink: #16182E; --band: #ECEDF7; --band-ink: #16182E;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5em; }
/* the thread motif, small, under section headings */
h2::after { content: ""; display: block; width: 3.4rem; height: .6rem; margin-top: .4em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 10'%3E%3Cpath d='M2 6 C 10 0, 16 10, 27 5 S 44 0, 52 4' fill='none' stroke='%23E8308F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 .85em; }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink); max-width: 36rem; }
.muted { color: var(--muted); }
.prose { max-width: var(--prose); }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--prose); }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space) 0; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Placeholder marker for content Alex still needs to fill */
.todo { background: color-mix(in srgb, var(--thread) 14%, transparent); border-left: 3px solid var(--thread); padding: .1em .45em; font-family: var(--sans); font-size: .85em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding-block: 1rem; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
html { scroll-padding-top: 5rem; }
@media (max-width: 600px) {
  .site-header { padding-block: .7rem; }
  .site-header .wrap { gap: .35rem 1.5rem; }
  .site-nav ul { gap: .25rem 1.25rem; }
  .site-nav a { font-size: .95rem; }
  html { scroll-padding-top: 6.5rem; }
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark::after { content: ""; display: inline-block; width: .45em; height: .45em; background: var(--thread); border-radius: 50%; margin-left: .3em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-nav a { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--thread); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--space); padding-block: 2.5rem 3rem; font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(2rem, 6vw, 5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); align-items: end; }
.hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.hero .lede { max-width: 40rem; }
.hero .roles { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-bottom: 1.5rem; }
.portrait { border-radius: 50%; overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1; width: 100%; max-width: 19rem; justify-self: end; align-self: center; box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--thread); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 11rem; order: -1; justify-self: start; }
}

/* ---------- Tinted full-width sections ---------- */
.section.tint { background: var(--wash); padding-block: var(--space); margin-top: var(--space); --ring: var(--wash); }
.section.tint + .section { padding-top: var(--space); }

/* ---------- Home: the thread (the one bold element) ---------- */
.topics { position: relative; }
.topics-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: 3.25rem; }
.thread { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 3.5rem; overflow: visible; pointer-events: none; }
.thread path { fill: none; stroke: var(--thread); stroke-width: 3.5; stroke-linecap: round; }
.topic { position: relative; }
.topic::before { content: ""; position: absolute; left: 0; top: calc(-1.5rem - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--thread); box-shadow: 0 0 0 5px var(--ring, var(--paper)); }
.topic { display: flex; flex-direction: column; align-items: flex-start; }
.topic .more { margin-top: auto; padding-top: .4rem; }
.topics-note { margin: 2.75rem 0 0; color: var(--muted); font-size: 1.05rem; }
.thread-v { display: none; }
.topic h3 { font-size: 1.45rem; margin-bottom: .4em; }
.topic p { margin-bottom: .6em; }
.topic .more { font-family: var(--sans); font-size: .98rem; font-weight: 500; }
@media (max-width: 760px) {
  .topics-grid { grid-template-columns: 1fr; padding-top: 0; padding-left: 2.25rem; gap: 2.25rem; }
  .thread-h { display: none; }
  .thread-v { display: block; position: absolute; left: 0; top: .4rem; bottom: 0; width: 1.5rem; height: calc(100% - .4rem); }
  .topic::before { left: calc(-1.5rem - 8px); top: .45rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .thread path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease-out .3s forwards; }
  .js .topic::before { transform: scale(0); animation: pop .35s ease-out forwards; }
  .js .topic:nth-of-type(1)::before { animation-delay: .3s; }
  .js .topic:nth-of-type(2)::before { animation-delay: .9s; }
  .js .topic:nth-of-type(3)::before { animation-delay: 1.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { transform: scale(1); } }
}

/* ---------- Moderation band ---------- */
.band { position: relative; background: var(--band); color: var(--band-ink); border-radius: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.band h2 { margin-bottom: .5em; }
.band a:hover { color: var(--thread); }
.band p { margin-bottom: .8em; }
.band a { color: inherit; font-family: var(--sans); font-weight: 600; }
.band .photo { border-radius: 1rem; overflow: hidden; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--band-ink) 12%, transparent); }
.band .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- Lists of talks ---------- */
.talks { list-style: none; margin: 0; padding: 0; }
.talks > li { padding-block: .9rem; border-bottom: 1px solid var(--line); }
.talks > li:first-child { border-top: 1px solid var(--line); }
.talk-title { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; line-height: 1.3; display: block; }
.talk-meta { color: var(--muted); font-size: 1rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; }
.quotes figure:first-child { grid-row: span 2; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 .75rem; font-size: 1.1rem; line-height: 1.55; font-style: italic; }
.quotes blockquote::before { content: "“"; display: block; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 3.5rem; line-height: .8; color: var(--thread); }
.quotes figcaption { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Call to action ---------- */
.cta { border-top: 3px solid var(--thread); padding-top: 2rem; max-width: var(--prose); }
.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--btn-ink); background: var(--pink); padding: .75rem 1.35rem; border-radius: 999px; text-decoration: none; margin: .25rem .6rem .25rem 0; }
.button:hover { background: var(--ink); color: var(--paper); }
.actions { margin-top: 1.5rem; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--paper); }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-top: clamp(2rem, 5vw, 4rem); }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: 22ch; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split .photo { border-radius: 1.25rem; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split .photo { max-width: 20rem; } }

/* ---------- Timeline (genuinely a sequence) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: var(--prose); }
.timeline::before { content: ""; position: absolute; left: 4.6rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.6rem; padding-block: .7rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(4.6rem - 5px); top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--thread); }
.timeline li.now::before { background: var(--thread); box-shadow: none; }
.timeline .when { font-family: var(--sans); font-weight: 600; color: var(--muted); padding-top: .1rem; }
.timeline .what { font-family: var(--sans); font-weight: 600; display: block; line-height: 1.3; }
.timeline .detail { display: block; color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: .15rem; }

/* ---------- Principles ---------- */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; max-width: 56rem; }
.principles li { background: var(--wash); border-left: 3px solid var(--thread); border-radius: 0 .75rem .75rem 0; padding: 1rem 1.25rem; }
.principles strong { font-family: var(--sans); display: block; font-size: 1.1rem; line-height: 1.3; margin-bottom: .2rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Details / collapsibles ---------- */
details { border-top: 1px solid var(--line); padding-block: .6rem; max-width: var(--prose); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; padding-block: .4rem; list-style-position: inside; }
summary::marker { color: var(--thread); }
details ul { padding-left: 1.2rem; }
details li { margin-bottom: .35em; }

/* ---------- Speaking: topic areas ---------- */
.areas { display: grid; gap: 3rem; }
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.area h3 { font-size: 1.6rem; }
.area ul { margin: 0; padding: 0; list-style: none; }
.area li { margin-bottom: .9rem; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.formats h3 { font-size: 1.15rem; margin-bottom: .3em; }
.formats p { font-size: 1.02rem; margin: 0; }
@media (max-width: 900px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }

/* ---------- Speaking: archive filter ---------- */
.filter { display: none; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; border: 0; }
.js .filter { display: flex; }
.filter legend { font-family: var(--sans); font-weight: 600; margin-bottom: .6rem; width: 100%; padding: 0; }
.filter button { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem .95rem; cursor: pointer; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-status { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-bottom: 1.5rem; min-height: 1.4em; }
.archive-year { border-top: none; padding: 0; max-width: none; margin-bottom: 2rem; }
.archive-year:last-of-type { border-bottom: none; }
.archive-year > summary { font-size: 1.6rem; font-weight: 700; padding-block: .3rem .6rem; }
.archive-year .talks { max-width: 50rem; }
.archive-year[hidden], .talks > li[hidden] { display: none; }
.tags { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.alias { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--muted); }

/* ---------- Microheuristics ---------- */
.mh-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; max-width: 50rem; }
.mh-list li { border-bottom: 1px solid var(--line); padding-block: .75rem; }
.mh-list a { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.mh-list a:hover { color: var(--pink); }
@media (max-width: 560px) { .mh-list { grid-template-columns: 1fr; } }
.definition { margin: 1.5rem 0 2rem; padding: 1.5rem 1.75rem; border-left: 3px solid var(--thread); background: var(--surface); border-radius: 0 1rem 1rem 0; font-size: 1.2rem; }
.breadcrumb { font-family: var(--sans); font-size: .95rem; margin-bottom: 1rem; }

/* Talk summaries on the speaking page */
.talk-abstract { margin: .3rem 0 0; font-size: 1rem; line-height: 1.55; }
.area li { margin-bottom: 1.4rem; }

/* About page: heading left, text right, so the width is used */
.rows .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr); gap: .5rem 3.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; padding-top: 0; }
.rows .row h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.rows .row-body { max-width: 48rem; }
.rows .row-body > :last-child { margin-bottom: 0; }
.rows .row-body h3 { margin-top: 1.6em; }
.rows .timeline, .rows details { max-width: none; }
@media (max-width: 860px) { .rows .row { grid-template-columns: 1fr; } }
.page-intro .lede { max-width: 44rem; }
.topics h2::after { display: none; }

/* Ongoing marker in the timeline */
.ongoing { display: inline-block; margin-left: .5rem; padding: .05rem .55rem; border-radius: 999px; background: var(--thread); color: #fff; font-size: .78rem; font-weight: 600; vertical-align: .15em; }

/* Story: three chapters as one block */
.story { border-left: 3px solid var(--thread); padding-left: clamp(1rem, 3vw, 1.75rem); }
.story h3 { position: relative; margin-top: 1.5em; }
.story h3:first-child { margin-top: 0; }
.story h3::before { content: ""; position: absolute; left: calc(-1 * clamp(1rem, 3vw, 1.75rem) - 9px); top: .3em; width: 15px; height: 15px; border-radius: 50%; background: var(--thread); box-shadow: 0 0 0 4px var(--paper); }

/* Boxes with pink dots: overview lists */
.dots { list-style: none; margin: 0 0 1.5rem; padding: 0; line-height: 1.75; }
.dots li { display: inline; }
.dots li:not(:last-child)::after { content: "\00a0\00a0•"; color: var(--thread); font-family: var(--sans); font-size: 1.4em; line-height: 0; vertical-align: -.05em; margin-right: .5em; }
.dots strong { font-weight: 600; }
.dots span { color: var(--muted); }
.rows .row-body h3:first-child, .subhead { margin-top: 0; }
.section .subhead { margin-top: 2.75rem; }

/* Collapsible inside text */
.inline-details { border: 0; padding: 0; margin-top: 1rem; }
.inline-details:last-of-type { border: 0; }
.inline-details summary { font-size: 1rem; }
.inline-details .talks { margin-top: .75rem; }

/* Off the clock tiles: compact, icon left */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .6rem; }
.tiles li { background: var(--wash); border-radius: .8rem; padding: .6rem .85rem; font-size: .98rem; line-height: 1.4; display: flex; align-items: center; gap: .7rem; }
.tile-icon { font-size: 1.4rem; line-height: 1; flex: none; }
.flags { display: inline-flex; flex-direction: column; gap: 3px; }
.flags svg { width: 1.45rem; height: auto; border-radius: 2px; display: block; }

/* About intro: photo starts level with the first paragraph, not the title */
.about-intro { grid-template-areas: "title ." "text photo"; row-gap: 0; }
.about-intro h1 { grid-area: title; }
.about-intro > div:not(.photo) { grid-area: text; }
.about-intro .photo { grid-area: photo; margin-top: .45rem; }
@media (max-width: 760px) { .about-intro { grid-template-areas: "title" "text" "photo"; row-gap: 1.5rem; } }
/* a lone last tile stretches across the row instead of hanging alone */
@media (min-width: 900px) { .tiles li:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

/* Microheuristic pages */
.mh-page h2 { font-size: 1.45rem; margin-top: 2rem; }
.mh-page h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.mh-page .definition p:last-child { margin-bottom: 0; }
.mh-page ul { padding-left: 1.2rem; }
.mh-page li { margin-bottom: .3em; }
.mh-summary { width: 100%; border-collapse: collapse; margin: .5rem 0 2rem; font-size: 1.02rem; }
.mh-summary th, .mh-summary td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.mh-summary th { font-family: var(--sans); font-weight: 600; white-space: nowrap; width: 9rem; color: var(--pink); }
.mh-summary tr:first-child th, .mh-summary tr:first-child td { border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .mh-summary th, .mh-summary td { display: block; width: auto; }
  .mh-summary th { padding-bottom: .1rem; border-bottom: 0; }
  .mh-summary tr:first-child td { border-top: 0; }
}
.mh-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 3px solid var(--thread); font-family: var(--sans); font-weight: 500; font-size: 1rem; }
.section.tight-top { padding-top: 1.5rem; }
