/* ABS application layout — directory, search, profile, certificate */


.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.site-nav a {
  font-weight: 500;
}

.site-nav a.nav-auth {
  color: #001f3f;
  font-weight: 600;
}

.site-nav a.nav-member {
  color: #001f3f;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 31, 63, 0.06);
  border-radius: 4px;
  text-decoration: none;
}

.site-nav a.nav-member:hover {
  background: rgba(0, 31, 63, 0.12);
  text-decoration: none;
}

.site-nav a.nav-auth[data-auth="join"] {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 31, 63, 0.25);
  border-radius: 4px;
  text-decoration: none;
}

.nav-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.org-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.org-page h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  margin: 0.5rem 0;
}
.org-tagline {
  font-style: italic;
  color: #6b6358;
}
.org-about {
  margin: 1rem 0;
  line-height: 1.5;
}
.org-affiliate-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.org-affiliate-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.org-affiliate-list .muted {
  color: #6b6358;
  font-size: 0.9rem;
}

.app-main {
  flex: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-footer {
  margin-top: auto;
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
  color: inherit;
  text-align: left;
}

.site-footer p {
  margin: 0;
  line-height: 1.5;
}

.site-footer .footer-meta {
  font-size: inherit;
  color: inherit;
}

.site-footer em {
  font-style: italic;
}

/* Hero / search home */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-end;
}

.search-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 600;
}

.search-form input,
.search-form select {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--paper);
  min-width: 220px;
}

.search-form input:focus,
.search-form select:focus {
  outline: 2px solid var(--navy-light);
  outline-offset: 1px;
}

.search-form-inline {
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.search-form-inline input[type="number"] {
  min-width: 100px;
}

.hero-compact {
  padding: 2rem 1rem 1.5rem;
}

/* Network hero — unified pill search (mockup) */
.hero-network {
  max-width: 820px;
  padding: 3rem 1.25rem 2.5rem;
}

.hero-network-compact {
  padding-top: 2rem;
}

.hero-network-title {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #2d3748;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.hero-network-lead {
  font-size: 1.05rem;
  color: #718096;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.search-bar-unified {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.search-bar-shell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar-shell:focus-within {
  border-color: #90cdf4;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.search-bar-icon {
  display: flex;
  color: #a0aec0;
  flex-shrink: 0;
}

.search-bar-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.65rem 0.25rem;
  color: var(--ink);
}

.search-bar-input::placeholder {
  color: #a0aec0;
}

.search-bar-input:focus {
  outline: none;
}

.search-bar-submit {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: #63b3ed;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}

.search-bar-submit:hover {
  background: #4299e1;
}

.search-bar-submit:active {
  transform: scale(0.96);
}

.listing-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.listing-toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4299e1;
  user-select: none;
}

.listing-toggle-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.listing-toggle-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #cbd5e0;
  background: #fff;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.listing-toggle-option input:checked + .listing-toggle-dot {
  border-color: #4299e1;
  background: #4299e1;
  box-shadow: inset 0 0 0 3px #fff;
}

.listing-toggle-option input:focus-visible + .listing-toggle-dot {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

.search-bar-extra {
  margin-top: 0.85rem;
  text-align: center;
}

.search-year-filter {
  font-size: 0.85rem;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.search-year-filter input {
  width: 5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
}

.stats-strip-network {
  margin-top: 2.25rem;
}

.search-page-head {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1rem 0;
}

/* —— ABS Nexora demo logo —— */
.abs-nexora-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.abs-nexora-mark {
  display: block;
  flex-shrink: 0;
}

.abs-nexora-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.abs-nexora-logo-lg .abs-nexora-mark {
  width: 4.5rem;
  height: 4.5rem;
}

.abs-nexora-logo-sm .abs-nexora-mark {
  width: 2.6rem;
  height: 2.6rem;
}

.abs-nexora-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.abs-nexora-name {
  font-family: "Cinzel", "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #001f3f;
  line-height: 1.1;
}

.abs-nexora-logo-lg .abs-nexora-name {
  font-size: 1.85rem;
}

.abs-nexora-logo-sm .abs-nexora-name {
  font-size: 1.15rem;
}

.abs-nexora-tag {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a7a3a;
}

/* —— Search landing (empty /search) —— */
/* Keep #app above the footer so autocomplete / sticky docks are not painted under it */
body.search-route #app {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 0 0 5.5rem;
}

body.search-route .site-footer {
  position: relative;
  z-index: 1;
}

.search-landing {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.35rem 1.25rem 4.5rem;
  overflow: visible;
}

.search-landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(197, 160, 89, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 45% at 85% 80%, rgba(0, 31, 63, 0.06), transparent 55%),
    linear-gradient(165deg, #f9f7f2 0%, #efe8dc 48%, #e8dfd0 100%);
  z-index: 0;
}

.search-landing-bg::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent 0,
    transparent 14px,
    rgba(0, 31, 63, 0.025) 14px,
    rgba(0, 31, 63, 0.025) 15px
  );
  opacity: 0.9;
}

.search-landing-inner {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-landing .abs-nexora-logo {
  margin-bottom: 1rem;
  justify-content: center;
}

.search-landing-kicker {
  margin: 0 0 0.55rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a7a3a;
}

.search-landing-title {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: #001f3f;
  line-height: 1.15;
}

.search-landing-lead {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5a6570;
  max-width: 34rem;
}

.search-landing-points {
  list-style: none;
  margin: 0 0 1.65rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}

.search-landing-points li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #132744;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(0, 31, 63, 0.12);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
}

.search-landing .search-bar-unified {
  width: 100%;
  max-width: 560px;
}

.search-landing .search-bar-shell {
  border-radius: 4px;
  border-color: rgba(0, 31, 63, 0.16);
  box-shadow: 0 18px 40px -28px rgba(40, 28, 12, 0.45);
  background: #fffefb;
}

.search-landing .search-bar-shell:focus-within {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.search-landing .search-bar-submit {
  background: #001f3f;
}

.search-landing .listing-toggle {
  justify-content: center;
  margin-top: 1rem;
}

.search-landing-hint {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.search-landing-hint a {
  color: #001f3f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 31, 63, 0.25);
}

.search-landing-hint a:hover {
  color: #9a7a3a;
  border-bottom-color: #c5a059;
}

/* —— Search results masthead —— */
.search-page-pro {
  position: relative;
  z-index: 1;
  max-width: none;
  min-height: calc(100vh - var(--nx-header-h, 60px) - 2rem);
  padding: 0 0 4rem;
  isolation: isolate;
}

.search-masthead {
  position: relative;
  z-index: 40;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(197, 160, 89, 0.14), transparent 55%),
    linear-gradient(180deg, #f9f7f2 0%, #efe8dc 100%);
  border-bottom: 1px solid rgba(0, 31, 63, 0.1);
  padding: 1rem 1.25rem 1.15rem;
  margin-bottom: 0;
}

.search-masthead-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-masthead .abs-nexora-logo {
  margin-bottom: 0.55rem;
  justify-content: center;
}

.search-masthead-kicker {
  margin: 0 0 0.25rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7a3a;
}

.search-masthead-title {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  color: #001f3f;
  line-height: 1.2;
}

.search-masthead-lead {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5a6570;
  max-width: 32rem;
}

.search-bar-hero {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.search-bar-hero .search-bar-shell {
  border-radius: 4px;
  border-color: rgba(0, 31, 63, 0.16);
  background: #fffefb;
  box-shadow: 0 14px 32px -26px rgba(40, 28, 12, 0.4);
}

.search-bar-hero .search-bar-shell:focus-within {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

.search-bar-hero .search-bar-submit {
  background: #001f3f;
}

.search-bar-hero .search-bar-submit:hover {
  background: #0a2a4a;
}

.search-bar-hero .listing-toggle {
  justify-content: center;
  margin-top: 0.85rem;
}

.search-page-pro .listing-toggle-option,
.search-landing .listing-toggle-option {
  color: #001f3f;
}

.search-page-pro .listing-toggle-option input:checked + .listing-toggle-dot,
.search-landing .listing-toggle-option input:checked + .listing-toggle-dot {
  border-color: #001f3f;
  background: #c5a059;
  box-shadow: inset 0 0 0 2px #fffefb;
}

.search-page-pro .listing-toggle-option input:focus-visible + .listing-toggle-dot,
.search-landing .listing-toggle-option input:focus-visible + .listing-toggle-dot {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}

.search-page-pro .search-filters {
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  max-width: 640px;
  background: rgba(255, 254, 251, 0.72);
  border: 1px solid rgba(0, 31, 63, 0.08);
  border-radius: 4px;
}

.search-page-pro .search-filter-label {
  color: #9a7a3a;
  letter-spacing: 0.08em;
}

.search-page-pro .search-filter-input {
  border-radius: 3px;
  border-color: rgba(0, 31, 63, 0.14);
  background: #fffefb;
}

.search-page-pro .search-filter-input:focus {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.16);
}

.search-page-pro .search-filter-apply,
.search-page-pro .search-filter-clear {
  border-radius: 3px;
}

.search-page-pro .search-filter-apply {
  background: #001f3f;
  color: #f9f7f2;
}

.search-page-pro .search-filter-apply:hover {
  background: #0a2a4a;
}

.search-page-pro .year-pills {
  margin-top: 1rem;
}

.search-page-pro .year-pill {
  border-radius: 3px;
  border-color: rgba(0, 31, 63, 0.14);
  color: #001f3f;
  background: #fffefb;
}

.search-page-pro .year-pill.active {
  background: #001f3f;
  border-color: #001f3f;
  color: #f9f7f2;
}

.search-page-pro .year-pill:hover {
  border-color: #c5a059;
}

.search-page-body {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
  background:
    linear-gradient(180deg, rgba(249, 247, 242, 0.65) 0%, #f8f6f1 12rem);
}

.search-page .search-result-meta {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 31, 63, 0.08);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.search-hint {
  text-align: center;
  color: var(--ink-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Listing segment + year pills (search & profile) */
.listing-segment {
  display: inline-flex;
  gap: 0;
  margin: 1.25rem auto 0;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

.listing-segment-btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  border: none;
  background: transparent;
  color: #2d3748;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.listing-segment-btn.active {
  background: #4299e1;
  color: #fff;
}

.listing-segment-btn:not(.active):hover {
  background: rgba(66, 153, 225, 0.12);
}

.year-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  max-width: 640px;
}

.year-pill {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 3.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #2d3748;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.year-pill:hover {
  border-color: #9ae6b4;
}

.year-pill.active {
  background: #48bb78;
  border-color: #48bb78;
  color: #fff;
}

.search-page-cards {
  max-width: none;
  margin: 0 auto;
}

.search-page-pro.search-page-cards {
  padding: 0 0 4rem;
}

.search-page-top {
  text-align: center;
  margin-bottom: 1.5rem;
}

.search-bar-compact {
  max-width: 520px;
  margin: 0 auto 0.5rem;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  justify-content: center;
  align-items: flex-end;
  max-width: 720px;
  margin: 0.85rem auto 1rem;
  text-align: left;
}

.search-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 180px;
  min-width: 140px;
}

.search-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.search-filter-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}

.search-filter-input:focus {
  outline: none;
  border-color: #90cdf4;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.search-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.search-filter-apply,
.search-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.search-pagination {
  margin: 2rem 0 0.25rem;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid rgba(0, 31, 63, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.search-pagination-range {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  font-variant-numeric: lining-nums tabular-nums;
}

.search-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}

.search-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.search-page-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(0, 31, 63, 0.14);
  border-radius: 3px;
  background: #fffefb;
  color: #001f3f;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.search-page-btn:hover:not(:disabled) {
  border-color: #c5a059;
  background: rgba(197, 160, 89, 0.1);
}

.search-page-btn.active {
  background: #001f3f;
  border-color: #001f3f;
  color: #f9f7f2;
}

.search-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.search-page-ellipsis {
  color: #94a3b8;
  padding: 0 0.15rem;
}

.search-results-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.search-result-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem 1.25rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 1) 0%, rgba(251, 248, 241, 0.92) 100%);
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-left: 3px solid rgba(197, 160, 89, 0.55);
  border-radius: 2px;
  box-shadow: 0 10px 28px -26px rgba(0, 31, 63, 0.45);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.search-result-card:hover {
  border-color: rgba(0, 31, 63, 0.16);
  border-left-color: #c5a059;
  box-shadow: 0 16px 34px -24px rgba(0, 31, 63, 0.4);
  transform: translateY(-1px);
}

.search-result-card-main {
  display: flex;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.search-result-card-main:hover .search-result-name {
  color: #0a2a4a;
}

.search-result-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(197, 160, 89, 0.18), transparent 55%),
    #eef2f6;
  border: 1px solid rgba(0, 31, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001f3f;
}

.search-result-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.search-result-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #001f3f;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.search-result-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
}

.search-result-line svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #9a7a3a;
}

.search-result-rank {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: #4a5568;
}

.search-result-rank .rank-value {
  color: #001f3f;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}

.search-result-rank .rank-all-paren {
  font-weight: 500;
  color: #64748b;
  font-size: 0.92em;
}

.btn-certificate-card,
.btn-share-card {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 2px;
  background: #001f3f;
  color: #f9f7f2;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s ease;
}

.btn-share-card {
  background: #f9f7f2;
  color: #001f3f;
  border-color: rgba(12, 31, 54, 0.22);
}

.btn-share-card .profile-share-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-certificate-card:hover {
  background: #0a2a4a;
  border-color: #c5a059;
  color: #f9f7f2;
  text-decoration: none;
}

.btn-share-card:hover {
  background: #001f3f;
  border-color: #c5a059;
  color: #f9f7f2;
}

.btn-share-card:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 2px;
}

/* ScholarProfile free-website CTA (search cards + profile) */
.scholar-site-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.scholar-site-cta-wrap--card {
  width: 100%;
  max-width: 15rem;
}

.scholar-site-cta-wrap--profile {
  width: 100%;
}

.scholar-site-cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin: 0;
  padding: 0 0.15rem;
  font-family: "Inter Tight", "Inter", "Source Sans 3", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.scholar-site-cta-links a {
  color: rgba(0, 31, 63, 0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.scholar-site-cta-links a:hover {
  color: #001f3f;
  border-bottom-color: rgba(197, 160, 89, 0.7);
  text-decoration: none;
}

.scholar-site-cta-sep {
  color: rgba(0, 31, 63, 0.28);
}

.scholar-site-cta {
  --ssc-navy: #001f3f;
  --ssc-navy-soft: #0c2a4a;
  --ssc-gold: #c5a059;
  --ssc-gold-soft: #e2c789;
  --ssc-paper: #fbf8f1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.55rem 0.65rem;
  border: 1px solid rgba(0, 31, 63, 0.16);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(197, 160, 89, 0.12) 0%, transparent 44%),
    linear-gradient(180deg, #fffefb 0%, var(--ssc-paper) 100%);
  color: var(--ssc-navy);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px -16px rgba(0, 31, 63, 0.45);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.scholar-site-cta::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ssc-gold-soft), transparent);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.scholar-site-cta:hover {
  border-color: rgba(197, 160, 89, 0.7);
  color: var(--ssc-navy);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 26px -18px rgba(0, 31, 63, 0.5);
}

.scholar-site-cta:focus-visible {
  outline: 2px solid rgba(197, 160, 89, 0.65);
  outline-offset: 2px;
}

.scholar-site-cta__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--ssc-gold);
  background: rgba(0, 31, 63, 0.06);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.scholar-site-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.scholar-site-cta__eyebrow {
  font-family: "Inter Tight", "Inter", "Source Sans 3", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 31, 63, 0.55);
  line-height: 1.1;
}

.scholar-site-cta__label {
  font-family: "Inter Tight", "Inter", "Source Sans 3", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ssc-navy);
}

.scholar-site-cta__arrow {
  flex-shrink: 0;
  color: var(--ssc-gold);
  transition: transform 0.18s ease;
}

.scholar-site-cta:hover .scholar-site-cta__arrow {
  transform: translateX(2px);
}

.scholar-site-cta--card {
  width: 100%;
  min-width: 11.5rem;
  max-width: none;
}

.scholar-site-cta--profile {
  width: 100%;
  min-width: 168px;
  padding: 0.65rem 0.85rem 0.65rem 0.7rem;
}

.scholar-site-cta--profile .scholar-site-cta__label {
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .scholar-site-cta,
  .scholar-site-cta__arrow,
  .btn-certificate-card,
  .btn-share-card {
    transition: none;
  }

  .scholar-site-cta:hover,
  .scholar-site-cta:hover .scholar-site-cta__arrow {
    transform: none;
  }
}

@media (max-width: 720px) {
  .search-page-pro {
    min-height: 0;
    padding-bottom: 3rem;
  }

  .search-page-body {
    padding: 1.25rem 1rem 2.75rem;
  }

  .search-masthead {
    padding: 0.85rem 0.9rem 1rem;
  }

  .search-page-pro .search-filters {
    padding: 0.75rem;
    max-width: none;
  }

  .search-filter-field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .search-filter-actions {
    width: 100%;
  }

  .search-filter-apply,
  .search-filter-clear {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }

  .listing-toggle {
    gap: 0.65rem;
  }

  .listing-toggle-option {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }

  .year-pill,
  .search-page-btn {
    min-height: 40px;
  }

  .search-result-card {
    flex-direction: column;
    align-items: stretch;
  }

  .search-result-actions {
    width: 100%;
  }

  .btn-certificate-card,
  .btn-share-card {
    align-self: stretch;
    justify-content: center;
    min-height: 44px;
  }

  .scholar-site-cta-wrap--card {
    max-width: none;
  }

  .scholar-site-cta--card {
    max-width: none;
    min-width: 0;
    min-height: 44px;
  }

  .abs-nexora-logo-lg .abs-nexora-mark {
    width: 3.4rem;
    height: 3.4rem;
  }

  .abs-nexora-logo-lg .abs-nexora-name {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-result-card {
    transition: none;
  }

  .search-result-card:hover {
    transform: none;
  }
}

.search-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: stretch;
  min-width: 11.5rem;
}

.profile-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
}

.profile-page .breadcrumb {
  text-align: left;
  margin-bottom: 0.5rem;
}

.profile-hero-card {
  margin-top: 1.25rem;
  text-align: left;
}

.profile-hero-main {
  cursor: default;
}

.profile-listing-hint {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
}

.profile-card-details {
  margin-top: 1.5rem;
  text-align: left;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.stats-strip strong {
  color: var(--navy);
  font-weight: 600;
}

/* Search results */
.page-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: 1.85rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.results-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #eef1f5;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}

.results-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.results-table tr:hover td {
  background: #faf9f7;
}

.results-table .name-cell a {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.results-table-wide {
  margin-top: 1rem;
}

.results-table .inst-cell,
.results-table .field-cell {
  max-width: 220px;
  font-size: 0.85rem;
  line-height: 1.35;
}

.results-table .country-col.flag-only {
  width: 52px;
  text-align: center;
}

.results-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.row-year {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-weight: 400;
  margin-top: 0.15rem;
}

.flag-code {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.iso3-tag {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.search-analytics {
  margin: 1.5rem 0;
}

.search-summary h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.search-summary-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.summary-stat {
  background: var(--paper);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
}

.summary-stat .label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.summary-stat .value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.search-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .search-charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-wrap-sm {
  height: 220px;
}

.rank-pill {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--navy);
}

.tier-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 2px;
  white-space: nowrap;
}


/* Profile layout */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.profile-layout-wide {
  grid-template-columns: 1fr;
  max-width: 1200px;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.profile-rank-line {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.profile-rank-line .rank-ns {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.profile-link-row {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.profile-link-input {
  flex: 1;
  min-width: 200px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  font-family: var(--sans);
}

.metrics-table-compact {
  margin-bottom: 0.75rem;
}

.metrics-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 0 0.5rem;
  color: var(--ink);
}

.metrics-panel h2,
.charts-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.profile-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8e4db, #d4cfc4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.profile-title h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.profile-affiliation {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.verified {
  color: var(--accent);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}


.dataset-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.fields-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .fields-row {
    grid-template-columns: 1fr;
  }
}

.field-box {
  padding: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
}

.field-box label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.field-box span {
  font-size: 0.9rem;
  font-weight: 500;
}

.subfield-rank {
  padding: 0.75rem 1rem;
  background: #f0f4f8;
  border-left: 3px solid var(--navy);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.metrics-section h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.metrics-table th,
.metrics-table td {
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.65rem;
}

.metrics-table th {
  background: #eef1f5;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metrics-table td:first-child {
  font-weight: 500;
  color: var(--ink-muted);
  width: 42%;
}

.metrics-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.chart-card h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.chart-wrap {
  position: relative;
  height: 200px;
}

.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.sidebar-card h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.meta-list dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.meta-list dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
}



.certificate-btn {
  float: right;
  margin-top: -0.25rem;
}

.profile-actions {
  clear: both;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.self-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.self-bar-fill {
  height: 100%;
  background: var(--navy-light);
}

/* Country flags */
.country-with-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.country-flag,
.cert-flag {
  border: 1px solid var(--border-light);
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.flag-fallback {
  font-size: 1rem;
  opacity: 0.7;
}

.country-col {
  min-width: 120px;
}

.profile-country {
  margin: 0.35rem 0;
}

.profile-rank-line {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.profile-header-actions {
  float: right;
  margin: 0 0 0.5rem 0.5rem;
}

.btn-certificate {
  background: var(--gold);
  color: #fff;
  border: 1px solid #6b5210;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.btn-certificate:hover {
  background: #a67c1a;
  color: #fff;
  text-decoration: none;
}

.section-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  font-style: italic;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0 0 0.5rem;
  font-family: var(--sans);
}

/* Academic figures */
.figures-section {
  margin-top: 2rem;
}

.figures-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.academic-figure {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem 0.75rem;
  margin: 0;
}

.figure-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin: 0 0 0.25rem;
}

.figure-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.figure-caption {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0.65rem 0 0;
  text-align: justify;
  border-top: 1px solid var(--border-light);
  padding-top: 0.5rem;
}

.academic-figure .chart-wrap {
  height: 220px;
}

/* Certificate styles live in certificate.css */

/* Search page — academic layout */
.search-page {
  max-width: 1100px;
  margin: 0 auto;
}

.page-head-academic {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--navy);
}

.page-head-academic h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.section-lead,
.search-result-meta {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.search-country-explore,
.countries-explore-all {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.country-explore-section {
  margin-top: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  background: #eef2f6;
  border-radius: 10px;
}

.country-explore-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b95a5;
}

.country-explore-header h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.country-explore-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.continent-block {
  margin-bottom: 1.75rem;
}

.continent-block:last-child {
  margin-bottom: 0;
}

.continent-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7689;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}

.continent-meta {
  font-weight: 500;
  color: #9aa3b2;
}

.country-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}

.country-explore-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.country-explore-card:hover {
  border-color: #c5d0de;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

button.country-explore-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.country-card-flag {
  flex-shrink: 0;
  line-height: 0;
}

.country-card-flag .country-flag {
  display: block;
  border-radius: 2px;
}

.country-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.country-card-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1a2a3a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-card-count {
  font-size: 0.78rem;
  color: #6b7689;
  font-variant-numeric: tabular-nums;
}

.country-card-meta {
  font-size: 0.7rem;
  color: #8b95a5;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-card-chevron {
  flex-shrink: 0;
  color: #2563eb;
  display: flex;
  align-items: center;
  margin-left: 0.15rem;
}

.country-results-panel {
  margin: 1.5rem 0;
}

.country-results-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.country-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.country-results-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.country-results-title-row h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}

.country-results-sub {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.country-results-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.country-results-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.country-results-info {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.country-results-table-wrap {
  overflow-x: auto;
}

.country-results-loading {
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .app-main {
    padding: 1.25rem 1rem 2.5rem;
  }

  .search-form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form-inline label,
  .search-form-inline input,
  .search-form-inline select {
    width: 100%;
    min-width: 0;
  }

  .country-explore-grid {
    grid-template-columns: 1fr;
  }

  .country-results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .results-table {
    font-size: 0.82rem;
  }

  .search-landing {
    padding: 1rem 0.9rem 3.5rem;
  }

  .search-landing-points {
    gap: 0.4rem;
  }

  .search-landing-points li {
    font-size: 0.76rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 640px) {
  .cert-facts {
    grid-template-columns: 1fr;
  }

  .site-header:not(.nx-header) {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .search-page-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .search-filter-field {
    flex: 1 1 200px;
  }

  .search-result-card {
    gap: 1.15rem;
  }
}

