/*
 * RTP Directory — company pages, the companies index and the claim form.
 * Loaded after styles.css, which provides the design tokens and the shared
 * components (logo, pill, chip, rows, socials, dropdown menu, toast).
 */

html.page,
html.page body {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

html.page {
  scroll-padding-top: 84px;
}

/* Components below set display; keep the hidden attribute authoritative. */
html.page [hidden] {
  display: none !important;
}

html.page body {
  background:
    radial-gradient(1100px 520px at 88% -160px, color-mix(in srgb, var(--pine) 10%, transparent), transparent 70%),
    radial-gradient(900px 460px at -12% -60px, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--paper);
  background-repeat: no-repeat;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn:hover {
  background: var(--card-hover);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px var(--glow);
}

.btn.icon-only {
  width: 42px;
  padding: 0;
}

.btn.wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.15s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.link-btn {
  padding: 4px 6px;
  margin: -4px -2px;
  border-radius: 8px;
  font-size: inherit;
  font-weight: 650;
  color: var(--accent);
}

.link-btn:hover {
  background: var(--accent-soft);
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link .icon {
  width: 16px;
  height: 16px;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--line);
  color: var(--ink);
}

.site-nav .menu {
  margin: 0 2px 0 6px;
}

.site-nav .menu-btn .lead {
  display: block;
}

.menu-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent);
}

/* ----------------------------------------------------------- Breadcrumbs */

.crumbs {
  margin: 22px 0 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.crumbs a {
  color: var(--ink-2);
  font-weight: 550;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current] {
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------- Company hero */

.profile-hero {
  position: relative;
  padding: 0 32px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-cover {
  position: relative;
  height: 184px;
  margin: 0 -32px;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255, 255, 255, 0.32), transparent 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(0, 0, 0, 0.2), transparent 60%),
    linear-gradient(125deg, var(--c), color-mix(in srgb, var(--c) 55%, #10231c));
}

.profile-cover::before {
  content: "";
  position: absolute;
  inset: -60% -10% -60% 30%;
  background: repeating-radial-gradient(circle at 60% 55%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px);
  opacity: 0.7;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.12));
}

.profile-id {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
  margin-top: -52px;
}

.logo.xl {
  width: 116px;
  height: 116px;
  border-radius: 30px;
  border: 5px solid var(--panel-solid);
  box-shadow: 0 10px 30px -12px rgba(16, 35, 28, 0.35);
}

.logo.xl img {
  padding: 13px;
}

.logo.xl .mono {
  font-size: 40px;
}

.profile-title {
  min-width: 0;
  margin-top: 64px;
}

.profile-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 120;
  overflow-wrap: anywhere;
}

.profile-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-3);
}

.profile-sub .sep {
  opacity: 0.5;
}

.profile-hero .pills {
  margin-top: 20px;
}

.pill.claimed {
  background: color-mix(in srgb, var(--pine) 14%, transparent);
  color: var(--pine);
}

.pill-link {
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.pill-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.profile-hero .lead {
  margin-top: 16px;
}

.lead {
  max-width: 64ch;
  margin: 0;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------------------------------------------------------- Company body */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 22px;
  align-items: start;
  margin: 22px 0 64px;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.profile-side {
  position: sticky;
  top: 86px;
}

.block,
.side-card {
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}

.side-card {
  padding: 22px;
}

.block h2,
.side-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.block h2 .count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--line);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-2);
}

.block .rows,
.side-card .rows {
  margin: -6px -10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.block a.row,
.side-card a.row {
  border-radius: 12px;
}

.side-card .rows li + li,
.block .rows li + li {
  border-top-color: var(--line);
}

.about-text {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
}

.empty-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

.about-text.empty-note {
  margin-bottom: 18px;
}

.empty-note a,
.src-edit a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}

.facts div {
  padding: 12px 14px;
  background: var(--panel-solid);
}

.facts div:last-child:nth-child(odd) {
  grid-column: span 2;
}

.facts dt {
  font-size: 11.5px;
  color: var(--ink-3);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 560;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--line);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
}

/* Location */

.loc {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.loc.no-map {
  grid-template-columns: minmax(0, 1fr);
}

.park-map {
  position: relative;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pine) 7%, transparent), transparent 70%),
    var(--panel-solid);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.park-map:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.park-svg {
  display: block;
  width: 100%;
  height: auto;
}

.pm-park {
  fill: color-mix(in srgb, var(--pine) 9%, transparent);
  stroke: var(--pine);
  stroke-width: 1.3;
  stroke-dasharray: 4 3;
  stroke-linejoin: round;
}

.pm-dots {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 3.4;
  stroke-linecap: round;
  opacity: 0.4;
}

.pm-ring {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pm-pulse 2.4s var(--ease) infinite;
}

.pm-pin {
  fill: var(--accent);
  stroke: var(--panel-solid);
  stroke-width: 2.5;
}

@keyframes pm-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  80%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.park-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  margin: 0 8px 8px;
  border-radius: 10px;
  background: var(--line);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}

.park-cap .icon {
  width: 14px;
  height: 14px;
}

.park-map:hover .park-cap {
  background: var(--ink);
  color: var(--paper);
}

/* Also here */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: 100%;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.mini:hover {
  border-color: color-mix(in srgb, var(--c) 45%, var(--line-2));
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.mini > span:last-child {
  min-width: 0;
}

.mini b,
.mini small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini b {
  font-size: 13.5px;
  font-weight: 620;
}

.mini small {
  font-size: 12px;
  color: var(--ink-3);
}

.logo.sm,
.logo.xs {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.logo.xs {
  width: 34px;
  height: 34px;
}

.logo.sm img,
.logo.xs img {
  padding: 4px;
}

.logo.sm .mono,
.logo.xs .mono {
  font-size: 13px;
}

.block .text-link {
  margin-top: 14px;
}

/* Source */

.source-block {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
}

.status-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.status-line .icon {
  margin-top: 1px;
  color: var(--pine);
}

.status-line.warn .icon {
  color: #a86b00;
}

[data-theme="dark"] .status-line.warn .icon {
  color: #f1b64a;
}

.src-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-3);
}

.src-meta a {
  color: var(--ink-2);
  font-weight: 600;
  text-underline-offset: 3px;
}

.src-edit {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* Claim box */

.claim-box {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 11%, var(--panel-solid)), var(--panel-solid) 62%);
}

.claim-box::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  background: repeating-radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0 1px, transparent 1px 14px);
  opacity: 0.55;
  pointer-events: none;
}

.claim-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -10px var(--glow);
}

.claim-badge .icon {
  width: 22px;
  height: 22px;
}

.side-card.claim-box h2 {
  position: relative;
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--ink);
}

.claim-box p {
  position: relative;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.claim-box .text-link {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* ------------------------------------------------------ Companies index */

.index-hero,
.claim-hero {
  max-width: 780px;
  padding: 56px 0 26px;
}

.index-hero h1,
.claim-hero h1 {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 144;
  overflow-wrap: anywhere;
}

.index-hero h1 i {
  font-weight: 400;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.index-tools {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: grid;
  gap: 10px;
  margin: 12px -14px 0;
  padding: 14px 14px 2px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0 0 18px 18px;
}

.index-search {
  margin: 0;
}

.index-chips {
  padding: 2px 14px 12px;
  margin: 0 -14px;
}

.index-count {
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.index-count b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.letter {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.letter h2 {
  position: sticky;
  top: 190px;
  align-self: start;
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink-3);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  height: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.tile:hover {
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--c) 40%, var(--line-2));
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tile-body {
  min-width: 0;
  padding-top: 2px;
}

.tile-desc {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.index-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--ink-3);
}

.index-empty > .icon {
  width: 28px;
  height: 28px;
}

.index-empty h2 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
}

.index-empty a {
  color: var(--accent);
  font-weight: 600;
}

.index-empty .btn {
  margin-top: 16px;
}

.cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin: 40px 0 72px;
  padding: 32px 34px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(125deg, #0f5b4b, #0a332b);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% -50% 45%;
  background: repeating-radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
}

.cta-band p {
  max-width: 52ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-band .btn {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-band .btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-band .btn.primary {
  border-color: #fff;
  background: #fff;
  color: #10231c;
}

.cta-band .btn.primary:hover {
  border-color: #ff7a4d;
  background: #ff7a4d;
  color: #1b0e08;
}

/* ------------------------------------------------------------ Claim page */

.claim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  margin-bottom: 72px;
}

.form-card {
  position: relative;
  padding: 26px 30px 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow-lg);
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: var(--line);
}

.topic {
  position: relative;
  display: block;
}

.topic input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.topic span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.topic span .icon {
  width: 16px;
  height: 16px;
}

.topic:hover span {
  color: var(--ink);
}

.topic input:checked + span {
  background: var(--panel-solid);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 35, 28, 0.08), 0 4px 12px -4px rgba(16, 35, 28, 0.18);
}

.topic input:checked + span .icon {
  color: var(--accent);
}

.topic input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.label {
  font-size: 13px;
  font-weight: 620;
  color: var(--ink);
}

.opt {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="url"],
.form-card select,
.form-card textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-card textarea {
  height: auto;
  min-height: 112px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.form-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2375847c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: var(--ink-3);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--accent);
  background-color: var(--card-hover);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-card [aria-invalid="true"] {
  border-color: #cf3f55;
  box-shadow: 0 0 0 4px rgba(207, 63, 85, 0.12);
}

.hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

.hint:empty {
  display: none;
}

.hint .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.hint.ok {
  color: var(--pine);
}

.hint.warn {
  color: #a86b00;
}

[data-theme="dark"] .hint.warn {
  color: #f1b64a;
}

.field-error {
  margin: 0;
  font-size: 12.5px;
  font-weight: 550;
  color: #cf3f55;
}

.form-h {
  margin: 10px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check b {
  color: var(--ink);
}

.check.invalid span {
  color: #cf3f55;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(207, 63, 85, 0.1);
  color: #b3263e;
  font-size: 14px;
  line-height: 1.5;
}

[data-theme="dark"] .form-error {
  color: #ff8f9f;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.btn.submit {
  height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

.btn.submit[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.fine {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Business picker */

.combo {
  position: relative;
}

.combo > .icon {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--ink-3);
  pointer-events: none;
}

.form-card .combo input {
  padding-left: 42px;
}

.combo-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 330px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--panel-solid);
  box-shadow: var(--shadow-lg);
}

.combo-opt {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 11px;
  cursor: pointer;
}

.combo-opt[aria-selected="true"] {
  background: var(--line);
}

.combo-opt b,
.combo-opt small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-opt b {
  font-size: 14px;
  font-weight: 600;
}

.combo-opt small {
  font-size: 12px;
  color: var(--ink-3);
}

.combo-opt .add-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.combo-empty {
  padding: 10px 10px 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.biz-picked {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--c, var(--ink-3)) 38%, var(--line-2));
  background: color-mix(in srgb, var(--c, var(--ink-3)) 7%, var(--card));
}

.biz-picked[hidden] {
  display: none;
}

.biz-picked .logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.biz-picked .logo .mono {
  font-size: 18px;
}

.biz-picked > span {
  min-width: 0;
}

.biz-picked b {
  display: block;
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.biz-picked small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.biz-picked .claimed-note {
  color: var(--pine);
  font-weight: 600;
}

/* Done */

.form-done {
  padding: 34px 8px 8px;
  text-align: center;
  outline: none;
}

.done-ic {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pine) 14%, transparent);
  color: var(--pine);
  animation: pop 0.5s var(--ease) both;
}

.done-ic .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.form-done h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.015em;
}

.form-done p {
  max-width: 46ch;
  margin: 0 auto 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.form-done code {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--line);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* Claim sidebar */

.claim-side {
  display: grid;
  gap: 18px;
}

.ticks,
.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.ticks .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--pine);
}

.ticks b {
  color: var(--ink);
}

.steps {
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.steps b {
  font-size: 14.5px;
  font-weight: 650;
}

.steps span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  padding: 44px 0 28px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 55%, transparent);
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.4fr);
  gap: 32px;
}

.foot-brand p {
  max-width: 40ch;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

.foot-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.foot-col h2 {
  margin: 6px 0 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.foot-col a {
  width: fit-content;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-sub p {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.foot-sub form {
  display: flex;
  gap: 8px;
}

.foot-sub input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.foot-sub input::placeholder {
  color: var(--ink-3);
}

.foot-sub input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ------------------------------------------------------ Subscribe page */

.interests {
  display: grid;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.interests legend {
  margin-bottom: 8px;
  padding: 0;
}

.interest {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.interest input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.interest .box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--line-2);
  background: var(--panel-solid);
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.interest .box .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.interest b {
  display: block;
  font-size: 14.5px;
  font-weight: 620;
}

.interest small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}

.interest:hover {
  border-color: var(--ink-3);
}

.interest:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2));
  background: color-mix(in srgb, var(--accent) 6%, var(--card));
}

.interest input:checked + .box {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.interest input:focus-visible + .box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.interests + .field-error {
  margin: -2px 0 12px;
}

.interests + .field-error[hidden] + .field,
.interests + .field-error + .field {
  margin-top: 12px;
}

.consent {
  margin: 4px 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.consent a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

.manage-h {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
}

.manage-email {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.manage-email b {
  color: var(--ink);
}

.side-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.foot-fine {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1020px) {
  .profile-grid,
  .claim-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-side {
    position: static;
  }

  .foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1160px, 100% - 28px);
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-brand,
  .foot-sub {
    grid-column: 1 / -1;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .letter {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .letter h2 {
    position: static;
    font-size: 26px;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    padding: 20px 18px 22px;
    border-radius: 22px;
  }

  .topic span {
    flex-direction: column;
    gap: 2px;
    height: 54px;
    font-size: 12.5px;
    line-height: 1.2;
  }

  .index-hero,
  .claim-hero {
    padding: 34px 0 18px;
  }

  .lead {
    font-size: 16px;
  }

  .cta-band {
    padding: 26px 22px;
  }
}

@media (max-width: 640px) {
  .nav-link span {
    display: none;
  }

  .nav-link {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .site-nav .menu-btn .lead {
    display: none;
  }

  .profile-hero {
    padding: 0 20px 22px;
    border-radius: 24px;
  }

  .profile-cover {
    height: 132px;
    margin: 0 -20px;
  }

  .profile-id {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -44px;
  }

  .logo.xl {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    border-width: 4px;
  }

  .logo.xl .mono {
    font-size: 30px;
  }

  .profile-title {
    margin-top: 14px;
  }

  .profile-actions .btn {
    flex: 1 1 auto;
  }

  .profile-actions .btn.icon-only {
    flex: 0 0 42px;
  }

  .block,
  .side-card {
    padding: 20px;
  }

  .loc {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .site-nav .nav-link:first-child,
  .site-nav #theme-toggle {
    display: none;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts div:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .site-nav .menu-btn .lbl {
    display: none;
  }

  .site-nav .menu-btn .lead {
    display: block;
  }
}
