/* Shared layout for AIDo handbook pages (Quy trình R&D, Sổ tay Văn hoá).
   These are static reading pages with no interactive state, so they skip the
   DC runtime entirely — content renders straight from source, which is both
   faster to first paint and simpler for crawlers than a React-mounted
   template. <site-header>/<site-footer> still come from site-chrome.js. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  /* clip (not hidden) — hidden would make this a scroll container and
     silently break the sticky site header. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: #0A140F;
  color: #EFEDE4;
  font-family: 'Be Vietnam Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #7FE0B8; text-decoration: none; }
a:hover { color: #F2B24C; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 5vw clamp(36px, 5vw, 56px);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,15,0.90) 0%, rgba(10,20,15,0.84) 45%, rgba(10,20,15,0.98) 100%);
}
.hero-inner {
  position: relative;
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 14px; letter-spacing: 0.2em;
  color: #F2B24C; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 48px; height: 1px; background: #7FE0B8; flex: none; }
.hero h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 62px);
  line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: rgba(239,237,228,0.76);
  max-width: 62ch;
}

/* ── Article body ─────────────────────────────────────────────────────── */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 5vw clamp(56px, 7vw, 88px); }

.principle {
  margin: clamp(28px, 4vw, 44px) 0;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
  border-left: 3px solid #F2B24C;
  border-radius: 0 16px 16px 0;
  background: rgba(242,178,76,0.09);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.4;
  color: #F7E4C3;
}

.stage { margin-top: clamp(40px, 5vw, 64px); }
.stage-no {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 0.2em;
  color: #7FE0B8; text-transform: uppercase;
}
.stage h2 {
  margin: 12px 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.14; letter-spacing: -0.02em;
}
.stage h3 {
  margin: clamp(24px, 3vw, 32px) 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.25;
}
.stage p, .stage li {
  font-size: 17px; line-height: 1.8;
  color: rgba(239,237,228,0.72);
}
.stage p { margin: 14px 0 0; }
.stage strong { color: #EFEDE4; font-weight: 600; }

/* Numbered / bulleted item stacks */
.items { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.items > li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline;
}
.items > li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 14px; color: #7FE0B8;
  min-width: 26px;
}
.items { counter-reset: item; }
.items.dash > li { grid-template-columns: auto 1fr; }
.items.dash > li::before { content: "—"; color: #7A8C82; }

/* Card grid for rules */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 22px;
}
.card {
  border: 1px solid rgba(239,237,228,0.14);
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; }
.card p { margin: 0; }

/* Red-zone styling for the data-discipline section */
.danger { border-color: rgba(226,73,58,0.42); background: rgba(226,73,58,0.08); }
.danger .stage-no, .danger .tag { color: #FF9A8C; }
.tag {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: #7FE0B8;
}
.tier {
  border: 1px solid rgba(239,237,228,0.14);
  border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.tier.t2 { border-color: rgba(226,73,58,0.42); background: rgba(226,73,58,0.08); }

/* Version / meta strip */
.meta {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 22px;
  border-top: 1px solid rgba(239,237,228,0.14);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 15px; color: rgba(239,237,228,0.5);
}

/* Next-step CTA */
.next {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.btn {
  font-weight: 700; font-size: 16px; padding: 16px 28px; border-radius: 100px;
  background: #F2B24C; color: #231605;
}
.btn:hover { background: #F7C978; color: #231605; }
.btn.ghost {
  background: transparent; color: #EFEDE4; font-weight: 600;
  border: 1px solid rgba(239,237,228,0.28);
}
.btn.ghost:hover { color: #7FE0B8; border-color: rgba(127,224,184,0.5); }

@media print {
  body { background: #fff; color: #111; }
  .hero-bg, .hero-veil { display: none; }
  .hero, .wrap { padding-left: 0; padding-right: 0; }
  .lead, .stage p, .stage li { color: #333; }
  .stage h2, .stage h3, .hero h1 { color: #000; }
}
