/* ==========================================================================
   SM_multi — SurveyMETER institutional research theme
   A hybrid drawn from IDinsight (immersive hero), RAND (authoritative navy
   and serif voice), Mathematica (crisp grids and gold accents) and RTI
   (utility bar, editorial scale and confident calls to action).
   ========================================================================== */

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --tint: #F2F6FB;
  --card: #FFFFFF;
  --rule: #D9E2EE;
  --edge: #8798AD;
  --ink: #142033;
  --ink-2: #526072;
  --green: #14508C;
  --green-dark: #0C3A68;
  --forest: #0A2447;
  --forest-text: #C7D6EA;
  --lime: #F4B740;
  --lime-dark: #D99A19;
  --mint: #DCE8F7;

  --navy: #0A2447;
  --blue: #14508C;
  --blue-bright: #1D64A8;
  --teal: #0E6B66;
  --gold: #F4B740;
  --sky: #EAF1F9;

  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-pill: 3px;

  --nav-h: 88px;
  --lift: 0 24px 48px -28px rgba(10, 36, 71, .38);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 { line-height: 1.04; }
.page-head h1, .section h2 { text-wrap: balance; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; }
h3 { font-weight: 600; }

:focus-visible { outline-color: var(--blue); }

.container { max-width: 1220px; }

/* --------------------------------------------------------------------------
   Utility bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #D5E1F0;
  font-size: 12.5px;
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.topbar__inner { min-height: 42px; }
.topbar__info { color: #C2D2E6; gap: 0 26px; }
.topbar__info a { min-height: 42px; color: #FFFFFF; }
.topbar__info a:hover { color: var(--gold); text-decoration: none; }
.topbar :focus-visible { outline-color: var(--gold); }
.lang__btn {
  min-height: 42px;
  padding: 0 10px;
  color: #AFC3DA;
  font-size: 11.5px;
  letter-spacing: .12em;
}
.lang__btn:hover { color: #fff; }
.lang__btn[aria-current] {
  color: var(--navy);
  background: var(--gold);
  text-decoration: none;
  padding: 0 12px;
  margin-left: 4px;
}
.lang__btn.is-disabled { opacity: .4; }

.nav {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 8px 24px -22px rgba(10, 36, 71, .45);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav__inner { gap: 32px; }
.nav__logo img { width: 220px; height: auto; }
.menu { gap: 0; }
.menu__btn, .menu__link, .nav__search {
  min-height: 48px;
  padding: 0 13px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.menu__btn::after { width: 6px; height: 6px; border-width: 0 1.5px 1.5px 0; }
.menu__btn:hover, .menu__link:hover, .nav__search:hover, .menu__btn[aria-expanded="true"] {
  background: transparent;
  color: var(--blue);
}
.menu__item.is-current > .menu__btn,
.menu__item.is-current > .menu__link {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav__search {
  box-shadow: none;
  border-left: 1px solid var(--rule);
  margin-left: 6px;
}
.nav__search:hover { background: var(--sky); }
.nav__cta {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--blue);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__cta:hover { background: var(--navy); }
.nav__toggle { border-radius: 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.mega {
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 30px 60px -34px rgba(10, 36, 71, .45);
}
.mega__inner { max-width: 1220px; padding: 34px var(--s5) 38px; gap: 32px 64px; }
.mega__head {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .13em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  display: inline-block;
}
.mega a {
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  font-weight: 500;
}
.mega a:hover { color: var(--blue); padding-left: 4px; transition: padding .15s ease; }

/* --------------------------------------------------------------------------
   Home hero — immersive navy field with editorial typography
   -------------------------------------------------------------------------- */
.home .hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  color: #fff;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(29, 100, 168, .55), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, rgba(14, 107, 102, .5), transparent 64%),
    linear-gradient(118deg, #071A34 0%, #0B2C54 48%, #0B3D63 100%);
}
.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 78%);
}
.home .hero .container { position: relative; z-index: 1; }
.home .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: .16em;
}
.home .hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero__title {
  max-width: 22ch;
  margin-top: 18px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(42px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero__lead {
  max-width: 48ch;
  margin-top: 24px;
  color: #C9D8EA;
  font-size: 18.5px;
  line-height: 1.62;
}
.hero__actions { margin-top: 34px; gap: 12px; }
.hero .btn {
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-height: 48px;
  padding: 0 24px;
}
.hero .btn--primary { background: var(--gold); color: var(--navy); }
.hero .btn--primary:hover { background: #FFD06A; }
.hero .btn--outline { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .65); color: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--navy); box-shadow: none; }

.home .hero__media { padding-bottom: 38px; }
.home .hero-carousel__viewport {
  border: 5px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .75);
}
.home .hero .float-card {
  left: -24px;
  bottom: 0;
  max-width: 430px;
  border-radius: 2px;
  border-top: 4px solid var(--gold);
  background: #fff;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45);
}
.home .hero .float-card span {
  color: var(--blue);
  font-size: 10.5px;
  letter-spacing: .14em;
}
.home .hero .float-card strong { color: var(--ink); font-weight: 600; line-height: 1.45; }
.home .hero .hero-carousel__arrow { border-radius: 2px; background: rgba(7, 26, 52, .72); }
.home .hero .hero-carousel__arrow:hover { background: var(--blue); }
.home .hero .hero-carousel__dot { border-radius: 1px; background: rgba(255,255,255,.45); }
.home .hero .hero-carousel__dot.is-active { background: var(--gold); }

/* Keep the section below the hero close, like an editorial spread */
.home .hero + .section { padding-top: 72px; }

/* --------------------------------------------------------------------------
   Sections, labels and headings
   -------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section--tint {
  background: var(--tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section .eyebrow, .page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}
.section .eyebrow::before, .page-head .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.section h2 { max-width: 20ch; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.section .split { gap: 64px; }
.section .split h2 { margin-bottom: 18px; }

/* Buttons */
.btn {
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: .045em;
  min-height: 44px;
  padding: 0 22px;
}
.btn--primary { background: var(--blue); }
.btn--primary:hover { background: var(--navy); }
.btn--outline { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--outline:hover { background: var(--navy); }
.btn--lg { min-height: 50px; }
.textlink { color: var(--blue); }

/* --------------------------------------------------------------------------
   Cards, grids and people
   -------------------------------------------------------------------------- */
.cards-grid { gap: 24px; }
.card {
  border-radius: 2px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 22px 44px -30px rgba(10, 36, 71, .45);
  transform: translateY(-3px);
}
.card__media { aspect-ratio: 16 / 9; background: var(--sky); }
.card__body { padding: 20px 22px 24px; }
.card__meta {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.card__meta time { color: var(--blue); }
.card h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.card h3 a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.card__excerpt { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.card--no-media { border-top: 3px solid var(--blue); }

.people li, .people--page li {
  border-radius: 2px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  background: #fff;
}
.people--page li a.person-link { padding: 18px; }
.avatar {
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-weight: 700;
}
.people strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.people span:not(.avatar) { color: var(--ink-2); }
.prose .timeline li { border-bottom: 1px solid var(--rule); }
.prose .timeline strong { color: var(--blue); font-family: var(--sans); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.prose .timeline a { font-family: var(--serif); font-size: 18px; }

.partner-grid img { filter: grayscale(1); opacity: .75; }
.partner-grid img:hover { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Page head, breadcrumbs and article reading
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding: 54px 0 56px;
  background: linear-gradient(180deg, #EAF1F9 0%, #F7FAFD 100%);
  border-bottom: 1px solid var(--rule);
}
.page-head::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100vw - 1220px) / 2 + 24px));
  bottom: -1px;
  width: 88px;
  height: 3px;
  background: var(--gold);
}
.page-head h1 {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.page-head__intro { max-width: 62ch; margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.page-head .eyebrow { margin-top: 26px; }
.crumbs {
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.crumbs a { color: var(--blue); font-weight: 700; }
.crumbs li + li::before { color: var(--edge); margin: 0 9px; }

.article-page { padding-top: 56px; }
.post__meta {
  gap: 12px 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 34px;
}
.article-page .post__meta { border-bottom: 1px solid var(--rule); }
.article-page .post__meta .meta-label { color: var(--blue); font-size: 10.5px; letter-spacing: .12em; }
.article-page .post__meta .meta-value { font-size: 14.5px; }
.post__cover img { border-radius: 2px; box-shadow: 0 24px 50px -32px rgba(10, 36, 71, .45); }

.prose { max-width: 70ch; font-size: 17px; line-height: 1.78; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); color: var(--navy); }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 23px; }
.prose a { color: var(--blue); text-decoration-color: rgba(20, 80, 140, .35); }
.prose a:hover { text-decoration-color: var(--blue); }
.prose blockquote {
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}
.prose table { font-size: 14.5px; border: 1px solid var(--rule); }
.prose th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-align: left;
  border-color: var(--navy);
}
.prose td, .prose th { border-color: var(--rule); vertical-align: top; }
.prose tr:nth-child(even) td { background: #F7FAFD; }
.prose img { border-radius: 2px; }
.staff-photo img { border-radius: 2px; box-shadow: 0 22px 44px -30px rgba(10, 36, 71, .45); }

/* --------------------------------------------------------------------------
   Sidebars, lists, contact and publications
   -------------------------------------------------------------------------- */
.side__box { border-radius: 2px; border: 1px solid var(--rule); }
.side__title { color: var(--blue); letter-spacing: .13em; }
.side__head { color: var(--ink); }
.side__nav a[aria-current] { color: var(--blue); }
.covers li, .list li { border-color: var(--rule); }
.covers time, .news__list time, .list__year { color: var(--blue); }
.ptab[aria-selected="true"] { border-bottom-color: var(--gold); }
.area { border-radius: 2px; border: 1px solid var(--rule); }
.area__num { color: var(--blue); }
.area h3 { font-family: var(--serif); }
.dtab[aria-selected="true"] { background: var(--gold); color: var(--navy); }

/* Forms and search */
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], select, textarea {
  border-radius: 2px;
  border: 1px solid var(--edge);
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(20, 80, 140, .25); border-color: var(--blue); }
.com-finder input[type="search"], .com-finder input[type="text"] { border-radius: 2px; }
.com-finder .btn-primary { background: var(--blue); }

/* Pagination */
.pagination a, .pagination li > a, .pagination li > span { border-radius: 2px; font-weight: 600; }
.pagination li.active > a, .pagination li.active > span { background: var(--blue); border-color: var(--blue); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* System messages */
.system-messages .alert { border-radius: 2px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: #C4D4E7;
  border-top: 0;
  padding: 72px 0 30px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 16%, var(--teal) 16% 32%, transparent 32%);
}
.footer__brand img {
  width: 220px;
  height: auto;
  padding: 8px 10px;
  background: #fff;
  border-radius: 2px;
}
.footer__brand p, .footer__brand address, .footer li, .footer__fine { color: #AFC2DA; }
.footer__head { color: #fff; font-size: 11px; letter-spacing: .14em; }
.footer a { color: #C4D4E7; }
.footer a:hover { color: var(--gold); text-decoration: none; }
.footer__fine { border-top: 1px solid rgba(255,255,255,.14); }
.footer__social a { color: var(--gold); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .home .hero { padding: 64px 0 72px; }
  .hero__title { font-size: clamp(40px, 6vw, 58px); }
  .home .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home .hero__media { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .home .hero__media { max-width: 580px; margin: 0 auto; }
  .home .hero .float-card { left: 0; }
  .section { padding: 68px 0; }
  .page-head { padding: 42px 0 46px; }
  .page-head::after { left: 24px; }
}
@media (max-width: 640px) {
  .topbar__info span { display: none; }
  .topbar__inner { min-height: 40px; }
  .nav__logo img { width: 180px; }
  .home .hero { padding: 48px 0 56px; }
  .hero__title { font-size: clamp(36px, 10vw, 48px); }
  .hero__lead { font-size: 17px; }
  .hero .btn { width: 100%; }
  .home .hero .float-card { position: relative; left: 0; bottom: auto; margin-top: -26px; }
  .home .hero__media { padding-bottom: 0; }
  .section h2 { max-width: none; }
  .page-head h1 { font-size: clamp(32px, 9vw, 42px); }
  .footer { padding-top: 56px; }
}

/* Wide article regions must not inherit the narrow prose measure */
.prose.prose--wide { max-width: none; }

/* The carousel viewport has no in-flow content, so give it an explicit width
   when the hero stacks on tablet/mobile. */
.home .hero__media,
.home .hero-carousel,
.home .hero-carousel__viewport { width: 100%; }
.home .hero__media { max-width: 620px; }
@media (min-width: 901px) {
  .home .hero__media { max-width: none; }
}
