/* Shared presentation, using bibliography.html as the visual reference. */
:root {
  --ink: #171717;
  --muted: #696969;
  --line: #d8d8d8;
  --soft: #f5f5f5;
  --paper: #fff;
  --accent: #555;
  --accent-soft: #eeeeee;
  --al-navy: var(--ink);
  --al-navy-dark: #000;
  --al-gold: var(--muted);
  --al-gold-dark: var(--accent);
  --al-pale: var(--soft);
  --al-pale-blue: var(--soft);
  --al-border: var(--line);
  --al-text: var(--ink);
}

html { -webkit-text-size-adjust: 100%; }
body.site-page {
  box-sizing: content-box;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 24px 28px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.52;
}

.site-page a { color: inherit; text-underline-offset: 2px; }
.site-page a:focus-visible, .site-page button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.site-page [hidden] { display: none !important; }
.site-page .site-width { width: 100%; max-width: none; margin-inline: auto; }

/* Both navigation rows share labels, separators, dimensions and typography. */
.site-page .top-menu-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.52;
}
.site-page .top-menu-wrap .topics,
.site-page .top-menu-wrap .main-nav {
  text-align: center;
  font-weight: normal;
}
.site-page .top-menu-wrap .topics {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  text-wrap: balance;
}
.site-page .top-menu-wrap .main-nav {
  display: block;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.52;
  text-transform: uppercase;
}
.site-page .top-menu-wrap .topics a,
.site-page .top-menu-wrap .main-nav a {
  display: inline-block;
  margin: 0 5px;
  padding: 0;
  color: #000;
  font-weight: normal;
  text-decoration: none;
  white-space: nowrap;
}
.site-page .top-menu-wrap .topics a:hover,
.site-page .top-menu-wrap .main-nav a:hover,
.site-page .top-menu-wrap a[aria-current] {
  color: #000;
  text-decoration: none;
}
.site-page .top-menu-wrap hr {
  height: 1px;
  margin: 12px 0;
  border: 0;
  background: #b9b9b9;
}

/* Preserve the bibliography's hierarchy across the other current pages. */
.site-page:not(.bibliography-page) h1 {
  margin: 18px 0 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0;
}
.site-page:not(.bibliography-page) h2:not(.year-heading) {
  margin: 26px 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: 0;
}
.site-page:not(.bibliography-page) h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: normal;
  line-height: 1.25;
  letter-spacing: 0;
}
.site-page .year-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 43px 0 0;
  color: var(--ink);
  font: normal 23px/1.25 Georgia, "Times New Roman", serif;
}
.site-page .year-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.site-page:not(.bibliography-page) .publication-title {
  font: normal 23px/1.25 Georgia, "Times New Roman", serif;
}
.site-page:not(.bibliography-page) .publication-title a { font-weight: inherit; }
.site-page:not(.bibliography-page) .publication { border-color: var(--line); }
.site-page:not(.bibliography-page) .abstract {
  padding: 17px 20px;
  border-left: 2px solid #b5b5b5;
  background: var(--soft);
  color: #484848;
  font-size: 14px;
}

/* Topic filters and result controls use the bibliography's pill treatment. */
.site-page .filter-panel,
.site-page .talk-filter-panel {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  padding: 18px;
  box-shadow: 0 7px 24px rgba(0,0,0,.04);
}
.site-page .talk-filter-row { display: block; margin: 0; }
.site-page .filter-label,
.site-page .talk-filter-label {
  display: block;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.52;
  text-transform: uppercase;
}
.site-page .filter-options,
.site-page .talk-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.site-page .filter-btn,
.site-page .talk-filter-button {
  box-sizing: border-box;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  background: #fff;
  padding: 7px 11px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
  transition: .16s ease;
  box-shadow: none;
}
.site-page .filter-btn:hover,
.site-page .talk-filter-button:hover { border-color: #999; background: #fff; }
.site-page .filter-btn.active,
.site-page .talk-filter-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: normal;
  box-shadow: none;
}
.site-page .results-summary,
.site-page .talk-filter-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.3;
}
.site-page .reset-btn,
.site-page .clear-talk-filters {
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--accent);
  padding: 3px 0;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-page .reset-btn:hover,
.site-page .clear-talk-filters:hover { border-bottom-color: var(--accent); }

/* Neutral panels, links and actions accompany the same text hierarchy. */
.site-page:not(.bibliography-page) :is(.summary-box,.contact,.featured-books,.featured-cases,.course,.expertise-item,.book-feature) {
  border-color: var(--line);
  background: var(--soft);
}
.site-page blockquote { border-left-color: #b5b5b5; background: var(--soft); }
.site-page details { border-color: var(--line); background: var(--soft); }
.site-page details[open] summary { border-color: var(--line); background: var(--soft); }
.site-page .button,
.site-page .button:visited {
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
}
.site-page .button:hover { border-color: #999; background: var(--accent-soft); }
.site-page .slides-link {
  border: 0;
  border-bottom: 1px solid #bcbcbc;
  border-radius: 0;
  background: none;
  color: var(--accent);
  padding: 0 0 2px;
  font-size: 13px;
  line-height: inherit;
  text-decoration: none;
}
.site-page .slides-link:hover { border-color: var(--accent); background: none; }
.book-page main > section { padding-top: 26px; padding-bottom: 26px; }
.book-page .hero { padding-top: 18px; padding-bottom: 24px; }
.book-page .section-head { margin-bottom: 18px; }
.book-page .lead { font-size: 16px; line-height: 1.52; }
.book-page :is(.eyebrow,.kicker,.subtitle) { color: var(--muted); }
.book-page .subtitle { font-size: 20px; }

.site-page .site-footer {
  margin-top: 22px;
  border-top: 1px solid #aaa;
  background: #fff;
  text-align: center;
}
.site-page .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-inline: auto;
  padding: 23px 0 17px;
  color: #000;
}
.site-page .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: bold;
  text-transform: uppercase;
}
.site-page .footer-nav a {
  margin: 0;
  padding: 0;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}
.site-page .footer-nav .separator { display: inline-block; margin: 0 8px; color: #000; }
.site-page .copyright { margin: 0; color: #000; font-size: 15px; line-height: 1.3; }

@media (max-width: 650px) {
  body.site-page { padding: 10px 14px 24px; line-height: 1.48; }
  .site-page .top-menu-wrap { width: calc(100% - 4px); margin-inline: 2px; line-height: 1.48; }
  .site-page .top-menu-wrap .topics { font-size: 13px; line-height: 1.65; }
  .site-page .top-menu-wrap .main-nav { font-size: 13px; line-height: 1.8; }
  .site-page:not(.bibliography-page) h1 { margin-top: 15px; font-size: 27px; }
  .site-page:not(.bibliography-page) h2:not(.year-heading) { margin-top: 22px; font-size: 21px; }
  .site-page .year-heading { margin-top: 32px; font-size: 21px; }
  .site-page:not(.bibliography-page) .publication-title { font-size: 20px; }
  .site-page .filter-panel, .site-page .talk-filter-panel { padding: 14px; }
  .site-page .filter-options, .site-page .talk-filter-options { gap: 8px; }
  .site-page .filter-label, .site-page .talk-filter-label { line-height: 1.48; }
  .site-page .filter-btn, .site-page .talk-filter-button {
    min-height: 40px;
    padding: 8px 11px;
    line-height: 1.15;
  }
  .site-page .results-summary, .site-page .talk-filter-summary {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 18px;
  }
  .site-page .slides-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0 4px; }
  .site-page .footer-nav { font-size: 13px; line-height: 1.8; }
  .site-page .footer-nav a { padding: 4px 1px; }
}
@media (max-width: 580px) {
  .site-page .footer-nav .separator { margin-inline: 5px; }
}
@media (max-width: 470px) {
  .site-page .filter-label, .site-page .talk-filter-label { font-size: 10px; }
  .site-page .footer-nav .separator { margin-inline: 4px; }
}
@media (max-width: 360px) {
  body.site-page { padding-inline: 12px; }
  .site-page .top-menu-wrap { width: calc(100% - 8px); margin-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-page .filter-btn, .site-page .talk-filter-button { transition: none; }
}
@media print {
  .site-page .top-menu-wrap, .site-page .site-footer,
  .site-page .filter-shell, .site-page .talk-filter-panel,
  .site-page .talk-filter-summary { display: none !important; }
}
