/* ============================================================
   NamesShift — public site pages (about, help, legal, contact…)
   Builds on the tokens and layout in styles.css.
   ============================================================ */

.nav__link.is-active { color: var(--brand); font-weight: 700; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--brand));
}
.nav__link { position: relative; }

.site-main { display: block; }

/* ── Page hero ───────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2rem, 3.5vw, 3rem);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 138, 61, .18), transparent 62%),
    radial-gradient(760px 420px at 92% 0%, rgba(232, 65, 44, .12), transparent 60%),
    var(--tint);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { display: grid; gap: 1rem; max-width: 800px; }
.page-hero__inner > .pill { justify-self: start; }
.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.page-hero__lede { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 68ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

/* ── Layout blocks ───────────────────────────────────────────── */
.page-section { padding: clamp(2.4rem, 4vw, 3.6rem) 0; }
.page-section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.page-section__head { max-width: 720px; margin-bottom: 1.8rem; display: grid; gap: .55rem; }
.page-section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.page-section__head--row > div { display: grid; gap: .45rem; max-width: 640px; }
.page-section__head--row .btn { flex: none; }
.page-section__head h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; }
.page-section__head p { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .5rem;
  align-content: start;
}
.info-card h3 { font-size: 1.02rem; }
.info-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.info-card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: .2rem;
}
.info-card__icon svg { width: 20px; height: 20px; }

.step-list { display: grid; gap: .85rem; counter-reset: step; list-style: none; padding-left: 0; }
.step-list > li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem; top: 1rem;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--brand));
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
}
.step-list strong { display: block; font-size: .98rem; }
.step-list p { color: var(--muted); font-size: .92rem; margin-top: .2rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.callout {
  border: 1px solid #f3d8d0;
  background: #fff6f2;
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  display: grid;
  gap: .45rem;
  color: #7c3a25;
  font-size: .92rem;
  line-height: 1.6;
}
.callout strong { color: #99301b; }
.callout a { text-decoration: underline; text-underline-offset: 3px; }
.callout--spaced { margin-top: 1.6rem; }

/* ── Prose / legal documents ─────────────────────────────────── */
.prose { max-width: 78ch; display: grid; gap: 1.1rem; }
.prose h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-top: .6rem;
  line-height: 1.25;
  scroll-margin-top: 96px;
}
.prose h3 { font-size: 1.02rem; margin-top: .4rem; }
.prose p, .prose li { color: #33475c; font-size: .96rem; line-height: 1.75; }
.prose ul, .prose ol { display: grid; gap: .5rem; padding-left: 1.25rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: .4rem 0; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  font-size: .82rem;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }

.legal-toc {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .35rem;
  font-size: .88rem;
}
.legal-toc p { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.legal-toc a { color: var(--ink-2); padding: .2rem 0; }
.legal-toc a:hover { color: var(--brand); }
@media (max-width: 900px) { .legal-toc { position: static; } }

/* ── Status page ─────────────────────────────────────────────── */
.status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid #cdeee0;
  background: #f0fbf6;
  box-shadow: var(--shadow-sm);
}
.status-banner.is-degraded { border-color: #f6e0b8; background: #fff9ee; }
.status-banner__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(18, 160, 106, .16);
  flex: none;
}
.status-banner.is-degraded .status-banner__dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, .18); }
.status-banner strong { font-size: 1.05rem; }
.status-banner small { color: var(--muted); }

.status-list { display: grid; gap: .6rem; margin-top: 1.2rem; }
.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem 1rem;
  align-items: center;
  padding: .95rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.status-row strong { font-size: .96rem; }
.status-row p { color: var(--muted); font-size: .86rem; grid-column: 1 / -1; }
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--green);
  background: #e8f8f1;
  white-space: nowrap;
}
.status-tag.is-degraded { color: #8a6100; background: #fff3d6; }
.status-tag.is-outage { color: #a51f11; background: #ffeae6; }
.status-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.2rem; font-size: .82rem; color: var(--muted); }


/* ── Forms (contact, abuse, affiliates) ──────────────────────── */
.site-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}
.site-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 640px) { .site-form__grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: .35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field > label em { font-style: normal; color: var(--brand); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
  font-size: .94rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8b95a4 50%), linear-gradient(135deg, #8b95a4 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(232, 65, 44, .55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 65, 44, .12);
}
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: #d6503e; background: #fffafa; }
.field__hint { font-size: .78rem; color: var(--muted); }
.field__error { font-size: .78rem; font-weight: 600; color: #a51f11; }
.site-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.site-form__foot p { font-size: .8rem; color: var(--muted); max-width: 46ch; }

/* Honeypot field: invisible to people, irresistible to bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-alert {
  border-radius: 13px;
  padding: .9rem 1.05rem;
  font-size: .9rem;
  line-height: 1.6;
  border: 1px solid transparent;
}
.form-alert--success { border-color: #cdeee0; background: #f0fbf6; color: #0d6b4a; }
.form-alert--error { border-color: #f4c6c0; background: #fff3f1; color: #a51f11; }
.form-alert strong { display: block; margin-bottom: .15rem; }
.form-alert--stack { margin-bottom: 1rem; }

/* ── Contact sidebar ─────────────────────────────────────────── */
.contact-aside { display: grid; gap: .9rem; align-content: start; }
.contact-aside__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .4rem;
}
.contact-aside__card h3 { font-size: .95rem; }
.contact-aside__card p, .contact-aside__card li { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.contact-aside__card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.contact-aside__card a:not(.btn) { text-decoration: underline; }
.contact-aside__card a.btn { color: #fff; text-decoration: none; }
.contact-aside__card a.btn--ghost { color: var(--ink); }
.contact-aside__card ul { display: grid; gap: .35rem; }

/* ── Blog / notes ────────────────────────────────────────────── */
.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .8rem;
}
.note-card h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); scroll-margin-top: 96px; }
.note-card__meta { font-size: .78rem; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; font-weight: 700; }
.note-list { display: grid; gap: 1.2rem; }
.note-list ul { display: grid; gap: .5rem; padding-left: 1.15rem; list-style: disc; }
.note-list li { color: #33475c; font-size: .95rem; line-height: 1.7; }

/* ── Error pages ─────────────────────────────────────────────── */
.error-hero { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.error-hero__code { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.error-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: .6rem; }
.error-hero p { color: var(--muted); max-width: 60ch; margin: .6rem auto 0; }
.error-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .page-hero { padding-top: 2rem; }
  .status-row { grid-template-columns: 1fr; }
  .status-tag { justify-self: start; }
}

/* ── Domain catalogue ────────────────────────────────────────── */
.catalogue-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: .75rem;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.catalogue-filters__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.catalogue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.2rem;
  margin-bottom: 1.4rem;
}
.catalogue-count { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); }
.catalogue-count strong { color: var(--ink); font-size: 1.05rem; }
.catalogue-chip {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #f1f4f9;
  border: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-2);
}
.catalogue-tlds { display: flex; flex-wrap: wrap; gap: .4rem; }
.catalogue-total { font-size: .82rem; color: var(--muted); }

/* Pagination — the catalogue pages 24 names at a time, however big the
   collection grows. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1.9rem 0 .3rem;
}
.pagination__list { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.pagination__page,
.pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pagination__page { min-width: 2.45rem; padding: 0 .55rem; }
.pagination__page:hover,
.pagination__step:hover { border-color: #c9d4e2; color: var(--ink); }
.pagination__page.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination__step.is-disabled { opacity: .45; pointer-events: none; }
.pagination__gap { padding: 0 .2rem; color: var(--muted); }

.market-card__link { color: inherit; text-decoration: none; }
.market-card__link:hover { color: var(--brand); }
.market-card__link span { color: var(--brand); }

/* ── Domain listing page ─────────────────────────────────────── */
.listing-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.listing-name {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  word-break: break-word;
}
.listing-name span { color: var(--brand); }
.listing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
}
.listing-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.listing-main { display: grid; gap: 1rem; min-width: 0; }
.listing-main .info-card { display: grid; gap: .6rem; }
.listing-main .info-card h2 { font-size: 1.05rem; }
.listing-main .info-card p { color: #33475c; line-height: 1.7; }
.listing-aside { display: grid; gap: .9rem; position: sticky; top: 96px; }
.listing-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.listing-chips li {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #f5f7fb;
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.spec-list { display: grid; gap: .5rem; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed var(--line);
  font-size: .88rem;
}
.spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 600; color: var(--ink); text-align: right; }
.check-list { display: grid; gap: .45rem; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .9rem;
  line-height: 1.6;
  color: #33475c;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42rem;
  width: .95rem;
  height: .55rem;
  border-left: 2px solid var(--green, #0b7a51);
  border-bottom: 2px solid var(--green, #0b7a51);
  transform: rotate(-45deg);
}
.listing-note { font-size: .82rem; color: var(--muted); }
.listing-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.listing-related-head {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* ── Buy box ─────────────────────────────────────────────────── */
.buy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .9rem;
}
.buy-box__price { display: grid; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.buy-box__price small { font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.buy-box__form { display: grid; gap: .65rem; }
.buy-box__form .btn { margin-top: .1rem; }
.buy-box__divider {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.buy-box__divider::before, .buy-box__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.buy-box__guarantee {
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  display: grid;
  gap: .2rem;
}
.buy-box__guarantee strong { font-size: .82rem; }
.buy-box__guarantee p { font-size: .78rem; line-height: 1.55; color: var(--muted); }
.buy-box__guarantee a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ── Reviews page ────────────────────────────────────────────── */
.review-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.1rem; margin-top: .2rem; }
.review-summary__score { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.review-summary__score small { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: .35rem; }
.review-summary__meta { font-size: .88rem; color: var(--muted); }
.review-summary__meta strong { color: var(--ink); }

/* ── Blog article ────────────────────────────────────────────── */
.article-meta {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.article-aside { position: sticky; top: 96px; }
.article .prose { max-width: none; }
.note-card__more { font-size: .84rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.note-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.note-card h2 a, .note-card h3 a { color: inherit; text-decoration: none; }
.note-card h2 a:hover, .note-card h3 a:hover { color: var(--brand); }

@media (max-width: 1080px) {
  .catalogue-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-filters__actions { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .listing-layout, .article-layout { grid-template-columns: 1fr; }
  .listing-aside, .article-aside { position: static; }
}
@media (max-width: 560px) {
  .catalogue-filters { grid-template-columns: 1fr; }
  .spec-list > div { flex-direction: column; gap: .1rem; }
  .spec-list dd { text-align: left; }
}

