/* ==========================================================================
   Spoken theme stylesheet
   One file. Colours and fonts are set once in :root below.
   Design reference: design/spoken-mockup.html
   ========================================================================== */

/* Fonts: self-hosted (no requests to Google or anyone else). SIL Open Font Licence. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --paper2: #F5F5F3;
  --warm: #FBF6F0;
  --night: #101624;
  --ink: #121212;
  --ink2: #5C5C5C;
  --rule: #E3E3E0;
  --accent: #C2371A;        /* the one red accent */
  --accent-dark: #A52D13;
  --serif: var(--gh-font-heading, "Newsreader"), "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: var(--gh-font-body, "Inter"), -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  background: linear-gradient(var(--warm), var(--paper) 620px) no-repeat var(--paper);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.dot { color: var(--accent); }
h1 em, h2 em { font-style: italic; font-weight: 500; }

.kick { display: flex; align-items: center; gap: 10px; color: var(--accent); margin-bottom: 12px; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.kick::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }
h2 { font: 600 clamp(28px, 6.6vw, 46px)/1.05 var(--serif); letter-spacing: -.02em; max-width: 20ch; margin-bottom: 14px; }
.lede { font-size: 18px; max-width: 46ch; color: var(--ink2); }
.lede a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.empty { color: var(--ink2); padding: 40px 0; }
.more { margin-top: 22px; font: 600 14px/1.2 var(--sans); }
.more a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

main { padding-bottom: 64px; }
main:has(> .sect--accent:last-child) { padding-bottom: 0; }

/* ---------- Masthead ---------- */
.mast { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.logo { font: 600 32px/1 var(--serif); letter-spacing: -.025em; text-decoration: none; }
.logo img { max-height: 40px; width: auto; }
.logo--small { font-size: 24px; }
.mast__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.iconbtn:hover { background: var(--paper2); }
.iconbtn svg, .browse__search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mcta { font: 600 13px/1 var(--sans); text-decoration: none; color: #fff; background: var(--ink); padding: 11px 16px; border-radius: 99px; white-space: nowrap; }
.mcta:hover { background: var(--accent); }
.nav { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 20px; font: 500 14px/1.2 var(--sans); }
.nav a { color: var(--ink2); text-decoration: none; white-space: nowrap; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav .nav-current a { color: var(--ink); border-color: var(--accent); }
@media (min-width: 760px) {
  .nav { order: 0; flex: 0 1 auto; margin-left: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 28px; padding-bottom: 8px; }
.hero h1 { font: 600 clamp(46px, 12.5vw, 104px)/.95 var(--serif); letter-spacing: -.035em; margin: 12px 0 16px; }
.hero--slim { padding-top: 36px; }
.hero__h, .hero--slim h1 { font: 600 clamp(34px, 8vw, 60px)/1 var(--serif); letter-spacing: -.025em; margin: 0 0 14px; max-width: 22ch; }

/* ---------- Browse bar: search + topics ---------- */
.browse { display: flex; gap: 8px; align-items: center; margin: 22px 0 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.browse::-webkit-scrollbar { display: none; }
.browse__topics { display: flex; gap: 8px; }
.browse__search { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 600 13px/1 var(--sans); padding: 10px 14px 10px 12px; border-radius: 99px; background: var(--ink); color: #fff; }
.browse__search svg { width: 16px; height: 16px; }
.chip { display: inline-block; white-space: nowrap; font: 500 13px/1 var(--sans); padding: 10px 14px; border-radius: 99px; border: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: var(--ink2); }
.chip:hover, .chip--on { border-color: var(--ink); color: var(--ink); }

@media (min-width: 960px) {
  /* Desktop has no sideways swipe, so topics wrap onto more lines instead of running off the edge */
  .browse, .browse__topics { flex-wrap: wrap; overflow: visible; }
}

/* ---------- Labels ---------- */
.labels { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.labels:empty { display: none; }
.pill { font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.pill--partner { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill--partner ~ .pill--editorial { display: none; } /* paid work is always labelled Partner */
.paid { font: 500 12px/1.3 var(--sans); }

/* Label check: preview only (partials/label-check.hbs) */
.labelcheck { padding-top: 16px; }
.labelcheck__warn { border: 3px solid var(--accent); background: #FFF3C4; color: var(--ink); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.labelcheck__warn strong { display: block; font: 600 19px/1.25 var(--sans); margin-bottom: 6px; }
.labelcheck__warn p { font-size: 15px; }
.labelcheck__ok ~ .labelcheck__warn--none { display: none; }   /* a label exists */
.labelcheck__warn .labelcheck__note { font-size: 13px; color: var(--ink2); margin-top: 8px; }

/* ---------- Clip wall + card ---------- */
.wall { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 18px; margin: 0 -16px; scrollbar-width: none; }
.wall::-webkit-scrollbar { display: none; }
.clip {
  position: relative; flex: 0 0 66%; max-width: 270px; aspect-ratio: 9 / 16; overflow: hidden;
  scroll-snap-align: start; scroll-margin-left: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(165deg, var(--g1, #B5482C), var(--g2, #2A1410));
  box-shadow: 0 10px 28px -14px rgba(18, 18, 18, .45);
  transition: transform .15s;
}
.clip:nth-child(8n+2) { --g1: #3F6A84; --g2: #14222C; }
.clip:nth-child(8n+3) { --g1: #6E5A8C; --g2: #1E1828; }
.clip:nth-child(8n+4) { --g1: #2F7A68; --g2: #0F2420; }
.clip:nth-child(8n+5) { --g1: #A8832E; --g2: #2A2010; }
.clip:nth-child(8n+6) { --g1: #9A4058; --g2: #2A1218; }
.clip:nth-child(8n+7) { --g1: #4C5E7E; --g2: #161C28; }
.clip:nth-child(8n+8) { --g1: #5E7A3E; --g2: #1A2412; }
.clip:not(.clip--img)::before { content: ""; position: absolute; right: -30%; top: -12%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 0 26px rgba(255,255,255,.05), 0 0 0 60px rgba(255,255,255,.04); }
.clip:hover { transform: translateY(-3px); }
.clip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip__open { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.clip__top, .clip__btm, .playdot { position: relative; z-index: 2; pointer-events: none; }
.clip__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.clip__top .pill { background: rgba(0,0,0,.35); }
.clip__top .pill--partner { background: var(--accent); }
.clip__date { font: 500 10px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.clip--img .clip__top { margin: -14px -14px 0; padding: 14px 14px 30px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.playdot { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); background: rgba(255,255,255,.16); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; }
.playdot::after { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.clip__btm { margin: 0 -14px -14px; padding: 60px 14px 14px; background: linear-gradient(transparent, rgba(18,18,18,.94) 46%); }
.clip__q { font: 600 16px/1.22 var(--sans); letter-spacing: 0; max-width: none; margin-bottom: 10px; overflow-wrap: anywhere; }
.clip__who { position: relative; z-index: 4; pointer-events: auto; display: flex; gap: 7px; align-items: center; font: 500 12.5px/1.2 var(--sans); text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.clip__btm .clip__who { pointer-events: auto; }
@media (min-width: 960px) {
  .wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; margin: 0; padding: 0 0 10px; }
  .clip { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .clip { transition: none; } .clip:hover { transform: none; } }

/* ---------- Avatars (photo or initials; never a generated face) ---------- */
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 600 11px/1 var(--sans); color: #fff; background: linear-gradient(140deg, #9A9A9A, #2E2E2E); }
.av--xs { width: 24px; height: 24px; font-size: 9px; border: 1px solid #fff; }
.av--m { width: 50px; height: 50px; font-size: 14px; }
.av--xl { width: 96px; height: 96px; font-size: 26px; }

/* ---------- Pagination (Ghost {{pagination}}) ---------- */
.pagination:not(:has(a)) { display: none; } /* hide "Page 1 of 1" */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 8px; font: 600 14px/1 var(--sans); color: var(--ink2); }
.pagination a { color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 99px; padding: 12px 18px; }
.pagination a:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.sect { padding: 52px 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.sect--warm { background: var(--warm); border-top: 0; }
.sect--accent { background: var(--accent); color: #fff; border-top: 0; margin-top: 0; }

/* Speakers directory */
.sect--warm:not(:has(.drow)) { display: none; }           /* homepage: hide the section until there is a speaker */
.dir:has(.drow) + .empty--speakers { display: none; }     /* directory: message only while it is empty */
.dir { margin-top: 22px; border-top: 1px solid var(--ink); }
.drow { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.drow__t { flex: 1; min-width: 0; }
.drow b { display: block; font: 600 19px/1.15 var(--serif); letter-spacing: -.01em; }
.drow small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.3; margin-top: 3px; }
.drow__chev { font-size: 26px; line-height: 1; color: var(--ink2); }
.drow:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
@media (min-width: 700px) {
  .dir { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
}

/* ---------- Digest (newsletter) ---------- */
.digest__head { font: 600 clamp(24px, 5vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 6px; }
.foot .digest__head { font: 600 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.digest__text { font-size: 15px; opacity: .9; margin-bottom: 12px; max-width: 46ch; }
.foot .digest__text { font-size: 14px; color: var(--ink2); opacity: 1; }
.digest__form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.digest__form input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); background: #fff; border-radius: 99px; color: var(--ink); }
.digest__form button { font: 600 14px/1 var(--sans); padding: 12px 18px; border-radius: 99px; background: var(--ink); color: #fff; }
.sect--accent .digest__form button { background: #fff; color: var(--accent); }
.sect--accent .digest__form input { border-color: #fff; }
.digest__msg { display: none; flex: 1 0 100%; font-size: 14px; }
.digest__form.loading button { opacity: .6; }
.digest__form.success .digest__msg--ok, .digest__form.error .digest__msg--err { display: block; }
.digest__form.success input, .digest__form.success button { display: none; }
.digest a { color: inherit; }

/* ---------- Footer ---------- */
.foot { background: var(--paper2); border-top: 1px solid var(--ink); padding: 34px 0 46px; font-size: 14px; }
.foot__cols { display: grid; gap: 26px; }
.foot__tag { color: var(--ink2); margin-top: 6px; }
.foot__contact { margin-top: 10px; }
.foot__contact a, .foot__nav a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.foot__nav ul { display: grid; gap: 8px; }
.foot__nav a { color: var(--ink2); }
.foot__sign { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink2); font-size: 13px; }
@media (min-width: 700px) { .foot__cols { grid-template-columns: 1fr 1fr 1.3fr; gap: 36px; } }

/* ---------- Clip page ---------- */
.cliprt__grid { display: grid; gap: 22px; padding-top: 18px; }
.frame { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; color: #fff; background: linear-gradient(170deg, #8E8E8E 0%, #3A3A3A 50%, #111 100%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__q { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 0 26px 40px; background: rgba(18,18,18,.62); text-decoration: none; }
.frame__qtext { font: 600 clamp(28px, 8vw, 38px)/1.06 var(--serif); letter-spacing: -.02em; }
.frame__qtext::before { content: ""; display: block; width: 40px; height: 4px; background: var(--accent); margin-bottom: 18px; }
.frame__play { display: flex; align-items: center; gap: 12px; margin-top: 26px; font: 600 14px/1 var(--sans); }
.frame__play .playdot { position: static; transform: none; }
.frame__video { position: absolute; inset: 0; z-index: 1; background: #000; display: none; }
.frame.is-playing .frame__video, .frame.is-ended .frame__video { display: block; }
.frame.is-playing .frame__q, .frame.is-ended .frame__q { display: none; }
.frame__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame__end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px 110px; background: rgba(18,18,18,.86); }
.frame__end[hidden] { display: none; }
.frame__end:focus { outline: none; }
.frame__end .av--xl { border: 2px solid #fff; margin-bottom: 16px; }
.frame__endname { font: 600 clamp(26px, 7vw, 32px)/1.08 var(--serif); margin-bottom: 8px; }
.frame__endrole { font-size: 14px; line-height: 1.35; opacity: .9; }
.frame__dates { font: 600 10.5px/1.8 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .78; margin-top: 14px; }
.frame__endbtns { position: absolute; left: 18px; right: 18px; bottom: 26px; display: flex; gap: 10px; }
.frame__again { position: absolute; top: 16px; right: 16px; font: 600 12px/1 var(--sans); padding: 9px 13px; border-radius: 99px; background: rgba(255,255,255,.14); }
.pbtn { flex: 1; text-align: center; text-decoration: none; font: 600 14px/1.2 var(--sans); padding: 14px 10px; border-radius: 99px; border: 1px solid #fff; color: #fff; }
.pbtn--solid { background: #fff; color: var(--ink); }
.pbtn--line { border-color: var(--ink); color: var(--ink); }
.pbtn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pbtn--ink:hover { background: var(--accent); border-color: var(--accent); }

.side { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; align-self: start; }
.side__labels { display: flex; margin-bottom: 14px; }
.side__labels .labels { gap: 8px; }
.side__labels .pill--editorial { color: var(--ink); }
.side__labels .paid { color: var(--ink2); }
.side__q { font: 600 clamp(26px, 6vw, 32px)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 18px; }
.side__src { border-top: 1px solid var(--rule); padding: 14px 0; }
.side__src[hidden] { display: none; }
.side__k { font: 600 10px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.side__src p { font-size: 14px; line-height: 1.45; }
.side__st { color: var(--ink2); margin-top: 4px; }
.side__exp { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; text-decoration: none; }
.side__exp b { display: block; font: 600 15px/1.2 var(--sans); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.side__exp small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.3; margin-top: 2px; }
.side__meta { display: grid; gap: 4px; padding: 14px 0 0; font-size: 13px; color: var(--ink2); }
.side__meta a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.side__act { display: flex; gap: 8px; margin-top: 18px; }
.side__act .pbtn { font-size: 13px; padding: 13px 8px; }
@media (min-width: 900px) {
  .cliprt__grid { grid-template-columns: minmax(0, 440px) minmax(0, 380px); justify-content: center; gap: 32px; padding-top: 32px; align-items: center; }
  .frame { margin: 0; }
}

/* Clip text (transcript, notes) */
.cliptext { max-width: 680px; margin: 40px auto 0; }
.cliptext:empty { display: none; }

/* ---------- Speaker profile ---------- */
.speaker { padding-top: 36px; }
.speaker__head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.speaker__head .kick { margin-bottom: 6px; }
.speaker h1 { font: 600 clamp(32px, 8vw, 52px)/1.02 var(--serif); letter-spacing: -.025em; margin-bottom: 6px; }
.speaker__role { font-size: 15px; color: var(--ink2); line-height: 1.4; max-width: 50ch; }
.speaker__bio { font-size: 18px; line-height: 1.5; max-width: 60ch; }
.speaker__sub { margin-top: 30px; }
.elsewhere:not(:has(li)) { display: none; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-block; font: 500 14px/1 var(--sans); padding: 11px 15px; border: 1px solid var(--rule); border-radius: 99px; background: #fff; text-decoration: none; }
.links a:hover { border-color: var(--ink); }

/* ---------- Static pages ---------- */
.pg { max-width: 760px; padding-top: 36px; padding-bottom: 20px; }
.pg__head h1 { font: 600 clamp(34px, 8vw, 56px)/1.02 var(--serif); letter-spacing: -.025em; margin-bottom: 14px; }
.pg__img { margin: 26px 0; }
.pg__img img { border-radius: var(--radius); }
.pg__img figcaption { font-size: 13px; color: var(--ink2); margin-top: 8px; }

/* ---------- Post and page body content (Ghost editor output) ---------- */
.gh-content { font-size: 17px; line-height: 1.65; }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content h2 { font-size: clamp(24px, 5vw, 32px); max-width: none; margin-top: 1.6em; margin-bottom: 0; }
.gh-content h3 { font: 600 22px/1.2 var(--serif); margin-top: 1.4em; }
.gh-content a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: .4em; }
.gh-content blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--accent); font: 500 italic 22px/1.35 var(--serif); }
.gh-content hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.gh-content figure img, .gh-content video { border-radius: 10px; }
.gh-content figcaption { font-size: 13px; color: var(--ink2); margin-top: 8px; text-align: center; }
.gh-content pre { overflow-x: auto; background: var(--paper2); padding: 14px; border-radius: 10px; font-size: 14px; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gh-content th, .gh-content td { text-align: left; padding: 8px; border-bottom: 1px solid var(--rule); }
.kg-width-wide { position: relative; width: min(100vw - 32px, 1000px); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }
