/* Self-hosted, latin subset; other glyphs fall back to the system font. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/geist-5.3.0.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/geist-mono-5.3.0.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --panel: #101010;
  --surface: #151515;
  --raise: #1b1b1b;
  --line: #222222;
  --line-strong: #2f2f2f;
  --text: #ededed;
  --muted: #8b8b8b;
  --faint: #5a5a5a;
  --lime: #b4f03c;
  /* Paler lime for accents on cards that aren't selected. */
  --lime-soft: #d4f59a;
  --red: #f04646;
  --amber: #f5a524;
  --blue: #3d82f6;
  --radius: 8px;
  --sidebar: 248px;
  --sans:
    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px / 1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--text);
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--text);
}
mark {
  background: none;
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgba(180, 240, 60, 0.4);
  text-underline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
input:focus-visible {
  outline: none;
}
button:focus-visible,
.card:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* Small square status markers, the one visual motif used everywhere. */
.sq {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--faint);
  flex: none;
}
.sq-lime {
  background: var(--lime);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

/* Buttons + inputs */
button,
.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
button:hover,
.btn:hover {
  background: var(--raise);
  border-color: #3a3a3a;
}
.btn-primary,
button.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0a0a;
}
.btn-primary:hover,
button.btn-primary:hover {
  background: #fff;
  border-color: #fff;
}

input[type="search"],
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
input::placeholder {
  color: var(--faint);
}
input[type="search"]::-webkit-search-cancel-button {
  filter: invert(0.6);
}
input:hover {
  border-color: #3a3a3a;
}
input:focus {
  border-color: #4a4a4a;
  background: var(--raise);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* App shell (search page): sidebar with filters, inset main panel. */

.app {
  min-height: 100vh;
}
.search {
  margin: 0;
}
.field {
  position: relative;
  display: block;
}
.field-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.5;
  stroke-linecap: round;
  pointer-events: none;
}
.field input {
  padding-left: 34px;
}
.field-q input {
  padding-right: 38px;
}
.field-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font: 11px / 1 var(--mono);
  color: var(--muted);
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
}
.field-q input:focus ~ .field-kbd {
  opacity: 0;
}

.search-row {
  display: flex;
  gap: 8px;
}
.field-q {
  flex: 1 1 auto;
}
.field-loc {
  flex: 0 0 190px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home .sidebar {
  display: none;
}
.sidebar .brand {
  padding: 4px 6px;
}
.filters {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Checkbox rows, as in a filter dropdown. */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: #cfcfcf;
  cursor: pointer;
  user-select: none;
}
.check:hover {
  background: var(--surface);
  color: var(--text);
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex: none;
  cursor: pointer;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  display: grid;
  place-content: center;
}
.check input::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border: solid #0a0a0a;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.12s ease;
}
.check input:checked {
  background: var(--lime);
  border-color: var(--lime);
}
.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}
.check input:checked + span {
  color: var(--text);
}

/* Hero (home) */
.home-brand {
  display: none;
}
.home .home-brand {
  display: inline-flex;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: 12px / 1 var(--mono);
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.lede {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 16px;
}
.has-results .hero {
  display: none;
}

/* Results */
.results-panel {
  display: flex;
  flex-direction: column;
}
.results-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.results-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
}
.understood-label {
  color: var(--muted);
  margin-right: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--faint);
}
.chip-service::before {
  background: var(--lime);
}
.chip-trade::before {
  background: var(--amber);
}
.chip-location::before {
  background: var(--blue);
}
.chip-flag::before {
  background: var(--text);
}

.notice {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  margin: 8px 0;
  font-size: 14px;
  color: #cfcfcf;
}
.notice strong {
  color: var(--text);
  font-weight: 500;
}
.notice-coverage {
  border-color: rgba(245, 165, 36, 0.35);
  background: rgba(245, 165, 36, 0.06);
}
.notice-coverage strong {
  color: var(--amber);
}
.notice-error {
  border-color: rgba(240, 70, 70, 0.4);
  background: rgba(240, 70, 70, 0.06);
  color: #ffb4b4;
}

/* Result rows: a table-like list, hairline dividers, no boxes. */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cards > li {
  border-bottom: 1px solid var(--line);
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  padding: 18px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  outline-offset: -2px;
}
.card-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.card > :not(.card-cover) {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.card .card-name a,
.card .sponsored-label {
  pointer-events: auto;
}
.card-main {
  min-width: 0;
}
.card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.card-name a {
  color: var(--text);
  text-decoration: none;
}
.card-name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--faint);
}
.card-meta,
.profile-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.card-meta span + span::before,
.profile-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--faint);
}
.card-summary {
  margin: 8px 0 0;
  font-size: 14px;
  color: #c4c4c4;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.card-services,
.card-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.card-services {
  margin-top: 10px;
  font-size: 12.5px;
}
.card-services li {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #bdbdbd;
}
.card-services li.matched {
  border-color: rgba(212, 245, 154, 0.3);
  color: var(--text);
}
.card-services li.more {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}
.card-services mark {
  text-decoration: none;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.rating {
  font: 500 13px / 1.4 var(--mono);
  color: var(--text);
  white-space: nowrap;
}
.rating a {
  color: inherit;
}
.card .rating,
.profile-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile-meta .rating {
  gap: 6px;
}
/* Five stars, half-filled in steps of 0.5. Accents follow the card's selection state. */
.stars {
  --star-on: var(--lime);
  display: inline-flex;
  gap: 2px;
}
.card .stars {
  --star-on: var(--lime-soft);
}
.card.selected .stars {
  --star-on: var(--lime);
}
.stars i {
  width: 12px;
  height: 12px;
  background: var(--line-strong);
  clip-path: polygon(
    50% 0%,
    61.8% 35.4%,
    100% 38.2%,
    69.1% 61.8%,
    79.4% 100%,
    50% 76.4%,
    20.6% 100%,
    30.9% 61.8%,
    0% 38.2%,
    38.2% 35.4%
  );
}
.stars i.on {
  background: var(--star-on);
}
.stars i.half {
  background: linear-gradient(
    90deg,
    var(--star-on) 50%,
    var(--line-strong) 50%
  );
}
.card-flags {
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 13px;
  color: #cfcfcf;
}
.card-flags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.card-flags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--lime-soft);
}
.card mark {
  color: var(--lime-soft);
  text-decoration-color: rgba(212, 245, 154, 0.35);
}
.card.selected mark {
  color: var(--lime);
  text-decoration-color: rgba(180, 240, 60, 0.4);
}
.card.selected .card-flags li::before {
  background: var(--lime);
}
.card.selected .card-services li.matched {
  border-color: rgba(180, 240, 60, 0.35);
}

.sponsored {
  margin-bottom: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 0 12px;
}
.sponsored .card {
  margin: 0 -12px;
}
.sponsored .card + .card {
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.sponsored-label {
  display: inline-block;
  margin-bottom: 4px;
  font: 500 10.5px / 1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 22px 0 6px;
  align-items: center;
}
.pagination a,
.pagination span {
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font: 13px / 1.3 var(--mono);
  color: #cfcfcf;
}
.pagination a {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.pagination a:hover {
  background: var(--raise);
  color: var(--text);
}
.pagination .current {
  background: var(--text);
  color: #0a0a0a;
  font-weight: 500;
}
.pagination .gap {
  color: var(--faint);
}

/* Preview */
.preview {
  display: none;
}
.preview-empty {
  color: var(--muted);
  padding: 56px 24px;
  text-align: center;
  font-size: 14px;
}
.preview-empty p {
  margin: 0 auto;
  max-width: 300px;
}
.preview-empty-title {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px !important;
}
.waffle {
  display: grid;
  grid-template-columns: repeat(8, 10px);
  gap: 4px;
  justify-content: center;
  margin: 0 auto 22px;
}
.waffle i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--raise);
}
.waffle i.on {
  background: var(--lime);
}

/* Footer */
.site-footer {
  padding: 28px 0 32px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}
.site-footer p {
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

/* Desktop shell */
@media (min-width: 960px) {
  .app {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
  }
  .search {
    display: contents;
  }
  .sidebar {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 14px 16px;
  }
  .panel-bg {
    grid-column: 2;
    grid-row: 1 / -1;
    margin: 8px 8px 8px 0;
    z-index: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .topbar,
  .layout,
  .app > .site-footer {
    grid-column: 2;
    z-index: 1;
    margin: 0 9px 0 1px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .topbar {
    grid-row: 1;
    margin-top: 9px;
  }
  .layout {
    grid-row: 2;
  }
  .app > .site-footer {
    grid-row: 3;
    margin-bottom: 9px;
    border-top: 1px solid var(--line);
  }

  .has-results .topbar {
    position: sticky;
    top: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    border-radius: 11px 11px 0 0;
  }
  .has-results .search-row {
    max-width: 860px;
  }

  .home .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .home .panel-bg,
  .home .topbar,
  .home .layout,
  .home .app > .site-footer {
    grid-column: 1;
  }
  .home .panel-bg {
    margin-left: 8px;
  }
  .home .topbar,
  .home .layout,
  .home .app > .site-footer {
    margin-left: 9px;
  }
  .home .home-brand {
    position: absolute;
    top: 24px;
    left: 28px;
  }
  .home .topbar {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 48px;
    border-radius: 11px 11px 0 0;
    background: radial-gradient(
        circle at center,
        #2c2c2c 1px,
        transparent 1.3px
      )
      0 0 / 14px 14px;
    -webkit-mask-image: none;
  }
  .home .hero,
  .home .search-row {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .home .search-row {
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
  .home .search-row input {
    background: var(--panel);
    border-color: transparent;
  }
  .home .search-row input:focus {
    background: var(--surface);
    border-color: var(--line-strong);
  }
  .home .field-loc {
    border-left: 1px solid var(--line);
    padding-left: 8px;
  }
  .home .field-loc .field-icon {
    left: 19px;
  }
  .home .layout {
    display: none;
  }

  .has-results .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 28px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .has-results .preview {
    display: block;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }

  .card-cover {
    display: none;
  }
  .card {
    cursor: pointer;
    transition: background-color 0.12s ease;
  }
  .card > :not(.card-cover) {
    pointer-events: auto;
  }
  .card:hover {
    background: var(--surface);
  }
  .card.selected,
  .card.selected:hover {
    background: rgba(180, 240, 60, 0.09);
  }
  /* Hide the dividers above and below the selected card so its rounded tint stands alone. */
  .cards:has(> li:first-child .card.selected),
  .cards > li:has(.card.selected),
  .cards > li:has(+ li .card.selected),
  .sponsored .card.selected,
  .sponsored .card.selected + .card {
    border-top-color: transparent;
    border-bottom-color: transparent;
  }
}
@media (min-width: 1440px) {
  .has-results .layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  }
}

/* Mobile shell: brand, search, filters as a chip strip. */
@media (max-width: 959.98px) {
  .app {
    padding: 0 16px;
  }
  .search {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 18px;
  }
  .sidebar {
    display: contents;
  }
  .sidebar .brand {
    padding: 0;
  }
  .topbar {
    order: 1;
  }
  .filters {
    order: 2;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filter-group {
    flex-direction: row;
    gap: 6px;
  }
  .side-label,
  .panel-bg {
    display: none;
  }
  .check {
    flex: none;
    padding: 6px 11px 6px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--surface);
    font-size: 13px;
    gap: 8px;
  }
  .check input {
    width: 14px;
    height: 14px;
  }
  .home .hero {
    padding-top: 6vh;
  }
  .layout {
    padding-bottom: 8px;
  }
  .card {
    padding: 16px 12px;
  }
}
@media (max-width: 640px) {
  .search-row {
    flex-wrap: wrap;
  }
  .field-q {
    flex-basis: 100%;
  }
  .field-loc {
    flex: 1 1 auto;
  }
  .field-kbd {
    display: none;
  }
  .card {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    order: 2;
    gap: 4px 14px;
  }
  .card-flags {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
  }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Standalone pages (profile, not found) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 24px;
}
body:not(.app-page) > .site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  border-top: 1px solid var(--line);
}

.header-search {
  display: flex;
  gap: 6px;
  flex: 1 1 420px;
  max-width: 620px;
  margin-left: auto;
}
.header-search input {
  padding: 8px 12px;
}
.header-search input[name="loc"] {
  max-width: 150px;
}
.header-search button {
  padding: 7px 14px;
}

.profile-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px clamp(18px, 4vw, 36px);
}

/* Profile (preview pane and full page) */
.profile-name {
  margin: 0;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
}
h1.profile-name {
  font-size: clamp(26px, 4vw, 36px);
}
h2.profile-name {
  font-size: 21px;
}
.profile-name a {
  color: var(--text);
  text-decoration: none;
}
.profile-name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--faint);
}
.profile-meta {
  margin-top: 6px;
}
.profile-meta .rating {
  font-size: 12.5px;
}
.profile-head .card-flags {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 10px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact .btn-primary {
  font-family: var(--mono);
  font-size: 13px;
}
.contact-notes {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 13px;
  width: 100%;
}
.profile-summary {
  font-size: 15.5px;
  line-height: 1.6;
  color: #d6d6d6;
  margin: 0 0 4px;
}

.profile section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px / 1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 26px 0 10px;
}
.profile section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.facts > li {
  position: relative;
  padding-left: 15px;
}
.facts > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--line-strong);
}
.facts-highlights > li::before {
  background: var(--lime);
}
.facts-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 3px 18px;
}
.facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.facts-inline > li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 13px;
}
.facts-inline > li::before {
  display: none;
}
.facts-highlights li {
  font-size: 14.5px;
}

.profile-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.profile-facts dt {
  color: var(--muted);
}
.profile-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
}
.profile-foot {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.profile-foot p {
  margin: 0 0 6px;
}

.page-main > .notice {
  max-width: 560px;
  margin: 12vh auto;
  padding: 28px;
  text-align: center;
}
.page-main > .notice h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Docs, privacy and terms */
.doc {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
  color: #cfcfcf;
}
.doc h1 {
  margin: 4px 0 4px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.doc h2 {
  margin: 40px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  scroll-margin-top: 72px;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  scroll-margin-top: 72px;
}
.doc p,
.doc ul {
  margin: 0 0 12px;
}
.doc ul {
  padding-left: 20px;
}
.doc li + li {
  margin-top: 4px;
}
.doc strong {
  color: var(--text);
  font-weight: 500;
}
.doc-updated {
  color: var(--muted);
  font-size: 13px;
}
.doc code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.doc pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-x: auto;
  line-height: 1.5;
}
.doc pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  overflow-wrap: normal;
}
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 20px 0 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}
.doc-toc a {
  color: var(--muted);
  text-decoration: none;
}
.doc-toc a:hover {
  color: var(--text);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 0 0 16px;
}
.table-wrap table {
  margin: 0;
}
.doc th,
.doc td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.doc td:first-child code {
  white-space: nowrap;
  overflow-wrap: normal;
}
.doc tbody th {
  width: 1%;
}
.code-list {
  columns: 2 240px;
  list-style: none;
  padding-left: 0 !important;
  font-size: 13.5px;
}
.code-list li {
  break-inside: avoid;
}

@media (max-width: 640px) {
  .header-search input[name="loc"] {
    display: none;
  }
  .site-header {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
