@import "tailwindcss";

:root {
  --ink: #11110f;
  --paper: #f1eee6;
  --bone: #d9d3c6;
  --muted: #8b887f;
  --line: rgba(17, 17, 15, 0.16);
  --red: #c39547;
  --gold: #cda252;
  --cyan: #c39547;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
main { overflow: hidden; }
.section-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.section-kicker { margin: 0 0 18px; color: var(--gold); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 46px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(32px, 4vw, 58px); line-height: .98; letter-spacing: -.05em; }
.section-heading > p { max-width: 370px; margin: 0; color: #66635c; font-size: 15px; line-height: 1.8; }

.topbar { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px 34px; color: #eee9dd; font-size: 12px; letter-spacing: .04em; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 24px; color: #111; background: var(--gold); font-weight: 800; letter-spacing: 0; }
.topbar nav { display: flex; align-items: center; gap: 30px; }
.topbar nav a { opacity: .72; transition: opacity .2s ease; }
.topbar nav a:hover, .topbar nav a:focus-visible { opacity: 1; }
.topbar .nav-cta { padding: 8px 0; color: var(--gold); border-bottom: 1px solid currentColor; opacity: 1; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 130px max(24px, calc((100vw - 1240px)/2)) 54px; color: #f1eee6; background: #080908; }
.hero-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,7,.92) 0%, rgba(7,8,7,.68) 48%, rgba(7,8,7,.42) 100%), url("/og.png") right center/cover no-repeat; opacity: .72; }
.hero-copy { position: relative; z-index: 1; width: min(760px, 72vw); }
.eyebrow { margin: 0 0 24px; color: var(--gold); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; }
.hero h1 { margin: 0; font-size: clamp(70px, 9.5vw, 142px); line-height: .82; letter-spacing: -.085em; font-weight: 800; }
.hero h1 span { display: block; margin: .12em 0 0 .52em; color: var(--gold); }
.hero-lead { margin: 34px 0 0; font-size: clamp(22px, 3vw, 38px); letter-spacing: -.04em; }
.hero-statement { margin: 10px 0 0; color: rgba(241,238,230,.62); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid transparent; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #111; background: var(--gold); }
.button-ghost { border-color: rgba(255,255,255,.35); }
.button-dark { margin-top: 24px; color: var(--paper); background: var(--ink); }
.hero-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, auto); gap: 34px; width: auto; margin-left: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-metrics div { display: flex; flex-direction: column; gap: 7px; min-width: 76px; }
.hero-metrics strong { font: 400 27px/1 ui-monospace, monospace; }
.hero-metrics span { color: rgba(255,255,255,.48); font-size: 11px; }

.resource-strip { color: var(--paper); background: var(--ink); border-top: 1px solid rgba(255,255,255,.12); }
.resource-strip .section-shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 92px; }
.resource-strip-copy { display: flex; align-items: baseline; gap: 18px; }
.resource-strip-copy strong { font-size: 16px; }
.resource-strip-copy span { color: #858178; font-size: 12px; }
.resource-strip-links { display: flex; align-items: center; gap: 30px; }
.resource-strip-links a { color: #b8b2a7; border-bottom: 1px solid rgba(255,255,255,.22); font-size: 12px; transition: color .2s ease, border-color .2s ease; }
.resource-strip-links a:first-child { color: var(--gold); border-color: currentColor; }
.resource-strip-links a:hover { color: var(--paper); border-color: currentColor; }

.manifesto { padding: 130px 0 110px; }
.manifesto-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; align-items: end; }
.manifesto-grid h2 { margin: 0; font-size: clamp(42px, 6vw, 80px); line-height: .98; letter-spacing: -.06em; }
.manifesto-grid > p { margin: 0 0 8px; color: #56534d; font-size: 17px; line-height: 1.9; }
.course-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 54px; margin: 88px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.course-map li { position: relative; min-height: 128px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.course-map span { color: var(--red); font: 700 11px/1 monospace; }
.course-map strong { display: block; margin-top: 28px; font-size: 22px; }
.course-map p { margin: 10px 0 0; color: #737068; font-size: 12px; }

.voices { padding: 30px 0 130px; }
.speaker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.speaker-card { position: relative; min-height: 350px; padding: 24px 0; border-top: 1px solid var(--ink); }
.speaker-heqing { --speaker-color: var(--cyan); }
.speaker-jiangge { --speaker-color: var(--gold); }
.speaker-chenchangzhang { --speaker-color: var(--red); }
.speaker-line, .audio-top, .corpus-meta { display: flex; justify-content: space-between; color: #69665e; font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.speaker-card h3 { max-width: 270px; margin: 58px 0 26px; font-size: 27px; line-height: 1.15; letter-spacing: -.04em; }
.speaker-card blockquote { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 18px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag-row span { padding: 6px 9px; border: 1px solid var(--line); color: #77736a; font-size: 10px; }
.speaker-count { position: absolute; left: 0; bottom: 18px; margin: 0; color: #817e75; font-size: 11px; }
.speaker-count strong { color: var(--ink); font: 400 24px/1 monospace; }

.audio-section, .corpus-section, .downloads { color: var(--paper); background: var(--ink); }
.audio-section { padding: 120px 0 140px; }
.light-heading > p { color: #a5a097; }
.audio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 70px; border-top: 1px solid rgba(255,255,255,.2); }
.audio-card { position: relative; min-height: 340px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.audio-card .audio-top { color: #8d8980; }
.audio-card h3 { margin: 52px 0 16px; font-size: 28px; letter-spacing: -.04em; }
.audio-card > p { max-width: 520px; min-height: 54px; color: #aaa59a; line-height: 1.75; }
.audio-card audio { width: 100%; height: 38px; margin-top: 20px; filter: grayscale(1) invert(.88); }
.audio-card details { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.13); }
.audio-card summary { padding: 15px 0; color: var(--speaker-color); cursor: pointer; font-size: 12px; }
.audio-card details p { margin: 0; color: #ddd7cb; font-family: Georgia, "Songti SC", serif; }

.path { padding: 130px 0; }
.path-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.path-list li { display: grid; grid-template-columns: 70px 120px 1fr; align-items: center; gap: 24px; min-height: 116px; border-bottom: 1px solid var(--line); }
.path-index { color: var(--red); font: 700 11px monospace; }
.path-time { font: 700 13px monospace; }
.path-list h3 { margin: 0 0 7px; font-size: 22px; }
.path-list p { margin: 0; color: #706d65; font-size: 14px; }

.corpus-section { padding: 130px 0; }
.filter-panel { display: grid; grid-template-columns: 1.4fr 1.25fr .8fr .8fr; gap: 12px; padding: 0; }
.filter-panel label, .filter-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-panel label > span, .filter-panel legend { display: block; margin: 0 0 9px; color: #8f8b82; font: 700 10px/1 monospace; letter-spacing: .08em; }
.filter-panel input, .filter-panel select { width: 100%; height: 45px; padding: 0 12px; color: var(--paper); border: 1px solid rgba(255,255,255,.18); border-radius: 0; background: #11110f; outline: none; }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--gold); }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); height: 45px; border: 1px solid rgba(255,255,255,.18); }
.segmented button { padding: 0 8px; color: #aaa69d; border: 0; border-right: 1px solid rgba(255,255,255,.12); background: transparent; cursor: pointer; font-size: 11px; }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { color: #111; background: var(--gold); }
.result-line { display: flex; justify-content: space-between; margin: 25px 0 15px; color: #858178; font: 700 10px/1 monospace; letter-spacing: .08em; text-transform: uppercase; }
.corpus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 58px; border-top: 1px solid rgba(255,255,255,.18); }
.corpus-card { --speaker-color: var(--gold); position: relative; min-height: 330px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.corpus-card .corpus-meta span:first-child { color: var(--speaker-color); }
.corpus-card > p { display: -webkit-box; min-height: 152px; margin: 38px 0 0; overflow: hidden; color: #d3cec3; font-family: Georgia, "Songti SC", serif; line-height: 1.78; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.corpus-card .tag-row { margin-top: 18px; }
.corpus-card .tag-row span { border-color: rgba(255,255,255,.12); color: #88847c; }
.corpus-card button { position: absolute; right: 0; bottom: 24px; padding: 0; color: #aaa69e; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; font-size: 11px; }
.show-more { display: block; margin: 32px auto 0; padding: 14px 28px; color: var(--paper); border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer; }
.corpus-standalone-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 42px; padding: 24px 0; color: var(--paper); border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.corpus-standalone-link span { color: #8f8b82; font-size: 12px; }
.corpus-standalone-link strong { color: var(--gold); font-size: 20px; }
.empty-state { padding: 60px 0; color: #888; text-align: center; }

.worksheet { display: grid; grid-template-columns: .74fr 1.26fr; gap: 9vw; padding: 140px 0; }
.worksheet-intro { position: sticky; top: 40px; align-self: start; }
.worksheet-intro h2 { margin: 0; font-size: clamp(46px, 6vw, 82px); line-height: .9; letter-spacing: -.07em; }
.worksheet-intro > p:not(.section-kicker) { max-width: 370px; margin-top: 28px; color: #6b6860; line-height: 1.8; }
.worksheet-fields { border-top: 1px solid var(--ink); }
.worksheet-fields label { display: block; padding: 28px 0; border-bottom: 1px solid var(--line); }
.worksheet-fields label > span { display: flex; gap: 16px; margin-bottom: 18px; font-size: 18px; }
.worksheet-fields label strong { color: var(--red); font: 700 11px/1.8 monospace; }
.worksheet-fields textarea { width: 100%; padding: 16px; resize: vertical; color: var(--ink); border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.34); line-height: 1.7; outline: none; }
.worksheet-fields textarea:focus { border-color: var(--ink); background: #fff; }

.downloads { padding: 120px 0 80px; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 58px; border-top: 1px solid rgba(255,255,255,.18); }
.download-grid > * { display: flex; flex-direction: column; min-height: 170px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.13); transition: color .2s ease; }
.download-grid a:hover { color: var(--gold); }
.download-grid .download-info { color: var(--paper); }
.download-grid span { color: #87837a; font: 700 10px/1 monospace; letter-spacing: .08em; }
.download-grid strong { margin-top: 36px; font-size: 22px; }
.download-grid small { margin-top: auto; color: var(--gold); }
.download-grid .download-public { color: var(--paper); }
.download-grid .download-public span { color: #87837a; }
.download-corpus-cta { display: inline-block; margin-top: 30px; color: var(--gold); border-bottom: 1px solid currentColor; font-size: 13px; }
.download-jsonl-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: #77736b; font-size: 12px; }
.download-jsonl-links a { color: var(--gold); border-bottom: 1px solid rgba(212,164,72,.45); }
.privacy-note { display: grid; grid-template-columns: 160px 1fr; gap: 30px; margin-top: 42px; padding-top: 24px; color: #8f8b82; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; line-height: 1.8; }
.privacy-note strong { color: var(--red); }
.privacy-note p { margin: 0; }

footer { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: end; gap: 40px; padding: 48px max(24px, calc((100vw - 1240px)/2)); color: #6f6c64; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; }
.footer-main { display: flex; flex-direction: column; color: var(--ink); }
.footer-main strong { font-size: 22px; }
footer p { margin: 0; }
footer > a { color: var(--red); }

@media (max-width: 980px) {
  .topbar nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 850px; align-items: center; }
  .hero-copy { width: 100%; }
  .hero-metrics { position: absolute; right: 24px; bottom: 28px; width: 310px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .course-map { grid-template-columns: repeat(3, 1fr); }
  .speaker-grid, .corpus-grid { grid-template-columns: 1fr; }
  .speaker-grid { gap: 0; }
  .speaker-card { min-height: 340px; border-right: 0; border-bottom: 0; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .worksheet { grid-template-columns: 1fr; }
  .worksheet-intro { position: static; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-strip .section-shell { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; min-height: 120px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > a { text-align: right; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 30px, 1240px); }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 20px; }
  .topbar { padding: 16px; }
  .brand > span:last-child { display: none; }
  .hero { min-height: 780px; padding: 110px 17px 190px; align-items: center; }
  .hero-image { background-position: 62% center; }
  .hero h1 { font-size: clamp(68px, 25vw, 104px); }
  .hero h1 span { margin: .16em 0 0 .2em; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(280px, 100%); }
  .hero-metrics { right: 16px; bottom: 20px; left: 16px; width: auto; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-metrics div { min-width: 0; padding: 0; }
  .resource-strip .section-shell { min-height: 154px; }
  .resource-strip-copy { align-items: flex-start; flex-direction: column; gap: 6px; }
  .resource-strip-links { flex-wrap: wrap; gap: 12px 22px; }
  .manifesto, .audio-section, .corpus-section, .path, .worksheet { padding-top: 90px; padding-bottom: 90px; }
  .course-map { grid-template-columns: repeat(2, 1fr); margin-top: 58px; }
  .course-map { gap: 0 24px; }
  .course-map li { min-height: 138px; }
  .voices { padding-bottom: 90px; }
  .audio-grid { grid-template-columns: 1fr; }
  .audio-card, .audio-card:nth-child(even) { border-right: 0; }
  .audio-card { padding: 25px 0; }
  .audio-card::after { left: 0; }
  .path-list li { grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; }
  .path-time { grid-column: 2; grid-row: 1; }
  .path-list div { grid-column: 2; }
  .filter-panel { grid-template-columns: 1fr; }
  .segmented button { font-size: 10px; }
  .corpus-card { min-height: 345px; }
  .worksheet-fields label > span { font-size: 16px; }
  .download-grid { grid-template-columns: 1fr; }
  .privacy-note { grid-template-columns: 1fr; gap: 8px; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer > a { text-align: left; }
  footer p { grid-column: auto; grid-row: auto; }
}

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

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Standalone corpus library */
.library-page { min-height: 100vh; color: var(--paper); background: #0d0e0c; }
.library-header { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 max(24px, calc((100vw - 1320px)/2)); border-bottom: 1px solid rgba(255,255,255,.15); color: #aaa69c; font: 700 11px/1 monospace; letter-spacing: .08em; }
.library-brand { display: flex; align-items: center; gap: 12px; }
.library-brand span { padding: 8px 10px; color: #111; background: var(--gold); font-family: "PingFang SC", sans-serif; }
.library-brand strong { color: var(--paper); letter-spacing: .15em; }
.library-hero { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 80px; }
.library-hero h1 { margin: 0; font-size: clamp(58px, 8.5vw, 126px); line-height: .86; letter-spacing: -.08em; }
.library-hero h1 span { color: var(--gold); }
.library-hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-top: 62px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.library-hero-bottom > p { max-width: 560px; margin: 0; color: #97938a; font-size: 16px; line-height: 1.8; }
.library-hero-bottom > div { display: flex; align-items: end; gap: 12px; }
.library-hero-bottom strong { color: var(--gold); font: 400 58px/.8 monospace; }
.library-hero-bottom span { color: #77736b; font-size: 11px; }
.library-downloads { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.5fr); gap: 70px; width: min(1320px, calc(100% - 48px)); margin: 0 auto 80px; padding: 56px 0 64px; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.library-downloads h2 { max-width: 520px; margin: 16px 0 18px; color: var(--paper); font-size: clamp(30px,4vw,56px); line-height: 1.03; }
.library-downloads > div:first-child > p:last-child { max-width: 520px; color: #8f8b82; line-height: 1.8; }
.library-download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; align-self: start; border-top: 1px solid rgba(255,255,255,.16); }
.library-download-grid > * { display: flex; flex-direction: column; min-height: 160px; padding: 22px 0; color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.13); }
.library-download-grid a:hover { color: var(--gold); }
.library-download-grid span { color: #77736b; font: 700 10px/1 monospace; letter-spacing: .08em; }
.library-download-grid strong { margin-top: 34px; font-size: 18px; }
.library-download-grid small { margin-top: auto; color: var(--gold); }
.library-download-grid .library-download-primary { color: var(--paper); }
.library-download-grid .library-download-primary span { color: #77736b; }
.library-workspace { display: grid; grid-template-columns: 340px 1fr; width: min(1320px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.2); }
.library-sidebar { padding: 30px 30px 80px 0; border-right: 1px solid rgba(255,255,255,.15); }
.library-sidebar > p { margin: 0 0 22px; color: #706d65; font: 700 10px/1 monospace; letter-spacing: .1em; }
.library-sidebar button { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; width: 100%; padding: 20px 0; color: #77736b; text-align: left; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: transparent; cursor: pointer; }
.library-sidebar button > span, .library-sidebar button em { font: 400 11px/1.4 monospace; font-style: normal; }
.library-sidebar button div { display: flex; flex-direction: column; gap: 7px; }
.library-sidebar button strong { color: #c7c1b6; font-size: 15px; }
.library-sidebar button small { line-height: 1.5; }
.library-sidebar button[aria-pressed="true"] > span, .library-sidebar button[aria-pressed="true"] em { color: var(--gold); }
.library-sidebar button[aria-pressed="true"] strong { color: var(--paper); }
.library-sidebar > a { display: inline-block; margin-top: 30px; color: var(--gold); border-bottom: 1px solid currentColor; font-size: 12px; }
.library-main { min-width: 0; padding: 30px 0 100px 46px; }
.library-title { display: flex; align-items: start; justify-content: space-between; }
.library-title p { margin: 0 0 10px; color: var(--red); font: 700 10px/1 monospace; letter-spacing: .12em; }
.library-title h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); letter-spacing: -.06em; }
.library-title > span { color: #77736b; font: 700 10px/1 monospace; }
.library-filters { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 10px; margin-top: 42px; padding: 0; }
.library-filters label > span { display: block; margin: 0 0 9px; color: #77736b; font: 700 10px/1 monospace; }
.library-filters input, .library-filters select { width: 100%; height: 44px; padding: 0 12px; color: var(--paper); border: 1px solid rgba(255,255,255,.16); border-radius: 0; background: #0d0e0c; outline: none; }
.library-filters input:focus, .library-filters select:focus { border-color: var(--gold); }
.library-result-line { display: flex; justify-content: space-between; margin: 24px 0 12px; color: #77736b; font: 700 10px/1 monospace; letter-spacing: .08em; }
.library-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 42px; border-top: 1px solid rgba(255,255,255,.16); }
.library-records article { --speaker-color: var(--gold); min-height: 350px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.library-record-meta { display: flex; justify-content: space-between; color: #77736b; font: 700 10px/1 monospace; }
.library-record-meta span:first-child { color: var(--speaker-color); }
.library-records article > p { display: -webkit-box; min-height: 225px; margin: 34px 0 20px; overflow: hidden; color: #c7c2b7; font-family: Georgia, "Songti SC", serif; font-size: 14px; line-height: 1.78; -webkit-box-orient: vertical; -webkit-line-clamp: 9; }
.library-record-bottom { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.library-record-bottom > div { display: flex; flex-wrap: wrap; gap: 5px; }
.library-record-bottom span { padding: 5px 7px; color: #77736b; border: 1px solid rgba(255,255,255,.1); font-size: 9px; }
.library-record-bottom button { padding: 0; color: var(--gold); border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; font-size: 11px; }
.library-empty { padding: 70px 0; color: #77736b; text-align: center; }
.library-more { display: block; margin: 34px auto 0; padding: 14px 28px; color: var(--paper); border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer; }
.library-footer { display: flex; justify-content: space-between; gap: 30px; padding: 38px max(24px, calc((100vw - 1320px)/2)); color: #77736b; border-top: 1px solid rgba(255,255,255,.15); font-size: 11px; }
.library-footer p { margin: 0; }
.library-footer a { color: var(--gold); }

@media (max-width: 900px) {
  .library-downloads { grid-template-columns: 1fr; gap: 34px; }
  .library-workspace { grid-template-columns: 1fr; }
  .library-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; padding-right: 0; border-right: 0; }
  .library-sidebar > p, .library-sidebar > a { grid-column: 1 / -1; }
  .library-main { padding-left: 0; }
}

@media (max-width: 680px) {
  .corpus-standalone-link { align-items: flex-start; flex-direction: column; }
  .library-header, .library-hero, .library-downloads, .library-workspace { width: calc(100% - 30px); padding-left: 0; padding-right: 0; }
  .library-header { height: 66px; }
  .library-header > a:last-child { font-size: 9px; }
  .library-hero { padding-top: 80px; }
  .library-hero h1 { font-size: 18vw; }
  .library-hero-bottom { align-items: flex-start; flex-direction: column; }
  .library-download-grid { grid-template-columns: 1fr; }
  .library-sidebar { grid-template-columns: 1fr; }
  .library-sidebar > p, .library-sidebar > a { grid-column: auto; }
  .library-filters { grid-template-columns: 1fr; }
  .library-records { grid-template-columns: 1fr; }
  .library-footer { align-items: flex-start; flex-direction: column; }
}
