:root {
  --deep-navy: #1b1b2e;
  --soft-violet: #7a6cff;
  --accessible-violet: #5f52e8;
  --action-violet: #5f52e8;
  --action-violet-hover: #5146cc;
  --lavender: #b9a8ff;
  --warm-peach: #ffb48d;
  --blush-cream: #fff1e6;
  --white: #fffdfa;
  --muted: #5f6074;
  --border: rgba(27, 27, 46, 0.1);
  --shadow: 0 18px 45px rgba(73, 59, 117, 0.1);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--deep-navy);
  background: var(--blush-cream);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(185, 168, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 5% 86%, rgba(255, 180, 141, 0.18), transparent 22rem),
    linear-gradient(180deg, #fff8f0 0%, var(--blush-cream) 44%, var(--white) 100%);
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

img,
svg,
.brand {
  -webkit-user-drag: none;
}

img {
  -webkit-user-select: none;
  user-select: none;
}

.site-header,
.site-header *,
.button,
.back-to-top,
.brand,
.eyebrow,
.route-label,
.footer-links,
.footer-links * {
  -webkit-user-select: none;
  user-select: none;
}

:root.theme-changing *,
:root.theme-changing *::before,
:root.theme-changing *::after {
  transition-property: color, background-color, border-color, box-shadow, filter !important;
  transition-duration: 360ms !important;
  transition-timing-function: ease !important;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  color: white;
  background: var(--deep-navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.footer-links a[aria-current="page"] {
  color: var(--accessible-violet);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
}

#main-content:focus {
  outline: none;
}

[id] {
  scroll-margin-top: 1.5rem;
}

.shell {
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
  padding: 0.72rem 1.02rem 0.72rem 1.15rem;
  border: 1px solid rgba(27, 27, 46, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 10px 34px rgba(73, 59, 117, 0.08);
  backdrop-filter: blur(18px);
}

.theme-toggle {
  display: inline-flex;
  gap: 0.46rem;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 0.92rem;
  border: 1px solid rgba(95, 82, 232, 0.24);
  border-radius: 999px;
  color: var(--accessible-violet);
  background: rgba(255, 253, 250, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle-icon {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  transition: transform 320ms ease;
}

:root.theme-changing .theme-toggle-icon {
  transform: rotate(180deg) scale(0.86);
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(95, 82, 232, 0.68);
  outline-offset: 0.25rem;
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(95, 82, 232, 0.24);
  border-radius: 999px;
  color: var(--accessible-violet);
  background: rgba(255, 253, 250, 0.78);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle-lines {
  display: grid;
  width: 1rem;
  gap: 0.24rem;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(95, 82, 232, 0.68);
  outline-offset: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 3rem;
  transform: translateX(0.16rem);
}

.brand img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 2.5vw, 2.18rem);
  object-fit: contain;
  object-position: center;
}

.brand .brand-symbol {
  width: clamp(3.05rem, 4.2vw, 3.7rem);
  height: auto;
  flex: 0 0 auto;
}

.brand-wordmark {
  color: var(--deep-navy);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.62rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--deep-navy);
}

.nav-links {
  gap: 0.35rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links {
  gap: 0.8rem 1.25rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a,
.footer-links a {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  border-radius: 999px;
}

.nav-links a {
  padding: 0.38rem 0.55rem;
  border: 1px solid transparent;
  outline-offset: 0.35rem;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.footer-links a:hover,
.text-link {
  color: var(--accessible-violet);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(214, 101, 79, 0.3);
  color: var(--deep-navy);
  background: rgba(255, 180, 141, 0.28);
  box-shadow: 0 8px 18px rgba(182, 102, 72, 0.12);
  transform: translateY(-2px);
}

.nav-links a[aria-current="page"] {
  border-color: rgba(95, 82, 232, 0.5);
  color: #fffdfa;
  background: var(--action-violet);
  box-shadow: 0 8px 20px rgba(67, 50, 199, 0.24);
}

.nav-links a[aria-current="page"]:hover,
.nav-links a[aria-current="page"]:focus-visible {
  border-color: rgba(95, 82, 232, 0.7);
  color: #fffdfa;
  background: var(--action-violet-hover);
}

.nav-links a:active {
  background: var(--action-violet-hover);
  box-shadow: 0 4px 12px rgba(67, 50, 199, 0.2);
  transform: translateY(0) scale(0.97);
}

.nav-links > a:not([aria-current="page"]):active {
  border-color: rgba(214, 101, 79, 0.42);
  color: var(--deep-navy);
  background: rgba(255, 180, 141, 0.46);
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown > summary {
  display: inline-flex;
  min-height: 2.2rem;
  align-items: center;
  padding: 0.38rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  outline-offset: 0.35rem;
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.18rem 0.05rem 0 0.32rem;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown[open] > summary::after {
  margin-top: 0.12rem;
  transform: rotate(225deg);
}

.nav-dropdown > summary:hover,
.nav-dropdown > summary:focus-visible {
  border-color: rgba(214, 101, 79, 0.3);
  color: var(--deep-navy);
  background: rgba(255, 180, 141, 0.28);
  box-shadow: 0 8px 18px rgba(182, 102, 72, 0.12);
  transform: translateY(-2px);
}

.nav-dropdown[data-current="true"] > summary {
  border-color: rgba(95, 82, 232, 0.5);
  color: #fffdfa;
  background: var(--action-violet);
  box-shadow: 0 8px 20px rgba(67, 50, 199, 0.24);
}

.nav-dropdown[data-current="true"] > summary:hover,
.nav-dropdown[data-current="true"] > summary:focus-visible {
  color: #fffdfa;
  background: var(--action-violet-hover);
}

.nav-dropdown[open] > summary,
.nav-dropdown[open] > summary:hover,
.nav-dropdown[open] > summary:focus-visible {
  border-color: rgba(214, 101, 79, 0.38);
  color: var(--deep-navy);
  background: #ffe6d8;
  box-shadow: 0 8px 18px rgba(182, 102, 72, 0.16);
}

.nav-dropdown > summary:active {
  background: var(--action-violet-hover);
  transform: translateY(0) scale(0.97);
}

.nav-dropdown > summary:active {
  border-color: rgba(214, 101, 79, 0.42);
  color: var(--deep-navy);
  background: rgba(255, 180, 141, 0.46);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 30;
  display: grid;
  width: max-content;
  min-width: 12.5rem;
  gap: 0.18rem;
  padding: 0.48rem;
  border: 1px solid rgba(95, 82, 232, 0.16);
  border-radius: 1rem;
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 18px 38px rgba(73, 59, 117, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nav-dropdown-menu a {
  display: flex;
  min-height: 2.45rem;
  align-items: center;
  padding: 0.58rem 0.72rem;
  border: 0;
  border-radius: 0.7rem;
  color: var(--deep-navy);
  background: transparent;
  box-shadow: none;
  font-size: 0.84rem;
  line-height: 1.25;
  white-space: nowrap;
  transform: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"] {
  border: 0;
  color: var(--accessible-violet);
  background: rgba(95, 82, 232, 0.1);
  box-shadow: none;
  transform: none;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  color: #fffdfa;
  background: var(--action-violet);
  box-shadow: 0 12px 28px rgba(122, 108, 255, 0.24);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  color: #fffdfa;
  background: var(--action-violet-hover);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--accessible-violet);
  border: 1px solid rgba(95, 82, 232, 0.35);
  background: rgba(255, 253, 250, 0.78);
  box-shadow: none;
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(95, 82, 232, 0.68);
  outline-offset: 0.25rem;
}

main {
  padding: 4.5rem 0 5rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.58fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.2rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: var(--shadow);
}

.page-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.page-hero picture {
  display: block;
  width: 100%;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Poppins, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 7vw, 4.4rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 44rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

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

.content-section {
  margin-top: 3.5rem;
}

.soft-card,
.note-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: 0 10px 30px rgba(73, 59, 117, 0.08);
}

.soft-card {
  padding: 1.35rem;
}

.soft-card p {
  margin-bottom: 0;
}

.card-icon-bubble {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(95, 82, 232, 0.12);
  border-radius: 0.95rem;
  color: var(--accessible-violet);
  background: linear-gradient(145deg, rgba(185, 168, 255, 0.28), rgba(255, 180, 141, 0.17));
}

.card-icon-bubble svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card-icon-bubble[data-card-icon="heart"],
.card-icon-bubble[data-card-icon="flag"] {
  color: #b94f3e;
  background: rgba(255, 180, 141, 0.24);
}

.card-icon-bubble[data-card-icon="shield"],
.card-icon-bubble[data-card-icon="lock"] {
  color: #4f45c9;
  background: rgba(185, 168, 255, 0.24);
}

.contact-route-grid {
  align-items: stretch;
}

.contact-route-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-route-card h3 {
  margin-bottom: 0;
}

.contact-route-card .card-icon-bubble {
  margin-bottom: 0;
}

.route-label {
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  color: var(--accessible-violet);
  background: rgba(185, 168, 255, 0.2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.route-email {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--accessible-violet);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

.route-email:hover {
  color: var(--deep-navy);
}

.note-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(185, 168, 255, 0.18), rgba(255, 180, 141, 0.16)),
    rgba(255, 253, 250, 0.88);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(27, 27, 46, 0.08);
  background: rgba(255, 253, 250, 0.76);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
}

.site-footer small {
  color: var(--muted);
  line-height: 1.7;
}

.footer-note {
  display: grid;
  gap: 0.18rem;
}

.footer-note strong {
  color: var(--deep-navy);
  font-size: 0.9rem;
}

.footer-note em {
  font-size: 0.83rem;
}

.footer-ai-note {
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.55;
}

.transparency-note {
  margin-top: 0.45rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(122, 108, 255, 0.42);
}

.transparency-note strong {
  color: var(--deep-navy);
}

.footer-links {
  justify-content: flex-end;
}

:root[data-theme="dark"] {
  --deep-navy: #f4f0ff;
  --accessible-violet: #c4b8ff;
  --action-violet: #5f52e8;
  --action-violet-hover: #6c5eea;
  --muted: #c0b9cf;
  --border: rgba(255, 253, 250, 0.12);
  --white: #181526;
  color-scheme: dark;
  background: #0f0d1a;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 88% 8%, rgba(122, 108, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 5% 86%, rgba(255, 180, 141, 0.08), transparent 22rem),
    linear-gradient(180deg, #0f0d1a 0%, #151120 48%, #0f0d1a 100%);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .soft-card,
:root[data-theme="dark"] .note-panel,
:root[data-theme="dark"] .site-footer {
  border-color: rgba(255, 253, 250, 0.1);
  background: rgba(24, 21, 38, 0.9);
  box-shadow: 0 18px 45px rgba(5, 4, 12, 0.3);
}

:root[data-theme="dark"] .note-panel {
  background:
    linear-gradient(135deg, rgba(122, 108, 255, 0.14), rgba(255, 180, 141, 0.08)),
    rgba(24, 21, 38, 0.9);
}

:root[data-theme="dark"] .route-label {
  background: rgba(122, 108, 255, 0.22);
}

:root[data-theme="dark"] .card-icon-bubble {
  border-color: rgba(196, 184, 255, 0.2);
  color: #d9d1ff;
  background: linear-gradient(145deg, rgba(122, 108, 255, 0.22), rgba(255, 180, 141, 0.1));
}

:root[data-theme="dark"] .card-icon-bubble[data-card-icon="heart"],
:root[data-theme="dark"] .card-icon-bubble[data-card-icon="flag"] {
  color: #ffc3a6;
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .nav-links a {
  border-color: rgba(196, 184, 255, 0.3);
  color: #f4f0ff;
  background: rgba(33, 28, 52, 0.88);
}

:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .nav-links a:focus-visible {
  border-color: rgba(196, 184, 255, 0.38);
  color: #fffdfa;
  background: var(--action-violet);
  box-shadow: 0 10px 24px rgba(67, 50, 199, 0.34);
}

:root[data-theme="dark"] .nav-links a[aria-current="page"] {
  border-color: rgba(196, 184, 255, 0.48);
  color: #fffdfa;
  background: var(--action-violet);
  box-shadow: 0 10px 24px rgba(67, 50, 199, 0.34);
}

:root[data-theme="dark"] .nav-links a[aria-current="page"]:hover,
:root[data-theme="dark"] .nav-links a[aria-current="page"]:focus-visible {
  background: var(--action-violet-hover);
}

:root[data-theme="dark"] .nav-dropdown > summary {
  border-color: rgba(196, 184, 255, 0.3);
  color: #f4f0ff;
  background: rgba(33, 28, 52, 0.88);
}

:root[data-theme="dark"] .nav-dropdown > summary:hover,
:root[data-theme="dark"] .nav-dropdown > summary:focus-visible {
  border-color: rgba(255, 180, 141, 0.62);
  color: #21182b;
  background: #f5d8c8;
  box-shadow: 0 10px 24px rgba(5, 4, 12, 0.28);
}

:root[data-theme="dark"] .nav-dropdown[data-current="true"] > summary {
  color: #fffdfa;
  background: var(--action-violet);
}

:root[data-theme="dark"] .nav-dropdown[data-current="true"]:not([open]) > summary:hover,
:root[data-theme="dark"] .nav-dropdown[data-current="true"]:not([open]) > summary:focus-visible {
  border-color: rgba(196, 184, 255, 0.48);
  color: #fffdfa;
  background: var(--action-violet-hover);
  box-shadow: 0 10px 24px rgba(67, 50, 199, 0.34);
}

:root[data-theme="dark"] .nav-dropdown[open] > summary,
:root[data-theme="dark"] .nav-dropdown[open] > summary:hover,
:root[data-theme="dark"] .nav-dropdown[open] > summary:focus-visible {
  border-color: rgba(255, 180, 141, 0.68);
  color: #21182b;
  background: #f5d8c8;
  box-shadow: 0 10px 24px rgba(5, 4, 12, 0.28);
}

:root[data-theme="dark"] .nav-dropdown-menu {
  border-color: rgba(196, 184, 255, 0.2);
  background: rgba(24, 21, 38, 0.98);
  box-shadow: 0 20px 42px rgba(5, 4, 12, 0.42);
}

:root[data-theme="dark"] .nav-dropdown-menu a {
  border: 0;
  color: #f4f0ff;
  background: transparent;
}

:root[data-theme="dark"] .nav-dropdown-menu a:hover,
:root[data-theme="dark"] .nav-dropdown-menu a:focus-visible,
:root[data-theme="dark"] .nav-dropdown-menu a[aria-current="page"] {
  color: #fffdfa;
  background: rgba(128, 111, 255, 0.24);
}

:root[data-theme="dark"] .nav-links > a:not([aria-current="page"]):active,
:root[data-theme="dark"] .nav-dropdown > summary:active {
  border-color: rgba(255, 180, 141, 0.68);
  color: #21182b;
  background: #f5d8c8;
}

:root[data-theme="dark"] .page-hero img {
  filter: brightness(0.86) saturate(0.9);
}

/* Match the homepage's wrapping ribbon without off-screen dropdowns. */
@media (min-width: 681px) and (max-width: 980px) {
  .nav-links {
    align-items: flex-start;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0.3rem;
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header,
  .footer-inner {
    align-items: flex-start;
    border-radius: 1.2rem;
    flex-direction: column;
  }

  .page-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 3rem 0 3.8rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.72rem;
  }

  .brand {
    gap: 0.42rem;
    transform: none;
  }

  .brand .brand-symbol {
    width: 2.75rem;
  }

  .brand-wordmark {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.7rem;
  }

  .theme-toggle-text {
    display: none;
  }

  .nav-links {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(27, 27, 46, 0.08);
  }

  .js-enabled .nav-links {
    display: none;
  }

  .js-enabled .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links a {
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.75rem;
    background: rgba(255, 253, 250, 0.6);
    font-size: 0.85rem;
  }

  .nav-dropdown {
    min-width: 0;
    width: 100%;
  }

  .nav-dropdown > summary {
    width: 100%;
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.75rem;
    background: rgba(255, 253, 250, 0.6);
    font-size: 0.85rem;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.3rem;
    transform: none;
  }

  .nav-dropdown-menu a,
  :root[data-theme="dark"] .nav-dropdown-menu a {
    min-height: 2.2rem;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a,
  .nav-dropdown > summary {
    transition-duration: 0.01ms;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-dropdown > summary:hover,
  .nav-dropdown > summary:focus-visible {
    transform: none;
  }
}
