/* ==========================================================================
   Yorie Nakahira — site stylesheet
   Palette and type are defined once here; edit the variables to retheme.
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1d22;
  --ink-2: #464b55;
  --muted: #737986;
  --line: #e5e1d8;
  --line-2: #efece5;
  --accent: #9b2226;
  --accent-2: #7a1b1e;
  --accent-soft: #f6e9e7;
  --accent-tint: #fbf5f3;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 29, 34, 0.04), 0 8px 24px -12px rgba(27, 29, 34, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 0.15em; }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; }

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

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

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

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 6px;
  z-index: 100; transition: top .15s;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.me { font-weight: 600; color: var(--ink); }
sup.eq { font-size: 0.7em; color: var(--accent); margin-left: 1px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px; padding: 8px 0;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: 23px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }

.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.site-header nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  position: relative;
}
.site-header nav a:hover { color: var(--ink); text-decoration: none; background: var(--line-2); }
.site-header nav a.active { color: var(--ink); }
.site-header nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(155, 34, 38, 0.06), transparent 60%),
    linear-gradient(var(--paper), var(--paper));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 64px; align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 66px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 4px 0 18px;
}
.hero .eyebrow { line-height: 1.7; }
.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 24em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-link { color: var(--accent); padding-inline: 8px; }
.btn-link::after { content: "\2197"; font-size: 0.9em; }

.portrait { margin: 0; position: relative; justify-self: end; width: min(100%, 340px); }
.portrait::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border-radius: 14px; background: var(--accent-soft); z-index: 0;
}
.portrait img {
  position: relative; z-index: 1;
  border-radius: 14px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line-2); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 36px); }
.section-head .eyebrow { margin-bottom: 8px; }
.section-link { font-weight: 500; font-size: 15px; white-space: nowrap; }
.section-link::after { content: " \2192"; }

.about { padding-top: 24px; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: 56px; align-items: start;
}
.about-text p { font-size: 17.5px; color: var(--ink-2); }
.about-text p:first-child { font-size: 19px; color: var(--ink); }
.about-side {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.side-title {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.side-list { list-style: none; margin: 0 0 26px; padding: 0; font-size: 15px; color: var(--ink-2); }
.side-list li { margin-bottom: 10px; line-height: 1.5; }
.side-list strong { color: var(--ink); font-weight: 600; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* 2 rows x 4 columns on desktop */
  gap: 16px;
}
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { text-decoration: none; border-color: rgba(155, 34, 38, 0.45); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card-num { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: 0.04em; }
.card h3 { font-size: 20px; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.card-more { font-size: 14px; font-weight: 500; color: var(--accent); }
.card-more::after { content: " \2192"; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.timeline li:last-child { border-bottom: 0; }
.tl-year { font-family: var(--serif); font-size: 20px; color: var(--accent); line-height: 1.4; }
.tl-text { color: var(--ink-2); font-size: 16px; }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
}
.contact-card h2 { font-size: 32px; margin-bottom: 12px; }
.contact-note { color: var(--ink-2); font-size: 16px; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact-list dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; color: var(--ink); font-size: 16px; }

/* --------------------------------------------------------------------------
   Page head (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(155, 34, 38, 0.05), transparent 60%),
    linear-gradient(var(--paper), var(--paper));
}
.page-head h1 { font-size: clamp(38px, 5vw, 54px); letter-spacing: -0.02em; margin-bottom: 18px; }
.intro {
  font-size: 18.5px; line-height: 1.6; color: var(--ink-2);
  max-width: 76ch;
}
.intro em { font-style: italic; color: var(--ink); }

.stats { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.stats strong { font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 500; margin-right: 4px; }

/* --------------------------------------------------------------------------
   Research page
   -------------------------------------------------------------------------- */
.research-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px; padding: 48px 0 72px;
  align-items: start;
}
.toc { position: sticky; top: 92px; }
.toc-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.toc ol { list-style: none; margin: 0 0 28px; padding: 0; }
.toc li { margin: 0; }
.toc ol a {
  display: grid; grid-template-columns: 26px 1fr; gap: 6px;
  padding: 7px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.35;
  border-bottom: 1px solid var(--line-2);
}
.toc ol a span { font-family: var(--serif); color: var(--accent); font-size: 14px; padding-top: 1px; }
.toc ol a:hover { color: var(--ink); text-decoration: none; }
.toc-plain { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.toc-plain li { padding: 4px 0; }

.theme { padding: 8px 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.theme:last-child { border-bottom: 0; }
.theme-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.theme-num { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.theme h2 { font-size: clamp(27px, 3vw, 33px); }
.theme-body p { font-size: 17px; color: var(--ink-2); max-width: 72ch; }
.theme-body em { color: var(--ink); }

.theme-refs {
  margin-top: 26px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.theme-refs h3 {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.theme-refs ul { list-style: none; margin: 0; padding: 0; }
.theme-refs li { padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.45; }
.theme-refs li:first-child { border-top: 0; }
.theme-refs a { color: var(--ink); font-weight: 500; }
.theme-refs a:hover { color: var(--accent); }
.cite-venue { display: block; color: var(--muted); font-size: 13.5px; }

.theme-plain .theme-head { margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 14.5px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.support-text { color: var(--ink-2); font-size: 16px; max-width: 72ch; }

/* --------------------------------------------------------------------------
   Publications page
   -------------------------------------------------------------------------- */
.toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px; align-items: center;
  padding: 24px 0 10px;
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; color: var(--muted);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 34, 38, 0.12); }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 11px 0; font: inherit; font-size: 15.5px; color: var(--ink); min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-btn {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: var(--ink); color: #fff; }

.select { display: block; }
.select select {
  -webkit-appearance: none; appearance: none;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23464b55' stroke-width='2.5' stroke-linecap='round'/></svg>") no-repeat right 14px center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 36px 10px 16px; font: inherit; font-size: 14.5px; color: var(--ink);
  cursor: pointer; max-width: 260px;
}
.select select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 34, 38, 0.12); }

.toolbar-status { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 14px; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

.pub-list { padding-bottom: 72px; }
.pub-group { padding-top: 26px; }
.group-title {
  display: flex; align-items: center; gap: 16px;
  font-size: 26px; margin-bottom: 6px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pub {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line-2);
  scroll-margin-top: 90px;
}
.pub:target { background: var(--accent-tint); box-shadow: 0 0 0 12px var(--accent-tint); border-radius: 4px; }
.pub-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
  background: var(--line-2); color: var(--ink-2);
}
.badge-journal { background: var(--accent-soft); color: var(--accent-2); }
.badge-preprint { background: #eef1f6; color: #3b4a6b; }
.pub-year { font-size: 13px; color: var(--muted); }
.pub-title { font-size: 20px; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.pub-authors { font-size: 15.5px; color: var(--ink-2); margin-bottom: 3px; }
.pub-venue { font-size: 14.5px; color: var(--muted); font-style: italic; margin-bottom: 0; }
.pub-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pub-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 12px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface);
}
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tag {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12.5px; padding: 2px 0; cursor: pointer;
}
.tag::before { content: "#"; opacity: 0.6; }
.tag:hover { color: var(--accent); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* --------------------------------------------------------------------------
   Teaching page
   -------------------------------------------------------------------------- */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.course {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px;
}
.course-head { display: flex; gap: 16px; align-items: flex-start; }
.course-num {
  font-family: var(--serif); font-size: 15px; color: var(--accent); white-space: nowrap;
  padding: 4px 10px; border: 1px solid rgba(155, 34, 38, 0.3); border-radius: 6px; margin-top: 3px;
}
.course h3 { font-size: 23px; }
.course-level { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; }
.course-desc { font-size: 15.5px; color: var(--ink-2); }
.course-notes { font-size: 14.5px; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--accent); }
.course-offerings { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.offer-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.course-offerings ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.course-offerings li { font-size: 13.5px; color: var(--ink-2); background: var(--line-2); padding: 3px 10px; border-radius: 999px; }

.table-wrap { overflow-x: auto; }
.plain-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.plain-table th { text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.plain-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.plain-table td:first-child { color: var(--ink); font-weight: 500; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.two-col p { color: var(--ink-2); }
.bullets { margin: 0; padding-left: 20px; color: var(--ink-2); }
.bullets li { margin-bottom: 10px; }
.bullets li::marker { color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-name { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.footer-meta { font-size: 14px; color: var(--muted); line-height: 1.55; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; justify-self: end; }
.footer-updated { grid-column: 1 / -1; font-size: 13px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line-2); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .toc .toc-title:nth-of-type(2), .toc-plain { display: none; }
  .toc ol { margin-bottom: 8px; }
  .toolbar { grid-template-columns: 1fr; }
  .seg { justify-self: start; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { justify-self: start; width: min(100%, 260px); order: -1; }
  .about-grid, .contact-card, .two-col, .course-grid, .footer-inner { grid-template-columns: 1fr; }
  .about-side { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .contact-card { padding: 28px; gap: 28px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 14px; }
  .tl-year { font-size: 18px; }
  .footer-links { justify-self: start; }
  .pub-foot { flex-direction: column; align-items: flex-start; }
  .pub-tags { margin-left: 0; }
  .seg { flex-wrap: wrap; border-radius: 16px; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 60px; }
  .site-header nav a { padding: 6px 8px; font-size: 14px; }
  .hero-actions .btn { padding: 10px 16px; font-size: 14px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .toolbar, .toolbar-status, .pub-tags, .site-footer .footer-links, .hero-actions, .toc { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .pub, .theme, .course { break-inside: avoid; }
  a { color: inherit; }
  .page-head, .hero { background: none; }
}

/* --------------------------------------------------------------------------
   Additions: inline links, citation block, news list, highlights toggle,
   advising page
   -------------------------------------------------------------------------- */
.inline-links { display: inline-flex; gap: 6px; margin-left: 4px; vertical-align: baseline; }
.inline-links .pill { font-size: 12.5px; padding: 2px 10px; }

.cite-block {
  margin-top: 18px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px;
}
.cite-block p { margin: 0 0 3px; }
.cite-authors { color: var(--ink-2); }
.cite-title { color: var(--ink); font-weight: 500; font-family: var(--serif); font-size: 17px; }
.cite-venue-line { color: var(--muted); font-size: 14px; font-style: italic; margin-bottom: 10px !important; }

.theme-news { margin-top: 20px; }
.theme-news h3 {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.theme-news ul { list-style: none; margin: 0; padding: 0; }
.theme-news li { font-size: 15px; padding: 4px 0; }
.theme-news li::before { content: "\2197\00a0"; color: var(--accent); }

.timeline.collapsed .tl-more { display: none; }
.show-more {
  margin-top: 18px; padding: 9px 18px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.show-more:hover { border-color: var(--ink-2); }

.lead-text { font-size: 17px; color: var(--ink-2); max-width: 76ch; margin-bottom: 24px; }
.apply-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.apply-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.apply-card h3 { font-size: 21px; line-height: 1.25; }
.apply-meta { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0; }
.apply-who { font-size: 15px; color: var(--ink-2); flex: 1; margin: 0 0 8px; }
.apply-card .btn { align-self: flex-start; }
.notice {
  margin-top: 24px; padding: 14px 20px;
  border-left: 3px solid var(--accent); background: var(--accent-tint);
  border-radius: 0 8px 8px 0; font-size: 15.5px; color: var(--ink-2);
}
.list-title {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.reading-cols { gap: 40px; }
.reading-list { list-style: none; margin: 0; padding: 0; }
.reading-list li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.45; }
.reading-list li:first-child { border-top: 0; }
.reading-list a { color: var(--ink); font-weight: 500; }
.reading-list a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .apply-grid { grid-template-columns: 1fr; }
}
