/* Self hosted Inter so the page needs no third party request. */
@font-face {
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Nameserver UI kit
   Light theme only. Mobile first and accessible.
*/
:root {
  color-scheme: light;
  --primary: #075BFF;
  --primary-dark: #061B43;
  --accent: #10C8D8;
  --accent-soft: #EAF7FF;
  --bg: #F7FAFF;
  --surface: #FFFFFF;
  --text: #07162E;
  --muted: #62718A;
  --border: #DFE7F2;
  --success: #15803D;
  --warning: #B45309;
  --danger: #B42318;

  --font-sans: "Inter", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Inter", var(--font-sans);
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --content: 760px;
  --header-h: 72px;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 8px 24px rgba(16,24,40,.06);
  --shadow-md: 0 18px 50px rgba(16,24,40,.09);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display:block; max-width:100%; }
button, input, select, textarea { font:inherit; }
a { color:inherit; text-decoration-thickness:.08em; text-underline-offset:.18em; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.content { width:min(100%, var(--content)); }

.skip-link {
  position:absolute;
  left:16px;
  top:-80px;
  z-index:999;
  background:var(--text);
  color:white;
  padding:10px 14px;
  border-radius:10px;
}
.skip-link:focus { top:16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand-logo {
  width:auto;
  height:42px;
  object-fit:contain;
}

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

.nav a {
  padding:10px 12px;
  border-radius:10px;
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  font-weight:650;
}
.nav a:hover { color:var(--text); background:var(--bg); }

.mobile-toggle {
  display:none;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background:white;
  color:var(--text);
}

.hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
}

.hero--center { text-align:center; }
.hero--center .hero__copy { margin-inline:auto; }

.hero__eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.hero h1 {
  max-width: 900px;
  margin:0 0 20px;
  font-family:var(--font-heading);
  font-size:clamp(40px, 6vw, 70px);
  line-height:1.03;
  letter-spacing:-.045em;
  font-weight:780;
}

.hero p {
  max-width:720px;
  margin:0 0 28px;
  color:var(--muted);
  font-size:clamp(17px, 2vw, 20px);
}

.actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.button {
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 19px;
  border-radius:12px;
  border:1px solid transparent;
  background:var(--primary);
  color:white;
  font-weight:750;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { background:var(--primary-dark); box-shadow:var(--shadow-xs); }
.button:active { transform:translateY(1px); }
.button--secondary {
  background:white;
  color:var(--text);
  border-color:var(--border);
}
.button--secondary:hover { background:var(--bg); }
.button--ghost {
  background:transparent;
  color:var(--primary);
}

.section { padding:72px 0; }
.section--white { background:white; }
.section__head { margin-bottom:32px; max-width:760px; }
.section__head h2 {
  margin:0 0 12px;
  font-size:clamp(30px,4vw,44px);
  line-height:1.12;
  letter-spacing:-.03em;
}
.section__head p { margin:0; color:var(--muted); font-size:17px; }

.grid { display:grid; gap:20px; }
.grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid--4 { grid-template-columns:repeat(4,minmax(0,1fr)); }

.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow-xs);
}
.card--interactive { transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--interactive:hover {
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
  border-color:color-mix(in srgb, var(--primary) 24%, var(--border));
}
.card h3 { margin:0 0 8px; font-size:20px; line-height:1.25; letter-spacing:-.01em; }
.card p { margin:0; color:var(--muted); }

.input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
select,
textarea {
  width:100%;
  min-height:50px;
  padding:0 15px;
  color:var(--text);
  background:white;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  box-shadow:0 0 0 0 rgba(0,0,0,0);
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height:130px; padding-block:13px; resize:vertical; }
.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent);
}

.search-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  width:min(100%,820px);
}
.search-row .button { min-height:56px; align-self:stretch; }

.badge {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--primary-dark);
  font-size:12px;
  font-weight:800;
}

.table-wrap {
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  background:white;
  border:1px solid var(--border);
  border-radius:16px;
}
table {
  width:100%;
  min-width:680px;
  border-collapse:collapse;
}
th, td {
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid var(--border);
}
th {
  color:var(--muted);
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
tr:last-child td { border-bottom:0; }

.notice {
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:white;
}

.breadcrumbs {
  padding:18px 0;
  color:var(--muted);
  font-size:13px;
}
.breadcrumbs a { text-decoration:none; }
.breadcrumbs a:hover { color:var(--primary); }

.site-footer {
  padding:48px 0 30px;
  margin-top:72px;
  background:white;
  border-top:1px solid var(--border);
  color:var(--muted);
}
.footer-grid {
  display:grid;
  grid-template-columns:1.4fr repeat(3,1fr);
  gap:32px;
}
.footer-title { color:var(--text); font-weight:800; margin-bottom:10px; }
.footer-links { display:grid; gap:8px; }
.footer-links a { text-decoration:none; font-size:14px; }
.footer-links a:hover { color:var(--primary); }

:focus-visible {
  outline:3px solid color-mix(in srgb, var(--primary) 34%, transparent);
  outline-offset:3px;
}


.tool-shell { padding: 24px; background: var(--surface); border:1px solid var(--border); border-radius: 20px; }
/* Input and button in a search row share one height so their edges line up. */
.tool-input { min-height: 56px; font-family: var(--font-mono); }
.result-ok { border-left: 4px solid var(--success); }
.result-warn { border-left: 4px solid var(--warning); }
.code, code { font-family: var(--font-mono); font-size: .92em; }


@media (max-width: 1024px) {
  .grid--4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h:64px; }
  .container { width:min(calc(100% - 36px), var(--container)); }
  .brand-logo { height:36px; max-width:190px; }
  .nav { display:none; }
  .mobile-toggle { display:inline-flex; }
  .hero {
    padding-top:56px;
    padding-bottom:52px;
  }
  .hero h1 {
    font-size:clamp(38px,11vw,52px);
    letter-spacing:-.04em;
  }
  .section { padding:56px 0; }
  .grid--3 { grid-template-columns:1fr 1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width:calc(100% - 32px); }
  .hero h1 { font-size:40px; }
  .hero p { font-size:17px; }
  .actions { align-items:stretch; }
  .actions .button { width:100%; }
  .search-row { grid-template-columns:1fr; }
  .search-row .button { width:100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns:1fr; }
  .card { padding:20px; border-radius:16px; }
  .section__head { margin-bottom:24px; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .site-footer { margin-top:48px; }
}

@media (max-width: 380px) {
  .container { width:calc(100% - 24px); }
  .hero h1 { font-size:36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

/* ------------------------------------------------------------------
   Tool pages: form, results, findings, copy buttons, FAQ.
   Appended to the kit base. Tokens only, no new colours.
   ------------------------------------------------------------------ */

.visually-hidden {
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}

.brand { display:inline-flex; align-items:center; }

.mobile-nav {
  border-bottom:1px solid var(--border);
  background:var(--surface);
  padding:8px 0 18px;
}
.mobile-nav a {
  display:block;
  padding:12px 4px;
  min-height:44px;
  font-weight:650;
  text-decoration:none;
  border-bottom:1px solid var(--border);
}
.mobile-nav__group {
  margin:18px 0 2px;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:800;
}
body.nav-open { overflow:hidden; }

.hero--home { padding-bottom:clamp(40px,5vw,64px); }
.hero__hint { margin-top:18px; font-size:15px; color:var(--muted); }
.hero__hint a { color:var(--primary); text-decoration:none; font-weight:650; }
.hero__hint a:hover { text-decoration:underline; }
.search-row--hero .tool-input,
.search-row--hero .button { min-height:62px; }
.search-row--hero .tool-input { font-size:17px; }
.search-row--hero .button { padding-inline:28px; }

.tool-top { padding:clamp(28px,4vw,44px) 0 clamp(20px,3vw,28px); }
.tool-top h1 {
  margin:0 0 12px;
  font-size:clamp(34px,5vw,52px);
  line-height:1.06;
  letter-spacing:-.035em;
  font-weight:780;
}
.tool-lede { margin:0 0 26px; max-width:70ch; color:var(--muted); font-size:clamp(16px,1.6vw,18px); }
.tool-form .search-row { width:100%; }
.field-row {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.field-row label { font-size:14px; font-weight:650; color:var(--muted); }
.field-row select, .field-row input[type="text"] { width:auto; min-width:220px; }
.check { display:inline-flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; }
.check input { width:20px; height:20px; min-height:20px; accent-color:var(--primary); }
.check span { font-weight:500; color:var(--text); }

.tool-result { padding:8px 0 4px; scroll-margin-top:88px; }
.result-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-left:4px solid var(--border);
  border-radius:var(--radius-lg);
  padding:clamp(18px,3vw,28px);
}
.result-card--ok { border-left-color:var(--success); }
.result-card--warn { border-left-color:var(--warning); }
.result-card--error { border-left-color:var(--danger); }

.result-head h2 { margin:0 0 4px; font-size:clamp(20px,2.4vw,26px); letter-spacing:-.02em; }
.result-meta { margin:0 0 20px; color:var(--muted); font-size:14px; }
.result-sub { margin:28px 0 12px; font-size:17px; letter-spacing:-.01em; }

.stat-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin:0 0 22px;
}
.stat {
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg);
}
.stat__value { display:block; font-size:20px; font-weight:750; letter-spacing:-.02em; }
.stat__label { display:block; margin-top:2px; font-size:12px; color:var(--muted); }

.rtype {
  display:inline-block;
  min-width:52px;
  padding:3px 8px;
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--primary-dark);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  text-align:center;
}
.cell-name { font-family:var(--font-mono); font-size:13px; word-break:break-all; }
.cell-ttl { white-space:nowrap; color:var(--muted); font-size:13px; }
.cell-value code { word-break:break-all; }
.kv-key { width:190px; color:var(--muted); font-size:13px; text-transform:none; letter-spacing:0; font-weight:650; }
.kv-val code { word-break:break-all; }
.muted { color:var(--muted); }

.record-box {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  margin-bottom:22px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
}
.record-box code { word-break:break-all; flex:1; font-size:13px; }

.copy-btn {
  flex-shrink:0;
  min-height:32px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:color .15s ease, border-color .15s ease;
}
.copy-btn:hover { color:var(--primary); border-color:var(--primary); }
.copy-btn.is-done { color:var(--success); border-color:var(--success); }

.findings { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:10px; }
.finding {
  display:flex;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--surface);
}
.finding__icon {
  flex-shrink:0;
  width:22px;height:22px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  font-size:13px;font-weight:800;
  color:white;
}
.finding--ok { background:color-mix(in srgb, var(--success) 5%, var(--surface)); border-color:color-mix(in srgb, var(--success) 25%, var(--border)); }
.finding--ok .finding__icon { background:var(--success); }
.finding--warn { background:color-mix(in srgb, var(--warning) 6%, var(--surface)); border-color:color-mix(in srgb, var(--warning) 28%, var(--border)); }
.finding--warn .finding__icon { background:var(--warning); }
.finding--error { background:color-mix(in srgb, var(--danger) 5%, var(--surface)); border-color:color-mix(in srgb, var(--danger) 25%, var(--border)); }
.finding--error .finding__icon { background:var(--danger); }
.finding__body { display:block; }
.finding__text { display:block; font-weight:600; }
.finding__hint { display:block; margin-top:5px; color:var(--muted); font-size:14px; }

.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip {
  padding:6px 11px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--bg);
  font-family:var(--font-mono);
  font-size:12px;
}

.chain-list, .chain { margin:0; padding-left:20px; display:grid; gap:10px; }
.chain { list-style:none; padding-left:0; }
.chain code { font-size:13px; }
.plain-list { margin:0; padding-left:20px; display:grid; gap:6px; }

.source-note { margin-top:14px; font-size:13px; color:var(--muted); }

.raw-block { margin-top:22px; }
.raw-block summary { cursor:pointer; font-weight:650; min-height:44px; display:flex; align-items:center; }
.raw-block pre {
  margin:10px 0 0;
  padding:16px;
  overflow-x:auto;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  font-family:var(--font-mono);
  font-size:12.5px;
  line-height:1.55;
}

.notice--error { border-left:4px solid var(--danger); }
.notice--ok { border-left:4px solid var(--success); }

.cta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-top:18px;
  padding:20px 24px;
  background:var(--accent-soft);
  border:1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  border-radius:var(--radius-lg);
}
.cta__text { margin:0; font-weight:650; }

.section--copy { padding-top:clamp(40px,5vw,64px); }
.section--copy h2 { margin:38px 0 12px; font-size:clamp(22px,2.6vw,30px); letter-spacing:-.02em; }
.section--copy h2:first-child { margin-top:0; }
.section--copy p { margin:0 0 14px; }
.content > ul, .content > ol { margin:0 0 16px; padding-left:22px; }
.content li { margin-bottom:7px; }

.deflist { margin:0 0 16px; }
.deflist dt { font-weight:750; font-family:var(--font-mono); font-size:14px; margin-top:12px; }
.deflist dd { margin:2px 0 0; color:var(--muted); }

.ticks { list-style:none; padding-left:0; margin:0 0 16px; }
.ticks li { position:relative; padding-left:26px; margin-bottom:8px; }
.ticks li::before {
  content:"";
  position:absolute;left:2px;top:9px;
  width:8px;height:8px;border-radius:50%;
  background:var(--primary);
}

.faq { display:grid; gap:10px; }
.faq__item {
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--surface);
  padding:2px 18px;
}
.faq__item summary {
  cursor:pointer;
  padding:16px 0;
  font-weight:700;
  min-height:44px;
  display:flex;
  align-items:center;
  list-style:none;
}
.faq__item summary::-webkit-details-marker { display:none; }
.faq__item summary::after { content:"+"; margin-left:auto; padding-left:16px; color:var(--muted); font-weight:400; font-size:20px; }
.faq__item[open] summary::after { content:"\2212"; }
.faq__answer { padding-bottom:16px; color:var(--muted); }
.faq__answer p { margin:0; }

.card--tool { display:flex; flex-direction:column; text-decoration:none; }
.card--tool p { flex:1; }
.card__go { margin-top:14px; font-size:14px; font-weight:750; color:var(--primary); }

.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:36px;
  padding-top:22px;
  border-top:1px solid var(--border);
  font-size:14px;
}
.footer-bottom p { margin:0; }
.footer-bottom a { text-decoration:none; }
.footer-bottom a:hover { color:var(--primary); }
.footer-meta { display:flex; gap:18px; }

@media (max-width: 820px) {
  .result-card { border-left-width:4px; }
  .kv-key { width:auto; }
}

@media (max-width: 640px) {
  .tool-top h1 { font-size:clamp(30px,8vw,38px); }
  .field-row { flex-direction:column; align-items:stretch; }
  .field-row select, .field-row input[type="text"] { width:100%; min-width:0; }
  .cta { flex-direction:column; align-items:stretch; }
  .cta .button { width:100%; }
  .stat-row { grid-template-columns:1fr 1fr; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
}

/* Language switcher: three codes, the current one plain text. */
.lang { display:flex; align-items:center; gap:2px; flex-shrink:0; }
.lang a, .lang__current {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; min-height:36px; padding:0 8px;
  border-radius:9px;
  font-size:12px; font-weight:800; letter-spacing:.04em;
  text-decoration:none;
}
.lang a { color:var(--muted); }
.lang a:hover { color:var(--primary); background:var(--bg); }
.lang__current { color:var(--text); background:var(--bg); }
@media (max-width: 820px) { .lang { order:2; margin-left:auto; margin-right:4px; } }
