/* Navigation belongs to the site header; the document rail follows this page. */
html { scroll-padding-top: 7.5rem; }
.site-header { position: sticky; top: 0; background: var(--bg); z-index: 30; }
.header-inner { height: 80px; }
.main-nav { gap: 24px; }
.main-nav > a { font-size: .875rem; }
.main-nav > a[aria-current=page]::after { bottom: 14px; }
.icon-button { width: 42px; height: 44px; }
.breadcrumbs { font-size: .8125rem; padding-top: 32px; }
.document-heading { padding: 40px 0 42px; }
.document-heading h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 650; }
.document-heading p { font-size: 1rem; max-width: 42rem; line-height: 1.9; }
/* The title names this page once; its parents are navigation, not another title. */
.document-heading.page-heading { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; overflow-wrap: anywhere; }
.page-heading p { margin-top: 14px; }
.page-heading .page-parents { padding: 0; margin: 0 0 14px; }
.page-parents ol { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.page-parents li { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.page-parents a { display: inline-block; padding-block: 5px; overflow-wrap: anywhere; }
.parent-separator { color: var(--muted); }
.page-heading + .document-layout { border-top: 0; }
.products-page .page-heading, .search-page .page-heading { margin-bottom: 28px; }
@media (min-width: 901px) {
  .page-heading .page-parents-root { display: none; }
}
@media (max-width: 900px) {
  .document-heading.page-heading { padding: 18px 0 24px; }
  .page-heading .page-parents { margin-bottom: 12px; }
}
@media print {
  .page-heading .page-parents { display: none; }
  .document-heading.page-heading { padding-top: 0; }
}
.document-layout { grid-template-columns: minmax(0, 1fr) 192px; grid-template-areas: 'content toc'; gap: 64px; padding-top: 36px; }
.document-layout.without-toc { grid-template-columns: minmax(0, 850px); grid-template-areas: 'content'; }
.document-layout > .prose { grid-area: content; min-width: 0; }
.prose { font-size: 1rem; line-height: 1.95; }
.prose li > ul, .prose li > ol { font-size: .9375rem; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 22px; padding-bottom: 14px; font-weight: 650; }
.prose h3 { font-size: 1.125rem; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .anchor-target { scroll-margin-top: 0; }
.prose h2:focus, .prose h3:focus { outline: none; }
.prose h2:focus-visible, .prose h3:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
.prose p { margin-block: 18px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose .table-scroll { overflow-x: auto; margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose table { display: table; overflow: visible; width: 100%; margin: 0; font-size: .875rem; }
.prose th, .prose td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px; line-height: 1.75; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 550; font-size: .8125rem; }
.prose th:nth-child(-n+3), .prose td:nth-child(-n+3) { white-space: normal; }
.prose tbody tr:hover { background: var(--soft); }
.prose code { font-size: .8125rem; }
.profile-page .prose img[src='/img/avatar.png'] { width: 112px; border-radius: 24px; }
.profile-page .prose > p:first-of-type { margin-top: 0; }
.career-block { margin-bottom: 52px; }
.career-block > h2, .block-heading h2 { margin: 0; padding: 0; border: 0; }
.career-block > h2 { margin-bottom: 24px; }
.block-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.block-heading > a { font-size: .8125rem; white-space: nowrap; }
.credential-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; }
.prose .credential-list { padding: 0; margin: 0; }
.credential-list > li { padding: 0; margin: 0; min-width: 0; border-bottom: 1px solid var(--line); }
.credential { display: flex; align-items: center; position: relative; gap: 20px; padding: 26px 0; height: 100%; text-decoration: none; color: var(--ink); }
.prose .credential { text-decoration: none; color: var(--ink); }
.credential img, .prose .credential img { width: 94px; height: 94px; object-fit: contain; flex-shrink: 0; border-radius: 8px; margin: 0; background: transparent; padding: 7px; }
.credential-copy { min-width: 0; }
.credential-issuer { display: block; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.credential h3, .prose .credential h3 { margin: 5px 0 3px; font-size: 1.375rem; line-height: 1.3; letter-spacing: -.02em; }
.credential p, .prose .credential p { margin: 0 0 10px; font-size: .75rem; line-height: 1.65; color: var(--muted); }
.credential-date { display: block; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.credential-arrow { position: absolute; right: 0; top: 21px; font-size: 1rem; color: var(--muted); }
.credential:hover h3 { color: var(--accent); }
.credential-note, .prose .credential-note { font-size: .8125rem; color: var(--muted); line-height: 1.8; margin-top: 20px; }
.prose .employment-list, .prose .education-list { list-style: none; padding: 0; margin: 0; }
.employment-list li { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 24px; padding: 24px 0; margin: 0; border-top: 1px solid var(--line); }
.history-date { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.employment-list h3 { margin: 0 0 8px; font-size: 1.125rem; }
.employment-list p { font-size: .875rem; color: var(--muted); margin: 0; }
.education-list li { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; font-size: .9375rem; }
.education-list time { color: var(--muted); font-size: .8125rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.career-archive > h2 { margin-top: 12px; }
.history-subtitle { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; margin-top: 8px; }
.career-archive th:nth-child(-n+3), .career-archive td:nth-child(-n+3) { width: 60px; white-space: nowrap; }
.career-archive th:first-child { white-space: normal; }
.career-archive h3 { margin-top: 28px; }
.career-archive > ul { font-size: .875rem; color: var(--muted); }
.activity-toolbar { padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; gap: 8px; }
.activity-toolbar p { margin: 10px 0 0; font-size: .8125rem; }
.filters { gap: 8px; }
.filters button { font-size: .8125rem; min-height: 42px; border-radius: 5px; }
.activities-page .prose > p { font-size: .875rem; color: var(--muted); }
.activity-notes { font-size: .875rem; color: var(--muted); margin: 0 0 24px; }
.activity-notes summary { cursor: pointer; padding: 4px 0; }
.activity-notes p { margin-bottom: 0; }
.activity-year { margin-top: 40px; }
.activity-year h3 { font-size: 1.5rem; margin: 0 0 18px; letter-spacing: -.025em; }
.activity-year h3 > span { font-size: .8125rem; color: var(--muted); padding-left: 7px; font-weight: 400; }
.prose .activity-list { margin: 0; padding: 0; }
.prose .activity-list > li { padding: 22px 0 !important; }
.activity-meta { font-size: .8125rem; line-height: 1.7; color: var(--muted); margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.activity-list > li > a { font-size: 1rem; font-weight: 550; line-height: 1.75; color: var(--ink); text-decoration-color: transparent; }
.activity-list > li > a:hover { color: var(--accent); text-decoration-color: currentColor; }
.activity-list > li > ul { font-size: .875rem; margin: 12px 0 0; color: var(--muted); }
.activity-list > li > ul a { font-weight: 400; }
.home-credentials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: -5px 0 26px; }
.home-credentials > .text-link { min-height: 44px; color: var(--muted); }
.home-credentials > .text-link:hover { color: var(--accent); }
.home-credentials .credential-list { grid-template-columns: repeat(4,auto); gap: 12px; }
.home-credentials .credential-list > li { border: 0; }
.home-credentials .credential { padding: 4px; border-radius: 6px; }
.home-credentials .credential:hover { background: var(--accent-soft); }
.home-credentials .credential img { width: 56px; height: 56px; padding: 0; border-radius: 0; }
.home-career { width: 100%; }
.home .section h2 { font-size: 1.75rem; letter-spacing: -.025em; }
.home .section { padding-block: 48px; }
.home .topic h3 { font-size: 1.25rem; }
.home .topic p, .home .timeline p { font-size: .875rem; }
.home .topic-meta, .home .text-link, .home .timeline-date { font-size: .8125rem; }
.home .timeline h3 { font-size: 1.125rem; }
.home .explore-item p { font-size: .875rem; }
.home .explore-item h3 { font-size: 1.25rem; }
.home .expertise h4 { font-size: .875rem; }
.home .expertise p { font-size: .8125rem; }
.search-result p { font-size: .9375rem; }
.search-result .result-meta, .search-hint, #search-status, .suggestions a { font-size: .8125rem; }
.footer-bottom { font-size: .75rem; }

@media (max-width: 1100px) {
  .header-inner { gap: 22px; }
  .main-nav { gap: 18px; }
  .main-nav > a { font-size: .8125rem; }
  .document-layout { gap: 36px; grid-template-columns: minmax(0,1fr) 165px; }
  .credential-list { column-gap: 24px; }
  .credential { gap: 14px; }
  .credential img, .prose .credential img { width: 76px; height: 76px; }
}
@media (max-width: 480px) {
  .home-credentials .credential-list { gap: 8px; }
  .home-credentials .credential img { width: 48px; height: 48px; }
}
@media (max-width: 980px) {
  .document-layout, .document-layout.without-toc { display: flex; flex-direction: column; gap: 28px; }
  .document-layout > .prose { width: 100%; }
}
@media (max-width: 760px) {
  .header-inner { height: 72px; gap: 10px; flex-wrap: wrap; position: relative; }
  .brand { font-size: 21px; }
  .header-tools { margin-left: auto; gap: 4px; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; height: auto; position: absolute; top: 72px; left: 0; width: 100%; padding: 12px 20px; margin: 0; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .main-nav > a { font-size: .9375rem; padding: 12px 0; min-height: 46px; }
  .main-nav > a[aria-current=page]::after { width: 24px; bottom: 6px; }
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { height: auto; padding-top: 20px; }
  html:not(.js) .main-nav { display: flex; position: static; flex-wrap: wrap; padding: 0; gap: 0 20px; border: 0; box-shadow: none; }
  html:not(.js) .header-tools { position: absolute; right: 0; top: 16px; }
  .document-heading { padding: 32px 0; }
  .document-heading p { font-size: .9375rem; }
  .document-layout { padding-top: 22px; }
  .breadcrumbs { padding-top: 24px; }
  .credential { gap: 18px; }
  .credential-list { grid-template-columns: 1fr; }
  .credential img, .prose .credential img { width: 94px; height: 94px; }
  .credential p, .prose .credential p { font-size: .8125rem; }
  .credential h3, .prose .credential h3 { font-size: 1.5rem; }
  .credential-copy { padding-right: 12px; }
  .career-block { margin-bottom: 40px; }
  .block-heading { flex-wrap: wrap; gap: 10px; }
  .employment-list li { grid-template-columns: 1fr; gap: 10px; }
  .education-list li { grid-template-columns: 72px minmax(0,1fr); gap: 16px; }
  .career-archive table { min-width: 540px; }
  .prose { font-size: .9375rem; }
  .prose h2 { font-size: 1.375rem; }
  .prose li > ul, .prose li > ol { font-size: .875rem; }
  .home .topic h3 { font-size: 1rem; }
  .home .topic p, .home .timeline p { font-size: .8125rem; }
  .home .timeline h3 { font-size: 1rem; }
  .home .section h2 { font-size: 1.5rem; }
  .home .section-heading { align-items: baseline; flex-wrap: wrap; gap: 12px; }
  .home .section { padding-block: 36px; }
  .hero-role { font-size: .8125rem; }
  .hero-description { font-size: .875rem; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .button { padding: 10px 12px; gap: 8px; font-size: .8125rem; white-space: nowrap; }
  .activity-list > li > a { font-size: .9375rem; }
}
@media print {
  .document-layout { display: block; }
  .credential-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .credential-list > li { break-inside: avoid; }
  .career-archive table { min-width: 0; }
}

.employment-status { display: block; color: var(--accent); font-size: .75rem; margin-top: 6px; }
.prose .employment-records { font-size: .8125rem; color: var(--muted); margin-top: 12px; }
.employment-records summary { cursor: pointer; width: fit-content; }
.prose .employment-records p { font-size: .8125rem; margin: 8px 0 0; line-height: 1.8; }
.profile-location { padding: 16px 20px; background: var(--soft); border-left: 2px solid var(--accent); }

/* Keep the lagoon behind the whole hero at narrow widths, just as on desktop. */
@media (max-width: 640px) {
  .hero { min-height: 600px; padding-block: 42px 48px; }
  .hero-visual { top: 0; bottom: 0; height: auto; opacity: .7; }
  .hero-visual img { object-position: 70% 54%; }
  .hero-visual::after,
  [data-theme=dark] .hero-visual::after {
    background: linear-gradient(90deg, var(--bg) 0%, var(--hero-fade) 100%),
      linear-gradient(180deg, var(--bg) 0%, var(--hero-fade) 30%),
      linear-gradient(0deg, var(--bg) 0%, var(--hero-fade) 35%);
  }
}
