/*
 * Compact directory pages generated from registry data.
 * Business facts lead; detailed methodology stays on /methodology/.
 */

.reg-page {
  --reg-shell: 1180px;
  margin: 0;
  background: var(--foam-50);
  color: var(--pacific-900);
}

.reg-page .tc-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.reg-shell {
  width: min(calc(100% - 32px), var(--reg-shell));
  margin-inline: auto;
}

.reg-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.reg-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--pacific-900);
  font-size: .86rem;
  font-weight: 700;
}

.reg-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sky-400);
  text-underline-offset: 4px;
}

.reg-eyebrow {
  margin: 0 0 8px;
  color: var(--pacific-700);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reg-hero {
  padding: clamp(46px, 6vw, 72px) 0;
  background: var(--white);
  border-bottom: 1px solid var(--sky-400);
}

.reg-title {
  max-width: 19ch;
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.reg-hero__lede {
  margin: 18px 0 0;
  color: var(--pacific-700);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-variant-numeric: tabular-nums;
}

.reg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 24px;
}

.reg-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--sun-300);
  border-radius: 8px;
  background: var(--sun-300);
  color: var(--white);
  font-weight: 700;
  box-shadow: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.reg-button:hover {
  background: #bf4738;
  border-color: #bf4738;
}

.reg-button:active {
  box-shadow: none;
}

.reg-change {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--pacific-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sky-400);
  text-underline-offset: 4px;
}

.reg-method {
  padding: clamp(42px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--sky-400);
  background: var(--white);
}

.reg-method .reg-shell {
  display: grid;
  gap: 5px;
}

.reg-method p {
  margin: 0;
  color: var(--pacific-700);
  font-size: .84rem;
  line-height: 1.5;
}

.reg-method a {
  color: var(--pacific-900);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reg-listing {
  padding: clamp(46px, 6vw, 76px) 0;
}

.reg-listing__head {
  display: grid;
  gap: 10px;
  align-items: end;
  margin-bottom: 24px;
}

.reg-h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.reg-listing__head > p {
  margin: 0;
  color: var(--pacific-700);
  font-size: .83rem;
  font-variant-numeric: tabular-nums;
}

.reg-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reg-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 25px);
  border: 1px solid var(--sky-400);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.reg-card__main {
  min-width: 0;
}

.reg-card__name {
  margin: 0;
  color: var(--pacific-900);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.15;
}

.reg-card__rating {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
  margin: 10px 0 0;
  color: var(--pacific-700);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.reg-card__rating strong {
  color: var(--pacific-900);
  font-size: 1.08rem;
}

.reg-card__rating strong span[aria-hidden] {
  color: var(--ocean-600);
}

.reg-card__rating small {
  color: var(--pacific-700);
  font-size: .72rem;
}

.reg-license {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--sky-400);
  border-radius: 8px;
  background: var(--foam-100);
  color: var(--pacific-700);
  font-size: .8rem;
  line-height: 1.4;
}

.reg-license__label {
  color: var(--pacific-900);
  font-weight: 700;
}

.reg-license strong {
  color: var(--pacific-900);
  font-variant-numeric: tabular-nums;
}

.reg-license__class,
.reg-license__status {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reg-license__status {
  flex-basis: 100%;
}

.reg-license a {
  color: var(--pacific-900);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sky-400);
  text-underline-offset: 3px;
}

.reg-license--check {
  background: var(--sand-200);
}

.reg-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-content: start;
}

.reg-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--sky-400);
  border-radius: 8px;
  background: var(--foam-50);
  color: var(--pacific-900);
  box-shadow: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

a.reg-action:hover {
  background: var(--foam-100);
  border-color: var(--ocean-600);
}

.reg-action span:first-child {
  color: var(--pacific-700);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reg-action strong {
  overflow: hidden;
  margin-top: 2px;
  color: var(--pacific-900);
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-action--call {
  color: var(--white);
  background: var(--sun-300);
  border-color: var(--sun-300);
}

.reg-action--site {
  color: var(--white);
  background: var(--pacific-900);
  border-color: var(--pacific-900);
}

.reg-action--call span:first-child,
.reg-action--call strong,
.reg-action--site span:first-child,
.reg-action--site strong {
  color: var(--white);
}

.reg-action--quiet,
.reg-action--blank {
  background: var(--foam-100);
}

.reg-action--quiet {
  grid-column: 1 / -1;
}

.reg-action--blank {
  box-shadow: none;
}

.reg-extras {
  padding: 0 0 clamp(48px, 6vw, 76px);
}

.reg-extras__grid {
  display: grid;
  gap: 16px;
}

.reg-resource,
.reg-notes {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--sky-400);
  border-radius: 8px;
  background: var(--white);
}

.reg-resource h2 {
  margin: 0;
  font-size: 1.25rem;
}

.reg-resource p:not(.reg-eyebrow) {
  margin: 8px 0 0;
  color: var(--pacific-700);
  font-size: .9rem;
}

.reg-resource a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--pacific-900);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sky-400);
  text-underline-offset: 4px;
}

.reg-notes summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--pacific-900);
  font-weight: 700;
  cursor: pointer;
}

.reg-notes__body {
  padding-top: 10px;
  border-top: 1px solid var(--sky-400);
}

.reg-notes__body p {
  margin: 12px 0 0;
  color: var(--pacific-700);
  font-size: .9rem;
  line-height: 1.6;
}

.reg-claim {
  padding: clamp(42px, 5vw, 64px) 0;
  border-block: 1px solid var(--sky-400);
  background: var(--foam-100);
}

.reg-claim__inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.reg-claim h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

/* City hubs use the same clean marketplace frame as the generated records.
   Their retired cartoon illustration remains in markup for provenance, but it
   is intentionally not part of the customer-facing interface. */
.reg-hero--art {
  display: block;
}

.reg-hero__art {
  display: none;
}

.reg-hero__col {
  width: min(calc(100% - 32px), var(--reg-shell));
  margin-inline: auto;
}

.reg-jump {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 22px;
  padding: 10px 16px;
  border: 1px solid var(--sun-300);
  border-radius: 8px;
  color: var(--white);
  background: var(--sun-300);
  font-weight: 700;
}

.reg-intro,
.reg-local {
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--sky-400);
  background: var(--white);
}

.reg-intro .reg-shell,
.reg-local .reg-shell {
  max-width: 860px;
  margin-left: max(16px, calc((100% - var(--reg-shell)) / 2));
}

.reg-intro p,
.reg-local p {
  color: var(--pacific-700);
  font-size: 1rem;
  line-height: 1.7;
}

.reg-intro p + p {
  margin-top: 16px;
}

.reg-h3 {
  margin: 34px 0 12px;
  color: var(--pacific-900);
  font-size: 1.2rem;
}

.reg-method__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  border: 1px solid var(--sky-400);
  border-radius: 8px;
  background: var(--white);
}

.reg-method__item {
  padding: 18px;
  border-bottom: 1px solid var(--sky-400);
}

.reg-method__item:nth-child(odd) {
  border-right: 1px solid var(--sky-400);
}

.reg-method__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.reg-method__item dt {
  color: var(--pacific-700);
  font-size: .78rem;
  font-weight: 700;
}

.reg-method__item dd {
  margin: 6px 0 0;
  color: var(--pacific-900);
  font-size: .92rem;
  font-weight: 600;
}

.reg-limits {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--pacific-700);
  font-size: .92rem;
}

.reg-page .cityhub-trade {
  border-color: var(--sky-400);
}

.reg-page .cityhub-trade__link {
  border: 1px solid var(--pacific-900);
  color: var(--white);
  background: var(--pacific-900);
}

.reg-page .cityhub-trade__link:hover {
  color: var(--white);
  background: var(--ocean-600);
}

.reg-page .cityhub-caveat {
  border: 1px solid var(--sky-400);
  border-left: 3px solid var(--sun-300);
  background: var(--foam-100);
}

.reg-local__link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--pacific-900);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reg-claim p:not(.reg-eyebrow) {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--pacific-700);
}

.reg-foot {
  padding: 28px 0;
  background: var(--pacific-900);
  color: var(--white);
}

.reg-foot .reg-shell {
  display: grid;
  gap: 16px;
}

.reg-foot p {
  margin: 0;
  color: var(--foam-100);
  font-size: .78rem;
}

.reg-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.reg-foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 720px) {
  .reg-method .reg-shell,
  .reg-listing__head,
  .reg-foot .reg-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reg-listing__head > p {
    text-align: right;
  }

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

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

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

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

  .reg-action--quiet {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .reg-nav {
    display: none;
  }

  .reg-method__grid {
    grid-template-columns: 1fr;
  }

  .reg-method__item,
  .reg-method__item:nth-child(odd),
  .reg-method__item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--sky-400);
  }

  .reg-method__item:last-child {
    border-bottom: 0;
  }

  .reg-intro .reg-shell,
  .reg-local .reg-shell {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reg-page *,
  .reg-page *::before,
  .reg-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media print {
  .site-header,
  .reg-hero__actions,
  .reg-extras,
  .reg-claim {
    display: none !important;
  }

  .reg-card,
  .reg-action,
  .reg-button {
    box-shadow: none;
  }
}
