@charset "UTF-8";
:root {
  color-scheme:dark;
  --bg:#151a19;
  --panel:#1c2220;
  --border:#343b35;
  --text:#eeeee5;
  --muted:#a3aaa1;
  --gold:#d0b784;
  --gold-light:#ead6a7;
  --serif:Georgia,'Times New Roman',serif;
  --sans:Arial,Helvetica,sans-serif;
}

* {
  box-sizing:border-box;
}

[hidden] {
  display:none !important;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:28px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,select,summary {
  font:inherit;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:2px solid var(--gold-light);
  outline-offset:5px;
}

::selection {
  background:#796840;
  color:white;
}

.shell {
  max-width:1240px;
  width:calc(100% - 112px);
  margin-inline:auto;
}

.site-header {
  border-bottom:1px solid var(--border);
}

.header-inner {
  min-height:92px;
  display:flex;
  align-items:center;
  gap:60px;
}

.header-navigation {
  margin-inline-start:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:12px 28px;
}

.account-link {
  color:var(--gold-light);
  font-size:13px;
  padding-block:10px;
}

.account-link:hover {
  text-decoration:underline;
  text-underline-offset:5px;
}

.language-nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px 16px;
  font-size:12px;
  color:var(--muted);
}

.language-nav a[aria-current] {
  color:var(--gold-light);
  text-decoration:underline;
  text-underline-offset:5px;
}

@media (max-width:600px) {
  .header-inner { gap:16px; flex-wrap:wrap; padding-block:18px; }
  .header-navigation { gap:8px 18px; }
  .language-nav { gap:8px 12px; }
}

.brand {
  font-size:25px;
  font-weight:600;
  letter-spacing:-1.2px;
  display:inline-flex;
  align-items:center;
  gap:12px;
}

.brand-dot {
  color:var(--gold);
}

.eyebrow {
  font-size:10px;
  line-height:1.6;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--gold);
  margin:0 0 20px;
  display:flex;
  align-items:center;
  gap:12px;
}

.short-rule {
  height:1px;
  width:25px;
  background:var(--gold);
}

h1,h2,h3,p {
  margin-top:0;
}

h1 {
  font-family:var(--serif);
  font-size:clamp(48px,5.7vw,78px);
  font-weight:400;
  line-height:1.06;
  letter-spacing:-2.8px;
  margin-bottom:24px;
}

h1 em {
  font-weight:400;
  color:var(--gold);
  font-style:italic;
}

.text-link {
  font-size:12px;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:16px;
}

.text-link:hover {
  color:var(--gold-light);
  text-decoration:underline;
  text-underline-offset:5px;
}

.directory {
  padding:42px 0 56px;
}

.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:27px;
}

.section-heading h1 {
  font-family:var(--serif);
  font-weight:400;
  letter-spacing:-.7px;
  font-size:34px;
  line-height:1.2;
  margin:0;
}

.search-form {
  display:flex;
  align-items:center;
  border:1px solid #41483e;
  border-radius:3px;
  background:#1c221f;
  padding:8px 9px 8px 20px;
  gap:14px;
}

.search-field {
  display:flex;
  align-items:center;
  gap:14px;
  flex:1;
  min-width:0;
}

.search-icon {
  width:20px;
  height:20px;
  flex-shrink:0;
  fill:none;
  stroke:var(--muted);
  stroke-width:1.4;
}

.search-form input {
  flex:1;
  min-width:0;
  width:100%;
  padding:10px 0;
  background:transparent;
  border:0;
  color:var(--text);
  font-size:13px;
}

.search-form input::placeholder {
  color:var(--muted);
  opacity:1;
}

.search-form input:focus-visible {
  outline-offset:2px;
}

.filter-toggle,.button-link {
  background:var(--gold);
  color:#1d231d;
  font-size:12px;
  font-weight:600;
  border:1px solid var(--gold);
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:25px;
  justify-content:center;
  padding:11px 21px;
  cursor:pointer;
  white-space:nowrap;
}

.filter-toggle:hover,.button-link:hover {
  background:var(--gold-light);
  border-color:var(--gold-light);
}

.filter-menu {
  position:relative;
  flex-shrink:0;
}

.filter-toggle {
  list-style:none;
  min-height:44px;
  gap:9px;
  padding:10px 17px;
}

.filter-toggle::-webkit-details-marker {
  display:none;
}

.filter-toggle svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
}

.filter-chevron {
  font-size:17px;
  line-height:1;
  transition:transform .15s;
}

.filter-menu[open] .filter-chevron {
  transform:rotate(180deg);
}

.filter-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:19px;
  height:19px;
  border-radius:50%;
  background:#1d231d;
  color:var(--gold-light);
  font-size:10px;
}

.filter-panel {
  position:absolute;
  top:calc(100% + 15px);
  right:0;
  z-index:5;
  width:390px;
  max-width:calc(100vw - 58px);
  padding:22px;
  background:var(--panel);
  border:1px solid #5d624d;
  border-radius:3px;
  box-shadow:0 12px 35px #0005;
}

.filter-heading {
  font-family:var(--serif);
  font-size:23px;
  line-height:1.2;
  margin-bottom:20px;
}

.filter-fields {
  display:grid;
  grid-template-columns:1fr;
  gap:17px;
}

.filter-fields label {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}

.filter-fields select {
  display:block;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:2px;
  background:var(--bg);
  color:var(--text);
  font-size:13px;
}

.clear-filters {
  padding:0;
  margin-top:19px;
  min-height:30px;
  border:0;
  background:none;
  color:var(--gold);
  font-size:12px;
  cursor:pointer;
}

.clear-filters span {
  margin-left:8px;
}

.clear-filters:hover {
  color:var(--gold-light);
}

.search-error {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding:15px 0 0;
  font-size:12px;
  color:var(--gold-light);
}

.search-error button {
  padding:0;
  background:none;
  border:0;
  cursor:pointer;
  text-decoration:underline;
}

#directory-results[aria-busy=true] {
  opacity:.65;
}

.results-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:11px;
  padding:22px 0 17px;
}

.results-bar p {
  margin:0;
  overflow-wrap:anywhere;
}

.results-description {
  min-width:0;
}

.results-actions>.text-link {
  white-space:nowrap;
  flex-shrink:0;
  gap:8px;
}

.active-filters {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:9px;
}

.active-filters span {
  color:var(--gold-light);
  border:1px solid #514d3c;
  border-radius:2px;
  padding:3px 8px;
  font-size:10px;
}

.result-number {
  font-variant-numeric:tabular-nums;
  color:var(--text);
  margin-right:8px;
}

.results-bar>span {
  white-space:nowrap;
}

.results-bar>span span {
  margin-left:15px;
  color:var(--text);
}

.results-bar strong {
  font-weight:400;
  color:var(--text);
}

.query-description {
  display:block;
  margin-top:3px;
}

#result-summary:focus-visible {
  outline:2px solid var(--gold-light);
  outline-offset:5px;
}

.results-actions {
  display:flex;
  align-items:center;
  gap:20px;
  flex-shrink:0;
}

.view-switch {
  display:flex;
  border:1px solid var(--border);
  border-radius:3px;
}

.view-switch a {
  padding:9px 15px;
  min-height:40px;
}

.view-switch [aria-current],.page-numbers [aria-current] {
  color:var(--gold-light);
  background:var(--panel);
}

.country-list {
  margin:0;
  padding:0;
  list-style:none;
  border:1px solid var(--border);
  border-radius:3px;
  background:var(--panel);
}

.country-list li+li {
  border-top:1px solid var(--border);
}

.country-row {
  display:grid;
  grid-template-columns:40px minmax(0,1.7fr) minmax(0,1fr) minmax(0,1.2fr);
  align-items:center;
  gap:20px;
  padding:18px 22px;
  transition:background .18s;
}

.country-row:hover {
  background:#222920;
}

.row-flag img {
  display:block;
  width:40px;
  height:28px;
  object-fit:contain;
}

.row-name {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:5px 10px;
  min-width:0;
}

.row-name h3 {
  margin:0;
  font-family:var(--serif);
  font-size:22px;
  font-weight:400;
  line-height:1.25;
  overflow-wrap:anywhere;
}

.row-code,.row-continent,.row-status {
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}

.row-code {
  font-size:10px;
  letter-spacing:1px;
}

.directory-pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:24px;
  font-size:12px;
  color:var(--gold);
}

.page-numbers {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:5px;
  font-variant-numeric:tabular-nums;
}

.page-numbers a,.page-ellipsis {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  border-radius:3px;
}

.page-numbers [aria-current] {
  border:1px solid var(--border);
}

.page-step {
  padding:10px 0;
  white-space:nowrap;
}

.page-step[aria-disabled] {
  color:var(--muted);
  opacity:.6;
}

@media(max-width:760px) {
  .results-bar {
    flex-wrap:wrap;
  }
  .results-actions {
    gap:14px;
    margin-left:auto;
  }
  .country-row {
    grid-template-columns:40px minmax(0,1fr);
    gap:4px 14px;
    padding:16px;
  }
  .row-flag {
    grid-column:1;
    grid-row:1 / 4;
  }
  .row-name {
    grid-column:2;
    grid-row:1;
  }
  .row-continent {
    grid-column:2;
    grid-row:2;
  }
  .row-status {
    grid-column:2;
    grid-row:3;
  }
  .directory-pagination {
    flex-wrap:wrap;
    gap:10px;
  }
  .page-numbers {
    order:-1;
    flex-basis:100%;
  }
}

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

.country-card {
  display:flex;
  position:relative;
  flex-direction:column;
  overflow:hidden;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:3px;
  min-height:280px;
  transition:border-color .18s,background .18s,transform .18s;
}

.country-card:hover {
  border-color:#8e7c54;
  background:#222920;
  transform:translateY(-3px);
}

.card-top {
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:6px;
  padding:20px 19px 0;
}

.status-badge {
  font-size:9px;
  color:#c5cbbf;
  letter-spacing:.5px;
  border:1px solid #485143;
  border-radius:2px;
  padding:4px 7px;
  line-height:1.5;
  display:inline-block;
  max-width:190px;
}

.card-index {
  font-size:10px;
  color:#9ca38f;
  font-variant-numeric:tabular-nums;
  padding-top:5px;
}

.card-content {
  z-index:1;
  position:relative;
  margin-top:auto;
  padding:26px 20px 20px;
}

.card-continent {
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--muted);
  text-transform:uppercase;
  margin-bottom:6px;
}

.country-card h3 {
  font-family:var(--serif);
  font-size:29px;
  font-weight:400;
  letter-spacing:-.8px;
  line-height:1.15;
  margin:0;
  overflow-wrap:anywhere;
}

.card-flag {
  display:flex;
  align-items:center;
  justify-content:center;
  margin:22px 20px 0;
  min-height:100px;
}

.card-flag img {
  display:block;
  width:min(100%,160px);
  height:100px;
  object-fit:contain;
  filter:drop-shadow(0 4px 8px #0003);
}

.site-footer {
  border-top:1px solid var(--border);
  padding:26px 0 32px;
  display:flex;
  align-items:center;
  gap:30px;
  color:var(--muted);
  font-size:10px;
}

.footer-brand {
  font-size:17px;
  color:var(--text);
  font-weight:600;
  letter-spacing:-.6px;
}

.empty-state {
  grid-column:1/-1;
  text-align:center;
  padding:40px 20px 48px;
  border:1px dashed var(--border);
  border-radius:3px;
}

.empty-state h3 {
  font-family:var(--serif);
  font-weight:400;
  font-size:29px;
  margin-bottom:8px;
}

.empty-state p {
  font-size:13px;
  color:var(--muted);
}

.empty-symbol {
  display:block;
  font-size:46px;
  color:var(--gold);
  line-height:1;
  margin-bottom:15px;
}

.empty-state .button-link {
  margin-top:10px;
}

.breadcrumb {
  display:flex;
  gap:13px;
  font-size:11px;
  color:var(--muted);
  padding-top:33px;
  flex-wrap:wrap;
}

.breadcrumb a:hover {
  color:var(--gold);
}

.breadcrumb span:last-child {
  color:var(--text);
}

.dossier-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:54px 0 43px;
  border-bottom:1px solid var(--border);
}

.dossier-hero h1 {
  font-size:clamp(48px,6.5vw,88px);
  overflow-wrap:anywhere;
  margin-bottom:22px;
}

.dossier-location {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.dossier-hero>div {
  min-width:0;
}

.dossier-flag {
  display:block;
  width:clamp(160px,22vw,240px);
  height:160px;
  flex-shrink:0;
  object-fit:contain;
  filter:drop-shadow(0 6px 12px #0003);
}

.panel {
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:3px;
  padding:29px 31px;
}

.panel-heading {
  margin-bottom:0;
}

.panel h2 {
  font-family:var(--serif);
  font-weight:400;
  font-size:29px;
  letter-spacing:-.5px;
  line-height:1.2;
  margin:0;
}

.facts-panel {
  margin-top:35px;
}

.memberships-panel {
  margin-top:35px;
}

.membership-summary {
  margin:17px 0 24px;
  color:var(--muted);
  font-size:12px;
}

.memberships-table {
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
  font-size:13px;
}

.memberships-table th,.memberships-table td {
  padding:16px 0;
  border-top:1px solid var(--border);
  text-align:start;
  vertical-align:top;
  overflow-wrap:anywhere;
}

.memberships-table th {
  color:var(--muted);
  font-size:12px;
  font-weight:400;
}

.memberships-table th:first-child,.memberships-table td:first-child {
  width:70%;
  padding-inline-end:20px;
}

.organization-id {
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}

.leadership-list {
  list-style:none;
  padding:0;
  margin:0;
}

.leadership-list li+li {
  margin-top:6px;
}

.facts-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:48px;
  margin:21px 0 0;
}

.facts-list>div {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:20px 0;
  border-top:1px solid var(--border);
}

.facts-list dt {
  font-size:12px;
  color:var(--muted);
}

.facts-list dd {
  font-size:13px;
  margin:0;
  overflow-wrap:anywhere;
}

.country-codes {
  display:flex;
  gap:6px 12px;
  flex-wrap:wrap;
  font-variant-numeric:tabular-nums;
}

.country-codes small {
  flex-basis:100%;
  font-size:11px;
}

.currency-list {
  list-style:none;
  padding:0;
  margin:0;
}

.currency-list li+li {
  margin-top:6px;
}

.footer-links {
  margin-left:auto;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 20px;
}

.footer-links button {
  border:0;
  padding:0;
  background:none;
  color:inherit;
  font:inherit;
  cursor:pointer;
}

.footer-links a:hover,.footer-links button:hover {
  color:var(--gold);
}

.cookie-notice {
  position:fixed;
  z-index:20;
  bottom:16px;
  right:16px;
  width:min(460px,calc(100% - 32px));
  padding:24px;
  border:1px solid var(--border);
  border-radius:3px;
  background:var(--panel);
  box-shadow:0 8px 35px #0006;
  max-height:calc(100dvh - 32px);
  overflow:auto;
}

.cookie-notice h2 {
  font-family:var(--serif);
  font-size:24px;
  font-weight:400;
  line-height:1.25;
  margin:0 0 12px;
}

.cookie-notice p {
  font-size:13px;
  color:var(--muted);
}

.cookie-notice a {
  color:var(--gold);
  text-decoration:underline;
}

.cookie-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.cookie-actions button {
  flex:1 1 auto;
  justify-content:center;
}

.cookie-actions button:disabled {
  opacity:.5;
  cursor:default;
}

.footer-links [hidden],.cookie-notice[hidden],.cookie-notice [hidden] {
  display:none;
}

.about-page {
  padding:55px 0 65px;
  max-width:760px;
}

.about-page>p:not(.eyebrow) {
  color:var(--muted);
  margin-bottom:30px;
}

.about-page .panel h2 {
  margin-bottom:24px;
}

.about-page .panel p:last-child {
  margin-bottom:0;
}

.about-page a {
  color:var(--gold);
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}

.legal-page h1 {
  font-size:clamp(38px,6vw,64px);
  line-height:1.1;
}

.legal-page .legal-date {
  font-size:12px;
}

.legal-page section {
  margin-top:32px;
  padding-top:26px;
  border-top:1px solid var(--border);
}

.legal-page h2 {
  font-family:var(--serif);
  font-size:26px;
  font-weight:400;
  line-height:1.25;
  margin:0 0 18px;
}

.legal-page p,.legal-page li {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
}

.legal-page li+li {
  margin-top:8px;
}

.legal-page strong {
  color:var(--text);
}

.legal-page code {
  overflow-wrap:anywhere;
}

.muted {
  color:var(--muted);
}

.dossier-bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:33px 0 62px;
}

.dossier-bottom>span {
  font-size:11px;
  color:var(--muted);
}

.error-page {
  padding:100px 0 130px;
}

.error-page>p:not(.eyebrow) {
  color:var(--muted);
  margin-bottom:30px;
}

.skip-link {
  position:absolute;
  top:-100px;
  left:20px;
  padding:10px 18px;
  background:var(--gold);
  color:var(--bg);
  z-index:10;
}

.skip-link:focus {
  top:12px;
}

.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;
}

main:focus {
  outline:none;
}

@media(min-width:1500px) {
  .country-card {
    min-height:300px;
  }
}

@media(max-width:1100px) {
  .shell {
    width:calc(100% - 64px);
  }
  .header-inner {
    gap:38px;
  }
  .country-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
  }
  .country-card {
    min-height:265px;
  }
  .status-badge {
    max-width:none;
  }
  .panel {
    padding:25px;
  }
}

@media(max-width:760px) {
  .shell {
    width:calc(100% - 40px);
  }
  .header-inner {
    min-height:76px;
    justify-content:space-between;
    gap:15px;
  }
  .brand {
    font-size:23px;
    gap:9px;
  }
  .brand img {
    width:26px;
    height:26px;
  }
  h1 {
    font-size:61px;
    letter-spacing:-2.5px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.5px;
    gap:9px;
  }
  .directory {
    padding-top:32px;
  }
  .section-heading {
    align-items:flex-start;
    margin-bottom:23px;
  }
  .section-heading h1 {
    font-size:31px;
  }
  .search-form {
    gap:10px;
    padding-left:13px;
  }
  .search-field {
    gap:10px;
  }
  .filter-toggle {
    padding:10px 14px;
    gap:8px;
  }
  .search-form input {
    font-size:16px;
  }
  .filter-fields select {
    font-size:16px;
  }
  .search-form input::placeholder {
    font-size:12px;
  }
  .search-icon {
    width:17px;
  }
  .country-grid {
    gap:14px;
  }
  .card-top {
    padding:16px 15px 0;
  }
  .card-content {
    padding:28px 15px 18px;
  }
  .card-bottom {
    padding:13px 15px;
  }
  .country-card h3 {
    font-size:27px;
  }
  .country-card {
    min-height:255px;
  }
  .status-badge {
    font-size:8px;
  }
  .card-index {
    display:none;
  }
  .card-continent {
    font-size:8px;
  }
  .results-bar {
    font-size:10px;
    gap:10px;
  }
  .results-bar>span span {
    margin-left:7px;
  }
  .site-footer {
    flex-wrap:wrap;
    justify-content:space-between;
    gap:14px;
  }
  .dossier-hero {
    padding:38px 0 32px;
    flex-direction:column;
    align-items:flex-start;
    gap:24px;
  }
  .dossier-flag {
    width:160px;
    max-width:100%;
    height:110px;
  }
  .dossier-hero h1 {
    font-size:59px;
  }
  .dossier-bottom {
    padding-bottom:43px;
  }
  .dossier-bottom>span {
    display:none;
  }
  .breadcrumb {
    padding-top:25px;
  }
  .error-page {
    padding:70px 0 90px;
  }
  .error-page h1 {
    font-size:48px;
  }
}

@media(max-width:420px) {
  .country-grid {
    grid-template-columns:1fr;
  }
  .country-card {
    min-height:240px;
  }
  .card-top {
    padding:19px 20px 0;
  }
  .card-content {
    padding:28px 20px 20px;
  }
  .card-bottom {
    padding-inline:20px;
  }
  .card-index {
    display:block;
  }
  .country-card h3 {
    font-size:33px;
  }
  .status-badge {
    font-size:9px;
  }
  .card-continent {
    font-size:9px;
  }
  .filter-toggle {
    gap:6px;
    padding-inline:11px;
  }
  .filter-toggle svg {
    display:none;
  }
  .filter-panel {
    padding:20px;
  }
  h1 {
    font-size:55px;
  }
  .brand {
    font-size:21px;
  }
  .panel {
    padding:23px;
  }
  .dossier-hero h1 {
    font-size:51px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .country-card {
    transition:none;
  }
  .country-card:hover {
    transform:none;
  }
}

.fact-note {
  color:var(--muted);
  margin-top:8px;
  overflow-wrap:anywhere;
}

.fact-note:first-child {
  margin-top:0;
}

.fact-note p {
  margin:0 0 8px;
}

.fact-note p:last-child {
  margin-bottom:0;
}

@media(max-width:760px) {
  .facts-panel {
    margin-top:25px;
  }
  .facts-list {
    grid-template-columns:1fr;
  }
}

/* A shared pair, from the first selection to its relationship dossier. */
.relationship-explorer {
  padding:42px 0 38px;
  border-bottom:1px solid var(--border);
}
.relationship-explorer .eyebrow {
  margin-bottom:12px;
}
.relationship-explorer h2,.native-picker h1 {
  font-family:var(--serif);
  font-size:clamp(30px,3.3vw,42px);
  font-weight:400;
  line-height:1.2;
  letter-spacing:-1px;
  margin:0 0 10px;
}
.explorer-intro {
  color:var(--muted);
  font-size:13px;
  margin:0 0 25px;
}
.relationship-slots {
  display:grid;
  grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);
  align-items:center;
}
.relationship-slot-wrapper {
  position:relative;
  min-width:0;
}
.relationship-slot {
  display:flex;
  align-items:center;
  gap:22px;
  padding:27px 46px 27px 27px;
  min-height:139px;
  background:linear-gradient(120deg,#212823,var(--panel));
  border:1px solid #444b3f;
  border-radius:4px;
  transition:border-color .15s,background-color .15s;
}
.relationship-slot:hover,.relationship-slot.is-selected {
  border-color:var(--gold);
}
.slot-placeholder {
  display:flex;
  align-items:center;
  justify-content:center;
  width:68px;
  height:46px;
  border:1px dashed #68715e;
  border-radius:2px;
  flex-shrink:0;
  color:var(--gold);
  font-size:27px;
  font-weight:300;
}
.slot-flag {
  width:68px;
  height:46px;
  object-fit:contain;
  flex-shrink:0;
}
.slot-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:4px;
}
.slot-label {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
}
.slot-copy strong {
  font-family:var(--serif);
  font-size:26px;
  font-weight:400;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.slot-hint {
  font-size:11px;
  color:var(--muted);
}
.relationship-connector {
  text-align:center;
  color:var(--gold);
  font-size:26px;
}
.slot-clear,.dialog-close {
  background:transparent;
  border:0;
  color:var(--muted);
  cursor:pointer;
  width:38px;
  height:38px;
  font-size:25px;
  line-height:1;
}
.slot-clear {
  position:absolute;
  right:8px;
  top:8px;
}
.slot-clear:hover,.dialog-close:hover {
  color:var(--gold-light);
}
.relationship-submit {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  width:100%;
  min-height:54px;
  margin-top:18px;
  padding:14px 22px;
  border:1px solid var(--gold);
  border-radius:3px;
  background:var(--gold);
  color:#1b201b;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.relationship-submit:hover:not(:disabled) {
  background:var(--gold-light);
}
.relationship-submit:disabled {
  background:#212823;
  border-color:var(--border);
  color:var(--muted);
  cursor:default;
}
.relationship-submit span {
  font-size:21px;
  line-height:1;
}
.relationship-dialog {
  width:min(560px,calc(100% - 32px));
  max-height:85dvh;
  padding:28px;
  background:var(--panel);
  color:var(--text);
  border:1px solid #68715e;
  border-radius:5px;
  box-shadow:0 24px 90px #0008;
}
.relationship-dialog::backdrop {
  background:#050a09b3;
  backdrop-filter:blur(3px);
}
.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}
.dialog-heading h2 {
  font-family:var(--serif);
  font-size:28px;
  line-height:1.2;
  font-weight:400;
  margin:0;
}
.relationship-query {
  width:100%;
  min-height:50px;
  padding:13px 16px;
  background:var(--bg);
  border:1px solid #525b4c;
  border-radius:3px;
  color:var(--text);
  font-size:13px;
}
.picker-feedback {
  color:var(--muted);
  font-size:11px;
  margin:16px 0 8px;
  min-height:18px;
}
.picker-results {
  list-style:none;
  margin:0;
  padding:0;
  max-height:340px;
  overflow-y:auto;
}
.picker-result {
  display:flex;
  align-items:center;
  gap:15px;
  width:100%;
  min-height:52px;
  padding:12px 10px;
  border:0;
  border-bottom:1px solid var(--border);
  background:transparent;
  color:var(--text);
  text-align:left;
  font-size:14px;
  cursor:pointer;
}
.picker-result:hover,.picker-result:focus-visible {
  background:#2b332c;
}
.picker-result:focus-visible {
  outline-offset:-2px;
}
.picker-result img {
  object-fit:contain;
  flex-shrink:0;
}
.picker-result span {
  overflow-wrap:anywhere;
}
.picker-error,.picker-form-error {
  color:#e0b3a4;
  font-size:13px;
}
.picker-error .text-link {
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
}
.native-picker {
  max-width:850px;
  border-bottom:0;
  padding-bottom:80px;
}
.native-picker-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.native-picker-fields label {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}
.native-picker-fields select {
  width:100%;
  padding:14px;
  color:var(--text);
  background:var(--panel);
  border:1px solid #525b4c;
  border-radius:3px;
}
.relationship-hero {
  padding:36px 0 38px;
}
.relationship-hero .eyebrow {
  margin-bottom:26px;
}
.relationship-title {
  display:grid;
  grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);
  align-items:center;
  gap:20px;
  font-size:clamp(34px,4.6vw,60px);
  letter-spacing:-1.5px;
  margin:0;
}
.relationship-title a {
  display:flex;
  align-items:center;
  gap:24px;
  min-width:0;
}
.relationship-title a:hover span {
  color:var(--gold-light);
}
.relationship-title img {
  width:88px;
  height:58px;
  object-fit:contain;
  flex-shrink:0;
}
.relationship-title a span {
  overflow-wrap:anywhere;
}
.hero-connector {
  text-align:center;
  color:var(--gold);
  font-family:var(--sans);
  font-size:32px;
  font-weight:400;
}
.assessment-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:24px;
}
.relationship-summary {
  font-family:var(--serif);
  font-size:23px;
  line-height:1.45;
  margin:0 0 26px;
  max-width:850px;
  overflow-wrap:anywhere;
}
.score-row {
  padding:25px 0 22px;
  border-top:1px solid var(--border);
}
.score-label {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:19px;
}
.score-label h3 {
  font-size:15px;
  font-weight:400;
  margin:0;
  overflow-wrap:anywhere;
}
.score-value {
  font-family:var(--serif);
  font-size:32px;
  font-weight:400;
  line-height:1;
  flex-shrink:0;
}
.score-unknown {
  font-family:var(--sans);
  font-size:12px;
  color:var(--muted);
}
.score-track {
  position:relative;
  height:9px;
  border-radius:6px;
  background:linear-gradient(to right,#a65f57 0%,#8d7060 25%,#afa085 50%,#7a9276 75%,#529177 100%);
}
.score-zero {
  position:absolute;
  left:50%;
  top:-3px;
  height:15px;
  width:1px;
  background:#eeeee5a6;
}
.score-marker {
  position:absolute;
  left:clamp(8px,var(--score-position),calc(100% - 8px));
  top:50%;
  transform:translate(-50%,-50%);
  width:16px;
  height:16px;
  background:var(--text);
  border:3px solid #1c2220;
  border-radius:50%;
  box-shadow:0 0 0 1px var(--text);
}
.unassessed-track {
  background:#373f38;
}
.score-scale {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  margin-top:10px;
}
.score-scale>span:first-child,.score-scale>span:last-child {
  width:40%;
}
.score-scale>span:last-child {
  text-align:right;
}
.score-scale span span {
  margin-left:6px;
}
.score-rationale {
  font-size:13px;
  line-height:1.7;
  margin:18px 0 0;
  overflow-wrap:anywhere;
  white-space:pre-line;
}
.score-guide {
  border-top:1px solid var(--border);
  padding-top:19px;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}
.score-guide summary {
  cursor:pointer;
  color:var(--gold);
}
.score-guide p:first-of-type {
  margin-top:16px;
}
.score-guide p:last-child {
  margin-bottom:0;
}
.score-guide dl {
  max-width:480px;
}
.score-guide dl div {
  display:flex;
  gap:20px;
  padding:5px 0;
}
.score-guide dt {
  color:var(--text);
  width:35px;
  flex-shrink:0;
}
.score-guide dd {
  margin:0;
}
.assessment-notes {
  margin-top:22px;
}
.assessment-coverage {
  display:flex;
  align-items:center;
  gap:16px;
  margin:23px 0;
  color:var(--muted);
  font-size:12px;
}
.coverage-badge {
  color:var(--gold-light);
  border:1px solid #6d634e;
  border-radius:3px;
  padding:3px 10px;
  font-size:11px;
  font-weight:400;
}
.assessment-notes h3 {
  font-size:13px;
  font-weight:600;
  margin:23px 0 10px;
}
.assessment-rationale,.assessment-uncertainties,.assessment-list,.assessment-developments {
  font-size:13px;
  overflow-wrap:anywhere;
}
.assessment-rationale {
  white-space:pre-line;
}
.assessment-uncertainties {
  padding-left:18px;
  margin-bottom:0;
  color:var(--muted);
}
.assessment-uncertainties li+li {
  margin-top:7px;
}
.assessment-list {
  padding-left:18px;
  margin:0;
}
.assessment-list li+li {
  margin-top:7px;
}
.assessment-developments {
  list-style:none;
  padding:0;
  margin:0;
}
.assessment-developments li {
  border-left:1px solid #6d634e;
  padding:0 0 0 17px;
}
.assessment-developments li+li {
  margin-top:20px;
}
.assessment-developments p {
  margin:0 0 6px;
}
.assessment-developments time {
  color:var(--muted);
  font-size:11px;
}
@media(max-width:760px) {
  .relationship-explorer {
    padding-top:30px;
  }
  .relationship-slots {
    grid-template-columns:1fr;
  }
  .relationship-slot {
    min-height:115px;
    padding:22px 43px 22px 22px;
    gap:17px;
  }
  .relationship-connector {
    line-height:1;
    padding:10px;
  }
  .slot-copy strong {
    font-size:24px;
  }
  .relationship-dialog {
    padding:22px;
    max-height:88dvh;
  }
  .native-picker-fields {
    grid-template-columns:1fr;
  }
  .relationship-title {
    grid-template-columns:1fr;
    gap:16px;
    font-size:36px;
  }
  .relationship-title img {
    width:70px;
    height:48px;
  }
  .hero-connector {
    text-align:left;
    font-size:24px;
    padding-left:22px;
  }
  .relationship-hero {
    padding-bottom:28px;
  }
  .assessment-heading h2 {
    font-size:26px;
  }
  .score-label {
    gap:16px;
  }
  .score-label h3 {
    font-size:13px;
  }
  .score-row {
    padding-top:23px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .relationship-slot {
    transition:none;
  }
}

.account-page {
  max-width:940px;
  margin:0 auto;
  padding:60px 0 72px;
}

.account-page-narrow {
  max-width:560px;
}

.account-page h1 {
  font-size:clamp(36px,4.5vw,54px);
  line-height:1.15;
  letter-spacing:-1.3px;
  margin-bottom:18px;
}

.account-page .eyebrow {
  margin-bottom:16px;
}

.account-intro {
  max-width:620px;
  color:var(--muted);
  margin-bottom:28px;
}

.account-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.account-grid {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.account-panel {
  padding:28px;
  border:1px solid var(--border);
  border-radius:3px;
  background:var(--panel);
}

.account-page-narrow .account-panel {
  margin-bottom:26px;
}

.account-panel h2 {
  margin-bottom:24px;
  font-family:var(--serif);
  font-size:26px;
  font-weight:400;
}

.account-panel p:last-child {
  margin-bottom:0;
}

.account-google-button {
  width:100%;
  min-height:48px;
  margin-bottom:18px;
  font-size:14px;
}

.account-help {
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

.account-help a {
  color:var(--gold-light);
  text-decoration:underline;
  text-underline-offset:3px;
}

.account-form {
  display:grid;
  gap:22px;
}

.account-form .button-link {
  justify-self:start;
  min-height:44px;
}

.account-field label {
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:600;
}

.account-field input:not([type=checkbox]),.account-field select {
  width:100%;
  min-width:0;
  min-height:46px;
  padding:11px 12px;
  border:1px solid #60685e;
  border-radius:2px;
  color:var(--text);
  background:var(--bg);
  font-size:16px;
}

.account-field .account-help {
  margin:8px 0 0;
}

.account-field-invalid input,.account-field-invalid select {
  border-color:#e6a898;
}

.account-field-errors {
  color:#f0b7a9;
  font-size:13px;
}

.account-field-errors ul {
  list-style:none;
  padding:0;
  margin:8px 0 0;
}

.account-checkbox-field {
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.account-checkbox-field input {
  flex:none;
  width:18px;
  height:18px;
  margin:2px 0 0;
  accent-color:var(--gold);
}

.account-checkbox-field label {
  font-weight:400;
  margin:0;
}

.account-identity {
  display:grid;
  gap:4px;
  padding-bottom:22px;
  margin-bottom:24px;
  border-bottom:1px solid var(--border);
  overflow-wrap:anywhere;
}

.account-identity strong {
  font-weight:400;
}

.account-summary dl {
  margin:0 0 22px;
}

.account-summary dt {
  color:var(--muted);
  font-size:12px;
  margin-bottom:5px;
}

.account-summary dd {
  margin:0 0 22px;
  overflow-wrap:anywhere;
  font-size:14px;
}

.account-secondary-button {
  background:transparent;
  color:var(--gold-light);
  border-color:var(--border);
}

.account-secondary-button:hover {
  color:var(--bg);
}

.account-notice {
  border-left:3px solid var(--gold);
  padding:12px 16px;
  margin-bottom:24px;
  background:var(--panel);
}

@media(max-width:760px) {
  .account-page { padding:36px 0 48px; }
  .account-grid { grid-template-columns:1fr; }
  .account-panel { padding:22px; }
  .account-heading { align-items:flex-start; }
}

@media(max-width:420px) {
  .account-heading { flex-direction:column; gap:4px; margin-bottom:22px; }
  .account-form .button-link { width:100%; }
}
