:root {
  --sky-bar: #dcecf8;
  --sky-border: #b6d4ec;
  --green-deep: #0e3a66;
  --green-primary: #15589c;
  --green-ticker: #0f628a;
  --green-accent: #1d72c8;
  --sand-bg: #f1f6fb;
  --sand-card: #ffffff;
  --sand-warm: #d4e3f0;
  --footer-bg: #102338;
  --text-main: #132233;
  --text-muted: #43576b;
  --border-subtle: #cfe0ee;
  --white: #ffffff;
  --focus-ring: #ff9800;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 8px rgba(14, 58, 102, 0.08);
  --shadow-elevated: 0 10px 28px rgba(14, 58, 102, 0.16);
  --font-scale: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  font-family: "Cairo", "Heebo", "Segoe UI", Tahoma, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

html[lang="he"] body {
  font-family: "Heebo", "Cairo", "Segoe UI", Tahoma, sans-serif;
}

html[lang="en"] body {
  font-family: "Segoe UI", "Cairo", "Heebo", sans-serif;
}

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

a {
  color: var(--green-primary);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  background: var(--green-deep);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  background-color: var(--sky-bar);
  border-bottom: 1px solid var(--sky-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding-block: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-deep);
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 1.5px solid var(--sky-border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--green-deep);
}

.brand-text small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background-color: rgba(21, 88, 156, 0.14);
}

.nav-list a.active {
  box-shadow: inset 0 -2.5px 0 var(--green-primary);
}

.nav-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #6b8da3;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--sky-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--green-primary);
  color: var(--white);
}

.utility-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.util-tile {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
}

.util-a11y {
  background-color: #15589c;
}

.util-yt {
  background-color: #b71c1c;
}

.util-mail {
  background-color: #1565c0;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--green-primary);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.mobile-drawer {
  background: var(--white);
  border-top: 1px solid var(--sky-border);
  padding: 12px 16px 18px;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--sand-bg);
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  padding-block: 44px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #08203e;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 32, 62, 0.38) 0%, rgba(8, 32, 62, 0.08) 70%);
  pointer-events: none;
}

.hero-3d-canvas,
.hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-3d-mobile-slot {
  display: none;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: #f4f8f5;
  max-width: 720px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-search-bar {
  display: flex;
  align-items: stretch;
  width: min(820px, 100%);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  background: var(--white);
  margin-top: 6px;
}

.search-label-box {
  background: var(--green-deep);
  color: var(--white);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  padding-inline-end: 6px;
}

.search-input-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--text-main);
  min-height: 48px;
}

.search-input-box input:focus {
  outline: none;
}

.search-submit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--green-accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background: var(--green-primary);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 26px;
  background: var(--white);
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero-pill:hover {
  background: #e7f1fb;
  transform: translateY(-2px);
}

/* Emerald News Ticker */
.ticker-bar {
  background: var(--green-ticker);
  color: var(--white);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding-block: 6px;
}

.ticker-badge {
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.ticker-track {
  flex: 1;
  min-width: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.ticker-item:hover {
  text-decoration: underline;
}

.ticker-date {
  font-weight: 800;
}

.ticker-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-btn {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.14);
  color: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}

/* Circular Quick-Access Icon Strip */
.quick-strip {
  background: linear-gradient(180deg, #e5eff8 0%, #f4f8fc 100%);
  border-bottom: 1px solid var(--sand-warm);
  padding-block: 26px;
}

/* Subpage Banner */
.page-banner {
  background: linear-gradient(135deg, #0e3a66 0%, #15589c 100%);
  color: var(--white);
  padding-block: 34px;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
}

.page-banner p {
  margin: 0;
  color: #dcebf8;
  max-width: 740px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--green-deep);
  text-align: center;
  padding: 6px 4px;
  border-radius: var(--radius-md);
}

.quick-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  border: 1px solid #e3ded4;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.quick-item:hover .quick-circle {
  transform: translateY(-3px);
  border-color: var(--green-primary);
}

.quick-label {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
}

/* Shared Section Rhythm */
.section-pad {
  padding-block: clamp(38px, 5vw, 64px);
}

.sand-band {
  background: var(--sand-bg);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2,
.section-head-row h2,
.rights-panel h2,
.contact-info h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  color: var(--green-deep);
  font-weight: 800;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--green-primary);
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-outline {
  background: var(--white);
  color: var(--green-primary);
}

.btn-outline:hover {
  background: #edf5ef;
}

/* Tabs & Filters */
.about-tabs,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab-btn,
.filter-pill {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--text-main);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tab-btn.active,
.filter-pill.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

/* About Section */
.editorial-split {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  align-items: start;
}

.editorial-main p,
.editorial-main li {
  margin-top: 0;
  color: var(--text-main);
}

.editorial-main h3 {
  color: var(--green-deep);
  margin: 18px 0 8px;
}

.editorial-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-box {
  background: var(--green-deep);
  color: var(--white);
  padding: 22px;
  border-radius: var(--radius-md);
}

.vision-box h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.vision-box p {
  margin: 0;
  font-size: 1.02rem;
}

.partners-box {
  background: var(--sand-bg);
  border: 1px solid var(--sand-warm);
  padding: 20px;
  border-radius: var(--radius-md);
}

.partners-box h4 {
  margin: 0 0 8px;
  color: var(--green-deep);
}

.partners-box p {
  margin: 0;
  color: var(--text-muted);
}

.chair-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.chair-portrait-card {
  background: var(--sand-bg);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--sand-warm);
}

.chair-portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.chair-portrait-card h3 {
  margin: 0 0 4px;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.chair-portrait-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chair-text p {
  margin: 0 0 12px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.membership-card {
  background: var(--sand-bg);
  border: 1px solid var(--sand-warm);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.membership-card h3 {
  margin: 0;
  color: var(--green-deep);
}

.membership-card p {
  margin: 0;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.board-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.board-card img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  object-position: top;
}

.board-card-body {
  padding: 12px;
}

.board-card-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--green-deep);
}

.board-card-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Events & Conferences */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.event-thumb {
  width: 100%;
  height: 185px;
  object-fit: cover;
  background: #e4ebe6;
}

.event-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-primary);
}

.event-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--green-deep);
}

.event-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.event-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Directory Section */
.directory-band {
  background: #e9f2fa;
  border-block: 1px solid #c9ddef;
}

.directory-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 12px;
  margin-bottom: 20px;
}

.form-input,
.form-select,
.contact-form input,
.contact-form select,
.contact-form textarea,
.modal-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b8c9be;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-main);
}

.empty-state-box {
  background: var(--white);
  border: 1.5px dashed var(--green-primary);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.empty-state-box h3 {
  margin: 0 0 8px;
  color: var(--green-deep);
}

.empty-state-box p {
  margin: 0;
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
}

/* Awareness & Rights */
.awareness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.awareness-card {
  background: var(--sand-bg);
  border: 1px solid var(--sand-warm);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.awareness-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.awareness-card h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.awareness-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.rights-panel {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.rights-panel h2 {
  color: var(--white);
}

.rights-panel p {
  margin: 0;
  color: #e4efe8;
}

.rights-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rights-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

.rights-link-item:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Data Reports & Links */
.data-grid,
.links-grid,
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.data-card,
.link-card,
.search-result-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-primary);
}

.data-card h3,
.link-card h3,
.search-result-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--green-deep);
}

.data-card p,
.link-card p,
.search-result-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Media Table */
.media-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.media-filters .form-input {
  width: 240px;
}

.media-filters .form-select {
  width: 170px;
}

.media-table-wrap {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.media-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.media-table th,
.media-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.media-table th {
  background: #e2eef8;
  color: var(--green-deep);
  font-weight: 800;
}

.media-pagination {
  margin-top: 16px;
  text-align: center;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-details {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.contact-details dt {
  font-weight: 800;
  color: var(--green-deep);
}

.contact-details dd {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.contact-form {
  background: var(--sand-bg);
  border: 1px solid var(--sand-warm);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-deep);
}

.form-feedback {
  margin: 0;
  font-weight: 700;
  min-height: 22px;
}

.form-feedback.ok {
  color: var(--green-primary);
}

.form-feedback.err {
  color: #b71c1c;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #f2ece1;
  padding-block: 22px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a,
.footer-link-btn {
  color: #f2ece1;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.footer-links a:hover,
.footer-link-btn:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: #d8cfc0;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 17, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 500;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-md);
  width: min(560px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-elevated);
}

.lightbox-dialog {
  width: min(860px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-header h3 {
  margin: 0;
  color: var(--green-deep);
}

.modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  background: var(--sand-bg);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-body img {
  flex: 1;
  max-height: 62dvh;
  object-fit: contain;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lb-nav-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.lb-counter {
  text-align: center;
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--text-muted);
}

.modal-form,
.a11y-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-copy {
  margin: 0;
}

/* High Contrast & Accessibility Modes */
body.high-contrast {
  background: #000000;
  color: #ffffff;
}

body.high-contrast .site-header,
body.high-contrast .sand-band,
body.high-contrast .directory-band,
body.high-contrast .quick-strip,
body.high-contrast .event-card,
body.high-contrast .data-card,
body.high-contrast .link-card,
body.high-contrast .awareness-card,
body.high-contrast .contact-form,
body.high-contrast .empty-state-box,
body.high-contrast .modal-dialog,
body.high-contrast .legal-doc {
  background: #111111;
  color: #ffffff;
  border-color: #ffd600;
}

body.high-contrast a,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast .brand-text strong,
body.high-contrast .nav-list a,
body.high-contrast .quick-label {
  color: #ffd600;
}

body.highlight-links a {
  text-decoration: underline !important;
  outline: 2px solid #ff9800;
  outline-offset: 2px;
}

body.readable-font {
  font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
}

body.stop-animations *,
body.stop-animations *::before,
body.stop-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.grayscale-mode {
  filter: grayscale(100%);
}

/* Floating Side Accessibility Button */
.a11y-fab {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 20px;
  z-index: 420;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
}

.a11y-fab:hover {
  background: var(--green-primary);
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.a11y-grid .btn-primary {
  grid-column: 1 / -1;
}

.a11y-statement-link {
  margin-top: 12px;
  text-align: center;
}

/* Legal & Accessibility Document Pages */
.legal-doc {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 38px);
  max-width: 860px;
  margin-inline: auto;
  box-shadow: var(--shadow-card);
}

.legal-doc h2 {
  color: var(--green-deep);
  margin: 22px 0 8px;
  font-size: 1.2rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-main);
  margin: 0 0 10px;
}

.legal-doc ul {
  padding-inline-start: 22px;
  margin: 0 0 12px;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 18px !important;
}

/* Responsive Breakpoints: Tablet / Small Laptop */
@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .editorial-split,
  .chair-layout,
  .rights-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .directory-controls {
    grid-template-columns: 1fr 1fr;
  }

  .directory-controls .btn-primary {
    grid-column: 1 / -1;
  }
}

/* Responsive Breakpoints: Mobile */
@media (max-width: 680px) {
  .brand-text small,
  .utility-icons {
    display: none;
  }

  .hero-section {
    min-height: 330px;
    padding-block: 30px;
  }

  .hero-3d-mobile-slot {
    display: block;
    width: 100%;
    height: 150px;
  }

  .hero-search-bar {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .search-label-box {
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-grid,
  .rights-links,
  .directory-controls,
  .form-row {
    grid-template-columns: 1fr;
  }

  .media-filters .form-input,
  .media-filters .form-select {
    width: 100%;
  }
}

