@font-face {
  font-family: 'Inter';
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg:           #ffffff;
  --color-surface:      #f6f7f9;
  --color-surface-2:    #eef0f3;
  --color-text:         #111418;
  --color-text-muted:   #5c6470;
  --color-text-soft:    #6b7280; /* AA on white (~4.8:1) — still lighter than muted */
  --color-border:       #e2e5ea;
  --color-border-strong:#cdd2da;
  --color-accent:       #10CACD;
  --color-accent-hover: #0eb3b6;
  --color-accent-soft:  #e6fafb;
  --color-accent-text:  #0a7174;
  --color-warn:         #b07a00;
  --color-warn-bg:      #fff8e1;
  --color-warn-border:  #f5d77a;
  --color-danger:       #b22e3a;
  --color-danger-bg:    #fdecee;
  --color-danger-border:#f3b7be;
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(17, 20, 24, .04);
  --shadow:    0 10px 30px rgba(17, 20, 24, .08);
  --shadow-lg: 0 22px 60px rgba(17, 20, 24, .12);
  --transition: 150ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

input, select, textarea, button {
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Honour the OS "reduce motion" setting: keep feedback, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

h4 {
  font-size: 15px;
  line-height: 1.3;
}

p {
  margin: 0;
}

small, .cfb-small {
  font-size: 12px;
  color: var(--color-text-muted);
}

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

.cfb-text-soft {
  color: var(--color-text-soft);
}

.cfb-text-accent {
  color: var(--color-accent-text);
}

.cfb-container {
  width: 100%;
  max-width: 1180px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .cfb-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.cfb-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}

.cfb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cfb-header-inner {
    padding: 10px 0;
    gap: 10px;
  }
}

.cfb-header-aside {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cfb-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), border-color var(--transition);
  margin-right: 12px;
}

.cfb-menu-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.cfb-menu-toggle[aria-expanded="true"] {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
}

@media (max-width: 820px) {
  .cfb-menu-toggle {
    display: inline-flex;
  }
  .cfb-header-lang {
    display: none;
  }
}

.cfb-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  padding: 3px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.cfb-nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.cfb-nav-link:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.cfb-nav-link.is-active {
  background: var(--color-accent);
  color: #fff;
}

/* In-menu language switcher: hidden on desktop, revealed inside the open mobile menu below */
.cfb-nav-lang {
  display: none;
}

@media (max-width: 820px) {
  .cfb-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px;
    background: var(--color-bg);
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 28px rgba(17, 20, 24, .10);
  }
  .cfb-nav.is-open {
    display: flex;
  }
  .cfb-nav-link {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
    white-space: nowrap;
  }
  .cfb-nav-link.is-active {
    background: var(--color-accent);
    color: #fff;
  }
  .cfb-nav-lang {
    display: flex;
    justify-content: center;
    padding: 8px 8px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--color-border);
  }
}

.cfb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  margin-left: 12px;
}

.cfb-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.cfb-brand-name {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.cfb-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cfb-main {
  min-height: calc(100vh - 200px);
  padding: 28px 0 56px;
}

.cfb-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 24px 0;
  margin-top: 40px;
}

.cfb-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.cfb-footer-note {
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 680px;
}

.cfb-footer-meta {
  font-size: 12px;
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cfb-footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
}

.cfb-footer-link:hover {
  color: var(--color-accent-text);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cfb-footer-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }
  .cfb-footer-meta > span[aria-hidden] {
    display: none;
  }
}

.cfb-lang-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.cfb-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.cfb-lang-link:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.cfb-lang-link.is-active {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 480px) {
  .cfb-lang-link {
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }
}

.cfb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  min-height: 42px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.cfb-btn:hover {
  transform: translateY(-1px);
}

.cfb-btn:active {
  transform: translateY(0);
}

.cfb-btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.cfb-btn--primary:hover {
  background: var(--color-accent-hover);
}

.cfb-btn--ghost {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}

.cfb-btn--ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.cfb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.cfb-chip--neutral {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

.cfb-note {
  border: 1px solid var(--color-warn-border);
  background: var(--color-warn-bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-warn);
}

.cfb-note--danger {
  border-color: var(--color-danger-border);
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.cfb-note--info {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
}

.cfb-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cfb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.cfb-panel-head h2, .cfb-panel-head h3 {
  min-width: 0;
  flex: 1 1 auto;
}

.cfb-panel-body {
  padding: 20px;
}

@media (max-width: 480px) {
  .cfb-panel-body {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .cfb-panel-head {
    padding: 12px 14px;
  }
  .cfb-panel-head h2, .cfb-panel-head h3 {
    font-size: 16px;
  }
}

.cfb-panel-head__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cfb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.cfb-icon-btn:hover {
  background: var(--color-surface);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.cfb-icon-btn:active {
  transform: translateY(0);
}

.cfb-icon-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cfb-icon-btn svg {
  display: block;
}

.cfb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}

.cfb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === "Find your model" filter bar (shared above data tables) === */
.cfb-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}

.cfb-filter__search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.cfb-filter__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-soft);
  pointer-events: none;
}

.cfb-filter__input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cfb-filter__input::placeholder {
  color: var(--color-text-soft);
  font-weight: 500;
}

.cfb-filter__input:hover {
  border-color: var(--color-border-strong);
}

.cfb-filter__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.cfb-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cfb-filter__chip {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cfb-filter__chip:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.cfb-filter__chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.cfb-filter__empty {
  margin: 16px 0;
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.cfb-error {
  text-align: center;
  padding: 80px 0;
}

.cfb-error-code {
  font-size: 96px;
  margin: 0 0 12px;
  color: var(--color-accent);
}

.cfb-error-text {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ── Consent banner ───────────────────────────────────────────────── */

.cfb-btn--sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}

.cfb-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(17, 20, 24, .08);
  padding: 14px 0;
}

.cfb-consent-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cfb-consent-text {
  flex: 1;
  font-size: 13px;
  color: var(--color-text-muted);
  min-width: 200px;
}

.cfb-consent-link {
  color: var(--color-accent-text);
  text-decoration: underline;
  margin-left: 4px;
  white-space: nowrap;
}

.cfb-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cfb-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cfb-consent-actions {
    justify-content: flex-end;
  }
}
