/* ==========================================================================
   Recruit in Vietnam — design tokens and base styles
   Brand: navy + Capstone red + gold accent, serif headings (TemplateV2 mockup)
   ========================================================================== */
:root {
  --navy-950: #071a36;
  --navy-900: #0a2147;
  --navy-800: #0e2a52;
  --navy-700: #153a6d;
  --blue: #134788;
  --blue-600: #1f5fb5;
  --blue-100: #e8f1fc;
  --red: #c8161e;
  --red-700: #a51219;
  --red-100: #fdecec;
  --gold: #d4921f;
  --gold-300: #f0c063;
  --ink: #0e2a52;
  --text: #36445a;
  --muted: #6b7789;
  --line: #e2e8f0;
  --line-strong: #c9d3df;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-warm: #faf7f2;
  --ok: #1f8a54;
  --ok-100: #e6f5ec;
  --warn: #b7791f;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 82, .06), 0 1px 3px rgba(14, 42, 82, .08);
  --shadow: 0 6px 18px rgba(14, 42, 82, .08), 0 2px 6px rgba(14, 42, 82, .06);
  --shadow-lg: 0 18px 40px rgba(14, 42, 82, .16);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; color: #fff; }
main:focus { outline: none; }

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section.soft, .section-tight.soft { background: var(--bg-soft); }

.ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- eyebrow / section head ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem;
}
.eyebrow-light { color: var(--gold-300); }
.eyebrow-gold { color: var(--gold-300); }

.section-head { margin-bottom: 36px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.section-head .section-title { margin: 0; }
.section-head-side { display: flex; flex-direction: column; gap: 10px; }
.section-head.split .section-head-side { align-items: flex-start; }
.section-head.split .link-arrow { align-self: flex-end; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-title.sm { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.section-lead { color: var(--text); font-size: 1.02rem; margin: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow:hover { color: var(--red); }
.link-arrow.sm { font-size: .85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-red, .btn-cta { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(200, 22, 30, .22); }
.btn-red:hover, .btn-cta:hover { background: var(--red-700); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); }
.btn-disabled, .btn[disabled] { background: #eef1f5; color: #8a96a8; border-color: #e1e6ed; cursor: not-allowed; box-shadow: none; }
.btn-pill { border-radius: 999px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

.round-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.round-btn:hover { border-color: var(--navy-800); }

.icon-btn { background: none; border: 0; color: var(--ink); width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }

/* ---------- tags / chips ---------- */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy-800); color: #fff;
}
.tag-red { background: var(--red); }
.tag-teal { background: #0f7c7a; }
.tag-violet { background: #5b4cc4; }
.tag-slate { background: #46596f; }
.tag-green { background: #2a7f52; }
.tag-gold { background: var(--gold); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font-weight: 600; font-size: .88rem; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--navy-800); }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- placeholders / loading ---------- */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px;
  background: linear-gradient(135deg, #1b4a86, #0e2a52 60%, #a51219);
  color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 600; text-align: center; padding: 12px;
}
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; justify-content: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.notice b { color: var(--ink); display: block; }
.notice p { margin: 4px 0 10px; }
.notice-error { background: var(--red-100); border-color: #f3c7c9; color: var(--red-700); }
.notice-info { background: var(--blue-100); border-color: #c9dcf5; color: var(--navy-800); }

#blazor-error-ui {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: #fff6d6; color: #5a4300; padding: 10px 20px; box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
}
#blazor-error-ui .dismiss { float: right; background: none; border: 0; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .section-tight { padding: 44px 0; }
  .section-head.split { grid-template-columns: 1fr; gap: 14px; }
  .section-head.split .link-arrow { align-self: flex-start; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .section { padding: 48px 0; }
  .btn-lg { padding: 13px 20px; font-size: .95rem; white-space: normal; text-align: center; }
}
