:root {
  --primary: #0F172A;
  --secondary: #E11D48;
  --bg: #F8FAFC;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.6s var(--ease);
  --grid-gap: 3rem;
  --section-padding: 8rem;
  --bg-white: #ffffff;
  --text-muted: #64748B;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }

.lucide-custom { stroke-width: 1px !important; width: 14px; height: 14px; }

/* MASTER LAYOUT */
.header-inner, .master-layout, .footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 6%; width: 100%;
}

/* TOPBAR */
.topbar { background: var(--primary); color: #fff; font-size: 0.8rem; letter-spacing: 0.03em; position: sticky; top: 0; z-index: 1001; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 6%; max-width: 1600px; margin: 0 auto; }
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: 1.5rem; }
.topbar-right a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 0.4rem; opacity: 0.8; transition: opacity 0.2s; font-weight: 500; }
.topbar-right a:hover { opacity: 1; }
.topbar-right .lucide-custom { width: 15px; height: 15px; }
.topbar-search { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.topbar-search input { background: transparent; border: none; color: #fff; padding: 0.35rem 0.6rem; font-size: 0.8rem; font-family: var(--font-sans); width: 160px; outline: none; }
.topbar-search input::placeholder { color: rgba(255,255,255,0.5); }
.topbar-search button { background: transparent; border: none; color: rgba(255,255,255,0.6); padding: 0.35rem 0.5rem; cursor: pointer; display: flex; }
.topbar-search button:hover { color: #fff; }
.topbar-search button .lucide-custom { width: 14px; height: 14px; }
.topbar .gtranslate_wrapper select { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.75rem; padding: 0.3rem 0.5rem; border-radius: 3px; font-family: var(--font-sans); cursor: pointer; }
.topbar .gtranslate_wrapper select option { color: #000; }

/* SEARCH DROPDOWN */
.search-dropdown { display: none; position: absolute; top: 100%; right: 0; width: 320px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 2000; max-height: 400px; overflow-y: auto; margin-top: 4px; }
.search-dropdown .search-result { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; text-decoration: none; color: var(--primary); border-bottom: 1px solid var(--border); transition: background 0.15s; }
.search-dropdown .search-result:hover { background: var(--bg); }
.search-dropdown .search-result-title { font-size: 0.8rem; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 0.75rem; }
.search-dropdown .search-result-type { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748B; white-space: nowrap; background: var(--bg); padding: 2px 6px; border-radius: 3px; }
.search-dropdown .search-empty { padding: 1rem; font-size: 0.8rem; color: #64748B; text-align: center; }

/* HEADER */
.main-header { position: sticky; top: 0; z-index: 1000; background: rgba(248, 250, 252, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 6% !important; }
.brand-id { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--primary); }
.brand-id .brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; }
.brand-text small { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.02em; font-weight: 500; text-transform: uppercase; }
.main-nav { display: flex; gap: 3.5rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.main-nav a { text-decoration: none; color: var(--primary); opacity: 0.5; transition: var(--transition); }
.main-nav a:hover { opacity: 1; color: var(--secondary); }
.nav-cta { color: var(--secondary) !important; opacity: 1 !important; }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown-menu { position: absolute; top: 100%; left: -1rem; min-width: 200px; padding: 1rem 0; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 8px 24px rgba(15,23,42,0.08); opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 100; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 0.5rem 1.5rem; font-size: 0.75rem; white-space: nowrap; opacity: 0.6; }
.nav-dropdown-menu a:hover { opacity: 1; color: var(--secondary); background: rgba(15,23,42,0.02); }
.main-nav .nav-dropdown { display: flex; align-items: center; }

/* ORGANIC ROW */
.organic-row { display: flex; justify-content: space-between; align-items: flex-start; padding: var(--section-padding) 0; gap: 6rem; }
.hero-organic { align-items: center; }
.hero-organic .row-left, .hero-organic .row-right { flex: 1; }
.organic-row .row-left { flex: 1.2; display: flex; flex-direction: column; }
.organic-row .row-right { flex: 0.8; display: flex; flex-direction: column; }
.hub-row { align-items: stretch; }
.hub-row .row-left > .btn-lvl-2:last-child,
.hub-row .row-right > .btn-lvl-2:last-child { margin-top: auto; padding-top: 2rem; }

.image-box-organic img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); transition: var(--transition); border-radius: 2px; }
.image-box-organic:hover img { filter: grayscale(0) contrast(1); transform: translateY(-8px); box-shadow: 0 40px 80px rgba(15,23,42,0.1); }
.caption { font-size: 0.7rem; font-style: italic; margin-top: 1.5rem; color: #64748B; text-align: right; }

/* STRUCTURED ROW (75/25) */
.section-row { display: grid; grid-template-columns: repeat(12, 1fr); width: 100%; }
.col-9 { grid-column: span 9; padding: var(--section-padding) 5rem var(--section-padding) 0; }
.col-3 { grid-column: span 3; padding: var(--section-padding) 0 var(--section-padding) 4rem; position: relative; }

.border-b { border-bottom: 1px solid var(--border); }
.border-l::before { content: ''; position: absolute; left: 0; top: 4rem; bottom: 4rem; width: 1px; background-color: var(--border-strong); }
.border-t { border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 3rem; }
.col-12 { grid-column: span 12; padding: var(--section-padding) 0; }

/* ARTICLE NAVIGATION */
.article-nav { padding: 3rem 0 0 0; display: flex; align-items: center; gap: 1rem; }
.nav-separator { opacity: 0.2; }
.nav-current { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); }

/* ARTICLE BODY */
.article-body h3 { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -0.02em; }
.content-block { margin-bottom: 4rem; }
.content-block p { font-size: 1.15rem; color: #334155; margin-bottom: 1.5rem; max-width: 720px; line-height: 1.6; }

/* SUB-EVENTS */
.events-repeater { display: flex; flex-direction: column; margin-bottom: 4rem; }
.sub-event { padding: 3rem 0; }
.sub-event:first-child { padding-top: 0; }
.sub-event-meta { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--secondary); margin-bottom: 1rem; }
.sub-event h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.sub-event .item-location { margin-bottom: 1.5rem; }
.sub-event p { max-width: 640px; margin-bottom: 2rem; }

/* HIGHLIGHT BOX */
.highlight-box { background: #F1F5F9; padding: 3rem; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; margin: 4rem 0; }
.highlight-content { display: flex; gap: 2rem; align-items: center; }
.highlight-icon { width: 40px; height: 40px; color: var(--secondary); stroke-width: 1px !important; }
.highlight-content h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.2rem; }
.highlight-content p { font-size: 0.95rem; color: #64748B; margin: 0; }
.highlight-actions { display: flex; gap: 2rem; align-items: center; }

/* TYPOGRAPHY */
.tag-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--secondary); margin-bottom: 2.5rem; display: flex; align-items: center; gap: 0.75rem; }
h1 { font-size: 6.5rem; font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; margin-bottom: 2.5rem; }
h1 i, .section-title i { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--secondary); }
.lead-text { font-size: 1.4rem; color: #475569; max-width: 540px; margin-bottom: 4.5rem; line-height: 1.4; }
.meta-row { display: flex; gap: 4rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #64748B; }
.meta-row span { display: flex; align-items: center; gap: 0.4rem; }

/* SIDEBAR */
.meta-stack { display: flex; flex-direction: column; gap: 2.5rem; }
.m-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; color: #64748B; margin-bottom: 0.5rem; display: block; letter-spacing: 0.15em; }
.m-val { font-size: 1.1rem; font-weight: 500; color: var(--primary); }
.action-stack { display: flex; flex-direction: column; gap: 1.5rem; }

/* UNIFIED MASTER LIST */
.master-list { display: flex; flex-direction: column; }
.section-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 3.5rem; }
.list-item { display: grid; grid-template-columns: 100px 1fr; gap: 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border); transition: var(--transition); cursor: pointer; text-decoration: none; color: inherit; }
.list-item:hover { background: rgba(15, 23, 42, 0.02); padding-left: 1.5rem; padding-right: 1.5rem; margin-left: -1.5rem; margin-right: -1.5rem; }

.item-meta { display: flex; flex-direction: column; line-height: 0.8; padding-top: 0.5rem; }
.meta-day { font-size: 3.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.05em; margin-bottom: 0.2rem; }
.meta-month { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--secondary); font-size: 1.2rem; }

.item-content h2, .item-content h3, .item-content h4 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.item-location, .item-category {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  color: var(--secondary); letter-spacing: 0.1em;
  display: block; margin-bottom: 0.75rem;
}
.item-content p { font-size: 1rem; color: #475569; margin-bottom: 1.5rem; }
.item-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-content h2 a, .item-content h3 a, .item-content h4 a { text-decoration: none; color: var(--primary); transition: var(--transition); }
.item-content h2 a:hover, .item-content h3 a:hover, .item-content h4 a:hover { color: var(--secondary); }

.mt-2 { margin-top: 2rem; }

/* CONGRESS HERO */
.congress-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.congress-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.5) 100%);
}
.congress-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6rem 6%;
  width: 100%;
}
.congress-hero-content {
  max-width: 720px;
}
.congress-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.congress-hero-title {
  font-size: 6.5rem !important;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 2.5rem;
}
.congress-hero-location {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 2rem;
}
.congress-hero-location i {
  font-family: var(--font-serif);
  color: var(--secondary);
}
.congress-hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.congress-hero-meta {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}
.congress-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.congress-hero-meta-item i { width: 18px; height: 18px; color: var(--secondary); }
.congress-hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--secondary);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ABOUT SECTION */
.about-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 2.5rem;
}
.about-title i {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--secondary);
}
.hero-organic .row-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.about-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 0.5rem;
}
.about-cta-text {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.5;
  max-width: 280px;
}

/* CONGRESS (legacy) */
.congress-display h2 { font-size: 9rem; font-weight: 800; line-height: 0.75; letter-spacing: -0.06em; margin-bottom: 2rem; }
.congress-display h2 i { font-family: var(--font-serif); font-style: italic; color: var(--secondary); }
.theme-text { font-family: var(--font-serif); font-size: 2.4rem; font-style: italic; margin-bottom: 1.5rem; color: var(--primary); }
.desc-text { font-size: 1.1rem; color: #475569; max-width: 540px; }

/* BUTTONS */
.btn-lvl-1 { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 2rem; border: none; font-family: var(--font-sans); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; transition: var(--transition); text-decoration: none; width: fit-content; }
.btn-red { background: var(--secondary); color: white; }
.btn-black { background: var(--primary); color: white; }
.btn-lvl-1:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15); }

.btn-lvl-2 {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0;
  font-weight: 400; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--primary); text-decoration: none; transition: var(--transition);
  opacity: 0.7;
}
.btn-lvl-2:hover { color: var(--secondary); opacity: 1; transform: translateX(4px); }

/* STATS */
.stats-flex { display: flex; gap: 8rem; }
.s-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: #64748B; margin-bottom: 0.5rem; display: block; }
.s-val { font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stats-action p { font-size: 1rem; color: #475569; margin-bottom: 1.5rem; }

/* ARCHIVE */
.archive-header { padding: 6rem 0 4rem 0; }
.category-filters { display: flex; gap: 2rem; margin-top: 3rem; }
.filter-link { text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); opacity: 0.4; transition: var(--transition); border-bottom: 2px solid transparent; padding-bottom: 0.5rem; }
.filter-link:hover, .filter-link.active { opacity: 1; color: var(--secondary); border-bottom-color: var(--secondary); }

/* PAGINATION */
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 6rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.page-numbers { display: flex; gap: 1.5rem; font-weight: 700; font-size: 0.9rem; }
.page-numbers a { text-decoration: none; color: var(--primary); opacity: 0.4; }
.page-numbers a:hover { opacity: 1; color: var(--secondary); }
.page-numbers .current { color: var(--secondary); }
.btn-lvl-2.disabled { opacity: 0.2; pointer-events: none; }

/* SIDEBAR WIDGETS */
.sidebar-widget { margin-bottom: 4rem; }
.search-box { display: flex; border-bottom: 1px solid var(--border-strong); padding-bottom: 0.5rem; margin-top: 1rem; }
.search-box input { background: transparent; border: none; font-family: var(--font-sans); font-size: 1rem; width: 100%; outline: none; }
.search-box button { background: transparent; border: none; cursor: pointer; color: var(--secondary); }
.year-list { list-style: none; margin-top: 1.5rem; }
.year-list li { margin-bottom: 0.75rem; }
.year-list a { text-decoration: none; font-weight: 500; color: var(--primary); opacity: 0.6; transition: var(--transition); }
.year-list a:hover, .year-list a.active { opacity: 1; color: var(--secondary); padding-left: 0.5rem; }
.action-box { background: #F1F5F9; padding: 2rem; border-radius: 4px; }
.action-box p { font-size: 0.9rem; color: #64748B; margin: 1rem 0 1.5rem 0; }

/* FOOTER */
.main-footer { padding: 5rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 700; color: #64748B; padding: 0 6% !important; }
.f-links { display: flex; gap: 2rem; }
.f-links a { color: #64748B; text-decoration: none; transition: var(--transition); }
.f-links a:hover { color: var(--secondary); }
.f-separator { color: var(--border-strong); margin: 0 0.5rem; }
.f-credit { opacity: 0.6; }
.f-credit strong { font-weight: 700; }
.form-alt-contact { font-size: 0.85rem; color: #64748B; margin-top: 1.5rem; }
.form-alt-contact a { color: var(--secondary); font-weight: 600; }

/* MEMBERPRESS OVERRIDE */
.mp_wrapper { max-width: 100%; }
.mp_wrapper .mepr-form,
.mp_wrapper .mepr-account-form { max-width: 100%; }
.mp_wrapper .mp-form-row { margin-bottom: 1.5rem; }
.mp_wrapper .mp-form-label label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--primary); margin-bottom: 0.75rem; display: block;
}
.mp_wrapper input[type="text"],
.mp_wrapper input[type="email"],
.mp_wrapper input[type="password"],
.mp_wrapper input[type="tel"],
.mp_wrapper input[type="url"],
.mp_wrapper input[type="number"],
.mp_wrapper select,
.mp_wrapper textarea {
  width: 100%; padding: 1rem 1.25rem; border: 1px solid var(--border-strong);
  background: white; font-family: var(--font-sans); font-size: 1rem;
  color: var(--primary); border-radius: 2px; transition: var(--transition);
  box-sizing: border-box;
}
.mp_wrapper input:focus, .mp_wrapper select:focus, .mp_wrapper textarea:focus { border-color: var(--secondary); outline: none; }
.mp_wrapper select { appearance: none; cursor: pointer; }
.mp_wrapper .button-primary,
.mp_wrapper input[type="submit"],
.mp_wrapper .mepr-share-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.25rem 2.5rem; border: none; background: var(--secondary); color: white;
  font-family: var(--font-sans); font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer;
  transition: var(--transition); border-radius: 0; width: auto;
}
.mp_wrapper .button-primary:hover, .mp_wrapper input[type="submit"]:hover {
  transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.mp_wrapper .mepr-login-actions a,
.mp_wrapper a {
  color: var(--primary); text-decoration: none; font-size: 0.85rem;
  transition: var(--transition);
}
.mp_wrapper .mepr-login-actions a:hover, .mp_wrapper a:hover { color: var(--secondary); }
.mp_wrapper .mp-spacer { display: none; }
.mp_wrapper .mp-hide-pw { position: relative; }
.mp_wrapper .mp-hide-pw input { padding-right: 3rem; }
.mp_wrapper .mp-hide-pw button { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #64748B; }
.mp_wrapper .mepr-already-logged-in { font-size: 1.1rem; color: #475569; }
.mp_wrapper .cc-error { color: var(--secondary); font-size: 0.75rem; display: none; }
.mp_wrapper .mepr-field-required.has-error .cc-error { display: inline; }

/* MemberPress Account Nav */
#mepr-account-nav ul { display: flex; gap: 0; list-style: none; padding: 0 !important; margin: 0 0 3rem 0 !important; border-bottom: 2px solid var(--border); }
#mepr-account-nav .mepr-nav-item { margin: 0; }
#mepr-account-nav .mepr-nav-item a {
  display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary); opacity: 0.4; transition: var(--transition);
  padding: 0.75rem 1.5rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
#mepr-account-nav .mepr-nav-item a:hover { opacity: 0.7; }
#mepr-account-nav .mepr-nav-item.mepr-active-nav-tab a {
  opacity: 1; color: var(--secondary); border-bottom-color: var(--secondary);
}

/* MemberPress Tables (subscriptions, payments) */
.mp_wrapper table { width: 100%; border-collapse: collapse; }
.mp_wrapper table th {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #64748B; padding: 1rem 0; border-bottom: 1px solid var(--border-strong); text-align: left;
}
.mp_wrapper table td { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.mp_wrapper table a { color: var(--secondary); font-weight: 600; }

/* MemberPress Checkout/Registration */
.mepr-checkout-form .mp-form-row { margin-bottom: 1.5rem; }
.mepr-price-string { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.mepr-product-description { font-size: 1rem; color: #475569; margin-bottom: 2rem; }

/* CONTACT PAGE */
.contact-form .form-group textarea {
  width: 100%; padding: 1rem 1.25rem; border: 1px solid var(--border-strong);
  background: white; font-family: var(--font-sans); font-size: 1rem;
  color: var(--primary); transition: var(--transition); border-radius: 2px; resize: vertical;
}
.contact-form .form-group textarea:focus { border-color: var(--secondary); outline: none; }
.form-group.full-width { grid-column: 1 / -1; }
.contact-address { font-size: 1rem; line-height: 1.6; font-weight: 500; color: var(--primary); }
.contact-hours { font-size: 0.9rem; color: #64748B; line-height: 1.6; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { text-transform: none !important; opacity: 1 !important; }
.map-section { margin-top: 6rem; }
.map-container { position: relative; }
.map-container iframe { width: 100%; display: block; }
.map-overlay {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: white; padding: 0.75rem 1.25rem; border-radius: 2px;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.map-pin-icon { width: 16px; height: 16px; color: var(--secondary); }

/* STEP INDICATOR */
.step-indicator { display: flex; gap: 3rem; margin-top: 3rem; }
.step-indicator .step { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.3; transition: var(--transition); }
.step-indicator .step span { font-weight: 800; margin-right: 0.3rem; }
.step-indicator .step.active { opacity: 1; color: var(--secondary); }
.step-indicator .step.done { opacity: 0.6; }

/* REGISTRATION FORM */
.multi-step-form { padding-top: 1rem; }
.form-step { display: none; }
.form-step.active { display: block; }

/* Form grid: 2 columns */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--primary); margin-bottom: 0.75rem;
}
.form-group label .req { color: var(--secondary); }
.form-group input, .form-group select {
  width: 100%; padding: 1rem 1.25rem; border: 1px solid var(--border-strong);
  background: white; font-family: var(--font-sans); font-size: 1rem;
  color: var(--primary); transition: var(--transition); border-radius: 2px;
}
.form-group input:focus, .form-group select:focus { border-color: var(--secondary); outline: none; }
.form-group select { appearance: none; cursor: pointer; }
.form-group.has-error input, .form-group.has-error select { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.15); }

/* Checkbox */
.checkbox-label { display: flex !important; align-items: center; gap: 0.75rem; font-size: 0.95rem !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--secondary); }

/* Review summary */
.review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; padding: 2.5rem; background: #F1F5F9; border-radius: 4px; }
.summary-item span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #64748B; display: block; margin-bottom: 0.3rem; }
.summary-item p { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin: 0; }

/* Form actions */
.form-actions { display: flex; justify-content: space-between; align-items: center; padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }

/* Form success */
.form-success { padding: 4rem 0; }
.form-success .lead-text { margin-bottom: 3rem; }

/* Benefit list */
.benefit-list { list-style: none; margin-top: 1.5rem; }
.benefit-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.95rem; font-weight: 500; }
.benefit-list li .lucide-custom { color: var(--secondary); }

/* MEMBER DIRECTORY */
.header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.view-switcher { display: flex; gap: 0.5rem; background: white; border: 1px solid var(--border); border-radius: 4px; padding: 0.25rem; height: fit-content; }
.view-btn { background: transparent; border: none; cursor: pointer; opacity: 0.3; transition: var(--transition); padding: 0.5rem; display: flex; align-items: center; }
.view-btn.active { opacity: 1; color: var(--secondary); background: var(--bg); }

.alpha-index { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.alpha-index a { text-decoration: none; font-size: 0.75rem; font-weight: 800; color: var(--primary); opacity: 0.4; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 2px; transition: var(--transition); }
.alpha-index a:hover, .alpha-index a.active { opacity: 1; color: white; background: var(--secondary); }

.member-container.view-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.member-item-universal { padding: 3rem 2rem; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; background: transparent; }
.view-grid .member-item-universal:nth-child(3n) { border-right: none; }
.member-item-universal:hover { background: rgba(15, 23, 42, 0.02); }

.m-avatar { width: 40px; height: 40px; background: transparent; border: 1px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-style: italic; color: var(--secondary); font-size: 1rem; margin-bottom: 2rem; }
.member-badge { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; color: #64748B; letter-spacing: 0.1em; display: block; margin-bottom: 1rem; }
.member-badge.active-role { color: var(--secondary); }
.member-item-universal h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.m-inst { font-size: 0.9rem; color: #64748B; margin-bottom: 0.5rem; }
.member-item-universal .btn-lvl-2 { margin-top: auto; padding-top: 2rem; }
.member-board { background: rgba(190, 18, 60, 0.03); border-left: 3px solid var(--secondary); }
.member-board:hover { background: rgba(190, 18, 60, 0.06); }
.m-avatar-board { border-color: var(--secondary); color: var(--secondary); background: rgba(190, 18, 60, 0.06); }
.m-board-role { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); margin-bottom: 0.5rem; }

.tag-board { color: var(--secondary); }
.view-list .member-item-universal { grid-template-columns: 60px 1fr 150px; display: grid; gap: 3rem; align-items: center; border-right: none; padding: 2rem 0; }
.view-list .m-avatar, .view-list .member-badge { margin-bottom: 0; }
.view-list .member-item-universal .btn-lvl-2 { padding-top: 0; }

.sidebar-select { width: 100%; padding: 0.75rem; border: 1px solid var(--border-strong); background: transparent; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; border-radius: 2px; margin-top: 1rem; }

/* MEMBER DETAIL */
.m-avatar-profile { width: 160px; height: 160px; border: 2px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.m-avatar-inner { font-family: var(--font-serif); font-style: italic; color: var(--secondary); font-size: 4rem; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.expertise-card { background: #F1F5F9; padding: 2rem; border-radius: 4px; }
.expertise-card span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #64748B; display: block; margin-bottom: 0.75rem; }
.expertise-card p { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin: 0; }

.status-card { margin-top: 1.5rem; background: var(--primary); color: white; padding: 1.5rem; border-radius: 4px; }
.status-card .m-label { color: rgba(255,255,255,0.5); }
.status-val { color: white; font-size: 1.2rem; font-weight: 800; }

.m-item { display: flex; flex-direction: column; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .congress-hero { min-height: 70vh; }
  .congress-hero-title { font-size: 3rem; }
  .congress-hero-location { font-size: 2rem; }
  .congress-hero-meta { flex-direction: column; gap: 1rem; }
  .organic-row { flex-direction: column; gap: 4rem; }
  .section-row { grid-template-columns: 1fr; }
  .col-9, .col-3 { grid-column: span 1; padding: 4rem 0; }
  .border-l::before { display: none; }
  h1 { font-size: 14vw; }
  .congress-display h2 { font-size: 18vw; }
  .list-item { grid-template-columns: 1fr; gap: 1rem; }
  .meta-day { font-size: 2.5rem; }
  .main-nav { gap: 1.5rem; }
  .stats-flex { gap: 3rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .category-filters { flex-wrap: wrap; gap: 1rem; }
  .pagination { flex-direction: column; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; }
  .step-indicator { flex-wrap: wrap; gap: 1.5rem; }
  .member-container.view-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .m-avatar-profile { width: 100px; height: 100px; }
  .m-avatar-inner { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .stats-flex { flex-direction: column; gap: 2rem; }
  .congress-hero { min-height: 60vh; }
  .congress-hero-inner { padding: 4rem 6%; }
  .congress-hero-title { font-size: 2.2rem; }
  .congress-hero-location { font-size: 1.5rem; }
  .congress-hero-desc { font-size: 1rem; }
  .congress-hero-actions { flex-direction: column; }
  .congress-hero-actions .btn-lvl-1 { width: 100%; justify-content: center; }
}
/* PDF Viewer */
.pdf-viewer { margin: 2.5rem 0; border: 1px solid var(--border); }
.pdf-viewer-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.pdf-viewer-header span { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748B; }
.pdf-viewer-header span .lucide-custom { width: 16px; height: 16px; }
.pdf-viewer-header .btn-lvl-2 { font-size: 0.75rem; }
.pdf-viewer-frame { width: 100%; height: 600px; border: none; display: block; }

/* ——— Base Documentaire ——— */
/* Documents */
.documents-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.documents-search { position: relative; max-width: 400px; }
.documents-search input {
  width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; background: var(--bg-white);
  transition: var(--transition);
}
.documents-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,0.1); }
.documents-search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); }

.folder-section { margin-bottom: 0.5rem; }
.folder-toggle, .subfolder-toggle {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 1rem; color: var(--text);
  transition: var(--transition); text-align: left;
}
.folder-toggle:hover, .subfolder-toggle:hover { border-color: var(--primary); background: #f0f4ff; }
.folder-toggle[aria-expanded="true"], .subfolder-toggle[aria-expanded="true"] { border-color: var(--primary); background: #f0f4ff; }
.folder-toggle[aria-expanded="true"] .folder-chevron,
.subfolder-toggle[aria-expanded="true"] .folder-chevron { transform: rotate(180deg); }
.folder-chevron svg { width: 16px; height: 16px; transition: transform 0.2s; }
.folder-icon svg { width: 20px; height: 20px; color: var(--primary); }
.folder-name { flex: 1; font-weight: 600; }
.folder-count { font-size: 0.8rem; color: var(--text-muted); background: var(--bg); padding: 0.15rem 0.6rem; border-radius: 20px; }
.folder-chevron { transition: transform 0.3s var(--ease); }
.folder-chevron svg { width: 18px; height: 18px; color: var(--text-muted); }

.subfolder-section { margin-left: 1.5rem; margin-top: 0.25rem; }
.subfolder-toggle { font-size: 0.9rem; padding: 0.75rem 1rem; background: var(--bg); border-color: transparent; }
.subfolder-toggle:hover { border-color: var(--border); background: var(--bg-white); }

.folder-documents { padding: 0.5rem 0 0.5rem 0; }
.doc-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; margin: 0.25rem 0;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.doc-card:hover { background: var(--bg); }
.doc-icon svg { width: 24px; height: 24px; color: var(--secondary); margin-top: 0.15rem; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.3; }
.doc-summary { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.4rem; }
.doc-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.doc-meta span { display: flex; align-items: center; gap: 0.3rem; }
.doc-meta svg { width: 14px; height: 14px; }
.doc-download {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  color: var(--primary); background: rgba(30,58,138,0.08);
  transition: var(--transition); flex-shrink: 0; margin-top: 0.15rem;
}
.doc-download:hover { background: var(--primary); color: white; }
.doc-download svg { width: 18px; height: 18px; }

.doc-card.hidden { display: none; }
.folder-section.hidden { display: none; }

/* About page — Board & Membership */
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.board-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); }
.board-card:hover { border-color: var(--border-strong); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.board-card.board-president { grid-column: span 2; border-color: var(--primary); background: linear-gradient(135deg, rgba(15,23,42,0.02), rgba(15,23,42,0.05)); }
.board-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary); font-weight: 600; margin-bottom: 0.4rem; }
.board-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.board-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.5rem; }
.board-inst, .board-country { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.2rem; }
.board-inst svg, .board-country svg { width: 14px; height: 14px; flex-shrink: 0; }

.membership-fees { display: flex; gap: 1.5rem; margin: 2rem 0; }
.fee-card { flex: 1; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.fee-card:hover { border-color: var(--primary); }
.fee-type { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.fee-amount { display: block; font-size: 2.4rem; font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
.fee-amount small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.fee-desc { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

@media (max-width: 768px) {
    .board-grid { grid-template-columns: 1fr; }
    .board-card.board-president { grid-column: span 1; }
    .membership-fees { flex-direction: column; }
}

/* ─── SPONSORSHIP FORM ─── */
.form-errors { background: #FEF2F2; border: 1px solid #FECACA; padding: 1.5rem 2rem; margin-bottom: 2rem; }
.form-errors p { font-weight: 600; margin-bottom: 0.5rem; color: var(--secondary); }
.form-errors ul { list-style: disc; padding-left: 1.5rem; }
.form-errors li { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; }
.step-intro { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }
.form-group.form-group-full { grid-column: 1 / -1; }
.sponsor-status { font-size: 0.8rem; margin-top: 0.4rem; min-height: 1.2em; }
.sponsor-status.status-checking { color: var(--text-muted); }
.sponsor-status.status-success { color: #16A34A; }
.sponsor-status.status-error { color: var(--secondary); }
.form-group.has-success input { border-color: #16A34A; box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15); }
.sponsor-note { display: flex; align-items: flex-start; gap: 0.75rem; background: var(--bg); padding: 1.25rem 1.5rem; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.sponsor-note i, .sponsor-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: #94A3B8; }
.process-list { list-style: decimal; padding-left: 1.5rem; }
.process-list li { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }
.field-error { font-size: 0.8rem; color: var(--secondary); margin-top: 0.4rem; }
