/* Clean-Room Design System for Health & Editorial Landing Pages (Original Vibrant Blue Theme) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,400..700&display=swap");

:root {
  --theme-navy: #0a3f9d;
  --theme-navy-hover: #08337f;
  --theme-navy-deep: #0a1b3d;
  --theme-topbar: #0b2a61;
  --theme-blue: #6492c4;
  --theme-lightblue: #8eb9e3;
  --theme-ice: #d6e8f7;
  --theme-pale: #eef5fc;
  --theme-soft: #f4f9fd;
  --theme-ink: #1b2733;
  --theme-ink-strong: #0f172a;
  --theme-muted: #64748b;
  --theme-line: #e3eaf2;
  --theme-border: color-mix(in srgb, currentColor 14%, transparent);
  --theme-trust-bg: #f5faff;
  --theme-trust-border: #d7e7f6;
  --theme-trust-text: #173b69;
  --theme-warn: #c0392b;
  --theme-warn-bg: #fff6ee;
  --theme-line-green: #06c755;
  --theme-font: "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --theme-stretch-body: 92%;
  --theme-stretch-head: 82%;
  --theme-stretch-cond: 75%;

  /* Compatibility Aliases for components */
  --drb-emerald: var(--theme-navy);
  --drb-emerald-hover: var(--theme-navy-hover);
  --drb-emerald-deep: var(--theme-navy-deep);
  --drb-topbar: var(--theme-topbar);
  --drb-green: var(--theme-navy);
  --drb-teal: var(--theme-blue);
  --drb-gold: #c69234;
  --drb-ice: var(--theme-ice);
  --drb-pale: var(--theme-pale);
  --drb-soft: var(--theme-soft);
  --drb-ink: var(--theme-ink);
  --drb-ink-strong: var(--theme-ink-strong);
  --drb-muted: var(--theme-muted);
  --drb-line: var(--theme-line);
  --drb-border: var(--theme-border);
  --drb-warn: var(--theme-warn);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.dj {
  margin: 0;
  font-family: var(--theme-font);
  font-stretch: var(--theme-stretch-body);
  font-size: 19px;
  line-height: 1.75;
  color: var(--theme-ink);
  background: linear-gradient(180deg, var(--theme-soft) 0, #ffffff 520px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dj > main { flex: 1 0 auto; width: 100%; }
.dj a { color: var(--theme-navy); text-decoration: none; }
.dj a:hover { text-decoration: underline; }
.dj img { max-width: 100%; height: auto; }

/* Top strip & Header */
.dj-topbar { background: var(--theme-topbar); color: #dfe8f6; text-align: center; font-size: 14px; line-height: 1; padding: 11px 16px; letter-spacing: .02em; }
.dj-header { background: #fff; border-bottom: 1px solid var(--theme-line); position: sticky; top: 0; z-index: 50; }
.dj-header-in { max-width: 840px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dj-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--theme-navy); }
.dj-brand b { font-family: var(--theme-font); font-stretch: var(--theme-stretch-head); font-size: 21px; letter-spacing: .06em; line-height: 1.1; color: var(--theme-navy); }
.dj-brand small { display: block; font-size: 13px; color: var(--theme-muted); letter-spacing: 0; font-weight: 400; line-height: 1.2; }

.dj-wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 56px; }

/* Eyebrow: short rule + spaced label */
.dj-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--theme-font); font-stretch: var(--theme-stretch-cond); font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--theme-blue); line-height: 1.3; }
.dj-eyebrow::before { content: ""; flex: 0 0 32px; height: 2px; background: var(--theme-blue); }

.dj h1, .dj h2, .dj h3 { font-family: var(--theme-font); font-stretch: var(--theme-stretch-head); color: var(--theme-navy); font-weight: 700; text-wrap: balance; }
.dj h1 { font-size: 32px; line-height: 1.35; margin: 0 0 16px; }
.dj h2 { font-size: 25px; line-height: 1.4; margin: 44px 0 12px; }
.dj h3 { font-size: 21px; line-height: 1.45; margin: 28px 0 8px; }
.dj p { margin: 0 0 18px; }
.dj-lead { font-size: 21px; color: var(--theme-ink-strong); line-height: 1.6; }
.dj strong { color: var(--theme-ink-strong); }
.dj ul, .dj ol { padding-left: 1.3em; margin: 0 0 20px; }
.dj li { margin: 0 0 8px; }
.dj li::marker { color: var(--theme-navy); font-weight: 700; }
.dj-nowrap { white-space: nowrap; }

/* Byline */
.dj-byline { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 15px; color: var(--theme-muted); flex-wrap: wrap; }
.dj-byline::before { content: ""; width: 32px; height: 2px; background: var(--theme-navy); }
.dj-byline b { color: var(--theme-navy); font-weight: 700; }

/* Boxes */
.dj-box { border-radius: 18px; padding: 20px 22px; margin: 24px 0; }
.dj-box > :last-child { margin-bottom: 0; }
.dj-box-title { display: block; font-family: var(--theme-font); font-stretch: var(--theme-stretch-head); font-weight: 700; color: var(--theme-navy); font-size: 19px; margin: 0 0 8px; }
.dj-summary { background: var(--theme-pale); border: 1px solid var(--theme-ice); }

/* Buttons */
.dj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 10px; background: var(--theme-navy); color: #fff !important; font-family: var(--theme-font); font-stretch: var(--theme-stretch-cond); font-weight: 700; font-size: 19px; text-decoration: none !important; border: 0; cursor: pointer; transition: background .2s, transform .1s; box-shadow: 0 6px 18px rgba(10, 63, 157, 0.18); }
.dj-btn:hover { background: var(--theme-navy-hover); transform: translateY(-1px); }
.dj-btn-line { background: var(--theme-line-green); }
.dj-btn-line:hover { background: #05a849; }

/* Call To Action Banner */
.dj-cta { margin: 44px 0 16px; border-radius: 24px; padding: 32px 24px; color: #fff; text-align: center; background: linear-gradient(160deg, var(--theme-navy) 0, var(--theme-navy-deep) 100%); box-shadow: 0 18px 40px rgba(10, 63, 157, .22); }
.dj-cta h2 { color: #fff; margin: 0 0 10px; font-size: 26px; }
.dj-cta p { color: #c9d6ec; margin: 0 0 22px; font-size: 18px; }
.dj-cta .dj-btn-line { background: var(--theme-line-green); color: #fff !important; box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35); }
.dj-cta-actions { display: flex; flex-direction: column; gap: 12px; }

.dj-refs { font-size: 14px; color: var(--theme-muted); line-height: 1.6; margin-top: 40px; }
.dj-refs ol { padding-left: 1.2em; }
.dj-disclaimer { font-size: 13px; color: var(--theme-muted); line-height: 1.6; background: var(--theme-trust-bg); border: 1px solid var(--theme-trust-border); border-radius: 12px; padding: 14px 16px; margin: 32px 0 0; }

/* Footer */
.dj-footer { background: linear-gradient(180deg, var(--theme-navy) 0, var(--theme-navy-deep) 100%); color: #c9d6ec; text-align: center; padding: 40px 20px 32px; font-size: 15px; line-height: 1.7; }
.dj-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.dj-footer nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 10px 0 14px; }

@media (min-width: 640px) {
  body.dj { font-size: 20px; }
  .dj h1 { font-size: 40px; }
  .dj h2 { font-size: 28px; }
  .dj-cta { padding: 40px 48px; }
  .dj-cta-actions { flex-direction: row; justify-content: center; }
}
