/* GSEIN public theme — visual restyle only.
   Reference: dark editorial masthead + warm paper surfaces + mint accent.
   No HTML copy, data, routing, APIs, or admin/control-center styles are changed here. */
:root{
  --canvas:#f4f1e9;
  --surface:var(--gsein-light);
  --surface-2:#f0ede5;
  --surface-3:#e7e2d7;
  --navy:#061315;
  --navy-soft:#0b2020;
  --text:#0a1b1b;
  --muted-warm:#667470;
  --line-warm:#cfcac0;
  --gold:var(--gsein-mint);
  --gold-soft:#b9f2e4;
  --accent:var(--gsein-mint);
  --accent-strong:#43bca1;
  --success:#2e8e70;
}

/* Base palette and typography */
html body{
  background:var(--canvas)!important;
  color:var(--text)!important;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
html[dir="rtl"] body{font-family:"Segoe UI",Tahoma,Arial,sans-serif}
html body .hero h1,
html body .split-intro h2,
html body .trust-copy h2,
html body .interop-copy h2,
html body .institution-inner h2,
html body .usecase-head h2,
html body .lifecycle-copy h2,
html body .governance-cta h2,
html body .architecture-copy h2,
html body .subpage-hero h1,
html body .legal-hero h1,
html body .page-hero h1{
  font-family:Georgia,"Times New Roman",serif!important;
  font-weight:500!important;
  letter-spacing:-.04em!important;
}
html[dir="rtl"] body .hero h1,
html[dir="rtl"] body .split-intro h2,
html[dir="rtl"] body .trust-copy h2,
html[dir="rtl"] body .interop-copy h2,
html[dir="rtl"] body .institution-inner h2,
html[dir="rtl"] body .usecase-head h2,
html[dir="rtl"] body .lifecycle-copy h2,
html[dir="rtl"] body .governance-cta h2,
html[dir="rtl"] body .architecture-copy h2,
html[dir="rtl"] body .subpage-hero h1,
html[dir="rtl"] body .legal-hero h1,
html[dir="rtl"] body .page-hero h1{
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
  font-weight:650!important;
  letter-spacing:-.015em!important;
}

/* Header and brand */
html body .site-header{
  background:rgba(6,19,21,.98)!important;
  border-bottom:1px solid #1f3a39!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px)!important;
}
html body .site-header[data-elevated="true"]{
  background:rgba(6,19,21,.995)!important;
  border-bottom-color:#2b4a47!important;
  box-shadow:none!important;
}
html body .site-header .brand,
html body .site-header .brand-copy strong,
html body .site-header .brand-copy small,
html body .site-header .desktop-nav a,
html body .site-header .language-switch,
html body .site-header .menu-toggle{color:#f4f1e9!important}
html body .site-header .brand-copy strong{
  font-size:.95rem!important;
  letter-spacing:.16em!important;
  font-weight:800!important;
}
html body .site-header .brand-copy small{
  color:#97aaa5!important;
  font-size:.6rem!important;
  letter-spacing:.035em!important;
}
html body .site-header .brand-mark{
  width:23px!important;
  height:18px!important;
  min-width:23px!important;
  position:relative!important;
  display:inline-block!important;
  border:1px solid var(--gsein-mint)!important;
  border-radius:0!important;
  background:transparent!important;
  color:transparent!important;
}
html body .site-header .brand-mark svg{display:none!important}
html body .site-header .brand-mark:before,
html body .site-header .brand-mark:after{content:"";position:absolute;display:block}
html body .site-header .brand-mark:before{
  inset:2px auto auto 2px;
  width:8px;height:6px;
  background:var(--gsein-mint);
}
html body .site-header .brand-mark:after{
  inset:auto 2px 2px auto;
  width:8px;height:6px;
  background:var(--gsein-gold);
}
html body .site-header .shell-nav-link{
  border-radius:0!important;
  padding:12px 12px!important;
  color:#dce5e1!important;
  font-size:.79rem!important;
}
html body .site-header .shell-nav-link:hover{background:rgba(103,222,193,.06)!important;color:#fff!important}
html body .site-header .shell-nav-link.is-active{
  color:var(--gsein-mint)!important;
  background:transparent!important;
}
html body .site-header .shell-nav-link.is-active:after{
  left:12px!important;right:12px!important;bottom:5px!important;
  height:1px!important;border-radius:0!important;background:var(--gsein-mint)!important;
}
html body .site-header .language-switch,
html body .site-header .shell-language select{
  border:1px solid #35514e!important;
  border-radius:2px!important;
  background:#07191a!important;
  color:#eef5f2!important;
  box-shadow:none!important;
}
html body .site-header .admin-login-button{
  border:1px solid var(--gsein-mint)!important;
  border-radius:2px!important;
  background:transparent!important;
  color:var(--gsein-mint)!important;
  box-shadow:none!important;
}
html body .site-header .admin-login-button:hover{background:var(--gsein-mint)!important;color:#061315!important}
html body .site-header .admin-login-icon{color:inherit!important}
html body .shell-mobile-nav{
  background:#07191a!important;
  border-top:1px solid #294542!important;
}
html body .shell-mobile-nav a{color:#e8efec!important}

/* Buttons and controls */
html body .button,
html body .copy-url-btn,
html body .country-tabs button{
  border-radius:2px!important;
  box-shadow:none!important;
}
html body .button-accent{
  background:var(--gsein-mint)!important;
  color:#061315!important;
  border-color:var(--gsein-mint)!important;
}
html body .button-accent:hover{background:#79e5cb!important;border-color:#79e5cb!important}
html body .button-ghost{
  background:transparent!important;
  border-color:#5f7772!important;
  color:#eff5f2!important;
}
html body .button-light{
  background:var(--gsein-light)!important;
  border-color:#bdb8ae!important;
  color:#102321!important;
}
html body .button-outline-light{border-color:#6d8882!important;color:#f7f3eb!important}
/* Governance: the ghost button sits on a light section, so it uses the dark text colour */
html[data-page="governance"] body .button-ghost{border-color:#0a1b1b!important;color:#0a1b1b!important}
html[data-page="governance"] body .button-ghost:hover{background:#061315!important;border-color:#061315!important;color:var(--gsein-light)!important}
html[data-page="governance"] body .button-ghost:focus-visible{outline:2px solid #061315!important;outline-offset:2px!important}

/* Homepage hero */
html body .hero{
  background:#061315!important;
  color:#f4f1e9!important;
  border-bottom:1px solid #28413f!important;
}
html body .hero-grid,
html body .hero-glow{display:none!important}
html body .hero-layout{padding-top:76px!important;padding-bottom:72px!important}
html body .hero h1{
  color:#f8f5ee!important;
  text-shadow:none!important;
  line-height:.93!important;
}
html body .hero-lead{color:#b8c5c0!important}
html body .hero .eyebrow,
html body .hero .proof-chip{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:var(--gsein-mint)!important;
  padding-left:0!important;
  padding-right:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  text-transform:uppercase!important;
  letter-spacing:.11em!important;
  font-size:.68rem!important;
}
html body .hero .eyebrow-dot{background:var(--gsein-mint)!important;box-shadow:none!important}
html body .hero .proof-chip:before{background:var(--gsein-mint)!important}
html body .hero .registry-search{
  background:#f8f5ee!important;
  border:1px solid #acc0ba!important;
  border-radius:7px!important;
  box-shadow:none!important;
  color:#0c211f!important;
}
html body .hero .registry-search input{color:#0c211f!important}
html body .hero .registry-search input::placeholder{color:#768681!important}
html body .hero .search-note{color:#8fa19b!important}
html body .hero .text-link{color:var(--gsein-mint)!important}
html body .hero .muted-link{color:#abc0ba!important}
html body .home-trust-panel{
  background:#071a1b!important;
  border:1px solid #2c5e57!important;
  border-radius:8px!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html body .home-trust-panel h2{color:#f5f1e9!important}
html body .home-trust-kicker{color:var(--gsein-mint)!important;opacity:1!important}
html body .home-trust-points>div{border-top-color:#24403e!important}
html body .homepage-metrics{color:#f4f1e9!important}
html body .home-metric-card,
html body .home-metric-panel{
  background:#07191a!important;
  border:1px solid #294542!important;
  border-radius:3px!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html body .home-metric-card>span,
html body .home-metric-label{color:#9eb0aa!important;opacity:1!important}
html body .home-metric-card strong{color:#f6f2ea!important}
html body .home-metric-card small,
html body .country-status-note{color:#81958f!important;opacity:1!important}
html body .country-status-card{
  background:#0a2020!important;
  border-color:#2a4744!important;
  border-radius:2px!important;
}
html body .country-tabs button{
  background:transparent!important;
  border-color:#36514e!important;
  color:#cbd8d4!important;
}
html body .country-tabs button.is-selected{
  background:var(--gsein-mint)!important;
  border-color:var(--gsein-mint)!important;
  color:#061315!important;
}
html body .country-search input{
  border-radius:2px!important;
  border-color:#36514e!important;
  background:#07191a!important;
  color:#f0f4f2!important;
}

/* Warm paper sections */
html body .section,
html body .page-section,
html body .legal-page,
html body .governance-cta,
html body .lifecycle-section{
  background:#f4f1e9!important;
  color:#0a1b1b!important;
}
html body .section:nth-of-type(even):not(.section-dark),
html body .usecase-section,
html body .page-section.alt,
html body .analytics-section,
html body .audience-strip,
html body .metrics-strip{
  background:var(--gsein-light)!important;
  border-color:#d2cdc3!important;
}
html body .section-kicker,
html body .eyebrow:not(.hero .eyebrow){color:#2b8976!important}
html body .split-intro>p,
html body .trust-copy>p,
html body .interop-copy>p,
html body .institution-inner>div>p:last-child,
html body .usecase-head p,
html body .architecture-copy p,
html body .governance-box p{color:#65736f!important}

/* Editorial card system */
html body .feature-grid,
html body .lifecycle-steps{
  border-color:#cfcac0!important;
  border-radius:2px!important;
  box-shadow:none!important;
}
html body .feature-card,
html body .usecase-card,
html body .principle-card,
html body .chart-card,
html body .governance-card,
html body .page-mini-stat,
html body .profile-main,
html body .profile-side-card,
html body .contact-card,
html body .legal-toc-card,
html body .legal-prose,
html body .result-card,
html body .filter-panel,
html body .identity-card,
html body .trust-panel{
  background:var(--gsein-light)!important;
  border-color:#cfcac0!important;
  border-radius:2px!important;
  box-shadow:none!important;
  color:#102321!important;
}
html body .feature-card{border-top:2px solid #47b89f!important}
html body .feature-card p,
html body .usecase-card p,
html body .principle-card p,
html body .chart-sub,
html body .profile-main p,
html body .profile-side-card p,
html body .contact-card p,
html body .result-meta{color:#687771!important}
html body .feature-icon,
html body .usecase-icon{
  background:transparent!important;
  border:1px solid var(--gsein-mint)!important;
  border-radius:2px!important;
  color:#1c7665!important;
}
html body .gsein-number,
html body .legal-source-note,
html body .empty-state{
  background:#f0ede5!important;
  border-color:#d0cbc0!important;
  border-radius:2px!important;
}
html body .trust-badge{
  border-radius:2px!important;
  background:#061315!important;
  color:var(--gsein-mint)!important;
  box-shadow:none!important;
}
html body .governance-box{
  background:var(--gsein-light)!important;
  border-color:#cfcac0!important;
  border-radius:2px!important;
}
html body .life-step{border-bottom-color:#d7d1c7!important}
html body .life-num{border-radius:2px!important;background:#eeeadf!important;color:#46635d!important}

/* Dark bands */
html body .section-dark,
html body .architecture-band,
html body .institution-band{
  background:#061315!important;
  color:#f4f1e9!important;
}
html body .section-dark p,
html body .architecture-band p,
html body .institution-band p{color:#a9b8b3!important}
html body .network:before{background:radial-gradient(circle,rgba(103,222,193,.08),transparent 58%)!important}
html body .network-ring{border-color:#294542!important}
html body .network-core{
  background:var(--gsein-mint)!important;
  color:#061315!important;
  box-shadow:none!important;
}
html body .network-node{
  background:#0a2020!important;
  border-color:#31504d!important;
  border-radius:2px!important;
  box-shadow:none!important;
}
html body .architecture-map{
  border-color:#2b4946!important;
  border-radius:2px!important;
  background:#07191a!important;
}
html body .arch-core{
  border-radius:2px!important;
  background:var(--gsein-mint)!important;
  color:#061315!important;
  box-shadow:none!important;
}
html body .arch-node{
  border-color:#31504d!important;
  border-radius:2px!important;
  background:#0a2020!important;
  color:#b9c9c4!important;
}
html body .arch-line{background:linear-gradient(90deg,transparent,var(--gsein-mint),transparent)!important}

/* Subpages */
html body .subpage-hero,
html body .legal-hero{
  background:#f4f1e9!important;
  border-color:#cfcac0!important;
  color:#0a1b1b!important;
}
html body .subpage-hero p,
html body .legal-hero p{color:#687771!important}
html body input,
html body select,
html body textarea{
  border-radius:2px!important;
}
html body .filter-panel input,
html body .filter-panel select,
html body .contact-card input,
html body .contact-card select,
html body .contact-card textarea{
  background:#fffefb!important;
  border-color:#c8c2b7!important;
  color:#102321!important;
}
html body .bar-track,
html body .trend-grid{background-color:#e3dfd5!important}
html body .donut:after{background:var(--gsein-light)!important;box-shadow:0 0 0 1px #d4cec3!important}

/* Existing visible metric labels are intentionally preserved. */
.metric-grid article{border-color:#d3cec4!important;position:relative}
.metric-grid article>span[data-i18n],.metric-grid article>small[data-i18n]{font-size:0}
.metric-grid article>span[data-i18n]::after{display:block;font-size:.76rem;color:#344b45;font-weight:760;letter-spacing:.01em}
.metric-grid article>small[data-i18n]::after{display:block;font-size:.66rem;color:#6c7874}
.metric-grid article:nth-child(1)>span[data-i18n]::after{content:"GSEIN identifiers issued"}
.metric-grid article:nth-child(1)>small[data-i18n]::after{content:"Canonical issued identifiers"}
.metric-grid article:nth-child(2)>span[data-i18n]::after{content:"Publication-cleared entities"}
.metric-grid article:nth-child(2)>small[data-i18n]::after{content:"Legally cleared public layer"}
.metric-grid article:nth-child(3)>span[data-i18n]::after{content:"Jurisdictions live"}
.metric-grid article:nth-child(3)>small[data-i18n]::after{content:"Cleared jurisdictions with public records"}
.metric-grid article:nth-child(4)>span[data-i18n]::after{content:"Authoritative source integrations"}
.metric-grid article:nth-child(4)>small[data-i18n]::after{content:"Official or licensed sources"}
html[lang="ar"] .metric-grid article:nth-child(1)>span[data-i18n]::after{content:"معرّفات GSEIN الصادرة"}
html[lang="ar"] .metric-grid article:nth-child(1)>small[data-i18n]::after{content:"المعرّفات الأساسية الصادرة فعليًا"}
html[lang="ar"] .metric-grid article:nth-child(2)>span[data-i18n]::after{content:"الكيانات المصرح بنشرها"}
html[lang="ar"] .metric-grid article:nth-child(2)>small[data-i18n]::after{content:"الطبقة العامة المصرح بها قانونيًا"}
html[lang="ar"] .metric-grid article:nth-child(3)>span[data-i18n]::after{content:"الولايات القضائية المفعّلة"}
html[lang="ar"] .metric-grid article:nth-child(3)>small[data-i18n]::after{content:"ولايات لديها سجلات عامة مصرح بها"}
html[lang="ar"] .metric-grid article:nth-child(4)>span[data-i18n]::after{content:"تكاملات المصادر الرسمية"}
html[lang="ar"] .metric-grid article:nth-child(4)>small[data-i18n]::after{content:"مصادر رسمية أو مرخّصة"}
.metric-grid strong[data-live-metric]{font-variant-numeric:tabular-nums;letter-spacing:-.025em;color:#102f29!important}

/* Existing utility/feedback styling retained */
html body .preview-banner{background:#eee7ce!important;border-color:#c7b976!important;color:#5e5529!important}
html body .legal-authoritative-banner{background:#dcece6!important}
html body .legal-authoritative-banner.draft{background:#eee7ce!important}
html body .copy-url-btn{background:#f2eee5!important;border-color:#cfc8bc!important;color:#23453e!important}
html body .copy-url-btn:hover{background:#e8e3d8!important}
.result-with-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.result-with-actions>.result-card{min-width:0}
.result-copy-wrap{display:flex;align-items:center}
.result-copy-wrap .copy-url-btn{white-space:nowrap}
.copy-toast{position:fixed;right:22px;bottom:22px;z-index:120;padding:11px 15px;border-radius:2px;background:#061315;color:#fff;font-size:.78rem;box-shadow:none;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.copy-toast.show{opacity:1;transform:none}
html[dir="rtl"] .copy-toast{right:auto;left:22px}

/* Footer */
html body .site-footer{
  background:#061315!important;
  color:#dce7e2!important;
  border-top:1px solid #28413f!important;
}
html body .site-footer .shell-footer-brand p{color:#9caea8!important}
html body .site-footer .shell-footer-brand small{color:#718983!important}
html body .site-footer .shell-footer-grid>div>strong{color:var(--gsein-mint)!important}
html body .site-footer a{color:#b7c6c1!important}
html body .site-footer a:hover{color:var(--gsein-mint)!important}
html body .site-footer .footer-social a{
  border-color:#31504d!important;
  border-radius:2px!important;
  background:transparent!important;
  color:#b7c6c1!important;
}
html body .site-footer .footer-social a:hover{border-color:var(--gsein-mint)!important;background:transparent!important;color:var(--gsein-mint)!important}
html body .site-footer .footer-social a.footer-brand-icon{border-color:transparent!important}
html body .site-footer .footer-social a.footer-brand-icon:hover,html body .site-footer .footer-social a.footer-brand-icon:focus-visible{border-color:var(--gsein-mint)!important}

@media(max-width:900px){
  html body .hero-layout{padding-top:56px!important;padding-bottom:54px!important}
  html body .home-trust-panel{border-radius:4px!important}
}
@media(max-width:700px){
  .result-with-actions{grid-template-columns:1fr}
  .result-copy-wrap{justify-content:flex-start}
  .copy-toast{right:14px;left:14px;text-align:center}
  html body .hero h1{line-height:1!important}
}
