/* Cellderm base. Components below are the classes used by Bricks elements (BEM-ish, prefix cd-). */
body { font-family: var(--cd-font); font-weight: var(--cd-fw-medium); font-size: var(--cd-fs-body); line-height: var(--cd-lh-body); color: var(--cd-blue-900); }

.cd-eyebrow { font-size: var(--cd-fs-eyebrow); line-height: var(--cd-lh-eyebrow); font-weight: var(--cd-fw-bold); letter-spacing: var(--cd-ls-caps); text-transform: uppercase; color: var(--cd-blue-600); }
.cd-title   { margin: 0; font-size: var(--cd-fs-h2); line-height: var(--cd-lh-h2); font-weight: var(--cd-fw-h2); color: var(--cd-blue-900); } /* section heading (H2), left aligned */
.cd-lead    { font-size: var(--cd-fs-lead); line-height: var(--cd-lh-body); font-weight: var(--cd-fw-regular); }

/* Sections */
.cd-section { padding-block: var(--cd-section-y); }
.cd-section--tint { background: var(--cd-blue-50); }
.cd-section--dark { background: var(--cd-blue-900); color: var(--cd-white); }
.cd-container { width: min(100% - 2 * var(--cd-gutter), var(--cd-container)); margin-inline: auto; }

/* Buttons: Figma "Component 2" (primary) / "Component 3" (secondary) */
.cd-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--cd-sp-2); min-height: var(--cd-btn-h); padding: 0 var(--cd-sp-5); border-radius: var(--cd-radius-btn); font-size: var(--cd-fs-body); font-weight: var(--cd-fw-medium); text-decoration: none; transition: var(--cd-tr-color); }
.cd-btn.cd-btn--lg { min-height: var(--cd-btn-h-lg); padding: 0 var(--cd-sp-6); border-radius: var(--cd-radius-btn-lg); }
.cd-btn--primary   { background: var(--cd-blue-600); color: var(--cd-white); }
.cd-btn--primary:hover { background: var(--cd-blue-900); }
.cd-btn--secondary { background: var(--cd-white); color: var(--cd-blue-900); box-shadow: inset 0 0 0 var(--cd-bw) var(--cd-blue-900); }
.cd-btn--secondary:hover { background: var(--cd-blue-100); }

/* Cards: value / mission / process / factory */
.cd-card { background: var(--cd-blue-50); border: var(--cd-bw) solid var(--cd-blue-100); border-radius: var(--cd-radius-card); padding: var(--cd-sp-6); transition: var(--cd-tr-lift); }
.cd-card:hover { box-shadow: var(--cd-shadow-card); }
.cd-card--number { position: relative; } /* "01 SỨ MỆNH" */

/* Stat: "650+ / Công thức nền…" */
.cd-stat__num { font-size: var(--cd-fs-stat); line-height: var(--cd-lh-h3); font-weight: var(--cd-fw-extrabold); color: var(--cd-blue-600); }
.cd-stat__label { font-size: var(--cd-fs-body); }

/* Job meta rows (location / experience / type) */
.cd-meta { display: flex; flex-wrap: wrap; gap: var(--cd-sp-6); }
.cd-meta__label { font-size: var(--cd-fs-sm); opacity: .7; }

:focus-visible { outline: var(--cd-outline-w) solid var(--cd-blue-600); outline-offset: var(--cd-outline-offset); }

/* Thin scrollbar everywhere (ADR 0005): slim, rounded thumb, transparent track */
* { scrollbar-width: thin; scrollbar-color: var(--cd-scrollbar-thumb) transparent; }
*::-webkit-scrollbar { width: var(--cd-scrollbar-w); height: var(--cd-scrollbar-w); }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--cd-scrollbar-thumb); border-radius: var(--cd-radius-pill); }
*::-webkit-scrollbar-thumb:hover { background: var(--cd-scrollbar-thumb-hover); }

/* Typographic evenness: headings break into balanced lines, paragraphs avoid one-word last lines (widows) */
body :is(h1, h2, h3, h4) { text-wrap: balance; }
body :is(p, li) { text-wrap: pretty; }

/* ---- Button system: ONE typography for every button/CTA site-wide ----
   Fixed: size = body text, weight 500, UPPERCASE, +arrow icon. Free per variant: colour, background, border, radius, height.
   Specificity is raised on purpose (html body :is()) so older per-component font rules cannot drift. Opt out of the icon with .cd-btn--no-icon. */
:root { --cd-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body :is(.cd-btn, .cd-t-btn, .cd-t-btn-outline, .cd-st__btn, .cd-jd-hero__cta, .cd-jd-cta, .cd-jd-form button[type=submit], .cd-t-form button[type=submit], .cd-jb .cd-jb-btn, .submit-button-wrapper .bricks-button) {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--cd-sp-2);
	font-family: inherit; font-size: var(--cd-fs-body); font-weight: var(--cd-fw-medium); line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; text-align: center;
	/* Caps have no descenders, so their optical centre sits ~0.05em above the line-box centre: nudge the text down to centre it in the button. */
	padding-top: .1em;
}
/* ONE button size: every button is 48px tall with real vertical padding (12px padding + 20px line + 12px, min-height 48). The compact header CTA is the only exception. */
html body :is(.cd-btn, .cd-btn--gradient, .cd-t-btn, .cd-t-btn-outline, .cd-st__btn, .cd-jd-hero__cta, .cd-jd-cta, .cd-jd-form button[type=submit], .cd-t-form button[type=submit], .cd-jb .cd-jb-btn, .submit-button-wrapper .bricks-button):not(.cd-header__cta) {
	/* exactly 48px: the .05em caps nudge is taken from the bottom padding instead of added on top (was 49.6px, which made text land on half pixels) */
	box-sizing: border-box; min-height: var(--cd-btn-h); line-height: 20px; padding-block: calc(var(--cd-btn-py) + .05em) calc(var(--cd-btn-py) - .05em); padding-inline: var(--cd-sp-6);
}
html body :is(.cd-btn, .cd-t-btn, .cd-t-btn-outline, .cd-st__btn, .cd-jd-hero__cta, .cd-jd-cta, .cd-jd-form button[type=submit], .cd-t-form button[type=submit], .submit-button-wrapper .bricks-button, .cd-jb .cd-jb-btn:not(:has(.tp-icon))):not(.cd-btn--no-icon)::after {
	content: ""; flex: none; width: 20px; height: 20px; margin: 0; background-color: currentColor;
	/* the caps nudge above moves the whole row down; lift the arrow back by the same amount so it sits on the button's true centre */
	position: relative; top: -.05em;
	-webkit-mask: var(--cd-btn-icon) center / contain no-repeat; mask: var(--cd-btn-icon) center / contain no-repeat; transition: transform var(--cd-dur) var(--cd-ease);
}
html body :is(.cd-btn, .cd-t-btn, .cd-t-btn-outline, .cd-st__btn, .cd-jd-hero__cta, .cd-jd-cta, .cd-jd-form button[type=submit], .cd-t-form button[type=submit], .submit-button-wrapper .bricks-button, .cd-jb .cd-jb-btn:not(:has(.tp-icon))):not(.cd-btn--no-icon):hover::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { html body :is(.cd-btn, .cd-t-btn, .cd-t-btn-outline, .cd-st__btn, .cd-jd-hero__cta, .cd-jd-cta)::after { transition: none; } }

/* ---- Gradient headings: background-clip:text only paints inside the element box, so tall Vietnamese marks and descenders that overshoot a tight
   line-height were being cut. Pad the box (+0.18em top/bottom) and cancel it with a negative margin so the layout does not move. ---- */
html body :is(.cd-hero__title, .cd-hero__accent, .cd-hero__stat-num, .cd-head__title, .cd-head__tit, .cd-about__num, .cd-about__name, .cd-box__title, .cd-ahero__num, .cd-ahero__title, .cd-chero__title, .cd-ohero__title, .cd-t-jhero__title, .cd-b-hero__title, .cd-jb-hero__title) { padding-block: .18em; margin-block: -.18em; }
html body .cd-footer__name { padding-block: .18em; margin-top: -.18em; margin-bottom: calc(var(--cd-sp-4) - .18em); }
