@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
  --font-sans: 'Poppins', sans-serif;
  --font-head: 'Plus Jakarta Sans', sans-serif;

  --bg: #f6f9fd;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --text: #17233b;
  --text-2: #4b5b75;
  --muted: #6b7a94;
  --border: #dde6f2;

  --brand: #234f95;
  --brand-2: #2f64b3;
  --brand-soft: #e9f1fb;
  --brand-soft-border: #cfdff4;

  --accent: #a8782a;
  --accent-2: #b8872e;
  --accent-soft: #f7efdb;

  --footer-bg: #173a6f;
  --footer-text: #d9e6fb;
  --footer-muted: #9fb4d8;

  --btn-text: #ffffff;
  --btn-outline-border: #cbd6e6;
  --btn-outline-text: #33415c;

  --head-glow: rgba(35, 79, 149, 0.08);
  --photo-ring: rgba(196, 150, 58, 0.45);
}

html[data-theme="dark"] {
  --bg: #0a1120;
  --surface: #101c31;
  --surface-2: #0c1629;
  --text: #e8eef8;
  --text-2: #b7c6db;
  --muted: #8b9cbb;
  --border: #1f2c47;

  --brand: #8db9f0;
  --brand-2: #a9c9f5;
  --brand-soft: #14243f;
  --brand-soft-border: #27405f;

  --accent: #d3a844;
  --accent-2: #e0b95a;
  --accent-soft: #291f0d;

  --footer-bg: #070d18;
  --footer-text: #c8d6ec;
  --footer-muted: #8296b8;

  --btn-text: #ffffff;
  --btn-outline-border: #2b3a58;
  --btn-outline-text: #c3d2e8;

  --head-glow: rgba(141, 185, 240, 0.08);
  --photo-ring: rgba(211, 168, 68, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand);
  font-size: 1rem;
  white-space: nowrap;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  flex-shrink: 0;
}

.brand .mark svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.25);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
  .nav-burger {
    display: none;
  }
  .brand {
    font-size: 1.15rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(52rem 30rem at 110% -20%, var(--head-glow), transparent),
    linear-gradient(180deg, var(--surface-2), var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: 3.5rem 3rem;
}

.hero .eyebrow {
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.hero .role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.hero .bio {
  color: var(--text-2);
  max-width: 40rem;
  text-align: justify;
  margin-bottom: 1.4rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-primary {
  background: var(--brand);
  color: var(--btn-text);
  border: 1px solid var(--brand);
  box-shadow: 0 8px 20px -10px var(--brand);
}

.btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.btn-outline {
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: min(19rem, 80vw);
}

.hero-media .frame {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(10, 25, 60, 0.4);
}

.hero-media .frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-media .frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 40, 0.55));
  pointer-events: none;
}

.hero-media .deco {
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px solid var(--photo-ring);
  border-radius: 1.2rem;
  z-index: -1;
}

.hero-media .floating-card {
  position: absolute;
  left: -1.4rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.35);
}

.hero-media .floating-card .fc-ico {
  color: var(--accent);
}

.hero-media .floating-card .fc-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
}

.hero-media .floating-card .fc-label {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.15;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 5rem 4rem;
  }
  .hero-media {
    justify-self: end;
  }
}

/* ---------- Stats ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--brand), #123a74);
  color: #fff;
}

html[data-theme="dark"] .stats-band {
  background: linear-gradient(135deg, #14325f, #0b1c38);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-block: 2rem;
  text-align: center;
}

.stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.stat .num small {
  font-size: 1rem;
  font-weight: 600;
}

.stat .lbl {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #cfe0f7;
  letter-spacing: 0.04em;
}

.stat .sub {
  font-size: 0.68rem;
  color: #94aede;
  margin-top: 0.15rem;
}

@media (min-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: 3.5rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-head p {
  color: var(--text-2);
}

.section-tint {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* ---------- Publications ---------- */
.pub-list {
  display: grid;
  gap: 1.1rem;
}

.pub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.85rem;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pub:hover {
  border-left-color: var(--brand);
  box-shadow: 0 18px 36px -24px rgba(20, 40, 90, 0.5);
}

.pub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pub h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.pub h3 a:hover {
  color: var(--brand);
}

.cite {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}

.cite svg {
  width: 0.85rem;
  height: 0.85rem;
}

.pub .authors {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.25rem;
}

.pub .authors strong {
  color: var(--text);
  font-weight: 600;
}

.pub .venue {
  font-size: 0.8rem;
  color: var(--muted);
}

.tag-year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  padding: 0.15rem 0.6rem;
  border-radius: 0.45rem;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
}

.group-year h3.group-title {
  font-size: 1.15rem;
  color: var(--brand);
  margin: 1.6rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.group-year h3.group-title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.pub-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
}

.pub-link-more:hover {
  color: var(--brand-2);
}

/* ---------- Cards grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px rgba(10, 30, 70, 0.5);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1rem;
}

.card .ico svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card .ico.gold {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-2);
  font-size: 0.9rem;
}

.card ul {
  margin-top: 0.7rem;
}

.card li {
  display: flex;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-top: 1px dashed var(--border);
}

.card li::before {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Books ---------- */
.book {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.3rem;
}

.book-cover {
  width: 4.4rem;
  height: 6.2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand), #0f2c55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.62rem;
  text-align: center;
  line-height: 1.4;
  padding: 0.3rem;
  flex-shrink: 0;
}

.book h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.book .authors {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.book .venue {
  font-size: 0.8rem;
  color: var(--muted);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

/* ---------- Research topics ---------- */
.topic {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

.topic::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.topic h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.topic p {
  color: var(--text-2);
  font-size: 0.88rem;
}

.topic-list {
  display: grid;
  gap: 1rem;
}

/* ---------- Metrics table & chart ---------- */
.metrics-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 900px) {
  .metrics-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
}

.panel h3 {
  font-size: 1.02rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.table td {
  color: var(--text-2);
}

.table td .val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  height: 11rem;
  padding-top: 0.5rem;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.4rem;
}

.bar {
  width: 100%;
  max-width: 2.4rem;
  border-radius: 0.4rem 0.4rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  min-height: 2px;
}

.bar-col:nth-child(even) .bar {
  background: linear-gradient(180deg, #d8ab4c, var(--accent));
}

.bar-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
}

.bar-year {
  font-size: 0.72rem;
  color: var(--muted);
}

.chart-legend {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Co-authors ---------- */
.coauthor-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .coauthor-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

.coauthor {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem 0.6rem;
}

.coauthor .avatar {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}

.coauthor .name {
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.3;
}

.coauthor .inst {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 1.1rem;
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: #1d1605;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: rgba(30, 22, 5, 0.75);
  font-size: 0.92rem;
  max-width: 34rem;
}

.btn-light {
  background: #fff;
  color: #7a5a16;
  border: 1px solid #fff;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.5);
}

.btn-light:hover {
  background: #f6e8c4;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.contact-item .ico {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-item .ico svg {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-item .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.contact-item .val {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.2s ease;
}

.social-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.social-btn:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.6rem;
}

.form-card h3 {
  margin-bottom: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background:
    radial-gradient(40rem 20rem at 100% 0%, var(--head-glow), transparent),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding-block: 3rem 2.4rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  color: var(--text-2);
  max-width: 46rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .sep {
  margin: 0 0.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2.6rem 1.8rem;
}

@media (min-width: 800px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--footer-muted);
  max-width: 22rem;
}

.site-footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--footer-muted);
  margin-bottom: 0.9rem;
}

.site-footer .fmenu a,
.site-footer .fsocial a {
  display: block;
  padding: 0.22rem 0;
  font-size: 0.88rem;
  color: var(--footer-text);
}

.site-footer .fmenu a:hover,
.site-footer .fsocial a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--footer-muted) 25%, transparent);
  padding-block: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

.footer-bottom a {
  color: var(--footer-text);
}

/* ---------- misc ---------- */
.note-box {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-2);
  border-radius: 0.7rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.note-box a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kbd-ok {
  color: var(--text-2);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 30px -12px var(--brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.to-top:hover {
  background: var(--brand-2);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Supervision / table ---------- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  margin-bottom: 1.3rem;
}

@media (min-width: 900px) {
  .filter-bar {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }
}

.su-search {
  position: relative;
  flex: 1 1 16rem;
}

.su-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
}

.su-search input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.3rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.su-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.fgroup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.fgroup-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fbtn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fbtn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.fbtn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
}

.su-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.su-table th,
.su-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  vertical-align: middle;
}

.su-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.su-table tbody td {
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

.su-table tbody tr:hover {
  background: var(--brand-soft);
}

.su-table tbody tr:first-child td {
  border-top: none;
}

.su-table .deg {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok {
  background: color-mix(in srgb, #22a06b 12%, transparent);
  border: 1px solid color-mix(in srgb, #22a06b 45%, transparent);
  color: #1e8a5c;
}

html[data-theme="dark"] .badge-ok {
  color: #4cd6a0;
}

.badge-warn {
  background: color-mix(in srgb, #d9952b 14%, transparent);
  border: 1px solid color-mix(in srgb, #d9952b 45%, transparent);
  color: #b07a16;
}

html[data-theme="dark"] .badge-warn {
  color: #e5b45c;
}

.badge-info {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand);
}

.su-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.6rem 1rem;
  font-size: 0.9rem;
}
