/* Mỵ Nương blog – original editorial theme */
:root {
  --bg: #faf7f0;
  --bg-alt: #f3eee2;
  --surface: #ffffff;
  --ink: #0a1630;
  --ink-2: #2c3654;
  --muted: #4f5874;
  --line: #e4dccb;
  --accent: #ffc928;
  --accent-ink: #0a1630;
  --accent-text: #8a5a00;
  --navy: #0a1630;
  --on-navy: #f6f1e4;
  --code-bg: #0f1d3d;
  --code-ink: #f1ecdf;
  --focus: #1a5cff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 22, 48, .06), 0 8px 24px rgba(10, 22, 48, .07);
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --measure: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1222;
    --bg-alt: #101a30;
    --surface: #131f39;
    --ink: #f3eee2;
    --ink-2: #dcd6c8;
    --muted: #aeb5c8;
    --line: #26355a;
    --accent-text: #ffd45c;
    --navy: #060d1c;
    --code-bg: #060d1c;
    --focus: #8fb1ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255, 201, 40, .35); }
.btn-primary:hover { color: var(--accent-ink); background: #ffd54f; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px 12px 12px 3px; background: var(--navy); color: var(--accent); font-family: var(--font-serif); font-weight: 700; font-size: 17px; letter-spacing: .02em; box-shadow: inset 0 -3px 0 var(--accent); }
@media (prefers-color-scheme: dark) { .brand-mark { background: var(--accent); color: #0a1630; box-shadow: inset 0 -3px 0 #0a1630; } }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list a, .nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1.4; }
.nav-list a:hover, .nav-drop-btn:hover { background: var(--bg-alt); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 4px 4px; }
.nav-drop { position: relative; }
.nav-drop-btn .chev { transition: transform .15s; }
.nav-drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drop-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none; }
.nav-drop.open .drop-panel { display: block; }
.drop-panel a { display: flex; gap: 10px; width: 100%; padding: 10px 12px; }
.drop-panel .ico { width: 1.5em; text-align: center; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.menu-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; display: none; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.search-form input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }

@media (max-width: 960px) {
  .site-header { backdrop-filter: none; background: var(--bg); }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: 69px 0 0 0; background: var(--bg); padding: 16px 20px 40px; overflow-y: auto; display: none; margin: 0; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a, .nav-drop-btn { width: 100%; padding: 14px 12px; font-size: 17px; }
  .nav-drop-btn { justify-content: space-between; }
  .drop-panel { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: var(--bg-alt); display: block; }
  .nav-drop-btn .chev { display: none; }
  .header-actions { margin-left: auto; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; margin-bottom: 20px; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 75%, transparent) 62%); padding: 0 .08em; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.portrait { position: relative; margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); background: var(--accent); }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 57% 30%; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.portrait figcaption { position: relative; margin: 18px 0 0 -6px; display: inline-flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; }
.portrait figcaption strong { font-size: 16px; }
@media (max-width: 860px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 230px; order: -1; }
  .portrait img { aspect-ratio: 1 / 1; object-position: 57% 22%; border-radius: 120px 120px var(--radius-lg) var(--radius-lg); }
  .portrait::before { border-radius: 120px 120px var(--radius-lg) var(--radius-lg); inset: 16px -12px -12px 16px; }
  .portrait figcaption { display: none; }
  .hero-lead { font-size: 17px; }
}
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 620px; }
.link-more { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; counter-reset: cat; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; counter-increment: cat; min-width: 0; }
.cat-card::after { content: "0" counter(cat); position: absolute; top: 18px; right: 22px; font-family: var(--font-serif); font-weight: 700; font-size: 28px; color: var(--line); }
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.cat-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 28%, var(--surface)); font-size: 26px; }
.cat-card h3 { font-size: 19px; margin: 8px 0 0; }
.cat-card p { color: var(--muted); font-size: 15px; margin: 0; }
.cat-count { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent-text); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: relative; min-width: 0; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { font-size: 20px; margin: 12px 0 8px; font-family: var(--font-serif); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.tag { position: relative; z-index: 1; align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); color: var(--ink); text-decoration: none; }
a.tag:hover { background: var(--accent); color: var(--accent-ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-top: auto; }
.meta span + span::before, .meta time + span::before { content: "•"; margin-right: 14px; color: var(--line); }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-bottom: 8px; }
.post-card.is-featured { background: var(--navy); color: var(--on-navy); border-color: var(--navy); padding: 32px; }
.post-card.is-featured h3 { color: var(--on-navy); font-size: 25px; }
.post-card.is-featured p, .post-card.is-featured .meta { color: #c9cfdf; }
.post-card.is-featured .tag { background: var(--accent); color: var(--accent-ink); }
.post-card.is-featured h3 a:hover { color: var(--accent); }
.badge-featured { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.empty-note { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--on-navy); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--accent) 22%, transparent); pointer-events: none; }
.cta-band h2 { color: var(--on-navy); font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: #c9cfdf; margin: 0; max-width: 620px; }
.cta-band .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.about-teaser img { width: 200px; height: 200px; object-fit: cover; object-position: 57% 22%; border-radius: 50%; border: 6px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.about-teaser h2 { font-size: clamp(26px, 3vw, 34px); }
.about-teaser p { color: var(--muted); max-width: 640px; }
@media (max-width: 640px) { .about-teaser { grid-template-columns: 1fr; text-align: left; } .about-teaser img { width: 140px; height: 140px; } }

/* ---------- Page header / breadcrumb ---------- */
.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 900px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.cat-hero-icon { font-size: 40px; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); margin-bottom: 16px; }
.intro { max-width: var(--measure); color: var(--ink-2); margin-top: 18px; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- Post ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; padding-bottom: 24px; align-items: start; }
.post-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.post-layout.no-toc .prose { margin: 0 auto; }
.post-head { padding-top: 36px; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 880px; margin-bottom: 16px; }
.post-head .lead { font-size: 19px; color: var(--muted); max-width: 760px; }
.post-head .meta { margin-top: 0; font-size: 14.5px; }
.toc { position: sticky; top: 92px; order: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 0; font-size: 14.5px; max-height: calc(100vh - 120px); overflow: auto; }
.toc summary { cursor: pointer; font-weight: 800; padding: 12px 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 20px; line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; margin: 0; padding: 0 10px 12px; }
.toc ol ol { padding: 0 0 0 14px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); border-left: 3px solid transparent; line-height: 1.45; }
.toc a:hover { color: var(--ink); background: var(--bg-alt); }
.toc a.active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); background: var(--bg-alt); }
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { position: static; order: 0; max-height: none; }
}

.prose { max-width: var(--measure); min-width: 0; overflow-wrap: break-word; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.8em 0 .6em; padding-top: .2em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose .anchor { margin-left: .3em; text-decoration: none; color: var(--line); font-weight: 400; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; color: var(--accent-text); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; font-weight: 500; }
.prose a:hover { color: var(--accent-text); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.4em auto; }
.prose :not(pre) > code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; background: var(--bg-alt); border: 1px solid var(--line); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 480px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--navy); color: var(--on-navy); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-alt) 60%, transparent); }
.code-block { margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; background: var(--code-bg); border: 1px solid color-mix(in srgb, var(--code-bg) 80%, var(--accent)); }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; background: rgba(255, 255, 255, .06); color: #ffd75e; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.copy-btn { font: inherit; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; min-height: 34px; padding: 4px 14px; border-radius: 999px; border: 0; background: var(--accent); color: #0a1630; cursor: pointer; }
.copy-btn:hover { background: #ffd54f; }
.copy-btn.copied { background: #7ee2a8; }
.code-block pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; color: var(--code-ink); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

.faq { margin-top: 2.4em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 16px; color: var(--ink-2); }
.faq .faq-a p:last-child { margin: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2.4em 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share-label { font-weight: 700; margin-right: 4px; }
.share .btn { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }

.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; margin-top: 2.4em; padding: 24px; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 57% 22%; }
.author-box h2 { font-size: 20px; margin: 0 0 4px; font-family: var(--font-sans); }
.author-box p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.author-box a { font-weight: 700; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }

.cta-box { margin-top: 2.4em; padding: 28px; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent); }
.cta-box h2 { color: var(--on-navy); font-size: 24px; margin-bottom: 8px; }
.cta-box p { color: #c9cfdf; margin-bottom: 18px; }
.related { padding-top: 40px; padding-bottom: 72px; }
.related h2 { font-size: 28px; margin-bottom: 22px; }

/* ---------- Generic page content ---------- */
.page-body { padding-top: 40px; padding-bottom: 72px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 8px; }
.contact-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 10px; }
.contact-card h2 { font-size: 22px; margin: 0; }
.contact-card p { color: var(--muted); margin: 0 0 6px; }
.contact-card .btn { align-self: flex-start; margin-top: auto; }
.about-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
.about-layout figure { margin: 0; position: sticky; top: 92px; }
.about-layout figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 57% 30%; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } .about-layout figure { position: static; max-width: 280px; } }

/* Search */
.search-box { margin: 24px 0 0; }
.search-status { margin: 18px 0; color: var(--muted); font-weight: 600; min-height: 1.7em; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.post-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.post-row h2, .post-row h3 { font-size: 21px; margin: 6px 0 6px; font-family: var(--font-serif); }
.post-row h2 a, .post-row h3 a { text-decoration: none; }
.post-row p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.post-row .meta { margin: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter-chips a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: var(--surface); }
.filter-chips a:hover { border-color: var(--ink); color: var(--ink); }
mark { background: color-mix(in srgb, var(--accent) 60%, transparent); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* 404 */
.notfound { text-align: center; padding-top: 80px; padding-bottom: 100px; }
.notfound .big { font-family: var(--font-serif); font-size: clamp(80px, 18vw, 160px); line-height: 1; font-weight: 700; color: var(--accent); -webkit-text-stroke: 2px var(--ink); }
.notfound .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9cfdf; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand-mark { background: var(--accent); color: #0a1630; box-shadow: none; }
.site-footer p { font-size: 15px; margin-top: 14px; max-width: 360px; }
.footer-title { font-family: var(--font-sans); color: var(--on-navy); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-links a { color: #dfe3ee; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2f3d63; color: #dfe3ee; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #22305a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.site-footer :focus-visible { outline-color: var(--accent); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Floating Zalo button */
.float-zalo { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 6px; height: 56px; border-radius: 999px; background: var(--accent); color: #0a1630; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(10, 22, 48, .28); border: 2px solid #0a1630; }
.float-zalo:hover { color: #0a1630; transform: translateY(-2px); }
.float-zalo .bubble { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0a1630; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 560px) {
  .float-zalo { right: 12px; bottom: 12px; padding: 0 6px; height: 54px; }
  .float-zalo .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .site-header, .float-zalo, .site-footer, .toc, .share, .cta-box { display: none !important; } }
.post-head h1 { margin-top: 14px; }
