/* Đậu Bằng Lái — trang hỗ trợ & pháp lý. Cùng bảng màu với src/theme/index.ts. */
:root {
  --ink: #121721;
  --ink3: #2a3342;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e6e2d8;
  --kerb: #ddd7c9;
  --sub: #5f6672;
  --sprout: #1fc774;
  --sprout-ink: #0b7f47;
  --sprout-soft: #e3f7ec;
  --lane: #f5b82e;
  --lane-soft: #fdf3da;
  --lane-ink: #8a5f00;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--sprout-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-head { background: var(--ink); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #c3cad6; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Kerb: dải vạch kẻ đường dưới header */
.kerb { height: 6px; background: repeating-linear-gradient(90deg, var(--lane) 0 28px, var(--ink) 28px 46px); }

main { padding: 36px 0 56px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 20px; line-height: 1.35; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.updated { color: var(--sub); font-size: 14px; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--ink3); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 0 var(--kerb);
  padding: 18px 20px;
  margin: 16px 0;
}
.card > :last-child { margin-bottom: 0; }
.card.ok { background: var(--sprout-soft); border-color: #bdebd2; box-shadow: none; }
.card.note { background: var(--lane-soft); border-color: #f2dfa8; box-shadow: none; }
.card.note strong { color: var(--lane-ink); }

/* Trang chủ */
.hero { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.hero img { width: 84px; height: 84px; border-radius: 22px; flex: none; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }
.features p { color: var(--sub); font-size: 15px; }
.btn {
  display: inline-block;
  background: var(--sprout);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: 0 3px 0 #0e9a57;
}
.btn:hover { color: var(--ink); filter: brightness(1.04); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details > :last-child { margin-bottom: 0; }

/* Footer */
.site-foot { background: var(--ink); color: #8c97ab; font-size: 14px; padding: 32px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-foot h4 { color: #fff; font-size: 14px; margin: 0 0 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: #c3cad6; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot p { margin: 0 0 8px; }
.copyright { border-top: 1px solid #343e50; margin-top: 24px; padding-top: 16px; }

@media (max-width: 600px) {
  h1 { font-size: 25px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .hero img { width: 64px; height: 64px; border-radius: 18px; }
}
