:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-muted: #f3f7f6;
  --border: #dbe4e1;
  --border-strong: #bccbc7;
  --ink: #17211d;
  --muted: #5f706a;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e9f8f4;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8faf9;
  color: #17211d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.page-hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero__inner,
.section-shell {
  width: calc(100% - 2rem);
  max-width: 72rem;
  margin-inline: auto;
}

.page-hero__inner {
  padding-block: 2.75rem;
}

.section-shell {
  padding-block: 2.5rem;
}

.section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.25;
}

.section-heading p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-quiet {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.25rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn-primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

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

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: #263832;
}

.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-quiet {
  border: 1px solid transparent;
  color: var(--brand-dark);
}

.btn-quiet:hover {
  background: var(--brand-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.segmented-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #eef3f1;
}

.segmented-nav a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: 0.25rem;
  padding: 0.4rem 0.8rem;
  color: #40514b;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.segmented-nav a:hover,
.segmented-nav a.is-active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.content-card {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

a.content-card:hover {
  border-color: #79b9ae;
  box-shadow: 0 8px 20px rgb(15 118 110 / 0.08);
  transform: translateY(-1px);
}

.account-workspace {
  display: grid;
  gap: 1.5rem;
}

.account-sidebar {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.account-sidebar__title {
  padding: 0.45rem 0.65rem 0.7rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-sidebar__nav {
  display: grid;
  gap: 0.2rem;
}

.account-sidebar__nav a {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.25rem;
  padding: 0.55rem 0.65rem;
  color: #33443e;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.account-sidebar__nav a::after {
  content: "›";
  color: #94a3b8;
  font-size: 1.1rem;
}

.account-sidebar__nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.account-sidebar__nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 3px 0 0 var(--brand);
}

.account-sidebar__actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.account-panel {
  position: relative;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.account-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #a7d7ce;
  content: "";
}

.account-panel > h2,
.account-panel > div:first-child h2 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
}

details.action-disclosure {
  overflow: hidden;
  border: 1px solid #a9d5cd;
  border-radius: 0.375rem;
  background: #f5fbf9;
}

details.action-disclosure > summary {
  position: relative;
  display: flex;
  min-height: 3.25rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  padding: 0.75rem 3rem 0.75rem 1rem;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

details.action-disclosure > summary::-webkit-details-marker {
  display: none;
}

details.action-disclosure > summary::after {
  position: absolute;
  right: 0.85rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 0.25rem;
  background: #d9f2ec;
  content: "+";
  font-size: 1.1rem;
}

details.action-disclosure[open] > summary {
  border-bottom: 1px solid #c6e5de;
  background: #eaf8f4;
}

details.action-disclosure[open] > summary::after {
  content: "−";
}

details.action-disclosure > :not(summary) {
  margin-inline: 1rem;
}

details.action-disclosure > :last-child {
  margin-bottom: 1rem;
}

.metric-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--border);
}

.metric-strip > * {
  background: #fff;
  padding: 0.9rem 1rem;
}

@media (min-width: 64rem) {
  .account-workspace {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .account-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 63.999rem) {
  .account-sidebar {
    overflow-x: auto;
  }

  .account-sidebar__title,
  .account-sidebar__actions {
    display: none;
  }

  .account-sidebar__nav {
    display: flex;
    width: max-content;
  }

  .account-sidebar__nav a {
    white-space: nowrap;
  }

  .account-sidebar__nav a::after {
    display: none;
  }

  .account-sidebar__nav a.is-active {
    box-shadow: inset 0 -3px 0 var(--brand);
  }
}

@media (max-width: 39.999rem) {
  .page-hero__inner {
    padding-block: 2rem;
  }

  .section-shell {
    padding-block: 2rem;
  }

  .button-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .button-row > * {
    min-width: 0;
    padding-inline: 0.35rem;
    font-size: 0.72rem;
  }

  .filter-toolbar > label {
    width: 100%;
  }
}

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

.site-mobile-nav__icon {
  display: grid;
  width: 1.25rem;
  gap: 0.25rem;
}

.site-mobile-nav__icon > span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-mobile-nav[open] .site-mobile-nav__icon > span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-mobile-nav[open] .site-mobile-nav__icon > span:nth-child(2) {
  opacity: 0;
}

.site-mobile-nav[open] .site-mobile-nav__icon > span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.site-desktop-nav a,
.site-footer-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.site-desktop-nav a {
  padding-inline: 0.25rem;
}

.site-footer-nav {
  gap: 0.25rem 0.65rem !important;
}

.site-footer-nav a {
  padding-inline: 0.2rem;
}
