/* Kênh hiến kế — hệ thống giao diện. Di động trước; cột đọc 720px; chữ thân bài 17–18px. */
:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --surface: #ffffff;
  --ink: #16213e;
  --ink-2: #434d66;
  --muted: #7a8398;
  --line: #e6e1d6;
  --line-2: #d8d1c2;
  --brand: #b42318;
  --brand-dark: #8e1a11;
  --brand-soft: #fbeae7;
  --gold: #e0a826;
  --gold-soft: #fff4d6;
  --navy: #14213d;
  --navy-2: #1f2d4d;
  --green: #1f7a4d;
  --green-soft: #e3f4ea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 62, .05), 0 4px 14px -8px rgba(22, 33, 62, .14);
  --shadow: 0 2px 4px rgba(22, 33, 62, .05), 0 18px 40px -22px rgba(22, 33, 62, .28);
  --shadow-lg: 0 30px 60px -30px rgba(22, 33, 62, .4);
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- nền tảng ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
@media (min-width: 900px) { html { scroll-padding-top: 84px; } }
body { margin: 0; font: 16.5px/1.65 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 800; color: var(--ink); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; margin-top: 2em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1120px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.inline { display: inline; }
.ic { flex: none; }
.kicker { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); font-weight: 700; margin: 0 0 10px; }
.kicker a { text-decoration: none; }
.count { color: var(--muted); font-weight: 500; font-size: .9em; }
.section-title { margin: 0; font-size: 1.5rem; }
.section-title .count { display: inline-block; background: var(--paper-2); border-radius: 999px; padding: 2px 10px; font-size: .8rem; margin-left: 6px; vertical-align: middle; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ic { transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.chip-brand { background: var(--brand-soft); color: var(--brand); }
.chip-pin { display: inline-flex; align-items: center; gap: 4px; background: var(--navy); color: var(--gold); }
.pill { display: inline-block; margin-left: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .18s var(--ease), border-color .18s, transform .12s var(--ease), box-shadow .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #c62a1d, var(--brand)); color: #fff; box-shadow: 0 8px 20px -10px rgba(180, 35, 24, .7); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 12px 24px -10px rgba(180, 35, 24, .8); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover:not(:disabled) { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--line-2); }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #a61f1f; }
.btn-link { background: none; border: 0; color: var(--brand); padding: 6px 0; font-weight: 600; cursor: pointer; font: inherit; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-google:hover { border-color: var(--line-2); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: .18s var(--ease); }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }

/* ---------- thanh trên ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 236, .86); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 10px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.1rem; letter-spacing: -.02em; white-space: nowrap; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(180, 35, 24, .5); }
.menu { display: flex; gap: 2px; flex-wrap: nowrap; font-size: 14.5px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu::-webkit-scrollbar { display: none; }
.menu a { color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-weight: 500; transition: .15s; }
.menu a:hover { background: #fff; color: var(--ink); }
.menu a.on { background: var(--ink); color: #fff; font-weight: 600; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-submit span { display: none; }
.btn-submit { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.user-menu { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.user-name { font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #ddd; flex: none; }
.user-menu .avatar { width: 34px; height: 34px; }
.avatar-blank { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-soft), var(--brand-soft)); color: var(--brand); font-weight: 800; font-size: 15px; }
@media (min-width: 900px) {
  .topbar-inner { flex-wrap: nowrap; }
  .menu { order: 0; width: auto; margin-left: 10px; }
  .btn-submit { width: auto; height: auto; padding: 8px 16px; border-radius: 999px; }
  .btn-submit span { display: inline; }
  .user-name { max-width: 160px; }
}

/* ---------- masthead ---------- */
.masthead { position: relative; overflow: hidden; background: radial-gradient(900px 400px at 85% 0%, #fff6dc 0%, rgba(255, 246, 220, 0) 60%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.masthead::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(22, 33, 62, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); pointer-events: none; }
.masthead-inner { position: relative; display: grid; gap: 28px; padding-top: 44px; padding-bottom: 36px; align-items: center; }
.masthead h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); max-width: 18ch; line-height: 1.08; }
.masthead .lead { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); max-width: 50ch; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.stats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }
.masthead-art { max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(22, 33, 62, .18)); }
.art-hero { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .masthead-inner { grid-template-columns: 1.1fr .9fr; padding-top: 64px; padding-bottom: 56px; gap: 40px; }
}

/* ---------- 4 bước ---------- */
.howto { background: var(--navy); color: #fff; }
.howto { padding: 36px 0 44px; }
.howto-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.howto-head .kicker { margin-bottom: 6px; color: var(--gold); }
.howto-head h2 { color: #fff; margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.howto-head .link-arrow { color: rgba(255, 255, 255, .8); }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.howto-step { position: relative; padding: 18px 18px 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: .2s var(--ease); }
.howto-step:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.howto-no { position: absolute; top: 14px; right: 16px; font-size: 2.2rem; font-weight: 800; color: rgba(255, 255, 255, .08); line-height: 1; }
.howto-icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--brand)); color: #fff; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 8px 18px -8px rgba(224, 168, 38, .8); }
.howto-step h3 { color: #fff; margin-bottom: 4px; }
.howto-step p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14.5px; }
@media (min-width: 720px) { .howto-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .howto-steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- danh sách bài ---------- */
.feed { padding-top: 8px; padding-bottom: 56px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cards { display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { font-size: 1.22rem; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--brand), var(--brand)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s var(--ease); }
.card-title a:hover { background-size: 100% 2px; }
.card-summary { font-family: var(--serif); color: var(--ink-2); font-size: 15.5px; margin: 0; line-height: 1.6; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.card-meta .avatar { width: 28px; height: 28px; font-size: 12px; }
.card-author { color: var(--ink-2); font-weight: 600; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.card-comments { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; font-weight: 600; }
.card-comments:hover { color: var(--brand); }
.card-featured { grid-column: 1 / -1; }
.card-featured .card-title { font-size: 1.7rem; }
.card-featured .card-summary { font-size: 17px; }
.card-art { background: linear-gradient(135deg, var(--gold-soft), #fdeae4); display: flex; align-items: center; justify-content: center; padding: 10px 20px; }
.card-art svg { width: 100%; max-width: 260px; height: auto; }
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-featured { flex-direction: row; }
  .card-featured .card-art { width: 38%; flex: none; }
  .card-featured .card-body { padding: 28px 30px; }
}
.empty-feed { text-align: center; padding: 48px 20px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-feed h3, .empty-feed h1 { margin-top: 8px; }
.art-empty { width: 200px; height: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 10px; }
.pager-info { color: var(--muted); font-size: 14px; }

/* ---------- bài viết ---------- */
.article-hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.article-body { font-family: var(--serif); font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; color: #1e2742; }
.article-body > p:first-of-type::first-letter { font-family: var(--font); font-weight: 800; font-size: 3.2em; float: left; line-height: .85; margin: 6px 10px 0 0; color: var(--brand); }
.article-body h2 { font-family: var(--font); font-size: 1.35rem; margin-top: 1.8em; padding-top: .4em; border-top: 2px solid var(--gold); display: inline-block; }
.article-body h3 { font-family: var(--font); font-size: 1.1rem; margin-top: 1.4em; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: .4em; }
.article-body a { word-break: break-all; }
.article-end { text-align: center; color: var(--gold); margin: 24px 0 4px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid #f1dfa6; color: #6b4e00; font-size: 15px; margin-bottom: 18px; }
.notice .ic { flex: none; margin-top: 2px; }
.notice-bad { background: #fdecea; border-color: #f5c2c0; color: #7a1f1f; }
.notice a { color: inherit; font-weight: 600; }

/* ---------- bình luận ---------- */
.comments { padding: 8px 20px 64px; }
.comments-title { margin-bottom: 18px; }
.comments-title h2 { margin: 0 0 6px; font-size: 1.5rem; }
.invite { color: var(--ink-2); margin: 0; }
.comments-head { display: flex; justify-content: flex-end; margin: 18px 0 8px; font-size: 14px; color: var(--ink-2); }
.sort select { font: inherit; font-size: 14px; margin-left: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

.editor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.editor:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(224, 168, 38, .18); }
.editor textarea { width: 100%; border: 0; resize: vertical; font: inherit; font-size: 16px; line-height: 1.6; padding: 4px; min-height: 96px; outline: none; background: transparent; }
.editor-compact textarea { min-height: 64px; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.counter { margin-right: auto; font-size: 13px; color: var(--muted); }
.counter-bad { color: #c62828; }
.editor-login:not(:empty) { margin-top: 10px; }
.editor-error { color: #c62828; font-size: 14px; margin-top: 6px; }

.comment-list { margin-top: 12px; }
.thread { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment { display: grid; gap: 6px; transition: background .4s; border-radius: var(--radius-sm); }
.comment.highlight { background: var(--gold-soft); box-shadow: 0 0 0 10px var(--gold-soft); }
.c-head { display: flex; align-items: center; gap: 10px; }
.c-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; line-height: 1.3; }
.c-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.c-name-gone { color: var(--muted); font-weight: 500; font-style: italic; }
.c-time { color: var(--muted); text-decoration: none; }
.c-time:hover { text-decoration: underline; }
.c-edited { color: var(--muted); font-style: italic; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; }
.badge-author { background: var(--brand); color: #fff; }
.badge-warn { background: var(--gold-soft); color: #7a5200; }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-bad { background: #fdecea; color: #a61f1f; }
.badge-muted { background: var(--paper-2); color: var(--ink-2); }
.badge-pin { background: var(--navy); color: var(--gold); }
.c-body { font-size: 16.5px; overflow-wrap: anywhere; }
.c-body a { word-break: break-all; }
.c-placeholder { color: var(--muted); font-style: italic; }
.c-actions { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
.act { background: none; border: 0; padding: 4px 0; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.act:hover { color: var(--brand); }
.act-muted { color: var(--muted); font-weight: 500; }
.act-like .heart { color: #c9c3b6; font-size: 16px; transition: transform .2s var(--ease), color .2s; display: inline-block; }
.act-like:hover .heart { transform: scale(1.2); }
.act-like.on, .act-like.on .heart { color: var(--brand); }
.c-slot:not(:empty) { margin-top: 8px; }
.replies { margin: 12px 0 0 20px; padding-left: 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.replies:empty { display: none; }
.reply .avatar { width: 32px; height: 32px; }
.more-replies { justify-self: start; }
.more { text-align: center; margin-top: 20px; }
.empty { text-align: center; padding: 20px 0; }

/* ---------- hộp thoại, toast ---------- */
.dialog-root { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(20, 33, 61, .5); backdrop-filter: blur(3px); }
.dialog { position: relative; background: #fff; border-radius: 18px; padding: 22px; width: min(460px, 100%); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog h3 { margin-bottom: .4em; }
.dialog p { color: var(--ink-2); font-size: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.dialog input[type=text], .dialog textarea { width: 100%; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.report-form .radio { display: block; padding: 5px 0; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s var(--ease); z-index: 60; max-width: 92vw; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: #c62828; }

/* ---------- form gửi bài ---------- */
.form-page { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 64px; }
.form-side { background: linear-gradient(180deg, #fff, var(--paper)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
.form-side-art svg { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto 8px; }
.form-side h2 { font-size: 1.15rem; margin-top: .6em; }
.checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--green); flex: none; margin-top: 2px; }
.form-main h1 { font-size: 2rem; }
.post-form { display: grid; gap: 20px; margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.field-label small { font-weight: 500; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; line-height: 1.55; transition: box-shadow .2s, border-color .2s; }
.field textarea[name=body] { font-family: var(--serif); font-size: 17px; line-height: 1.7; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 168, 38, .2); }
.field-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.format-hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.form-error { color: #c62828; font-size: 15px; }
.form-error:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px) { .form-page { grid-template-columns: 320px 1fr; align-items: start; } .form-side { position: sticky; top: 90px; } }

/* ---------- trang chữ, bài của tôi ---------- */
.page { padding: 36px 20px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; padding-left: 14px; border-left: 4px solid var(--gold); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.status-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.my-list { display: grid; gap: 12px; margin-top: 10px; }
.my-item { background: #fff; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 16px 18px; }
.my-pending { border-left-color: var(--gold); }
.my-published { border-left-color: var(--green); }
.my-rejected { border-left-color: #c62828; }
.my-unpublished { border-left-color: var(--line-2); }
.my-item-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.my-title { font-size: 1.15rem; margin: 0 0 8px; }
.my-title a { color: var(--ink); text-decoration: none; }
.my-title a:hover { color: var(--brand); }
.my-note { display: flex; gap: 8px; font-size: 15px; color: var(--ink-2); margin: 0 0 10px; background: var(--paper); padding: 10px 12px; border-radius: var(--radius-sm); }
.my-note .ic { flex: none; margin-top: 2px; }
.my-actions { display: flex; gap: 14px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.my-actions a { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- giới thiệu kênh ---------- */
.masthead-about { background: radial-gradient(700px 360px at 15% 0%, #fdeae4 0%, rgba(253, 234, 228, 0) 60%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.proposal { padding: 28px 20px 56px; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.toc a { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; transition: .15s; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }
.sec h2 { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; }
.sec p { font-family: var(--serif); font-size: 17.5px; line-height: 1.75; color: #1e2742; }
.copy-link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; opacity: .5; }
.sec h2:hover .copy-link, .copy-link:focus { opacity: 1; }
.copy-link:hover { color: var(--brand); background: var(--brand-soft); }

.steps { list-style: none; margin: 1.2em 0 1.5em; padding: 0; display: grid; gap: 14px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: var(--shadow-sm); }
.step-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; align-items: center; justify-content: center; margin-bottom: 10px; }
.step-no { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; font-family: var(--font); color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.sec-intro, .sec-outro { font-family: var(--serif); }
.tiers { display: grid; gap: 16px; margin: 1.2em 0 1.4em; }
.tier { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); overflow: hidden; transition: transform .22s var(--ease); }
.tier:hover { transform: translateY(-4px); }
.tier::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.tier-1::after { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.tier-2::after { background: linear-gradient(90deg, #d4a017, #f1c40f); }
.tier-3::after { background: linear-gradient(90deg, #1f7a4d, #2ecc71); }
.tier-icon { position: absolute; top: 16px; right: 16px; }
.tier-level { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tier-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; color: var(--ink); }
.tier-unit { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.tier .tier-cond { margin: 0; font-family: var(--font); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 680px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

.author-box { display: flex; gap: 16px; margin: 2.5em 0 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quote-mark { color: var(--gold); flex: none; }
.author-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.author-name { font-weight: 800; font-size: 1.15rem; margin-top: 4px; }
.author-title, .author-date { color: var(--ink-2); font-size: 15px; }
.cta-band { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), #2b4170); color: #fff; box-shadow: var(--shadow); }
.cta-band h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); font-family: var(--font); font-size: 15px; }

/* ---------- chân trang ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .75); margin-top: 40px; }
.footer-inner { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand p { font-size: 14.5px; max-width: 46ch; margin: 12px 0 0; line-height: 1.6; }
.brand-light { color: #fff; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.footer-col h4 { color: #fff; margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- quản trị ---------- */
.admin { padding: 36px 20px 64px; }
.admin-grid { display: grid; gap: 24px; margin-top: 12px; }
.admin-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-top: 1.6em; }
.admin-panel h2 .ic { color: var(--brand); }
.admin-panel h2:first-child { margin-top: 0; }
.admin-list { display: grid; gap: 12px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.admin-card.is-hidden { background: #fff8f0; }
.admin-card-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.admin-post-title { font-size: 1.08rem; margin: 8px 0; }
.admin-post-title a { color: var(--ink); text-decoration: none; }
.admin-post-title a:hover { color: var(--brand); }
.admin-body { white-space: pre-wrap; margin: 8px 0; font-size: 15px; font-family: var(--serif); }
.admin-preview summary { cursor: pointer; font-size: 14px; color: var(--brand); margin: 4px 0; font-weight: 600; }
.admin-preview .admin-body { max-height: 340px; overflow: auto; background: var(--paper); padding: 12px 14px; border-radius: var(--radius-sm); }
.report-notes { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; padding-left: 18px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.log-list { padding-left: 18px; font-size: 14px; margin: 0; }
.log-list li { margin-bottom: 6px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* ---------- chuyển động nhẹ ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* huy chương không đè lên số tiền */
.tier-level, .tier-amount { padding-right: 64px; }
@media (max-width: 599px) { .user-name { display: none; } }

/* ---------- Đề xuất: bản trình bày 13 trang (/de-xuat) ---------- */
/* --u = 1% bề rộng slide; mọi cỡ chữ trong slide tính theo --u để xem cuộn hay trình chiếu đều giữ bố cục. */
.masthead-deck { background: radial-gradient(700px 360px at 85% 0%, #fff1cf 0%, rgba(255, 241, 207, 0) 60%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.masthead-art-deck { max-width: 300px; }
.deck { --sw: clamp(600px, 100vw - 40px, 1080px); --u: calc(var(--sw) / 100); padding-top: 22px; padding-bottom: 44px; }
.deck-nav { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 auto 20px; width: fit-content; max-width: 100%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.deck-dots { list-style: none; margin: 0; padding: 0 4px; display: flex; gap: 7px; }
.deck-dots a { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: .2s var(--ease); }
.deck-dots a:hover { background: var(--gold); }
.deck-dots li.on a { background: var(--brand); transform: scale(1.35); }
.deck-counter { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deck-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }
@media (max-width: 599px) { .deck-dots { display: none; } .deck-nav { top: 118px; } }

.deck-stage { display: grid; gap: calc(var(--u) * 3); }
.slide { position: relative; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--u) * 1.6); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 140px; }
@media (min-width: 760px) { .slide { aspect-ratio: 16 / 9; } }
.slide-inner { flex: 1; display: flex; flex-direction: column; padding: calc(var(--u) * 5) calc(var(--u) * 6) calc(var(--u) * 2.5); min-height: 0; }
.slide-foot { display: flex; justify-content: space-between; padding: 0 calc(var(--u) * 6) calc(var(--u) * 2.2); font-size: calc(var(--u) * 1.2); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.slide-dark { background: radial-gradient(60% 80% at 100% 0%, rgba(224, 168, 38, .22), transparent 60%), linear-gradient(135deg, #0f1e36, #1c2d52); color: #fff; border-color: transparent; }
.slide-dark .slide-foot { color: rgba(255, 255, 255, .45); }
.slide-dark h2, .slide-dark h3 { color: #fff; }
.slide-kicker { margin: 0 0 calc(var(--u) * 1); font-size: calc(var(--u) * 1.3); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--brand); }
.slide-dark .slide-kicker { color: var(--gold); }
.slide-title { font-size: calc(var(--u) * 3.6); margin: 0 0 calc(var(--u) * 3); line-height: 1.15; max-width: 26ch; }
.slide h3 { font-size: calc(var(--u) * 1.9); margin: 0 0 calc(var(--u) * .6); }
.slide p { margin: 0; font-size: calc(var(--u) * 1.55); line-height: 1.5; color: var(--ink-2); }
.slide-dark p { color: rgba(255, 255, 255, .78); }
.ic-big { width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); }

/* bìa */
.cover-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: calc(var(--u) * 4); align-items: center; flex: 1; }
.cover-title { font-size: calc(var(--u) * 5.6); line-height: 1.05; margin: 0 0 calc(var(--u) * 2); letter-spacing: -.02em; }
.slide .cover-tagline { font-family: var(--serif); font-size: calc(var(--u) * 2); color: rgba(255, 255, 255, .85); font-style: italic; }
.cover-art { max-width: calc(var(--u) * 28); margin-left: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.cover-author { margin-top: calc(var(--u) * 2); padding-top: calc(var(--u) * 2); border-top: 1px solid rgba(255, 255, 255, .15); }
.cover-name { font-weight: 800; font-size: calc(var(--u) * 1.9); }
.cover-role, .cover-org { font-size: calc(var(--u) * 1.35); color: rgba(255, 255, 255, .7); }

/* thẻ (vấn đề, lợi ích) */
.slide-cards { display: grid; gap: calc(var(--u) * 2); flex: 1; align-content: center; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.scard { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 2.4); }
.scard-icon { display: inline-flex; width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); border-radius: calc(var(--u) * 1.4); background: var(--navy); color: #fff; align-items: center; justify-content: center; margin-bottom: calc(var(--u) * 1.6); }
.scard:nth-child(2) .scard-icon { background: var(--brand); }
.scard:nth-child(3) .scard-icon { background: var(--gold); color: var(--ink); }
.scard:nth-child(4) .scard-icon { background: var(--green); }

/* thông điệp */
.statement { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.statement-art { width: calc(var(--u) * 16); margin-bottom: calc(var(--u) * .5); }
.statement-title { font-size: calc(var(--u) * 4.4); max-width: 20ch; margin: 0 0 calc(var(--u) * 1.4); line-height: 1.1; }
.slide .statement-text { font-family: var(--serif); font-size: calc(var(--u) * 1.9); }

/* dòng thời gian (tiền lệ) */
.tline { list-style: none; margin: 0; padding: calc(var(--u) * 2) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 2.5); position: relative; flex: 1; align-content: start; }
.tline::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--u) * 2.9); height: 2px; background: linear-gradient(90deg, var(--line-2), var(--gold), var(--brand)); }
.tline-item { position: relative; padding-top: calc(var(--u) * 3.2); }
.tline-dot { position: absolute; top: calc(var(--u) * 2.2); left: 0; width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 calc(var(--u) * .45) #fff, 0 0 0 calc(var(--u) * .65) var(--brand); }
.tline-year { font-size: calc(var(--u) * 4.2); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.tline-place { display: inline-block; margin: calc(var(--u) * .9) 0 calc(var(--u) * 1.2); font-size: calc(var(--u) * 1.1); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: calc(var(--u) * .35) calc(var(--u) * 1); border-radius: 999px; }

/* ca thực tế (ATM gạo) */
.case-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: calc(var(--u) * 4); align-items: center; flex: 1; }
.slide .case-lead { font-family: var(--serif); font-size: calc(var(--u) * 2.1); color: var(--ink); line-height: 1.45; margin-bottom: calc(var(--u) * 2); }
.case-note { display: flex; gap: calc(var(--u) * 1); align-items: center; }
.case-note .ic { color: var(--brand); flex: none; width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); }
.case-stat { background: linear-gradient(135deg, var(--navy), #2b4170); color: #fff; border-radius: calc(var(--u) * 1.8); padding: calc(var(--u) * 3.5) calc(var(--u) * 3); text-align: center; box-shadow: var(--shadow); }
.case-value { font-size: calc(var(--u) * 8.5); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--gold); }
.case-label { font-size: calc(var(--u) * 1.6); margin-top: calc(var(--u) * 1); color: rgba(255, 255, 255, .8); }

/* bốn bước */
.sflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 2.4); flex: 1; align-content: center; }
.sflow-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 2.2); }
.sflow-step:not(:last-child)::after { content: ""; position: absolute; right: calc(var(--u) * -1.7); top: 50%; width: calc(var(--u) * 1); height: calc(var(--u) * 1); border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.sflow-icon { display: inline-flex; width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: calc(var(--u) * 1.3); background: linear-gradient(135deg, var(--gold), var(--brand)); color: #fff; align-items: center; justify-content: center; margin-bottom: calc(var(--u) * 1.4); }
.sflow-icon .ic { width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); }
.sflow-no { display: block; font-size: calc(var(--u) * 1.1); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; }

/* ba bậc thưởng */
.stiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 2.2); flex: 1; align-content: center; }
.stier { position: relative; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 2.8) calc(var(--u) * 2.4) calc(var(--u) * 2.4); box-shadow: var(--shadow-sm); overflow: hidden; }
.stier::after { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--u) * .5); }
.stier-1::after { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.stier-2::after { background: linear-gradient(90deg, #d4a017, #f1c40f); }
.stier-3::after { background: linear-gradient(90deg, #1f7a4d, #2ecc71); }
.stier-medal { position: absolute; top: calc(var(--u) * 1.4); right: calc(var(--u) * 1.6); width: calc(var(--u) * 4.6); }
.stier-medal svg { width: 100%; height: auto; }
.stier-amount { font-size: calc(var(--u) * 7); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); padding-right: calc(var(--u) * 5); }
.stier-unit { font-size: calc(var(--u) * 1.5); color: var(--muted); margin: calc(var(--u) * .4) 0 calc(var(--u) * 1.6); }

/* nguyên tắc chi */
.cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: calc(var(--u) * 2); align-items: stretch; flex: 1; align-content: center; }
.cmp-side { border-radius: calc(var(--u) * 1.6); padding: calc(var(--u) * 3); display: flex; flex-direction: column; justify-content: center; }
.cmp-left { background: var(--paper); border: 1px solid var(--line); }
.cmp-right { background: linear-gradient(135deg, #c62a1d, var(--brand)); color: #fff; box-shadow: var(--shadow); }
.cmp-right h3 { color: #fff; }
.cmp-icon { display: inline-flex; width: calc(var(--u) * 5.2); height: calc(var(--u) * 5.2); border-radius: 50%; background: #fff; color: var(--navy); align-items: center; justify-content: center; margin-bottom: calc(var(--u) * 1.6); border: 1px solid var(--line); }
.cmp-right .cmp-icon { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; }
.cmp-value { font-size: calc(var(--u) * 4.6); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: calc(var(--u) * 1); }
.cmp-left .cmp-value { color: var(--muted); }
.cmp-arrow { align-self: center; color: var(--brand); }
.cmp-arrow .ic { width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); }

/* ghi công */
.credit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: calc(var(--u) * 4); align-items: center; flex: 1; }
.slide .credit-text { font-family: var(--serif); font-size: calc(var(--u) * 2); color: var(--ink); line-height: 1.5; }
.cert { position: relative; background: #fffdf7; border: 2px solid var(--gold); box-shadow: var(--shadow), inset 0 0 0 calc(var(--u) * .6) #fff, inset 0 0 0 calc(var(--u) * .7) var(--line-2); border-radius: calc(var(--u) * .8); padding: calc(var(--u) * 3.5) calc(var(--u) * 3) calc(var(--u) * 3); text-align: center; }
.art-seal { position: absolute; width: calc(var(--u) * 6.5); height: calc(var(--u) * 6.5); top: calc(var(--u) * -1.5); right: calc(var(--u) * -1.5); filter: drop-shadow(0 6px 10px rgba(180, 35, 24, .35)); }
.cert-label { font-size: calc(var(--u) * 1.2); text-transform: uppercase; letter-spacing: .2em; color: var(--brand); font-weight: 700; }
.cert-name { font-family: var(--serif); font-size: calc(var(--u) * 3); font-weight: 600; color: var(--ink); margin: calc(var(--u) * 1.2) 0; }
.cert-line { width: 40%; height: 1px; background: var(--line-2); margin: 0 auto calc(var(--u) * 1.2); }
.cert-note { font-size: calc(var(--u) * 1.4); color: var(--ink-2); }

/* chi phí và lợi ích */
.cb { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: calc(var(--u) * 2); align-items: center; flex: 1; align-content: center; }
.cb-box { border-radius: calc(var(--u) * 1.6); padding: calc(var(--u) * 3); }
.cb-cost { background: var(--paper); border: 1px solid var(--line); }
.cb-benefit { background: linear-gradient(135deg, var(--navy), #2b4170); color: #fff; box-shadow: var(--shadow); }
.slide .cb-benefit p { color: rgba(255, 255, 255, .8); }
.cb-value { font-size: calc(var(--u) * 6); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: calc(var(--u) * 1); }
.cb-benefit .cb-value { color: var(--gold); font-size: calc(var(--u) * 7.5); }
.cb-vs { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: calc(var(--u) * 1.8); }
.slide .slide-note { font-size: calc(var(--u) * 1.25); color: var(--muted); margin-top: calc(var(--u) * 2); }

/* kiến nghị */
.slist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--u) * 2); flex: 1; align-content: center; }
.slist li { display: flex; gap: calc(var(--u) * 1.8); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--u) * 1.4); padding: calc(var(--u) * 2.2) calc(var(--u) * 2.4); font-size: calc(var(--u) * 1.9); font-weight: 600; color: var(--ink); line-height: 1.35; }
.slist-no { flex: none; display: inline-flex; width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: 50%; background: var(--navy); color: var(--gold); align-items: center; justify-content: center; font-size: calc(var(--u) * 2.4); font-weight: 800; }

/* kết */
.closing { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.closing .quote-mark { width: calc(var(--u) * 5); height: calc(var(--u) * 5); }
.slide .closing-quote { font-family: var(--serif); font-size: calc(var(--u) * 3.6); color: #fff; max-width: 24ch; line-height: 1.3; margin: calc(var(--u) * 1) 0 calc(var(--u) * 2.5); }
.slide .closing-thanks { font-size: calc(var(--u) * 1.8); color: rgba(255, 255, 255, .85); }
.closing-author { margin-top: calc(var(--u) * 3); font-size: calc(var(--u) * 1.35); color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .12em; }

/* di động: bỏ tỉ lệ 16:9, xếp một cột, chữ tính theo slide rộng 1000px */
@media (max-width: 759px) {
  .deck { --u: 10px; }
  .slide-inner { padding: 28px 20px 16px; }
  .slide-foot { padding: 0 20px 14px; }
  .cover-grid, .case-grid, .credit-grid, .cb { grid-template-columns: 1fr; gap: 22px; }
  .cover-art { margin: 0 auto; max-width: 200px; }
  .slide-cards, .sflow, .stiers, .slist { grid-template-columns: 1fr; gap: 12px; }
  .cmp { grid-template-columns: 1fr; }
  .cmp-arrow { justify-self: center; transform: rotate(90deg); }
  .sflow-step:not(:last-child)::after { display: none; }
  .tline { grid-template-columns: 1fr; gap: 18px; padding-top: 0; }
  .tline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--line-2), var(--gold), var(--brand)); }
  .tline-item { padding: 0 0 0 30px; }
  .tline-dot { top: 12px; left: 1px; }
  .cb-vs { text-align: center; }
  .cover-title { font-size: 36px; }
  .case-value, .cb-benefit .cb-value, .stier-amount { font-size: 56px; }
}

/* trình chiếu: một trang một màn, nền tối, thanh điều khiển nổi */
html.present { overflow: hidden; }
html.present .topbar, html.present .footer, html.present .masthead-deck, html.present .deck-hint { display: none; }
html.present .deck { --sw: min(100vw, calc(100vh * 16 / 9)); --u: calc(var(--sw) / 100); max-width: none; padding: 0; }
html.present .deck-stage { position: fixed; inset: 0; z-index: 25; background: #0b1327; display: flex; align-items: center; justify-content: center; gap: 0; }
html.present .slide { display: none; width: var(--sw); height: calc(var(--sw) * 9 / 16); aspect-ratio: auto; border-radius: 0; border: 0; box-shadow: none; overflow: auto; }
html.present .slide.is-current { display: flex; animation: slide-in .28s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
html.present .deck-nav { position: fixed; top: auto; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 30; background: rgba(15, 30, 54, .85); border-color: rgba(255, 255, 255, .15); opacity: .3; transition: opacity .2s; }
html.present .deck-nav:hover, html.present .deck-nav:focus-within { opacity: 1; }
html.present .deck-counter { color: #fff; }
html.present .deck-nav .icon-btn { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
html.present .deck-dots a { background: rgba(255, 255, 255, .3); }
html.present .deck-dots li.on a { background: var(--gold); }
.art-bars, .art-bulb { display: block; width: 100%; height: auto; }

/* ---------- minh họa theo lĩnh vực trên thẻ bài và trang bài ---------- */
.card-art { display: block; aspect-ratio: 2 / 1; padding: 0; overflow: hidden; }
.card-art .topic-art { width: 100%; height: 100%; max-width: none; display: block; transition: transform .4s var(--ease); }
.card:hover .card-art .topic-art { transform: scale(1.04); }
.art-v0 { background: linear-gradient(135deg, #fff4d6, #fdeae4); }
.art-v1 { background: linear-gradient(135deg, #e6f0fb, #e8f4ea); }
.art-v2 { background: linear-gradient(135deg, #fdeae4, #fff1cf); }
.art-v3 { background: linear-gradient(135deg, #e8f4ea, #fff4d6); }
@media (min-width: 720px) {
  .card-featured { display: grid; grid-template-columns: 1.1fr 1fr; }
  .card-featured .card-art { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .card-featured .card-body { padding: 28px 30px 24px; justify-content: center; }
}
.field select { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 168, 38, .2); }

/* ---------- phân trang số ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pager-no { min-width: 50px; height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; background: #fff; transition: .15s var(--ease); }
.pager-no:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.pager-no.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-arrow { font-size: 20px; }
.pager-gap { font-weight: 800; color: var(--muted); letter-spacing: .1em; padding: 0 2px; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- ảnh thật theo lĩnh vực ---------- */
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card-art img { transform: scale(1.04); }
.credits { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 24px; }
.credit { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.credit img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.credit figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.credit figcaption a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---------- hồ sơ người gửi: họ tên + chức danh ---------- */
.field-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0 0 18px; background: linear-gradient(180deg, #fff, var(--paper)); }
.field-group legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.field-group legend small { font-weight: 500; margin-left: 4px; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1.4fr; } }
.author-role { display: block; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.card-role { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.c-role { font-size: 12.5px; color: var(--muted); }

.title-list { display: grid; gap: 8px; }
.title-row { display: flex; gap: 8px; align-items: center; }
.title-row input { flex: 1; }
.title-del { flex: none; font-size: 20px; line-height: 1; color: var(--muted); }
.title-add { justify-self: start; margin-top: 8px; }
.title-row input { width: auto; min-width: 0; }
.field-row { align-items: start; }

/* ---------- trang bài: tập trung vào nội dung ---------- */
.article-hero-inner { padding-top: 26px; padding-bottom: 18px; }
.article-hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.35rem); line-height: 1.15; margin-bottom: .4em; }
.article-hero .kicker { margin-bottom: 8px; }
.article-summary { font-family: var(--serif); font-size: 1.08rem; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.byline { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.byline .avatar { width: 26px; height: 26px; font-size: 12px; }
.byline-name { color: var(--ink); font-weight: 600; }
.byline-role::before, .byline-date::before { content: "·"; margin-right: 8px; }
.byline-role { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byline-edit { margin-left: 4px; }
.share { margin-left: auto; display: flex; gap: 6px; }
.share .icon-btn { width: 32px; height: 32px; }
.share .icon-btn svg { width: 15px; height: 15px; }
.article-cover { position: relative; margin: 18px auto 0; }
.article-cover img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { position: absolute; right: 28px; bottom: 8px; font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(20, 33, 61, .45); color: rgba(255, 255, 255, .85); }
.article-cover figcaption a { color: inherit; text-decoration: none; }
.article { padding: 20px 20px 4px; }
@media (max-width: 599px) { .byline-role { display: none; } .article-cover img { aspect-ratio: 16 / 9; } }

/* ---------- trang chủ kiểu báo điện tử ---------- */
body.home { background: #fff; }
.front-strip { border-bottom: 1px solid var(--line); background: #fff; }
.front-strip-inner { display: flex; align-items: center; gap: 18px; min-height: 42px; font-size: 13.5px; }
.front-date { color: var(--muted); white-space: nowrap; flex: none; }
.front-topics { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.front-topics::-webkit-scrollbar { display: none; }
.front-topics a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 11px 10px 9px; white-space: nowrap; border-bottom: 2px solid transparent; transition: .15s; }
.front-topics a:hover { color: var(--brand); }
.front-topics a.on { color: var(--brand); border-bottom-color: var(--brand); }
.front { padding-top: 24px; padding-bottom: 56px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line-2); }
.sec-title > span:first-child { display: inline-block; padding-bottom: 7px; margin-bottom: -1px; border-bottom: 3px solid var(--brand); }
.sec-count, .sec-all { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
.sec-all { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.thumb { display: block; overflow: hidden; background: var(--paper-2); border-radius: 6px; flex: none; }
.thumb img, .thumb svg { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.lead-story:hover .thumb img, .row:hover .thumb img, .side-item:hover .thumb img { transform: scale(1.03); }
.ptitle { margin: 0; }
.ptitle a { color: var(--ink); text-decoration: none; }
.ptitle a:hover { color: var(--brand); }
.pmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.pmeta-author { color: var(--ink-2); font-weight: 600; }
.pmeta-comments { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; margin-left: 2px; }
.pmeta-comments:hover { color: var(--brand); }
.pmeta-comments svg { width: 14px; height: 14px; }
a.chip-brand { text-decoration: none; }
a.chip-brand:hover { background: var(--brand); color: #fff; }

/* nổi bật: bài lớn + cột tin */
.front-top { display: grid; gap: 28px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.lead-thumb { aspect-ratio: 16 / 9; border-radius: 8px; }
.lead-body { padding-top: 16px; }
.lead-title { font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.16; margin: 10px 0 10px; letter-spacing: -.02em; }
.lead-summary { font-family: var(--serif); font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.side-list ol { list-style: none; margin: 0; padding: 0; }
.side-item { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.side-item:first-child { padding-top: 0; }
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-body { min-width: 0; }
.side-topic { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.side-title { font-size: 1rem; line-height: 1.35; margin: 3px 0 5px; font-weight: 700; }
.side-meta { font-size: 12.5px; color: var(--muted); }
.side-thumb { width: 104px; aspect-ratio: 4 / 3; }

/* danh sách tin ngang + sidebar */
.front-main { display: grid; gap: 40px; }
.front-list { min-width: 0; }
.row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:first-of-type { padding-top: 0; }
.row:last-of-type { border-bottom: 0; }
.row-thumb { width: 34%; max-width: 240px; aspect-ratio: 3 / 2; }
.row-body { min-width: 0; flex: 1; }
.row-topic { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.row-topic a { color: var(--brand); text-decoration: none; }
.row-title { font-size: 1.2rem; line-height: 1.3; margin: 4px 0 6px; }
.row-summary { font-family: var(--serif); color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .pmeta { margin-top: 8px; }
.front-list .pager { margin-top: 28px; }
.sidebar { display: grid; gap: 30px; align-content: start; }
.sb-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 22px 20px; background-image: radial-gradient(360px 200px at 100% 0%, rgba(224, 168, 38, .28), transparent 60%); }
.sb-cta .kicker { color: var(--gold); margin-bottom: 6px; }
.sb-cta h3 { color: #fff; font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; letter-spacing: -.02em; }
.sb-cta p:not(.kicker) { color: rgba(255, 255, 255, .78); font-size: 14.5px; margin-bottom: 16px; line-height: 1.55; }
.sb-cta .btn { width: 100%; }
.sb-stats { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; gap: 22px; }
.sb-stats li { display: flex; flex-direction: column; }
.sb-stats strong { font-size: 1.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.sb-stats span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.sb-rank { list-style: none; margin: 0; padding: 0; }
.sb-rank li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sb-rank li:first-child { padding-top: 2px; }
.sb-rank li:last-child { border-bottom: 0; }
.sb-rank .rank { font-size: 1.5rem; font-weight: 800; color: var(--line-2); line-height: 1; width: 24px; flex: none; margin-top: 1px; }
.sb-rank a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.35; display: block; }
.sb-rank a:hover { color: var(--brand); }
.sb-rank small { color: var(--muted); font-size: 12.5px; }
.sb-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: .15s; }
.sb-topics a:hover, .sb-topics a.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.sb-topics a span { font-size: 11.5px; color: var(--muted); }
.sb-steps { list-style: none; margin: 0 0 10px; padding: 0; }
.sb-steps li { display: flex; gap: 12px; padding: 7px 0; }
.sb-step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.sb-steps strong { display: block; font-size: 15px; }
.sb-steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 900px) {
  .front-top { grid-template-columns: 1.65fr 1fr; gap: 40px; align-items: start; }
  .front-main { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .row-thumb { width: 240px; }
}
@media (max-width: 599px) {
  .front-strip-inner { gap: 10px; }
  .row { gap: 12px; padding: 14px 0; }
  .row-thumb { width: 34%; aspect-ratio: 1; border-radius: 6px; }
  .row-summary { display: none; }
  .row-title { font-size: 1.05rem; }
  .side-thumb { width: 92px; }
}
@media (max-width: 599px) { .row .pmeta time, .row .pmeta .dot { display: none; } }

/* ---------- khối chuyên mục trên trang chủ ---------- */
.tsec { padding: 24px 0 26px; border-bottom: 1px solid var(--line-2); }
.tsec:first-child { padding-top: 0; }
.tsec:last-child { border-bottom: 0; }
.tsec .sec-title { margin-bottom: 16px; }
.tsec .sec-title > span a { color: var(--ink); text-decoration: none; }
.tsec .sec-title > span a:hover { color: var(--brand); }
.tsec-grid { display: grid; gap: 20px; }
.tsec-lead-thumb { aspect-ratio: 16 / 9; border-radius: 6px; }
.tsec-lead-title { font-size: 1.22rem; line-height: 1.3; margin: 12px 0 6px; }
.tsec-lead-summary { font-family: var(--serif); color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tsec-more { list-style: none; margin: 0; padding: 0; }
.tsec-more li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tsec-more li:first-child { padding-top: 0; }
.tsec-more li:last-child { border-bottom: 0; }
.tsec-more-thumb { width: 96px; aspect-ratio: 4 / 3; }
.tsec-more-body { min-width: 0; }
.tsec-more-title { font-size: 15px; line-height: 1.35; font-weight: 700; margin: 0 0 4px; }
.tsec-more-meta { font-size: 12.5px; color: var(--muted); }
@media (min-width: 720px) { .tsec-grid { grid-template-columns: 1.15fr 1fr; gap: 24px; } }

/* ---------- canh đều hai bên cho đoạn văn (đại ca thích justify) ---------- */
.lead-summary, .row-summary, .tsec-lead-summary, .card-summary, .article-summary, .article-body p, .article-body li, .sb-cta p:not(.kicker), .sb-steps p, .comment-body p, .c-body { text-align: justify; text-justify: inter-word; hyphens: auto; }
.lead-title, .side-title, .tsec-lead-title, .tsec-more-title, .row-title, .card-title, .article-hero h1, .sb-rank a { text-align: justify; text-justify: inter-word; }

/* ---------- hình trong thân bài (markdown ![chú thích](/img/...)) ---------- */
.article-figure { margin: 24px 0 26px; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.article-figure figcaption { font-family: var(--font); font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.45; }

/* ---------- ô chia sẻ cuối bài: link ngắn hienke.vn/<mã> + link đầy đủ ---------- */
.share-box { margin: 28px 0 8px; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.share-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.share-box-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink); }
.share-box-title svg { width: 16px; height: 16px; color: var(--brand); }
.share-box-social { display: inline-flex; gap: 6px; }
.share-box-social .icon-btn { width: 32px; height: 32px; }
.share-box-social .icon-btn svg { width: 15px; height: 15px; }
.share-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.share-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.share-url { font-family: var(--font); font-size: 15.5px; font-weight: 700; color: var(--brand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-url-long { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.share-url:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .share-row { grid-template-columns: minmax(0, 1fr) auto; }
  .share-label { grid-column: 1 / -1; padding-top: 2px; }
}
.my-short { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--brand); cursor: pointer; }
.my-short svg { width: 14px; height: 14px; }
.my-short:hover span { text-decoration: underline; }
