/* ICSD Website Redevelopment — Mockup stylesheet
   High-fidelity visual design pass, built on the real live-site brand tokens
   (confirmed 28 Aug 2026 from socialdevelopment.net's Elementor globals):
   accent #234E73, primary #373737, secondary #54595F, text #444444, font Arial.
   Photography is placeholder (marked) pending final asset selection with
   Ben Lough & Vikash — everything else (colour, type, copy, nav, logo) is real. */

:root {
  --accent: #234E73;
  --accent-dark: #16324a;
  --accent-tint: #eaf1f7;
  --primary: #373737;
  --secondary: #54595F;
  --text: #444444;
  --border: #e1e5ea;
  --band: #f5f7f9;
  --page-bg: #ffffff;
  --gold: #b8862f;
  --shadow: 0 4px 18px rgba(35, 78, 115, 0.08);
  --shadow-hover: 0 10px 28px rgba(35, 78, 115, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* Links inside migrated page content (e.g. conference document downloads)
   need visible affordance — the global reset above removes it, which is
   correct for nav/button/card links but leaves plain in-text links
   indistinguishable from prose. */
.prose-content a { color: var(--accent); text-decoration: underline; }
.prose-content a:hover { opacity: .75; }

/* ---------- Layout helpers ---------- */
.mk-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mk-section { padding: 72px 0; }
.mk-section.band { background: var(--band); }
.mk-section.dark { background: var(--primary); color: #f2f3f4; }
.mk-section.accent { background: var(--accent); color: #fff; }
.mk-grid { display: grid; gap: 32px; }
.mk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mk-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mk-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.mk-section.dark .eyebrow, .mk-section.accent .eyebrow { color: #9fc4e3; }

h1, h2, h3, h4 { color: var(--primary); margin: 0 0 14px; font-weight: bold; }
.mk-section.dark h1, .mk-section.dark h2, .mk-section.dark h3,
.mk-section.accent h1, .mk-section.accent h2, .mk-section.accent h3 { color: #fff; }
h1 { font-size: 38px; line-height: 1.15; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
.lede { font-size: 17px; color: var(--secondary); }
.mk-section.dark .lede, .mk-section.accent .lede { color: #d7e3ec; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: bold;
  padding: 13px 26px;
  border-radius: 6px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  padding: 11px 24px;
}
.btn.secondary:hover { background: var(--accent); color: #fff !important; }
.mk-section.dark .btn.secondary, .mk-section.accent .btn.secondary,
.page-banner .btn.secondary, .hb-panel .btn.secondary, .hero-banner .btn.secondary {
  border-color: #fff; color: #fff !important;
}
.mk-section.dark .btn.secondary:hover, .mk-section.accent .btn.secondary:hover,
.page-banner .btn.secondary:hover, .hb-panel .btn.secondary:hover, .hero-banner .btn.secondary:hover {
  background: rgba(255,255,255,.15);
}
.btn.small { padding: 8px 16px; font-size: 12.5px; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  background: #fff;
}
.site-header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
}
.site-logo { display: flex; align-items: center; padding: 14px 0; }
.site-logo img { display: block; height: 50px; width: auto; }
.primary-nav { display: flex; align-items: stretch; gap: 0; font-size: 12.5px; }
.primary-nav > .nav-item {
  position: relative;
  display: flex; align-items: center;
  padding: 0 9px;
  color: var(--primary);
  font-weight: bold;
  cursor: default;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.primary-nav > .nav-item.has-sub > a::after { content: "\25BE"; color: var(--secondary); font-size: 9px; margin-left: 5px; }
.primary-nav > .nav-item:hover, .primary-nav > .nav-item.current { border-bottom-color: var(--accent); color: var(--accent); }
.primary-nav > .nav-item.cta-item { background: var(--accent); color: #fff; margin-left: 4px; }
.primary-nav > .nav-item.cta-item:hover { background: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--secondary);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-tint); }
.sub-nav {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-hover);
  min-width: 235px; padding: 8px 0; z-index: 60;
  font-weight: normal;
}
.primary-nav > .nav-item.has-sub:hover .sub-nav,
.primary-nav > .nav-item.has-sub:focus-within .sub-nav { display: block; }
.sub-nav a { display: block; padding: 9px 18px; color: var(--text); font-size: 13px; }
.sub-nav a:hover { background: var(--accent-tint); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--accent-tint) 0%, #fff 60%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 76px 0; }
.hero h1 { font-size: 42px; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }

/* ---------- Photography placeholder ---------- */
.ph-photo {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .6px;
  text-align: center; padding: 20px;
  position: relative; overflow: hidden;
}
.ph-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0, transparent 45%),
                     radial-gradient(circle at 85% 75%, rgba(255,255,255,.1) 0, transparent 50%);
}
.ph-photo span { position: relative; z-index: 1; }
.ph-photo.light { background: linear-gradient(135deg, #dfe8ee 0%, #c7d5df 100%); color: var(--secondary); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card .ph-photo { border-radius: 0; height: 150px; }

.tag-pill {
  display: inline-block; font-size: 10.5px; font-weight: bold; text-transform: uppercase;
  letter-spacing: .4px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.tag-pill.news { background: var(--accent-tint); color: var(--accent); }
.tag-pill.event { background: #fbeee0; color: var(--gold); }
.meta-row { font-size: 12px; color: var(--secondary); display: flex; gap: 12px; margin-bottom: 8px; align-items: center; }

/* ---------- Profile grid ---------- */
.profile-card { text-align: center; padding: 22px 14px; }
.avatar-circle {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #3a72a0 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold; font-size: 22px;
}
.profile-card.compact { padding: 14px 8px; }
.profile-card.compact .avatar-circle { width: 60px; height: 60px; font-size: 16px; margin-bottom: 8px; }
.profile-name { font-weight: bold; color: var(--primary); font-size: 14.5px; margin-bottom: 2px; }
.profile-role { font-size: 12.5px; color: var(--secondary); }

/* ---------- Timeline (History of the ICSD) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year { font-weight: bold; color: var(--accent); font-size: 13px; margin-bottom: 4px; }

/* ---------- Locked / members-only ---------- */
.locked-card {
  border: 1px dashed #b9c6d1; background: var(--accent-tint); border-radius: 10px; padding: 22px;
  text-align: center;
}
.lock-icon { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 10px; }

/* ---------- Filter / listing controls ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 8px 16px;
  font-size: 13px; color: var(--secondary); display: flex; align-items: center; gap: 6px;
  font-family: inherit; cursor: pointer;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-search {
  margin-left: auto; border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px;
  font-size: 13px; color: var(--text); min-width: 200px; font-family: inherit;
}
.filter-search:focus { outline: none; border-color: var(--accent); }

/* ---------- Stats / key dates ---------- */
.stat-box { text-align: center; padding: 22px 10px; border-radius: 10px; background: rgba(255,255,255,.08); }
.stat-box .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #b9cddd; margin-bottom: 6px; }
.stat-box .stat-value { font-size: 17px; font-weight: bold; color: #fff; }

/* ---------- Pricing tiers ---------- */
.tier-card { text-align: center; padding: 30px 22px; position: relative; overflow: visible; }
.tier-card.featured { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.tier-card.featured .tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: bold; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; letter-spacing: .4px;
}
.tier-price { font-size: 30px; font-weight: bold; color: var(--accent); margin: 8px 0 4px; }
.tier-price small { font-size: 13px; color: var(--secondary); font-weight: normal; }
.tier-list { list-style: none; padding: 0; margin: 18px 0; font-size: 13.5px; color: var(--text); text-align: left; }
.tier-list li { padding: 6px 0; padding-left: 22px; position: relative; }
.tier-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* ---------- Slider dots ---------- */
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 22px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); display: inline-block; padding: 0; cursor: pointer; }
.dots button.active { background: #fff; }

/* ---------- Design note callouts ---------- */
.design-note {
  border-left: 3px solid var(--gold); background: #fdf6ea; color: #6b5116;
  font-size: 12.5px; padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 16px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #c9ced3; padding: 56px 0 0; font-size: 13px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.site-footer a { color: #c9ced3; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.footer-logo img { height: 26px; display: block; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #5b6167;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid #4a4f54; margin-top: 40px; padding: 18px 0;
  text-align: center; color: #9aa0a5; font-size: 12px;
}

/* ---------- Partner logos ---------- */
.partner-logo { display: flex; align-items: center; justify-content: center; padding: 14px; filter: grayscale(1); opacity: .7; transition: opacity .15s, filter .15s; }
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
.partner-logo img { max-width: 100%; max-height: 88px; }

/* ---------- Icons ---------- */
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 6px;
  width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--primary);
  flex-shrink: 0;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero banner carousel (homepage) ---------- */
.hero-banner { position: relative; height: 540px; overflow: hidden; background: var(--primary); }
.hb-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hb-slide.active { opacity: 1; pointer-events: auto; }
.hb-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,35,50,.92) 0%, rgba(20,35,50,.72) 42%, rgba(20,35,50,.25) 78%);
}
.hb-slide.tone-accent::before { background: linear-gradient(100deg, rgba(35,78,115,.95) 0%, rgba(35,78,115,.8) 55%, rgba(35,78,115,.55) 100%); }
.hb-slide.tone-primary::before { background: linear-gradient(100deg, rgba(30,30,30,.94) 0%, rgba(30,30,30,.8) 55%, rgba(30,30,30,.5) 100%); }
.hb-panel { position: relative; z-index: 2; max-width: 560px; padding: 0 24px; margin-left: max(40px, calc((100vw - 1320px) / 2 + 40px)); color: #fff; }
.hb-panel .eyebrow { color: #bcd6ea; }
.hb-panel h2 { color: #fff; font-size: 34px; margin-bottom: 12px; }
.hb-panel p { color: #e4e9ed; font-size: 15px; max-width: 460px; }
.hb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.25); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hb-arrow:hover { background: rgba(0,0,0,.45); }
.hb-arrow.prev { left: 20px; }
.hb-arrow.next { right: 20px; }
.hb-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hb-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hb-dots button.active { background: #fff; }

/* ---------- Membership slider ---------- */
.mem-slider { position: relative; min-height: 108px; }
.mem-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.mem-slide.active { opacity: 1; pointer-events: auto; position: relative; }

/* ---------- Page banner (internal pages) ---------- */
.page-banner {
  position: relative; padding: 68px 0 48px; background-size: cover; background-position: center;
  background-color: var(--primary); color: #fff;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,35,50,.93) 0%, rgba(20,35,50,.8) 55%, rgba(20,35,50,.5) 100%);
}
.page-banner .mk-wrap { position: relative; z-index: 2; }
.page-banner .crumb { font-size: 12.5px; color: #cfd8e0; margin-bottom: 10px; }
.page-banner .crumb a { color: #cfd8e0; text-decoration: underline; }
.page-banner h1 { color: #fff; }
.page-banner .lede { color: #dde5ea; max-width: 680px; }
.page-banner .eyebrow { color: #9fc4e3; }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .site-header-inner { flex-wrap: wrap; position: relative; }
  .primary-nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--border); margin-top: 14px; padding-top: 8px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > .nav-item { padding: 0; border-bottom: none; }
  .primary-nav > .nav-item > a { display: block; padding: 13px 4px; }
  .primary-nav > .nav-item:hover, .primary-nav > .nav-item.current { border-bottom-color: transparent; }
  .primary-nav > .nav-item.current > a { color: var(--accent); }
  .primary-nav > .nav-item > a:hover { color: var(--accent); }
  .sub-nav {
    display: none; position: static; box-shadow: none; border: none; border-top: 1px dashed var(--border);
    border-radius: 0; background: var(--band); min-width: 0; padding: 4px 0 4px 14px;
  }
  .primary-nav > .nav-item.open .sub-nav { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-banner { height: auto; min-height: 460px; }
  .hb-panel { margin-left: 24px; padding-right: 24px; }
  .hb-panel h2 { font-size: 26px; }
  .mk-grid.cols-4, .mk-grid.cols-3, .mk-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .mk-grid.cols-2 { grid-template-columns: 1fr; }
}


/* ---------- Page content (About, UN, Membership, branches, history) ---------- */
.prose-content { max-width: 820px; }
.prose-content.wide { max-width: none; }
.prose-content > :first-child { margin-top: 0; }
.prose-content h2 { font-size: 24px; margin: 40px 0 12px; }
.prose-content h3 { font-size: 18px; margin: 26px 0 8px; }
.prose-content p { margin: 0 0 14px; }
.prose-content ul, .prose-content ol { margin: 0 0 18px; padding-left: 22px; }
.prose-content li { margin-bottom: 8px; }
.prose-content .kicker { font-size: 19px; color: var(--accent); font-weight: bold; margin: -4px 0 16px; }
.prose-content .btn-row { margin: 22px 0 8px; }
.prose-content .btn-row a.btn { text-decoration: none; }
.prose-content a.btn { color: #fff; text-decoration: none; }
.prose-content a.btn.secondary { color: var(--accent); }

.values-list { list-style: none; padding: 0 !important; counter-reset: v; }
.values-list li { counter-increment: v; position: relative; padding: 14px 16px 14px 56px; margin-bottom: 10px; background: var(--accent-tint); border-radius: 8px; }
.values-list li::before { content: counter(v); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: bold; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.objective-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0 26px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.objective-card, .feature-card { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; background: #fff; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.06)); }
.objective-card h3, .feature-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--accent-dark); }
.objective-card p, .feature-card p { font-size: 14px; margin: 0; }

.callout { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 26px 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0 26px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.data-table th { background: var(--accent-tint); color: var(--accent-dark); text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table td:first-child { font-weight: bold; color: var(--primary); white-space: nowrap; }
.data-table.price td:nth-child(2) { font-size: 20px; font-weight: bold; color: var(--accent); white-space: nowrap; }
.data-table.price td:last-child { text-align: right; }

.accordion { border: 1px solid var(--border); border-radius: 8px; margin: 0 0 10px; background: #fff; }
.accordion > summary { cursor: pointer; padding: 14px 18px; font-weight: bold; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "+"; font-size: 20px; color: var(--accent); line-height: 1; }
.accordion[open] > summary::after { content: "\2212"; }
.accordion[open] > summary { border-bottom: 1px solid var(--border); }
.accordion > .accordion-body { padding: 16px 18px 6px; }

.leader-card { display: flex; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-width: 820px; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.06)); }
.leader-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.leader-card .leader-years { font-weight: bold; color: var(--accent); font-size: 13px; margin-bottom: 4px; }
.leader-card h3 { margin: 0 0 8px; }
.leader-card p { margin: 0; font-size: 14.5px; }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid, .objective-grid { grid-template-columns: 1fr; }
  .leader-card { flex-direction: column; text-align: center; }
  .data-table td:first-child { white-space: normal; }
}

/* Committee / role sub-lines under a person's name on branch pages */
.prose-content .role-line { color: var(--accent); font-weight: 600; font-size: 14px; margin: -4px 0 8px; }

/* Wide content tables (e.g. ICSD@UN representatives) stack as cards on phones */
@media (max-width: 640px) {
  .data-table:not(.price) thead { display: none; }
  .data-table:not(.price), .data-table:not(.price) tbody, .data-table:not(.price) tr, .data-table:not(.price) td { display: block; width: 100%; }
  .data-table:not(.price) tr { padding: 14px 4px; border-bottom: 1px solid var(--border, #dde3ea); }
  .data-table:not(.price) td { padding: 2px 10px; border: 0; }
  .data-table:not(.price) td:nth-child(2) { color: var(--accent); font-weight: 600; font-size: 14px; }
}

/* Officers page — accordion rows: photo + name/role on the left, term on the right */
.officer-row > summary { gap: 14px; font-weight: normal; padding: 12px 18px; }
.officer-row .officer-id { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.officer-row .officer-id img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; background: #e8eef5; }
.officer-row .avatar-circle { width: 52px; height: 52px; margin: 0; font-size: 15px; flex-shrink: 0; }
.officer-row .officer-text { display: flex; flex-direction: column; min-width: 0; }
.officer-row .officer-name { font-weight: bold; color: var(--primary); }
.officer-row .officer-role { font-size: 13.5px; color: var(--secondary); margin-top: 2px; }
.officer-row .officer-years { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) {
  .officer-row > summary { flex-wrap: wrap; }
  .officer-row .officer-years { order: 3; flex-basis: 100%; padding-left: 66px; margin-top: -4px; }
}

/* Conference pages with a full-width banner graphic (e.g. the 25th Biennial Conference) */
.conf-graphic { background: #fff; line-height: 0; }
.conf-graphic-img { width: 100%; height: auto; display: block; }
.conf-title { text-align: center; padding: 40px 0 34px; background: #fff; }
.conf-title .crumb { text-align: left; color: var(--secondary); font-size: 13px; margin-bottom: 18px; }
.conf-title .crumb a { color: var(--secondary); }
.conf-title .eyebrow { display: block; }
.conf-title h1 { color: var(--primary); margin: 6px 0 8px; }
.conf-title .lede { color: var(--secondary); margin: 0 auto 20px; }
.btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.key-dates td:first-child { white-space: nowrap; font-weight: 700; color: var(--primary); }
.prose-content ol.track-list { padding-left: 22px; }
.prose-content ol.track-list li { margin-bottom: 6px; }

/* "Presented in association with" logo row — one line on desktop, wraps on phones */
.logo-row { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 20px; margin: 20px 0; }
.logo-row img { height: 50px; width: auto; max-width: none; }
@media (max-width: 640px) {
  .logo-row { flex-wrap: wrap; gap: 14px 18px; }
  .logo-row img { height: 34px; max-width: 100%; }
}

/* Article images (news posts keep their editor alignment classes) */
.prose-content img { max-width: 100%; height: auto; }
.prose-content img.alignleft  { float: left;  margin: 4px 24px 14px 0; max-width: 42%; }
.prose-content img.alignright { float: right; margin: 4px 0 14px 24px; max-width: 42%; }
.prose-content img.aligncenter { display: block; margin: 18px auto; }
.prose-content article, article.prose-content { overflow: hidden; }
@media (max-width: 640px) {
  .prose-content img.alignleft, .prose-content img.alignright { float: none; display: block; margin: 0 0 16px; max-width: 70%; }
}

/* Button groups: spaced on desktop, equal full-width stack on phones (any .btn-row / .hero-cta / social band) */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row .btn, .hero-cta .btn, .social-btns .btn { justify-content: center; text-align: center; }
.price .btn { min-width: 176px; justify-content: center; }
@media (max-width: 640px) {
  .btn-row, .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-row .btn, .hero-cta .btn { width: 100%; }
  .social-btns { width: 100%; }
  .social-btns .btn { flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
  .data-table.price a.btn { min-width: 0; }
}

/* News card images: taller 4:3 frame, aimed high so portraits show the face, not just the eyes */
.card-media { aspect-ratio: 4 / 3; height: auto !important; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }

/* Logo rows inside article/page text: keep the fixed logo height (beats the generic .prose-content img rule above) */
.prose-content .logo-row img { height: 50px; width: auto; max-width: none; }
@media (max-width: 640px) {
  .prose-content .logo-row img { height: 34px; max-width: 100%; }
}
.card-media.wide { background: #eef2f7; }
.card-media.wide img { object-fit: contain; object-position: center; }

/* ---------- Mobile responsiveness pass (15 Oct 2026) ---------- */
@media (max-width: 980px) {
  /* Nav items are flex rows on desktop; on mobile each one is a block so its dropdown opens BELOW the label */
  .primary-nav > .nav-item { display: block; border-bottom: 1px solid #eef1f4; }
  .primary-nav > .nav-item.has-sub > a { display: flex; justify-content: space-between; align-items: center; }
  .primary-nav > .nav-item.has-sub > a::after { font-size: 12px; margin-left: 12px; transition: transform .15s; }
  .primary-nav > .nav-item.has-sub.open > a::after { transform: rotate(180deg); }
  .sub-nav a { white-space: normal; padding: 11px 18px; }
  /* The header is sticky, so a long open menu must scroll inside itself or its lower items are unreachable */
  .primary-nav.open { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .mk-section { padding: 48px 0; }
  .mk-grid { gap: 22px; }
  .mk-grid.cols-3 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 26px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h1, h2, h3, .card-body h3 { overflow-wrap: break-word; }
  .page-banner { padding: 48px 0 36px; }
}
@media (max-width: 980px) {
  .primary-nav { margin-top: 0; }
}

/* Membership band slider: every slide sits in the same grid cell, so the band is as tall as the longest
   slide — no ghost text from the fading slide, no overlap with the dots, no height jump between slides */
.mem-slider { display: grid; }
.mem-slide, .mem-slide.active { grid-area: 1 / 1; position: relative; inset: auto; }
.mem-dots { grid-row: 2; grid-column: 1; }

/* Governance (and any other inline two-column layout) collapses to one column on tablets/phones */
@media (max-width: 980px) {
  .mk-grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
/* Hero carousel on phones: arrows move to the bottom corners so they don't sit on top of the slide text */
@media (max-width: 640px) {
  .hb-slide { padding-bottom: 58px; }
  .hb-arrow { top: auto; bottom: 14px; transform: none; width: 36px; height: 36px; font-size: 18px; }
  .hb-arrow.prev { left: 14px; }
  .hb-arrow.next { right: 14px; }
  .hb-dots { bottom: 27px; }
}

/* News listing: filter chips (links), card excerpt, pager */
a.filter-chip { text-decoration: none; }
.filter-chip .chip-count { opacity: .6; font-size: 11.5px; }
.filter-chip.active .chip-count { opacity: .85; }
.news-filters { margin-bottom: 34px; }
.card-excerpt { font-size: 13.5px; color: var(--secondary); margin: 8px 0 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--primary); font-weight: bold; font-size: 14px; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Floated article/page images never hang out of their section; card titles that are links aren't underlined */
.prose-content::after { content: ""; display: block; clear: both; }
.feature-card h3 a, .objective-card h3 a { text-decoration: none; color: var(--primary); }
.feature-card h3 a:hover { color: var(--accent); text-decoration: underline; }

/* Long unbroken strings (pasted URLs in archive pages) wrap instead of widening the page */
.prose-content p, .prose-content li, .prose-content td, .prose-content h2, .prose-content h3 { overflow-wrap: anywhere; }
/* Layout tables pasted from email newsletters: shrink to the column instead of forcing a fixed width */
.prose-content table:not(.data-table) { width: 100% !important; max-width: 100%; height: auto !important; }
.prose-content table:not(.data-table) td, .prose-content table:not(.data-table) th { width: auto !important; }
.prose-content table:not(.data-table) img { max-width: 100%; height: auto !important; }

/* ---------- Header fit on small laptops / landscape tablets (16 Oct 2026) ----------
   The full nav needs ~1160px. Up to 1080px it becomes the hamburger menu (same rules as the
   980px phone menu above, applied a step wider); 1081–1240px gets a compact desktop nav. */
@media (max-width: 1080px) {
  .menu-toggle { display: flex; }
  .site-header-inner { flex-wrap: wrap; position: relative; }
  .primary-nav {
    display: none; order: 3; width: 100%; flex-direction: column; gap: 0;
    border-top: 1px solid var(--border); margin-top: 0; padding-top: 8px;
  }
  .primary-nav.open { display: flex; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .primary-nav > .nav-item { display: block; padding: 0; border-bottom: 1px solid #eef1f4; white-space: normal; }
  .primary-nav > .nav-item > a { display: block; padding: 13px 4px; }
  .primary-nav > .nav-item.has-sub > a { display: flex; justify-content: space-between; align-items: center; }
  .primary-nav > .nav-item.has-sub > a::after { font-size: 12px; margin-left: 12px; transition: transform .15s; }
  .primary-nav > .nav-item.has-sub.open > a::after { transform: rotate(180deg); }
  .primary-nav > .nav-item:hover, .primary-nav > .nav-item.current { border-bottom-color: #eef1f4; }
  .primary-nav > .nav-item.current > a, .primary-nav > .nav-item > a:hover { color: var(--accent); }
  .sub-nav {
    display: none; position: static; box-shadow: none; border: none; border-top: 1px dashed var(--border);
    border-radius: 0; background: var(--band); min-width: 0; padding: 4px 0 4px 14px;
  }
  .sub-nav a { white-space: normal; padding: 11px 18px; }
  /* in menu mode, dropdowns open on tap only — not on mouse hover */
  .primary-nav > .nav-item.has-sub:hover .sub-nav,
  .primary-nav > .nav-item.has-sub:focus-within .sub-nav { display: none; }
  .primary-nav > .nav-item.has-sub.open .sub-nav { display: block; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .site-header-inner { gap: 10px; }
  .primary-nav { font-size: 12px; }
  .primary-nav > .nav-item { padding: 0 6px; }
  .primary-nav > .nav-item:first-child { display: none; } /* "Home" — the logo already links home */
}
/* Hero arrows sit in the bottom corners on tablets too (they covered the slide text at 768px) */
@media (max-width: 980px) {
  .hb-slide { padding-bottom: 58px; }
  .hb-arrow { top: auto; bottom: 14px; transform: none; width: 38px; height: 38px; font-size: 18px; }
  .hb-arrow.prev { left: 16px; }
  .hb-arrow.next { right: 16px; }
  .hb-dots { bottom: 28px; }
}
/* Desktop hero: keep the slide text clear of the left arrow (arrow spans 20–64px) */
@media (min-width: 981px) {
  .hb-panel { margin-left: max(84px, calc((100vw - 1320px) / 2 + 40px)); }
}
/* Section label directly above a heading: no big heading gap */
.prose-content .eyebrow + h2 { margin-top: 6px; }
/* News filters on phones: one swipeable row instead of seven wrapped rows */
@media (max-width: 640px) {
  .news-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px 26px; padding: 2px 24px 8px; scrollbar-width: none; }
  .news-filters::-webkit-scrollbar { display: none; }
  .news-filters .filter-chip { flex-shrink: 0; white-space: nowrap; }
}
/* Very narrow phones (320–400px): logo + login + Donate + menu must fit on one row */
@media (max-width: 400px) {
  .site-logo img { height: 42px; }
  .site-header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 340px) {
  .header-actions .icon-btn { display: none; } /* Login is still in the menu */
}
/* Grid columns may shrink below their longest word (stops e.g. the footer email address widening the page at 320px) */
.mk-grid > * { min-width: 0; }
.site-footer a, .site-footer li { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .social-btns { gap: 8px !important; }
  .social-btns .btn { min-width: 0; padding-left: 6px; padding-right: 6px; gap: 5px; font-size: 12px; }
}

/* =====================================================================
   Content presentation pass (16 Oct 2026)
   ===================================================================== */

/* Slim title header — pages without an approved intro line (no stock photo, no filler) */
.page-header-plain { background: var(--band); border-bottom: 1px solid var(--border); padding: 30px 0 26px; }
.page-header-plain .crumb { font-size: 12.5px; color: var(--secondary); margin-bottom: 10px; }
.page-header-plain .crumb a { color: var(--secondary); text-decoration: underline; }
.page-header-plain .eyebrow { display: block; margin-bottom: 4px; }
.page-header-plain h1 { margin: 0; font-size: 34px; color: var(--primary); }
@media (max-width: 640px) { .page-header-plain { padding: 22px 0 20px; } .page-header-plain h1 { font-size: 26px; } }

/* GTAC-style section headings in page content: a rule under each h2 gives long pages structure */
.prose-content h2 { padding-bottom: 10px; border-bottom: 2px solid var(--accent-tint); position: relative; }
.prose-content h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--accent); }
.prose-content > h2:first-child { margin-top: 0; }
/* readable line length even on full-width pages (cards/tables still use the width) */
.prose-content.wide > p, .prose-content.wide > ul, .prose-content.wide > ol, .accordion-body p { max-width: 78ch; }

/* ---------- Document / link rows ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.prose-content a.doc-item, a.doc-item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px;
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.doc-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.doc-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.doc-icon svg { width: 22px; height: 22px; }
.doc-pdf .doc-icon { background: #fdecea; color: #b3261e; }
.doc-body { display: flex; flex-direction: column; min-width: 0; }
.doc-title { font-weight: bold; color: var(--primary); line-height: 1.4; overflow-wrap: anywhere; }
.doc-meta { font-size: 13px; color: var(--secondary); margin-top: 3px; }
.doc-action { font-size: 13.5px; font-weight: bold; color: var(--accent); white-space: nowrap; padding-left: 16px; border-left: 1px solid var(--border); align-self: stretch; display: flex; align-items: center; }
@media (max-width: 640px) {
  .prose-content a.doc-item, a.doc-item { grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 14px; }
  .doc-icon { width: 36px; height: 36px; }
  .doc-action { grid-column: 2; border-left: 0; padding-left: 0; font-size: 13px; }
}
/* grouped lists (e.g. newsletters by year, journal volumes) */
.doc-group > summary { font-size: 16px; }
.doc-group .accordion-body { padding-top: 6px; }
.doc-group .doc-list { margin: 8px 0 10px; }

/* Icon cards (Resource Hub etc.) */
.icon-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 26px; }
.prose-content a.icon-card, a.icon-card {
  display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 24px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.icon-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.icon-card .doc-icon { width: 52px; height: 52px; border-radius: 50%; }
.icon-card h3 { margin: 6px 0 0; font-size: 17px; color: var(--primary); }
.icon-card p { margin: 0; font-size: 14px; color: var(--secondary); }
.icon-card .more { margin-top: auto; padding-top: 6px; font-weight: bold; font-size: 13.5px; color: var(--accent); }
@media (max-width: 980px) { .icon-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .icon-card-grid { grid-template-columns: 1fr; } }

/* Reference entries (books) */
.ref-list { list-style: none; padding: 0; margin: 14px 0 24px; border-top: 1px solid var(--border); }
.prose-content .ref-list li { margin: 0; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--border); position: relative; font-size: 15px; }
.ref-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 18px; height: 18px; background: var(--accent-tint); border-radius: 4px; box-shadow: inset 3px 0 0 var(--accent); }

/* Journal article rows (volume pages) */
.article-row .doc-meta { line-height: 1.5; }

/* ---------- News article ---------- */
.article-header .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary); margin: 2px 0 12px; }
.article-header .article-meta .tag-pill { margin: 0; }
.article-header h1 { max-width: 900px; line-height: 1.2; }
.article-section { padding-top: 40px; }
.article { max-width: 780px; margin: 0 auto; }
.article-lead {
  position: relative; margin: 0 0 34px; border-radius: 14px; overflow: hidden; background: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; min-height: 220px; max-height: 480px;
}
.article-lead::before { /* the same image, blurred, fills the frame behind the real one */
  content: ""; position: absolute; inset: -30px; background: var(--lead-img) center / cover no-repeat; filter: blur(26px) saturate(1.1); opacity: .75;
}
.article-lead img { position: relative; display: block; max-width: 100%; max-height: 480px; width: auto; height: auto; object-fit: contain; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.article-body { font-size: 17px; line-height: 1.75; color: #3a3a3a; }
.article-body > p:first-of-type { font-size: 19px; line-height: 1.65; color: var(--primary); }
.article-body h2 { font-size: 24px; margin-top: 40px; }
.article-body h3 { font-size: 20px; margin-top: 32px; }
.article-body h4 { font-size: 17px; margin-top: 26px; }
.article-body img, .article-body img.aligncenter, .article-body img.alignleft, .article-body img.alignright {
  float: none; display: block; margin: 26px auto; max-width: 100%; max-height: 560px; width: auto; height: auto; border-radius: 10px;
}
.article-body figure { margin: 26px 0; }
.article-body figcaption, .article-body .wp-caption-text { font-size: 13.5px; color: var(--secondary); text-align: center; margin-top: 8px; }
.article-body blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-style: italic; color: var(--primary); }
.article-body a { color: var(--accent); }
.article-body table:not(.data-table) td, .article-body table:not(.data-table) th { padding: 6px; vertical-align: top; }
.article-footer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--secondary); }
.article-tags a.filter-chip { text-decoration: none; }
@media (max-width: 640px) {
  .article-body { font-size: 16px; }
  .article-body > p:first-of-type { font-size: 17.5px; }
  .article-lead { margin-bottom: 24px; border-radius: 10px; max-height: 340px; }
  .article-lead img { max-height: 340px; }
}

/* ---------- News archive (matches the conferences archive filter bar) ---------- */
.news-archive .filter-bar { margin-bottom: 18px; }
.select-chip { position: relative; cursor: pointer; padding-right: 10px; }
.select-chip .chip-label { color: var(--secondary); }
.select-chip select { border: 0; background: transparent; font: inherit; color: var(--primary); font-weight: bold; cursor: pointer; padding: 0 2px; appearance: auto; }
.select-chip select:focus { outline: none; }
.select-chip:focus-within { border-color: var(--accent); }
.news-archive input.filter-search { min-width: 240px; }
.results-count { font-size: 13px; color: var(--secondary); margin: 0 0 16px; }
.news-archive.is-loading [data-news-grid] { opacity: .45; transition: opacity .15s; pointer-events: none; }
.news-card h3 { font-size: 16px; line-height: 1.4; }
.no-results { grid-column: 1 / -1; color: var(--secondary); }
@media (max-width: 640px) {
  .news-archive .filter-bar { gap: 8px; }
  .news-archive input.filter-search { margin-left: 0; min-width: 0; width: 100%; order: 3; }
}

/* SDI volume index: one row per volume, issues as links */
.volume-index { border-top: 1px solid var(--border); margin: 10px 0 30px; }
.volume-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.volume-name { font-weight: bold; color: var(--primary); }
.volume-issues { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.prose-content a.issue-link, .issue-link { display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13.5px; text-decoration: none; color: var(--accent); background: #fff; }
.prose-content a.issue-link:hover { border-color: var(--accent); background: var(--accent-tint); }
.issue-link.muted { color: var(--secondary); background: var(--band); }
@media (max-width: 640px) { .volume-row { grid-template-columns: 1fr; gap: 6px; } }
.icon-card .ic-title { display: block; margin-top: 6px; font-size: 17px; font-weight: bold; color: var(--primary); line-height: 1.35; }
.icon-card .ic-text { display: block; font-size: 14px; color: var(--secondary); }

/* Hero "banner graphic" slide: the image (with its own text) shown whole over a blurred copy of itself */
.hb-banner { display: flex; align-items: center; justify-content: center; background: var(--accent-dark); }
.hb-banner::before { content: ""; position: absolute; inset: -40px; background: var(--lead-img) center / cover no-repeat; filter: blur(30px) saturate(1.1); opacity: .8; }
.hb-banner img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-banner:has(.hb-banner.active) .hb-arrow { background: rgba(0,0,0,.4); }

/* Committee bio photos (branch pages): round portrait beside the name and bio */
.prose-content img.person-photo { float: left; clear: both; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 28px 22px 12px 0; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.prose-content img.person-photo + h3, .prose-content p:has(> img.person-photo) + h3 { padding-top: 26px; }
.prose-content h2 { clear: both; }
@media (max-width: 640px) { .prose-content img.person-photo { width: 76px; height: 76px; margin: 22px 16px 8px 0; } }
/* SDI slide: Jade's banner has the journal cover at its right edge — keep it in frame */
.hb-slide[style*="hero-sdi-journal"] { background-position: right center; }

/* Page with a designed banner graphic (President's Corner): capped height, then breadcrumb + intro strip */
.page-graphic .conf-graphic-img { max-height: 460px; object-fit: cover; object-position: left center; }
.page-graphic-strip { background: var(--band); border-bottom: 1px solid var(--border); padding: 20px 0 22px; }
.page-graphic-strip .crumb { font-size: 12.5px; color: var(--secondary); margin-bottom: 8px; }
.page-graphic-strip .crumb a { color: var(--secondary); text-decoration: underline; }
.page-graphic-strip .lede { margin: 0; max-width: 820px; color: var(--primary); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =====================================================================
   Jade's final review (27 Oct 2026)
   ===================================================================== */

/* Header: approved horizontal logo, larger */
.site-logo img { height: 56px; width: auto; }
@media (max-width: 1240px) { .site-logo img { height: 48px; } }
@media (max-width: 640px)  { .site-logo img { height: 40px; } }
@media (max-width: 400px)  { .site-logo img { height: 34px; } }

/* Footer: transparent (white-text) logo, no white box */
.footer-logo { background: none; padding: 0; border-radius: 0; margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; max-width: 100%; }

/* Partner logos: full colour (branding requirements) and equal-size frames */
.partner-logo { filter: none; opacity: 1; background: #fff; border: 1px solid var(--border); border-radius: 10px; height: 128px; padding: 18px 22px; }
.partner-logo:hover { filter: none; border-color: var(--accent); box-shadow: var(--shadow); }
.partner-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 640px) { .partner-logo { height: 104px; padding: 14px 16px; } }

/* Conference card images: whole image over a blurred copy (no cropping of banners with text) */
.conf-card-media { position: relative; overflow: hidden; background: var(--accent-dark); display: flex; align-items: center; justify-content: center; min-height: 180px; }
.conf-card-media::before { content: ""; position: absolute; inset: -24px; background: var(--lead-img) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .75; }
.conf-card-media img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 980px) {
  .card[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .conf-card-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Slightly larger reading text sitewide */
body { font-size: 17px; }
.meta-row { font-size: 13px; }
.card-excerpt { font-size: 14.5px; }
.site-footer { font-size: 14px; }
.prose-content li { font-size: inherit; }
/* the wider horizontal logo needs the compact desktop nav a little longer */
@media (min-width: 1081px) and (max-width: 1340px) {
  .site-logo img { height: 48px; }
  .site-header-inner { gap: 10px; }
  .primary-nav { font-size: 12px; }
  .primary-nav > .nav-item { padding: 0 6px; }
  .primary-nav > .nav-item:first-child { display: none; }
}

/* News cards with no image: ICSD logo on a soft tint instead of a blank box */
.card-media.logo-placeholder { background: linear-gradient(135deg, var(--accent-tint), #f7f9fb); display: flex; align-items: center; justify-content: center; }
.card-media.logo-placeholder img { width: 70%; height: auto; object-fit: contain; opacity: .9; }

/* Icons on objective / benefit cards */
.card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card-icon svg { width: 24px; height: 24px; }

/* People grids (branch committees / boards) */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; margin: 18px 0 28px; clear: both; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.prose-content img.person-avatar, .person-avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center 22%; margin: 0 0 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); float: none; display: block; }
.person-avatar.initials { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: bold; font-size: 26px; letter-spacing: .5px; }
.person-name { font-weight: bold; color: var(--primary); line-height: 1.3; }
.person-role { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: 3px; }
@media (max-width: 640px) { .person-grid { grid-template-columns: repeat(2, 1fr); } .prose-content img.person-avatar, .person-avatar { width: 88px; height: 88px; } }

/* Conference pages: embedded banner, partner logos, media coverage gallery */
.prose-content .conf-figure { margin: 26px 0; }
.prose-content .conf-figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.prose-content .partner-row img { height: 64px; width: auto; max-width: 45%; object-fit: contain; }
.media-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 28px; }
.prose-content a.media-clip { display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; aspect-ratio: 3 / 4; }
.prose-content a.media-clip img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .2s; }
.prose-content a.media-clip:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .media-gallery { grid-template-columns: repeat(2, 1fr); } .prose-content .partner-row img { height: 48px; } }

/* Wide images on news cards: blurred copy of the image fills the frame behind it (as on the conference cards) */
.card-media.wide { position: relative; background: var(--accent-dark); }
.card-media.wide::before { content: ""; position: absolute; inset: -24px; background: var(--lead-img) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .75; }
.card-media.wide img { position: relative; }

/* All card images: shown whole (never cropped) over a blurred copy of themselves */
.card-media[style*="--lead-img"] { position: relative; overflow: hidden; background: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.card-media[style*="--lead-img"]::before { content: ""; position: absolute; inset: -24px; background: var(--lead-img) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .75; }
.card-media[style*="--lead-img"] img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card-media.about-media { aspect-ratio: auto; height: 300px !important; padding: 0; }

/* Institutional members (9 Nov 2026): centred logo grid on the homepage, and cards on the Institutional Members page */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.partner-grid .partner-logo { flex: 0 1 calc(25% - 18px); min-width: 0; }
@media (max-width: 980px) { .partner-grid .partner-logo { flex-basis: calc(50% - 12px); } }
.institution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 10px 0 30px; }
.institution-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.institution-logo { display: flex; align-items: center; justify-content: center; height: 110px; }
.prose-content .institution-logo img, .institution-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; float: none; margin: 0; }
.institution-name { font-weight: bold; color: var(--primary); line-height: 1.35; }
.prose-content a.institution-link, .institution-link { margin-top: auto; font-size: 14px; font-weight: bold; color: var(--accent); text-decoration: none; }
/* Event date line on news cards */
.event-when { font-size: 13px; font-weight: bold; color: var(--secondary); margin: -2px 0 8px; }
.event-when.upcoming { color: var(--accent); }
/* Banner labels ("Membership", "About ICSD", hero slide labels) larger — board feedback, 20 Nov 2026 */
.page-banner .eyebrow, .page-header-plain .eyebrow, .hb-panel .eyebrow, .conf-title .eyebrow { font-size: 15px; letter-spacing: 1.4px; margin-bottom: 12px; }
@media (max-width: 640px) { .page-banner .eyebrow, .page-header-plain .eyebrow, .hb-panel .eyebrow, .conf-title .eyebrow { font-size: 13.5px; letter-spacing: 1.2px; } }
/* LinkedIn in the header (board feedback, 20 Nov 2026) */
.icon-btn-linkedin .icon { width: 16px; height: 16px; }
.icon-btn-linkedin:hover { color: #0a66c2; }
/* The person icon repeats the "Login" menu link: drop it where the header is tight so LinkedIn fits */
@media (min-width: 1081px) and (max-width: 1240px) { .header-actions .icon-btn-login { display: none; } }
@media (max-width: 640px) { .header-actions .icon-btn-login { display: none; } }
/* Best Student Award nomination form (replaces the Jetpack form, Nov 2026) */
.icsd-form { max-width: 640px; margin: 24px 0; }
.icsd-form label { display: block; font-weight: bold; color: var(--primary); margin-bottom: 6px; font-size: 14px; }
.icsd-form input[type=text], .icsd-form input[type=email], .icsd-form input[type=url], .icsd-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; }
.icsd-form input:focus, .icsd-form textarea:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }
.icsd-form .icsd-hp { position: absolute; left: -9999px; }
.form-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: bold; }
.form-notice.success { background: #e3f4e8; color: #1f6b38; }
.form-notice.error { background: #fde8e8; color: #9b2c2c; }
/* SimplyConf abstract portal tweaks, carried over from the old theme's custom CSS */
.sc-space-item .sc-input-affix-wrapper { width: unset !important; }
.simplyconf-frontend-content label[for="description"] { font-size: 0 !important; }
.simplyconf-frontend-content label[for="description"]::before { font-size: 14px; }
.simplyconf-frontend-content label[for="description"]::after { content: "Abstract (maximum 500 words)" !important; font-size: 14px !important; font-weight: normal; color: #333 !important; display: inline !important; visibility: visible !important; opacity: 1 !important; }
.sc-steps-item:after { display: none !important; }
/* Small-screen fixes after launch (24 Nov 2026) */
.wp-caption { max-width: 100% !important; }
.wp-caption img { max-width: 100%; height: auto; }
.filter-chip.select-chip { max-width: 100%; min-width: 0; }
.filter-chip.select-chip select { min-width: 0; max-width: 100%; }
.pmpro_card, .pmpro_form_fieldset { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .pmpro .pmpro_card_content, .pmpro .pmpro_card_actions { padding-left: 16px; padding-right: 16px; }
  .pmpro_levels_table, .pmpro_levels_table tbody, .pmpro_levels_table tr, .pmpro_levels_table th, .pmpro_levels_table td { display: block !important; width: 100% !important; }
  .pmpro_levels_table thead { display: none; }
  .pmpro_levels_table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .pmpro_levels_table td, .pmpro_levels_table th { padding: 4px 0 !important; border: 0 !important; word-break: normal; overflow-wrap: normal; }
}
@media (max-width: 400px) {
  .news-filters { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .g-recaptcha { transform: scale(.9); transform-origin: 0 0; }
}

/* Banner photos (Nov 2026): set as --bg / --bg-sm by the theme. Phones get the 1024px copy;
   homepage slides after the first only load once the page itself has finished loading. */
.hb-slide, .page-banner { background-image: var(--bg, none); }
@media (max-width: 820px) { .hb-slide, .page-banner { background-image: var(--bg-sm, var(--bg, none)); } }
.hero-banner:not(.hb-ready) .hb-slide:not(.active) { background-image: none; }

/* News/event articles: headline block lines up with the 780px article column below it. */
.article-header .mk-wrap { max-width: 828px; }
.article-header h1 { max-width: none; }

/* Officers / Members at Large without a bio yet: a plain row, not an empty drop-down. */
.officer-row.no-bio > summary { cursor: default; pointer-events: none; }
.officer-row.no-bio > summary::after { content: none; }
.officer-row.no-bio > .accordion-body { display: none; }
