/* dsc-theme.css — giao diện CLB Cờ vua Dương Sinh (chỉ giao diện sáng, không màu cam).
   Token chép từ @ds/brand/theme.css. */

:root {
  --ds-primary: #2b3990;
  --ds-primary-hover: #22307a;
  --ds-blue-light: #2275b4;
  --ds-teal: #3dbb95;
  --ds-teal-deep: #2a9c7c;
  --ds-teal-ink: #1c7059; /* chữ teal đạt tương phản trên nền sáng */
  --ds-bg: #f8f9fc;
  --ds-white: #ffffff;
  --ds-text: #1a1a2e;
  --ds-text-secondary: #4a4f63;
  --ds-navy-deep: #1e2a6b;
  --ds-navy-ink: #151d49;
  --ds-navy-soft: #eef0fa;
  --ds-teal-soft: #e7f6f0;
  --ds-blue-soft: #e9f2f9;
  --ds-line: #e6e8f0;
  --ds-critical: #b83a33;
  --ds-critical-bg: #fdeceb;
  --ds-font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --ds-font-cond: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 22px;
  --ds-radius-pill: 999px;
  --ds-shadow-sm: 0 2px 8px rgba(21, 29, 73, 0.07);
  --ds-shadow-md: 0 8px 24px rgba(21, 29, 73, 0.1);
  --ds-shadow-navy: 0 12px 30px rgba(43, 57, 144, 0.28);
  --ds-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Nền ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ds-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-text);
  background: var(--ds-bg);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ds-primary); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 900; }
h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--ds-blue-light); outline-offset: 2px; }
[hidden] { display: none !important; }

.ds-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ds-primary); color: #fff; padding: 10px 16px; border-radius: var(--ds-radius-sm);
}
.ds-skip:focus { top: 8px; }

.ds-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.ds-section { padding: 52px 0; position: relative; }
.ds-section--white { background: var(--ds-white); }
.ds-section--navy { background: var(--ds-navy-deep); color: #fff; }
.ds-section--navy .ds-lead { color: #dfe3f5; }
.ds-section-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.ds-overline {
  display: block; margin-bottom: 8px;
  font-family: var(--ds-font-cond); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ds-primary);
}
.ds-section--navy .ds-overline { color: #b9c2ee; }
.ds-lead { color: var(--ds-text-secondary); font-size: 17px; }
.ds-muted { color: var(--ds-text-secondary); }

/* ---------- Nút ---------- */
.ds-btn, .ds-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border: 0; border-radius: var(--ds-radius-pill);
  font: 700 15px/1.2 var(--ds-font-sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background .18s, transform .18s var(--ds-ease), box-shadow .18s;
}
.ds-btn { background: var(--ds-primary); color: #fff; }
.ds-btn:hover { background: var(--ds-primary-hover); transform: translateY(-2px); box-shadow: var(--ds-shadow-navy); }
.ds-btn-outline { background: transparent; color: var(--ds-primary); box-shadow: inset 0 0 0 1.6px var(--ds-primary); }
.ds-btn-outline:hover { background: var(--ds-navy-soft); transform: translateY(-2px); }
.ds-btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.ds-btn--light { background: #fff; color: var(--ds-primary); }
.ds-btn--light:hover { background: var(--ds-navy-soft); }
.ds-btn-outline--light { color: #fff; box-shadow: inset 0 0 0 1.6px #fff; }
.ds-btn-outline--light:hover { background: rgba(255, 255, 255, .12); }
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-actions--center { justify-content: center; }

/* ---------- Lưới, thẻ, chip ---------- */
.ds-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .ds-grid--2, .ds-grid--3, .ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 940px) {
  .ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ds-card {
  background: var(--ds-white); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg);
  padding: 22px; box-shadow: var(--ds-shadow-sm);
}
.ds-card > :last-child { margin-bottom: 0; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.ds-chip {
  display: inline-block; padding: 5px 12px; border-radius: var(--ds-radius-pill);
  background: var(--ds-navy-soft); color: var(--ds-primary); font-size: 13px; font-weight: 700;
}
.ds-chip--teal { background: var(--ds-teal-soft); color: var(--ds-teal-ink); }
.ds-chip--alert { background: var(--ds-critical-bg); color: var(--ds-critical); }

/* ---------- Hero ---------- */
.ds-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-navy-ink));
  padding: 56px 0;
}
.ds-hero::after {
  content: ""; position: absolute; right: -20px; top: 0; bottom: 0; width: 200px;
  background: url("/api/v1/media/dsc-watermark.svg") right center / contain no-repeat;
  filter: brightness(0) invert(1); opacity: .1; pointer-events: none;
}
.ds-hero > .ds-container { position: relative; z-index: 1; }
.ds-hero h1 em { font-style: normal; color: #8fe0c6; }
.ds-hero .ds-overline { color: #b9c2ee; }
.ds-hero p { color: #dfe3f5; font-size: 17px; max-width: 620px; }

/* ---------- Lộ trình 6 cấp ---------- */
.ds-roadmap { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: ds-step; }
@media (min-width: 640px) { .ds-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .ds-roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-roadmap > li {
  counter-increment: ds-step; background: #fff; border: 1px solid var(--ds-line);
  border-top: 4px solid var(--ds-primary); border-radius: var(--ds-radius-md); padding: 18px; color: var(--ds-text);
}
.ds-roadmap h3::before { content: counter(ds-step) ". "; color: var(--ds-blue-light); }
.ds-roadmap p { margin: 0; color: var(--ds-text-secondary); font-size: 15px; }

/* ---------- Bảng học phí ---------- */
.ds-pricing { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 860px) { .ds-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-plan { display: flex; flex-direction: column; position: relative; }
.ds-plan--best { border: 2px solid var(--ds-primary); box-shadow: var(--ds-shadow-md); }
.ds-plan__total { font-family: var(--ds-font-cond); font-size: 36px; font-weight: 700; color: var(--ds-primary); line-height: 1.1; margin: 4px 0 2px; }
.ds-plan dl { margin: 14px 0; }
.ds-plan dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--ds-line); font-size: 15px; }
.ds-plan dt { color: var(--ds-text-secondary); }
.ds-plan dd { margin: 0; font-weight: 700; text-align: right; }
.ds-plan ul { margin: 0 0 18px; padding-left: 20px; font-size: 15px; }
.ds-plan .ds-btn, .ds-plan .ds-btn-outline { margin-top: auto; }
.ds-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ds-text-secondary); }

/* ---------- Cơ sở, HLV, sự kiện ---------- */
.ds-branch address { font-style: normal; color: var(--ds-text-secondary); margin-bottom: 14px; }
.ds-branch--soon { border-style: dashed; }
.ds-coach img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ds-radius-md); margin-bottom: 12px; }
.ds-event__date { font-family: var(--ds-font-cond); font-weight: 700; color: var(--ds-blue-light); text-transform: uppercase; }

/* ---------- Hỏi đáp ---------- */
.ds-faq { max-width: 780px; margin: 0 auto; }
.ds-faq details { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); margin-bottom: 10px; }
.ds-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; }
.ds-faq details > div { padding: 0 18px 15px; color: var(--ds-text-secondary); }

/* ---------- Form ---------- */
.ds-form { display: grid; gap: 14px; }
@media (min-width: 640px) { .ds-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-form__full { grid-column: 1 / -1; } }
.ds-field label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 14px; }
.ds-field input, .ds-field select, .ds-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 400 16px var(--ds-font-sans); color: var(--ds-text);
  background: #fff; border: 1px solid #aeb3c6; border-radius: var(--ds-radius-sm);
}
.ds-field textarea { min-height: 96px; resize: vertical; }
.ds-field [aria-invalid="true"] { border-color: var(--ds-critical); }
.ds-field__error { color: var(--ds-critical); font-size: 13px; margin: 4px 0 0; }
.ds-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ds-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ds-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.ds-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--ds-line); }
.ds-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.ds-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ds-primary); flex: none; }
.ds-brand img { width: 38px; height: auto; }
.ds-brand__name { display: block; font: 900 18px/1.1 var(--ds-font-cond); text-transform: uppercase; white-space: nowrap; }
.ds-brand__slogan { display: block; font: 400 12px/1.3 var(--ds-font-sans); color: var(--ds-text-secondary); white-space: nowrap; }
.ds-header__actions { display: flex; align-items: center; gap: 10px; }
.ds-header__portal { display: none; }
.ds-burger {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-sm); color: var(--ds-primary); cursor: pointer;
}
.ds-nav { display: none; }
.ds-nav ul { list-style: none; margin: 0; padding: 0; }
.ds-nav a { display: block; text-decoration: none; color: var(--ds-text); font-weight: 500; }
.ds-nav a[aria-current="page"] { color: var(--ds-primary); font-weight: 700; }
.ds-nav a:hover { color: var(--ds-primary); }
.ds-nav.is-open { display: block; border-top: 1px solid var(--ds-line); max-height: calc(100vh - 69px); overflow-y: auto; }
.ds-nav.is-open ul { padding: 6px 0; }
.ds-nav.is-open a { padding: 11px 0; border-bottom: 1px solid var(--ds-line); }
.ds-nav__portal { margin: 10px 0 18px; }
.ds-nav__portal .ds-btn-outline { width: 100%; }

/* Không có JS: menu luôn hiện, ẩn nút ba gạch */
html:not(.ds-js) .ds-burger { display: none; }
html:not(.ds-js) .ds-nav { display: block; }
html:not(.ds-js) .ds-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; }

.ds-header__actions .ds-btn { white-space: nowrap; gap: 4px; }

@media (max-width: 520px) {
  .ds-header__full { display: none; }
  .ds-header__bar { gap: 8px; }
  .ds-header__actions { gap: 8px; }
}
@media (max-width: 400px) {
  .ds-brand { gap: 8px; }
  .ds-brand img { width: 32px; }
  .ds-brand__slogan { display: none; }
  .ds-brand__name { font-size: 15px; }
  .ds-header__actions .ds-btn { padding: 9px 12px; }
}
@media (max-width: 345px) {
  .ds-brand { flex: 0 1 auto; min-width: 0; }
  .ds-brand__name { white-space: normal; font-size: 13px; }
}
@media (min-width: 1100px) {
  .ds-burger { display: none; }
  .ds-header__portal { display: inline-flex; }
  .ds-nav, .ds-nav.is-open { display: block; border-top: 1px solid var(--ds-line); max-height: none; overflow: visible; }
  .ds-nav ul, .ds-nav.is-open ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 0; }
  .ds-nav a, .ds-nav.is-open a { padding: 10px 0; border-bottom: 2px solid transparent; font-size: 15px; }
  .ds-nav a[aria-current="page"] { border-bottom-color: var(--ds-primary); }
  .ds-nav__portal { display: none; }
}

/* ---------- CTA, footer, nút nổi ---------- */
.ds-cta { background: linear-gradient(135deg, var(--ds-primary), var(--ds-navy-deep)); color: #fff; text-align: center; padding: 48px 0; }
.ds-cta p { color: #dfe3f5; max-width: 620px; margin-left: auto; margin-right: auto; }

.ds-footer { background: var(--ds-navy-ink); color: #c9cfea; padding: 48px 0 96px; font-size: 15px; }
.ds-footer a { color: #fff; text-decoration: none; }
.ds-footer a:hover { text-decoration: underline; }
.ds-footer h2 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--ds-font-cond); }
.ds-footer ul { list-style: none; margin: 0 0 24px; padding: 0; }
.ds-footer li { padding: 4px 0; }
.ds-footer__cols { display: grid; gap: 12px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ds-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ds-footer__cols { grid-template-columns: 1.3fr .8fr 1.3fr 1fr 1fr; } }
.ds-footer__logo { width: 120px; margin-bottom: 14px; }
.ds-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 12px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }

.ds-float { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.ds-float a {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ds-primary); color: #fff; text-decoration: none; font: 700 13px var(--ds-font-sans);
  box-shadow: var(--ds-shadow-navy); border: 2px solid #fff;
}
.ds-float a.ds-float__zalo { background: var(--ds-blue-light); }

/* ---------- Trang nội dung ---------- */
.ds-hero--page { padding: 40px 0; }
.ds-hero--page h1 { font-size: clamp(28px, 5vw, 40px); }
.ds-hero--page p:last-child { margin-bottom: 0; }
.ds-prose { max-width: 780px; margin: 0 auto; }
.ds-prose h2 { margin-top: 28px; font-size: 22px; }
.ds-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .ds-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ds-stats li { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); padding: 16px; text-align: center; font-size: 14px; color: var(--ds-text-secondary); }
.ds-stats strong { display: block; font: 700 28px/1.2 var(--ds-font-cond); color: var(--ds-primary); }
.ds-timeline { max-width: 780px; margin: 0 auto; padding: 0 0 0 22px; list-style: none; border-left: 3px solid var(--ds-navy-soft); }
.ds-timeline li { position: relative; padding-bottom: 20px; }
.ds-timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ds-primary); }
.ds-timeline strong { display: block; font: 700 18px var(--ds-font-cond); color: var(--ds-primary); }
.ds-map { width: 100%; height: 240px; border: 0; border-radius: var(--ds-radius-md); margin-bottom: 14px; background: var(--ds-navy-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ds-btn:hover, .ds-btn-outline:hover { transform: none; }
}
