/* Intrinsic Radar — the Classical design system, adapted for the product.
   Editorial, book-like: Cormorant Garamond headings over Lora body, hairline
   rules, colour applied as stroke rather than fill. Tokens first; every page
   takes its colour, type and spacing from them. Fonts are self-hosted through
   next/font, which sets --font-heading-src / --font-body-src on <html>. */

:root {
  --color-bg: #f6f3ee;
  --color-surface: #ece7de;
  --color-text: #201f1d;
  --color-accent: #b68235;
  --color-divider: color-mix(in srgb, #201f1d 16%, transparent);
  --kicker: var(--color-accent-700);
  /* Positive movement. Negative is simply muted: the system has one accent. */
  --pos: var(--color-accent-700);
  --muted: color-mix(in srgb, var(--color-text) 60%, transparent);
  --muted-strong: color-mix(in srgb, var(--color-text) 75%, transparent);
  --muted-soft: color-mix(in srgb, var(--color-text) 55%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff3e4;
  --color-accent-200: #ffe3bf;
  --color-accent-300: #facb8d;
  --color-accent-400: #e1ad66;
  --color-accent-500: #c28d41;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;
  --color-accent-800: #5a3b0a;
  --color-accent-900: #3a270d;

  --font-heading: var(--font-heading-src, "Cormorant Garamond"), Georgia, serif;
  --font-heading-weight: 600;
  --font-body: var(--font-body-src, "Lora"), Georgia, serif;

  --space-1: 4.6px;
  --space-2: 9.2px;
  --space-3: 13.8px;
  --space-4: 18.4px;
  --space-6: 27.6px;
  --space-8: 36.8px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --measure: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-bg: #181513;
  --color-surface: #2d2b2b;
  --color-text: #f3f2f2;
  --color-divider: color-mix(in srgb, #f3f2f2 18%, transparent);
  --kicker: var(--color-accent-300);
  --pos: var(--color-accent-300);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-wrap: pretty;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 28px;
  font-weight: 400;
  transition:
    background-color 0.6s ease,
    color 0.6s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--color-accent-600);
}
:root[data-theme="dark"] a:hover {
  color: var(--color-accent-300);
}

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

:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.tnum {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.muted-soft {
  color: var(--muted-soft);
}
.right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
.positive {
  color: var(--pos);
}
.negative {
  color: var(--muted);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ keyframes */

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes blip {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes kenburns {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}
@keyframes drift {
  from {
    transform: translate(-40px, -10px);
  }
  to {
    transform: translate(40px, 12px);
  }
}

/* Reveal on scroll where the browser can; elsewhere the animation simply
   plays once on load. */
.rise {
  animation: rise 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}
.page-in {
  animation: pageIn 0.5s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------ components */

.hr {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--color-divider);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.35s var(--ease);
}
.btn svg {
  display: block;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}
.btn-primary:active {
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.btn-secondary {
  border-color: var(--color-divider);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}
.btn-ghost {
  color: var(--color-accent);
  padding-inline: var(--space-1);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}
.btn-lg {
  font-size: 15px;
  padding: 10px 20px;
}

.field > label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
select.input {
  appearance: auto;
  background: var(--color-bg);
}
.input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.input:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}
.input::placeholder {
  color: var(--muted-soft);
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-row input {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--color-divider);
  transition:
    border-color 0.25s ease,
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}
.card-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.card-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 1.2;
}
.card-body {
  margin: 0;
  font-size: 13px;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
  white-space: nowrap;
  font-family: var(--font-body);
  text-transform: none;
}
.tag-accent {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}
.tag-neutral {
  background: var(--color-neutral-100);
  color: var(--color-neutral-800);
}
.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}
.tag-alert {
  border: 1px solid currentColor;
  color: var(--color-text);
}
:root[data-theme="dark"] .tag-accent {
  background: var(--color-accent-900);
  color: var(--color-accent-200);
}
:root[data-theme="dark"] .tag-neutral {
  background: var(--color-neutral-800);
  color: var(--color-neutral-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.table th {
  text-align: left;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: middle;
}
.table tbody tr {
  transition:
    background-color 0.25s ease,
    transform 0.35s var(--ease);
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.table th.right,
.table td.right {
  text-align: right;
}
.table-compact {
  font-size: 13.5px;
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
}
.ticker-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}
.ticker-link:hover {
  color: var(--color-accent);
}
.score-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
}
.cell-name {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-note {
  font-size: 12.5px;
  color: var(--muted);
  white-space: normal;
  max-width: 360px;
}

.plate {
  filter: sepia(0.22) saturate(0.82) contrast(1.05);
  box-sizing: border-box;
  border: 6px solid var(--color-surface);
  outline: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.2s var(--ease),
    filter 0.6s ease;
}
.plate-motion {
  width: 100%;
  height: 100%;
  animation: kenburns 32s ease-in-out infinite alternate;
}
.plate-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  /* Same visual position as before; the padding is the hit area. */
  padding: 8px 10px;
  z-index: 1;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.04em;
  color: rgba(243, 242, 242, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}
.plate-credit:hover {
  color: #fff;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 12vh var(--space-4) var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
  z-index: 50;
  animation: fadeIn 0.2s ease both;
}
.dialog {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
  animation: pageIn 0.25s ease both;
}

/* Touch screens: every control at least 44px, the size a fingertip can hit
   without zooming. Pointer devices keep the denser desktop sizes. */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }
  .btn-icon {
    width: 44px;
    height: 44px;
  }
  .input {
    min-height: 44px;
  }
  .brand {
    min-height: 44px;
  }
  .plate-credit {
    padding: 15px 10px;
  }
}

/* ---------------------------------------------------------- notices */

.notice {
  border-left: 2px solid var(--color-accent);
  padding: 8px 16px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--muted-strong);
}
.notice strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
}
.notice.error {
  border-left-color: var(--color-text);
}
.empty {
  border-top: 1px solid var(--color-divider);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 24px;
  max-width: 64ch;
}
.empty strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------- layout */

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.app-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 42px var(--gutter) 84px;
}
.kicker {
  display: block;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-bottom: 14px;
}
.kicker-inline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kicker);
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-divider);
}
.page-head h1 {
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.page-head .lede {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 24px;
  color: var(--muted-strong);
}
.page-head .aside {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 24px;
  color: var(--muted-strong);
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.section-title {
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 10px;
}
.section-title-spaced {
  margin-top: 42px;
}
.page-foot {
  margin-top: 28px;
  font-size: 13.5px;
  line-height: 22px;
  color: var(--muted);
  max-width: 70ch;
}
.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 28px 0 18px;
}
.filters .field {
  min-width: 110px;
}
.filters .field-wide {
  min-width: 200px;
  flex: 1 1 200px;
}
.filters .field-select {
  min-width: 150px;
}
.pager {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0;
  font-size: 14px;
  font-feature-settings: "tnum" 1;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.kv-rows {
  margin: 0;
  font-size: 14px;
  font-feature-settings: "tnum" 1;
}
.kv-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--color-divider);
}
.kv-rows dt {
  color: var(--muted);
}
.kv-rows dd {
  margin: 0;
  text-align: right;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 56px;
}
.code-block {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bar {
  height: 3px;
  background: var(--color-divider);
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform-origin: left;
  animation: grow 1s var(--ease) both;
}

/* ---------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px max(20px, calc((100% - var(--measure)) / 2 + 20px)) 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
  flex: none;
}
.brand:hover {
  color: var(--color-text);
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-top: 4px;
}
.header-status-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.header-status {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
}
.header-status > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-neutral-500);
  display: inline-block;
}
.dot.live {
  background: var(--color-accent);
  animation: blip 2.4s ease-in-out infinite;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.search-trigger {
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  min-width: 150px;
  justify-content: flex-start;
}
.search-trigger .label {
  flex: 1;
  text-align: left;
}
.search-trigger kbd {
  font: 11px/1 var(--font-body);
  border: 1px solid var(--color-divider);
  border-radius: 3px;
  padding: 2px 5px;
}
.site-nav {
  border-top: 1px solid var(--color-divider);
  padding: 0 max(20px, calc((100% - var(--measure)) / 2 + 20px));
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav-row {
  display: flex;
  min-width: max-content;
}
.nav-link {
  position: relative;
  display: block;
  padding: 11px 16px 10px;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--color-accent);
}
.nav-link[aria-current="page"] {
  color: var(--color-text);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
@media (max-width: 1180px) {
  .header-status-wrap {
    display: none;
  }
}
@media (max-width: 720px) {
  .brand-tagline {
    display: none;
  }
  .search-trigger {
    min-width: 0;
  }
  .search-trigger .label,
  .search-trigger kbd {
    display: none;
  }
}

/* ---------------------------------------------------------- palette */

.palette-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-text);
  font: 400 20px/1.4 var(--font-heading);
  padding: 16px 20px;
  outline: none;
}
.palette-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 52vh;
  overflow-y: auto;
}
.palette-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 9px 12px;
}
.palette-item:hover,
.palette-item.selected {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}
.palette-primary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}
.palette-secondary {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.palette-note {
  color: var(--muted);
  margin: 0;
  padding: 12px 20px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: 42px 0 56px;
  font-size: 13px;
  line-height: 22px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.site-footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.site-footer-brand .brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

/* ---------------------------------------------------------- Clerk modal */

.cl-modalBackdrop {
  padding: 16px !important;
  align-items: flex-start !important;
  padding-top: max(16px, env(safe-area-inset-top)) !important;
}
.cl-modalContent {
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.cl-card {
  width: min(420px, 100%) !important;
}
.cl-formFieldRow,
.cl-formFieldRow__name,
.cl-formField,
.cl-formField__firstName,
.cl-formField__lastName {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
}
.cl-formFieldInput {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}
.cl-formFieldLabel {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 4px !important;
}
.cl-form {
  height: auto !important;
  min-height: 0 !important;
}
.cl-modalCloseButton {
  position: sticky !important;
  top: 0 !important;
  z-index: 20;
  background: var(--color-bg);
}
