/* Bibpix DS - ban gop san cua styles.css (bo tokens/fonts.css: font nap bang <link> trong layout).
   Sinh bang: for f in tokens/{colors,typography,spacing,effects,motion,base}.css css/{components,site}.css; do cat $f; done
   Sua token/component thi sinh lai file nay. KHONG sua tay. */

/* ===== tokens/colors.css ===== */
/* ============================================================
   Bibpix — Color tokens
   Derived from the Bibpix logo: steel-blue mark + amber/gold ribbon.
   Base palette + semantic aliases.
   ============================================================ */
:root {
  /* --- Brand: Yellow ribbon (warm, finish-line energy) ---
     Official brand gradient: #FFCD1C (light) -> #FA8F1C (deep). */
  --amber-50:  #FFF8E4;
  --amber-100: #FFEFBE;
  --amber-200: #FFE285;
  --amber-300: #FFCD1C; /* official YELLOW gradient — light stop */
  --amber-400: #FDB81C; /* core brand yellow (mid) */
  --amber-500: #FCA31B;
  --amber-600: #FA8F1C; /* official YELLOW gradient — deep stop */
  --amber-700: #D9740F;
  --amber-800: #A8580B;

  /* --- Brand: Steel blue (structural, trust) ---
     Official brand gradient: #4A83BA (light) -> #1F5D8C (deep). */
  --blue-50:  #EAF2F9;
  --blue-100: #CFE1F0;
  --blue-200: #A7C6E0;
  --blue-300: #7AA6CE;
  --blue-400: #4A83BA; /* official BLUE gradient — light stop */
  --blue-500: #1F5D8C; /* core brand blue (wordmark) + gradient deep stop */
  --blue-600: #184E78;
  --blue-700: #133F62;
  --blue-800: #0F3350;
  --blue-900: #0B2942;

  /* --- Neutrals: cool blue-grey tint --- */
  --ink-950: #0B1620;
  --ink-900: #0E1B26;
  --ink-800: #18272F;
  --ink-700: #2B3A45;
  --ink-600: #41525E;
  --ink-500: #5C6E7A;
  --ink-400: #7D8E99;
  --ink-300: #A6B4BD;
  --ink-200: #CAD5DC;
  --ink-100: #E3EAEF;
  --ink-50:  #F2F5F7;
  --white:   #FFFFFF;

  /* --- Semantic status --- */
  --success-500: #1E9E5A;
  --success-50:  #E6F6EC;
  --warning-500: #F2A516;
  --warning-50:  #FEF4DF;
  --danger-500:  #E23B3B;
  --danger-50:   #FCE9E9;
  --info-500:    var(--blue-500);
  --info-50:     var(--blue-50);

  /* --- Brand gradients (official) --- */
  --grad-ribbon: linear-gradient(116deg, #FFCD1C 0%, #FA8F1C 100%); /* @kind color */
  --grad-blue:   linear-gradient(150deg, #4A83BA 0%, #1F5D8C 100%); /* @kind color */
  --grad-hero-veil: linear-gradient(180deg, rgba(11,41,66,0) 0%, rgba(11,41,66,.74) 100%); /* @kind color */

  /* ===== Semantic aliases ===== */
  --brand-primary:      var(--amber-300);
  --brand-primary-deep: var(--amber-600);
  --brand-secondary:    var(--blue-500);
  --brand-secondary-deep: var(--blue-700);

  --text-strong:  var(--ink-900);
  --text-body:    var(--ink-700);
  --text-muted:   var(--ink-500);
  --text-subtle:  var(--ink-400);
  --text-invert:  var(--white);
  --text-on-amber: var(--ink-900);
  --text-link:    var(--blue-500);

  --surface-page:   #F6F8FA;
  --surface-card:   var(--white);
  --surface-sunken: var(--ink-50);
  --surface-raised: var(--white);
  --surface-inverse: var(--blue-900);

  --border-subtle:  var(--ink-100);
  --border-default: var(--ink-200);
  --border-strong:  var(--ink-300);
  --border-focus:   var(--blue-400);
  --info-strong:    var(--blue-500);

  --icon-default: var(--ink-500);
  --icon-strong:  var(--ink-800);
  --icon-brand:   var(--blue-500);

  --overlay-scrim: rgba(10,34,54,.55); /* @kind color */
}

/* ===== tokens/typography.css ===== */
/* ============================================================
   Bibpix — Typography tokens
   Display: Saira (athletic, sporty, supports condensed + italic — echoes the
            bold-italic logo wordmark).
   UI/Body: Be Vietnam Pro (purpose-built for full Vietnamese diacritics).
   NOTE: Brand font files were not provided — these are Google Fonts stand-ins.
   ============================================================ */
:root {
  --font-display: 'Montserrat', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-sans:    'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Montserrat', ui-monospace, 'SF Mono', Menlo, monospace; /* bib numbers */

  /* Weights */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */
  --fw-extrabold: 800; /* @kind font */

  /* Fluid display sizes — sporty, large */
  --fs-display-1: clamp(44px, 6vw, 72px); /* @kind font */
  --fs-display-2: clamp(34px, 4.4vw, 52px); /* @kind font */
  --fs-h1: clamp(28px, 3.2vw, 38px); /* @kind font */
  --fs-h2: clamp(23px, 2.4vw, 29px); /* @kind font */
  --fs-h3: 22px; /* @kind font */
  --fs-h4: 18px; /* @kind font */
  --fs-body-lg: 18px; /* @kind font */
  --fs-body:    16px; /* @kind font */
  --fs-body-sm: 14px; /* @kind font */
  --fs-caption: 13px; /* @kind font */
  --fs-overline: 12px; /* @kind font */

  /* Line heights */
  --lh-tight:   1.04; /* @kind font */
  --lh-snug:    1.18; /* @kind font */
  --lh-normal:  1.5; /* @kind font */
  --lh-relaxed: 1.65; /* @kind font */

  /* Letter spacing */
  --ls-tight:   -0.02em; /* @kind font */
  --ls-normal:  0; /* @kind font */
  --ls-wide:    0.04em; /* @kind font */
  --ls-overline:0.14em; /* @kind font */
}

/* Optional helper classes (components reference vars directly; these
   are convenience for prose/specimens). */
.t-display-1 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-display-1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); font-style: italic; }
.t-display-2 { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-display-2); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.t-h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h1); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.t-h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: var(--lh-snug); }
.t-h3 { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.t-h4 { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-h4); line-height: var(--lh-snug); }
.t-body-lg { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.t-body { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body); line-height: var(--lh-normal); }
.t-body-sm { font-family: var(--font-sans); font-weight: var(--fw-regular); font-size: var(--fs-body-sm); line-height: var(--lh-normal); }
.t-caption { font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--fs-caption); line-height: var(--lh-normal); color: var(--text-muted); }
.t-overline { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-overline); line-height: 1; letter-spacing: var(--ls-overline); text-transform: uppercase; }

/* ===== tokens/spacing.css ===== */
/* ============================================================
   Bibpix — Spacing & layout tokens (4px base grid)
   ============================================================ */
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 112px;

  /* Layout */
  --container-max: 1240px; /* @kind spacing */
  --container-pad: clamp(16px, 4vw, 40px); /* @kind spacing */
  --gutter: 24px; /* @kind spacing */
  --section-y: clamp(48px, 7vw, 96px); /* @kind spacing */

  /* Component sizing */
  --control-h-sm: 36px; /* @kind spacing */
  --control-h-md: 44px; /* @kind spacing */
  --control-h-lg: 52px; /* @kind spacing */
}

/* ===== tokens/effects.css ===== */
/* ============================================================
   Bibpix — Effects: radius, shadow, blur, borders, z-index
   ============================================================ */
:root {
  /* Corner radii — minimal, squared-off (brand: bo ít) */
  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-pill: 999px;
  --radius-control: var(--radius-md); /* buttons, inputs */
  --radius-card: var(--radius-lg);

  /* Elevation — lighter, fewer layers, cool blue-tinted */
  --shadow-xs: 0 1px 1px rgba(15,47,73,.04);
  --shadow-sm: 0 1px 2px rgba(15,47,73,.06);
  --shadow-md: 0 2px 6px rgba(15,47,73,.08);
  --shadow-lg: 0 6px 16px rgba(15,47,73,.10);
  --shadow-xl: 0 12px 28px rgba(15,47,73,.14);
  --shadow-amber: 0 2px 8px rgba(250,143,28,.22);
  --shadow-focus: 0 0 0 3px rgba(74,131,186,.32);

  /* Borders */
  --border-w: 1px; /* @kind spacing */
  --border-w-strong: 2px; /* @kind spacing */

  /* Blur / glass */
  --blur-sm: 8px; /* @kind other */
  --blur-md: 16px; /* @kind other */
  --glass-bg: rgba(255,255,255,.72); /* @kind color */
  --glass-border: rgba(255,255,255,.5); /* @kind color */

  /* z-index scale */
  --z-base: 0; /* @kind other */
  --z-raised: 10; /* @kind other */
  --z-sticky: 100; /* @kind other */
  --z-header: 200; /* @kind other */
  --z-overlay: 800; /* @kind other */
  --z-modal: 900; /* @kind other */
  --z-toast: 1000; /* @kind other */
}

/* ===== tokens/motion.css ===== */
/* ============================================================
   Bibpix — Motion tokens
   Sporty = quick, decisive ease-out; subtle press-shrink. No bounce.
   ============================================================ */
:root {
  --dur-instant: 80ms; /* @kind other */
  --dur-fast: 140ms; /* @kind other */
  --dur-base: 220ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */

  --ease-out: cubic-bezier(.2, .7, .2, 1); /* @kind other */
  --ease-in-out: cubic-bezier(.5, 0, .2, 1); /* @kind other */
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1); /* @kind other */

  --press-scale: 0.98; /* @kind other */
  --hover-lift: -1px; /* @kind spacing */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant:0ms; /* @kind other */
    --dur-fast:0ms; /* @kind other */
    --dur-base:0ms; /* @kind other */
    --dur-slow:0ms; /* @kind other */
  }
}

/* ===== tokens/base.css ===== */
/* ============================================================
   Bibpix — base reset & element defaults
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-strong); }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

::selection { background: var(--amber-200); color: var(--ink-900); }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* Thin, branded scrollbar for inner scroll areas */
.bx-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
.bx-scroll::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--radius-pill); }
.bx-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* Layout helper */
.bx-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ===== css/components.css ===== */
/* ============================================================
   Bibpix — component classes (framework-agnostic).
   Authored for Blade/HTML output (no React, no CSS-in-JS).
   Uses the design tokens from tokens/*.css.
   Aesthetic: tighter corners, light shadows, sporty.
   ============================================================ */

/* ---------- Layout ---------- */
.bx-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.bx-section { padding-block: var(--section-y); }
.bx-stack { display: flex; flex-direction: column; }
.bx-row { display: flex; align-items: center; }
.bx-spacer { flex: 1 1 auto; }

/* ---------- Icon ---------- */
.bx-ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bx-ic--sm { width: 16px; height: 16px; }
.bx-ic--lg { width: 24px; height: 24px; }

/* ---------- Button ---------- */
.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h-md); padding: 0 20px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body); line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-control);
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bx-btn:active { transform: scale(var(--press-scale)); }
.bx-btn--sm { height: var(--control-h-sm); padding: 0 14px; font-size: var(--fs-body-sm); }
.bx-btn--lg { height: var(--control-h-lg); padding: 0 28px; font-size: var(--fs-body-lg); }
.bx-btn--block { width: 100%; }

.bx-btn--primary { background: var(--grad-ribbon); color: var(--text-on-amber); box-shadow: var(--shadow-amber); }
.bx-btn--primary:hover { filter: brightness(1.04) saturate(1.05); }
.bx-btn--secondary { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.bx-btn--secondary:hover { filter: brightness(1.08); }
.bx-btn--outline { background: #fff; color: var(--blue-600); border-color: var(--border-default); }
.bx-btn--outline:hover { border-color: var(--blue-400); }
.bx-btn--ghost { background: transparent; color: var(--ink-700); }
.bx-btn--ghost:hover { background: var(--ink-50); }
.bx-btn--danger { background: var(--danger-500); color: #fff; border-color: var(--danger-500); }
.bx-btn--danger:hover { filter: brightness(1.08); }
.bx-btn[disabled], .bx-btn--disabled { opacity: .5; pointer-events: none; }

/* ---------- Icon button ---------- */
.bx-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--control-h-md); height: var(--control-h-md); flex: 0 0 auto;
  border: 1px solid transparent; border-radius: var(--radius-control);
  cursor: pointer; background: var(--ink-50); color: var(--ink-700);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bx-iconbtn:active { transform: scale(var(--press-scale)); }
.bx-iconbtn--sm { width: var(--control-h-sm); height: var(--control-h-sm); }
.bx-iconbtn--lg { width: var(--control-h-lg); height: var(--control-h-lg); }
.bx-iconbtn--round { border-radius: var(--radius-pill); }
.bx-iconbtn--soft:hover { background: var(--ink-100); }
.bx-iconbtn--outline { background: #fff; border-color: var(--border-default); }
.bx-iconbtn--outline:hover { border-color: var(--blue-400); }
.bx-iconbtn--ghost { background: transparent; color: var(--ink-600); }
.bx-iconbtn--ghost:hover { background: var(--ink-50); }
.bx-iconbtn--solid { background: var(--blue-500); color: #fff; }
.bx-iconbtn--amber { background: var(--grad-ribbon); color: var(--text-on-amber); }

/* ---------- Field / input ---------- */
.bx-field { display: flex; flex-direction: column; gap: 6px; }
.bx-label { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--text-body); }
.bx-inputwrap {
  display: flex; align-items: center; gap: 10px;
  height: var(--control-h-md); padding: 0 14px;
  background: #fff; border: 1.5px solid var(--border-default); border-radius: var(--radius-control);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.bx-inputwrap--lg { height: var(--control-h-lg); }
.bx-inputwrap:focus-within { border-color: var(--blue-400); box-shadow: var(--shadow-focus); }
.bx-inputwrap .bx-ic { color: var(--icon-default); }
.bx-inputwrap > input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: var(--fs-body); color: var(--text-strong); }
.bx-inputwrap > input::placeholder { color: var(--text-subtle); }
.bx-inputwrap--error { border-color: var(--danger-500); }
.bx-hint { font-size: var(--fs-caption); color: var(--text-muted); }
.bx-hint--error { color: var(--danger-500); }

/* ---------- Select (event picker, dropdowns) ---------- */
.bx-select { display: flex; align-items: center; gap: 10px; height: var(--control-h-md); padding: 0 14px; background: #fff; border: 1.5px solid var(--border-default); border-radius: var(--radius-control); cursor: pointer; color: var(--text-strong); font-family: var(--font-sans); font-size: var(--fs-body); transition: border-color var(--dur-fast) var(--ease-out); }
.bx-select--lg { height: var(--control-h-lg); }
.bx-select:hover { border-color: var(--blue-400); }
.bx-select .bx-ic { color: var(--icon-default); }
.bx-select__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-select__val--placeholder { color: var(--text-subtle); }
.bx-select__caret { margin-left: auto; color: var(--icon-default); }
.bx-select__native { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font: inherit; color: var(--text-strong); appearance: none; -webkit-appearance: none; cursor: pointer; }

/* ---------- Badge ---------- */
.bx-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); line-height: 1.1; white-space: nowrap;
}
.bx-badge--sm { padding: 2px 7px; font-size: var(--fs-overline); }
.bx-badge--pill { border-radius: var(--radius-pill); }
.bx-badge--neutral { background: var(--ink-100); color: var(--ink-700); }
.bx-badge--blue { background: var(--blue-50); color: var(--blue-700); }
.bx-badge--amber { background: var(--amber-100); color: var(--amber-800); }
.bx-badge--success { background: var(--success-50); color: var(--success-500); }
.bx-badge--warning { background: var(--warning-50); color: var(--amber-800); }
.bx-badge--danger { background: var(--danger-50); color: var(--danger-500); }
.bx-badge--solid-amber { background: var(--grad-ribbon); color: var(--ink-900); }
.bx-badge--solid-blue { background: var(--blue-500); color: #fff; }

/* ---------- Segmented tabs ---------- */
.bx-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--ink-50); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.bx-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm);
  color: var(--ink-500); border-radius: var(--radius-sm); white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.bx-tab[aria-selected="true"], .bx-tab.is-active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }

/* ---------- Section heading ---------- */
.bx-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bx-heading__bar { width: 5px; height: 24px; border-radius: var(--radius-xs); background: var(--grad-ribbon); flex: 0 0 auto; }
.bx-heading__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-h1); line-height: 1.05; letter-spacing: var(--ls-tight); color: var(--text-strong); text-transform: uppercase; }
.bx-heading__sub { color: var(--text-muted); font-size: var(--fs-body); margin-left: 17px; margin-top: 4px; }

/* ---------- Event card ---------- */
.bx-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); text-decoration: none; color: inherit; }
.bx-card:hover { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-md); }
.bx-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--ink-100); overflow: hidden; }
.bx-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.bx-card:hover .bx-card__media > img { transform: scale(1.04); }
.bx-card__badge { position: absolute; top: 10px; left: 10px; }
.bx-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.bx-card__title { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-h4); line-height: 1.3; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; color: var(--text-muted); font-size: var(--fs-body-sm); }
.bx-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
/* horizontal variant */
.bx-card--row { flex-direction: row; }
.bx-card--row .bx-card__media { flex: 0 0 132px; aspect-ratio: auto; }

/* ---------- Pagination ---------- */
.bx-pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bx-page { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-default); background: #fff; color: var(--ink-700); border-radius: var(--radius-md); cursor: pointer; font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); user-select: none; }
.bx-page:hover { border-color: var(--blue-400); }
.bx-page.is-active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.bx-page--ellipsis { border: none; background: transparent; min-width: 28px; color: var(--text-subtle); pointer-events: none; }
.bx-page[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Photo tile (search results / grid) ---------- */
.bx-photo { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/2; background: var(--ink-100); border: 2px solid transparent; }
.bx-photo > img { width: 100%; height: 100%; object-fit: cover; }
.bx-photo__bib { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.94); color: var(--ink-900); font-family: var(--font-mono); font-style: italic; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: var(--radius-sm); }
.bx-photo.is-selected { border-color: var(--amber-300); }

/* ---------- Bib plate ---------- */
.bx-bib { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 3px solid var(--ink-900); border-radius: var(--radius-md); padding: 8px 18px; box-shadow: var(--shadow-sm); }
.bx-bib small { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--danger-500); }
.bx-bib b { font-family: var(--font-mono); font-weight: 800; font-size: 44px; font-style: italic; letter-spacing: .02em; color: var(--blue-700); font-variant-numeric: tabular-nums; line-height: 1; }

/* ===== css/site.css ===== */
/* ============================================================
   Bibpix — site chrome (header / hero / rails / footer) + responsive.
   PADDING RULE: horizontal page padding comes ONLY from .bx-container
   (var(--container-pad)). Sections and inner blocks must NOT re-add
   horizontal padding — this prevents the "double padding" on mobile.
   ============================================================ */

/* ---------- Header ---------- */
.bx-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--glass-bg); backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md)); border-bottom: 1px solid var(--border-subtle); }
.bx-header__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.bx-header__logo img { height: 32px; width: auto; }
.bx-header__nav { display: flex; gap: 2px; margin-left: 6px; }
.bx-header__nav a { padding: 8px 14px; border-radius: var(--radius-md); color: var(--ink-600); font-weight: var(--fw-medium); font-size: var(--fs-body-sm); text-decoration: none; }
.bx-header__nav a:hover { background: var(--ink-50); text-decoration: none; }
.bx-header__nav a.is-active { color: var(--blue-700); font-weight: var(--fw-bold); }
.bx-header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bx-langswitch { display: flex; gap: 2px; background: var(--ink-50); border-radius: var(--radius-md); padding: 3px; }
.bx-langswitch a { padding: 5px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; color: var(--ink-400); text-decoration: none; }
.bx-langswitch a.is-active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-xs); }
.bx-header__burger { display: none; }

/* ---------- Hero ---------- */
.bx-hero { position: relative; overflow: hidden; background: var(--blue-900); }
.bx-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.bx-hero__veil { position: absolute; inset: 0; background: linear-gradient(102deg, rgba(11,41,66,.86) 0%, rgba(11,41,66,.38) 60%, rgba(11,41,66,.1) 100%); }
.bx-hero__inner { position: relative; padding-block: 64px 56px; }
.bx-hero__eyebrow { margin-bottom: 16px; }
.bx-hero__title { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; font-size: var(--fs-display-1); line-height: 1.0; letter-spacing: var(--ls-tight); color: #fff; text-transform: uppercase; max-width: 760px; }
.bx-hero__title em { color: var(--amber-300); font-style: italic; }
.bx-hero__sub { color: rgba(255,255,255,.84); font-size: var(--fs-body-lg); max-width: 520px; margin-top: 16px; }

/* Search box on hero */
.bx-searchbox { margin-top: 28px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 16px; max-width: 660px; }
.bx-searchbox__row { display: flex; gap: 10px; margin-top: 12px; }
.bx-searchbox__row .bx-field { flex: 1; }
.bx-dropzone { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 16px; height: var(--control-h-lg); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-control); color: var(--text-muted); font-size: var(--fs-body-sm); }

/* ---------- Featured rail ---------- */
.bx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: var(--gutter); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.bx-rail > * { scroll-snap-align: start; }
.bx-railhead__arrows { display: flex; gap: 8px; }

/* ---------- Event list ---------- */
.bx-listlayout { display: grid; grid-template-columns: 232px 1fr; gap: 32px; align-items: start; }
.bx-yearnav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; }
.bx-yearnav__label { font-size: var(--fs-overline); font-weight: 700; letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--text-subtle); margin-bottom: 6px; }
.bx-yearnav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; color: var(--ink-700); text-decoration: none; font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.bx-yearnav a .n { font-size: 12px; font-weight: 700; color: var(--text-subtle); }
.bx-yearnav a.is-active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.bx-yearnav a.is-active .n { color: rgba(255,255,255,.85); }
.bx-eventgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: var(--gutter); }
.bx-photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------- Detail header ---------- */
.bx-detail { position: relative; overflow: hidden; background: var(--blue-900); }
.bx-detail__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .36; }
.bx-detail__inner { position: relative; padding-block: 26px 28px; }
.bx-detail__title { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-style: italic; font-size: var(--fs-display-2); line-height: 1.02; color: #fff; text-transform: uppercase; max-width: 800px; }
.bx-back { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: none; color: #fff; padding: 7px 13px; border-radius: var(--radius-md); cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; }
/* Cùng nút đó khi đặt trên nền sáng (ngoài hero) — nền mờ trắng sẽ tàng hình. */
.bx-back--onlight { background: var(--surface-card); border: 1px solid var(--border-subtle); color: var(--text-body); }
.bx-back--onlight:hover { border-color: var(--blue-400); color: var(--blue-600); }
.bx-filterbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-block: 18px; border-bottom: 1px solid var(--border-subtle); }

/* ---------- Buy basket (sticky) ---------- */
.bx-basket { position: sticky; bottom: 16px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.bx-footer { background: var(--blue-900); color: rgba(255,255,255,.72); margin-top: var(--section-y); }
/* 4 cột: logo+BCT · pháp nhân · liên kết nhanh · chính sách */
.bx-footer__grid { padding-block: 48px 26px; display: grid; grid-template-columns: 1.1fr 1.5fr .8fr 1fr; gap: 32px; }
.bx-footer__logo { height: 38px; width: auto; margin-bottom: 16px; }
.bx-footer__org { font-weight: 700; color: #fff; font-size: 14px; }
.bx-footer__addr { font-size: 13px; margin-top: 8px; line-height: 1.6; }
.bx-footer__col h4, .bx-footer__col .bx-footer__h { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; line-height: 1.4; }
.bx-footer__col a { display: block; color: rgba(255,255,255,.72); font-size: 13px; text-decoration: none; margin-bottom: 10px; }
.bx-footer__col a:hover { color: #fff; }
.bx-footer__base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Mobile bottom tab bar (app-like) ---------- */
.bx-tabbar { display: none; }

/* ============================================================
   RESPONSIVE — mobile. Single horizontal padding from .bx-container.
   ============================================================ */
@media (max-width: 860px) {
  :root { --container-pad: 16px; --section-y: 36px; }
  .bx-header__nav { display: none; }
  .bx-langswitch { display: flex; }
  .bx-langswitch a { padding: 5px 9px; }
  .bx-listlayout { grid-template-columns: 1fr; gap: 18px; }
  .bx-yearnav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .bx-yearnav__label { display: none; }
  .bx-yearnav a { flex: 0 0 auto; }
  .bx-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bx-hero__title { font-size: clamp(34px, 9vw, 48px); }
}

@media (max-width: 560px) {
  .bx-hero__inner { padding-block: 36px 30px; }
  .bx-searchbox { padding: 12px; border-radius: var(--radius-lg); }
  .bx-searchbox__row { flex-direction: column; }
  .bx-searchbox__row .bx-btn { width: 100%; }
  .bx-searchbox .bx-tabs { display: flex; width: 100%; }
  .bx-searchbox .bx-tab { flex: 1; justify-content: center; padding: 0 10px; }
  /* Ngoài hộp tìm ở hero, dải tab là nội dung thường: nhiều tab dài (Tìm theo BIB /
     Tìm theo mặt / Tất cả ảnh) không vừa 390px nên cho cuộn ngang trong chính nó,
     tránh đẩy tràn cả trang. */
  .bx-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bx-tabs::-webkit-scrollbar { display: none; }
  .bx-tab { flex: 0 0 auto; }
  .bx-eventgrid { grid-template-columns: 1fr; gap: 12px; }
  .bx-photogrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bx-rail { grid-auto-columns: 78%; }
  .bx-card__title { font-size: var(--fs-body); }
  .bx-filterbar { gap: 8px; }
  /* App-like bottom tab bar on small screens */
  .bx-tabbar { position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; justify-content: space-around; align-items: center; background: #fff; border-top: 1px solid var(--border-subtle); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bx-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 12px; color: var(--ink-400); text-decoration: none; font-size: 11px; font-weight: 600; }
  .bx-tabbar a.is-active { color: var(--blue-600); }
  .bx-tabbar .bx-ic { width: 22px; height: 22px; }
}
