/*
Theme Name: EWG Conference Theme
Theme URI: https://example.org/
Author: EWG
Description: Formal, modern conference theme with navy and white visual identity.
Version: 1.0.14
Text Domain: ewg-theme
*/

:root {
  --ewg-navy: #0a2e55;
  --ewg-navy-2: #11467d;
  --ewg-white: #ffffff;
  --ewg-slate: #f3f6fa;
  --ewg-text: #10253f;
  --ewg-muted: #5d7693;
  --ewg-border: #d5e0ed;
  --ewg-page-bg: radial-gradient(circle at top right, #e9f2ff 0%, #f7faff 45%, #ffffff 100%);
  --ewg-header-bg: linear-gradient(130deg, #ffffff 0%, #f2f7ff 50%, #dbe8fa 100%);
  --ewg-surface: #ffffff;
  --ewg-nav-bg: #ffffff;
  --ewg-nav-hover: #eef4fd;
  --ewg-nav-active-bg: #0a2e55;
  --ewg-nav-active-text: #ffffff;
  --ewg-nav-border: #e0e7f0;
  --ewg-page-link-text: #0a2e55;
  --ewg-card-border: #d7e3f1;
  --ewg-card-bg: radial-gradient(circle at top right, rgba(227, 238, 252, 0.95) 0%, rgba(249, 251, 255, 0.96) 42%, #ffffff 100%);
  --ewg-card-muted-bg: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  --ewg-soft-bg: #eef4fd;
  --ewg-chip-bg: #e8f0fb;
  --ewg-shadow: 0 6px 24px rgba(10, 46, 85, 0.07);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ewg-navy: #d9e8ff;
  --ewg-navy-2: #9fc7ff;
  --ewg-white: #101b2c;
  --ewg-slate: #152238;
  --ewg-text: #edf4ff;
  --ewg-muted: #adc1dc;
  --ewg-border: #2e4564;
  --ewg-page-bg: radial-gradient(circle at top right, #17365a 0%, #0d1726 48%, #09111d 100%);
  --ewg-header-bg: linear-gradient(130deg, #101b2c 0%, #122742 52%, #0d1726 100%);
  --ewg-surface: #101b2c;
  --ewg-nav-bg: #0d1828;
  --ewg-nav-hover: #172a45;
  --ewg-nav-active-bg: #9fc7ff;
  --ewg-nav-active-text: #08111f;
  --ewg-nav-border: #263a56;
  --ewg-page-link-text: #e6f0ff;
  --ewg-card-border: #2d4362;
  --ewg-card-bg: radial-gradient(circle at top right, rgba(37, 61, 91, 0.95) 0%, rgba(18, 33, 52, 0.96) 45%, #101b2c 100%);
  --ewg-card-muted-bg: linear-gradient(180deg, #162842 0%, #101d31 100%);
  --ewg-soft-bg: #172a45;
  --ewg-chip-bg: #19314f;
  --ewg-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ewg-text);
  background: var(--ewg-page-bg);
}

a {
  color: var(--ewg-navy-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: transparent;
  border-bottom: 0;
}

.brand-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.brand-wrap p {
  color: var(--ewg-muted);
}

.brand-image img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--ewg-border);
}

.site-title {
  margin: 0;
  font-family: "Lora", serif;
  color: var(--ewg-navy);
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 38px;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  border: 1px solid var(--ewg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #123b69;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10, 46, 85, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: #ffffff;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 54px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #dce9f8;
  color: #5279a6;
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 46, 85, 0.25);
  transition: transform 0.2s ease;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(13, 24, 40, 0.9);
  color: #e6f0ff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .theme-toggle:hover {
  background: #13233a;
}

:root[data-theme="dark"] .theme-toggle-track {
  background: #27415f;
  color: #c7ddfb;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(26px);
  background: #9fc7ff;
}

.main-nav {
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-nav ul {
  max-width: none;
  list-style: none;
  margin: 0 auto;
  padding: 0.65rem 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--ewg-nav-bg);
  border-top: 1px solid var(--ewg-border);
  border-bottom: 1px solid var(--ewg-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 46, 85, 0.08);
}

.main-nav li {
  border-right: 0;
}

.main-nav a {
  display: block;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ewg-navy-2);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  background: var(--ewg-nav-active-bg);
  border-color: var(--ewg-nav-active-bg);
  color: var(--ewg-nav-active-text);
  box-shadow: 0 8px 18px rgba(10, 46, 85, 0.18);
}

.main-nav a:hover {
  background: var(--ewg-nav-hover);
  border-color: var(--ewg-border);
  color: var(--ewg-navy);
  text-decoration: none;
  transform: translateY(-1px);
}

.main-nav .current-menu-item a:hover,
.main-nav .current_page_item a:hover {
  background: var(--ewg-nav-active-bg);
  color: var(--ewg-nav-active-text);
}

.main-nav a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ewg-navy-2) 40%, transparent);
  outline-offset: 3px;
}

.menu-toggle {
  display: none;
}

.layout {
  max-width: 1200px;
  margin: 18px auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 0 16px 26px;
  width: 100%;
  flex: 1 0 auto;
}

.sidebar {
  background: linear-gradient(180deg, #0a2e55 0%, #123d6f 100%);
  color: #f6fbff;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  align-self: start;
  box-shadow: 0 10px 25px rgba(9, 33, 61, 0.18);
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
  width: 100%;
}

.sidebar-stack .page-links-box {
  box-sizing: border-box;
  width: 100%;
}

.sidebar h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.18rem;
  font-family: "Lora", serif;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding: 0.48rem 0;
}

.sidebar a {
  color: #eaf4ff;
}

.page-links-box {
  background: var(--ewg-card-bg);
  color: var(--ewg-text);
  border: 1px solid var(--ewg-card-border);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  align-self: start;
  box-shadow: var(--ewg-shadow);
}

.page-links-box h3 {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  font-size: 1.18rem;
  font-family: "Lora", serif;
  text-align: center;
  color: var(--ewg-navy);
}

.page-links-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--ewg-soft-bg) 72%, var(--ewg-surface));
  border: 1px solid var(--ewg-card-border);
  border-radius: 8px;
  color: var(--ewg-page-link-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 700;
}

.page-links-box .page-link-btn {
  color: var(--ewg-page-link-text);
}

.page-link-btn:hover {
  background: var(--ewg-nav-active-bg);
  border-color: var(--ewg-nav-active-bg);
  color: var(--ewg-nav-active-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 46, 85, 0.18);
  text-decoration: none;
}

.page-link-btn i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  color: var(--ewg-page-link-text);
  transition: color 0.3s ease;
}

.page-links-box .page-link-btn i {
  color: var(--ewg-page-link-text);
}

.page-link-btn:hover i {
  color: currentColor;
}

.page-link-btn span {
  flex: 1;
}

.ewg-board-profile {
  display: block;
  margin-top: 1.5rem;
}

.ewg-board-profile-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ewg-board-profile-image img {
  width: 320px;
  max-width: 320px;
  height: 320px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--ewg-card-border);
  box-shadow: var(--ewg-shadow);
}

.ewg-board-profile-info h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  color: var(--ewg-navy);
}

.ewg-board-profile-info p {
  margin: 0.8rem 0;
  line-height: 1.75;
  color: var(--ewg-text);
}

.ewg-board-profile-info p strong {
  color: var(--ewg-navy);
}

.ewg-board-profile-info a {
  color: var(--ewg-navy-2);
}

.ewg-board-profile-info a:hover {
  text-decoration: underline;
}

.entry-content .ewg-board-profile {
  margin-top: 1.5rem;
}

.ewg-member-profile {
  display: block;
}

.ewg-board-profile-shell,
.ewg-member-profile-shell {
  border: 1px solid var(--ewg-card-border);
  border-radius: 18px;
  background: var(--ewg-card-bg);
  box-shadow: var(--ewg-shadow);
  overflow: hidden;
}

.ewg-board-profile-hero,
.ewg-member-profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid var(--ewg-border);
  background: linear-gradient(135deg, rgba(10, 46, 85, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.ewg-board-profile-hero {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.ewg-board-profile-media {
  display: flex;
  justify-content: center;
  position: relative;
}

.ewg-board-profile-media::before {
  content: "";
  position: absolute;
  inset: 16px 10px -16px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 70, 125, 0.12) 0%, rgba(17, 70, 125, 0.02) 100%);
  filter: blur(0.5px);
}

.ewg-board-profile-photo {
  position: relative;
  display: block;
  width: 280px;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--ewg-card-border);
  box-shadow: var(--ewg-shadow);
  background: var(--ewg-surface);
}

.ewg-board-profile-summary {
  min-width: 0;
  align-self: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ewg-card-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--ewg-surface) 82%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ewg-member-profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--ewg-chip-bg);
  color: var(--ewg-navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ewg-board-profile-submeta,
.ewg-member-profile-subtitle {
  margin: 0.7rem 0 0;
  color: var(--ewg-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.ewg-board-profile-submeta {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.ewg-board-profile-lead {
  margin: 0.8rem 0 0;
  color: var(--ewg-text);
  font-size: 1rem;
  line-height: 1.65;
}

.ewg-board-profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ewg-board-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--ewg-soft-bg);
  color: var(--ewg-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.ewg-board-profile-chip i {
  color: var(--ewg-muted);
}

.ewg-board-profile-chip.is-link {
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ewg-board-profile-chip.is-link:hover {
  text-decoration: none;
  background: var(--ewg-nav-hover);
  transform: translateY(-1px);
}

.ewg-member-profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--ewg-navy-2);
  color: var(--ewg-surface);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.ewg-board-profile-grid,
.ewg-member-profile-grid {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.35rem 1.35rem;
}

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

.ewg-board-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ewg-member-detail {
  padding: 0.95rem 1rem;
  border: 1px solid var(--ewg-card-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ewg-surface) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ewg-member-detail-wide {
  grid-column: 1 / -1;
}

.ewg-member-detail-muted {
  background: var(--ewg-card-muted-bg);
}

.ewg-member-detail-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  color: var(--ewg-navy);
  font-weight: 700;
}

.ewg-member-detail-title i {
  color: var(--ewg-muted);
  width: 1rem;
  text-align: center;
}

.ewg-member-detail-value {
  color: var(--ewg-text);
  line-height: 1.65;
}

.ewg-member-detail-value a {
  font-weight: 700;
}

.ewg-profile-email-obfuscated,
.ewg-profile-email-obfuscated-chip {
  user-select: none;
  -webkit-user-select: none;
}

.content {
  background: var(--ewg-surface);
  border: 1px solid var(--ewg-border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--ewg-shadow);
}

.hero-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--ewg-card-border);
  margin-bottom: 1rem;
}

.entry-title {
  margin: 0 0 0.75rem;
  color: var(--ewg-navy);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  font-family: "Lora", serif;
}

.entry-content {
  line-height: 1.5;
}

.entry-content img,
.content img {
  max-width: 100%;
  height: auto;
}

.content .ewg-board-profile-photo,
.entry-content .ewg-board-profile-photo,
.content .ewg-board-profile-image img,
.entry-content .ewg-board-profile-image img,
.content .ewg-avatar,
.entry-content .ewg-avatar {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.content .ewg-board-profile-photo,
.entry-content .ewg-board-profile-photo,
.content .ewg-board-profile-image img,
.entry-content .ewg-board-profile-image img {
  border-radius: 18px;
}

.content .ewg-board-profile-photo,
.entry-content .ewg-board-profile-photo {
  width: min(280px, calc(100vw - 56px));
  height: min(280px, calc(100vw - 56px));
}

.content .ewg-board-profile-image img,
.entry-content .ewg-board-profile-image img {
  width: min(320px, calc(100vw - 56px));
  height: min(320px, calc(100vw - 56px));
}

.content .ewg-avatar,
.entry-content .ewg-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100%;
}

.home .entry-content > section:first-of-type > div:nth-of-type(2) > div,
.home .entry-content > section:first-of-type > div:nth-of-type(3) > div {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.home .entry-content > section:first-of-type > div:nth-of-type(4) > div {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

:root:not([data-theme="dark"]) .home .entry-content > section:first-of-type > div:nth-of-type(2) > div,
:root:not([data-theme="dark"]) .home .entry-content > section:first-of-type > div:nth-of-type(3) > div {
  background: linear-gradient(135deg, #eef6ff, #f8fbff) !important;
  border-color: #dbeafe !important;
}

:root:not([data-theme="dark"]) .home .entry-content > section:first-of-type > div:nth-of-type(4) > div {
  border-color: #dbeafe !important;
}

.home .entry-content > section:first-of-type > div:first-of-type > div {
  background: transparent !important;
}

.home .entry-content > section:first-of-type > div:nth-of-type(2) > div::before,
.home .entry-content > section:first-of-type > div:nth-of-type(3) > div::before,
.home .entry-content > section:first-of-type > div:nth-of-type(4) > div::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ewg-navy-2), #74a7dc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.home .entry-content > section:first-of-type > div:nth-of-type(2) > div:hover,
.home .entry-content > section:first-of-type > div:nth-of-type(3) > div:hover {
  color: #0f325b;
  text-decoration: none;
  transform: translateY(-6px);
  border-color: #a8c7ea !important;
  box-shadow: 0 16px 32px rgba(10, 46, 85, 0.16) !important;
}

.home .entry-content > section:first-of-type > div:nth-of-type(4) > div:hover {
  transform: translateY(-6px);
  border: 1px solid #a8c7ea !important;
  box-shadow: 0 16px 32px rgba(10, 46, 85, 0.16) !important;
}

.home .entry-content .ewg-members-stat-link {
  cursor: pointer;
}

.home .entry-content .ewg-members-stat-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ewg-navy-2) 40%, transparent);
  outline-offset: 3px;
}

.home .entry-content > section:first-of-type > div:nth-of-type(2) > div:hover::before,
.home .entry-content > section:first-of-type > div:nth-of-type(3) > div:hover::before,
.home .entry-content > section:first-of-type > div:nth-of-type(4) > div:hover::before {
  transform: scaleX(1);
}

.home .entry-content > section:first-of-type > div:nth-of-type(2) > div h3,
.home .entry-content > section:first-of-type > div:nth-of-type(3) > div h3 {
  transition: color 0.25s ease, transform 0.25s ease;
}

.home .entry-content > section:first-of-type > div:nth-of-type(2) > div:hover h3,
.home .entry-content > section:first-of-type > div:nth-of-type(3) > div:hover h3 {
  color: var(--ewg-navy-2) !important;
  transform: translateY(-2px);
}

.home .entry-content > section:first-of-type > div:nth-of-type(3) > div > a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home .entry-content > section:first-of-type > div:nth-of-type(3) > div > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 46, 85, 0.18);
  text-decoration: none;
}

:root[data-theme="dark"] .entry-content > section[style*="color"] {
  color: var(--ewg-text) !important;
}

:root[data-theme="dark"] .entry-content div[style*="background: #ffffff"],
:root[data-theme="dark"] .entry-content div[style*="background:#ffffff"],
:root[data-theme="dark"] .entry-content div[style*="background: #f8fafc"],
:root[data-theme="dark"] .entry-content div[style*="background:#f8fafc"],
:root[data-theme="dark"] .entry-content div[style*="background: linear-gradient(135deg, #eef6ff"],
:root[data-theme="dark"] .entry-content div[style*="background: linear-gradient(180deg, rgba(255"] {
  background: var(--ewg-card-bg) !important;
  border-color: var(--ewg-card-border) !important;
  box-shadow: var(--ewg-shadow) !important;
  color: var(--ewg-text) !important;
}

:root[data-theme="dark"] .entry-content div[style*="border-left: 5px solid"] {
  border-left-color: var(--ewg-navy-2) !important;
}

:root[data-theme="dark"] .entry-content h2[style*="color"],
:root[data-theme="dark"] .entry-content h3[style*="color"],
:root[data-theme="dark"] .entry-content div[style*="color: #0f4c81"] {
  color: var(--ewg-navy-2) !important;
}

:root[data-theme="dark"] .entry-content a[style*="background: #0f4c81"] {
  background: var(--ewg-navy-2) !important;
  color: #08111f !important;
}

:root[data-theme="dark"] .entry-content a[style*="background:white"],
:root[data-theme="dark"] .entry-content a[style*="background: white"] {
  background: #e6f0ff !important;
  color: #0f4c81 !important;
}

:root[data-theme="dark"] .entry-content .gwcountdown-wrapper,
:root[data-theme="dark"] .entry-content .gwcountdown-wrapper *,
:root[data-theme="dark"] .entry-content .countdown-timer,
:root[data-theme="dark"] .entry-content .countdown-timer * {
  color: var(--ewg-text) !important;
}

:root[data-theme="dark"] .entry-content .gwcountdown-style-grid .gwcountdown-item,
:root[data-theme="dark"] .entry-content .gwcountdown-style-boxed {
  background: var(--ewg-card-muted-bg) !important;
  border-color: var(--ewg-card-border) !important;
}

.home .entry-content .gwcountdown-wrapper,
.home .entry-content .gwcountdown-style-boxed,
.home .entry-content .gwcountdown-style-grid .gwcountdown-item,
.home .entry-content .countdown-timer,
:root[data-theme="dark"] .home .entry-content .gwcountdown-wrapper,
:root[data-theme="dark"] .home .entry-content .gwcountdown-style-boxed,
:root[data-theme="dark"] .home .entry-content .gwcountdown-style-grid,
:root[data-theme="dark"] .home .entry-content .gwcountdown-style-grid .gwcountdown-item,
:root[data-theme="dark"] .home .entry-content .countdown-timer {
  --gwcountdown-bg: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .home .entry-content div:has(.gwcountdown-wrapper),
:root[data-theme="dark"] .home .entry-content section:has(.gwcountdown-wrapper),
:root[data-theme="dark"] .home .entry-content div:has(.countdown-timer),
:root[data-theme="dark"] .home .entry-content section:has(.countdown-timer) {
  background: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) > div,
:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) [style*="background"] {
  background: var(--ewg-card-bg) !important;
  background-color: var(--ewg-surface) !important;
  border-color: var(--ewg-card-border) !important;
  box-shadow: var(--ewg-shadow) !important;
}

:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:first-of-type > div {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4),
:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) h2,
:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) h3,
:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) p,
:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) span {
  color: var(--ewg-text) !important;
}

:root[data-theme="dark"] .home .entry-content > section:first-of-type > div:nth-of-type(4) > div:hover {
  border: 1px solid #a8c7ea !important;
}

:root[data-theme="dark"] .home .entry-content .ewg-countdown-panel {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .home .entry-content .ewg-countdown-panel[style] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

:root[data-theme="dark"] .entry-content .ewg-countdown-panel,
:root[data-theme="dark"] .content .ewg-countdown-panel,
:root[data-theme="dark"] .content .ewg-countdown-panel {
  --gwcountdown-bg: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .entry-content div:has(.gwcountdown-wrapper),
:root[data-theme="dark"] .entry-content section:has(.gwcountdown-wrapper),
:root[data-theme="dark"] .entry-content div:has(.countdown-timer),
:root[data-theme="dark"] .entry-content section:has(.countdown-timer),
:root[data-theme="dark"] .content div:has(.gwcountdown-wrapper),
:root[data-theme="dark"] .content section:has(.gwcountdown-wrapper),
:root[data-theme="dark"] .content div:has(.countdown-timer),
:root[data-theme="dark"] .content section:has(.countdown-timer) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.site-footer {
  margin-top: 18px;
  background: #0a2e55;
  color: #e5efff;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .sidebar-stack {
    order: 2;
  }

  .content {
    order: 1;
  }

  .ewg-board-profile-hero,
  .ewg-member-profile-hero,
  .ewg-board-profile-grid,
  .ewg-member-profile-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 720px) {
  body.mobile-menu-open {
    overflow-x: hidden;
  }

  .site-header {
    position: relative;
  }

  .brand-wrap {
    padding: 12px 14px 10px;
  }

  .brand-image img {
    max-height: 112px;
    border-radius: 10px;
  }

  .theme-toggle {
    top: 18px;
    right: 18px;
    bottom: auto;
    min-height: 34px;
    padding: 0.28rem 0.35rem 0.28rem 0.65rem;
    font-size: 0.82rem;
    gap: 0.45rem;
  }

  .theme-toggle-track {
    width: 48px;
    height: 24px;
    padding: 0 0.35rem;
  }

  .theme-toggle-thumb {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
  }

  :root[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(24px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: calc(100% - 28px);
    min-height: 46px;
    margin: 0 14px 10px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--ewg-border);
    border-radius: 10px;
    background: var(--ewg-nav-bg);
    color: var(--ewg-navy);
    font: inherit;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(10, 46, 85, 0.1);
    cursor: pointer;
  }

  .menu-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 22px;
    height: 22px;
  }

  .menu-toggle-bars span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ewg-navy-2) 40%, transparent);
    outline-offset: 3px;
  }

  .main-nav {
    padding: 0 14px;
  }

  .main-nav > ul,
  .main-nav > div > ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    max-height: calc(100vh - 190px);
    margin-bottom: 12px;
    padding: 0.65rem;
    overflow-y: auto;
    border-radius: 10px;
  }

  .main-nav.is-open > ul,
  .main-nav.is-open > div > ul {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    line-height: 1.2;
    white-space: normal;
  }

  .layout {
    margin-top: 6px;
    padding: 0 12px 18px;
    gap: 14px;
  }

  .content,
  .sidebar,
  .page-links-box {
    border-radius: 10px;
  }

  .content {
    padding: 1rem;
  }

  .entry-content {
    overflow-wrap: anywhere;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
  }

  .entry-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .entry-content [style*="display: flex"],
  .entry-content [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  .ewg-board-profile-hero,
  .ewg-member-profile-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .ewg-board-profile-hero {
    display: flex;
  }

  .ewg-board-profile-media {
    width: 100%;
    justify-content: center;
  }

  .ewg-board-profile-media::before {
    display: none;
  }

  .ewg-board-profile-photo {
    width: min(240px, calc(100vw - 56px));
    max-width: min(240px, calc(100vw - 56px));
    height: min(240px, calc(100vw - 56px));
    margin: 0 auto;
  }

  .ewg-board-profile-image img {
    width: min(240px, calc(100vw - 56px));
    max-width: min(240px, calc(100vw - 56px));
    height: min(240px, calc(100vw - 56px));
  }

  .ewg-board-profile-summary {
    width: 100%;
    padding: 0.95rem;
  }

  .ewg-board-profile-chip-row {
    gap: 0.5rem;
  }

  .ewg-board-profile-chip {
    max-width: 100%;
  }

  .ewg-board-profile-grid,
  .ewg-member-profile-grid {
    grid-template-columns: 1fr;
  }

  .ewg-member-detail-wide {
    grid-column: auto;
  }
}
