/* YachtCharterCost: biển sâu + đồng thau + nền cát, Cormorant + Montserrat. Biến --navy = màu biển, --gold = đồng thau (giữ tên biến của khung jet-charter). Mọi màu là biến, có sáng/tối.
   Xem design-system/yacht-charter/MASTER.md (mục CHỐT CUỐI). Tương phản đã kiểm tra ≥4,5:1. */
:root {
  --bg: #f7f3ec; --surface: #ffffff; --sunk: #ece5d8; --fg: #10262e; --muted: #52626a; --line: #ddd4c4;
  --navy: #0d4351; --on-navy: #f2ede3; --navy-muted: #bccbcd;
  --gold: #b8894a; --on-gold: #0b2128; --link: #8a5a1c; --accent-soft: #e8f0ef;
  --warn-soft: #fbf0dc; --radius: 12px;
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0a1a20; --surface: #10242c; --sunk: #142d36; --fg: #e9e4da; --muted: #a9b6bb; --line: #1f3c47; --navy: #072a33; --link: #e0bd85; --accent-soft: #12323b; --warn-soft: #2e230f; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0a1a20; --surface: #10242c; --sunk: #142d36; --fg: #e9e4da; --muted: #a9b6bb; --line: #1f3c47; --navy: #072a33; --link: #e0bd85; --accent-soft: #12323b; --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: 16px/1.75 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.12; color: var(--fg); letter-spacing: -0.005em; }
h1 { font-size: clamp(36px, 5.2vw, 56px); margin: 8px 0 14px; }
h2 { font-size: clamp(28px, 3.6vw, 36px); margin: 48px 0 12px; }
h3 { font-size: 24px; margin: 28px 0 8px; }
h2[id], h3[id] { scroll-margin-top: 84px; }

/* đầu trang: dải xanh biển */
.hd { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(184,137,74,.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: 700; font-size: 24px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .l1 { fill: none; stroke: #b8894a; stroke-width: 1.5; } .brand .l2 { fill: #b8894a; } .brand .l3 { fill: none; stroke: #f2ede3; stroke-width: 1.4; stroke-linecap: round; }
.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); }
.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(13,67,81,.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(184,137,74,.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 (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 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; }

/* ===== 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 biển bên phải; nền có quầng sáng đồng thau nhẹ */
.hero { background: radial-gradient(ellipse 70% 90% at 85% 10%, rgba(184,137,74,.16), transparent 60%), radial-gradient(ellipse 60% 70% at 0% 100%, rgba(40,130,140,.22), transparent 60%), var(--navy); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184,137,74,.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; }

@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(184,137,74,.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(184,137,74,.25)); }
.snap:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13,67,81,.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(184,137,74,.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(13,67,81,.04), 0 8px 24px -16px rgba(13,67,81,.18); }
th:first-child { border-top-left-radius: 0; }
.cta-box { background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(184,137,74,.14), transparent 55%), var(--navy); box-shadow: 0 20px 40px -24px rgba(13,67,81,.6); }
.disclosure { border-radius: 0 10px 10px 0; }
.card { position: relative; box-shadow: 0 1px 2px rgba(13,67,81,.04); }
.card:hover { box-shadow: 0 18px 40px -20px rgba(13,67,81,.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; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* du thuyền: hình đầu trang (mặt trời, chân trời, sóng, du thuyền) */
.hero-art .sun circle { fill: none; stroke: #b8894a; stroke-width: 1.4; }
.hero-art .sun line { stroke: #b8894a; stroke-width: 1; opacity: .55; }
.hero-art .horizon { stroke: rgba(242,237,227,.45); stroke-width: 1.2; }
.hero-art .waves path { fill: none; stroke: rgba(242,237,227,.22); stroke-width: 1.3; stroke-linecap: round; }
.hero-art .waves path:first-child { stroke: rgba(184,137,74,.6); }
.hero-art .yacht path { fill: #f2ede3; }
.hero-note { color: var(--navy-muted); margin-top: 10px; }
.card strong { font-size: 25px; }
.cta-box strong { font-size: 29px; }
.snap strong { font-family: var(--sans); }
th { letter-spacing: .02em; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sunk) 45%, transparent); }

/* ảnh nền đầu trang (config.json → heroImage): ảnh du thuyền chiếm 2/3 bên phải, hòa dần vào nền biển đậm bên trái nơi đặt chữ (tương phản chữ > 7:1) */
.hero.has-photo { background: #072a33; isolation: isolate; }
.hero-bg { position: absolute; top: 0; right: 0; width: 54%; height: 100%; object-fit: cover; object-position: 30% 45%; z-index: -2; }
.hero-bg.flip { transform: scaleX(-1); }
.hero.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #072a33 0%, #072a33 44%, rgba(7,42,51,.55) 54%, rgba(7,42,51,.12) 68%, rgba(7,42,51,0) 85%), linear-gradient(0deg, rgba(7,42,51,.55) 0%, transparent 30%); }
.hero.has-photo .wrap { min-height: 600px; display: flex; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero.has-photo .hero-copy { max-width: 580px; }
.hero.has-photo h1 { font-size: clamp(36px, 4.6vw, 56px); }
.hero.has-photo .lead, .hero.has-photo .trust, .hero.has-photo .hero-note { color: #d6e0e0; }
.hero-credit { position: absolute; right: 16px; top: 12px; margin: 0; font-size: 12px; color: rgba(242,237,227,.75); }
.hero-credit a { color: inherit; }
@media (max-width: 1100px) {
  .hero-bg { width: 100%; object-position: 40% 30%; }
  .hero.has-photo::before { background: linear-gradient(0deg, rgba(7,42,51,.95) 0%, rgba(7,42,51,.85) 50%, rgba(7,42,51,.55) 100%); }
  .hero.has-photo .wrap { min-height: 0; padding-top: 56px; padding-bottom: 60px; }
}
