:root {
  --ink: #172522;
  --muted: #62716d;
  --forest: #123c35;
  --forest-2: #1b5147;
  --mint: #d8eee7;
  --mint-light: #eff8f5;
  --cream: #f8f6f0;
  --white: #fff;
  --line: #d9e1de;
  --table-heading: #f5f8f7;
  --accent: #d97645;
  --shadow: 0 16px 40px rgba(18, 60, 53, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: clip; min-width: 320px; }
a { color: var(--forest-2); }
button, input, select { font: inherit; }
.shell { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
main.shell { padding-bottom: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--forest); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -250px; border: 1px solid rgba(216, 238, 231, .18); border-radius: 50%; box-shadow: 0 0 0 75px rgba(216, 238, 231, .035), 0 0 0 150px rgba(216, 238, 231, .025); }
.hero__inner { position: relative; z-index: 1; display: flex; gap: 28px; align-items: center; padding: 14px 0; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--white); font-weight: 720; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--forest); background: var(--mint); border-radius: 10px 4px 10px 4px; font-family: Georgia, serif; font-size: 18px; }
.header-controls { display: flex; width: min(900px, calc(100% - 280px)); gap: 10px; align-items: center; margin-left: auto; }
.header-search { min-width: 0; flex: 1; }
.info-toggle { display: grid; width: 40px; height: 40px; flex: none; padding: 0; place-items: center; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(216,238,231,.45); border-radius: 9px; cursor: pointer; }
.info-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.info-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(216,238,231,.7); }
.info-toggle:focus-visible { outline: 3px solid rgba(216,238,231,.35); outline-offset: 2px; }
.info-toggle[aria-pressed="true"] { color: var(--forest); background: var(--mint); border-color: var(--mint); }
.info-toggle:disabled { opacity: .55; cursor: wait; }
.language-toggle { display: grid; width: 40px; height: 40px; flex: none; place-items: center; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(216,238,231,.45); border-radius: 9px; font-size: 12px; font-weight: 800; text-decoration: none; }
.language-toggle:hover { background: rgba(255,255,255,.12); border-color: rgba(216,238,231,.7); }
.language-toggle:focus-visible { outline: 3px solid rgba(216,238,231,.35); outline-offset: 2px; }
h2 { margin: 0; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.5vw, 32px); font-weight: 500; letter-spacing: -.025em; }
#table-title[title], .result-group h3[title] { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: help; }
#table-title[title]:focus-visible, .result-group h3[title]:focus-visible { outline: 2px solid var(--forest-2); outline-offset: 4px; border-radius: 2px; }
.title-tooltip { position: fixed; z-index: 50; width: max-content; max-width: min(360px, calc(100vw - 24px)); max-height: 45vh; overflow-y: auto; padding: 10px 12px; color: var(--white); background: var(--forest); border: 1px solid rgba(216,238,231,.35); border-radius: 8px; box-shadow: 0 10px 28px rgba(18,60,53,.28); font-size: 13px; line-height: 1.45; }
.data-date { margin: 0; color: var(--muted); font-size: 12px; }
.data-date strong { font-weight: 700; }
.registry-list { --count-column-width: 50px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 20px; margin-bottom: 14px; }

.global-results { min-width: 0; margin-top: 20px; }
.global-loading, .global-empty { min-height: 180px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.global-empty { padding: 24px 16px; text-align: center; }
.global-empty:not([hidden]) { margin-bottom: 14px; }
.did-you-mean { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 3px 0; }
.did-you-mean__question { color: var(--ink); font-weight: 700; }
.did-you-mean__options { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.did-you-mean__options button { min-height: 34px; padding: 7px 11px; color: var(--forest); background: var(--mint-light); border: 1px solid #cdded8; border-radius: 8px; cursor: pointer; font-weight: 700; }
.did-you-mean__options button:hover { background: var(--mint); border-color: #9dbab1; }
.did-you-mean__options button:focus-visible { outline: 3px solid rgba(27,81,71,.22); outline-offset: 1px; }
.global-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-bottom: 14px; }
.global-overview__item { display: grid; min-width: 0; min-height: 32px; grid-template-columns: var(--count-column-width, max-content) minmax(0, 1fr); gap: 6px; align-items: center; padding: 4px 8px; color: var(--forest); background: var(--mint-light); border: 1px solid #cdded8; border-radius: 8px; font-size: 12px; text-align: left; }
button.global-overview__item { cursor: pointer; }
button.global-overview__item:hover { background: var(--mint); border-color: #9dbab1; }
button.global-overview__item:focus-visible { outline: 3px solid rgba(27,81,71,.22); outline-offset: 1px; }
.global-overview__item span { min-width: 0; overflow: hidden; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.global-overview__item strong { width: max-content; max-width: 100%; justify-self: end; padding: 2px 5px; background: var(--white); border-radius: 999px; font-size: 11px; line-height: 1.2; text-align: right; }
.global-overview__item--empty { color: #83908d; background: #f5f6f5; border-color: var(--line); opacity: .5; }
.global-overview__item--error { color: #8b4b35; background: #fff2ec; border-color: #efd2c5; }
.registry-choice span { overflow: hidden; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.registry-choice[aria-current="page"] { color: var(--white); background: var(--forest-2); border-color: var(--forest-2); }
.registry-choice[aria-current="page"]:hover { background: var(--forest); border-color: var(--forest); }
.registry-choice[aria-current="page"] strong { color: var(--forest); background: var(--mint); }
.registry-choice--ncpr { color: #174f7a; background: #dceeff; border-color: #8ab8df; }
.registry-choice--ncpr strong { color: #174f7a; background: #f5faff; }
button.registry-choice--ncpr:hover { color: #123f62; background: #c5e2fa; border-color: #5f9dcd; }
button.registry-choice--ncpr:focus-visible { outline-color: rgba(31,108,163,.4); }
.global-overview__item--empty.registry-choice--ncpr { color: #668096; background: #edf5fb; border-color: #c6dbe9; }
.registry-choice--ncpr[aria-current="page"] { color: var(--white); background: #1f6fa5; border-color: #1f6fa5; }
.registry-choice--ncpr[aria-current="page"]:hover { background: #195f8e; border-color: #195f8e; }
.registry-choice--ncpr[aria-current="page"] strong { color: #10466c; background: #d5ebfb; }
.global-groups { display: grid; min-width: 0; gap: 14px; justify-items: start; }
.result-group { width: fit-content; max-width: 100%; min-width: 0; overflow: clip; scroll-margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.result-group__header { position: sticky; z-index: 6; top: 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--table-heading); border-bottom: 1px solid var(--line); }
.result-group__header > div:first-child { min-width: 0; flex: 1; }
.result-group h3 { min-width: 0; margin: 0; overflow: hidden; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.result-group__actions { display: flex; flex: none; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.result-group__count-compact { display: none; }
.result-table-wrap { border-bottom: 1px solid var(--line); }
.result-group th { padding: 10px 12px; }
.result-group__error { margin: 0; padding: 28px 20px; color: #8b4b35; }
.group-pagination { display: flex; min-height: 52px; gap: 14px; align-items: center; justify-content: flex-start; padding: 8px 14px; color: var(--muted); font-size: 12px; }
.group-pagination button { min-height: 34px; padding: 7px 11px; color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.group-pagination button:hover:not(:disabled) { background: var(--mint); }
.group-pagination button:disabled { opacity: .4; cursor: default; }

.browser { width: fit-content; max-width: 100%; min-width: 0; overflow: clip; background: var(--white); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.browser__header { position: sticky; z-index: 6; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px 17px; background: var(--table-heading); border-bottom: 1px solid var(--line); }
.browser__actions { display: flex; flex: none; gap: 12px; align-items: center; }
.browser__meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.search { display: flex; width: min(620px, 62vw); height: 39px; gap: 9px; align-items: center; padding: 0 11px; background: var(--white); border: 1px solid #b8c9c4; border-radius: 9px; box-shadow: 0 2px 6px rgba(18,60,53,.04); }
.search--global { width: 100%; height: 40px; border-color: rgba(216, 238, 231, .7); }
.search:focus-within { border-color: var(--forest-2); outline: 3px solid rgba(27,81,71,.12); }
.search svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-clear { display: grid; width: 22px; height: 28px; flex: none; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 5px; }
.search-clear:disabled { opacity: 1; }
.search-clear:not(:disabled) { cursor: pointer; }
.search-clear:not(:disabled):hover { background: var(--mint-light); }
.search-clear:focus-visible { outline: 2px solid var(--forest-2); outline-offset: 1px; }
.search-clear__remove { display: none; }
.search-clear[data-active="true"] .search-clear__magnifier { display: none; }
.search-clear[data-active="true"] .search-clear__remove { display: block; }
.search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search input::-webkit-search-cancel-button { appearance: none; }
.search input::placeholder { color: #8a9693; }
.search-suggestions { position: fixed; z-index: 20; overflow-y: auto; margin: 0; padding: 6px; color: var(--ink); background: var(--white); border: 1px solid #b8c9c4; border-radius: 10px; box-shadow: 0 14px 34px rgba(18,60,53,.2); list-style: none; }
.search-suggestion { display: flex; min-height: 48px; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: var(--mint-light); }
.search-suggestion__value { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 680; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion__meta { flex: none; color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
select { padding: 7px 26px 7px 9px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }

.loading { min-height: 180px; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); }
.loading span { width: 18px; height: 18px; border: 2px solid var(--mint); border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-wrap { width: auto; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: visible; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.sticky-table-header { position: fixed; z-index: 5; overflow: hidden; background: var(--table-heading); border-bottom: 1px solid var(--line); box-shadow: 0 5px 12px rgba(18,60,53,.09); }
.sticky-table-header table { margin: 0; table-layout: fixed; }
.sticky-table-header th { position: static; }
.sticky-table-header--result th { padding: 10px 12px; }
table { width: auto; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th { position: sticky; z-index: 2; top: 0; padding: 0; text-align: left; color: #40534e; background: var(--table-heading); border-bottom: 1px solid var(--line); white-space: nowrap; }
th button { width: 100%; padding: 10px 12px; color: inherit; background: transparent; border: 0; font-weight: 750; text-align: left; cursor: pointer; }
th button:hover { color: var(--forest); background: #e9f2ef; }
th button::after { content: " ↕"; color: #9caaa6; }
th button[data-direction="asc"]::after { content: " ↑"; color: var(--forest); }
th button[data-direction="desc"]::after { content: " ↓"; color: var(--forest); }
td { max-width: 390px; padding: 9px 12px; vertical-align: top; border-bottom: 1px solid #e9eeec; line-height: 1.4; }
tbody tr:nth-child(even) { background: #fbfcfc; }
tbody tr:hover { background: #f1f8f5; }
td a { color: #176b5b; font-weight: 680; text-underline-offset: 2px; }
.empty { min-height: 220px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 18px; }
.pagination { display: flex; min-height: 56px; gap: 5px; align-items: center; justify-content: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.pagination button { min-width: 34px; height: 34px; padding: 0 9px; color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.pagination button:hover:not(:disabled) { background: var(--mint); }
.pagination button[aria-current="page"] { color: var(--white); background: var(--forest); border-color: var(--forest); }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination span { color: var(--muted); }

.site-footer { padding: 16px 0; background: #edeae1; border-top: 1px solid #ded9cc; }
.site-footer__inner { display: flex; gap: 18px 28px; align-items: center; justify-content: space-between; }
.source-references { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: 12px; }
.source-references strong { color: var(--ink); }
.source-references a { color: var(--forest-2); text-underline-offset: 3px; }
.site-footer__meta { display: grid; flex: none; gap: 4px; text-align: right; }
.footer-contact { margin: 0; color: var(--muted); font-size: 12px; }
.footer-contact a { color: var(--forest-2); text-underline-offset: 3px; }
@media (max-width: 1200px) {
  .registry-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .global-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browser__header { align-items: start; flex-direction: column; }
  .browser__actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 16px, 1440px); }
  main.shell { padding-bottom: 14px; }
  .brand { gap: 9px; font-size: 14px; }
  .brand__mark { width: 31px; height: 31px; }
  .hero__inner { gap: 10px; padding: 11px 0; }
  .brand { display: none; }
  .header-controls { width: 100%; gap: 7px; }
  .info-toggle, .language-toggle { width: 38px; height: 38px; }
  .search--global { height: 38px; }
  .global-results, .registry-list { margin-top: 12px; }
  .global-overview { gap: 4px; margin-bottom: 10px; }
  .registry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
  .global-overview__item { min-height: 40px; padding: 5px 7px; }
  .global-overview__item span { overflow: visible; line-height: 1.2; text-overflow: clip; white-space: normal; }
  .global-groups { gap: 10px; }
  .result-group { width: 100%; max-width: 100%; border-radius: 12px; }
  .result-table-wrap { display: block; width: 100%; max-width: 100%; touch-action: pan-x pan-y; }
  .result-group__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 11px 12px; }
  .result-group h3 { font-size: 18px; }
  .result-group__actions { gap: 6px; justify-content: flex-end; }
  .result-group__count-full { display: none; }
  .result-group__count-compact { display: inline; }
  .result-group th { padding: 9px 10px; }
  .group-pagination { justify-content: flex-start; gap: 8px; padding: 8px; }
  .group-pagination button { padding-inline: 9px; }
  .browser { border-radius: 13px; }
  .browser__header { gap: 12px; padding: 16px; }
  .browser__actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .browser__meta { gap: 8px; }
  .data-date { font-size: 12px; }
  .search { width: 100%; }
  .search-suggestion { min-height: 44px; padding: 7px 9px; }
  .search-suggestion__value { font-size: 12px; }
  .search-suggestion__meta { max-width: 38%; overflow: hidden; text-overflow: ellipsis; }
  table { font-size: 12px; }
  th button { padding: 9px 10px; }
  td { max-width: 280px; padding: 8px 10px; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .source-references { align-items: center; flex-direction: row; gap: 6px 12px; }
  .site-footer__meta { text-align: left; }
}

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