/* =============================================================================
   Landing page8 — "Tạp chí" (Editorial / báo in khổ lớn)
   Prefix: ed-   ·   Body: .landing-page.page-8.ed
   Font: Fraunces (tiêu đề, trích dẫn, số) + Inter Tight (giao diện, nhãn, form)
   ============================================================================= */

/* ---------- 1. Token & nền giấy ---------- */
body.ed {
    --ed-paper: #f4efe6;
    --ed-paper-2: #ebe3d4;
    --ed-paper-3: #faf7f0;
    --ed-ink: #16130f;
    --ed-ink-2: #3d362e;
    --ed-muted: #6b6257;
    --ed-rule: #1a1612;
    --ed-rule-soft: rgba(26, 22, 18, .2);
    --ed-accent: #d23f1f;
    --ed-accent-ink: #b0341a;      /* chữ nhỏ màu nhấn trên nền giấy (đủ tương phản) */
    --ed-accent-light: #ec6a4b;    /* chữ nhỏ màu nhấn trên nền mực */
    --ed-accent-soft: #f3d9cf;

    --ed-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --ed-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

    --ed-wrap-max: 1320px;
    --ed-gutter: clamp(1rem, 3.2vw, 2.5rem);
    --ed-sec-pad: clamp(4rem, 8vw, 7.5rem);
    --ed-bar-h: 3.25rem;

    /* vân giấy: nhiễu SVG rất nhẹ */
    --ed-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .05 .42 0 0 0 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    /* kẻ đôi đậm–mảnh kiểu báo in, dùng làm background */
    --ed-dbl-top: linear-gradient(var(--ed-rule), var(--ed-rule)) 0 0 / 100% 3px no-repeat,
                  linear-gradient(var(--ed-rule), var(--ed-rule)) 0 6px / 100% 1px no-repeat;

    margin: 0;
    background-color: var(--ed-paper);
    background-image: var(--ed-grain);
    color: var(--ed-ink);
    font-family: var(--ed-sans);
    font-size: 1rem;
    line-height: 1.6;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.ed *,
body.ed *::before,
body.ed *::after { box-sizing: border-box; }

body.ed ::selection { background: var(--ed-accent); color: var(--ed-paper); }

body.ed a:focus-visible,
body.ed button:focus-visible,
body.ed summary:focus-visible,
body.ed input:focus-visible,
body.ed select:focus-visible {
    outline: 2px solid var(--ed-accent);
    outline-offset: 3px;
}

.ed-wrap {
    width: 100%;
    max-width: calc(var(--ed-wrap-max) + 2 * var(--ed-gutter));
    margin: 0 auto;
    padding-inline: var(--ed-gutter);
}

.ed-ic {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* ---------- 2. Thành phần dùng chung ---------- */
.ed-label {
    margin: 0 0 1rem;
    padding-top: .8rem;
    border-top: 3px solid var(--ed-rule);
    font: 700 .7rem/1.2 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-ink);
}

.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7em;
    padding: 1.05em 1.6em;
    border: 1.5px solid var(--ed-ink);
    border-radius: 0;
    font: 600 .78rem/1 var(--ed-sans);
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.ed-btn .ed-ic { width: 1.15em; height: 1.15em; transition: transform .25s ease; }
.ed-btn:hover .ed-ic { transform: translateX(3px); }

.ed-btn--ink { background: var(--ed-ink); color: var(--ed-paper); }
.ed-btn--ink:hover { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }

.ed-btn--paper { background: var(--ed-paper); border-color: var(--ed-paper); color: var(--ed-ink); }
.ed-btn--paper:hover { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }

.ed-btn--sm { padding: .78em 1.15em; font-size: .7rem; }

.ed-link {
    color: var(--ed-ink);
    font: 600 .76rem/1.2 var(--ed-sans);
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: .5em;
    transition: color .2s ease, text-underline-offset .2s ease;
}
.ed-link:hover { color: var(--ed-accent-ink); text-underline-offset: .3em; }
.ed-link--arrow span { display: inline-block; transition: transform .25s ease; }
.ed-link--arrow:hover span { transform: translateX(3px); }

.ed-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem 1.9rem;
}
.ed-cta-row--center { justify-content: center; }
.ed-cta-note {
    font: 500 .8rem/1.3 var(--ed-sans);
    color: var(--ed-muted);
    font-style: italic;
}

/* ---------- 3. Header: dải ngày + tiêu đề báo + thanh menu ---------- */
.ed-head {
    --ed-strip-h: 2.25rem;
    --ed-mast-pad: clamp(.85rem, 2.2vw, 1.6rem);
    --ed-ear-w: 10.5rem;
    --ed-mast-avail: calc(100vw - 2 * var(--ed-gutter));
    /* cỡ chữ tiêu đề báo co theo độ dài tên miền để luôn nằm trên 1 dòng */
    --ed-mast-fs: min(clamp(2.5rem, 9vw, 8.5rem), calc(var(--ed-mast-avail) / (var(--ed-len, 12) * .52)));
    --ed-mast-h: calc(var(--ed-mast-fs) * 1.08 + var(--ed-mast-pad) * 2 + 8px);

    position: sticky;
    /* chỉ thanh menu dính lại, dải ngày + tiêu đề cuộn khuất */
    top: calc(-1 * (var(--ed-strip-h) + var(--ed-mast-h)));
    z-index: 60;
    background-color: var(--ed-paper);
    background-image: var(--ed-grain);
}

.ed-strip-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--ed-strip-h);
    border-bottom: 1px solid var(--ed-rule);
    font: 600 .66rem/1 var(--ed-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ed-ink-2);
    white-space: nowrap;
}
.ed-strip-mid { color: var(--ed-accent-ink); }

.ed-mast-in {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--ed-mast-h);
    padding-bottom: 8px;
    overflow: hidden; /* phòng tên miền quá dài: cắt thay vì gây cuộn ngang */
}
/* nét đậm phía trên nét mảnh → kẻ đôi dưới tiêu đề báo */
.ed-mast-in::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 3px;
    background: var(--ed-rule);
}
.ed-mast-in::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ed-rule);
}

.ed-mast-title {
    font-family: var(--ed-serif);
    font-size: var(--ed-mast-fs);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--ed-ink);
    text-decoration: none;
    white-space: nowrap;
}
.ed-mast-title em,
.ed-bar-brand em,
.ed-foot-brand em {
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--ed-accent);
}

/* "tai báo" hai bên tiêu đề (chỉ màn rộng) */
.ed-ear {
    position: absolute;
    top: calc(50% - 4px);
    width: var(--ed-ear-w);
    margin: 0;
    padding: .7rem 0;
    transform: translateY(-50%);
    border-block: 1px solid var(--ed-rule);
    font: 500 .74rem/1.45 var(--ed-sans);
    color: var(--ed-ink-2);
    text-align: center;
    display: none;
}
.ed-ear--l { left: 0; }
.ed-ear--r { right: 0; }
.ed-ear-k {
    display: block;
    margin-bottom: .3rem;
    font: italic 600 .95rem/1.2 var(--ed-serif);
    letter-spacing: 0;
    color: var(--ed-accent-ink);
}

.ed-bar { position: relative; }
.ed-bar-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1.5rem;
    height: var(--ed-bar-h);
    border-bottom: 1px solid var(--ed-rule);
}
.ed-head.is-stuck .ed-bar {
    box-shadow: 0 14px 24px -22px rgba(22, 19, 15, .55);
}

.ed-toggle { display: none; }
.ed-bar-cta { display: none; }

.ed-bar-lead {
    grid-column: 1;
    display: grid;
    align-items: center;
    justify-items: start;
    min-width: 0;
}
.ed-bar-lead > * {
    grid-area: 1 / 1;
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.ed-bar-edition {
    font: italic 500 .95rem/1 var(--ed-serif);
    color: var(--ed-muted);
}
.ed-bar-brand {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 800 1.4rem/1.1 var(--ed-serif);
    letter-spacing: -.03em;
    color: var(--ed-ink);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}
.ed-head.is-stuck .ed-bar-brand { opacity: 1; visibility: visible; transform: none; }
.ed-head.is-stuck .ed-bar-edition { opacity: 0; transform: translateY(-8px); }

.ed-nav {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
@supports (grid-template-columns: subgrid) {
    /* menu nằm giữa thanh, cụm đăng nhập canh phải */
    .ed-nav { display: grid; grid-template-columns: subgrid; }
}

.ed-nav-links {
    --ed-nav-gap: clamp(1.4rem, 2.8vw, 2.75rem);
    display: flex;
    align-items: center;
    gap: var(--ed-nav-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.ed-nav-links li { position: relative; }
.ed-nav-links li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--ed-nav-gap) / -2);
    width: 4px;
    height: 4px;
    background: var(--ed-accent);
    transform: translate(-50%, -50%) rotate(45deg);
}
.ed-nav-links a {
    position: relative;
    display: inline-block;
    padding: .55rem 0;
    font: 600 .72rem/1 var(--ed-sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ed-ink);
    text-decoration: none;
    transition: color .2s ease;
}
.ed-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .15rem;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.ed-nav-links a:hover { color: var(--ed-accent-ink); }
.ed-nav-links a:hover::after { transform: scaleX(1); }
.ed-nav-no { display: none; }

.ed-nav-auth {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.ed-nav-auth .ed-link { font-size: .7rem; text-underline-offset: .45em; }

@media (min-width: 1200px) {
    .ed-ear { display: block; }
    .ed-head {
        --ed-mast-avail: calc(min(100vw, var(--ed-wrap-max) + 2 * var(--ed-gutter)) - 2 * var(--ed-gutter) - 2 * (var(--ed-ear-w) + 2.5rem));
    }
}

/* ---------- 4. Trang nhất ---------- */
.ed-hero {
    padding: clamp(2.25rem, 4.5vw, 3.75rem) 0 clamp(3.5rem, 6vw, 5rem);
}
.ed-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22.5rem);
}
.ed-hero-main { padding-right: clamp(2rem, 4vw, 3.5rem); }
.ed-hero-side {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-left: clamp(1.5rem, 2.6vw, 2.5rem);
    border-left: 1px solid var(--ed-rule);
}

.ed-kicker {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 1.6rem;
    font: 700 .72rem/1.2 var(--ed-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ed-accent-ink);
}
.ed-kicker i { flex: 0 0 2.75rem; height: 1px; background: var(--ed-rule); }
.ed-kicker em { font-style: normal; font-weight: 500; color: var(--ed-muted); letter-spacing: .16em; }

.ed-h1 {
    margin: 0 0 1.6rem;
    font-family: var(--ed-serif);
    font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.9rem);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.028em;
    color: var(--ed-ink);
    text-wrap: balance;
}
.ed-h1 em {
    white-space: nowrap;
    font-style: italic;
    font-weight: 500;
    color: var(--ed-accent);
}
.ed-h1-dom {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .9rem;
    font: italic 400 clamp(1.1rem, .95rem + .6vw, 1.5rem)/1.2 var(--ed-serif);
    letter-spacing: 0;
    color: var(--ed-ink-2);
}
.ed-h1-dom::after {
    content: "";
    flex: 0 1 4rem;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.ed-standfirst {
    max-width: 38em;
    margin: 0 0 1.9rem;
    font: 400 clamp(1.14rem, 1rem + .55vw, 1.42rem)/1.45 var(--ed-serif);
    color: var(--ed-ink-2);
    text-wrap: pretty;
}

.ed-lede {
    columns: 2 19rem;
    column-gap: 2.4rem;
    column-rule: 1px solid var(--ed-rule-soft);
    padding-top: 1.6rem;
    border-top: 1px solid var(--ed-rule);
    font: 400 1.02rem/1.7 var(--ed-serif);
    color: var(--ed-ink);
}
/* canh đều chỉ khi cột đủ rộng, tránh "sông chữ" ở cột hẹp */
@media (min-width: 1200px) {
    .ed-lede { text-align: justify; text-justify: inter-word; }
}
.ed-lede p { margin: 0 0 1em; }
.ed-lede p:last-child { margin-bottom: 0; }
/* chữ hoa thả (drop cap) */
.ed-lede p:first-child::first-letter {
    float: left;
    margin: .07em .12em 0 -.02em;
    font-family: var(--ed-serif);
    font-size: 4.35em;
    font-weight: 800;
    line-height: .8;
    color: var(--ed-accent);
}

.ed-hero-main .ed-cta-row {
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--ed-rule-soft);
}

/* mục lục "Trong số này" */
.ed-toc { margin: 0; padding: 0; list-style: none; }
.ed-toc a {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    padding: .5rem 0;
    color: var(--ed-ink);
    text-decoration: none;
    font: 500 1.08rem/1.3 var(--ed-serif);
}
.ed-toc-t { transition: color .2s ease; }
.ed-toc-dots {
    flex: 1 1 auto;
    min-width: 1.25rem;
    height: .5em;
    background: radial-gradient(circle, currentColor .8px, transparent 1.2px) 0 100% / 6px 4px repeat-x;
    opacity: .45;
}
.ed-toc-n {
    font: italic 500 1.1rem/1 var(--ed-serif);
    font-variant-numeric: oldstyle-nums;
    color: var(--ed-accent-ink);
}
.ed-toc a:hover .ed-toc-t { color: var(--ed-accent-ink); }

.ed-pullstat {
    margin: 0;
    padding-top: 1.35rem;
    background: var(--ed-dbl-top);
}
.ed-pullstat-n {
    margin: 0;
    font: 300 clamp(4.25rem, 3rem + 3vw, 6.25rem)/.95 var(--ed-serif);
    letter-spacing: -.045em;
    font-variant-numeric: lining-nums;
    color: var(--ed-ink);
}
.ed-pullstat-n span { font-weight: 300; }
.ed-pullstat-n sup,
.ed-stat-n sup {
    position: relative;
    top: -.05em;
    margin-left: .04em;
    font-size: .5em;
    font-weight: 400;
    line-height: 0;
    vertical-align: super;
    color: var(--ed-accent);
}
.ed-pullstat figcaption {
    max-width: 17em;
    margin-top: .7rem;
    font: italic 400 1.02rem/1.45 var(--ed-serif);
    color: var(--ed-ink-2);
}

.ed-brief ul { margin: 0; padding: 0; list-style: none; }
.ed-brief li {
    padding: .65rem 0;
    border-bottom: 1px solid var(--ed-rule-soft);
    font: 400 .92rem/1.5 var(--ed-sans);
    color: var(--ed-ink-2);
}
.ed-brief li:first-child { padding-top: 0; }
.ed-brief strong {
    margin-right: .35rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ed-accent-ink);
}

/* ---------- 5. Băng chạy nền tảng ---------- */
.ed-ticker {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--ed-ink);
    color: var(--ed-paper);
    border-block: 1px solid var(--ed-ink);
}
.ed-ticker-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex: none;
    padding: 0 1.4rem;
    background: var(--ed-accent);
    font: 700 .68rem/1 var(--ed-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #fff;
}
.ed-ticker-view {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.ed-ticker-track {
    display: flex;
    width: max-content;
    animation: ed-marquee 70s linear infinite;
}
.ed-ticker:hover .ed-ticker-track { animation-play-state: paused; }
.ed-ticker-list {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ed-ticker-list li {
    display: flex;
    align-items: center;
    padding: 1.05rem 0;
    font: italic 400 clamp(1.3rem, 1rem + 1vw, 1.95rem)/1.1 var(--ed-serif);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.ed-ticker-list li::after {
    content: "✦";
    margin: 0 1.6rem;
    font: normal 400 .55em/1 var(--ed-sans);
    color: var(--ed-accent);
}
@keyframes ed-marquee { to { transform: translateX(-50%); } }

/* ---------- 6. Section chung ---------- */
.ed-sec {
    padding: var(--ed-sec-pad) 0;
    scroll-margin-top: calc(var(--ed-bar-h) + .75rem);
}

.ed-sechead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
    column-gap: 3rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
    padding-top: 1.4rem;
    background: var(--ed-dbl-top);
}
.ed-sechead-k {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0;
    font: 700 .7rem/1 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-accent-ink);
}
.ed-sechead-k span {
    padding: .42rem .55rem .38rem;
    background: var(--ed-ink);
    color: var(--ed-paper);
    letter-spacing: .16em;
}
.ed-h2 {
    margin: 1.1rem 0 0;
    font-family: var(--ed-serif);
    font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.9rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--ed-ink);
    text-wrap: balance;
}
.ed-h2 em { font-style: italic; font-weight: 500; color: var(--ed-accent); }
.ed-sechead-dek {
    margin: 0;
    padding-bottom: .4rem;
    font: italic 400 1.1rem/1.5 var(--ed-serif);
    color: var(--ed-ink-2);
    text-wrap: pretty;
}

.ed-h3 {
    margin: 0 0 .85rem;
    font-family: var(--ed-serif);
    font-size: clamp(1.3rem, 1.12rem + .6vw, 1.62rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.012em;
    color: var(--ed-ink);
    text-wrap: balance;
}

/* ---------- 7. Chuyên mục (6 bài, lưới 3 cột có kẻ cột) ---------- */
.ed-features { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ed-arts-clip {
    --ed-col-pad: clamp(1.25rem, 2.4vw, 2.25rem);
    overflow: hidden;
}
/* lùi lưới ra 2 bên để cột đầu thẳng mép chữ, nét kẻ thừa bị cắt */
.ed-arts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -1px calc(-1 * var(--ed-col-pad)) 0;
}
.ed-art {
    padding: 2.1rem var(--ed-col-pad) 2.6rem;
    border-left: 1px solid var(--ed-rule-soft);
    border-top: 1px solid var(--ed-rule-soft);
}
.ed-art-no {
    display: block;
    margin-bottom: 1.35rem;
    font: 300 clamp(3.4rem, 2.8rem + 1.8vw, 4.6rem)/.9 var(--ed-serif);
    letter-spacing: -.03em;
    font-variant-numeric: lining-nums;
    color: transparent;
    -webkit-text-stroke: 1px var(--ed-ink);
    transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}
.ed-art:hover .ed-art-no { color: var(--ed-accent); -webkit-text-stroke-color: var(--ed-accent); }
.ed-art-cat {
    margin: 0 0 .65rem;
    font: 700 .66rem/1 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-accent-ink);
}
.ed-art > p:last-child {
    margin: 0;
    font: 400 .98rem/1.65 var(--ed-sans);
    color: var(--ed-ink-2);
    text-wrap: pretty;
}

.ed-plat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    margin: .2rem 0 0;
    padding: 0;
    list-style: none;
}
.ed-plat li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    border-bottom: 1px dotted rgba(26, 22, 18, .35);
    font: 500 .92rem/1.3 var(--ed-sans);
    color: var(--ed-ink);
}
.ed-plat .ed-ic { width: 15px; height: 15px; color: var(--ed-ink-2); }

/* ---------- 8. Số liệu ---------- */
.ed-stats { padding: clamp(1rem, 2vw, 1.5rem) 0; }
.ed-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px 0;
    background:
        linear-gradient(var(--ed-rule), var(--ed-rule)) 0 0 / 100% 3px no-repeat,
        linear-gradient(var(--ed-rule), var(--ed-rule)) 0 6px / 100% 1px no-repeat,
        linear-gradient(var(--ed-rule), var(--ed-rule)) 0 calc(100% - 6px) / 100% 1px no-repeat,
        linear-gradient(var(--ed-rule), var(--ed-rule)) 0 100% / 100% 3px no-repeat;
}
.ed-stat {
    padding: clamp(1.75rem, 3.5vw, 3rem) 1rem clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}
.ed-stat + .ed-stat { border-left: 1px solid var(--ed-rule-soft); }
.ed-stat-n {
    margin: 0;
    font: 300 clamp(3.4rem, 1.8rem + 6vw, 8rem)/.92 var(--ed-serif);
    letter-spacing: -.045em;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ed-ink);
}
.ed-stat-n em {
    margin-left: .03em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--ed-accent);
}
.ed-stat-l {
    margin: 1.1rem 0 0;
    font: 700 .7rem/1.3 var(--ed-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ed-ink-2);
}

/* ---------- 9. Quy trình 3 bước ---------- */
.ed-steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.ed-step {
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    border-left: 1px solid var(--ed-rule-soft);
}
.ed-step:first-child { padding-left: 0; border-left: 0; }
.ed-step:last-child { padding-right: 0; }
.ed-step-n {
    display: block;
    margin-bottom: 1.4rem;
    font: italic 300 clamp(4.5rem, 3rem + 4vw, 7.25rem)/.85 var(--ed-serif);
    letter-spacing: -.01em;
    color: var(--ed-accent);
}
.ed-step-k {
    margin: 0 0 .6rem;
    font: 700 .66rem/1 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-muted);
}
.ed-step p:not(.ed-step-k) {
    margin: 0;
    font: 400 .98rem/1.65 var(--ed-sans);
    color: var(--ed-ink-2);
    text-wrap: pretty;
}
.ed-step .ed-link { display: inline-block; margin-top: 1.25rem; }

/* ---------- 10. Lời toà soạn ---------- */
.ed-quote {
    padding: var(--ed-sec-pad) 0;
    background-color: var(--ed-paper-2);
    background-image: var(--ed-grain);
    border-block: 1px solid var(--ed-rule);
}
.ed-quote-fig {
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
}
.ed-quote-fig::before {
    content: "\201C";
    display: block;
    height: .52em;
    font: 800 clamp(6rem, 4.5rem + 5vw, 10rem)/1 var(--ed-serif);
    color: var(--ed-accent);
}
.ed-quote blockquote { margin: 0; }
.ed-quote blockquote p {
    margin: 0;
    font: italic 400 clamp(1.65rem, 1.05rem + 2.5vw, 3.2rem)/1.24 var(--ed-serif);
    letter-spacing: -.015em;
    color: var(--ed-ink);
    text-wrap: balance;
}
.ed-quote blockquote p::after { content: "\201D"; color: var(--ed-accent); }
.ed-quote blockquote em { white-space: nowrap; font-style: normal; font-weight: 500; color: var(--ed-accent); }
.ed-quote figcaption {
    display: inline-block;
    margin-top: 2.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-rule);
    font: 700 .72rem/1.3 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-ink-2);
}

/* ---------- 11. Phiếu đăng ký (khung cắt rời) ---------- */
.ed-coupon {
    position: relative;
    padding: clamp(1.25rem, 3.4vw, 3rem);
    border: 2px dashed var(--ed-ink);
}
.ed-coupon-cut {
    position: absolute;
    top: 0;
    left: clamp(1.5rem, 5vw, 4rem);
    width: 28px;
    height: 28px;
    padding: 0 5px;
    box-sizing: content-box;
    background: var(--ed-paper);
    color: var(--ed-ink);
    transform: translateY(-53%);
}
.ed-coupon-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--ed-rule);
    font: 700 .66rem/1.2 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-muted);
}
.ed-coupon-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.ed-coupon-copy { position: relative; padding-bottom: 1rem; }
@media (min-width: 992px) {
    /* form đăng ký dài hơn cột chữ → cột chữ dính theo khi cuộn */
    .ed-coupon-copy { position: sticky; top: calc(var(--ed-bar-h) + 2rem); }
}
.ed-coupon-copy .ed-h2 { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem); }
.ed-coupon-lead {
    max-width: 30em;
    margin: 1.35rem 0 1.75rem;
    font: 400 1.12rem/1.6 var(--ed-serif);
    color: var(--ed-ink-2);
    text-wrap: pretty;
}
.ed-checks { margin: 0; padding: 0; list-style: none; }
.ed-checks li {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    padding: .72rem 0;
    border-top: 1px solid var(--ed-rule-soft);
    font: 500 .97rem/1.45 var(--ed-sans);
    color: var(--ed-ink);
}
.ed-checks li:last-child { border-bottom: 1px solid var(--ed-rule-soft); }
.ed-checks .ed-ic { width: 16px; height: 16px; color: var(--ed-accent); transform: translateY(2px); }

/* con dấu đỏ */
.ed-stamp {
    position: absolute;
    right: -.5rem;
    bottom: -1.5rem;
    width: 7.5rem;
    height: 7.5rem;
    color: var(--ed-accent);
    opacity: .88;
    transform: rotate(-14deg);
    pointer-events: none;
}
.ed-stamp-ring {
    font-family: var(--ed-sans);
    font-size: 9.4px;
    font-weight: 700;
    letter-spacing: .08em;
    fill: currentColor;
}
.ed-stamp-mid {
    font-family: var(--ed-serif);
    font-size: 17px;
    font-style: italic;
    font-weight: 700;
    fill: currentColor;
}

/* bọc login_box: tạo stacking context riêng để icon (z-index 990) không đè header */
.ed-coupon-form { position: relative; z-index: 1; }

/* ---------- 12. login_box theo giao diện giấy ---------- */
.ed-auth .box-cover {
    padding: 0;
    background: none;
}
.ed-auth .box-cover .container { width: 100%; max-width: none; padding: 0; }
.ed-auth .box-cover .row { display: block; margin: 0; }
.ed-auth .box-cover .block-left { display: none; }
.ed-auth .box-cover .block-right {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.ed-auth .box-cover .card,
.ed-auth .box-cover .card.shadow-lg {
    margin: 0;
    background: var(--ed-paper-2);
    border: 1.5px solid var(--ed-ink);
    border-radius: 0;
    box-shadow: 7px 7px 0 rgba(22, 19, 15, .9) !important;
}
.ed-auth .box-cover .card-body { padding: clamp(1.35rem, 3vw, 2.25rem); }

.ed-auth .box-cover .auth-widget > .d-flex {
    flex-direction: row-reverse;
    gap: 1rem;
    margin-bottom: 1.6rem !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ed-rule);
}
.ed-auth .box-cover h2 {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(1.7rem, 1.35rem + 1vw, 2.15rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ed-ink);
}
.ed-auth .box-cover .img-fluid {
    width: auto;
    max-width: 120px;
    max-height: 42px !important;
}
.ed-auth .box-cover .form-group { margin-bottom: 1.3rem !important; }
.ed-auth .box-cover label.font-weight-semibold {
    margin-bottom: .5rem;
    font: 700 .68rem/1.3 var(--ed-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ed-ink-2);
}
.ed-auth .box-cover .input-affix .prefix-icon {
    left: .15rem;
    font-size: .95rem;
    color: var(--ed-muted);
    transition: color .2s ease;
}
/* ô nhập như dòng kẻ để điền trên phiếu báo */
.ed-auth .box-cover .input-affix .form-control:not(:first-child) {
    height: auto;
    padding: .65rem .35rem .65rem 1.85rem;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid var(--ed-ink);
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    font: 400 1rem/1.5 var(--ed-sans);
    color: var(--ed-ink);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ed-auth .box-cover .input-affix .form-control:not(:first-child):focus {
    background: rgba(250, 247, 240, .7);
    border-bottom-color: var(--ed-accent);
    box-shadow: 0 1.5px 0 var(--ed-accent);
}
.ed-auth .box-cover .input-affix:focus-within .prefix-icon { color: var(--ed-accent); }
.ed-auth .box-cover .form-control::placeholder { color: rgba(61, 54, 46, .48); }
.ed-auth .box-cover .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px var(--ed-paper-3) inset;
    -webkit-text-fill-color: var(--ed-ink);
}

.ed-auth .box-cover a { color: var(--ed-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ed-auth .box-cover a:hover,
.ed-auth .box-cover a:focus { color: var(--ed-ink); text-decoration: underline; }
.ed-auth .box-cover a.float-right {
    margin-top: .05rem;
    font-size: .8rem !important;
    font-weight: 500;
}
.ed-auth .box-cover .font-size-14 {
    font-size: .88rem !important;
    color: var(--ed-ink-2);
}

.ed-auth .box-cover .btn.btn-primary {
    padding: 1rem 1.6rem;
    background: var(--ed-ink);
    border: 1.5px solid var(--ed-ink);
    border-radius: 0;
    font: 600 .74rem/1 var(--ed-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ed-paper);
    box-shadow: none;
}
.ed-auth .box-cover .btn.btn-primary:hover,
.ed-auth .box-cover .btn.btn-primary:focus-visible {
    background: var(--ed-accent);
    border-color: var(--ed-accent);
    color: #fff;
}
.ed-auth .box-cover #generate_email.btn {
    padding: .6rem .9rem;
    background: transparent;
    font-size: .64rem;
    color: var(--ed-ink);
}
.ed-auth .box-cover #generate_email.btn:hover { background: var(--ed-ink); color: var(--ed-paper); }
.ed-auth .box-cover .try-feature { margin-top: .9rem; }
.ed-auth .box-cover .term-agree input { accent-color: var(--ed-ink); }

/* popup yêu cầu mật khẩu + báo lỗi xác nhận */
.ed-auth .box-cover .form-group.check-password {
    padding: .7rem .9rem .5rem 1rem;
    background: var(--ed-paper-3);
    border: 1px solid var(--ed-ink);
    box-shadow: 5px 5px 0 rgba(22, 19, 15, .12);
    font: 400 .86rem/1.5 var(--ed-sans);
    color: var(--ed-ink-2);
}
.ed-auth .box-cover .form-group.check-password > div:first-child {
    font: 700 .66rem/1.4 var(--ed-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ed-ink);
}
.ed-auth .box-cover .invalid::before { color: var(--ed-muted); }
.ed-auth .box-cover .valid::before { color: #2f6b3c; }
.ed-auth .box-cover .form-group.re-check-password { font-size: .88rem; color: var(--ed-accent-ink); }

/* chọn ngôn ngữ */
.ed-auth .box-cover .lang-picker-row {
    margin-top: .4rem;
    padding: 1.1rem 0 0;
    border-top: 1px dotted rgba(26, 22, 18, .35);
}
.ed .lang-picker,
.ed .lp-menu {
    --lp-bg: var(--ed-paper-3);
    --lp-border: rgba(26, 22, 18, .4);
    --lp-ink: var(--ed-ink);
    --lp-ink-2: var(--ed-ink-2);
    --lp-muted: var(--ed-muted);
    --lp-hover: var(--ed-paper-2);
    --lp-primary: var(--ed-accent-ink);
    --lp-primary-soft: rgba(210, 63, 31, .1);
    font-family: var(--ed-sans);
}
.ed .lang-picker .lp-btn { border-radius: 0; }
.ed .lp-menu { border-radius: 0; box-shadow: 6px 6px 0 rgba(22, 19, 15, .14); }
.ed .lp-menu .lp-search { border-radius: 0; }
.ed .lp-menu .lp-opt { border-radius: 0; }
.ed .lp-menu .lp-search input:focus-visible { outline: none; }

/* ---------- 13. Bảng giá niêm yết ---------- */
.ed-prices-sheet {
    padding: 1.25rem 0 .5rem;
    background: var(--ed-dbl-top);
    border-bottom: 1px solid var(--ed-rule);
}
.ed-prices-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ed-prices #label_table_prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
}
.ed-prices #label_table_prices > span {
    margin: 0 !important;
    font: 700 .68rem/1.2 var(--ed-sans) !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ed-ink-2);
}
.ed-prices #service-category-select {
    min-width: 12rem;
    padding: .55rem 2.4rem .55rem .8rem;
    border: 1.5px solid var(--ed-ink);
    border-radius: 0;
    background: var(--ed-paper-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2316130f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .8rem center;
    -webkit-appearance: none;
    appearance: none;
    font: 500 .95rem/1.3 var(--ed-sans);
    color: var(--ed-ink);
    cursor: pointer;
}
.ed-prices .dataTables_wrapper {
    margin-top: 1.25rem;
    font: 400 .9rem/1.5 var(--ed-sans);
    color: var(--ed-ink-2);
}
.ed-prices .dataTables_wrapper label { font-size: .85rem; }
.ed-prices .dataTables_wrapper .dataTables_length select,
.ed-prices .dataTables_wrapper .dataTables_filter input {
    margin: 0 .35rem;
    padding: .4rem .45rem;
    border: 0;
    border-bottom: 1.5px solid var(--ed-ink);
    border-radius: 0;
    background: transparent;
    font: 500 .9rem/1.3 var(--ed-sans);
    color: var(--ed-ink);
}
.ed-prices .dataTables_wrapper .dataTables_filter input { width: 12rem; max-width: 100%; }
.ed-prices .dataTables_wrapper .dataTables_filter input:focus { border-bottom-color: var(--ed-accent); outline: 0; }

.ed-prices table.dataTable {
    width: 100% !important;
    margin: 1.1rem 0 .5rem !important;
    border-collapse: collapse;
}
.ed-prices #table_prices.table-bordered th,
.ed-prices #table_prices.table-bordered td {
    border: 0;
    border-bottom: 1px solid var(--ed-rule-soft);
}
.ed-prices #table_prices thead th {
    padding: .85rem .8rem .85rem 0;
    background: transparent;
    border-bottom: 2px solid var(--ed-ink);
    font: 700 .68rem/1.3 var(--ed-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ed-ink);
}
.ed-prices #table_prices thead th:last-child,
.ed-prices #table_prices tbody td:last-child { text-align: right; padding-right: 0; }
.ed-prices #table_prices thead th:last-child { padding-right: 1.6rem; }
.ed-prices #table_prices tbody td {
    padding: .8rem .8rem .8rem 0;
    background: transparent;
    vertical-align: baseline;
    font-size: .95rem;
    color: var(--ed-ink);
}
.ed-prices #table_prices tbody td:last-child {
    white-space: nowrap;
    font-family: var(--ed-serif);
    font-size: 1.05rem;
    font-weight: 600 !important;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ed-ink) !important;
}
.ed-prices #table_prices tbody tr { transition: background-color .15s ease; }
.ed-prices #table_prices tbody tr:hover { background: rgba(210, 63, 31, .06); }
.ed-prices #table_prices tbody tr:hover td:last-child { color: var(--ed-accent-ink) !important; }

.ed-prices .dataTables_wrapper .dataTables_info { padding-top: 1rem; font-size: .82rem; color: var(--ed-muted); }
.ed-prices .dataTables_wrapper .dataTables_paginate { padding-top: .75rem; }
.ed-prices .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 2.2rem;
    margin-left: 4px;
    padding: .45em .8em;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    font: 600 .8rem/1.2 var(--ed-sans);
    color: var(--ed-ink) !important;
}
.ed-prices .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: transparent;
    border-color: var(--ed-ink);
    color: var(--ed-ink) !important;
}
.ed-prices .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.ed-prices .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper) !important;
}
.ed-prices .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.ed-prices .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent;
    border-color: transparent;
    color: var(--ed-muted) !important;
}
/* ghi chú cuối bảng (mặc định màu cam) */
.ed-prices-scroll > div > div:last-child:not(.dataTables_wrapper) {
    font: italic 400 .92rem/1.4 var(--ed-serif);
    color: var(--ed-muted) !important;
}

/* ---------- 14. Hỏi & Đáp ---------- */
.ed-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}
.ed-faq-head {
    display: block;
    position: sticky;
    top: calc(var(--ed-bar-h) + 2rem);
    margin-bottom: 0;
}
.ed-faq-head .ed-sechead-dek { margin-top: 1.25rem; }

.ed-faq-item { border-top: 1px solid var(--ed-rule); }
.ed-faq-item:last-child { border-bottom: 1px solid var(--ed-rule); }
.ed-faq-item summary {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem;
    align-items: baseline;
    gap: .75rem;
    padding: 1.35rem 0;
    list-style: none;
    cursor: pointer;
}
.ed-faq-item summary::-webkit-details-marker { display: none; }
.ed-faq-item summary::after {
    content: "+";
    align-self: center;
    font: 300 2rem/1 var(--ed-serif);
    text-align: center;
    color: var(--ed-accent);
}
.ed-faq-item[open] summary::after { content: "\2013"; }
.ed-faq-n {
    font: italic 500 1.05rem/1 var(--ed-serif);
    font-variant-numeric: oldstyle-nums;
    color: var(--ed-muted);
}
.ed-faq-q {
    font: italic 700 clamp(1.14rem, 1rem + .5vw, 1.42rem)/1.3 var(--ed-serif);
    letter-spacing: -.01em;
    color: var(--ed-ink);
    transition: color .2s ease;
}
.ed-faq-item summary:hover .ed-faq-q { color: var(--ed-accent-ink); }
.ed-faq-a { padding: 0 2.25rem 1.6rem 3.15rem; }
.ed-faq-a p {
    max-width: 38em;
    margin: 0;
    font: 400 1rem/1.7 var(--ed-sans);
    color: var(--ed-ink-2);
}
.ed-faq-a .ed-link { font: inherit; letter-spacing: 0; text-transform: none; text-underline-offset: .2em; }

/* ---------- 15. Kêu gọi cuối (nền mực) ---------- */
.ed-final {
    position: relative;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--ed-ink);
    color: var(--ed-paper);
    text-align: center;
}
.ed-final-in { position: relative; }
.ed-final-k {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    margin: 0;
    font: 700 .72rem/1 var(--ed-sans);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ed-accent-light);
}
.ed-final-k::before,
.ed-final-k::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: rgba(244, 239, 230, .4);
}
.ed-final-h {
    margin: 1.4rem auto 1.4rem;
    max-width: 12em;
    font-family: var(--ed-serif);
    font-size: clamp(2.8rem, 1.5rem + 5.6vw, 7rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.ed-final-h em { font-style: italic; font-weight: 500; color: var(--ed-accent-light); }
.ed-final-dek {
    margin: 0 auto 2.4rem;
    max-width: 32em;
    font: italic 400 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.5 var(--ed-serif);
    color: rgba(244, 239, 230, .78);
}
.ed-final .ed-link { color: var(--ed-paper); }
.ed-final .ed-link:hover { color: var(--ed-accent-light); }

/* ---------- 16. Colophon (footer) ---------- */
.ed-foot {
    padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
    background-color: var(--ed-paper-2);
    background-image: var(--ed-grain);
}
.ed-foot-mast {
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
    background:
        linear-gradient(var(--ed-rule), var(--ed-rule)) 0 calc(100% - 4px) / 100% 3px no-repeat,
        linear-gradient(var(--ed-rule), var(--ed-rule)) 0 100% / 100% 1px no-repeat;
}
.ed-foot-brand {
    font: 800 clamp(2.3rem, 1.5rem + 3vw, 4.25rem)/1.1 var(--ed-serif);
    letter-spacing: -.035em;
    color: var(--ed-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ed-foot-tag {
    margin: .7rem 0 0;
    font: 700 .66rem/1.3 var(--ed-sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ed-muted);
}
.ed-foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr);
    padding: 2.5rem 0;
}
.ed-foot-col { padding: 0 clamp(1.25rem, 3vw, 2.75rem); border-left: 1px solid var(--ed-rule-soft); }
.ed-foot-col:first-child { padding-left: 0; border-left: 0; }
.ed-foot-col:last-child { padding-right: 0; }
.ed-foot-h {
    margin: 0 0 1.1rem;
    font: 700 .7rem/1.2 var(--ed-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ed-ink);
}
.ed-foot-col p {
    margin: 0;
    font: 400 1rem/1.7 var(--ed-serif);
    color: var(--ed-ink-2);
    text-wrap: pretty;
}
.ed-foot-plat,
.ed-foot-links { margin: 0; padding: 0; list-style: none; }
.ed-foot-plat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem 1rem;
}
.ed-foot-plat li {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .28rem 0;
    font: 500 .9rem/1.3 var(--ed-sans);
    color: var(--ed-ink-2);
}
.ed-foot-plat .ed-ic { width: 14px; height: 14px; color: var(--ed-ink); }
.ed-foot-links li + li { margin-top: .5rem; }
.ed-foot-links a {
    font: 500 .95rem/1.4 var(--ed-sans);
    color: var(--ed-ink);
    text-decoration: underline;
    text-decoration-color: rgba(26, 22, 18, .3);
    text-underline-offset: .3em;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.ed-foot-links a:hover { color: var(--ed-accent-ink); text-decoration-color: currentColor; }
.ed-foot-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-top: 1.2rem;
    /* chừa chỗ cho nút lên đầu trang (cố định ở góc trái, rộng ~60px) */
    padding-left: max(0px, calc(68px - var(--ed-gutter) - (100vw - min(100vw, var(--ed-wrap-max) + 2 * var(--ed-gutter))) / 2));
    border-top: 1px solid var(--ed-rule);
    font: 600 .66rem/1.5 var(--ed-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ed-muted);
}
.ed-foot-base p { margin: 0; }

/* nút lên đầu trang — góc TRÁI để không đè widget liên hệ bên phải */
.ed-top {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--ed-ink);
    border: 1.5px solid var(--ed-ink);
    color: var(--ed-paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease, border-color .2s ease;
}
.ed-top.is-show { opacity: 1; visibility: visible; transform: none; }
.ed-top:hover { background: var(--ed-accent); border-color: var(--ed-accent); }
.ed-top .ed-ic { width: 18px; height: 18px; }

/* ---------- 17. Chuyển động: kẻ đôi tiêu đề báo "in" ra khi tải, hiện dần khi cuộn ---------- */
.js .ed-mast-in::before,
.js .ed-mast-in::after {
    animation: ed-rule-in 1.2s cubic-bezier(.2, .65, .2, 1) both;
}
.js .ed-mast-in::after { animation-delay: .12s; }
.js .ed-mast-title { animation: ed-fade-in 1s ease both; }
@keyframes ed-rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ed-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.js .ed [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .9s cubic-bezier(.2, .65, .2, 1), transform .9s cubic-bezier(.2, .65, .2, 1);
}
.js .ed [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1199.98px) {
    .ed-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem); }
}

@media (max-width: 991.98px) {
    body.ed { --ed-bar-h: 3.25rem; }
    .ed-head { --ed-strip-h: 2rem; }

    .ed-strip-end { display: none; }

    /* thanh menu: [Mục lục] [tên miền] [Đăng ký] */
    .ed-bar-in { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 1rem; }
    .ed-toggle {
        grid-column: 1;
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        padding: .6rem 0;
        background: none;
        border: 0;
        font: 700 .68rem/1 var(--ed-sans);
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--ed-ink);
        cursor: pointer;
    }
    .ed-toggle .ed-ic { width: 20px; height: 20px; }
    .ed-toggle-close { display: none; }
    .ed-toggle[aria-expanded="true"] .ed-toggle-open { display: none; }
    .ed-toggle[aria-expanded="true"] .ed-toggle-close { display: inline-block; }

    .ed-bar-lead { grid-column: 2; justify-items: center; text-align: center; }
    .ed-bar-brand { font-size: 1.25rem; }
    .ed-bar-cta { grid-column: 3; display: inline-flex; }
    /* menu mở đã có nút Đăng ký riêng */
    .ed-head.is-open .ed-bar-cta { visibility: hidden; }

    .ed-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - var(--ed-bar-h));
        max-height: calc(100dvh - var(--ed-bar-h));
        overflow-y: auto;
        padding: .25rem var(--ed-gutter) 1.6rem;
        background-color: var(--ed-paper);
        background-image: var(--ed-grain);
        border-bottom: 3px solid var(--ed-rule);
        box-shadow: 0 24px 30px -24px rgba(22, 19, 15, .45);
    }
    .ed-head.is-open .ed-nav { display: block; }
    .ed-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .ed-nav-links li + li::before { display: none; }
    .ed-nav-links a {
        display: flex;
        align-items: baseline;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--ed-rule-soft);
        font: 500 1.55rem/1.2 var(--ed-serif);
        letter-spacing: -.015em;
        text-transform: none;
    }
    .ed-nav-links a::after { display: none; }
    .ed-nav-no {
        display: inline;
        min-width: 1.6rem;
        font: italic 500 .95rem/1 var(--ed-serif);
        font-variant-numeric: oldstyle-nums;
        color: var(--ed-accent-ink);
    }
    .ed-nav-auth { justify-content: space-between; padding-top: 1.35rem; }
    .ed-nav-auth .ed-btn { padding: 1em 1.6em; font-size: .74rem; }

    .ed-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ed-hero-main { padding-right: 0; }
    .ed-hero-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 2.5rem;
        margin-top: 3rem;
        padding-left: 0;
        border-left: 0;
    }
    .ed-toc-box { grid-column: 1 / -1; }

    .ed-sechead { grid-template-columns: minmax(0, 1fr); }
    .ed-sechead-dek { grid-column: 1; margin-top: 1.1rem; max-width: 34em; }

    .ed-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ed-steps-list { grid-template-columns: minmax(0, 1fr); }
    .ed-step {
        display: grid;
        grid-template-columns: 7rem minmax(0, 1fr);
        column-gap: 1.5rem;
        padding: 2rem 0;
        border-left: 0;
        border-top: 1px solid var(--ed-rule-soft);
    }
    .ed-step:first-child { border-top: 0; padding-top: 0; }
    .ed-step:last-child { padding-bottom: 0; }
    .ed-step-n { grid-row: 1 / span 4; margin: 0; font-size: 4.5rem; }
    .ed-step > *:not(.ed-step-n) { grid-column: 2; }
    .ed-step .ed-link { justify-self: start; }

    .ed-coupon-grid { grid-template-columns: minmax(0, 1fr); }
    .ed-coupon-copy { padding-bottom: 0; }

    .ed-faq-grid { grid-template-columns: minmax(0, 1fr); }
    .ed-faq-head { position: static; margin-bottom: 2.25rem; }

    .ed-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2.25rem; }
    .ed-foot-col:first-child { grid-column: 1 / -1; padding-right: 0; }
    .ed-foot-col:nth-child(2) { padding-left: 0; border-left: 0; }
}

@media (max-width: 639.98px) {
    .ed-strip-in { justify-content: center; }
    .ed-strip-mid { display: none; }

    .ed-hero-side { grid-template-columns: minmax(0, 1fr); }
    .ed-lede { columns: 1; }

    .ed-ticker-label { padding: 0 1rem; font-size: .6rem; }
    .ed-ticker-list li::after { margin: 0 1.1rem; }

    .ed-arts { grid-template-columns: minmax(0, 1fr); }

    .ed-stats-grid { grid-template-columns: minmax(0, 1fr); }
    .ed-stat {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.3rem 0;
        text-align: left;
    }
    .ed-stat + .ed-stat { border-left: 0; border-top: 1px solid var(--ed-rule-soft); }
    .ed-stat-n { font-size: 3.6rem; }
    .ed-stat-l { margin: 0; text-align: right; }

    .ed-step { grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: 1rem; }
    .ed-step-n { font-size: 3.5rem; }

    .ed-coupon { border-width: 1.5px; }
    .ed-coupon-top span:last-child { display: none; }
    .ed-stamp { width: 5.75rem; height: 5.75rem; right: -.25rem; bottom: auto; top: -.75rem; }
    .ed-coupon-copy .ed-h2 { padding-right: 4.5rem; }
    .ed-auth .box-cover .card,
    .ed-auth .box-cover .card.shadow-lg { box-shadow: 5px 5px 0 rgba(22, 19, 15, .9) !important; }

    .ed-faq-item summary { grid-template-columns: 1.9rem minmax(0, 1fr) 1.25rem; gap: .6rem; }
    .ed-faq-a { padding: 0 0 1.4rem 2.5rem; }

    .ed-foot-grid { grid-template-columns: minmax(0, 1fr); }
    .ed-foot-col,
    .ed-foot-col:nth-child(2) { padding: 0; border-left: 0; }
    /* mobile: đẩy chữ lên trên nút lên đầu trang, chừa phải cho widget liên hệ */
    .ed-foot-base { flex-direction: column; padding: 1.2rem 5rem 4.5rem 0; }
}

@media (max-width: 400px) {
    .ed-bar-edition { display: none; }
    .ed-toggle span { display: none; }
    /* reCAPTCHA rộng cố định 304px — thu nhỏ để không tràn khung */
    .ed-auth .box-cover .g-recaptcha { transform: scale(.86); transform-origin: 0 0; }
}

/* ---------- 19. Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
    .js .ed [data-reveal] { opacity: 1; transform: none; transition: none; }
    .ed-ticker-track,
    .js .ed-mast-in::before,
    .js .ed-mast-in::after,
    .js .ed-mast-title { animation: none; }
    body.ed *,
    body.ed *::before,
    body.ed *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
