:root {
  --background: #09090b;
  --surface: #18181b;
  --surface-hover: #1f1f23;
  --border: #27272a;
  --border-strong: #3f3f46;
  --foreground: #fafafa;
  --foreground-hover: #e4e4e7;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius-card: 0.75rem;
  --radius-control: 0.375rem;
  --shell-max: 72rem;
  --header-h: 4rem;
  --speed: 150ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  background-color: var(--background);
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background-color: var(--foreground);
  color: var(--background);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border: 2px solid var(--background);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--border-strong);
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .shell {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .shell {
    padding-inline: 2rem;
  }
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 0.625rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 9, 11, 0.88);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__logo {
  display: none;
  height: 1.5rem;
  width: auto;
}

.brand__icon {
  height: 1.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .brand__logo {
    display: block;
  }

  .brand__icon {
    display: none;
  }
}

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

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 0.875rem;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background-color: var(--surface);
  color: var(--foreground);
}

.nav-link--cta {
  margin-left: 0.25rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--foreground);
}

.nav-link--cta:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-hover);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.5rem;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav-toggle:hover {
  background-color: var(--surface);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem;
  list-style: none;
}

.mobile-nav__link {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color var(--speed) var(--ease);
}

.mobile-nav__link:hover {
  color: var(--foreground);
}

.mobile-nav__link--mail {
  color: var(--foreground);
}

.mobile-nav__list li + li {
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.btn--primary {
  background-color: var(--foreground);
  color: var(--background);
}

.btn--primary:hover {
  background-color: var(--foreground-hover);
}

.btn--ghost {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--foreground);
}

.btn--ghost:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn--sm {
  height: 2.25rem;
  padding-inline: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 400;
}

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

.hero__inner {
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .hero__inner {
    padding-block: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    padding-block: 5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 0.75rem;
}

.badge .icon {
  color: var(--subtle);
}

.hero__title {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3rem;
  }
}

.hero__lede {
  margin-top: 1.25rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .hero__lede {
    font-size: 1.125rem;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }

  .hero__actions .btn {
    width: auto;
  }
}

.main-section {
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .main-section {
    padding-block: 4rem;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-head__title {
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .section-head__title {
    font-size: 1.5rem;
  }
}

.section-head__text {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.result-count {
  flex-shrink: 0;
  color: var(--subtle);
  font-size: 0.875rem;
}

.search__field {
  position: relative;
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: var(--subtle);
  pointer-events: none;
  transform: translateY(-50%);
}

.search__input {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.5rem 0 2.625rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--foreground);
  font-size: 0.875rem;
  appearance: none;
  transition: border-color var(--speed) var(--ease);
}

.search__input::placeholder {
  color: var(--subtle);
}

.search__input:hover {
  border-color: var(--border-strong);
}

.search__input:focus {
  outline: none;
  border-color: var(--border-strong);
}

.search__input::-webkit-search-cancel-button {
  display: none;
}

.search__clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--subtle);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.search__clear:hover {
  background-color: var(--surface-hover);
  color: var(--foreground);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.chip {
  height: 2rem;
  padding-inline: 0.75rem;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--foreground);
}

.chip[aria-pressed="true"] {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--foreground);
}

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

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

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

.card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color var(--speed) var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card--linked {
  cursor: pointer;
}

.card--linked:hover {
  background-color: var(--surface-hover);
}

.card__link {
  transition: color var(--speed) var(--ease);
}

.card--linked:hover .card__link,
.card__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.card__action {
  align-self: flex-start;
  margin-top: 1.25rem;
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--foreground);
}

.card__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.card__category {
  padding-top: 0.25rem;
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.card__title {
  margin-top: 1rem;
  font-size: 1rem;
}

.card__text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  list-style: none;
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.card__list .icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.1875rem;
  color: var(--subtle);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  background-color: rgba(24, 24, 27, 0.5);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  text-align: center;
}

.empty__icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--subtle);
}

.empty__title {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.empty__text {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.ad-slot__label {
  padding: 1.5rem 1rem;
  color: var(--subtle);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ad-slot ins {
  display: block;
  width: 100%;
}

.contact {
  background-color: rgba(24, 24, 27, 0.4);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 3.5rem;
}

@media (min-width: 640px) {
  .contact__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.contact__title {
  font-size: 1.125rem;
}

.contact__text {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.tool-page {
  padding-block: 2.5rem 3.5rem;
}

@media (min-width: 640px) {
  .tool-page {
    padding-block: 3.5rem 4.5rem;
  }
}

.tool-head {
  max-width: 44rem;
}

.tool-head__title {
  font-size: 1.75rem;
}

@media (min-width: 640px) {
  .tool-head__title {
    font-size: 2.25rem;
  }
}

.tool-head__text {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.tool-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
  }
}

.calc-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .calc-inputs {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.how-panel {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .how-panel {
    margin-top: 1.5rem;
  }
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  align-items: start;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }
}

.how-grid .notes {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.panel {
  padding: 1.25rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

@media (min-width: 640px) {
  .panel {
    padding: 1.5rem;
  }
}

.panel__title {
  font-size: 1rem;
}

.panel__text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.field {
  display: block;
}

.field + .field {
  margin-top: 1.25rem;
}

.field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.field__label .req {
  margin-left: 0.25rem;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 400;
}

.field__control {
  position: relative;
  margin-top: 0.5rem;
}

.field__input {
  width: 100%;
  height: 2.75rem;
  padding: 0 4.25rem 0 0.875rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--foreground);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  transition: border-color var(--speed) var(--ease);
}

.field__input::-webkit-outer-spin-button,
.field__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.field__input::placeholder {
  color: var(--subtle);
}

.field__input:hover {
  border-color: var(--border-strong);
}

.field__input:focus {
  outline: none;
  border-color: var(--border-strong);
}

.field__input[aria-invalid="true"] {
  border-color: var(--foreground);
}

.field__suffix {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  pointer-events: none;
  transform: translateY(-50%);
}

.field__hint {
  margin-top: 0.5rem;
  color: var(--subtle);
  font-size: 0.75rem;
  line-height: 1.5;
}

.field__error {
  margin-top: 0.5rem;
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .form-actions {
    flex-direction: row;
  }

  .form-actions .btn {
    width: auto;
    flex: 1 1 0;
  }
}

.form-error {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  background-color: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--foreground);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 1.125rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

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

.summary__value {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.summary__value--placeholder {
  color: var(--subtle);
  font-size: 1.25rem;
  font-weight: 400;
}

.summary__note {
  color: var(--subtle);
  font-size: 0.75rem;
}

.rows {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
}

.rows + .rows {
  border-top: 1px solid var(--border);
}

.rows__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6875rem;
}

.rows__row + .rows__row {
  border-top: 1px solid var(--border);
}

.rows__label {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.rows__hint {
  display: block;
  color: var(--subtle);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.rows__value {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.rows__value--muted {
  color: var(--muted);
}

.rows__row--total {
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-strong);
}

.rows__row--total .rows__label {
  color: var(--foreground);
  font-weight: 500;
}

.rows__row--total .rows__value {
  font-size: 0.9375rem;
  font-weight: 600;
}

.breakdown-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.how-grid .breakdown-wrap {
  margin-top: 0;
}

.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.breakdown th,
.breakdown td {
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.breakdown th {
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.breakdown td:last-child,
.breakdown th:last-child {
  text-align: right;
  white-space: nowrap;
}

.breakdown th:nth-child(2),
.breakdown td:nth-child(2) {
  white-space: nowrap;
}

.breakdown .num {
  font-variant-numeric: tabular-nums;
}

.breakdown .sub {
  display: block;
  color: var(--subtle);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.breakdown tbody tr:hover {
  background-color: var(--surface-hover);
}

.breakdown tfoot th,
.breakdown tfoot td {
  border-bottom: 0;
  border-top: 1px solid var(--border-strong);
  color: var(--foreground);
  font-weight: 600;
}

.breakdown tfoot .sub {
  color: var(--muted);
  font-weight: 400;
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  list-style: none;
}

.notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.notes .icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.1875rem;
  color: var(--subtle);
}

.bracket-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.75rem;
}

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

.bracket-table th {
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bracket-table td:last-child,
.bracket-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.bracket-table .num {
  font-variant-numeric: tabular-nums;
}

.bracket-table tr[data-active="true"] {
  background-color: var(--surface-hover);
}

.bracket-table tr[data-active="true"] td {
  color: var(--foreground);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer__brand {
  max-width: 24rem;
}

.footer__logo {
  height: 1.5rem;
  width: auto;
}

.footer__blurb {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer__cols {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer__cols {
    flex-direction: row;
    gap: 4rem;
  }
}

.footer__label {
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  list-style: none;
}

.footer__link {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color var(--speed) var(--ease);
}

.footer__link:hover {
  color: var(--foreground);
}

.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color var(--speed) var(--ease);
}

.footer__mail:hover {
  color: var(--foreground);
}

.footer__mail span {
  word-break: break-all;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__meta {
  color: var(--subtle);
  font-size: 0.75rem;
}

.legal {
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .legal {
    padding-block: 4rem;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--subtle);
  font-size: 0.75rem;
}

.breadcrumb a {
  transition: color var(--speed) var(--ease);
}

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

.legal__header {
  max-width: 42rem;
}

.legal__title {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .legal__title {
    font-size: 2.25rem;
  }
}

.legal__updated {
  margin-top: 0.75rem;
  color: var(--subtle);
  font-size: 0.8125rem;
}

.legal__intro {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal__body {
  max-width: 42rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal__body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
  color: var(--foreground);
  font-size: 1.0625rem;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p {
  margin-top: 0.875rem;
}

.legal__body ul,
.legal__body ol {
  margin-top: 0.875rem;
  padding-left: 1.25rem;
}

.legal__body ul {
  list-style: disc;
}

.legal__body ol {
  list-style: decimal;
}

.legal__body li {
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

.legal__body li::marker {
  color: var(--subtle);
}

.legal__body a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--speed) var(--ease);
}

.legal__body a:hover {
  text-decoration-color: var(--foreground);
}

.legal__body strong {
  color: var(--foreground);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
