/* JetCharterCost: navy đêm + vàng champagne + nền ngà, Playfair Display + Inter. Mọi màu là biến, có sáng/tối.
   Xem design-system/jet-charter/MASTER.md (mục CHỐT CUỐI). Tương phản đã kiểm tra ≥4,5:1. */
:root {
  --bg: #f8f6f1; --surface: #ffffff; --sunk: #efebe2; --fg: #16202e; --muted: #5a6472; --line: #e1dbcf;
  --navy: #0f1b2d; --on-navy: #e8e3d8; --navy-muted: #b7c0cc;
  --gold: #c9a45c; --on-gold: #0f1b2d; --link: #8a6516; --accent-soft: #f4ecdc;
  --warn-soft: #fbf0dc; --radius: 12px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1520; --surface: #131e2c; --sunk: #182536; --fg: #e8e3d8; --muted: #a8b0bb; --line: #243347; --navy: #08101a; --link: #d9bf86; --accent-soft: #1d2a3b; --warn-soft: #2e230f; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0d1520; --surface: #131e2c; --sunk: #182536; --fg: #e8e3d8; --muted: #a8b0bb; --line: #243347; --navy: #08101a; --link: #d9bf86; --accent-soft: #1d2a3b; --warn-soft: #2e230f; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16.5px/1.7 var(--sans); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
code { font-size: 0.88em; background: var(--sunk); padding: 1px 5px; border-radius: 5px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--fg); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.8vw, 50px); margin: 8px 0 14px; }
h2 { font-size: clamp(25px, 3.2vw, 32px); margin: 48px 0 12px; }
h3 { font-size: 21px; margin: 28px 0 8px; }
h2[id], h3[id] { scroll-margin-top: 84px; }

/* đầu trang: dải navy */
.hd { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(201,164,92,.25); }
.hd-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 21px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .l1 { fill: none; stroke: #c9a45c; stroke-width: 1.5; } .brand .l2 { fill: #c9a45c; }
.hd nav { display: flex; align-items: center; gap: 2px; }
.hd nav a { color: var(--navy-muted); text-decoration: none; font-weight: 500; font-size: 14px; padding: 12px 10px; border-radius: 8px; white-space: nowrap; }
.hd nav a:hover, .hd nav a[aria-current] { color: #fff; background: rgba(255,255,255,.07); }
.theme { width: 44px; height: 44px; border: 0; background: none; color: var(--navy-muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.theme:hover { background: rgba(255,255,255,.07); color: #fff; }
.theme svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 680px) { .hd nav a:not(:first-child) { display: none; } }
@media (max-width: 420px) { .hd nav a { display: none; } .brand { font-size: 19px; } }

/* hero trang chủ */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { color: #fff; max-width: 780px; font-size: clamp(36px, 5.6vw, 58px); }
.hero .lead { color: var(--navy-muted); }
.hero .route { position: absolute; right: -40px; top: 10px; width: 520px; max-width: 70%; opacity: .5; pointer-events: none; }
.hero .route path { fill: none; stroke: #c9a45c; stroke-width: 1.2; stroke-dasharray: 4 7; }
.hero .route circle { fill: #c9a45c; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600; color: var(--gold); margin: 0; }
.page-head .kicker, .prose .kicker { color: var(--link); }
.lead { font-size: 18.5px; color: var(--muted); max-width: 680px; margin: 0 0 26px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--navy-muted); }
.trust li::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }

/* bảng giá nhanh trên trang chủ */
.snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: -28px 0 8px; position: relative; }
.snap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 24px rgba(15,27,45,.08); }
.snap span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.snap strong { display: block; font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; margin: 6px 0 2px; }
.snap em { font-style: normal; font-size: 13px; color: var(--muted); }
.section { padding: 8px 0 24px; }

/* nút */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; cursor: pointer; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn.primary:hover { transform: translateY(-1px); }
.hero .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* thẻ bài */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--fg); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card strong { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.card span:last-child { color: var(--muted); font-size: 15px; }
.tag { align-self: flex-start; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--link); }

/* bài viết */
.crumb { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumb a { color: var(--muted); }
.prose { max-width: 760px; padding-bottom: 32px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.disclosure { background: var(--sunk); border-left: 3px solid var(--gold); padding: 12px 16px; font-size: 14px; border-radius: 0 8px 8px 0; }
.disclaimer, .small { color: var(--muted); font-size: 14px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 22px 0 8px; background: var(--surface); }
.toc summary { font-weight: 600; cursor: pointer; }
.toc ol { margin: 10px 0 0; font-size: 15px; }
.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.callout.warn { background: var(--warn-soft); }
.tbl { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--on-navy); font-weight: 600; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sunk) 45%, transparent); }
.prose .tbl table { min-width: 560px; }
.sources { font-size: 14px; }
.author { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: 15px; color: var(--muted); }
.author strong { color: var(--fg); }
.related { padding: 8px 0 40px; }
.page-head { padding: 24px 0 8px; }

/* khung lấy báo giá (affiliate) */
.cta-box { background: var(--navy); color: var(--on-navy); border-radius: 14px; padding: 26px 26px 22px; margin: 30px 0; display: grid; gap: 14px; border: 1px solid rgba(201,164,92,.35); }
.cta-box strong { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; color: #fff; }
.cta-box p { margin: 6px 0 0; color: var(--navy-muted); max-width: 64ch; }
.cta-box .note { font-size: 12.5px; color: var(--navy-muted); flex-basis: 100%; }

/* chân trang */
.ft { background: var(--navy); color: var(--navy-muted); margin-top: 48px; padding: 36px 0 48px; font-size: 14px; }
.ft-in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ft strong { font-family: var(--serif); font-size: 20px; color: #fff; }
.ft a { color: var(--on-navy); }
@media (max-width: 760px) { .ft-in { grid-template-columns: 1fr; } .hero .wrap { padding-top: 44px; } .hero .route { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* empty legs: bảng chuyến bay thật (lib/empty-legs.js) */
.el-box { margin: 22px 0; }
.el-box.small { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; }
.el-title { display: block; font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.el-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.el-tabs button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 14px var(--sans); cursor: pointer; }
.el-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
table.el td span { display: block; color: var(--muted); font-size: 12.5px; }
table.el td { vertical-align: middle; }
.el-price { font-weight: 700; white-space: nowrap; }
.el-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.el-box .note { margin: 8px 0 12px; }
.el-empty { color: var(--muted); }
.prose .el-box .tbl table { min-width: 620px; }

/* banner chính thức của chương trình affiliate (trong khung lấy báo giá) */
.cta-banner { display: block; border-radius: 10px; overflow: hidden; line-height: 0; }
.cta-banner img { width: 100%; height: auto; display: block; }

/* máy tính ước giá (lib/calculator.js, dòng [[calculator]] trong bài) */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 22px 0; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.calc label[hidden] { display: none; }
.calc input, .calc select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: 16px var(--sans); }
.calc-pre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 15px; color: var(--muted); }
.calc-pre button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 14px var(--sans); cursor: pointer; }
.calc-pre button:hover { border-color: var(--gold); }
.calc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 16px 0 4px; padding: 14px 16px; background: var(--accent-soft); border-radius: 10px; }
.calc-total span { font-weight: 600; }
.calc-total strong { font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); }
.calc-total em { font-style: normal; color: var(--muted); }
.prose .calc .tbl table { min-width: 0; }

/* ===== Nâng cấp giao diện 14/10/2026 (chuẩn "web 10.000 USD") ===== */
/* hero 2 cột: chữ bên trái, hình đường bay bên phải; nền có quầng sáng vàng nhẹ */
.hero { background: radial-gradient(ellipse 70% 90% at 85% 10%, rgba(201,164,92,.16), transparent 60%), radial-gradient(ellipse 60% 70% at 0% 100%, rgba(84,120,170,.18), transparent 60%), var(--navy); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,164,92,.5), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 32px; }
.hero-copy { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; max-width: 460px; margin-left: auto; }
.hero-art .grid * { fill: none; stroke: rgba(232,227,216,.12); stroke-width: 1; }
.hero-art .arcs path { fill: none; stroke: #c9a45c; stroke-width: 1.4; stroke-dasharray: 3 7; stroke-linecap: round; }
.hero-art .dots circle { fill: #0f1b2d; stroke: #c9a45c; stroke-width: 2; }
.hero-art .plane path { fill: #e8e3d8; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .arcs path { animation: dash 18s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -200; } }
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.hero h1 { letter-spacing: -0.02em; }
.hero .btn.primary { box-shadow: 0 10px 30px -10px rgba(201,164,92,.7); }

/* 4 ô giá: viền vàng trên, nổi khi rê chuột */
.snap { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.snap::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), rgba(201,164,92,.25)); }
.snap:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,27,45,.14); }
.snap strong { font-size: 21px; }

/* bố cục bài: nội dung + cột phải bám theo (mục lục, thẻ báo giá) trên màn hình rộng */
.doc { display: block; }
.rail { display: none; }
@media (min-width: 1180px) {
  .doc { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 56px; justify-content: space-between; }
  .rail { display: block; }
  .rail-toc { margin-top: 28px; }
  .doc .toc { display: none; }
  .rail { position: relative; }
  .rail-inner { position: sticky; top: 92px; }
}
.rail-h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.rail-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.rail-toc li { margin: 0; }
.rail-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.45; }
.rail-toc a:hover { color: var(--fg); }
.rail-toc a[aria-current] { color: var(--fg); border-left-color: var(--gold); font-weight: 600; }
.rail-cta { margin-top: 28px; background: var(--navy); color: var(--navy-muted); border: 1px solid rgba(201,164,92,.35); border-radius: 14px; padding: 18px; font-size: 14px; }
.rail-cta .rail-h { color: var(--gold); }
.rail-cta p { margin: 0 0 14px; }
.rail-cta .btn { width: 100%; justify-content: center; }
.rail-cta .note { display: block; margin-top: 8px; font-size: 12px; }

/* tiêu đề mục trong bài: gạch vàng nhỏ phía trên */
.prose h2 { position: relative; padding-top: 18px; }
.prose h2::before { content: ''; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--gold); border-radius: 2px; }

/* bảng, khung, thẻ: chi tiết tinh hơn */
.tbl { box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px -16px rgba(15,27,45,.18); }
th:first-child { border-top-left-radius: 0; }
.cta-box { background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(201,164,92,.14), transparent 55%), var(--navy); box-shadow: 0 20px 40px -24px rgba(15,27,45,.6); }
.disclosure { border-radius: 0 10px 10px 0; }
.card { position: relative; box-shadow: 0 1px 2px rgba(15,27,45,.04); }
.card:hover { box-shadow: 0 18px 40px -20px rgba(15,27,45,.35); }
.card .more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--link); }
.card span:last-child.more { color: var(--link); }
.related h2, .section h2 { position: relative; padding-top: 18px; }
.related h2::before { content: ''; position: absolute; top: 0; left: 0; width: 36px; height: 2px; background: var(--gold); }

/* chân trang 4 cột */
.ft { padding: 56px 0 32px; }
.ft-in { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 32px; }
.ft .brand { font-size: 20px; }
.ft-h { color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 12px; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin: 6px 0; }
.ft li a { color: var(--navy-muted); text-decoration: none; }
.ft li a:hover { color: #fff; }
.ft-note p { margin: 6px 0 10px; }
.ft-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin: 8px 0 0; font-size: 13px; }
@media (max-width: 900px) { .ft-in { grid-template-columns: 1fr 1fr; } .ft-brand, .ft-note { grid-column: 1 / -1; } }

/* empty legs: tuyến bay kiểu vé máy bay (14/10/2026) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.el-route { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 300px; }
.el-pt { display: flex; flex-direction: column; min-width: 0; }
.el-pt.to { text-align: right; }
.el-pt b { font: 700 15px/1.2 var(--sans); letter-spacing: .04em; color: var(--fg); }
.el-pt span { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; display: block; }
.el-path { position: relative; display: flex; align-items: center; gap: 4px; padding-bottom: 14px; }
.el-path i { flex: 1; height: 0; border-top: 1.5px dashed color-mix(in srgb, var(--gold) 70%, var(--line)); }
.el-plane { width: 20px; height: 20px; flex: none; fill: var(--gold); }
.el-path em { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
table.el td span.sr-only { position: absolute; }
.prose .el-box .tbl table { min-width: 720px; }
.el-route { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); min-width: 260px; }
.prose .el-box .tbl table { min-width: 680px; }
.prose .el-box.small .tbl table { min-width: 640px; }
.el-box.small table.el th, .el-box.small table.el td { padding: 10px 10px; }
.el-pt b { display: inline-flex; align-items: center; gap: 5px; }
.el-pt.to b { justify-content: flex-end; }
.el-ico { width: 16px; height: 16px; flex: none; fill: var(--link); opacity: .9; }
.el-pt.to { align-items: flex-end; }

/* nút View luôn thấy được (14/10/2026): cột cuối bám mép phải khi bảng cuộn ngang (vd. Chrome tự dịch làm chữ dài ra) */
table.el th:last-child, table.el td:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -10px 0 12px -10px rgba(15,27,45,.25); }
table.el thead th:last-child { background: var(--navy); }
table.el tbody tr:nth-child(even) td:last-child { background: color-mix(in srgb, var(--sunk) 45%, var(--surface)); }
table.el td { overflow-wrap: break-word; }
table.el td:last-child, table.el td.el-price { width: 1%; white-space: nowrap; overflow-wrap: normal; }
.el-btn { white-space: nowrap; }
/* điện thoại: mỗi chuyến là một thẻ, không phải cuộn ngang */
@media (max-width: 640px) {
  .prose .el-box .tbl table, .prose .el-box.small .tbl table { min-width: 0; }
  table.el thead { display: none; }
  table.el, table.el tbody, table.el tr, table.el td { display: block; width: 100%; }
  table.el tr { padding: 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
  table.el tr[hidden] { display: none; }
  table.el td { padding: 0; border: 0; }
  table.el td:nth-child(2) { grid-column: 1 / -1; order: -1; }
  table.el td:nth-child(1) { grid-column: 1 / 2; }
  table.el td:nth-child(3) { grid-column: 1 / 2; }
  table.el td.el-price { grid-column: 2 / 3; grid-row: 2; text-align: right; font-size: 17px; }
  table.el td:last-child { position: static; box-shadow: none; background: none; grid-column: 2 / 3; grid-row: 3; text-align: right; }
  table.el tbody tr:nth-child(even) td:last-child { background: none; }
  .el-route { min-width: 0; }
  table.el tbody tr:nth-child(even) td { background: none; }
  table.el tbody tr:nth-child(even) { background: color-mix(in srgb, var(--sunk) 45%, transparent); }
}
