/*
Theme Name: IETS WordPress Theme
Author: IETS
Version: 20260630-15
Description: WordPress theme for the IETS institutional website, aligned to the 20260630-15 public static design.
*/

:root {
  --ink: #111827;
  --navy: #061b46;
  --navy-2: #103b6f;
  --blue: #1f5fc4;
  --teal: #13b8ad;
  --gold: #f6bf26;
  --gold-2: #b97900;
  --paper: #ffffff;
  --mist: #f7fbff;
  --mist-2: #eaf3fb;
  --line: #d4e2ef;
  --muted: #52647a;
  --shadow: 0 18px 42px rgba(7, 31, 61, .12);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfdff;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}
a { color: #154db9; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); max-width: 100%; margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 18px; top: 18px; padding: 8px 12px; background: #fff; z-index: 100; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #f8fcff 0%, #eff6fb 100%);
  border-bottom: 1px solid #cbd8e5;
  box-shadow: 0 8px 22px rgba(6, 27, 70, .07);
  backdrop-filter: blur(12px);
}
main, .page-hero, .section, .contact-band { max-width: 100%; overflow-x: clip; }
.nav-wrap {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 310px) 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 28px;
}
.main-nav { min-width: 0; }
.logo {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0;
  color: var(--navy);
  flex: 0 0 auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #c8d8e8;
  box-shadow: 0 6px 16px rgba(6, 27, 70, .08);
  border-radius: 50%;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-copy {
  max-width: 235px;
  color: #061b46;
  font-weight: 950;
  font-size: .9rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 9px 12px; font: inherit; font-weight: 900; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 15px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 2px;
  color: #061b46;
  font-weight: 950;
  font-size: .9rem;
  white-space: nowrap;
  border-left: 0;
  gap: 4px;
}
.nav-link:hover { background: transparent; color: #164fa8; text-decoration: none; }
.nav-link span { color: #5e7087; font-size: .86rem; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  display: none;
  background: rgba(255, 255, 255, .98);
  border-top: 5px solid var(--gold);
  box-shadow: 0 18px 46px rgba(6, 27, 70, .16);
  padding: 10px;
  z-index: 60;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 11px; color: #10233e; font-weight: 760; border-bottom: 1px solid #edf1f6; }
.dropdown a:hover { background: #f7f8fb; color: var(--blue); text-decoration: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-search {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
}
.site-search input {
  width: 0;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #cfd8e6;
  border-right: 0;
  border-color: transparent;
  padding: 8px 0;
  font: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  transition: width .18s ease, opacity .18s ease, padding .18s ease, border-color .18s ease;
}
.site-search input::placeholder { color: #64748b; }
.site-search.open input,
.site-search:focus-within input {
  width: 190px;
  border-color: var(--line);
  padding: 8px 10px;
  opacity: 1;
}
.site-search button {
  width: 46px;
  min-height: 46px;
  border: 1px solid #061b46;
  background: #061b46;
  color: #fff;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-weight: 950;
  cursor: pointer;
}
.site-search svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  font-weight: 950;
  font-size: 1.02rem;
  white-space: nowrap;
  cursor: pointer;
}
.nav-cta:hover { text-decoration: none; filter: brightness(.98); }
.nav-cta.subscribe { background: var(--gold); color: var(--navy); box-shadow: 0 8px 18px rgba(246, 191, 38, .2); }
.nav-cta.donate { background: #335dff; color: #fff; }
.language-menu { position: relative; }
.language-trigger {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  padding: 0 10px;
  color: var(--navy);
  font-weight: 950;
  font-size: .92rem;
  cursor: pointer;
}
.language-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 138px;
  display: none;
  background: #fff;
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 40;
}
.language-menu:hover .language-options,
.language-menu:focus-within .language-options,
.language-menu.open .language-options { display: block; }
.language-options a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px solid #edf1f6;
}
.language-options a.active {
  background: var(--gold);
  color: var(--navy);
}
.language-options a:hover { background: var(--mist); text-decoration: none; }
.language-options a.active:hover { background: var(--gold); color: var(--navy); }

body.modal-open { overflow: hidden; }
.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.subscribe-modal[hidden] { display: none; }
.subscribe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 31, 61, .52);
}
.subscribe-dialog {
  position: relative;
  width: min(620px, 100%);
  background: #fff;
  border-top: 7px solid var(--gold);
  box-shadow: 0 28px 80px rgba(7, 31, 61, .28);
  padding: 34px;
}
.subscribe-dialog h2 {
  margin: 4px 0 18px;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
}
.subscribe-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.subscribe-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.subscribe-modal-form {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}
.subscribe-modal-form label:nth-of-type(3),
.subscribe-modal-form button {
  grid-column: 1 / -1;
}
.subscribe-modal-form button {
  min-height: 48px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.hero {
  color: var(--navy);
  min-height: 640px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(248, 253, 255, .99) 0%, rgba(242, 250, 255, .95) 30%, rgba(226, 243, 254, .54) 52%, rgba(198, 228, 247, .04) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)),
    var(--iets-hero-image, url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2400&q=90")) center right/cover;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--gold) 0 26%, var(--teal) 26% 55%, var(--blue) 55% 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 92px 0 96px; max-width: 820px; }
.hero h1 {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(3rem, 6.1vw, 6rem);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.04em;
  color: var(--navy);
}
.hero p { margin: 26px 0 0; max-width: 720px; color: #061b46; font-size: 1.13rem; font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  letter-spacing: .01em;
}
.btn.primary { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 10px 22px rgba(246, 191, 38, .24); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.outline { background: #fff; border-color: #cfd8e6; color: var(--navy); }
.btn.ghost { background: rgba(255,255,255,.58); border-color: rgba(6, 27, 70, .48); color: var(--navy); backdrop-filter: blur(3px); }
.btn:hover { text-decoration: none; filter: brightness(.97); transform: translateY(-1px); }

.section { padding: 82px 0; background: #fff; }
.section.soft { background: #f1f4f9; }
.section.tight { padding: 58px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
  border-bottom: 3px solid #111827;
  padding-bottom: 16px;
}
.section-head h2, .page-title h1 {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.035em;
}
.section-head p, .page-title p { color: var(--muted); max-width: 690px; margin: 8px 0 0; }
.page-hero {
  background:
    linear-gradient(90deg, rgba(248, 253, 255, .99) 0%, rgba(242, 250, 255, .95) 36%, rgba(226, 243, 254, .56) 64%, rgba(198, 228, 247, .05) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)),
    var(--iets-hero-image, url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2400&q=90")) center right/cover;
  color: var(--navy);
  border-bottom: 6px solid var(--gold);
  padding: 88px 0 58px;
}
.page-hero.visual-hero {
  color: var(--navy);
  min-height: 390px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(248, 253, 255, .99) 0%, rgba(242, 250, 255, .95) 36%, rgba(226, 243, 254, .56) 64%, rgba(198, 228, 247, .05) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)),
    var(--iets-hero-image, url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2400&q=90")) center right/cover;
}
.page-hero.visual-hero .page-title { padding-top: 46px; }
.page-hero.visual-hero .crumb,
.page-hero.visual-hero .page-title p { color: #334862; }
.page-hero.visual-hero .btn.outline { background: rgba(255,255,255,.72); border-color: rgba(6, 27, 70, .36); color: var(--navy); }
.page-title { max-width: 880px; }
.page-title .crumb { color: var(--gold-2); font-weight: 950; margin-bottom: 14px; }
.page-title p { color: #334862; font-weight: 650; }
.eyebrow, .kicker { color: var(--gold-2); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 950; }

.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: start; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: 0 12px 26px rgba(7, 31, 61, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(7, 31, 61, .12); border-color: #c7d2e4; }
.section .grid.cols-3 > .card:not(.person-card) > img {
  width: calc(100% + 52px);
  max-width: none;
  height: 220px;
  object-fit: cover;
  object-position: center;
  margin: -26px -26px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.card-image {
  width: calc(100% + 48px);
  max-width: none;
  height: 185px;
  object-fit: cover;
  margin: -24px -24px 22px;
  border-bottom: 1px solid var(--line);
}
.card-thumb {
  display: block;
  width: calc(100% + 48px);
  height: 185px;
  margin: -24px -24px 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card.feature { border-top: 6px solid var(--gold); }
.card h3 { margin: 0 0 10px; line-height: 1.15; font-size: 1.25rem; font-weight: 950; letter-spacing: -.018em; }
.card h2 { margin-top: 0; line-height: 1.08; font-weight: 950; }
.card p { margin-bottom: 0; }
.meta { color: var(--muted); font-size: .94rem; }
.label {
  margin: 0 0 10px;
  color: #a26f00;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 950;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { border: 1px solid #d7dfeb; background: #eef3fb; color: #25354d; padding: 5px 8px; font-size: .76rem; font-weight: 850; }

.research-list { display: grid; border-top: 4px solid #111827; background: #fff; }
.research-row {
  display: grid;
  grid-template-columns: 230px 128px 1fr;
  gap: 26px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.research-thumb {
  display: block;
  height: 132px;
  border: 1px solid var(--line);
  background: var(--mist);
  overflow: hidden;
}
.research-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
}
.research-thumb:hover img { transform: scale(1.03); }
.research-row h3 { margin: 0 0 8px; font-size: 1.24rem; line-height: 1.18; font-weight: 950; letter-spacing: -.015em; }
.research-copy .meta { margin-top: 14px; }
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}
.search-page-form input {
  border: 1px solid var(--line);
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.05rem;
  background: #fff;
}
.search-result h3 { font-size: 1.35rem; }
.event-highlight {
  background: linear-gradient(135deg, var(--navy), #123f7c);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 28px;
  padding: 42px;
  border-bottom: 8px solid var(--gold);
}
.event-highlight p { color: rgba(255,255,255,.82); }
.event-highlight a { color: #fff; }
.event-date {
  border-left: 1px solid rgba(255,255,255,.25);
  padding-left: 26px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 950;
  font-size: 2rem;
  line-height: 1.1;
}
.image-feature {
  display: grid;
  grid-template-columns: .78fr 1fr;
  align-items: center;
  gap: 36px;
}
.image-feature h2 {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.image-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.section.alt .grid.cols-3 { gap: 26px; }
.person-card { display: grid; grid-template-columns: 128px 1fr; gap: 22px; align-items: center; min-height: 176px; padding: 32px; }
.person-card > img {
  width: 128px;
  height: 128px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(7,31,61,.12);
  background: #fff;
}
.person-card h3 { font-size: 1.34rem; margin-bottom: 8px; }
.person-card p { font-size: 1rem; }
.avatar {
  width: 128px;
  height: 128px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
}
.avatar.photo {
  object-fit: cover;
  object-position: center;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(7,31,61,.16);
  background: #fff;
}
.contributors-section,
.person-work-section {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contributors-section > h2,
.person-work-section h2 {
  margin-top: 0;
}
.contributors-list,
.person-work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--line);
}
.contributor-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 104px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contributor-avatar-link,
.contributor-avatar-link > img,
.contributor-avatar-link > .avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
}
.contributor-avatar-link {
  display: block;
}
.contributor-avatar-link > img,
.contributor-avatar-link > .avatar {
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(7,31,61,.12);
}
.contributor-avatar-link > .avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}
.contributor-details,
.person-work-item {
  min-width: 0;
}
.contributor-details h3,
.person-work-item h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
  line-height: 1.25;
}
.contributor-details .label,
.person-work-item .label,
.person-work-role {
  margin: 0;
}
.person-work-toolbar,
.person-work-section .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.person-work-toolbar h2,
.person-work-section .section-head h2 {
  margin-bottom: 0;
}
.person-work-toolbar select,
.person-work-section .section-head select {
  width: min(100%, 240px);
  min-width: 200px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}
.person-work-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.person-work-item > p:last-child {
  margin-bottom: 0;
}
.person-work-status {
  margin: 0 0 4px;
}
.contributor-item a:focus-visible,
.person-work-item a:focus-visible,
.person-work-toolbar select:focus-visible,
.person-work-section .section-head select:focus-visible {
  outline: 3px solid rgba(244,196,48,.6);
  outline-offset: 3px;
}
.filters {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(130px, .7fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(7,31,61,.05);
}
.filters input, .filters select, .contact-form input, .contact-form select, .contact-form textarea, .subscribe-form input, .subscribe-form select {
  width: 100%;
  border: 1px solid #cfd8e6;
  background: #fff;
  padding: 11px 12px;
  min-height: 44px;
  font: inherit;
  font-weight: 650;
}
.filters input:focus, .filters select:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .subscribe-form input:focus, .subscribe-form select:focus, .chat-form textarea:focus {
  outline: 3px solid rgba(244,196,48,.35);
  border-color: var(--gold-2);
}
.filter-count,
.filter-empty,
.filter-status {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  margin: -14px 0 24px;
}
[hidden] {
  display: none !important;
}
.contact-form label { display: grid; gap: 6px; margin: 0 0 13px; font-weight: 750; color: #26384b; }
.contact-form textarea { resize: vertical; }

.prose { width: 100%; max-width: 900px; min-width: 0; }
.prose h2 { margin-top: 40px; font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 2rem; font-weight: 950; line-height: 1.08; letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.detail-image { margin: 0 0 28px; border-bottom: 8px solid var(--gold); }
.detail-image img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.source-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.source-gallery img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}
.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.contact-layout { grid-template-columns: 1fr; }
.sidebar { position: sticky; top: 105px; }
.contact-band {
  background:
    linear-gradient(135deg, rgba(238, 246, 252, .98), rgba(222, 239, 250, .94)),
    radial-gradient(circle at 72% 20%, rgba(19, 184, 173, .16), transparent 36%);
  color: var(--navy);
  padding: 58px 0;
  border-top: 6px solid var(--gold);
  border-bottom: 1px solid #cbd8e5;
}
.contact-band a { color: var(--navy); }
.contact-band h2 { margin-top: 0; color: var(--navy); }
.contact-band p { color: #334862; }
.subscribe-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 18px; align-items: end; }
.iets-newsletter-form {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.15fr) 168px;
  gap: 12px;
}
.iets-newsletter-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--navy);
  font-weight: 750;
  font-size: .9rem;
}
.iets-newsletter-form input {
  min-height: 48px;
  border: 1px solid #c9d8e8;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(6, 27, 70, .05);
}
.iets-newsletter-form button {
  width: 168px;
  height: 48px;
  min-height: 48px;
  min-width: 168px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  padding: 0 22px;
  font: inherit;
  font-weight: 950;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(246, 191, 38, .22);
}
.iets-newsletter-form button:hover { filter: brightness(.98); }
.form-status {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--navy);
  font-weight: 700;
}
.form-status.error { color: #9B1C1C; }

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.chat-launcher {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.45);
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.chat-launcher:hover {
  background: #ffd94d;
  transform: translateY(-1px);
}
.chat-widget.open .chat-launcher {
  background: var(--navy);
  color: #fff;
}
.chat-launcher svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 112px));
  max-height: min(620px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow);
}
.chat-panel[hidden] {
  display: none !important;
}
.chat-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--line);
}
.chat-head strong {
  display: block;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.1;
}
.chat-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.42;
}
.chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  touch-action: manipulation;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.chat-close:hover { background: var(--mist); }
.chat-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  pointer-events: none;
}
.chat-messages {
  overflow: auto;
  padding: 14px;
  background: var(--mist);
}
.chat-message {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .94rem;
}
.chat-message.user {
  margin-left: auto;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 750;
}
.chat-message.error {
  border-color: #d46a6a;
  color: #8f1d1d;
}
.chat-message.loading {
  color: var(--muted);
}
.chat-sources {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  white-space: normal;
  font-size: .82rem;
}
.chat-sources strong { color: var(--muted); }
.chat-sources a { font-weight: 800; }
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 10px;
  font: inherit;
}
.chat-form button { min-height: 48px; }

.edit-toolbar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #071f3d;
  color: #fff;
  border-top: 5px solid var(--gold);
  box-shadow: 0 18px 42px rgba(7, 31, 61, .28);
}
.edit-toolbar strong { font-weight: 950; }
.edit-toolbar span { color: rgba(255,255,255,.72); font-size: .9rem; }
.edit-toolbar button,
.edit-toolbar a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.edit-toolbar button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.edit-toolbar .edit-logout {
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.edit-toolbar .edit-logout:hover { background: rgba(255,255,255,.12); }
.edit-toolbar a:hover { text-decoration: none; background: rgba(255,255,255,.12); }
.edit-status { margin: 0 0 0 auto; font-size: .9rem; color: rgba(255,255,255,.82); }
.edit-status.error { color: #ffd2d2; }
.editable-region {
  outline: 2px dashed rgba(244,196,48,.75);
  outline-offset: 3px;
  cursor: text;
}
.editable-region:focus {
  outline: 3px solid var(--gold);
  background: rgba(244,196,48,.12);
}
.editable-image {
  outline: 3px dashed rgba(36, 88, 211, .75);
  outline-offset: 4px;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}
.editable-image:hover {
  filter: saturate(1.08) brightness(.96);
  transform: translateY(-1px);
}
.editable-image[data-edit-changed="true"] {
  outline-color: var(--gold);
}
.editable-background {
  outline: 3px dashed rgba(36, 88, 211, .75);
  outline-offset: -8px;
}
.editable-background[data-edit-changed="true"] {
  outline-color: var(--gold);
}
.edit-media-host {
  position: relative;
}
.media-edit-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  border: 1px solid rgba(7,31,61,.18);
  background: #fff;
  color: var(--navy);
  padding: 8px 10px;
  font: inherit;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(7,31,61,.2);
  cursor: pointer;
}
.media-edit-button:hover {
  background: var(--gold);
}
.content-delete-button {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 21;
  border: 1px solid rgba(122, 24, 24, .2);
  background: #fff;
  color: #8b1f1f;
  padding: 8px 10px;
  font: inherit;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(7,31,61,.16);
  cursor: pointer;
}
.content-delete-button:hover {
  background: #ffe8e8;
}
.managed-content-block {
  border-top: 6px solid var(--gold);
}
.edit-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 23, 42, .58);
}
.edit-dialog {
  width: min(620px, 100%);
  background: #fff;
  color: var(--ink);
  border-top: 7px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  padding: 24px;
}
.edit-dialog h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.55rem;
}
.edit-dialog form,
.edit-dialog label {
  display: grid;
  gap: 10px;
}
.edit-dialog label {
  margin-bottom: 14px;
  font-weight: 900;
}
.edit-dialog input,
.edit-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
  color: var(--ink);
}
.edit-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.footer {
  background: linear-gradient(180deg, #f8fcff 0%, #edf5fb 100%);
  color: #334862;
  padding: 60px 0 28px;
  border-top: 1px solid #cbd8e5;
}
.footer a { color: var(--navy); font-weight: 750; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .7fr); gap: 28px; }
.footer h3, .footer h4 { color: var(--navy); margin-top: 0; }
.footer p { color: #334862; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid #cbd8e5; color: #52647a; padding-top: 18px; margin-top: 36px; font-size: .9rem; }
.hidden { display: none !important; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav-wrap {
    grid-template-columns: minmax(250px, 1fr) auto;
    min-height: auto;
    padding: 10px 16px;
  }
  .logo { min-height: 64px; grid-template-columns: 52px 1fr; padding: 8px 12px; }
  .logo-mark { width: 50px; height: 50px; }
  .logo-copy { font-size: .9rem; max-width: 230px; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 86px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .nav-link {
    justify-content: space-between;
    min-height: 46px;
    color: var(--ink);
    border-left: 0;
    border-bottom: 1px solid #edf1f6;
  }
  .nav-link:hover { color: var(--blue); background: #f7f8fb; }
  .dropdown { position: static; display: block; border-top: 0; box-shadow: none; padding: 0 0 8px 14px; }
  .nav-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .site-search { order: 3; width: auto; }
  .site-search.open input,
  .site-search:focus-within input { flex: 1; width: auto; }
  .site-search button, .nav-cta, .language-trigger { min-height: 44px; }
  .site-search button { width: 44px; }
  .language-menu { order: 4; }
  .hero { min-height: auto; }
  .hero-inner { padding: 68px 0; }
  .split, .cols-2, .cols-3, .cols-4, .detail-layout, .footer-grid, .event-highlight, .image-feature { grid-template-columns: 1fr; }
  .filters, .subscribe-form, .search-page-form { grid-template-columns: 1fr; }
  .contributors-list, .person-work-list { grid-template-columns: 1fr; }
  .person-work-toolbar, .person-work-section .section-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .person-work-toolbar select, .person-work-section .section-head select { width: 100%; min-width: 0; }
  .research-row { grid-template-columns: 148px 1fr; gap: 14px; }
  .research-row .label { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .research-thumb { grid-row: 1 / span 2; height: 112px; }
  .research-copy { grid-column: 2; }
  .event-date { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 22px 0 0; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .logo { width: auto; }
  .logo-mark { width: 42px; height: 42px; font-size: .8rem; }
  .logo-copy { font-size: .78rem; }
  .nav-wrap { gap: 10px; padding: 10px 14px; }
  .nav-toggle { margin-left: auto; }
  .language-menu { margin-left: 0; }
  .nav-actions { gap: 8px; }
  .nav-cta { flex: 1 1 auto; padding: 0 12px; font-size: .92rem; }
  .section { padding: 54px 0; }
  .section-head { display: block; }
  .contributor-item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; min-height: 84px; }
  .contributor-avatar-link,
  .contributor-avatar-link > img,
  .contributor-avatar-link > .avatar { width: 56px; height: 56px; min-width: 56px; }
  .research-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .research-row .label, .research-copy { grid-column: auto; grid-row: auto; }
  .research-thumb { grid-row: auto; height: 190px; }
  .hero h1 { font-size: clamp(2.25rem, 13vw, 3.35rem); line-height: .98; }
  .hero p { font-size: 1rem; }
  .btn { width: 100%; }
  .chat-widget { right: 10px; bottom: 10px; }
  .chat-launcher { width: 46px; height: 46px; }
  .chat-launcher svg { width: 27px; height: 27px; }
  .chat-panel {
    width: calc(100vw - 28px);
    height: min(500px, calc(100vh - 92px));
    max-height: calc(100vh - 92px);
    bottom: 56px;
  }
  .chat-form { grid-template-columns: 1fr; }
}

/* Minimal WordPress markup bridge. Keep the public visual system identical to 20260630-15. */
.admin-bar .site-header { top: 32px; }
.main-nav .main-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .main-menu > li { position: relative; }
.main-nav .main-menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 2px;
  color: var(--navy);
  font-weight: 850;
  font-size: .9rem;
  white-space: nowrap;
  gap: 7px;
  line-height: 54px;
}
.main-nav .main-menu > li > a:hover,
.main-nav .current-menu-item > a {
  background: transparent;
  color: #164fa8;
  text-decoration: none;
}
.main-nav .menu-item-has-children > a::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #5e7087;
  border-bottom: 1.5px solid #5e7087;
  line-height: 1;
  margin-top: -3px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  display: none;
  background: rgba(255, 255, 255, .98);
  border-top: 5px solid var(--gold);
  box-shadow: 0 18px 46px rgba(6, 27, 70, .16);
  padding: 10px;
  z-index: 60;
  list-style: none;
  margin: 0;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a {
  display: block;
  padding: 10px 11px;
  color: #10233e;
  font-weight: 760;
  border-bottom: 1px solid #edf1f6;
}
.main-nav .sub-menu a:hover {
  background: #f7f8fb;
  color: var(--blue);
  text-decoration: none;
}
@media (max-width: 1020px) {
  .main-nav .main-menu { display: none; }
  .main-nav.open .main-menu { display: flex; }
  .main-nav .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 8px 14px;
  }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
