/* Base design tokens inspired by Material Design 3 + Google Store */
:root {
  --md-sys-color-primary: #7c3aed; /* violet */
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ede9fe;
  --md-sys-color-on-primary-container: #2e1065;

  --md-sys-color-secondary: #64748b;
  --md-sys-color-on-secondary: #ffffff;

  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-variant: #e5e7eb;
  --md-sys-color-background: #f4f4fb;

  --md-sys-color-outline: #cbd5f5;
  --md-sys-color-shadow: rgba(15, 23, 42, 0.08);

  --md-sys-color-on-surface: #020617;
  --md-sys-color-on-surface-variant: #4b5563;

  --md-sys-elevation-1: 0 1px 2px rgba(15, 23, 42, 0.08);
  --md-sys-elevation-2: 0 4px 12px rgba(15, 23, 42, 0.18);

  --md-sys-shape-corner-large: 28px;
  --md-sys-shape-corner-medium: 20px;
  --md-sys-shape-corner-small: 16px;

  --md-sys-typescale-title: clamp(2.3rem, 2.8vw, 3rem);
  --md-sys-typescale-body: 1rem;

  --md-sys-padding-page: 1.5rem;

  /* reactive gradient defaults */
  --bg-grad-x: 18%;
  --bg-grad-y: 0%;
}

/* Dark theme overrides */
body.dark {
  --md-sys-color-surface: #020617;
  --md-sys-color-surface-variant: #020617;
  --md-sys-color-background: #020617;
  --md-sys-color-on-surface: #e2e8f0;
  --md-sys-color-on-surface-variant: #94a3b8;
  --md-sys-color-outline: #1f2937;
  --md-sys-color-shadow: rgba(15, 23, 42, 0.6);
  --md-sys-color-primary-container: #2e1065;
  --md-sys-color-on-primary-container: #ede9fe;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--md-sys-typescale-body);
  background: radial-gradient(circle at var(--bg-grad-x) var(--bg-grad-y),
    rgba(129, 140, 248, 0.25) 0,
    #f4f4fb 42%,
    #f9fafb 100%);
  color: var(--md-sys-color-on-surface);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease-out;
}

body.dark {
  background: radial-gradient(circle at var(--bg-grad-x) var(--bg-grad-y),
    rgba(88, 28, 135, 0.7) 0,
    #020617 48%,
    #020617 100%);
}

/* Animated gradient helper */
@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 100%;
  }
}

/* Top app bar */

.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--md-sys-padding-page);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

body.dark .top-app-bar {
  background-color: rgba(15, 23, 42, 0.94);
  border-bottom-color: rgba(129, 140, 248, 0.5);
}

.top-app-bar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand__logo-img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: block;
}

.brand__text {
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Nav */

.top-app-bar__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline: 1rem;
  flex: 1;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.nav-link:hover {
  background-color: rgba(148, 163, 184, 0.18);
  color: #111827;
}

body.dark .nav-link:hover {
  color: #e5e7eb;
}

.nav-link:active {
  transform: scale(0.97);
}

.nav-link--active {
  background-color: rgba(124, 58, 237, 0.12);
  color: #111827;
}

/* Dark-mode fix for active nav link */
body.dark .nav-link--active {
  background-color: rgba(124, 58, 237, 0.55);
  color: #e5e7eb;
}

/* Right side */

.top-app-bar__right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Icon buttons */

.icon-button {
  border: none;
  background: none;
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.icon-button:hover {
  background-color: rgba(148, 163, 184, 0.18);
}

.icon-button:active {
  transform: scale(0.96);
}

.nav-menu-button {
  display: none;
}

/* Simple hamburger icon */
.nav-menu-icon {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: #4b5563;
  position: relative;
}
.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: #4b5563;
}
.nav-menu-icon::before {
  top: -5px;
}
.nav-menu-icon::after {
  top: 5px;
}

body.dark .nav-menu-icon,
body.dark .nav-menu-icon::before,
body.dark .nav-menu-icon::after {
  background-color: #e5e7eb;
}

/* Theme toggle — pill switch + icons */

.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
}

.theme-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  opacity: 0.95;
}

body.dark .theme-toggle__track {
  background: linear-gradient(135deg, #4c1d95, #111827);
}

/* Theme toggle icons (sun / moon) */
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #f59e0b; /* sun color by default */
}

.theme-toggle__thumb::before {
  content: "☀";
  line-height: 1;
}

/* Dark mode: thumb to the right with moon icon */
body.dark .theme-toggle__thumb {
  transform: translateX(17px);
  background: #020617;
  color: #e5e7eb;
}

body.dark .theme-toggle__thumb::before {
  content: "🌙";
}

/* Nav drawer (mobile) */

.nav-drawer {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: min(280px, 80vw);
  background-color: var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-2);
  transform: translateX(-100%);
  transition: transform 0.2s ease-out;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 600;
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem 1rem;
  gap: 0.25rem;
}

.nav-drawer__link {
  display: block;
}

.nav-drawer__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 55;
}

.nav-drawer__backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Layout */

main {
  padding: 1.5rem var(--md-sys-padding-page) 3rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section {
  margin-top: 2.5rem;
}

.section--surface {
  background-image: radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), rgba(239, 246, 255, 0.9));
  background-size: 160% 160%;
  animation: gradientShift 18s ease-in-out infinite;
  border-radius: var(--md-sys-shape-corner-large);
  padding: 2rem 1.75rem;
  box-shadow: var(--md-sys-elevation-1);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.section--dense {
  background-image: radial-gradient(circle at top, rgba(79, 70, 229, 0.35), rgba(248, 250, 252, 1));
  background-size: 180% 180%;
  animation: gradientShift 22s ease-in-out infinite;
  border-radius: var(--md-sys-shape-corner-large);
  padding: 2.25rem 1.75rem 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.dark .section--surface {
  background-image: radial-gradient(circle at top left, rgba(79, 70, 229, 0.45), rgba(15, 23, 42, 1));
  border-color: rgba(129, 140, 248, 0.65);
}

body.dark .section--dense {
  background-image: radial-gradient(circle at top, rgba(88, 28, 135, 0.7), rgba(15, 23, 42, 1));
  border-color: rgba(129, 140, 248, 0.65);
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

/* Hero */

.hero {
  margin-top: 1.75rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
  align-items: center;
}

.hero__inner--downloads {
  align-items: flex-start;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: var(--md-sys-typescale-title);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero__bullets {
  list-style: disc;
  margin: 0 0 0.75rem 1.2rem;
  padding: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.95rem;
}

.hero__disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
}

.hero__media {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  padding: 1.5rem 1.4rem;
  border-radius: var(--md-sys-shape-corner-large);
  background-image: radial-gradient(circle at top left, rgba(129, 140, 248, 0.55), rgba(248, 250, 252, 1));
  background-size: 200% 200%;
  animation: gradientShift 24s ease-in-out infinite;
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: var(--md-sys-color-on-surface);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

body.dark .hero-card {
  color: #e5e7eb;
  background-image: radial-gradient(circle at top left, rgba(79, 70, 229, 0.6), rgba(15, 23, 42, 1));
  border-color: rgba(129, 140, 248, 0.8);
}

.hero-card--downloads {
  max-width: 380px;
}

.hero-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.hero-card ul {
  margin: 0 0 0.7rem 1.1rem;
  padding: 0;
  font-size: 0.9rem;
}

/* Cards, buttons, chips */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cards-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  border-radius: var(--md-sys-shape-corner-medium);
  background-color: var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-1);
  padding: 1.3rem 1.25rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

body.dark .card {
  background-color: #020617;
  border-color: rgba(30, 64, 175, 0.7);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-sys-elevation-2);
  border-color: rgba(124, 58, 237, 0.45);
}

.card--horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.card--soft {
  background-color: rgba(248, 250, 252, 0.9);
}

body.dark .card--soft {
  background-color: rgba(15, 23, 42, 0.9);
}

.card--compact {
  padding: 1rem 1.05rem;
}

.card__content {
  flex: 1;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.7rem;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.95rem;
}

.card-list {
  list-style: disc;
  margin: 0.1rem 0 0 1.1rem;
  padding: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.button--primary {
  background: linear-gradient(to right, #7c3aed, #a855f7);
  color: var(--md-sys-color-on-primary);
  box-shadow: var(--md-sys-elevation-1);
}

.button--primary:hover {
  box-shadow: var(--md-sys-elevation-2);
  transform: translateY(-1px);
}

.button--tonal {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.button--outlined {
  border-color: rgba(148, 163, 184, 0.8);
  background-color: transparent;
  color: var(--md-sys-color-on-surface);
}

body.dark .button--outlined {
  color: #e5e7eb;
}

.button--outlined:hover {
  background-color: rgba(148, 163, 184, 0.12);
}

.button--full {
  width: 100%;
  justify-content: center;
}

.button:active {
  transform: scale(0.97);
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.12);
  color: var(--md-sys-color-on-surface);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.chip-link:hover {
  background-color: rgba(148, 163, 184, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

/* Edition grid */

.edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.edition-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.edition-card__media {
  overflow: hidden;
  border-radius: var(--md-sys-shape-corner-medium);
}

.edition-card__media img {
  width: 100%;
  display: block;
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

.edition-card__media img:hover {
  transform: scale(1.03);
}

/* Community */

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.community-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.community-card__image {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.community-card__image--small {
  width: 150px;
}

.community-card__content {
  flex: 1;
}

/* Support / license */

.license-intro,
.license-footer {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.95rem;
}

.license-intro {
  max-width: 42rem;
}

.license-footer {
  margin-top: 1.4rem;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Download tables */

.download-table {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.download-row__info h3 {
  margin: 0 0 0.2rem;
}

.download-row__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
}

.download-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nvidia-callout {
  margin-bottom: 1.25rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: var(--md-sys-shape-corner-medium);
  background-color: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.5);
}

body.dark .nvidia-callout {
  background-color: rgba(30, 64, 175, 0.4);
  border-color: rgba(191, 219, 254, 0.7);
}

.nvidia-callout ul {
  margin: 0 0 0.6rem 1.1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 80;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
}

.lightbox__content {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: min(700px, 90vh);
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Download dialog */

.download-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 90;
}

.download-dialog.open {
  visibility: visible;
  opacity: 1;
}

.download-dialog__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
}

.download-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 92vw);
  border-radius: 24px;
  background-color: var(--md-sys-color-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.dark .download-dialog__panel {
  background-color: #020617;
  border-color: rgba(129, 140, 248, 0.7);
}

.download-dialog__header h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.download-dialog__body {
  font-size: 0.95rem;
}

.download-dialog__iso-label,
.download-dialog__checksum-label {
  margin: 0;
  font-weight: 500;
}

.download-dialog__iso-value {
  margin: 0 0 0.75rem;
  word-break: break-all;
}

.download-dialog__checksum {
  margin: 0.25rem 0 0.4rem;
  padding: 0.4rem 0.5rem;
  background-color: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

body.dark .download-dialog__checksum {
  background-color: rgba(15, 23, 42, 0.7);
}

.download-dialog__hint {
  margin: 0 0 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.85rem;
}

.download-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.download-dialog__actions .button {
  font-size: 0.85rem;
  padding-inline: 0.9rem;
}

/* Footer */

.site-footer {
  padding: 1.75rem var(--md-sys-padding-page) 2.25rem;
  border-top: none;
  background-color: #f9fafb;
}

body.dark .site-footer {
  background-color: #020617;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant);
}

.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__right a {
  text-decoration: none;
  color: var(--md-sys-color-on-surface-variant);
}

.site-footer__right a:hover {
  text-decoration: underline;
}

/* Responsive */

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

  .hero__media {
    order: -1;
  }

  main {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 780px) {
  .top-app-bar__nav {
    display: none;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .brand__text {
    font-size: 0.95rem;
  }

  .section--surface,
  .section--dense {
    padding-inline: 1.25rem;
  }

  .download-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-row__actions {
    width: 100%;
  }

  .download-row__actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  main {
    padding-inline: 1rem;
  }

  .hero-card {
    max-width: none;
  }

  .download-dialog__panel {
    padding-inline: 1.1rem;
  }

  .download-dialog__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-dialog__actions .button {
    width: 100%;
    justify-content: center;
  }
}




/* Wavy top edge on footer (divides page body and footer background) */
.site-footer {
  position: relative;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -10px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'%3E%3Cpath d='M0 4 Q 4 0 8 4 T 16 4 T 24 4 T 32 4 T 40 4 T 48 4 T 56 4 T 64 4 T 72 4 T 80 4' fill='none' stroke='%237c3aed' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 8px;
  opacity: 0.6;
  pointer-events: none;
}

body.dark .site-footer::before {
  opacity: 0.75;
}


/* Footer background variables */
body:not(.dark) { --footer-bg: #f9fafb; }
body.dark { --footer-bg: #020617; }

/* Footer with integrated wave */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -10px;
  height: 20px;
  background-color: var(--footer-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'%3E%3Cpath d='M0 4 Q 4 0 8 4 T 16 4 T 24 4 T 32 4 T 40 4 T 48 4 T 56 4 T 64 4 T 72 4 T 80 4' fill='none' stroke='%237c3aed' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 10px;
  opacity: 0.85;
  pointer-events: none;
}

/* LINKS: mesma cor que o texto, en semi-negrita e subliñado a trazos */
a:not(.button):not(.nav-link):not(.chip-link):not(.brand) {
  color: inherit;                        /* mesma cor que o texto */
  font-weight: 500;                      /* semi-negrita */
  text-decoration-line: underline;
  text-decoration-style: dashed;         /* subliñado a trazos */
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

/* Hover → destaca en púrpura */
a:not(.button):not(.nav-link):not(.chip-link):not(.brand):hover {
  color: #7c3aed !important;             /* púrpura da web */
  text-decoration-style: dashed;
}
