:root {
  color: #142947;
  background: #f6f8fc;
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
  --blue: #1748d1;
  --line: #dce6f3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #1073df; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.masthead, .footer, .masthead nav, .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.masthead { padding: 15px 0; }
.masthead nav a, .brand { color: #142947; text-decoration: none; }
.masthead nav a:hover { color: var(--blue); text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .07em; }
.masthead nav a[aria-current="page"] { color: var(--blue); font-weight: 750; }
.masthead .account-link { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.brand img { border-radius: 50%; }
.hero {
  background: radial-gradient(ellipse at 100% 0, #204b88, transparent 58%), #0c2247;
  color: #f3f7ff;
}
.hero-inner { padding-block: clamp(36px, 6vw, 76px); }
.hero-inner > p { max-width: 620px; color: #d6e5ff; }
.hero h1 { text-wrap: balance; }
.hero .search { max-width: none; padding: 16px; margin-top: 24px; background: #fff; border-radius: 13px; color: #142947; }
.hero .search :is(input,select,button) { min-height: 52px; }
.hero .search button { padding-inline: 25px; }
.quick-extensions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.quick-extensions button {
  display: inline-flex; gap: 10px; align-items: center; min-height: 38px; padding: 5px 11px;
  background: #1d3a64; border-color: #627ca3; color: #fff;
}
.quick-extensions button:hover { background: #25477c; }
.quick-extensions button span { color: #d7e8ff; font-size: .82rem; font-weight: 500; }
.quick-extensions button:focus-visible { outline-color: #9ad3ff; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.04em; }
h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.45rem; }
p { margin: .65rem 0 1rem; }
.muted, #search-hint { color: #526789; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px; max-width: 790px; }
.search label { min-width: 0; display: grid; gap: 5px; font-weight: 600; }
input:not([type="checkbox"]), select, button {
  border: 1px solid #aebfd8;
  border-radius: 8px;
  color: #142947;
  min-height: 44px;
  background: #fff;
  padding: 8px 12px;
}
input:not([type="checkbox"]) { width: 100%; }
button {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: #143ca8; }
button:disabled { opacity: .55; cursor: wait; }
.content { display: grid; gap: 20px; padding-block: 24px 40px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3.5vw, 28px); scroll-margin-top: 12px; }
.hosting-options { padding-block: 9px; scroll-margin-top: 12px; }
.hosting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hosting-grid > a {
  display: flex; flex-direction: column; padding: 20px; background: #fff; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
}
.hosting-grid > a:hover { border-color: #8eade2; background: #fafdff; }
.hosting-grid p { color: #526789; margin-bottom: 16px; }
.hosting-grid a > span { color: var(--blue); margin-top: auto; font-weight: 650; }
.result-link { display: inline-block; font-weight: 650; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead { background: #f3f7fd; }
td:first-child { font-weight: 650; }
.available { color: #12603e; }
.extensions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 14px; margin-top: 16px; }
.extensions article { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.extensions p { margin-bottom: 0; }
.dns-lookup-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; border-inline-start: 4px solid #1756bf; padding-inline-start: 14px; }
.dns-lookup-heading h2 { margin-block: 0 6px; }
.dns-lookup-heading p { margin-block: 0; }
.dns-lookup-heading a { font-size: .9rem; }
.dns-lookup .dns { margin-block-start: 18px; }
.dns-result-table { overflow: auto; border: 1px solid #d9e5f6; border-radius: 10px; }
.dns-result-table table { width: 100%; border-collapse: collapse; }
.dns-result-table th, .dns-result-table td { text-align: left; padding: 10px 12px; }
.dns-result-table th { background: #edf4fd; white-space: nowrap; }
.dns-result-table td { border-top: 1px solid #d9e5f6; overflow-wrap: anywhere; min-width: 4rem; }
.dns-result-table td:nth-child(3) { min-width: 8rem; }
.dns-record-guide { margin-block-start: 16px; padding: 10px 14px; background: #f3f7fd; border-radius: 8px; }
.dns-record-guide summary { cursor: pointer; font-weight: 650; }
.dns-record-guide dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 12px; }
.dns-record-guide dt { font-weight: 700; }
.dns-record-guide dd { margin-inline-start: 0; }
.footer { border-top: 1px solid var(--line); padding-block: 20px; }
@media (max-width: 650px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search label:first-child { grid-column: 1 / -1; }
  .hero .search { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .masthead nav { justify-content: flex-start; column-gap: 14px; }
  .hosting-grid { grid-template-columns: minmax(0, 1fr); }
  #search-table table, #search-table tbody { display: block; }
  #search-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #search-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-block: 1px solid var(--line); margin-block: 10px; }
  #search-table td { white-space: normal; overflow-wrap: anywhere; border: 0; padding: 8px; }
  #search-table td:first-child, #search-table td:last-child { grid-column: 1 / -1; }
  #search-table td:not(:first-child,:last-child)::before { display: block; content: attr(data-label); color: #526789; font-size: .75rem; }
  .dns { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.extension-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(78px,1fr)); gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.extension-list li { min-width: 0; font-weight: 650; }
.extension-list small { display:block; font-weight: normal; color:#526789; font-size: .7rem; }
.extension-list button { width: 100%; min-height: 36px; padding: 4px 6px; background:#f1f6ff; color:var(--blue); border-color:var(--line); }
.extension-list button:hover { background: #e1ecff; }


#country-regions details { border-top: 1px solid var(--line); padding: 8px 0; }
#country-regions summary { cursor: pointer; font-weight: 650; }
#country-regions .extension-list { grid-template-columns: repeat(auto-fill,minmax(min(100%,120px),1fr)); }
