/*
Theme Name: Golden Buffalo Logistics
Theme URI: https://goldenbuffalogistic.com
Author: Golden Buffalo Logistics
Description: Giao diện Golden Buffalo Logistics — dựng từ bản thiết kế Broadsheet (navy #002060, vàng #D0B080, serif).
Version: 1.0.0
Requires at least: 6.0
Text Domain: golden-buffalo
*/
/* Source Serif 4 — tự host (SIL Open Font License) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-italic-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-italic-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: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-italic-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-normal-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-normal-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-normal-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-normal-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-normal-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/themes/golden-buffalo/assets/fonts/source-serif-4-normal-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;
}

/* ---- Broadsheet design system ---- */
/* Broadsheet — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */


:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #0088b0;
  --color-accent-2: #d6006c;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #e9f8ff;
  --color-accent-200: #cbeeff;
  --color-accent-300: #99e0ff;
  --color-accent-400: #62c5ee;
  --color-accent-500: #38a6cf;
  --color-accent-600: #1186ac;
  --color-accent-700: #006786;
  --color-accent-800: #004961;
  --color-accent-900: #0a303e;

  --color-accent-2-100: #fff1f4;
  --color-accent-2-200: #ffdee6;
  --color-accent-2-300: #ffc0d0;
  --color-accent-2-400: #ff90b1;
  --color-accent-2-500: #ff458e;
  --color-accent-2-600: #d82071;
  --color-accent-2-700: #aa0b56;
  --color-accent-2-800: #790e3d;
  --color-accent-2-900: #4b1528;

  /* The third process ink — review round 3: the deck's print treatments
     (the CMYK separation and the misregistered plate numerals below) need
     the full four-color set. Cyan and magenta are the system's own accents;
     this yellow completes them, muted to the same press-ink register. A
     print treatment color, not an interface accent — body copy and chrome
     never take it. */
  --color-process-yellow: #edbb00;

  --font-heading: "Source Serif 4", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Source Serif 4", system-ui, sans-serif;

  --space-1: 5.0px;
  --space-2: 10.0px;
  --space-3: 15.0px;
  --space-4: 20.0px;
  --space-6: 30.0px;
  --space-8: 40.0px;

  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 4px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.halftone{position:relative;filter:grayscale(0.35) contrast(1.15);overflow:hidden}
.halftone::after{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(circle,rgba(0,0,0,0.22) 30%,transparent 32%);
  background-size:3px 3px;mix-blend-mode:multiply}

/* The four-color separation treatment (review round 3) — a photograph
   printed as its misregistered process plates, after the Catalogue Three
   grammar. Markup: a figure.cmyk holding five copies of the image — the
   first is the layout sizer (hidden), then one per plate, each tagged
   .sep-c/.sep-m/.sep-y/.sep-k. The plates are extracted live by the SVG
   feColorMatrix filters in print-plates.js, the system's own defs —
   inlined in the compiled bundle every template page loads, and a
   page that links styles.css directly adds
   <script src="print-plates.js"></script> itself (the defs must be in
   the document: a data-URI filter reference would not survive Chromium,
   and external-file references are unreliable across engines) — nudged
   a few pixels out of register, and multiplied
   onto the paper ground; the halftone dot screens the recombined print.
   The plate offsets live with the deck's projection-scale CSS, since
   misregistration is sized to the output. */
.cmyk{position:relative;overflow:hidden;background:var(--color-bg)}
.cmyk img:first-child{opacity:0} /* layout sizer AND the alt-bearing image — opacity
  keeps it in the accessibility tree (visibility:hidden would drop the figure's only
  description); fully transparent, it adds nothing to the multiply backdrop */
.cmyk img+img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}
.cmyk .sep-c{filter:url(#sep-c)}
.cmyk .sep-m{filter:url(#sep-m)}
.cmyk .sep-y{filter:url(#sep-y)}
.cmyk .sep-k{filter:url(#sep-k)}
.cmyk::after{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(circle,rgba(0,0,0,0.22) 30%,transparent 32%);
  background-size:3px 3px;mix-blend-mode:multiply}

/* The one-image separation (review round 9, promoted from the deck in the
   landing divergence) — the same four plates as ONE compound filter,
   #sep-all in print-plates.js, for a single swappable image: a .print
   wrapper inside the figure holds one <image-slot>, and the filter
   extracts, offsets and multiplies the plates live from whatever the slot
   shows. Markup: figure.cmyk > .print > image-slot (the page sizes the
   .print — aspect-ratio, or absolute fill for bleeds). Hover resolves
   the print into the photograph — the pressman checking registration on
   the light table — so the source shows crisp and any swap chrome stays
   legible; only the reduced-motion fallback below still lifts as a
   single cut (a url() filter cannot CSS-transition; the press driver
   animates the defs instead). */
.cmyk .print{position:relative;width:100%;filter:url(#sep-all)}
/* no hover end-state swap: the press driver (print-plates.js) eases the
   plates into register while purifying their inks to the pure-process
   separation on the same curve, so the converged four-plate merge IS
   the photograph (their multiply equals SourceGraphic by construction)
   — no cut anywhere on the animated path */
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .cmyk .print:hover{filter:none} /* without the driver (it stands down on
    exactly these conditions), hover stays the old single cut to the
    crisp source */
}
.cmyk .print image-slot{width:100%;height:100%;display:block}

/* The plate numeral (review rounds 3-4) — display figures set as
   misregistered process plates, the catalog's cover grammar. Review
   round 4 (Barron): THREE plates — C, M, Y only, no black plate — so the
   dark core comes entirely from the C×M×Y multiply overlap (the inks
   product to exact black), with the fringes the registration drift; and
   the spread pulled in by half (less jumbled: one figure with plate
   fringes rather than figures sliding apart). Markup: a .cmyk-num holding
   a .paper span (the white of the sheet: the glyph's union, built from
   offset text-shadow copies) and three .plate spans. The construction
   carries its own ground (--cmyk-num-ground, defaulting to paper) painted
   on its padding box, so the multiply plates always have their backdrop
   even inside an isolated stacking context (entrance animations); the
   padding bleeds wider than any plate offset and the negative margin
   hands the layout box back. Offsets are em-scaled to the glyph. The
   .paper span carries the text once for assistive tech; the .plate spans
   are aria-hidden repeats. */
.cmyk-num{--cmyk-num-ground:var(--color-bg);
  position:relative;width:fit-content;line-height:0.9;
  font-feature-settings:"pnum" 1;
  background:var(--cmyk-num-ground);padding:0.12em;margin:-0.12em}
.cmyk-num .paper{color:var(--color-bg); /* the white of the sheet — always paper,
  whatever the ground: the plates read as printed on paper even when the
  surrounding page is ink */
  text-shadow:0.036em 0.025em 0 var(--color-bg),-0.031em -0.023em 0 var(--color-bg)}
.cmyk-num .plate{position:absolute;inset:0.12em;mix-blend-mode:multiply;
  text-box:trim-both cap alphabetic /* the host trims to its cap box; each
  absolute plate must trim its own line the same way, or its glyphs sit a
  half-leading below the paper union */}
.cmyk-num .plate-c{color:var(--color-accent)}

/* The plate headline (divergence round 3, Barron: "use both" — the
   photograph's plates AND the cover grammar's text plates, on the same
   page). The same three-plate construction as .cmyk-num — paper span
   carrying the real text, C/M/Y plate repeats, dark core from the
   multiply overlap — at HALF the numeral's round-4 offsets: the serif's
   display hairlines are thinner than the numeral strokes the spread was
   measured on, and the full offsets swallow them whole (probed at the
   hero's 80px — the fringes read as an anaglyph poster, not a breath
   out of register) — recut for display
   headlines that sit in running text blocks on the page's own paper:
   no ground painting and no padding bleed (the numeral's ground exists
   for isolated stacking contexts; a headline on the page multiplies
   straight onto the sheet), no width:fit-content and no line-height
   override (the host display class owns its metrics — apply this to
   each .line, which is position:relative for its plates), and the
   plates are inert to the hand (pointer-events/user-select none, so a
   triple-click selects the headline once, not four times). Plates take
   the same pointer lean as .cmyk-num. */
.cmyk-head{position:relative}
.cmyk-head .paper{color:var(--color-bg);
  text-shadow:0.027em 0.0185em 0 var(--color-bg),-0.0245em -0.0175em 0 var(--color-bg)
  /* the union's copies sit at the construction's halved plate offsets
     PLUS the full lean (0.018+0.009 / 0.0125+0.006, and mirrored), so
     the union still backs the plates at viewport-edge lean — invisible
     on the page's own paper, load-bearing on any other ground */}
.cmyk-head .plate{position:absolute;inset:0;mix-blend-mode:multiply;
  pointer-events:none;user-select:none;
  text-box:trim-both cap alphabetic /* match the host's trim, or the
  plates sit a half-leading below the paper union */}
.cmyk-head .plate-c{color:var(--color-accent)}
.cmyk-head .plate-m{color:var(--color-accent-2);
  translate:calc(0.018em + 0.009em*var(--press-nx, 0)) calc(0.0125em + 0.006em*var(--press-ny, 0))}
.cmyk-head .plate-y{color:var(--color-process-yellow);
  translate:calc(-0.0155em + 0.009em*var(--press-nx, 0)) calc(-0.0115em + 0.006em*var(--press-ny, 0))}
.cmyk-num .plate-m{color:var(--color-accent-2);
  translate:calc(0.036em + 0.018em*var(--press-nx, 0)) calc(0.025em + 0.0125em*var(--press-ny, 0))}
.cmyk-num .plate-y{color:var(--color-process-yellow);
  translate:calc(-0.031em + 0.018em*var(--press-nx, 0)) calc(-0.023em + 0.0125em*var(--press-ny, 0))}
/* --press-nx/--press-ny: the pointer lean as a bare -1..1 factor,
   published on :root by the press driver (print-plates.js) and zero
   whenever the driver stands down. Each construction scales the lean to
   its own spread (half of it, here as everywhere) so the moving plates
   drift a breath toward the cursor and the C plate holds. */

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input::placeholder { color: color-mix(in srgb, var(--color-text) 65%, transparent); opacity: 1; }
  /* explicit, measured: the browser default gray misses the 4.5:1 small-text bar on
     the surface fill; 65% ink measures 4.8:1 there, still a step quieter than typed
     text (opacity:1 overrides Firefox's default placeholder fade) */
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }


/* ---- Thiết kế Golden Buffalo ---- */

  body { margin: 0; background: #f5f3ef; }
  a:not(.gb-a) { color: #002060; text-decoration: none; }
  a:not(.gb-a):hover { color: #8a6d2f; }
  @media (max-width: 1160px) { [data-news-wrap] { grid-template-columns: 1fr !important; gap: 56px !important; } }
  @media (max-width: 1024px) { [data-cols] { grid-template-columns: repeat(2, 1fr) !important; } }
  @media (max-width: 760px) { [data-news-row] { grid-template-columns: 1fr !important; } }
  @media (max-width: 1100px) { header nav { display: none !important; } [data-burger] { display: grid !important; } }
  @media (max-width: 900px) { h1 { font-size: 42px !important; } h2 { font-size: 32px !important; } [data-hero] { height: 520px !important; } }
  @media (max-width: 680px) { [data-cols] { grid-template-columns: 1fr !important; } main > section, header > div, footer > div, main > section > div { padding-left: 20px !important; padding-right: 20px !important; } }
  @keyframes gbl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  ::selection { background: #d0b080; color: #002060; }
  * { -webkit-tap-highlight-color: transparent; }
  [style*="cursor: pointer"] { -webkit-user-select: none; user-select: none; }
  [style*="cursor: pointer"]:focus-visible { outline: 2px solid #d0b080; outline-offset: 3px; }
  .input { transition: border-color .15s ease, box-shadow .15s ease, transform .15s cubic-bezier(.2,.75,.3,1); }
  .input:focus { border-color: #002060; box-shadow: 0 0 0 3px rgba(208,176,128,.28); outline: none; }
  .input:active { transform: translateY(1px); }
  .table tbody tr { transition: background .15s ease; }
  .table tbody tr:hover { background: rgba(208,176,128,.14); }
  .table tbody tr:active { background: rgba(208,176,128,.24); }
  audio, iframe { transition: opacity .15s ease; }

/* ---- Hiệu ứng hover/nhấn ---- */
.gh-1ymlsd7:hover { opacity: 1 !important; }
.gh-o2iqiz:active { transform: translateY(1px) !important; opacity: 0.55 !important; }
.gh-ki03g8:active { transform: translateY(1px) !important; opacity: 0.7 !important; }
.gh-7zccvc:hover { color: rgb(255, 255, 255) !important; }
.gh-uueavh:active { transform: translateY(1px) !important; opacity: 0.75 !important; }
.gh-17aokbc:hover { background: rgba(208, 176, 128, 0.14) !important; }
.gh-uflp8i:active { transform: translateY(2px) !important; box-shadow: rgba(0, 8, 26, 0.32) 0px 3px 9px inset !important; }
.gh-1uc05b1:hover { background: rgb(227, 201, 154) !important; }
.gh-1ef7q39:hover { color: rgb(138, 109, 47) !important; }
.gh-1f6wlwl:hover { background: rgba(208, 176, 128, 0.16) !important; color: rgb(255, 255, 255) !important; }
/* ---- Bổ sung cho WordPress ---- */
body { font-family: var(--font-body); color: #26251f; background: #f5f3ef; }
.gb-root { font-family: var(--font-body); color: rgb(38, 37, 31); background: rgb(245, 243, 239); min-height: 100vh; }
a.gb-a { color: inherit; text-decoration: none; }
a.gb-flink:hover { color: #ffffff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Bản đồ mạng lưới (danh sách + bản đồ trong iframe) */
.gb-mapbox { position: relative; height: 640px; background: #f5f3ef; border: 1px solid rgba(0, 32, 96, 0.18); }
@media (max-width: 760px) { .gb-mapbox { height: 860px !important; } }

/* Hiệu ứng nhấc thẻ (rê chuột) và nhún (bấm/chạm) — gb.js gắn .gb-card / .gb-tap */
.gb-card, .gb-tap { transition: transform .26s cubic-bezier(.2,.75,.3,1), box-shadow .26s ease; -webkit-tap-highlight-color: transparent; }
.gb-card .gb-media { overflow: hidden; }
.gb-card img, .gb-card [role="img"] { transition: transform .6s cubic-bezier(.2,.75,.3,1); }
@media (hover: hover) and (pointer: fine) {
  .gb-card:hover { transform: translateY(-5px); }
  .gb-card:hover img, .gb-card:hover [role="img"] { transform: scale(1.045); }
  a.gb-card[data-news-row]:hover { transform: translateX(4px); }
  .gb-card.gb-card-static:hover { transform: none; }
}
.gb-card[data-href] { cursor: pointer; }
.gb-pressed { transform: scale(.965) !important; transition-duration: .09s !important; }
.gb-bounce { animation: gb-bounce .42s cubic-bezier(.2,.75,.3,1); }
@keyframes gb-bounce { 0% { transform: scale(.965); } 55% { transform: scale(1.018); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .gb-card, .gb-tap, .gb-card img, .gb-card [role="img"] { transition: none !important; }
  .gb-card:hover, .gb-pressed { transform: none !important; }
  .gb-bounce { animation: none; }
}

/* Thanh truy cập nhanh 5 dịch vụ (trang chủ, dưới hero) */
.gb-svcbar { display: grid; grid-template-columns: repeat(5, 1fr); }
.gb-svcbar a { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 34px 18px 18px; border-left: 1px solid rgba(0, 32, 96, 0.14); color: rgb(0, 32, 96); transition: background .2s, color .2s; }
.gb-svcbar a:first-child { border-left: 0; padding-left: 0; }
.gb-svcbar a::after { content: ""; position: absolute; left: 18px; right: 34px; bottom: -1px; height: 2px; background: rgb(208, 176, 128); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2,.75,.3,1); }
.gb-svcbar a:first-child::after { left: 0; }
.gb-svcbar i { font-style: normal; font-size: 12px; letter-spacing: .2em; color: rgb(184, 150, 98); }
.gb-svcbar b { font-family: var(--font-heading); font-size: 17px; line-height: 1.25; font-weight: 600; }
.gb-svcbar span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgb(108, 101, 88); }
.gb-svcbar em { position: absolute; right: 12px; top: 50%; margin-top: -10px; font-style: normal; font-size: 16px; color: rgb(208, 176, 128); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; }
@media (hover: hover) and (pointer: fine) {
  .gb-svcbar a:hover { background: rgba(208, 176, 128, 0.1); }
  .gb-svcbar a:hover::after { transform: scaleX(1); }
  .gb-svcbar a:hover em { opacity: 1; transform: none; }
}
.gb-svcbar a:focus-visible { outline: 2px solid rgb(208, 176, 128); outline-offset: -2px; }
@media (max-width: 1100px) { .gb-svcbar b { font-size: 15.5px; } .gb-svcbar a { padding-right: 22px; } }
@media (max-width: 900px) {
  /* điện thoại: lưới 2 cột thấy đủ 5 dịch vụ, ô cuối trải hết hàng; mũi tên luôn hiện để báo bấm được */
  .gb-svcbar { grid-template-columns: 1fr 1fr; }
  .gb-svcbar a { padding: 14px 28px 14px 14px; }
  .gb-svcbar a:nth-child(odd) { border-left: 0; padding-left: 0; }
  .gb-svcbar a:nth-child(n+3) { border-top: 1px solid rgba(0, 32, 96, 0.14); }
  .gb-svcbar a:last-child { grid-column: 1 / -1; }
  .gb-svcbar a::after { display: none; }
  .gb-svcbar em { opacity: 1; transform: none; right: 6px; }
}

/* Menu thả xuống */
.gb-drop { display: none; }
.gb-nav-item:hover .gb-drop, .gb-nav-item:focus-within .gb-drop { display: block; }

/* Cuộn tới khối không bị header che */
[id^="gt-"], #lh-map, #lh-form { scroll-margin-top: 110px; }

/* Thanh quản trị khi đăng nhập */
.admin-bar header[style*="sticky"] { top: 32px !important; }
@media (max-width: 782px) { .admin-bar header[style*="sticky"] { top: 46px !important; } }

/* Form liên hệ */
button.gh-uflp8i { line-height: inherit; }

/* Trang bài viết */
.gb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8a7a5c; }
.gb-crumbs a { color: #8a6d2f; }
.gb-crumbs a:hover { color: #002060; }
.gb-article-grid { max-width: 1240px; margin: 0 auto; padding: 28px 40px 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.gb-article-main { min-width: 0; max-width: 820px; }
.gb-article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: 13.5px; color: #8a7a5c; }
.gb-article-cat { color: #002060; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; border-bottom: 2px solid #d0b080; }
.gb-article-main h1 { margin: 0; font-family: var(--font-heading); font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: #002060; text-wrap: pretty; }
.gb-article-lead { margin: 24px 0 0; font-family: var(--font-heading); font-style: italic; font-size: 21px; line-height: 1.6; color: #4a4740; }
.gb-article-figure { margin: 36px 0 0; }
.gb-article-figure img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; background: #e6e3dc; }
.gb-article-figure figcaption { margin-top: 12px; font-size: 14px; font-style: italic; color: #6c6558; }
.gb-toc { margin: 40px 0 8px; border: 1px solid rgba(0, 32, 96, .16); border-top: 4px solid #002060; background: #fbfaf7; padding: 18px 24px 16px; }
.gb-toc-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #002060; }
.gb-toc-toggle { border: 0; background: none; font: inherit; font-size: 13px; letter-spacing: .08em; color: #8a6d2f; cursor: pointer; text-transform: none; }
.gb-toc ol { list-style: none; counter-reset: toc; margin: 14px 0 0; padding: 0; }
.gb-toc li { margin: 0; padding: 7px 0; border-top: 1px solid rgba(0, 32, 96, .08); font-size: 16.5px; line-height: 1.45; }
.gb-toc li.lv2 { counter-increment: toc; }
.gb-toc li.lv2::before { content: counter(toc, decimal-leading-zero); display: inline-block; width: 34px; color: #d0b080; font-size: 13px; letter-spacing: .08em; }
.gb-toc li.lv3 { padding-left: 34px; font-size: 15px; color: #4a4740; }
.gb-toc a { color: #002060; }
.gb-toc a:hover { color: #8a6d2f; }
.gb-toc.closed ol { display: none; }
.gb-article-main .gb-prose { margin-top: 40px; }
.gb-prose [id] { scroll-margin-top: 110px; }
.gb-related-svc { display: block; margin-top: 48px; padding: 22px 24px; border: 1px solid rgba(0, 32, 96, .16); border-left: 4px solid #d0b080; background: #fff; }
.gb-related-svc-k { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8a7a5c; }
.gb-related-svc strong { display: block; margin-top: 6px; font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: #002060; }
.gb-related-svc-d { display: block; margin-top: 6px; font-size: 16px; line-height: 1.6; color: #4a4740; }
.gb-related-svc-go { display: inline-block; margin-top: 10px; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: #002060; border-bottom: 1px solid #d0b080; padding-bottom: 2px; }
.gb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0, 32, 96, .2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8a7a5c; }
.gb-share > span { margin-right: 6px; }
.gb-share-btn { display: inline-block; border: 1px solid rgba(0, 32, 96, .25); background: #fff; color: #002060; padding: 8px 14px; font: inherit; font-size: 13px; letter-spacing: .04em; text-transform: none; cursor: pointer; }
.gb-share-btn:hover { border-color: #d0b080; color: #002060; }
.gb-author { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 20px; background: #fbfaf7; border: 1px solid rgba(0, 32, 96, .12); }
.gb-author img { width: 88px; height: 88px; object-fit: cover; flex: none; }
.gb-author strong { color: #002060; font-size: 17px; }
.gb-author p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: #4a4740; }
.gb-article-cta { margin-top: 36px; background: #002060; color: #fff; padding: 32px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gb-article-cta h2 { margin: 0; max-width: 30ch; font-family: var(--font-heading); font-size: 24px; line-height: 1.3; font-weight: 600; color: #fff; }
.gb-article-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gb-btn-gold, .gb-btn-line { display: inline-block; padding: 13px 22px; font-size: 15px; font-weight: 600; text-align: center; }
.gb-btn-gold { background: #d0b080; color: #001238 !important; }
.gb-btn-gold:hover { background: #e3c99a; }
.gb-btn-line { border: 1px solid rgba(208, 176, 128, .7); color: #d0b080 !important; }
.gb-article-side { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 32px; }
.admin-bar .gb-article-side { top: 144px; }
.gb-side-box { border-top: 6px solid #002060; padding-top: 18px; }
.gb-side-box h3, .gb-side-cta h3 { margin: 0 0 14px; font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: #002060; }
.gb-side-post { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(0, 32, 96, .1); }
.gb-side-thumb { display: block; height: 62px; background: #e6e3dc center / cover no-repeat; }
.gb-side-post b { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; color: #002060; }
.gb-side-post small { display: block; margin-top: 4px; font-size: 12.5px; color: #8a7a5c; }
.gb-side-cat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0, 32, 96, .1); font-size: 16px; color: #26251f; }
.gb-side-cat span + span { color: #8a7a5c; }
.gb-side-cta { background: #001238; color: rgba(255, 255, 255, .8); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.gb-side-cta h3 { color: #fff; margin: 0; }
.gb-side-cta p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
@media (max-width: 1100px) {
  .gb-article-grid { grid-template-columns: 1fr; gap: 56px; }
  .gb-article-side { position: static; }
}
@media (max-width: 680px) {
  .gb-article-grid { padding: 20px 20px 0; }
  .gb-article-main h1 { font-size: 32px !important; }
  .gb-article-lead { font-size: 18px; }
  .gb-toc { padding: 14px 16px; }
  .gb-article-cta { padding: 24px; }
}

/* Nội dung bài viết soạn trong WordPress */
.gb-prose p { margin: 0 0 22px; font-size: 18.5px; line-height: 1.75; color: rgb(38, 37, 31); }
.gb-prose h2 { margin: 44px 0 16px; font-family: var(--font-heading); font-size: 30px; line-height: 1.2; font-weight: 600; color: rgb(0, 32, 96); }
.gb-prose h3 { margin: 36px 0 12px; font-family: var(--font-heading); font-size: 24px; line-height: 1.25; font-weight: 600; color: rgb(0, 32, 96); }
.gb-prose blockquote { margin: 34px 0; padding: 0 0 0 26px; border-left: 3px solid rgb(208, 176, 128); }
.gb-prose blockquote p { margin: 0; font-family: var(--font-heading); font-style: italic; font-size: 24px; line-height: 1.5; color: rgb(0, 32, 96); }
.gb-prose ol { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: gb; }
.gb-prose ol li { counter-increment: gb; display: flex; gap: 14px; align-items: baseline; margin: 0 0 12px; font-size: 18px; line-height: 1.65; color: rgb(38, 37, 31); }
.gb-prose ol li::before { content: counter(gb, decimal-leading-zero); flex: 0 0 auto; color: rgb(208, 176, 128); font-size: 13px; letter-spacing: 0.1em; }
.gb-prose ul { margin: 0 0 22px; padding-left: 22px; font-size: 18px; line-height: 1.65; }
.gb-prose img { max-width: 100%; height: auto; }
.gb-prose a { color: rgb(0, 32, 96); border-bottom: 1px solid rgb(208, 176, 128); }
.gb-pager .page-numbers { color: rgb(0, 32, 96); padding-bottom: 3px; }
.gb-pager .page-numbers.current { border-bottom: 2px solid rgb(208, 176, 128); }

/* Điện thoại */
@media (max-width: 680px) {
  .gb-hotline { display: none !important; }
  .gb-prose p { font-size: 17px; }
  /* Thanh trên cùng: chỉ giữ nút ngôn ngữ (địa chỉ, email đã có ở footer) */
  .gb-topbar > div > span:not(:last-child) { display: none; }
  .gb-topbar > div { padding-top: 6px !important; padding-bottom: 6px !important; }
  /* Hero tự giãn theo nội dung để không cắt nút */
  [data-hero] { height: auto !important; min-height: 560px; }
  [data-hero] > div[style*="position: relative"] { height: auto !important; min-height: 560px; padding-top: 56px !important; padding-bottom: 56px !important; }
  [data-hero] div[style*="margin-top: 40px"] { flex-wrap: wrap; }
}

/* Google Translate (nút EN / 中文) */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }
