:root {
  --ieee-blue: #00629B;
  --ieee-dark: #003057;
  --ieee-light: #0085CA;
  --off-white: #DEE7F0;
  --white: #FFFFFF;
  --text: #0A1628;
  --text-muted: #5A6A85;
  --border: rgba(0, 98, 155, 0.18);
  --border-strong: rgba(0, 98, 155, 0.3);
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #ECF2F8;
  --surface-tint: #DCE8F3;
  --paper: #EDF3F8;
  --shadow: 0 28px 62px rgba(0, 34, 64, 0.15);
  --shadow-soft: 0 16px 38px rgba(0, 34, 64, 0.1);
  --shadow-card: 0 22px 50px rgba(0, 34, 64, 0.14);
  --grid-color: rgba(0, 98, 155, 0.038);
}

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

:root:not([data-palette]),
:root[data-palette='enhanced'] {
  --ieee-blue: #245fb8;
  --ieee-dark: #112f55;
  --ieee-light: #38a2db;
  --ieee-indigo: #5d67d6;
  --ieee-teal: #187e8f;
  --ieee-amber: #d39a31;
  --off-white: #e7eef5;
  --white: #FFFFFF;
  --text: #122235;
  --text-muted: #607086;
  --border: rgba(24, 84, 151, 0.18);
  --border-strong: rgba(24, 84, 151, 0.3);
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f1f6fb;
  --surface-tint: #e5eef8;
  --paper: #edf3f8;
  --shadow: 0 28px 62px rgba(14, 31, 54, 0.14);
  --shadow-soft: 0 16px 38px rgba(14, 31, 54, 0.08);
  --shadow-card: 0 22px 50px rgba(14, 31, 54, 0.12);
  --grid-color: rgba(36, 95, 184, 0.04);
  --page-backdrop:
    radial-gradient(circle at top left, rgba(36, 95, 184, 0.07), transparent 24%),
    radial-gradient(circle at top right, rgba(24, 126, 143, 0.06), transparent 22%),
    linear-gradient(180deg, #f6f8fb 0%, #e7eef5 100%);
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --topbar-border: rgba(24, 84, 151, 0.1);
  --topbar-shadow: 0 6px 22px rgba(14, 31, 54, 0.06);
  --topbar-link-hover-bg: rgba(24, 126, 143, 0.08);
  --topbar-link-hover-border: rgba(24, 126, 143, 0.16);
  --panel-border: rgba(24, 84, 151, 0.2);
  --panel-bg: rgba(255, 255, 255, 0.99);
  --panel-shadow: 0 24px 54px rgba(14, 31, 54, 0.12);
  --hero-panel-bg: #ffffff;
  --hero-panel-border: rgba(24, 84, 151, 0.16);
  --hero-panel-shadow: 0 20px 42px rgba(14, 31, 54, 0.1);
  --button-primary-shadow: 0 12px 28px rgba(36, 95, 184, 0.18);
  --button-secondary-bg: rgba(255, 255, 255, 0.92);
  --button-secondary-border: rgba(36, 95, 184, 0.16);
  --button-secondary-hover-bg: rgba(24, 126, 143, 0.08);
  --button-secondary-hover-border: rgba(24, 126, 143, 0.24);
  --list-link-bg: rgba(255, 255, 255, 0.98);
  --list-link-border: rgba(24, 84, 151, 0.16);
  --bullet-bg: rgba(24, 126, 143, 0.1);
  --bullet-border: rgba(24, 126, 143, 0.12);
  --bullet-text: #187e8f;
  --callout-bg: #112f55;
  --callout-border: rgba(17, 47, 85, 0.2);
  --callout-shadow: 0 24px 52px rgba(17, 47, 85, 0.2);
}

:root[data-palette='legacy'] {
  --ieee-indigo: #00629B;
  --ieee-teal: #0085CA;
  --ieee-amber: #0085CA;
  --page-backdrop:
    radial-gradient(circle at top left, rgba(0, 133, 202, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 98, 155, 0.06), transparent 20%),
    linear-gradient(180deg, #F1F6FA 0%, var(--off-white) 100%);
  --topbar-bg: rgba(255, 255, 255, 0.84);
  --topbar-border: rgba(0, 98, 155, 0.08);
  --topbar-shadow: 0 6px 22px rgba(0, 48, 87, 0.04);
  --panel-border: rgba(0, 98, 155, 0.22);
  --panel-bg: rgba(255, 255, 255, 0.99);
  --panel-shadow: 0 24px 54px rgba(0, 34, 64, 0.14);
  --hero-panel-bg: #ffffff;
  --hero-panel-border: rgba(0, 98, 155, 0.18);
  --hero-panel-shadow: 0 20px 42px rgba(0, 34, 64, 0.12);
  --button-primary-shadow: 0 12px 28px rgba(0, 98, 155, 0.16);
  --button-secondary-bg: rgba(255, 255, 255, 0.92);
  --button-secondary-border: rgba(0, 98, 155, 0.16);
  --button-secondary-hover-bg: rgba(0, 98, 155, 0.05);
  --button-secondary-hover-border: rgba(0, 98, 155, 0.24);
  --list-link-bg: rgba(255, 255, 255, 0.98);
  --list-link-border: rgba(0, 98, 155, 0.16);
  --bullet-bg: rgba(0, 98, 155, 0.12);
  --bullet-border: rgba(0, 98, 155, 0.12);
  --bullet-text: var(--ieee-blue);
  --callout-bg: #0a4c78;
  --callout-border: rgba(0, 48, 87, 0.18);
  --callout-shadow: 0 24px 52px rgba(0, 48, 87, 0.16);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body.page-content {
  font-family: 'Open Sans', sans-serif;
  background: var(--page-backdrop);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-content::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 144px 144px, 144px 144px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(400px, 760px) minmax(max-content, 1fr);
  align-items: center;
  column-gap: 24px;
  padding: 22px 36px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: var(--topbar-shadow);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  justify-self: start;
}

.site-brand-badge {
  position: relative;
  width: 40px;
  height: 42px;
  flex-shrink: 0;
}

.site-brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 48, 87, 0.12));
}

.site-brand-mark--dark {
  display: none;
}

.site-brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.site-brand-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--ieee-dark);
  letter-spacing: -0.5px;
  line-height: 1;
  text-transform: uppercase;
}

.site-brand-meta {
  font-family: Calibri, 'Open Sans', sans-serif;
  font-size: 10px;
  color: rgba(10, 22, 40, 0.62);
  font-style: italic;
  line-height: 1.2;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  justify-content: flex-end;
  justify-self: end;
  margin-left: 0;
}

.site-topbar__search {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: center;
}

.topbar-link {
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(10, 22, 40, 0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.topbar-link:hover,
.topbar-link[aria-current='page'] {
  color: var(--ieee-dark);
  background: var(--topbar-link-hover-bg);
  border-color: var(--topbar-link-hover-border);
}

.page-main {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px 110px;
  transition: padding-left 0.24s ease;
}

body.page-content.has-page-sidebar .page-main {
  max-width: 1620px;
  padding-left: 436px;
}

body.page-content.page-sidebar-collapsed .page-main {
  padding-left: 126px;
}

.page-sidebar-shell {
  position: relative;
  z-index: 3;
}

.page-sidebar {
  position: fixed;
  top: 104px;
  left: 24px;
  width: 344px;
  z-index: 42;
  transition: width 0.24s ease;
}

.page-sidebar__panel {
  max-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(0, 98, 155, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 48px rgba(0, 48, 87, 0.12);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.page-sidebar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-sidebar__header-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-sidebar__eyebrow,
.page-sidebar__group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 98, 155, 0.72);
}

.page-sidebar__title {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ieee-dark);
}

.page-sidebar__toggle {
  width: 42px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(0, 98, 155, 0.12);
  background: rgba(244, 246, 251, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-sidebar__toggle:hover {
  border-color: rgba(0, 98, 155, 0.24);
  background: rgba(230, 238, 247, 0.96);
}

.page-sidebar__toggle-bar {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--ieee-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-sidebar__toggle-bar:last-child {
  transform: rotate(90deg) scaleX(1);
}

.page-sidebar__toggle[aria-expanded='true'] .page-sidebar__toggle-bar:last-child {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

.page-sidebar__desc,
.page-sidebar__current-meta,
.page-sidebar__link-meta {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-sidebar__current {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 98, 155, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.92) 100%);
}

.page-sidebar__current-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-sidebar__current-title,
.page-sidebar__link-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ieee-dark);
}

.page-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-sidebar__spotlight {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 98, 155, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 252, 0.92) 100%);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-sidebar__spotlight:hover,
.page-sidebar__spotlight.current {
  transform: translateY(-2px);
  border-color: rgba(0, 98, 155, 0.24);
  box-shadow: 0 16px 32px rgba(0, 48, 87, 0.12);
}

.page-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.page-sidebar__link:hover,
.page-sidebar__link.current {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 98, 155, 0.12);
  transform: translateX(2px);
}

.page-sidebar__spotlight-icon,
.page-sidebar__current-badge,
.page-sidebar__icon,
.page-sidebar__mobile-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 98, 155, 0.08);
  background: rgba(0, 133, 202, 0.1);
}

.page-sidebar__spotlight-copy,
.page-sidebar__link-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-sidebar__spotlight-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 98, 155, 0.72);
}

.page-sidebar__spotlight-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ieee-dark);
}

.page-sidebar__spotlight-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-sidebar__spotlight-cta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ieee-blue);
}

.icon-svg {
  display: block;
  width: 24px;
  height: 24px;
}

.icon-svg--button {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.page-sidebar__mobile-trigger,
.page-sidebar__backdrop {
  display: none;
}

.page-sidebar-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 160;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 98, 155, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(0, 48, 87, 0.14);
  backdrop-filter: blur(16px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.page-sidebar-tooltip[hidden] {
  display: none;
}

.page-sidebar-tooltip.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.page-sidebar-tooltip__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ieee-dark);
}

.page-sidebar-tooltip__meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

body.page-content.page-sidebar-collapsed .page-sidebar {
  width: 72px;
}

body.page-content.page-sidebar-collapsed .page-sidebar__panel {
  padding: 16px 8px 14px;
  align-items: center;
  overflow-y: hidden;
}

body.page-content.page-sidebar-collapsed .page-sidebar__header {
  width: 100%;
  justify-content: center;
}

body.page-content.page-sidebar-collapsed .page-sidebar__eyebrow,
body.page-content.page-sidebar-collapsed .page-sidebar__title,
body.page-content.page-sidebar-collapsed .page-sidebar__desc,
body.page-content.page-sidebar-collapsed .page-sidebar__group-label,
body.page-content.page-sidebar-collapsed .page-sidebar__spotlight-copy,
body.page-content.page-sidebar-collapsed .page-sidebar__spotlight-cta,
body.page-content.page-sidebar-collapsed .page-sidebar__current-copy,
body.page-content.page-sidebar-collapsed .page-sidebar__link-copy {
  display: none;
}

body.page-content.page-sidebar-collapsed .page-sidebar__spotlight,
body.page-content.page-sidebar-collapsed .page-sidebar__current,
body.page-content.page-sidebar-collapsed .page-sidebar__link {
  width: 48px;
  min-height: 48px;
  justify-content: center;
  padding: 0;
}

body.page-content.page-sidebar-collapsed .page-sidebar__spotlight {
  grid-template-columns: 1fr;
}

body.page-content.page-sidebar-collapsed .page-sidebar__current {
  display: flex;
  align-items: center;
}

body.page-content.page-sidebar-collapsed .page-sidebar__group,
body.page-content.page-sidebar-collapsed .page-sidebar__links,
body.page-content.page-sidebar-collapsed .page-sidebar__nav {
  width: 100%;
  align-items: center;
}

body.page-content.page-sidebar-collapsed .page-sidebar__toggle {
  transform: rotate(180deg);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr);
  gap: 32px;
  align-items: start;
  padding: 10px 0 34px;
}

.page-hero-copy,
.hero-panel,
.info-card,
.link-card,
.callout-panel,
.map-frame-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px);
}

.page-hero-copy {
  padding: 48px 48px 42px;
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
  border-color: var(--panel-border);
  box-shadow: var(--shadow);
}

.page-hero-copy::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--ieee-light);
}

.page-hero-copy::after {
  display: none;
}

.page-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Calibri, 'Open Sans', sans-serif;
  font-size: 11px;
  color: var(--ieee-blue);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.page-kicker::before,
.section-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--ieee-light);
}

.page-title {
  margin-top: 16px;
  font-size: clamp(44px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: -2.1px;
  color: var(--ieee-dark);
  max-width: 13ch;
}

.page-title span {
  color: var(--ieee-blue);
}

.page-intro {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 21px;
  line-height: 1.82;
  color: rgba(10, 22, 40, 0.88);
  font-weight: 400;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button-primary {
  background: var(--ieee-blue);
  color: var(--white);
  border: 1px solid var(--ieee-blue);
  box-shadow: var(--button-primary-shadow);
}

.button-primary:hover {
  background: var(--ieee-dark);
  border-color: var(--ieee-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 48, 87, 0.14);
}

.button-secondary {
  background: var(--button-secondary-bg);
  color: var(--ieee-blue);
  border: 1px solid var(--button-secondary-border);
}

.button-secondary:hover {
  border-color: var(--button-secondary-hover-border);
  background: var(--button-secondary-hover-bg);
  transform: translateY(-2px);
}

.button-primary:focus-visible,
.button-secondary:focus-visible,
.topbar-link:focus-visible,
.link-list a:focus-visible,
.link-card:focus-visible,
.site-brand:focus-visible {
  outline: 2px solid var(--ieee-light);
  outline-offset: 3px;
}

.hero-panel {
  padding: 28px 26px;
  background: var(--hero-panel-bg);
  border-color: var(--hero-panel-border);
  color: var(--text);
  box-shadow: var(--hero-panel-shadow);
  position: sticky;
  top: 108px;
}

.hero-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ieee-dark);
  letter-spacing: -0.3px;
}

.hero-panel-list,
.card-list,
.check-list,
.link-list,
.mini-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.hero-panel-list li,
.check-list li,
.mini-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(10, 22, 40, 0.84);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--list-link-border);
  background: var(--list-link-bg);
  text-decoration: none;
  color: var(--ieee-blue);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.link-list a:hover {
  color: var(--ieee-dark);
  transform: translateY(-2px);
  border-color: var(--topbar-link-hover-border);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 34, 64, 0.09);
}

.bullet {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bullet-bg);
  color: var(--bullet-text);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--bullet-border);
}

.hero-panel .bullet {
  background: var(--bullet-bg);
  color: var(--bullet-text);
}

.quick-access-panel {
  margin-top: 8px;
  padding: 26px 28px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--hero-panel-shadow);
  backdrop-filter: blur(10px);
}

.quick-access-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.quick-access-copy {
  min-width: 0;
}

.quick-access-title {
  margin-top: 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--ieee-dark);
}

.quick-access-summary {
  margin-top: 10px;
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.68;
  color: rgba(10, 22, 40, 0.76);
}

.quick-access-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.quick-access-home {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ieee-blue);
  text-decoration: none;
}

.quick-access-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 98, 155, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ieee-blue);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quick-access-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 98, 155, 0.24);
  background: rgba(0, 98, 155, 0.05);
  box-shadow: var(--shadow-soft);
}

.quick-access-toggle:focus-visible {
  outline: 2px solid var(--ieee-light);
  outline-offset: 3px;
}

.quick-access-mobile-current {
  display: none;
}

.quick-access-mobile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.56);
}

.quick-access-mobile-page {
  font-size: 14px;
  font-weight: 700;
  color: var(--ieee-dark);
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.quick-link {
  --theme-rgb: 0, 98, 155;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 16px 15px;
  border-radius: 18px;
  border: 1px solid rgba(var(--theme-rgb), 0.22);
  border-top: 4px solid rgba(var(--theme-rgb), 0.88);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 34, 64, 0.09);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--theme-rgb), 0.32);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 34, 64, 0.13);
  outline: none;
}

.quick-link.current {
  border-color: rgba(var(--theme-rgb), 0.28);
  box-shadow: inset 0 0 0 1px rgba(var(--theme-rgb), 0.08);
}

.quick-link-label {
  font-size: 15px;
  font-weight: 700;
  color: rgb(var(--theme-rgb));
}

.quick-link-meta {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(10, 22, 40, 0.68);
}

.section-block {
  --section-rgb: 0, 98, 155;
  position: relative;
  display: grid;
  grid-template-columns: minmax(216px, 272px) minmax(0, 1fr);
  column-gap: 44px;
  row-gap: 0;
  align-items: start;
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid rgba(var(--section-rgb), 0.18);
  scroll-margin-top: 110px;
}

.section-block::before {
  display: none;
}

.section-head {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: 108px;
  max-width: 272px;
  padding-right: 0;
}

.section-block > :not(.section-head) {
  grid-column: 2;
}

.section-block--full-width {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 22px;
}

.section-block--full-width .section-head,
.section-block--full-width > :not(.section-head) {
  grid-column: 1 / -1;
}

.section-block--full-width .section-head {
  position: static;
  top: auto;
  max-width: none;
}

.section-block--full-width .academic-calendar {
  width: 100%;
}

.section-head + .card-grid,
.section-head + .photo-grid,
.section-head + .link-grid,
.section-head + .stats-grid,
.section-head + .split-grid,
.section-head + .glossary-grid,
.section-head + .map-frame-card {
  margin-top: 0;
}

.page-main > .section-block:nth-of-type(4n + 1) {
  --section-rgb: 36, 95, 184;
}

.page-main > .section-block:nth-of-type(4n + 2) {
  --section-rgb: 24, 126, 143;
}

.page-main > .section-block:nth-of-type(4n + 3) {
  --section-rgb: 93, 103, 214;
}

.page-main > .section-block:nth-of-type(4n + 4) {
  --section-rgb: 211, 154, 49;
}

.section-block .section-kicker {
  color: rgb(var(--section-rgb));
}

.section-block .section-kicker::before {
  background: rgba(var(--section-rgb), 0.95);
}

.section-block .info-card:not(.theme-card),
.section-block .link-card:not(.theme-card) {
  --theme-rgb: var(--section-rgb);
}

.section-block .glossary-item {
  border-color: rgba(var(--section-rgb), 0.12);
}

.section-block .glossary-item:hover {
  border-color: rgba(var(--section-rgb), 0.22);
}

.section-block .glossary-term {
  color: rgb(var(--section-rgb));
}

.section-title {
  margin-top: 16px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--ieee-dark);
}

.section-text {
  margin-top: 12px;
  font-size: 17.5px;
  line-height: 1.74;
  color: rgba(10, 22, 40, 0.7);
  font-weight: 400;
  max-width: 32ch;
}

.subsection-intro {
  margin-top: 0;
}

.section-stack {
  display: grid;
  gap: 22px;
}

.section-stack > .subsection-intro,
.section-stack > .card-grid {
  margin-top: 0;
}

.section-stack > .card-grid + .subsection-intro {
  margin-top: 8px;
}

.subsection-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.14;
  letter-spacing: -0.8px;
  color: var(--ieee-dark);
}

.subsection-text {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 15.75px;
  line-height: 1.74;
  color: rgba(10, 22, 40, 0.74);
}

.card-grid,
.link-grid,
.stats-grid,
.split-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

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

.card-grid.three,
.link-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-grid + .split-grid,
.split-grid + .split-grid,
.link-grid + .split-grid,
.stats-grid + .split-grid,
.card-grid + .card-grid {
  margin-top: 22px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.photo-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

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

.photo-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  overflow: hidden;
  min-height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(var(--section-rgb), 0.2);
  border-top: 4px solid rgba(var(--section-rgb), 0.88);
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(0, 48, 87, 0.11);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--section-rgb), 0.28);
  box-shadow: 0 24px 42px rgba(0, 48, 87, 0.12);
}

.photo-media {
  position: relative;
  aspect-ratio: 1.42;
  overflow: hidden;
  background: rgba(var(--section-rgb), 0.08);
}

.photo-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 0%, rgba(10, 22, 40, 0.18) 100%);
  pointer-events: none;
}

.photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-media img {
  transform: scale(1.035);
}

.photo-body {
  padding: 22px 22px 24px;
}

.photo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgb(var(--section-rgb));
}

.photo-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--section-rgb), 0.9);
}

.photo-title {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -1px;
  color: var(--ieee-dark);
}

.photo-text {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.74;
  color: rgba(10, 22, 40, 0.8);
}

.academic-calendar {
  --calendar-inicio-rgb: 36, 95, 184;
  --calendar-matricula-rgb: 24, 126, 143;
  --calendar-prazo-rgb: 93, 103, 214;
  --calendar-recesso-rgb: 110, 129, 149;
  --calendar-feriado-rgb: 211, 154, 49;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(var(--section-rgb), 0.22);
  border-top: 4px solid rgba(var(--section-rgb), 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(0, 34, 64, 0.12);
}

.academic-calendar__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(var(--section-rgb), 0.12);
}

.academic-calendar__intro-copy {
  max-width: 68ch;
}

.academic-calendar__toolbar {
  display: grid;
  gap: 0;
}

.academic-calendar__nav {
  display: grid;
  grid-template-columns: minmax(0, 152px) minmax(0, 1fr) minmax(0, 152px);
  align-items: center;
  gap: 16px;
}

.academic-calendar__nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(var(--section-rgb), 0.16);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ieee-dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.academic-calendar__nav-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(var(--section-rgb), 0.28);
  background: rgba(var(--section-rgb), 0.05);
  box-shadow: 0 14px 28px rgba(0, 34, 64, 0.08);
}

.academic-calendar__nav-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.academic-calendar__current {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(var(--section-rgb), 0.16);
  border-radius: 20px;
  background: rgba(var(--section-rgb), 0.06);
}

.academic-calendar__current-label {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ieee-dark);
}

.academic-calendar__current-meta {
  font-size: 14px;
  color: rgba(10, 22, 40, 0.72);
}

.academic-calendar__legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(var(--section-rgb), 0.12);
}

.academic-calendar__legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(var(--section-rgb), 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(10, 22, 40, 0.76);
  font-size: 12.5px;
  font-weight: 700;
}

.academic-calendar__legend-swatch,
.academic-calendar__day-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.academic-calendar__legend-swatch--inicio,
.academic-calendar__day-marker--inicio,
.academic-calendar__event-tag--inicio {
  background: rgba(var(--calendar-inicio-rgb), 0.18);
  color: rgb(var(--calendar-inicio-rgb));
}

.academic-calendar__legend-swatch--matricula,
.academic-calendar__day-marker--matricula,
.academic-calendar__event-tag--matricula {
  background: rgba(var(--calendar-matricula-rgb), 0.16);
  color: rgb(var(--calendar-matricula-rgb));
}

.academic-calendar__legend-swatch--prazo,
.academic-calendar__day-marker--prazo,
.academic-calendar__event-tag--prazo {
  background: rgba(var(--calendar-prazo-rgb), 0.16);
  color: rgb(var(--calendar-prazo-rgb));
}

.academic-calendar__legend-swatch--recesso,
.academic-calendar__day-marker--recesso,
.academic-calendar__event-tag--recesso {
  background: rgba(var(--calendar-recesso-rgb), 0.16);
  color: rgb(var(--calendar-recesso-rgb));
}

.academic-calendar__legend-swatch--feriado,
.academic-calendar__day-marker--feriado,
.academic-calendar__event-tag--feriado {
  background: rgba(var(--calendar-feriado-rgb), 0.18);
  color: rgb(var(--calendar-feriado-rgb));
}

.academic-calendar__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.academic-calendar__month-card,
.academic-calendar__agenda {
  padding: 20px;
  border: 1px solid rgba(var(--section-rgb), 0.16);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 34, 64, 0.08);
}

.academic-calendar__month-card {
  background: rgba(var(--section-rgb), 0.04);
}

.academic-calendar__weekdays,
.academic-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.academic-calendar__weekdays {
  margin-bottom: 10px;
}

.academic-calendar__weekday {
  display: inline-flex;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(var(--section-rgb), 0.08);
  color: rgba(10, 22, 40, 0.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academic-calendar__day {
  min-height: 122px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(var(--section-rgb), 0.14);
  border-radius: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.academic-calendar__day--placeholder {
  background: rgba(var(--section-rgb), 0.03);
  border-style: dashed;
  box-shadow: none;
}

.academic-calendar__day--marked {
  border-color: rgba(var(--section-rgb), 0.24);
  box-shadow: 0 18px 32px rgba(0, 34, 64, 0.08);
}

.academic-calendar__day--inicio {
  background: rgba(var(--calendar-inicio-rgb), 0.08);
}

.academic-calendar__day--matricula {
  background: rgba(var(--calendar-matricula-rgb), 0.07);
}

.academic-calendar__day--prazo {
  background: rgba(var(--calendar-prazo-rgb), 0.07);
}

.academic-calendar__day--recesso {
  background: linear-gradient(180deg, rgba(var(--calendar-recesso-rgb), 0.18) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(var(--calendar-recesso-rgb), 0.36);
  box-shadow: inset 0 0 0 1px rgba(var(--calendar-recesso-rgb), 0.16), 0 18px 32px rgba(0, 34, 64, 0.08);
}

.academic-calendar__day--feriado {
  background: linear-gradient(180deg, rgba(var(--calendar-feriado-rgb), 0.24) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(var(--calendar-feriado-rgb), 0.42);
  box-shadow: inset 0 0 0 1px rgba(var(--calendar-feriado-rgb), 0.18), 0 18px 34px rgba(0, 34, 64, 0.1);
}

.academic-calendar__day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.academic-calendar__day-number {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--ieee-dark);
}

.academic-calendar__day--recesso .academic-calendar__day-number {
  color: rgb(var(--calendar-recesso-rgb));
}

.academic-calendar__day--feriado .academic-calendar__day-number {
  color: rgb(var(--calendar-feriado-rgb));
}

.academic-calendar__day-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(var(--section-rgb), 0.12);
  color: rgb(var(--section-rgb));
  font-size: 11.5px;
  font-weight: 800;
}

.academic-calendar__day-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.academic-calendar__day-caption {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.34;
  color: rgba(10, 22, 40, 0.7);
}

.academic-calendar__day--recesso .academic-calendar__day-caption,
.academic-calendar__day--feriado .academic-calendar__day-caption {
  font-weight: 700;
}

.academic-calendar__agenda {
  display: grid;
  gap: 18px;
}

.academic-calendar__agenda-head .card-title {
  max-width: none;
}

.academic-calendar__events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.academic-calendar__event {
  display: grid;
  grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(var(--section-rgb), 0.14);
  border-radius: 18px;
  background: rgba(var(--section-rgb), 0.04);
}

.academic-calendar__event-date {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--section-rgb));
}

.academic-calendar__event-copy {
  display: grid;
  gap: 8px;
}

.academic-calendar__event-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academic-calendar__event-title {
  font-size: 15px;
  line-height: 1.58;
  color: rgba(10, 22, 40, 0.88);
}

.info-card,
.link-card {
  --theme-rgb: 0, 98, 155;
  --theme-top-stripe: rgba(var(--theme-rgb), 0.92);
  --theme-card-surface: #ffffff;
  --theme-card-surface-hover: #ffffff;
  --theme-card-surface-dark: rgba(14, 27, 42, 0.98);
  padding: 28px 26px 24px;
  position: relative;
  min-height: 100%;
}

.info-card {
  border: 1px solid rgba(var(--theme-rgb), 0.22);
  border-top: 4px solid rgba(var(--theme-rgb), 0.92);
  border-radius: 24px;
  background: var(--theme-card-surface);
  box-shadow: 0 24px 52px rgba(0, 34, 64, 0.13);
  backdrop-filter: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.info-card::before,
.stat-card::before {
  display: none;
}

.link-card::before {
  display: none;
}

.info-card:hover,
.link-card:hover,
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--theme-rgb, 36, 95, 184), 0.36);
  box-shadow: 0 30px 56px rgba(0, 34, 64, 0.17);
}

.card-eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ieee-dark);
}

.card-title {
  margin-top: 12px;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--ieee-dark);
}

.card-text {
  margin-top: 10px;
  font-size: 17.5px;
  line-height: 1.74;
  color: rgba(10, 22, 40, 0.88);
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: var(--theme-card-surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  border-color: rgba(var(--theme-rgb), 0.22);
  border-top: 4px solid rgba(var(--theme-rgb), 0.92);
  box-shadow: 0 24px 52px rgba(0, 34, 64, 0.13);
  backdrop-filter: none;
}

.link-card:hover {
  background: var(--theme-card-surface-hover);
}

.material-card {
  --theme-rgb: 0, 98, 155;
  --material-illustration: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--theme-rgb), 0.22);
  border-top: 4px solid rgba(var(--theme-rgb), 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(0, 34, 64, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.material-card::before {
  display: none;
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-rgb), 0.34);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 28px 54px rgba(0, 34, 64, 0.13);
}

.material-card-hero {
  position: relative;
  min-height: 146px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(var(--theme-rgb), 0.14);
  background: rgba(var(--theme-rgb), 0.1);
  overflow: hidden;
}

.material-card-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--material-illustration);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.94;
}

.material-card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
}

.material-card-hero > * {
  position: relative;
  z-index: 1;
}

.material-card-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.72);
}

.material-card .card-eyebrow {
  margin-top: 10px;
  color: rgb(var(--theme-rgb));
}

.material-card .card-title {
  margin-top: 8px;
  max-width: 14ch;
}

.material-card-body {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 18px 22px 22px;
  background: #ffffff;
}

.material-card-body .card-text {
  margin-top: 0;
}

.material-card-body .link-label {
  margin-top: auto;
  padding-top: 18px;
}

.material-card--algoritmos {
  --theme-rgb: 0, 98, 155;
  --material-illustration: url('../../images/materials/algoritmos.svg');
}

.material-card--calculo {
  --theme-rgb: 0, 133, 202;
  --material-illustration: url('../../images/materials/calculo.svg');
}

.material-card--ga {
  --theme-rgb: 72, 92, 174;
  --material-illustration: url('../../images/materials/geometria-analitica.svg');
}

.material-card--intro-ee {
  --theme-rgb: 0, 64, 112;
  --material-illustration: url('../../images/materials/introducao-ee.svg');
}

.material-card--lcf {
  --theme-rgb: 53, 116, 184;
  --material-illustration: url('../../images/materials/lab-ciencias-fisicas.svg');
}

.material-card--quimica {
  --theme-rgb: 42, 142, 116;
  --material-illustration: url('../../images/materials/quimica-fundamental.svg');
}

.material-card--lab-quimica {
  --theme-rgb: 23, 145, 162;
  --material-illustration: url('../../images/materials/lab-quimica.svg');
}

.info-card.theme-card,
.link-card.theme-card {
  padding: 24px 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--theme-rgb), 0.22);
  border-top: 4px solid rgba(var(--theme-rgb), 0.94);
  border-radius: 22px;
  background: var(--theme-card-surface);
  box-shadow: 0 20px 42px rgba(0, 34, 64, 0.11);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.info-card.theme-card::before,
.link-card.theme-card::before {
  display: none;
}

.info-card.theme-card:hover,
.link-card.theme-card:hover {
  border-color: rgba(var(--theme-rgb), 0.34);
  background: var(--theme-card-surface-hover);
  box-shadow: 0 22px 42px rgba(0, 34, 64, 0.11);
}

.theme-card .card-eyebrow,
.theme-card .link-label {
  color: rgb(var(--theme-rgb));
}

.theme-card .chip {
  background: rgba(var(--theme-rgb), 0.08);
  border-color: rgba(var(--theme-rgb), 0.18);
  color: rgb(var(--theme-rgb));
}

.button-secondary.theme-button {
  color: rgb(var(--theme-rgb));
  border-color: rgba(var(--theme-rgb), 0.2);
  background: rgba(var(--theme-rgb), 0.08);
}

.button-secondary.theme-button:hover {
  color: rgb(var(--theme-rgb));
  border-color: rgba(var(--theme-rgb), 0.3);
  background: rgba(var(--theme-rgb), 0.14);
}

.info-card .button-row,
.link-card .button-row {
  margin-top: 18px;
}

.info-card .chip-row {
  margin-top: 18px;
}

.info-card .link-list {
  margin-top: 18px;
}

.link-label {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ieee-blue);
}

.theme-branch {
  --theme-rgb: 0, 98, 155;
}

.theme-rascas {
  --theme-rgb: 134, 38, 51;
  --theme-top-stripe: linear-gradient(90deg, rgba(134, 38, 51, 0.96) 0%, rgba(95, 33, 103, 0.9) 46%, rgba(136, 192, 64, 0.86) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(134, 38, 51, 0.11) 0%, rgba(95, 33, 103, 0.09) 34%, rgba(136, 192, 64, 0.08) 66%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(134, 38, 51, 0.15) 0%, rgba(95, 33, 103, 0.12) 34%, rgba(136, 192, 64, 0.11) 66%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(134, 38, 51, 0.2) 0%, rgba(95, 33, 103, 0.18) 36%, rgba(136, 192, 64, 0.12) 70%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-apsmttscomsoc {
  --theme-rgb: 15, 45, 82;
  --theme-top-stripe: linear-gradient(90deg, rgba(0, 115, 120, 0.96) 0%, rgba(3, 96, 155, 0.92) 50%, rgba(0, 87, 125, 0.88) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(0, 115, 120, 0.1) 0%, rgba(3, 96, 155, 0.09) 42%, rgba(0, 87, 125, 0.08) 72%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(0, 115, 120, 0.14) 0%, rgba(3, 96, 155, 0.12) 42%, rgba(0, 87, 125, 0.1) 72%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(0, 115, 120, 0.18) 0%, rgba(3, 96, 155, 0.18) 44%, rgba(0, 87, 125, 0.16) 72%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-pes {
  --theme-rgb: 0, 98, 155;
  --theme-top-stripe: linear-gradient(90deg, rgba(0, 98, 155, 0.96) 0%, rgba(0, 75, 135, 0.88) 48%, rgba(120, 190, 32, 0.82) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(0, 98, 155, 0.11) 0%, rgba(0, 75, 135, 0.08) 36%, rgba(120, 190, 32, 0.08) 70%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(0, 98, 155, 0.15) 0%, rgba(0, 75, 135, 0.11) 36%, rgba(120, 190, 32, 0.11) 70%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(0, 98, 155, 0.2) 0%, rgba(0, 75, 135, 0.18) 36%, rgba(120, 190, 32, 0.13) 70%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-ias {
  --theme-rgb: 13, 132, 61;
  --theme-top-stripe: linear-gradient(90deg, rgba(13, 132, 61, 0.94) 0%, rgba(46, 111, 119, 0.9) 56%, rgba(2, 40, 85, 0.86) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(13, 132, 61, 0.11) 0%, rgba(46, 111, 119, 0.09) 42%, rgba(2, 40, 85, 0.08) 76%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(13, 132, 61, 0.15) 0%, rgba(46, 111, 119, 0.12) 42%, rgba(2, 40, 85, 0.11) 76%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(13, 132, 61, 0.2) 0%, rgba(46, 111, 119, 0.18) 42%, rgba(2, 40, 85, 0.16) 76%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-aess {
  --theme-rgb: 0, 102, 164;
  --theme-top-stripe: linear-gradient(90deg, rgba(0, 102, 164, 0.96) 0%, rgba(0, 102, 164, 0.78) 58%, rgba(130, 132, 135, 0.6) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(0, 102, 164, 0.11) 0%, rgba(130, 132, 135, 0.07) 62%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(0, 102, 164, 0.15) 0%, rgba(130, 132, 135, 0.09) 62%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(0, 102, 164, 0.2) 0%, rgba(130, 132, 135, 0.12) 62%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-vts {
  --theme-rgb: 0, 96, 156;
}

.theme-edsoc {
  --theme-rgb: 230, 118, 36;
  --theme-top-stripe: linear-gradient(90deg, rgba(230, 118, 36, 0.96) 0%, rgba(157, 82, 28, 0.9) 56%, rgba(23, 43, 83, 0.8) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(230, 118, 36, 0.11) 0%, rgba(157, 82, 28, 0.09) 40%, rgba(23, 43, 83, 0.07) 74%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(230, 118, 36, 0.15) 0%, rgba(157, 82, 28, 0.12) 40%, rgba(23, 43, 83, 0.1) 74%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(230, 118, 36, 0.2) 0%, rgba(157, 82, 28, 0.16) 40%, rgba(23, 43, 83, 0.15) 74%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-sight {
  --theme-rgb: 15, 45, 82;
  --theme-top-stripe: linear-gradient(90deg, rgba(0, 115, 174, 0.94) 0%, rgba(237, 118, 36, 0.88) 58%, rgba(193, 32, 50, 0.84) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(15, 45, 82, 0.11) 0%, rgba(0, 115, 174, 0.08) 34%, rgba(237, 118, 36, 0.08) 68%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(15, 45, 82, 0.15) 0%, rgba(0, 115, 174, 0.11) 34%, rgba(237, 118, 36, 0.11) 68%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(15, 45, 82, 0.2) 0%, rgba(0, 115, 174, 0.16) 34%, rgba(237, 118, 36, 0.14) 68%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-wie {
  --theme-rgb: 117, 47, 139;
  --theme-top-stripe: linear-gradient(90deg, rgba(117, 47, 139, 0.96) 0%, rgba(117, 47, 139, 0.72) 58%, rgba(227, 210, 229, 0.62) 100%);
  --theme-card-surface: linear-gradient(180deg, rgba(117, 47, 139, 0.11) 0%, rgba(227, 210, 229, 0.08) 64%, rgba(255, 255, 255, 0.95) 100%);
  --theme-card-surface-hover: linear-gradient(180deg, rgba(117, 47, 139, 0.15) 0%, rgba(227, 210, 229, 0.11) 64%, rgba(255, 255, 255, 0.99) 100%);
  --theme-card-surface-dark: linear-gradient(180deg, rgba(117, 47, 139, 0.2) 0%, rgba(227, 210, 229, 0.12) 64%, rgba(12, 24, 37, 0.96) 100%);
}

.theme-supernova {
  --theme-rgb: 132, 92, 214;
}

.theme-rampage {
  --theme-rgb: 191, 132, 27;
}

.theme-microraptor {
  --theme-rgb: 44, 117, 194;
}

.theme-escuderia {
  --theme-rgb: 184, 46, 54;
}

.theme-porte {
  --theme-rgb: 0, 121, 129;
}

.theme-rinobot {
  --theme-rgb: 78, 93, 188;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 98, 155, 0.06);
  border: 1px solid rgba(0, 98, 155, 0.1);
  color: var(--ieee-blue);
  font-size: 10px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
}

.glossary-item {
  padding: 20px 22px;
  border: 1px solid rgba(0, 98, 155, 0.2);
  border-top: 4px solid rgba(0, 98, 155, 0.88);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 34, 64, 0.1);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.glossary-item:hover {
  border-color: rgba(0, 98, 155, 0.28);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 18px 34px rgba(0, 34, 64, 0.09);
}

.glossary-term {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ieee-blue);
}

.glossary-title {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.5px;
  color: var(--ieee-dark);
}

.glossary-desc {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.76;
  color: rgba(10, 22, 40, 0.78);
}

.stat-card {
  padding: 24px;
  border: 1px solid rgba(0, 98, 155, 0.22);
  border-top: 4px solid rgba(var(--section-rgb, 0, 98, 155), 0.9);
  border-radius: 22px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 34, 64, 0.13);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:nth-child(2) {
  background: #ffffff;
}

.stat-card:nth-child(3) {
  background: #ffffff;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--ieee-dark);
  letter-spacing: -1.2px;
}

.stat-label {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(10, 22, 40, 0.76);
}

.callout-panel {
  margin-top: 56px;
  padding: 34px;
  background: var(--callout-bg);
  color: var(--white);
  border-color: var(--callout-border);
  box-shadow: var(--callout-shadow);
}

.callout-panel .section-kicker,
.callout-panel .section-title,
.callout-panel .section-text {
  color: var(--white);
}

.callout-panel .section-kicker::before {
  background: rgba(255, 255, 255, 0.42);
}

.callout-panel .section-text {
  opacity: 0.84;
}

.callout-panel .button-primary {
  background: var(--white);
  color: var(--ieee-blue);
  border-color: var(--white);
}

.callout-panel .button-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ieee-dark);
  border-color: rgba(255, 255, 255, 0.92);
}

.callout-panel .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.callout-panel .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.48);
}

.map-frame-card {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
  background: #ffffff;
  border-color: rgba(0, 98, 155, 0.22);
  border-top: 4px solid rgba(0, 98, 155, 0.9);
  box-shadow: 0 24px 50px rgba(0, 34, 64, 0.13);
}

.map-frame {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.page-footer {
  font-family: Calibri, 'Open Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.page-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.page-footer-links a:hover {
  color: var(--ieee-blue);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 98, 155, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ieee-blue);
}

@media (max-width: 1180px) {
  body.page-content.has-page-sidebar .page-main {
    padding-left: 36px;
  }

  .page-sidebar {
    top: 84px;
    left: 12px;
    bottom: 12px;
    width: min(340px, calc(100vw - 24px));
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.24s ease;
    z-index: 140;
  }

  .page-sidebar__panel {
    height: 100%;
    max-height: none;
  }

  .page-sidebar__mobile-trigger {
    position: fixed;
    left: 16px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 145;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 98, 155, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ieee-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 18px 38px rgba(0, 48, 87, 0.16);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  .page-sidebar__backdrop {
    position: fixed;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 26, 47, 0.36);
    transition: opacity 0.24s ease;
    z-index: 130;
  }

  body.page-content.page-sidebar-open {
    overflow: hidden;
  }

  body.page-content.page-sidebar-open .page-sidebar {
    transform: translateX(0);
  }

  body.page-content.page-sidebar-open .page-sidebar__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .photo-grid.three,
  .card-grid.three,
  .link-grid.three,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid.three > :last-child:nth-child(odd),
  .card-grid.three > :last-child:nth-child(odd),
  .link-grid.three > :last-child:nth-child(odd),
  .stats-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-topbar {
    padding: 14px 18px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .topbar-nav {
    justify-content: flex-end;
  }

  .site-brand-meta {
    display: none;
  }

  .page-main {
    padding: 28px 18px 64px;
  }

  .page-hero,
  .section-block,
  .photo-grid.two,
  .photo-grid.three,
  .card-grid.two,
  .card-grid.three,
  .link-grid.three,
  .glossary-grid,
  .stats-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-copy,
  .hero-panel,
  .info-card,
  .link-card,
  .callout-panel,
  .map-frame-card,
  .stat-card {
    border-radius: 22px;
  }

  .page-hero-copy {
    padding: 36px 26px 30px;
  }

  .hero-panel,
  .callout-panel {
    padding: 26px 22px;
  }

  .section-block {
    column-gap: 0;
    margin-top: 42px;
    padding-top: 28px;
  }

  .section-head,
  .section-block > :not(.section-head) {
    grid-column: auto;
    position: static;
    max-width: none;
    padding-right: 0;
  }

  .section-title {
    font-size: clamp(25px, 7vw, 34px);
  }

  .subsection-title,
  .card-title,
  .photo-title {
    font-size: clamp(24px, 4.4vw, 28px);
  }

  .page-title {
    max-width: none;
    letter-spacing: -1.6px;
  }

  .section-text {
    max-width: none;
  }

  .map-frame {
    height: 360px;
  }

  .page-footer-links {
    gap: 12px;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 24px;
  }

  .quick-access-panel {
    margin-top: 2px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .quick-access-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .quick-access-title {
    display: none;
  }

  .quick-access-summary {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .quick-access-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .quick-access-home {
    font-size: 12px;
  }

  .quick-access-grid {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .quick-access-grid::-webkit-scrollbar {
    display: none;
  }

  .quick-access-panel.is-compact .quick-access-grid[hidden] {
    display: none;
  }

  .quick-access-toggle {
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .quick-access-mobile-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 98, 155, 0.12);
    background: rgba(0, 98, 155, 0.05);
  }

  .quick-link {
    flex: 0 0 min(78vw, 230px);
    min-height: 0;
    padding: 14px 14px 13px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .quick-link-label {
    font-size: 14px;
  }

  .quick-link-meta {
    font-size: 12px;
    line-height: 1.45;
  }

  .site-topbar {
    position: static;
    padding: 10px 12px 12px;
    gap: 10px;
    row-gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-brand-badge {
    width: 28px;
    height: 34px;
  }

  .site-brand-text {
    font-size: 17px;
  }

  .site-brand,
  .topbar-nav {
    grid-column: auto;
  }

  .site-brand {
    grid-row: 1;
  }

  .site-topbar__search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .topbar-nav {
    grid-row: 1;
    width: auto;
    justify-self: end;
    align-self: start;
    gap: 0;
  }

  .topbar-link {
    display: none;
  }

  .page-main {
    padding: 22px 14px 56px;
  }

  .page-hero {
    gap: 18px;
  }

  .page-hero-copy {
    padding: 28px 18px 24px;
  }

  .hero-panel,
  .callout-panel {
    padding: 22px 18px;
  }

  .page-title {
    font-size: clamp(30px, 10vw, 40px);
    letter-spacing: -1.2px;
  }

  .page-intro {
    font-size: 16.5px;
    line-height: 1.75;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-block {
    margin-top: 34px;
    padding-top: 24px;
  }

  .section-title {
    font-size: clamp(24px, 7.8vw, 30px);
    letter-spacing: -1px;
  }

  .subsection-title,
  .card-title,
  .photo-title {
    font-size: 22px;
    letter-spacing: -0.7px;
  }

  .section-text,
  .hero-panel-list li,
  .mini-list li,
  .check-list li,
  .card-text,
  .glossary-desc,
  .stat-label {
    font-size: 15px;
    line-height: 1.74;
  }

  .link-list a {
    padding: 14px 15px;
    font-size: 14px;
  }

  .info-card.theme-card,
  .link-card.theme-card,
  .photo-card,
  .stat-card,
  .map-frame-card,
  .callout-panel {
    border-radius: 18px;
  }

  .chip-row {
    gap: 8px;
    margin-top: 18px;
  }

  .chip {
    font-size: 9.5px;
    padding: 6px 9px;
  }

  .map-frame {
    height: 300px;
  }

  .page-footer {
    margin-top: 56px;
  }
}

.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(0, 98, 155, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ieee-dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 48, 87, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 98, 155, 0.28);
  box-shadow: 0 22px 46px rgba(0, 48, 87, 0.18);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ieee-light);
  outline-offset: 3px;
}

.theme-toggle__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd56b 0%, #f4a617 100%);
  box-shadow: inset -3px -3px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.theme-toggle[data-theme-current='dark'] .theme-toggle__icon {
  background: linear-gradient(135deg, #c1dbff 0%, #6aaeff 100%);
  box-shadow: inset -4px -4px 0 rgba(4, 10, 18, 0.28);
}

@media (max-width: 1180px) {
  .academic-calendar__legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .academic-calendar__agenda-head .card-title {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .academic-calendar__intro,
  .academic-calendar__nav {
    grid-template-columns: 1fr;
    display: grid;
  }

  .academic-calendar__nav-button {
    width: 100%;
  }

  .academic-calendar__current {
    order: -1;
  }
}

@media (max-width: 720px) {
  #calendario-academico {
    display: none;
  }

  .academic-calendar {
    padding: 22px 18px;
  }

  .academic-calendar__intro {
    gap: 14px;
  }

  .academic-calendar__legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
  }

  .academic-calendar__legend-item {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .academic-calendar__month-card,
  .academic-calendar__agenda {
    padding: 16px;
  }

  .academic-calendar__weekdays,
  .academic-calendar__days {
    gap: 6px;
  }

  .academic-calendar__weekday {
    padding: 8px 2px;
    font-size: 10px;
  }

  .academic-calendar__day {
    min-height: 96px;
    padding: 11px 9px 9px;
    gap: 8px;
  }

  .academic-calendar__day-number {
    font-size: 17px;
  }

  .academic-calendar__day-caption {
    min-height: 0;
    font-size: 10.5px;
  }

  .academic-calendar__events {
    grid-template-columns: 1fr;
  }

  .academic-calendar__event {
    grid-template-columns: 1fr;
  }
}

html[data-theme='dark'] {
  --off-white: #0b1521;
  --text: #e8f3ff;
  --text-muted: #9db0c6;
  --border: rgba(97, 160, 206, 0.18);
  --border-strong: rgba(122, 191, 244, 0.3);
  --surface: rgba(10, 21, 34, 0.96);
  --surface-strong: #102032;
  --surface-soft: #13263A;
  --surface-tint: #17314B;
  --paper: #0F1D2D;
  --shadow: 0 28px 58px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 18px 34px rgba(0, 0, 0, 0.26);
  --shadow-card: 0 22px 42px rgba(0, 0, 0, 0.24);
  --grid-color: rgba(97, 160, 206, 0.07);
}

html[data-theme='dark'] body.page-content {
  background:
    radial-gradient(circle at top left, rgba(0, 133, 202, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 98, 155, 0.11), transparent 22%),
    linear-gradient(180deg, #07101a 0%, #0C1724 100%);
}

html[data-theme='dark'] .site-topbar {
  background: rgba(6, 13, 22, 0.84);
  border-bottom-color: rgba(97, 160, 206, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme='dark'] .site-brand-text,
html[data-theme='dark'] .page-title,
html[data-theme='dark'] .section-title,
html[data-theme='dark'] .quick-access-title,
html[data-theme='dark'] .hero-panel-title,
html[data-theme='dark'] .card-title,
html[data-theme='dark'] .glossary-term,
html[data-theme='dark'] .glossary-title,
html[data-theme='dark'] .stat-value {
  color: #edf6ff;
}

html[data-theme='dark'] .site-brand-meta {
  color: #9db0c6;
}

html[data-theme='dark'] .site-brand-mark--light {
  display: none;
}

html[data-theme='dark'] .site-brand-mark--dark {
  display: block;
}

html[data-theme='dark'] .page-sidebar__panel {
  background: rgba(10, 20, 32, 0.9);
  border-color: rgba(97, 160, 206, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .page-sidebar__title,
html[data-theme='dark'] .page-sidebar__spotlight-title,
html[data-theme='dark'] .page-sidebar__current-title,
html[data-theme='dark'] .page-sidebar__link-title {
  color: #edf6ff;
}

html[data-theme='dark'] .page-sidebar__spotlight-desc,
html[data-theme='dark'] .page-sidebar__desc,
html[data-theme='dark'] .page-sidebar__current-meta,
html[data-theme='dark'] .page-sidebar__link-meta {
  color: #9db0c6;
}

html[data-theme='dark'] .page-sidebar__eyebrow,
html[data-theme='dark'] .page-sidebar__group-label,
html[data-theme='dark'] .page-sidebar__spotlight-kicker,
html[data-theme='dark'] .page-sidebar__spotlight-cta,
html[data-theme='dark'] .page-sidebar__current-badge,
html[data-theme='dark'] .page-sidebar__icon,
html[data-theme='dark'] .page-sidebar__mobile-badge {
  color: #8fd4ff;
}

html[data-theme='dark'] .page-sidebar__toggle,
html[data-theme='dark'] .page-sidebar__mobile-trigger {
  background: rgba(14, 27, 40, 0.92);
  border-color: rgba(97, 160, 206, 0.2);
  color: #edf6ff;
}

html[data-theme='dark'] .page-sidebar__toggle-bar {
  background: #edf6ff;
}

html[data-theme='dark'] .page-sidebar__spotlight,
html[data-theme='dark'] .page-sidebar__current,
html[data-theme='dark'] .page-sidebar__link {
  background: rgba(12, 24, 37, 0.72);
  border-color: rgba(97, 160, 206, 0.14);
}

html[data-theme='dark'] .page-sidebar__spotlight:hover,
html[data-theme='dark'] .page-sidebar__link:hover,
html[data-theme='dark'] .page-sidebar__link.current {
  background: rgba(15, 30, 46, 0.96);
  border-color: rgba(122, 191, 244, 0.24);
}

html[data-theme='dark'] .page-sidebar__spotlight-icon,
html[data-theme='dark'] .page-sidebar__current-badge,
html[data-theme='dark'] .page-sidebar__icon,
html[data-theme='dark'] .page-sidebar__mobile-badge {
  background: rgba(0, 133, 202, 0.16);
  border-color: rgba(122, 191, 244, 0.2);
}

html[data-theme='dark'] .page-sidebar__backdrop {
  background: rgba(2, 9, 16, 0.58);
}

html[data-theme='dark'] .page-sidebar-tooltip {
  background: rgba(10, 20, 32, 0.96);
  border-color: rgba(97, 160, 206, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .page-sidebar-tooltip__title {
  color: #edf6ff;
}

html[data-theme='dark'] .page-sidebar-tooltip__meta {
  color: #9db0c6;
}

html[data-theme='dark'] .topbar-link {
  color: rgba(232, 243, 255, 0.7);
}

html[data-theme='dark'] .topbar-link:hover,
html[data-theme='dark'] .topbar-link[aria-current='page'] {
  color: #edf6ff;
  background: rgba(0, 133, 202, 0.12);
  border-color: rgba(97, 160, 206, 0.16);
}

html[data-theme='dark'] .page-hero-copy {
  background:
    radial-gradient(circle at top right, rgba(0, 133, 202, 0.18), transparent 30%),
    linear-gradient(180deg, #112033 0%, #0C1724 100%);
  border-color: rgba(122, 191, 244, 0.24);
}

html[data-theme='dark'] .page-hero-copy::before {
  background: linear-gradient(90deg, var(--ieee-light), rgba(97, 160, 206, 0.18));
}

html[data-theme='dark'] .page-hero-copy::after {
  background: radial-gradient(circle, rgba(0, 133, 202, 0.18) 0%, transparent 74%);
}

html[data-theme='dark'] .page-intro,
html[data-theme='dark'] .section-text,
html[data-theme='dark'] .card-text,
html[data-theme='dark'] .quick-link-meta,
html[data-theme='dark'] .quick-access-summary,
html[data-theme='dark'] .glossary-desc,
html[data-theme='dark'] .stat-label,
html[data-theme='dark'] .hero-panel-list li,
html[data-theme='dark'] .check-list li,
html[data-theme='dark'] .mini-list li,
html[data-theme='dark'] .page-footer,
html[data-theme='dark'] .page-footer-links a,
html[data-theme='dark'] .card-list li {
  color: #BDD0E3;
}

html[data-theme='dark'] .button-secondary {
  background: rgba(14, 27, 40, 0.92);
  color: #8fd4ff;
  border-color: rgba(97, 160, 206, 0.22);
}

html[data-theme='dark'] .button-secondary:hover {
  border-color: rgba(122, 191, 244, 0.34);
  background: rgba(18, 38, 58, 0.94);
}

html[data-theme='dark'] .subsection-title {
  color: #edf6ff;
}

html[data-theme='dark'] .subsection-text {
  color: #a9bbcf;
}

html[data-theme='dark'] .hero-panel {
  background: rgba(13, 26, 41, 0.98);
  border-color: rgba(122, 191, 244, 0.2);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .academic-calendar,
html[data-theme='dark'] .academic-calendar__agenda,
html[data-theme='dark'] .academic-calendar__month-card {
  background: rgba(11, 22, 35, 0.98);
  border-color: rgba(122, 191, 244, 0.18);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .academic-calendar__intro {
  border-bottom-color: rgba(122, 191, 244, 0.14);
}

html[data-theme='dark'] .academic-calendar__legend {
  border-top-color: rgba(122, 191, 244, 0.14);
}

html[data-theme='dark'] .academic-calendar__current,
html[data-theme='dark'] .academic-calendar__weekday,
html[data-theme='dark'] .academic-calendar__event,
html[data-theme='dark'] .academic-calendar__day,
html[data-theme='dark'] .academic-calendar__legend-item,
html[data-theme='dark'] .academic-calendar__nav-button {
  background: rgba(14, 27, 42, 0.94);
  border-color: rgba(122, 191, 244, 0.16);
}

html[data-theme='dark'] .academic-calendar__current-label,
html[data-theme='dark'] .academic-calendar__day-number,
html[data-theme='dark'] .academic-calendar__event-title {
  color: #edf6ff;
}

html[data-theme='dark'] .academic-calendar__current-meta,
html[data-theme='dark'] .academic-calendar__day-caption,
html[data-theme='dark'] .academic-calendar__legend-item {
  color: #bdd0e3;
}

html[data-theme='dark'] .academic-calendar__nav-button {
  color: #edf6ff;
}

html[data-theme='dark'] .academic-calendar__nav-button:hover:not(:disabled) {
  background: rgba(18, 38, 58, 0.98);
  border-color: rgba(143, 212, 255, 0.28);
}

html[data-theme='dark'] .academic-calendar__day--placeholder {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme='dark'] .academic-calendar__day--recesso {
  background: linear-gradient(180deg, rgba(var(--calendar-recesso-rgb), 0.26) 0%, rgba(14, 27, 42, 0.96) 100%);
  border-color: rgba(var(--calendar-recesso-rgb), 0.34);
  box-shadow: inset 0 0 0 1px rgba(var(--calendar-recesso-rgb), 0.18), 0 20px 36px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .academic-calendar__day--feriado {
  background: linear-gradient(180deg, rgba(var(--calendar-feriado-rgb), 0.34) 0%, rgba(14, 27, 42, 0.96) 100%);
  border-color: rgba(var(--calendar-feriado-rgb), 0.4);
  box-shadow: inset 0 0 0 1px rgba(var(--calendar-feriado-rgb), 0.2), 0 20px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .academic-calendar__day-total {
  background: rgba(143, 212, 255, 0.14);
  color: #8fd4ff;
}

html[data-theme='dark'] .info-card {
  background: rgba(11, 22, 35, 0.98);
  border-color: rgba(122, 191, 244, 0.2);
  border-top-color: rgba(var(--theme-rgb), 0.9);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .link-list a,
html[data-theme='dark'] .quick-access-panel,
html[data-theme='dark'] .info-card,
html[data-theme='dark'] .link-card,
html[data-theme='dark'] .photo-card,
html[data-theme='dark'] .glossary-item,
html[data-theme='dark'] .stat-card {
  background: rgba(11, 22, 35, 0.98);
  border-color: rgba(122, 191, 244, 0.18);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.26);
}

html[data-theme='dark'] .link-list a:hover,
html[data-theme='dark'] .quick-link:hover,
html[data-theme='dark'] .quick-link:focus-visible,
html[data-theme='dark'] .link-card:hover,
html[data-theme='dark'] .photo-card:hover,
html[data-theme='dark'] .glossary-item:hover,
html[data-theme='dark'] .stat-card:hover {
  background: rgba(16, 31, 47, 1);
  border-color: rgba(143, 212, 255, 0.28);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .photo-media {
  background: rgba(var(--section-rgb), 0.14);
}

html[data-theme='dark'] .photo-media::after {
  height: 46%;
  background: linear-gradient(180deg, rgba(7, 15, 25, 0) 0%, rgba(7, 15, 25, 0.42) 100%);
}

html[data-theme='dark'] .photo-media img {
  filter: brightness(0.86) saturate(0.95);
}

html[data-theme='dark'] .photo-title {
  color: #edf6ff;
}

html[data-theme='dark'] .photo-text {
  color: #9db0c6;
}

html[data-theme='dark'] .material-card {
  background: rgba(15, 30, 46, 0.96);
  border-color: rgba(var(--theme-rgb), 0.28);
}

html[data-theme='dark'] .material-card:hover {
  background: rgba(20, 39, 58, 1);
  border-color: rgba(var(--theme-rgb), 0.38);
}

html[data-theme='dark'] .material-card-hero {
  border-bottom-color: rgba(var(--theme-rgb), 0.18);
  background: rgba(var(--theme-rgb), 0.2);
}

html[data-theme='dark'] .material-card-hero::before {
  opacity: 0.42;
}

html[data-theme='dark'] .material-card-hero::after {
  background: linear-gradient(180deg, rgba(7, 15, 25, 0.08) 0%, rgba(7, 15, 25, 0.26) 44%, rgba(12, 24, 37, 0.84) 100%);
}

html[data-theme='dark'] .material-card-meta {
  color: rgba(234, 244, 255, 0.76);
}

html[data-theme='dark'] .material-card .card-title {
  color: #edf6ff;
}

html[data-theme='dark'] .material-card-body {
  background: transparent;
}

html[data-theme='dark'] .bullet,
html[data-theme='dark'] .hero-panel .bullet,
html[data-theme='dark'] .theme-card .chip,
html[data-theme='dark'] .button-secondary.theme-button {
  background: rgba(var(--theme-rgb), 0.12);
  border-color: rgba(var(--theme-rgb), 0.22);
}

html[data-theme='dark'] .quick-link {
  background: rgba(14, 27, 42, 0.98);
}

html[data-theme='dark'] .quick-link.current {
  box-shadow: inset 0 0 0 1px rgba(var(--theme-rgb), 0.18);
}

html[data-theme='dark'] .quick-access-home,
html[data-theme='dark'] .quick-access-toggle,
html[data-theme='dark'] .quick-access-mobile-label,
html[data-theme='dark'] .theme-card .card-eyebrow,
html[data-theme='dark'] .theme-card .link-label,
html[data-theme='dark'] .link-label,
html[data-theme='dark'] .link-list a,
html[data-theme='dark'] .card-eyebrow {
  color: #8fd4ff;
}

html[data-theme='dark'] .quick-access-toggle {
  background: rgba(14, 27, 40, 0.92);
  border-color: rgba(97, 160, 206, 0.22);
}

html[data-theme='dark'] .quick-access-toggle:hover {
  background: rgba(18, 38, 58, 0.94);
  border-color: rgba(122, 191, 244, 0.34);
}

html[data-theme='dark'] .quick-access-mobile-current {
  background: rgba(0, 133, 202, 0.12);
  border-color: rgba(97, 160, 206, 0.18);
}

html[data-theme='dark'] .quick-access-mobile-page {
  color: #edf6ff;
}

html[data-theme='dark'] .info-card.theme-card,
html[data-theme='dark'] .link-card.theme-card {
  background: var(--theme-card-surface-dark);
  border-top-color: rgba(var(--theme-rgb), 0.9);
}

html[data-theme='dark'] .section-block::before,
html[data-theme='dark'] .info-card::before,
html[data-theme='dark'] .link-card::before,
html[data-theme='dark'] .stat-card::before {
  filter: saturate(1.1);
}

html[data-theme='dark'] .stat-card:nth-child(2) {
  background: rgba(11, 22, 35, 0.98);
}

html[data-theme='dark'] .stat-card:nth-child(3) {
  background: rgba(11, 22, 35, 0.98);
}

html[data-theme='dark'] .callout-panel {
  background: #0d2748;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
}

html[data-theme='dark'] .page-footer {
  border-top-color: rgba(97, 160, 206, 0.14);
}

html[data-theme='dark'] .page-footer-links a:hover {
  color: #d9ecff;
}

html[data-theme='dark'] .theme-toggle {
  background: rgba(7, 15, 25, 0.9);
  color: #ecf5ff;
  border-color: rgba(95, 149, 190, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

@media (max-width: 720px) {
  .theme-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 0 12px 0 10px;
    font-size: 12px;
  }

  .theme-toggle__icon {
    width: 18px;
    height: 18px;
  }
}

.topbar-nav .theme-toggle {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(0, 98, 155, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ieee-dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(0, 34, 64, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.topbar-nav .theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 98, 155, 0.24);
  background: rgba(0, 98, 155, 0.05);
  box-shadow: var(--shadow-soft);
}

.topbar-nav .theme-toggle:focus-visible {
  outline: 2px solid var(--ieee-light);
  outline-offset: 3px;
}

.topbar-nav .theme-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd56b 0%, #f4a617 100%);
  box-shadow: inset -3px -3px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.topbar-nav .theme-toggle[data-theme-current='dark'] .theme-toggle__icon {
  background: linear-gradient(135deg, #c1dbff 0%, #6aaeff 100%);
  box-shadow: inset -4px -4px 0 rgba(4, 10, 18, 0.28);
}

html[data-theme='dark'] .topbar-nav .theme-toggle {
  background: rgba(14, 27, 40, 0.92);
  color: #ecf5ff;
  border-color: rgba(95, 149, 190, 0.2);
  box-shadow: none;
}

html[data-theme='dark'] .topbar-nav .theme-toggle:hover {
  background: rgba(18, 38, 58, 0.94);
  border-color: rgba(122, 191, 244, 0.28);
}

@media (max-width: 960px) {
  .topbar-nav .theme-toggle__label {
    display: none;
  }

  .topbar-nav .theme-toggle {
    min-height: 38px;
    padding: 0 10px;
  }
}

@media (max-width: 720px) {
  .material-card-hero {
    min-height: 132px;
    padding: 18px 18px 16px;
  }

  .material-card-body {
    min-height: 0;
    padding: 18px;
  }
}

.page-search {
  position: relative;
}

.page-search--topbar {
  padding: 0;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.page-search__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 98, 155, 0.72);
}

.page-search__field {
  position: relative;
  min-width: 0;
  width: 100%;
}

.page-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 98, 155, 0.56);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.page-search__icon::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 98, 155, 0.56);
  transform: rotate(45deg);
  transform-origin: center;
}

.page-search__input {
  width: 100%;
  min-height: 52px;
  padding: 0 96px 0 52px;
  border-radius: 999px;
  border: 1px solid rgba(0, 98, 155, 0.14);
  background: rgba(246, 250, 254, 0.96);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.page-search__input::placeholder {
  color: rgba(90, 106, 133, 0.72);
}

.page-search__input:focus {
  border-color: rgba(0, 133, 202, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 133, 202, 0.12);
  background: var(--white);
}

.page-search__clear {
  position: absolute;
  top: 50%;
  right: 12px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 98, 155, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--ieee-dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-search__clear:hover {
  border-color: rgba(0, 98, 155, 0.22);
  background: rgba(0, 98, 155, 0.05);
  transform: translateY(-50%) translateY(-1px);
}

.page-search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 98, 155, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(0, 48, 87, 0.12);
  backdrop-filter: blur(16px);
  max-height: min(56vh, 440px);
  overflow-y: auto;
}

.page-search-results[hidden] {
  display: none;
}

.page-search-result,
.page-search-results__empty {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(244, 248, 252, 0.88);
  text-align: left;
}

.page-search-result {
  display: grid;
  gap: 4px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-search-result:hover {
  border-color: rgba(0, 98, 155, 0.16);
  background: var(--white);
  transform: translateY(-1px);
}

.page-search-result.is-active {
  border-color: rgba(0, 98, 155, 0.22);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 24px rgba(0, 48, 87, 0.08);
}

.page-search-result__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 98, 155, 0.72);
}

.page-search-result__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ieee-dark);
}

.page-search-result__meta,
.page-search-results__empty {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-search-result__snippet {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(10, 22, 40, 0.72);
}

.page-search-target-active {
  scroll-margin-top: 140px;
  outline: 2px solid rgba(0, 133, 202, 0.32);
  outline-offset: 6px;
  border-radius: 18px;
}

html[data-theme='dark'] .page-search {
  background: rgba(9, 20, 33, 0.92);
  border-color: rgba(88, 153, 194, 0.18);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .page-search__eyebrow,
html[data-theme='dark'] .page-search-result__eyebrow {
  color: #8fd4ff;
}

html[data-theme='dark'] .page-search__icon {
  border-color: rgba(143, 212, 255, 0.68);
}

html[data-theme='dark'] .page-search__icon::after {
  background: rgba(143, 212, 255, 0.68);
}

html[data-theme='dark'] .page-search__input {
  background: rgba(12, 27, 43, 0.84);
  border-color: rgba(88, 153, 194, 0.18);
  color: #edf6ff;
}

html[data-theme='dark'] .page-search__input::placeholder,
html[data-theme='dark'] .page-search__hint,
html[data-theme='dark'] .page-search-result__meta,
html[data-theme='dark'] .page-search-results__empty {
  color: #9eb2c8;
}

html[data-theme='dark'] .page-search__input:focus {
  background: rgba(14, 31, 49, 0.94);
  border-color: rgba(102, 183, 236, 0.34);
  box-shadow: 0 0 0 4px rgba(0, 133, 202, 0.16);
}

html[data-theme='dark'] .page-search__clear {
  background: rgba(7, 15, 25, 0.9);
  color: #edf6ff;
  border-color: rgba(95, 149, 190, 0.2);
}

html[data-theme='dark'] .page-search__clear:hover {
  background: rgba(14, 31, 49, 0.94);
  border-color: rgba(122, 191, 244, 0.28);
}

html[data-theme='dark'] .page-search-results {
  background: rgba(8, 22, 35, 0.98);
  border-color: rgba(95, 149, 190, 0.2);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .page-search-result,
html[data-theme='dark'] .page-search-results__empty {
  background: rgba(12, 27, 43, 0.78);
}

html[data-theme='dark'] .page-search-result:hover {
  background: rgba(14, 31, 49, 0.94);
  border-color: rgba(102, 183, 236, 0.24);
}

html[data-theme='dark'] .page-search-result.is-active {
  background: rgba(18, 38, 58, 0.98);
  border-color: rgba(122, 191, 244, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] .page-search-result__title {
  color: #edf6ff;
}

html[data-theme='dark'] .page-search-result__snippet {
  color: #c5d7ea;
}

html[data-theme='dark'] .page-search-target-active {
  outline-color: rgba(102, 183, 236, 0.48);
}

@media (max-width: 960px) {
  .site-topbar {
    padding: 14px 18px;
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }

  .site-topbar__search {
    grid-column: 1 / -1;
    max-width: none;
  }

  .topbar-nav {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .site-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 10px;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    padding-right: 6px;
  }

  .topbar-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .site-topbar__search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-brand-lockup {
    min-width: 0;
    overflow: hidden;
  }

  .site-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-brand-meta {
    display: none;
  }

  .topbar-nav .topbar-link {
    display: none;
  }

  .page-search__input {
    min-height: 44px;
    padding-right: 82px;
  }

  .page-search__clear {
    min-height: 32px;
    padding: 0 10px;
  }
}
