:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #122033;
  --muted: #5d6b7b;
  --line: rgba(18, 32, 51, 0.12);
  --primary: #193a63;
  --primary-2: #315f97;
  --accent: #0ea5a8;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(49, 95, 151, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 168, 0.10), transparent 22%),
    var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-2);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 251, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  font-size: clamp(1.15rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.global-nav a:hover,
.global-nav a.active {
  background: rgba(25, 58, 99, 0.10);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

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

.hero {
  position: relative;
  min-height: min(76vh, 800px);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 6000ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.16) 0%, rgba(9, 18, 31, 0.58) 72%, rgba(9, 18, 31, 0.78) 100%),
    linear-gradient(90deg, rgba(9, 18, 31, 0.56) 0%, rgba(9, 18, 31, 0.20) 50%, rgba(9, 18, 31, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 84px;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem);
  color: rgba(255,255,255,.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #fff;
  color: var(--primary);
}

.button-secondary {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}

.section {
  padding: 84px 0;
}

.intro-section {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.4rem);
  line-height: 1.15;
}

.info-list {
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.info-list div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.info-list dt {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-list dd {
  margin: 0;
}

.quicklinks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.quicklinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  font-weight: 700;
}

.quicklinks a::after {
  content: "→";
  color: var(--muted);
}

.news-section {
  padding-top: 10px;
}

.text-link {
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 6px 22px rgba(10, 22, 40, 0.04);
}

.news-item time {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.news-item.featured {
  border-color: rgba(14, 165, 168, 0.22);
  box-shadow: 0 12px 28px rgba(14, 165, 168, 0.08);
}

.news-body p {
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(14, 165, 168, 0.10);
  color: #0f7d80;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 32px;
  padding: 34px 0 28px;
  color: rgba(255,255,255,.82);
  background: linear-gradient(180deg, #18314f 0%, #101d2f 100%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.footer-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.footer-subtitle,
.footer-copy {
  margin: 6px 0 0;
  color: rgba(255,255,255,.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 14px 18px;
}

.footer-links a {
  color: rgba(255,255,255,.86);
}

.footer-copy {
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .global-nav {
    display: none;
    width: 100%;
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .global-nav a {
    min-height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.65);
  }

  .intro-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 104px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .panel {
    padding: 22px;
    border-radius: 22px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-heading-inline {
    display: block;
  }
}


/* layout extension for sub pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 56px;
  background:
    radial-gradient(circle at 0% 0%, rgba(49,95,151,0.20), transparent 28%),
    linear-gradient(135deg, #0f1f34 0%, #193a63 45%, #2c5d8a 100%);
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 1.03rem;
}
.page-wrap {
  padding: 42px 0 88px;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.content-card,
.sidebar-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
}
.content-card {
  padding: clamp(22px, 2.2vw, 38px);
  overflow: hidden;
}
.sidebar-card {
  padding: 22px;
  position: sticky;
  top: 108px;
}
.content-prose > :first-child { margin-top: 0 !important; }
.content-prose h2,
.content-prose #main > h2 {
  margin: 0 0 22px;
  padding: 0 0 14px;
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
}
.content-prose h3,
.content-prose #main > h3 {
  margin: 34px 0 12px;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  line-height: 1.35;
}
.content-prose h4,
.content-prose #main > h4 {
  margin: 24px 0 10px;
  font-size: 1.02rem;
}
.content-prose p {
  margin: 0 0 1.15em;
  text-indent: 0 !important;
}
.content-prose img {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(16, 28, 45, .10);
}
.content-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
  border-radius: 18px;
  display: block;
  overflow-x: auto;
}
.content-prose table tbody,
.content-prose table thead {
  width: 100%;
}
.content-prose th,
.content-prose td {
  padding: 12px 14px;
  border: 1px solid rgba(18,32,51,.10);
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
.content-prose th {
  background: rgba(25,58,99,.08);
  font-weight: 700;
}
.content-prose ul,
.content-prose ol {
  margin: 0 0 1.2em 1.35em;
  padding: 0;
}
.content-prose li { margin-bottom: .45em; }
.content-prose dl.information {
  display: grid;
  gap: 16px;
}
.content-prose dl.information dt,
.content-prose dl.information dd {
  margin: 0;
}
.content-prose dl.information > dt {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 700;
}
.content-prose dl.information > dd {
  padding: 0;
}
.content-prose dl.information > dd > div,
.news-entry {
  padding: 18px 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(18,32,51,.08);
  border-radius: 18px;
}
.content-prose .information img { margin-top: 10px; }
.page-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--text);
}
.page-nav-list a:hover,
.page-nav-list a.active {
  background: rgba(25,58,99,.09);
  color: var(--primary);
}
.sidebar-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.sidebar-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .94rem;
}
.subsection + .subsection { margin-top: 22px; }
.footer-copy { padding-bottom: 24px; }
.legacy-hidden,
#icatch, #photo, #pageTop, #footMenu, #menu, #header, #top > style { display:none !important; }
.inline-image-right, .image { float: right; margin: 0 0 16px 20px; max-width: min(38%, 240px); }
@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; order: -1; }
}
@media (max-width: 760px) {
  .page-hero { padding: 72px 0 44px; }
  .content-card { padding: 20px 16px; border-radius: 22px; }
  .inline-image-right, .image { float: none; margin: 0 0 16px 0; max-width: 100%; }
  .content-prose table { font-size: .94rem; }
}


/* v3 cleanup */
.page-grid-full {
  grid-template-columns: minmax(0, 1fr);
}
.page-grid-full .content-card {
  max-width: 920px;
}
.page-grid-full .content-card.wide,
.page-grid-full .content-card.publications-card {
  max-width: none;
}
.content-prose style { display: none !important; }
.content-prose .signature {
  text-align: right;
  font-size: 1.15rem;
  margin-top: 24px;
}
.content-prose .image {
  float: right;
  margin: 0 0 20px 28px;
  width: min(240px, 34%);
  max-width: 240px;
  border-radius: 18px;
}
.news-section .container {
  max-width: 920px;
}
.news-note {
  display: none;
}
@media (max-width: 980px) {
  .page-grid-full .content-card {
    max-width: none;
  }
}


/* --- refinement v4 --- */
.page-grid.page-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

.content-card {
  width: 100%;
}

.content-prose {
  overflow-wrap: break-word;
}

.content-prose p > img:not(.image),
.content-prose > img:not(.image),
.news-content img,
.archive-item img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  border-radius: 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

.content-prose img.image {
  float: right;
  width: min(220px, 38%);
  max-width: 220px;
  height: auto !important;
  object-fit: contain;
  border-radius: 20px;
  margin: 4px 0 16px 24px;
  box-shadow: var(--shadow);
}

.signature {
  clear: both;
  text-align: right;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 24px;
}

.news-home-only {
  padding-top: 64px;
}

.rich-news-list {
  display: grid;
  gap: 18px;
}

.news-item-rich {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.news-item-rich time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(25,58,99,.08);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .02em;
  padding: 0 14px;
}

.news-item-rich .news-body {
  min-width: 0;
}

.news-item-rich .tag {
  margin-bottom: 12px;
}

.news-content {
  color: var(--text);
}

.news-content p {
  margin: 0;
}

.news-content > div,
.news-content {
  line-height: 1.85;
}

.news-content a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.news-content br + img,
.news-content img + br {
  display: block;
}

.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.news-more-button {
  min-width: 240px;
}

.info-archive .archive-header {
  margin-bottom: 28px;
}

.archive-news-list {
  gap: 20px;
}

@media (max-width: 920px) {
  .page-hero {
    padding: 74px 0 58px;
  }

  .news-item-rich {
    grid-template-columns: 1fr;
  }

  .news-item-rich time {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 62px 0 46px;
  }

  .content-prose img.image {
    float: none;
    width: min(260px, 100%);
    max-width: 100%;
    margin: 0 auto 20px;
  }

  .signature {
    text-align: left;
  }
}


/* v7: thinner subpage title band */
.page-hero .eyebrow {
  margin-bottom: 12px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.7rem + 2vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 720px;
}

@media (max-width: 920px) {
  .page-hero {
    padding: 54px 0 40px;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 44px 0 32px;
  }

  .page-hero .eyebrow {
    margin-bottom: 10px;
  }

  .page-hero p {
    margin-top: 10px;
  }
}


/* v8: make subpage title band clearly shallower */
.page-hero {
  padding: 38px 0 30px !important;
}

.page-hero .container {
  max-width: 1180px;
}

.page-hero .eyebrow {
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3.2rem);
  line-height: 1.06;
}

.page-hero p {
  margin-top: 8px;
  font-size: 1.02rem;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .page-hero {
    padding: 32px 0 26px !important;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 26px 0 22px !important;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem);
  }

  .page-hero p {
    font-size: 0.95rem;
  }
}


/* v13: unify subpage sizing and background tone */
body.sub-page,
body.sub-page .site-shell,
body.sub-page main,
body.sub-page .page-wrap {
  background:
    radial-gradient(circle at top left, rgba(49, 95, 151, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 168, 0.10), transparent 22%),
    var(--bg);
}

.page-grid-full .content-card,
.page-grid.page-grid-full .content-card,
.info-archive,
.publications-card {
  width: min(920px, 100%);
  max-width: 920px !important;
  margin-inline: auto;
}

.info-archive,
.page-grid-full .content-card {
  background: var(--surface) !important;
}

.news-item-rich,
.archive-item,
.content-prose dl.information > dd > div,
.news-entry,
.content-prose table {
  background: rgba(255,255,255,.78) !important;
}

.content-prose p > img:not(.image),
.content-prose > img:not(.image) {
  width: 100%;
  max-width: 100%;
  height: auto !important;
}

@media (max-width: 980px) {
  .page-grid-full .content-card,
  .page-grid.page-grid-full .content-card,
  .info-archive,
  .publications-card {
    width: 100%;
    max-width: 100% !important;
  }
}


/* v14: neutralize side background tone for publications / information archive */
body.publications-page,
body.information-page,
body.publications-page .site-shell,
body.information-page .site-shell,
body.publications-page main,
body.information-page main,
body.publications-page .page-wrap,
body.information-page .page-wrap {
  background: #eef2f5 !important;
}

body.publications-page .page-wrap,
body.information-page .page-wrap {
  position: relative;
}

body.publications-page .page-wrap::before,
body.information-page .page-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center top, rgba(255,255,255,0.55), transparent 38%),
    linear-gradient(180deg, #eef2f5 0%, #edf1f4 100%);
  pointer-events: none;
}

body.publications-page .page-wrap > .container,
body.information-page .page-wrap > .container {
  position: relative;
  z-index: 1;
}


/* v15: publications / information should match other subpages exactly */
body.publications-page,
body.information-page,
body.publications-page .site-shell,
body.information-page .site-shell,
body.publications-page main,
body.information-page main,
body.publications-page .page-wrap,
body.information-page .page-wrap {
  background:
    radial-gradient(circle at top left, rgba(49, 95, 151, 0.12), transparent 30%) !important,
    radial-gradient(circle at top right, rgba(14, 165, 168, 0.10), transparent 22%) !important,
    var(--bg) !important;
}

body.publications-page .page-wrap::before,
body.information-page .page-wrap::before {
  display: none !important;
  content: none !important;
}


/* A_current: keep current typography */


/* =========================================================
   Laboratory / academic visual refinement
   - Content is unchanged. This section only changes appearance.
   - Aim: Kobe University / pathology lab feel, less “startup”, more scholarly.
   ========================================================= */
:root {
  --bg: #eef2f6;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #172235;
  --muted: #647184;
  --line: rgba(23, 34, 53, 0.14);
  --primary: #12365d;
  --primary-2: #245a8d;
  --accent: #8a2f36;
  --accent-2: #b8860b;
  --shadow: 0 14px 34px rgba(15, 30, 52, 0.08);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

body {
  background:
    linear-gradient(rgba(18, 54, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 93, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(18,54,93,0.10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(138,47,54,0.07), transparent 26%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  font-feature-settings: "palt";
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 54, 93, 0.13);
  box-shadow: 0 8px 24px rgba(18, 35, 58, 0.055);
}

.header-inner {
  min-height: 82px;
}

.brand {
  position: relative;
  padding-left: 18px;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.brand-kicker {
  color: #6d7886;
  letter-spacing: 0.16em;
}

.brand-title {
  letter-spacing: 0.02em;
}

.global-nav ul {
  gap: 2px;
}

.global-nav a {
  border-radius: 8px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.global-nav a:hover,
.global-nav a.active {
  background: rgba(18,54,93,0.07);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
  min-height: min(70vh, 720px);
}

.hero-slide {
  filter: saturate(0.86) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8,18,32,0.22) 0%, rgba(8,18,32,0.62) 66%, rgba(8,18,32,0.82) 100%),
    linear-gradient(90deg, rgba(9,26,46,0.72) 0%, rgba(9,26,46,0.36) 52%, rgba(9,26,46,0.42) 100%);
}

.hero-content {
  padding-bottom: 76px;
}

.eyebrow {
  border-radius: 6px;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  letter-spacing: 0.02em;
  font-weight: 800;
  text-shadow: 0 10px 34px rgba(0,0,0,.28);
}

.hero p {
  max-width: 780px;
  border-left: 3px solid rgba(255,255,255,.52);
  padding-left: 18px;
}

.panel,
.content-card,
.sidebar-card,
.news-item,
.news-item-rich {
  backdrop-filter: none;
  background: var(--surface-strong);
  border: 1px solid rgba(23,34,53,0.12);
  box-shadow: var(--shadow);
}

.panel,
.content-card,
.news-item-rich {
  position: relative;
}

.panel::before,
.content-card::before,
.news-item-rich::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(18,54,93,.46), rgba(138,47,54,.58));
}

.section-label {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.section-heading h2,
.content-prose h2,
.content-prose #main > h2 {
  letter-spacing: 0.02em;
}

.content-prose h2,
.content-prose #main > h2 {
  border-bottom: 1px solid rgba(23,34,53,0.16);
  padding-left: 16px;
  position: relative;
}

.content-prose h2::before,
.content-prose #main > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .62em;
  width: 4px;
  background: var(--primary);
  border-radius: 999px;
}

.content-prose h3,
.content-prose #main > h3 {
  color: var(--primary);
  padding-left: 12px;
  border-left: 3px solid rgba(138,47,54,.55);
}

.content-prose p,
.news-content {
  color: #263449;
}

.content-prose a,
.news-content a {
  color: var(--primary-2);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.content-prose img,
.content-prose p > img:not(.image),
.content-prose > img:not(.image),
.news-content img,
.archive-item img {
  border-radius: 10px;
  border: 1px solid rgba(23,34,53,0.12);
  box-shadow: 0 12px 26px rgba(16,28,45,.09);
}

.content-prose table {
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(23,34,53,0.14);
}

.content-prose th,
.content-prose td {
  border-color: rgba(23,34,53,0.12);
  padding: 13px 15px;
}

.content-prose th {
  color: var(--primary);
  background: #f1f5f9;
  width: 24%;
}

.news-section {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.36));
}

.news-item-rich {
  border-radius: 14px;
  padding: 22px 24px;
}

.news-item-rich time {
  border-radius: 8px;
  background: #eef3f8;
  border: 1px solid rgba(18,54,93,.10);
}

.tag {
  border-radius: 6px;
  background: rgba(138,47,54,0.10);
  color: var(--accent);
}

.quicklinks a {
  border-radius: 10px;
  background: #fff;
}

.quicklinks a:hover {
  background: #f3f6fa;
  box-shadow: inset 3px 0 0 var(--accent);
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(8,22,39,.96), rgba(18,54,93,.96) 52%, rgba(37,73,108,.94)),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.14), transparent 32%);
  border-bottom: 4px solid rgba(138,47,54,.72);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .55;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  letter-spacing: 0.04em;
}

.page-wrap {
  padding-top: 46px;
}

.site-footer {
  background: linear-gradient(180deg, #102c4b 0%, #071624 100%);
  border-top: 4px solid rgba(138,47,54,.7);
}

.map-embed iframe {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(23,34,53,0.14) !important;
}

@media (max-width: 980px) {
  .global-nav a:hover,
  .global-nav a.active {
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

@media (max-width: 700px) {
  .brand { padding-left: 14px; }
  .hero p { padding-left: 14px; }
  .news-item-rich { padding: 18px; }
}

/* =========================================================
   v16: Apply the home-page mesh texture to every page
   and force publications/information backgrounds to match.
   ========================================================= */
body,
body.sub-page,
body.sub-page .site-shell,
body.sub-page main,
body.sub-page .page-wrap,
body.publications-page,
body.information-page,
body.publications-page .site-shell,
body.information-page .site-shell,
body.publications-page main,
body.information-page main,
body.publications-page .page-wrap,
body.information-page .page-wrap {
  background:
    linear-gradient(rgba(18, 54, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 93, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(18,54,93,0.10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(138,47,54,0.07), transparent 26%),
    var(--bg) !important;
  background-size: 32px 32px, 32px 32px, auto, auto, auto !important;
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}

/* Keep the content area transparent so the common mesh tone shows through uniformly. */
.page-wrap,
body.publications-page .page-wrap,
body.information-page .page-wrap {
  position: relative;
  isolation: isolate;
}

body.publications-page .page-wrap::before,
body.information-page .page-wrap::before {
  display: none !important;
  content: none !important;
}

/* Add the same subtle mesh feeling to subpage hero areas, without changing text. */
.page-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,.070) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  opacity: .64 !important;
}

/* Publications can look slightly warmer because of older overrides; normalize cards and tables. */
.publications-page .content-card,
.publications-page .content-prose table,
.publications-page .content-prose p,
.information-page .content-card,
.information-page .news-item-rich {
  background-color: var(--surface-strong) !important;
}

.publications-page .content-card,
.information-page .content-card,
.page-grid-full .content-card {
  border-color: rgba(23, 34, 53, 0.12) !important;
}

/* =========================================================
   v17: Let the shared gradient/mesh show consistently on
   Publications and Information archive pages.
   These two pages have very long full-width cards, so pure
   white blocks can visually erase the page background.
   ========================================================= */
html,
body,
.site-shell,
.site-shell main {
  min-height: 100%;
  background:
    linear-gradient(rgba(18, 54, 93, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 93, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(18,54,93,0.10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(138,47,54,0.07), transparent 26%),
    var(--bg) !important;
  background-size: 32px 32px, 32px 32px, auto, auto, auto !important;
  background-attachment: fixed, fixed, fixed, fixed, scroll !important;
}

body.publications-page .content-card,
body.information-page .content-card {
  background: rgba(255,255,255,0.94) !important;
}

body.publications-page .page-wrap,
body.information-page .page-wrap {
  background: transparent !important;
}

body.publications-page .page-grid-full,
body.information-page .page-grid-full {
  background: transparent !important;
}

body.publications-page .content-card::after,
body.information-page .content-card::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto 0;
  height: 180px;
  pointer-events: none;
  background:
    linear-gradient(rgba(18,54,93,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,54,93,0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  border-radius: inherit;
  z-index: 0;
}

body.publications-page .content-card > *,
body.information-page .content-card > * {
  position: relative;
  z-index: 1;
}

body.information-page .news-item-rich,
body.publications-page .content-prose table,
body.publications-page .content-prose p {
  background-color: rgba(255,255,255,0.88) !important;
}


/* Publications: collapse older years */
.older-publications-control {
  margin: 36px 0 18px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(20, 41, 68, 0.14);
  text-align: center;
}

.older-publications-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(20, 41, 68, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 22, 40, 0.08);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.older-publications-toggle::after {
  content: "↓";
  margin-left: 10px;
  color: var(--accent);
  font-weight: 800;
}

.older-publications-toggle[aria-expanded="true"]::after {
  content: "↑";
}

.older-publications-toggle:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(20, 41, 68, 0.34);
}

.older-publications[hidden] {
  display: none !important;
}

.older-publications {
  animation: olderPublicationsFade .28s ease;
}

@keyframes olderPublicationsFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* v5: make the first hero image move immediately on page load */
.hero-slide {
  transform: scale(1.02);
  transition: opacity 900ms ease;
  will-change: transform, opacity;
}

.hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 6500ms ease-out forwards;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-0.8%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active {
    animation: none;
    transform: scale(1.04);
  }
}

/* v6: smoother hero image crossfade */
.hero-slide {
  opacity: 0;
  z-index: 0;
  transform: scale(1.04) translate3d(0, 0, 0);
  transition: opacity 1800ms ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  animation: heroKenBurnsSmooth 7200ms ease-out forwards;
}

.hero-slide.is-leaving {
  opacity: 0;
  z-index: 1;
  animation: heroKenBurnsSmooth 7200ms ease-out forwards;
}

@keyframes heroKenBurnsSmooth {
  0% {
    transform: scale(1.035) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.095) translate3d(-0.9%, -0.6%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active,
  .hero-slide.is-leaving {
    transition: opacity 500ms ease-in-out;
    animation: none;
    transform: scale(1.04);
  }
}

/* v7: keep hero text stable during image crossfade + add subtle frosted glass panel */
.hero {
  overflow: hidden;
}

.hero-media {
  z-index: 0;
}

.hero-slide {
  z-index: 0;
}

.hero-slide.is-active {
  z-index: 1;
}

.hero-slide.is-leaving {
  z-index: 1;
}

.hero-overlay {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.10) 0%, rgba(8, 16, 28, 0.44) 68%, rgba(8, 16, 28, 0.70) 100%),
    linear-gradient(90deg, rgba(8, 16, 28, 0.54) 0%, rgba(8, 16, 28, 0.24) 52%, rgba(8, 16, 28, 0.38) 100%);
}

.hero-content {
  z-index: 5;
  isolation: isolate;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -26px;
  bottom: 58px;
  width: min(820px, calc(100% + 52px));
  height: calc(100% - 88px);
  min-height: 230px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.075)),
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: -1;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

@media (max-width: 720px) {
  .hero-content::before {
    left: -16px;
    bottom: 38px;
    width: calc(100% + 32px);
    height: calc(100% - 76px);
    min-height: 260px;
    border-radius: 24px;
  }
}

/* v8: remove frosted glass text panel while keeping stable hero text and smooth crossfade */
.hero-content::before {
  content: none !important;
  display: none !important;
}

.hero-content {
  z-index: 5;
  isolation: auto;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.38);
}

.hero-content .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
