/* banks-site as the "Business accounts in Europe" section of offshority.com. Tokens, header, mobile menu, breadcrumbs,
   buttons, badges and footer are copied from the main site's stylesheet (offshority-site static/css/site.css, which
   reproduces the offshority.com Tailwind + shadcn/ui look); the section's own components (data tables, criteria blocks,
   matcher, badges, register) are restyled with the same tokens. Light theme only, no external requests. */

:root {
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text: #0a0a0a;
  --heading: #111827;
  --gray-700: #374151;
  --secondary: #4b5563;
  --muted: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-800: #1f2937;
  --bg: #f9fafb;
  --surface: #fff;
  --border: #e5e5e5;
  --border-2: #e5e7eb;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-800: #92400e;
  --green-100: #dcfce7;
  --green-600: #16a34a;
  --green-800: #166534;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-800: #991b1b;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);

  --container: 80rem;
  --gutter: 1rem;
  --header-h: 64px;
  --focus: 0 0 0 2px #fff, 0 0 0 4px var(--blue-600);
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

/* ------------------------------------------------------------------ base (main site) */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--blue-600); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ------------------------------------------------------------------ buttons & badges (main site) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--blue-600); color: #fff;   /* a bare .btn (the section's buttons) is the primary button */
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; background: var(--blue-700); color: #fff; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--gray-100); color: var(--text); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  border-radius: var(--radius-sm); padding: 1px 8px; border: 1px solid var(--amber-200);
  font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0;
  background: var(--amber-50); color: var(--amber-800);
}

/* ------------------------------------------------------------------ header (main site) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--heading); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-xl); background: var(--blue-600); color: #fff;
}
.logo-word { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.logo-accent { color: var(--blue-600); }

.main-nav { display: none; flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: nowrap; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--gray-700); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-600); text-decoration: none; }
.main-nav a.active { background: var(--blue-50); }

.mnav { margin-left: auto; }
.mnav > summary { list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); color: var(--gray-700); cursor: pointer;
}
.mnav-toggle:hover { background: var(--gray-100); }
.mnav-open, .mnav-close { display: inline-flex; }
.mnav[open] .mnav-open, .mnav:not([open]) .mnav-close { display: none; }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
  padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mnav-panel ul { list-style: none; margin: 0; padding: 0; }
.mnav-panel nav a {
  display: block; padding: 12px 8px; font-size: 16px; font-weight: 500; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mnav-panel nav a.active, .mnav-panel nav a:hover { color: var(--blue-600); text-decoration: none; }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .mnav { display: none; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
  .main-nav a { font-size: 14px; padding: 8px; }
  .header-inner { gap: 16px; }
}

/* ------------------------------------------------------------------ section bar (this section's own navigation) */
.section-bar { background: var(--surface); border-bottom: 1px solid var(--border-2); }
.section-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-block: 8px; }
.section-name { font-weight: 700; font-size: 16px; color: var(--heading); white-space: nowrap; }
.section-name:hover { color: var(--blue-600); text-decoration: none; }
.section-nav { flex: 1 1 auto; min-width: 0; }
.section-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav a {
  display: block; padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--secondary);
}
.section-nav a:hover, .section-nav a.active { color: var(--blue-600); background: var(--blue-50); text-decoration: none; }
.section-nav .lang a { color: var(--muted); }
.section-cta { margin-left: auto; }
@media (max-width: 639.98px) {
  .section-inner { gap: 6px 12px; }
  .section-name { flex: 1 1 auto; font-size: 15px; white-space: normal; }
  .section-nav { order: 3; flex-basis: 100%; margin-inline: -6px; }
  .section-cta { min-height: 36px; padding: 0 12px; }
}

/* ------------------------------------------------------------------ breadcrumbs (main site) */
.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs [aria-current] { color: var(--heading); font-weight: 500; }
.crumb-sep { color: var(--gray-400); }

/* ------------------------------------------------------------------ page card (the main site's article/hub card) */
main.page {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 20px auto 48px; padding: 24px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { main.page { padding: 36px 40px; } }
@media (min-width: 1024px) { main.page { padding: 40px 48px; } }
main.page > :first-child { margin-top: 0; }
main.page > :last-child { margin-bottom: 0; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.25; }
main h1 { font-size: 30px; letter-spacing: -.015em; margin: 0 0 12px; }
@media (min-width: 768px) { main h1 { font-size: 36px; } }
main h2 { font-size: 22px; margin: 36px 0 14px; }
main h3 { font-size: 17px; margin: 22px 0 6px; }
main p { margin: 0 0 12px; }
main ul, main ol { margin: 0 0 12px; padding-left: 1.3em; }
main li + li { margin-top: 4px; }
main li::marker { color: var(--muted); }
main section { margin-top: 8px; }
main small { color: var(--muted); font-size: 13px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--secondary); max-width: 48rem; margin-bottom: 20px; }
.muted { color: var(--muted); }
.note, .basis { font-size: 14px; color: var(--muted); line-height: 1.55; }
.basis { margin-top: 10px; }
.basis.sourced { color: var(--amber-800); border-left: 3px solid var(--amber-500); padding-left: 10px; }
.bad { color: var(--red-800); }
.alert {
  background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: var(--radius-xl);
  padding: 12px 16px; color: var(--text); line-height: 1.6;
}
.alert a { text-decoration: underline; text-underline-offset: 3px; }

/* prose (service pages, selection intros) — main site .prose */
.prose, .intro { font-size: 17px; line-height: 1.75; max-width: 52rem; }
.prose h2, .intro h2 { font-size: 24px; line-height: 1.3; margin-top: 1.6em; }
.prose h3, .intro h3 { font-size: 19px; }
.prose p, .intro p, .prose ul, .intro ul, .prose ol { margin-bottom: 1em; }
.prose a, .intro a, .note a, .basis a, .src a, #faq a, .links a {
  text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.prose a:hover, .intro a:hover, .note a:hover, .basis a:hover, .src a:hover, #faq a:hover, .links a:hover { text-decoration-color: currentColor; }
.prose strong, .intro strong { color: var(--heading); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--gray-100); border-radius: 4px; padding: .1em .35em; }
@media (max-width: 639.98px) { .prose, .intro { font-size: 16px; } }

/* ------------------------------------------------------------------ tables (the main site's .prose tables) */
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border-2); }
th { font-weight: 600; color: var(--heading); }
tbody tr:last-child > * { border-bottom: 0; }
table.list, .prose table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-2); border-radius: var(--radius); margin: 4px 0 16px;
}
table.list thead th, .prose thead th { background: var(--bg); white-space: nowrap; border-bottom: 1px solid var(--border-2); }
table.list td, .prose td { border-right: 1px solid var(--border-2); }
table.list th, .prose th { border-right: 1px solid var(--border-2); }
table.list tr > :last-child, .prose tr > :last-child { border-right: 0; }
table.list tbody tr:hover { background: var(--bg); }
/* wide screens: a real table across the card (display:block would shrink-wrap the columns); narrow screens keep the
   block + horizontal scroll above */
@media (min-width: 768px) {
  table.list, .prose table { display: table; border-collapse: separate; border-spacing: 0; }
  table.list thead tr > :first-child, .prose thead tr > :first-child { border-top-left-radius: var(--radius); }
  table.list thead tr > :last-child, .prose thead tr > :last-child { border-top-right-radius: var(--radius); }
}
/* key-value tables of a card: the main site's facts grid */
table.kv { border: 1px solid var(--border-2); border-radius: var(--radius-xl); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
table.kv th { width: 38%; font-size: 14px; color: var(--muted); }
table.kv td { color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
table.kv tr:last-child > * { border-bottom: 0; }
@media (max-width: 639.98px) {
  table.kv th { width: 45%; padding: 10px 12px; }
  table.kv td { padding: 10px 12px; }
  table.list td { min-width: 8rem; }
}

/* ------------------------------------------------------------------ lists, figures, call to action */
ul.cols { columns: 2 15rem; column-gap: 32px; padding-left: 1.2em; }
ul.cols li { break-inside: avoid; margin: 0 0 6px; }
ul.stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
ul.stats li {
  margin: 0; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-xl);
  padding: 10px 14px; color: var(--secondary); font-size: 15px;
}
ul.stats b { color: var(--blue-800); font-size: 18px; margin-right: 2px; }
.matchbox {
  margin: 32px 0; padding: 20px 22px; display: grid; gap: 4px; justify-items: start;
  background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--radius-xl);
}
.matchbox h2 { margin: 0; font-size: 18px; }
.matchbox p { color: var(--secondary); font-size: 15px; margin: 0 0 10px; }
.matchbox .btn { min-height: 40px; }
.links { color: var(--muted); margin-top: 24px; }
.links a { margin-right: 4px; }
.src { font-size: 14px; overflow-wrap: anywhere; }
.pager { margin: 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.pager a, .pager b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue-800); font-weight: 600;
}
.pager a:hover { background: var(--blue-100); text-decoration: none; }
.pager b { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
#faq h3 { font-size: 16px; font-weight: 600; margin-top: 18px; }
#faq p { color: var(--secondary); line-height: 1.7; }

/* ------------------------------------------------------------------ forms: matcher, lead, corrections (main site .form) */
.form {
  display: grid; gap: 16px; max-width: 40rem; margin: 20px 0 28px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .form { padding: 24px; } }
.form h2 { margin: 0; font-size: 20px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.form select, .form input, .form textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
}
.form textarea { resize: vertical; }
.form select:focus-visible, .form input:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600); box-shadow: none;
}
.form .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--secondary); line-height: 1.5; }
.form .chk input { width: 18px; min-height: 0; height: 18px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--blue-600); }
.form .chk a { text-decoration: underline; text-underline-offset: 3px; }
.form fieldset { border: 1px solid var(--border-2); border-radius: var(--radius); margin: 0; padding: 10px 14px 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.form legend { font-size: 14px; font-weight: 500; padding: 0 4px; }
.form button { justify-self: start; min-height: 40px; }
.form .muted { font-size: 14px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#pool { color: var(--secondary); font-size: 15px; }

/* matcher results */
#result .lead { color: var(--heading); font-weight: 600; font-size: 18px; margin-top: 8px; }
.res {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-xl);
  padding: 14px 18px; margin: 12px 0; max-width: 52rem;
}
.res h3 { margin: 0 0 6px; font-size: 17px; }
.res ul { margin-bottom: 6px; }
.res .muted { margin: 6px 0 2px; font-size: 14px; }
.v-likely, .v-possible, .v-unlikely, .v-excluded { font-weight: 600; font-size: 14px; border-radius: var(--radius-sm); padding: 1px 8px; white-space: nowrap; }
.v-likely { color: var(--green-800); background: var(--green-100); }
.v-possible { color: var(--amber-800); background: var(--amber-50); border: 1px solid var(--amber-200); }
.v-unlikely, .v-excluded { color: var(--red-800); background: var(--red-100); }

/* search (Pagefind UI) in the brand colours */
#search .pagefind-ui {
  --pagefind-ui-primary: var(--blue-600); --pagefind-ui-text: var(--text); --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--gray-300); --pagefind-ui-tag: var(--blue-50); --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px; --pagefind-ui-font: var(--font); --pagefind-ui-scale: .9;
}
#search .pagefind-ui__result-link { color: var(--blue-600); }

/* ------------------------------------------------------------------ footer (main site) */
.site-footer { background: var(--gray-800); color: #fff; padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: span 2; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--gray-400); margin: 16px 0 0; max-width: 32rem; line-height: 1.65; font-size: 15px; }
.logo-footer, .logo-footer:hover { color: #fff; }
.logo-footer .logo-accent { color: var(--blue-400); }
.footer-title { font-weight: 600; font-size: 15px; margin: 0 0 12px; color: #fff; }
.footer-title-2 { margin-top: 24px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.site-footer a { color: var(--gray-400); font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer a.active { color: #fff; }
.site-footer :focus-visible { box-shadow: 0 0 0 2px var(--gray-800), 0 0 0 4px var(--blue-400); }
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--gray-400); font-size: 14px; }
.lang-switch ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lang-switch [aria-current] { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--gray-700); margin-top: 32px; padding-top: 24px; display: grid; gap: 10px; font-size: 14px; color: var(--gray-400); }
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 60rem; line-height: 1.6; }
.stand { font-weight: 600; color: #fff; }
