:root {
  --mist: #EAF0EE;
  --paper: #FFFFFF;
  --ink: #13233A;
  --soft: #4D5E72;
  --line: #C6D3CF;
  --alp: #1E4E9C;      /* Slovenian flag blue */
  --pine: #17714A;     /* available */
  --brick: #B3323A;    /* taken */
  --amber: #8A5A00;    /* reserved */
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); }
a { color: var(--alp); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--alp); outline-offset: 2px; }
main { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--soft); }

.top { max-width: 72rem; margin: 0 auto; padding: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; }
.brand { font: 800 1.15rem/1 var(--display); color: var(--ink); text-decoration: none; }
.top nav a { color: var(--ink); font-weight: 600; }

/* The one loud element: the domain set huge, with .si locked to it */
h1 { font: 800 clamp(3rem, 9vw, 5.5rem)/0.95 var(--display); letter-spacing: -0.03em; margin: 2.5rem 0 1rem; overflow-wrap: anywhere; }
h1 .si, .tld { color: var(--alp); }
.result h1 .name { color: var(--ink); }
.result.taken h1 .name { text-decoration: line-through; text-decoration-color: var(--brick); text-decoration-thickness: 0.06em; }
h2 { font: 800 1.35rem/1.2 var(--display); margin: 0 0 0.75rem; }
.lede { font-size: 1.2rem; color: var(--soft); max-width: 38rem; margin: 0 0 2rem; }

.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 7rem); max-width: 12ch; }

.search { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; max-width: 40rem; }
.field { display: flex; align-items: baseline; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 0 1rem; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.6rem/1 var(--display); color: var(--ink); padding: 0.85rem 0; outline: none; text-align: right; }
.field input:focus-visible { outline: none; }
.field:focus-within { outline: 3px solid var(--alp); outline-offset: 2px; }
.tld { font: 800 1.6rem/1 var(--display); }
.search button { font: 600 1.05rem var(--body); background: var(--alp); color: #fff; border: 0; border-radius: 10px; padding: 0 1.6rem; cursor: pointer; }
.search button:hover { background: #163C7A; }
.hint { grid-column: 1 / -1; margin: 0; min-height: 1.4em; color: var(--brick); font-size: 0.95rem; }

.result { padding-top: 1.5rem; }
.status-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0 0 0.5rem; }
.verdict { font-size: 1.2rem; max-width: 40rem; margin: 0 0 1.5rem; }

.dot { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.dot::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--line); }
.dot.available { color: var(--pine); } .dot.available::before { background: var(--pine); }
.dot.taken { color: var(--brick); } .dot.taken::before { background: var(--brick); }
.dot.reserved { color: var(--amber); } .dot.reserved::before { background: var(--amber); }
.dot.unknown, .dot.invalid { color: var(--soft); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.facts div { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; color: var(--soft); }
.facts dd { margin: 0.15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }

.register { background: var(--paper); border-left: 6px solid var(--pine); padding: 1.25rem 1.5rem; margin: 0 0 2rem; max-width: 40rem; }
.register p { margin: 0 0 0.75rem; }

.launch-guide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--alp);
  padding: 1.15rem 1.4rem 1.25rem;
  margin: 0 0 2rem;
  max-width: 40rem;
}
.launch-guide h2 { font: 800 1.25rem/1.25 var(--display); margin: 0 0 0.6rem; color: var(--ink); }
.launch-guide p { margin: 0 0 0.75rem; color: var(--ink); }
.launch-guide ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.launch-guide li { margin: 0 0 0.45rem; }
.launch-guide .buttons { margin-top: 0.5rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn { display: inline-block; background: var(--pine); color: #fff; text-decoration: none; font-weight: 600; padding: 0.65rem 1.1rem; border-radius: 8px; }
.btn:hover { background: #0F5636; }

.about { margin-top: 1rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }

.rows, .cats { list-style: none; padding: 0; margin: 0; }
.rows li, .cats li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.rows a, .cats a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.rows a:hover, .cats a:hover { text-decoration: underline; }
.cats span { color: var(--soft); }
.rows.wide { columns: 2 20rem; column-gap: 2.5rem; }
.rows.wide li { break-inside: avoid; }
.listhead { padding-top: 1rem; }

.foot { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.92rem; }
.foot a { margin-right: 1rem; color: var(--soft); }

@media (max-width: 540px) {
  .search { grid-template-columns: 1fr; }
  .search button { padding: 0.9rem; }
  .field input, .tld { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.top { flex-wrap: wrap; gap: 0.75rem; }
.crumbs ol { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.92rem; color: var(--soft); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--soft); }
.list-h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 1.5rem; }
.result h1 { margin-top: 1.25rem; }
.about p { max-width: 40rem; }
.si-note { background: var(--paper); border-left: 6px solid var(--alp); padding: 0.9rem 1.1rem; }
.nolink { font-weight: 600; overflow-wrap: anywhere; }
.more { margin: 0.75rem 0 0; font-weight: 600; }
.small { font-size: 0.88rem; margin-top: 0.5rem; }
.gap { margin-top: 2rem; }
.faq { margin-top: 3rem; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 0.6rem 0 0; color: var(--soft); }
.again { margin-top: 3rem; }
.guide { max-width: 44rem; }
.guide h2 { margin-top: 2rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 26rem; background: var(--paper); }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.85rem; color: var(--soft); font-weight: 600; }
.sources { padding-left: 1.1rem; }
.sources li { padding: 0.2rem 0; }
.inline-result { margin-top: 2rem; background: var(--paper); padding: 1.25rem 1.5rem; border-left: 6px solid var(--line); max-width: 40rem; }
.inline-result.available { border-left-color: var(--pine); }
.inline-result.taken { border-left-color: var(--brick); }
.inline-result .big { font: 800 clamp(2rem, 6vw, 3.2rem)/1 var(--display); margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.inline-result h2 { margin-top: 1.5rem; }
.dot.checking::before { animation: pulse 0.9s infinite alternate; }
@keyframes pulse { to { opacity: 0.25; } }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.foot h2 { font-size: 1rem; color: var(--ink); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 0.2rem 0; }
.foot a { margin: 0; }
.fine { margin-top: 2rem; max-width: 46rem; }
@media (prefers-reduced-motion: reduce) { .dot.checking::before { animation: none; } }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 0.9rem 0 0.9rem 3rem; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.9rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--alp); color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.compare th:first-child, .compare td:first-child { font-weight: 600; }
.price-note { font-size: 0.9rem; color: var(--soft); margin-top: 0.5rem; }


.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
  width: 100%;
}
.home-cell { min-width: 0; }
.home-cell h2 { margin-top: 0; }
.domain-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  min-width: 0;
  table-layout: fixed;
}
.domain-table th, .domain-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.domain-table thead th {
  font-size: 0.8rem;
  color: var(--soft);
  font-weight: 600;
  background: var(--mist);
}
.domain-table .col-domain { width: 46%; font-weight: 600; overflow-wrap: anywhere; }
.domain-table .col-domain a { text-decoration: none; font-weight: 600; }
.domain-table .col-domain a:hover { text-decoration: underline; }
.domain-table .col-checked { width: 28%; font-size: 0.9rem; white-space: nowrap; }
.domain-table .col-status { width: 26%; white-space: nowrap; }
.domain-table .nolink { font-weight: 600; }
@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; gap: 2rem; }
  .domain-table { table-layout: auto; }
  .domain-table .col-checked { white-space: normal; }
}

/* Directory / list filters */
.list-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--alp);
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
  max-width: 52rem;
}
.list-filters label { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; font-size: 0.92rem; }
.list-filters .lf-label { color: var(--soft); font-weight: 600; font-size: 0.82rem; }
.list-filters input[type="search"],
.list-filters select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.list-filters input[type="search"]:focus,
.list-filters select:focus { outline: 3px solid var(--alp); outline-offset: 1px; }
.list-filter-count { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; }
tr[hidden] { display: none !important; }
@media (max-width: 540px) {
  .list-filters { grid-template-columns: 1fr; }
}

/* List pagination (25 names per page; rows outside the page get [data-page-hidden]) */
tr[data-page-hidden] { display: none !important; }
.list-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin: 0.25rem 0 1.5rem; max-width: 52rem; }
.list-pager[hidden] { display: none; }
.pager-info { margin: 0; font-size: 0.9rem; }
.pager-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.pager-btn { font: 600 0.95rem/1 var(--body); min-width: 2.5rem; min-height: 2.5rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--alp); cursor: pointer; }
.pager-btn:hover:not([disabled]) { border-color: var(--alp); background: #EEF3FB; }
.pager-btn[aria-current="page"] { background: var(--alp); border-color: var(--alp); color: #fff; cursor: default; }
.pager-btn[disabled] { color: var(--soft); opacity: 0.55; cursor: not-allowed; }
.pager-gap { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.2rem; color: var(--soft); }
@media (max-width: 540px) {
  .list-pager { flex-direction: column; align-items: stretch; }
  .pager-list { justify-content: center; gap: 0.25rem; }
  .pager-btn { min-width: 2.2rem; padding: 0.5rem 0.45rem; font-size: 0.9rem; }
  .pager-info { text-align: center; }
}
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
