/* cargover.eu – design system
   Base colours: navy #154268 (trust, structure) and green #2f8535 (verified, primary action).
   Signal colours (amber/orange/red) are reserved for incident levels only.
   Fonts are self-hosted (no requests to third parties – GDPR). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-950: #0B2238;
  --navy-900: #102F4D;
  --navy-800: #154268;
  --navy-700: #1D5583;
  --navy-600: #1F5E8F;
  --navy-100: #DCE6EF;
  --navy-50: #F0F5F9;
  --green-700: #24692A;
  --green-600: #2f8535;
  --green-500: #3E9E45;
  --green-100: #DCEFDD;
  --green-50: #EEF7EE;
  --amber-700: #8A5A00;
  --amber-100: #FFF0CC;
  --orange-700: #A4410E;
  --orange-100: #FFE3D1;
  --red-700: #A61B1B;
  --red-600: #C62828;
  --red-100: #FBE0E0;
  --blue-700: #1D4E89;
  --blue-100: #DCEAFB;
  --gray-900: #1A2230;
  --gray-700: #3E4A5C;
  --gray-500: #6A768A;
  --gray-300: #C9D1DC;
  --gray-200: #E2E7EE;
  --gray-100: #EEF1F5;
  --white: #FFFFFF;
  --bg: #F4F6FA;
  --text: var(--gray-900);
  --muted: var(--gray-500);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 66, 104, .06), 0 4px 16px rgba(21, 66, 104, .06);
  --shadow-lg: 0 10px 40px rgba(11, 34, 56, .25);
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 460px; }
.section { padding: 56px 20px; }
.section-sm { padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.pre { white-space: pre-wrap; word-break: break-word; }
.wrap { word-break: break-all; }
.inline { display: inline; }
.text-caution { color: var(--amber-700); }

/* ---------- Demo bar ---------- */
.demo-bar { background: repeating-linear-gradient(135deg, #FFF4D6, #FFF4D6 12px, #FFECB8 12px, #FFECB8 24px); color: #5C4300; text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-900); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-name { font-weight: 600; letter-spacing: .08em; font-size: 1.02rem; }
.brand-name strong { color: var(--green-500); font-weight: 800; }
.brand-e { color: var(--green-500); font-weight: 800; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav > a, .main-nav .link-btn { color: #C9D6E8; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.main-nav > a:hover, .main-nav .link-btn:hover { color: var(--white); background: rgba(255,255,255,.07); }
.main-nav .btn { color: var(--white); margin-left: 4px; }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.15); margin: 0 6px; }
.nav-admin { color: #A6E3A9 !important; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--green-500); color: var(--white); font-size: .75rem; text-align: center; }
.lang { display: inline-flex; margin-left: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; overflow: hidden; }
.lang a { color: #9FB2CC; font-size: .74rem; font-weight: 600; padding: 5px 7px; text-decoration: none; }
.lang a.active, .lang a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-800); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-green { background: var(--green-600); color: var(--white); }
.btn-green:hover { background: var(--green-700); color: var(--white); }
.btn-danger { background: var(--red-600); color: var(--white); }
.btn-danger:hover { background: var(--red-700); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--gray-300); color: var(--navy-800); }
.btn-outline:hover { border-color: var(--navy-600); color: var(--navy-900); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-ghost-light { background: transparent; color: #C9D6E8; }
.btn-ghost-light:hover { color: var(--white); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-600); cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--red-600); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { display: flex; gap: 6px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1100px 500px at 85% -10%, rgba(47,133,53,.22), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--white); padding: 72px 0 96px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(47,133,53,.6), transparent); }
.hero-inner { max-width: 940px; text-align: center; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 18px; }
.hero .lead { color: #C7D4E6; font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 760px; margin: 0 auto 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A6E3A9; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(47,133,53,.25); }
.search-hint { color: #8FA3BF; font-size: .86rem; margin-top: 14px; }

/* ---------- Search ---------- */
.search-form { width: 100%; }
.search-row { position: relative; display: flex; gap: 8px; background: var(--white); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.search-big .search-row { box-shadow: var(--shadow-lg); padding: 10px; border: 0; }
.search-row input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; padding: 12px 12px 12px 42px; background: transparent; color: var(--text); }
.search-big .search-row input { font-size: 1.15rem; padding: 16px 16px 16px 46px; }
.search-row input:focus-visible { outline: none; }
.search-row:focus-within { box-shadow: 0 0 0 3px rgba(47,133,53,.35), var(--shadow-lg); }
.search-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gray-500); pointer-events: none; }
.search-big .search-row .btn { padding: 0 28px; font-size: 1.05rem; }
.search-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; }
.search-big .search-options { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 5px 11px; border-radius: 20px; font-size: .8rem; font-weight: 600; border: 1px solid var(--gray-300); color: var(--gray-700); background: var(--white); }
.hero .chip span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #C9D6E8; }
.chip input:checked + span { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }
.country-select select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gray-300); font: inherit; font-size: .85rem; background: var(--white); }
.hero .country-select select { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.2); }
.hero .country-select option { color: var(--text); }

/* ---------- Home ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -52px; position: relative; z-index: 2; }
.action-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--gray-200); border-top: 3px solid var(--green-500); transition: transform .15s, box-shadow .15s; }
.action-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(21,66,104,.12); color: var(--text); }
.action-card strong { font-size: 1.05rem; color: var(--navy-900); }
.action-card span:last-child { font-size: .88rem; color: var(--muted); }
.action-alert { border-top-color: var(--red-600); }
.ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-50); position: relative; margin-bottom: 6px; }
.ic::before { content: ""; position: absolute; inset: 9px; border: 2.5px solid var(--green-600); border-radius: 50%; }
.ic-alert { background: var(--red-100); }
.ic-alert::before { border-color: var(--red-600); border-radius: 3px; transform: rotate(45deg); inset: 11px; }
.ic-company::before { border-radius: 3px; }
.ic-info::before { border-radius: 50%; border-style: dotted; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-200); border-radius: var(--radius); overflow: hidden; margin-top: 32px; border: 1px solid var(--gray-200); }
.stats-strip div { background: var(--white); padding: 20px; text-align: center; }
.stats-strip strong { display: block; font-size: 1.8rem; color: var(--navy-900); font-weight: 800; }
.stats-strip span { color: var(--muted); font-size: .85rem; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; }
.feature h3 { display: flex; gap: 10px; align-items: center; }
.feature h3::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.feature p { color: var(--gray-700); font-size: .95rem; margin: 0; }
.legend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.legend-grid p { font-size: .86rem; color: var(--gray-700); margin: 8px 0 0; }
.cta-band { background: var(--navy-900); color: var(--white); padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: 1.6rem; }
.cta-band p { color: #B8C7DB; margin: 0; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page heads ---------- */
.page-head { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: var(--white); padding: 36px 0 32px; }
.page-head h1 { color: var(--white); margin-bottom: 8px; }
.page-head .lead-sm, .page-head p { color: #C2CFE1; margin: 0; }
.page-head a { color: #A6E3A9; }
.page-head-search { padding-bottom: 26px; }
.page-head-search .chip span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #C9D6E8; }
.page-head-search .country-select select { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.2); }
.page-head-search .country-select option { color: var(--text); }
.page-head-alert { background: linear-gradient(180deg, #2A0F14, var(--navy-900)); }
.crumbs { font-size: .85rem; margin-bottom: 8px !important; }
.company-head { border-bottom: 4px solid var(--green-500); }
.company-head.is-caution { border-bottom-color: #E0A100; }
.company-head.is-warning { border-bottom-color: #E06A1B; }
.company-head.is-danger { border-bottom-color: var(--red-600); }
.company-title { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.company-title .sub { margin-bottom: 12px; }
.company-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards / layout ---------- */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-soft { background: var(--navy-50); box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.h-sm { font-size: .95rem; margin-top: 18px; color: var(--navy-700); }
.company-layout, .account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.empty { text-align: center; padding: 40px 24px; }
.examples { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.examples li { background: var(--navy-50); border-radius: 8px; padding: 6px 12px; font-size: .88rem; }
.count-pill { display: inline-block; background: var(--navy-50); color: var(--navy-700); font-size: .8rem; padding: 2px 9px; border-radius: 12px; vertical-align: middle; }

/* ---------- Data lists ---------- */
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.data-grid dt, .data-list dt, .cc-grid dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.data-grid dd, .data-list dd, .cc-grid dd { margin: 2px 0 0; word-break: break-word; }
.data-list { margin: 0; display: grid; gap: 10px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--gray-100); }
.plain-list li:last-child { border-bottom: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .01em; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-verified { background: var(--green-100); color: var(--green-700); }
.badge-ok { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.badge-muted { background: var(--gray-100); color: var(--gray-700); }
.badge-neutral { background: var(--blue-100); color: var(--blue-700); }
.badge-info { background: var(--blue-100); color: var(--blue-700); }
.badge-caution { background: var(--amber-100); color: var(--amber-700); }
.badge-warning { background: var(--orange-100); color: var(--orange-700); }
.badge-danger { background: var(--red-100); color: var(--red-700); }
.badge-demo { background: #FFF4D6; color: #6B4E00; border: 1px dashed #D9A400; }
.badge-demo::before, .badge-plan::before { display: none; }
.badge-plan { background: var(--navy-800); color: var(--white); }
.badge-rel-high { background: var(--green-100); color: var(--green-700); }
.badge-rel-medium { background: var(--blue-100); color: var(--blue-700); }
.badge-rel-low { background: var(--gray-100); color: var(--gray-700); }
.badge-prov-match, .badge-prov-manual_confirmed, .badge-lookup-found, .badge-mode-live { background: var(--green-100); color: var(--green-700); }
.badge-prov-self_declared, .badge-lookup-skipped, .badge-mode-disabled { background: var(--gray-100); color: var(--gray-700); }
.badge-prov-manual_pending, .badge-lookup-manual, .badge-mode-manual { background: var(--amber-100); color: var(--amber-700); }
.badge-prov-mismatch, .badge-prov-not_found, .badge-prov-error, .badge-prov-manual_rejected, .badge-lookup-error, .badge-lookup-not_found { background: var(--red-100); color: var(--red-700); }
.tag { display: inline-block; background: var(--navy-50); color: var(--navy-700); border-radius: 6px; padding: 2px 8px; font-size: .8rem; margin-right: 4px; font-weight: 600; }

/* ---------- Company card (search results) ---------- */
.results { display: grid; gap: 14px; }
.results-meta { color: var(--muted); font-size: .9rem; }
.company-card { background: var(--white); border: 1px solid var(--gray-200); border-left: 5px solid var(--green-500); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.company-card.is-caution { border-left-color: #E0A100; }
.company-card.is-warning { border-left-color: #E06A1B; }
.company-card.is-danger { border-left-color: var(--red-600); }
.cc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cc-head h3 { font-size: 1.18rem; margin-bottom: 4px; }
.cc-head h3 a { color: var(--navy-900); text-decoration: none; }
.cc-head h3 a:hover { color: var(--green-700); }
.cc-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.flag { display: inline-block; font-size: .72rem; font-weight: 800; background: var(--navy-800); color: var(--white); border-radius: 4px; padding: 1px 5px; }
.cc-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.cc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.cc-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .84rem; color: var(--muted); }
.cc-foot .btn { margin-left: auto; }

/* ---------- Identifier check ---------- */
.ident-check { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--shadow); border-left: 5px solid var(--green-500); }
.ident-check.is-neutral { border-left-color: var(--blue-700); }
.ident-check.is-caution { border-left-color: #E0A100; background: #FFFBF0; }
.ident-check.is-warning { border-left-color: #E06A1B; background: #FFF8F3; }
.ident-check.is-danger { border-left-color: var(--red-600); background: #FFF6F6; }
.ident-check header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ident-type { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-right: 8px; }
.ident-value { font-family: var(--mono); font-size: 1.05rem; }
.ident-warning { color: var(--red-700); }
.ident-list { list-style: none; padding: 0; margin: 0; }
.ident-list li { padding: 6px 0; border-bottom: 1px dashed var(--gray-200); }
.disclaimer { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--gray-300); padding-left: 10px; margin: 12px 0 0; }

/* ---------- Company profile ---------- */
.incident-list { display: grid; gap: 12px; }
.incident-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px 16px; background: #FCFCFD; }
.incident-item header { margin-bottom: 8px; font-size: .92rem; }
.incident-item p { margin-bottom: 6px; }
.link-block { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.link-basis { font-size: .88rem; margin-bottom: 6px; }
.prov-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prov-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .86rem; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.prov-field { font-weight: 600; }
.prov-src { color: var(--gray-700); grid-column: 1; }
.prov-list .badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.prov-list .muted { grid-column: 1 / -1; }
.table .old { color: var(--red-700); text-decoration: line-through; }
.table .new { color: var(--green-700); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); background: #FAFBFC; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-compact td, .table-compact th { padding: 7px 8px; }
.row-muted td { opacity: .55; }
.row-alert td { background: #FFF6F6; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label, .form-inline label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--gray-700); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: .96rem; font-weight: 400; color: var(--text); background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.search-row input { border: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(47,133,53,.18); }
.is-invalid { border-color: var(--red-600) !important; }
.field-error { color: var(--red-700); font-size: .82rem; margin: 0; font-weight: 500; }
.hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 14px; }
legend { font-weight: 800; color: var(--navy-900); font-size: 1.02rem; margin-bottom: 10px; padding: 0; }
.form fieldset + fieldset { border-top: 1px solid var(--gray-200); padding-top: 18px; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green-600); }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-inline input, .form-inline select { width: auto; min-width: 140px; }
.form-boxed { background: var(--navy-50); padding: 16px; border-radius: var(--radius-sm); margin-top: 14px; }
.legal-box { background: var(--amber-100); border-radius: var(--radius-sm); padding: 14px 16px; }
.legal-box p { margin: 8px 0 0; }
.file-drop { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 18px; text-align: center; background: #FAFBFC; }
.file-list { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.file-list li { padding: 4px 0; }
.selected-company { background: var(--navy-50); padding: 10px 14px; border-radius: var(--radius-sm); }
.code-input { font-family: var(--mono); font-size: 1.4rem !important; letter-spacing: .4em; text-align: center; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-option { position: relative; display: block !important; }
.type-option input { position: absolute; opacity: 0; }
.type-option span { display: grid; gap: 4px; border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.type-option small { font-weight: 400; color: var(--muted); }
.type-option input:checked + span { border-color: var(--green-600); background: var(--green-50); }
.type-option input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }
.auth-card { margin-top: 10px; }
.lookup-box { background: var(--navy-50); border-radius: var(--radius); padding: 20px; margin: 18px auto; max-width: 720px; text-align: left; }

/* ---------- Alerts ---------- */
.flashes { padding-top: 16px; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; border: 1px solid transparent; }
.alert p { margin: 6px 0 0; font-size: .9rem; }
.alert-success { background: var(--green-50); border-color: var(--green-100); color: #0B5B3A; }
.alert-error { background: var(--red-100); border-color: #F5C2C2; color: var(--red-700); }
.alert-warning { background: var(--amber-100); border-color: #F5DB94; color: #5C3D00; }
.alert-info { background: var(--blue-100); border-color: #BDD5F5; color: var(--blue-700); }

/* ---------- Checklists & steps ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gray-300); }
.checklist li.done::before, .done-all li::before { border-color: var(--green-600); background: var(--green-600); box-shadow: inset 0 0 0 3px var(--white); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.steps li span { display: block; color: var(--gray-700); font-size: .9rem; }
.how-steps { list-style: none; padding: 0; margin: 0 0 18px; }
.how-steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-no { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--green-600); color: var(--white); font-weight: 800; display: grid; place-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gray-200); }
.timeline li { padding: 0 0 14px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-600); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.ref-box { background: var(--navy-50); display: inline-block; padding: 10px 18px; border-radius: 10px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--navy-100); margin: 0; }
.debug { text-align: left; background: var(--navy-950); color: #C9D6E8; padding: 16px; border-radius: 8px; overflow: auto; font-size: .8rem; max-height: 420px; }
.prose h2 { margin-top: 24px; }
.api-key { display: inline-block; background: var(--white); padding: 6px 10px; border-radius: 6px; margin-top: 6px; word-break: break-all; cursor: copy; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); display: grid; gap: 2px; font-size: .9rem; }
.notif-list li.unread a { font-weight: 700; }
.confidential { background: #FFFDF5; border: 1px dashed #E5C76B; padding: 12px; border-radius: 8px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; }
.plan h2 { letter-spacing: .06em; }
.plan-for { color: var(--muted); font-size: .9rem; min-height: 3em; }
.plan-price { font-size: 1.3rem; font-weight: 800; color: var(--green-700); }
.plan-featured { border: 2px solid var(--green-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9FB2CC; margin-top: 40px; padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 28px; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { display: block; color: #9FB2CC; text-decoration: none; padding: 3px 0; font-size: .9rem; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-footer { display: flex; margin-bottom: 10px; }
.site-footer .muted { color: #8094AF; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 20px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

/* ---------- Admin ---------- */
body.admin { background: #F2F4F8; }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--navy-950); color: #C9D6E8; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-side .brand { margin: 0 6px 6px; }
.admin-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-500); margin: 0 8px 14px; font-weight: 800; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { color: #B3C2D7; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.admin-side nav a.active { background: var(--green-600); color: var(--white); font-weight: 600; }
.admin-side-foot { margin-top: auto; padding: 16px 8px 0; display: grid; gap: 8px; font-size: .86rem; }
.admin-side-foot a, .admin-side-foot .link-btn { color: #9FB2CC; }
.lang-admin { margin: 0; }
.admin-main { padding: 22px 28px 40px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.admin-top h1 { font-size: 1.5rem; margin: 0; }
.admin .flashes { padding: 0; }
.admin .container { padding: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--gray-700); font-size: .86rem; background: var(--white); border: 1px solid var(--gray-200); }
.tabs a.active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.kpis-sm { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.kpi strong { display: block; font-size: 1.8rem; color: var(--navy-900); line-height: 1.1; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi-alert strong { color: var(--red-600); }
.admin-grid { align-items: start; }
.card-review { border-top: 4px solid var(--navy-700); }
.link-graph { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; margin: 16px 0; }
.node { display: grid; gap: 2px; border-radius: 10px; padding: 12px 14px; text-decoration: none; font-size: .86rem; border: 1px solid var(--gray-200); background: var(--white); color: var(--text); }
.node-center { background: var(--navy-800); color: var(--white); text-align: center; border: 0; }
.node-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; border-left: 3px solid var(--gray-300); padding-left: 20px; }
.node-company { border-left: 4px solid var(--blue-700); }
.node-incident { border-left: 4px solid var(--gray-500); }
.node-incident.node-confirmed { border-left-color: var(--red-600); }
.node-incident.node-under_review { border-left-color: #E06A1B; }
.node-incident.node-suspicion { border-left-color: #E0A100; }
.node span { color: var(--muted); font-size: .8rem; }
.integration .card-head h2 { font-size: 1.05rem; }
details summary { cursor: pointer; color: var(--navy-600); }
details[open] { min-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .link-btn { padding: 12px 10px; }
  .main-nav .btn { margin: 8px 0 0; }
  .nav-sep { width: 100%; height: 1px; margin: 8px 0; }
  .lang { margin: 10px 0 0; align-self: flex-start; }
  .company-layout, .account-grid { grid-template-columns: 1fr; }
  .grid-3, .legend-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .link-graph { grid-template-columns: 1fr; }
  .node-group { border-left: 0; padding-left: 0; }
  details[open] { min-width: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 80px; }
  .search-row { flex-direction: column; }
  .search-row .btn, .search-big .search-row .btn { padding: 14px; }
  .search-icon { top: 32px; }
  .quick-actions, .grid-2, .grid-3, .legend-grid, .plans, .footer-grid, .type-switch, .data-grid, .cc-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .kpis, .kpis-sm { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px; }
  .cc-foot .btn { margin-left: 0; }
  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline input, .form-inline select { width: 100%; }
  .admin-main { padding: 16px; }
  .table { font-size: .85rem; }
}

@media print {
  .site-header, .site-footer, .demo-bar, .company-actions, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* Register name search */
.registry-box { margin: 0 0 22px; }
.registry-box h2 { margin-top: 0; }
.registry-box .table-wrap { box-shadow: none; }
.registry-box form { margin: 0; }
.registry-sources { margin-top: 10px; }
.registry-sources summary { cursor: pointer; color: var(--gray-600, #555); font-size: .9rem; }
.registry-offer { margin: 6px 0 22px; }
.nowrap { white-space: nowrap; }

/* Loading overlay (slow register queries) */
.page-loader { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 34, 56, .55); backdrop-filter: blur(2px); }
.page-loader[hidden] { display: none; }
.page-loader-box { background: var(--white, #fff); color: var(--navy-900); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 28px 30px; max-width: 420px; width: 100%; text-align: center; }
.page-loader-box strong { display: block; font-size: 1.1rem; margin: 14px 0 6px; }
.page-loader-box p { margin: 0; color: var(--gray-700); font-size: .93rem; line-height: 1.45; }
.spinner { display: inline-block; width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--navy-100); border-top-color: var(--green-600); animation: ect-spin .8s linear infinite; }
@keyframes ect-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
body.is-loading { overflow: hidden; }

/* Search field: keep room for the magnifier icon (must win over the generic input rule above) */
.search-form .search-row input[type=search] { font-size: 1.05rem; padding: 12px 12px 12px 46px; border: 0; box-shadow: none; background: transparent; }
.search-form.search-big .search-row input[type=search] { font-size: 1.15rem; padding: 16px 16px 16px 50px; }
.search-form .search-icon { left: 22px; }
.search-form .search-row input[type=search]::-webkit-search-decoration { -webkit-appearance: none; }

/* Licences & insurance, VIES */
.input-pair { display: flex; gap: 8px; }
.input-pair input { flex: 1; min-width: 0; }
.input-pair select { width: auto; }
.plain-fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.official-links li { margin: 6px 0; }
.chips .chip-link { display: inline-block; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--gray-300); color: var(--navy-800); text-decoration: none; margin: 0 6px 6px 0; font-size: .9rem; }
.chips .chip-link.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
#credentials details summary { cursor: pointer; margin-top: 8px; }
.spinner-sm { width: 18px; height: 18px; border-width: 3px; vertical-align: middle; }
.badge-import-done { background: var(--green-100); color: var(--green-700); }
.badge-import-pending, .badge-import-parsing { background: var(--amber-100); color: var(--amber-700); }
.badge-import-error { background: var(--red-100); color: var(--red-700); }
.badge-import-idle { background: var(--gray-100); color: var(--gray-700); }
.cred-details td { background: var(--gray-50, #f7f9fb); }
.cred-details span { display: inline-block; margin: 0 14px 4px 0; }
.cred-copies { margin: 6px 0; }
.cred-copies summary { cursor: pointer; }

/* ======================================================================
   cargover.eu theme (navy #154268 + green #2f8535)
   ====================================================================== */
h1, h2, h3, .brand-name, .stats-strip strong { font-family: var(--display); }
h1, h2 { letter-spacing: -.02em; font-weight: 800; }
a { color: var(--green-700); }
a:hover { color: var(--navy-800); }

/* header */
.site-header { background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 1.32rem; text-transform: none; }
.brand-name .tld { color: #A6E3A9; }
.logo { width: 34px; height: 34px; flex: none; }
.main-nav > a, .main-nav .link-btn { color: #D3DEEA; }
.lang a { color: #B7C8D9; }

/* hero: solid navy, left aligned, sample card on the right */
.hero { background: var(--navy-800); padding: 64px 0 88px; }
.hero::after { display: none; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-inner { max-width: 1200px; text-align: left; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; }
.hero .lead { color: #C9D7E4; margin: 0 0 28px; max-width: 620px; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .84rem; color: #C9D7E4; background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { background: #A6E3A9; box-shadow: none; }
.search-big .search-options { justify-content: flex-start; }
.search-hint { color: #A9BCCD; }
.hero .chip span { background: transparent; border-color: rgba(255,255,255,.28); color: #DCE6EF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-alert-dark { background: #3A1A1E; border-color: #6B2A31; color: #FFC9C9; }
.btn-alert-dark:hover { background: #4A2025; color: #FFFFFF; }
.sample-card { background: var(--white); color: var(--text); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px rgba(4, 18, 32, .35); }
.sample-card .label { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.sample-card h2 { margin: 0; font-size: 1.3rem; }
.sample-card .sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sample-grid div { background: var(--bg); border-radius: 12px; padding: 12px; }
.sample-grid span { display: block; font-size: .76rem; color: var(--muted); }
.sample-grid strong { display: block; margin-top: 3px; font-size: .92rem; }
.sample-grid .ok { color: var(--green-700); }
.sample-grid .warn { color: #8A4A00; }
.sample-card .src { margin: 14px 0 0; font-size: .76rem; color: var(--muted); }
.trust-note { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); color: #DCE6EF; font-size: .86rem; line-height: 1.5; }
.trust-note svg { flex: none; color: #A6E3A9; }

/* sources strip */
.sources-strip { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.sources-strip .container { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding-top: 18px; padding-bottom: 18px; font-size: .9rem; color: var(--muted); }
.sources-strip strong { color: var(--navy-800); }

/* quick actions, cards */
.quick-actions { margin-top: 32px; }
.action-card { border-top: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: none; }
.action-card:hover { border-color: var(--green-600); box-shadow: var(--shadow); }
.action-card strong { font-family: var(--display); }
.action-alert:hover { border-color: var(--red-600); }
.card { box-shadow: none; }
.feature { border-radius: var(--radius); }
.feature h3::before { background: var(--green-600); }
.stats-strip { border-radius: var(--radius); }
.cta-band { background: var(--green-600); }
.cta-band p { color: #E3F2E4; }
.cta-band .btn-green { background: var(--white); color: var(--navy-800); }
.cta-band .btn-green:hover { background: #F0F5F9; color: var(--navy-900); }

/* page heads: solid navy */
.page-head { background: var(--navy-800); }
.page-head .lead-sm, .page-head p { color: #C9D7E4; }
.page-head-alert { background: #3A1A1E; }
.company-head { border-bottom-width: 5px; }

/* buttons & inputs */
.btn { border-radius: 12px; }
.btn-sm { border-radius: 10px; }
.search-row { border-radius: 16px; }
.search-row .btn { border-radius: 12px; }

/* footer */
.site-footer { background: var(--navy-800); }
/* texts always fit their boxes */
h1, h2, h3, p, a, span, li, td, th, dd, dt, strong, label, .badge { overflow-wrap: anywhere; }
.badge { white-space: normal; text-align: center; }
.sample-badge { margin: 12px 0 0; }

/* header: logo always on one line, nav items never break inside */
.brand { flex: none; }
.brand-name, .brand-name * { white-space: nowrap; overflow-wrap: normal; }
.main-nav > a, .main-nav .link-btn { white-space: nowrap; overflow-wrap: normal; }

/* language menu (dropdown) */
.lang-menu, .lang-menu[open] { position: relative; margin-left: 8px; min-width: 0; flex: none; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: var(--white); cursor: pointer; font-weight: 600; font-size: .85rem; white-space: nowrap; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(255,255,255,.1); }
.lang-menu .chev { transition: transform .15s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--white); border-radius: 12px; box-shadow: 0 16px 40px rgba(4, 18, 32, .25); z-index: 60; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 12px; border-radius: 8px; color: var(--navy-800); text-decoration: none; font-size: .92rem; white-space: nowrap; overflow-wrap: normal; }
.lang-menu a:hover { background: var(--navy-50); color: var(--navy-900); }
.lang-menu a.active { font-weight: 700; background: var(--green-50); color: var(--green-700); }
.lang-menu .code { font-size: .74rem; font-weight: 700; color: var(--muted); }

/* collapse the menu earlier so the header never wraps */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .link-btn { padding: 12px 10px; }
  .main-nav .btn { margin: 8px 0 0; }
  .nav-sep { width: 100%; height: 1px; margin: 8px 0; }
  .lang-menu { margin: 10px 0 0; align-self: flex-start; }
  .lang-menu ul { left: 0; right: auto; }
}

/* search results (design A) */
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin: 0 0 16px; }
.results-title { min-width: 0; }
.results-title h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.results-head .results-meta { margin: 0; }
.results-count { margin: 0; color: var(--muted); font-size: .9rem; }
.company-card { position: relative; border: 1px solid var(--gray-200); border-left-width: 1px; border-radius: 18px; padding: 22px 24px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.company-card:hover { border-color: var(--navy-100); box-shadow: 0 10px 28px rgba(21, 66, 104, .08); }
.company-card.is-caution { border-color: #F4C9A8; border-left-color: #F4C9A8; }
.company-card.is-warning { border-color: #F2B48A; border-left-color: #F2B48A; }
.company-card.is-danger { border-color: #EBA4AA; border-left-color: #EBA4AA; }
.cc-title { min-width: 0; flex: 1 1 320px; }
.cc-head h3 { font-family: var(--display); font-size: 1.22rem; font-weight: 800; margin: 0 0 4px; }
.cc-head h3 a { color: var(--navy-900); }
.cc-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.cc-badges { position: relative; z-index: 1; }
.cc-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.cc-note-caution { background: #FFF8EC; color: #6B4600; }
.cc-note-warning { background: #FFF1E6; color: #7A3200; }
.cc-note-danger { background: #FDEDEE; color: #8E1B26; }
.cc-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); gap: 6px 26px; font-size: .86rem; }
.cc-foot strong { color: var(--navy-900); }
.cc-foot strong.ok { color: var(--green-700); }
.cc-foot strong.bad { color: var(--red-700); }
.registry-head { align-items: baseline; flex-wrap: wrap; }
.registry-box .table th { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.registry-box .table td { vertical-align: middle; }

/* admin: delete company */
.danger-zone { border-color: #EBA4AA; margin-top: 20px; }
.danger-zone h2 { color: var(--red-700); }

/* results: validity highlights */
.cc-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; }
.cc-pill-warn { background: #FFE9D6; color: #8A3B00; border: 1px solid #F6C9A3; }
.cc-pill-warn strong { color: #8A3B00; }
.cc-pill-danger { background: #FDEDEE; color: #8E1B26; border: 1px solid #F1C0C5; }
.cc-pill-danger strong { color: #8E1B26; }
.cc-foot strong.none { color: var(--muted); font-weight: 600; }
