/* Hướng dẫn đặt in online — focused, content-first page. */
:root {
  --guide-ink: var(--ink, #14213d);
  --guide-ink-deep: var(--ink-dark, #0b1526);
  --guide-gold: var(--gold, #e3a008);
  --guide-paper: var(--paper, #faf8f4);
  --guide-muted: var(--muted, #667085);
  --guide-line: var(--line, #e4dfd3);
  --guide-radius: 20px;
}

.guide-hero { background: linear-gradient(135deg, #eef3f8 0%, #faf8f4 72%); padding: 1.5rem 0 4.5rem; overflow: hidden; }
.guide-hero .breadcrumb { display: flex; gap: .55rem; align-items: center; margin-bottom: 3rem; color: var(--guide-muted); font-size: .86rem; }
.guide-hero .breadcrumb a { color: var(--guide-ink); font-weight: 650; }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.guide-kicker, .guide-step-label { color: var(--guide-gold); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.guide-kicker { display: inline-flex; align-items: center; gap: .55rem; }
.guide-kicker-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 5px rgba(192,57,43,.1); }
.guide-hero h1 { color: var(--guide-ink-deep); font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; margin: 1rem 0 1.25rem; }
.guide-hero h1 em { color: var(--guide-gold); font-style: normal; }
.guide-lead { max-width: 620px; color: #48566d; font-size: 1.1rem; line-height: 1.7; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.7rem; }
.guide-note { max-width: 570px; margin: 1.1rem 0 0; color: #68768b; font-size: .92rem; line-height: 1.55; }
.guide-hero-visual, .guide-step-media { margin: 0; }
.guide-hero-visual { position: relative; padding: .65rem; border: 1px solid rgba(20,33,61,.1); border-radius: 28px; background: rgba(255,255,255,.62); box-shadow: 0 24px 60px -38px rgba(11,21,38,.55); transform: rotate(1.2deg); }
.guide-hero-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 21px; }
.guide-hero-visual figcaption, .guide-step-media figcaption { color: #778196; font-size: .72rem; line-height: 1.35; margin: .55rem .35rem .15rem; }

.guide-jump { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(20,33,61,.1); background: rgba(250,248,244,.93); backdrop-filter: blur(14px); }
.guide-jump-inner { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-top: .65rem; padding-bottom: .65rem; }
.guide-jump-inner::-webkit-scrollbar { display: none; }
.guide-jump a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: .5rem .75rem; border-radius: 999px; color: var(--guide-ink); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.guide-jump a:hover, .guide-jump a:focus-visible { background: var(--guide-ink); color: #fff; }

.guide-section { padding: clamp(3.5rem, 7vw, 7rem) 0; background: #fff; color: var(--guide-ink-deep); }
.guide-section-soft { background: #f1f4f7; }
.guide-section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.25rem; }
.guide-section-head h2, .guide-two-column h2, .guide-faq-layout h2, .guide-final-cta h2 { color: var(--guide-ink-deep); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.04em; margin: .55rem 0 0; font-weight: 650; }
.guide-section-head > p { max-width: 430px; color: var(--guide-muted); line-height: 1.65; margin: 0; }
.guide-slider-shell { padding: 1rem; border: 1px solid rgba(20,33,61,.12); border-radius: 28px; background: #f7f8fa; box-shadow: 0 18px 45px -38px rgba(11,21,38,.55); overflow: hidden; }
.guide-steps { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.guide-steps::-webkit-scrollbar { display: none; }
.guide-step { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.45rem; border: 1px solid var(--guide-line); border-radius: var(--guide-radius); background: #fff; box-shadow: 0 14px 35px -30px rgba(11,21,38,.42); scroll-snap-align: start; }
.guide-step-featured, .guide-step-final { grid-template-columns: auto minmax(0, .82fr) minmax(240px, .8fr); align-items: center; background: var(--guide-ink-deep); border-color: var(--guide-ink-deep); color: #fff; }
.guide-step-final { background: #f2f0e9; color: var(--guide-ink-deep); border-color: var(--guide-line); }
.guide-step-number { display: inline-flex; width: 2.35rem; height: 2.35rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--guide-gold); color: var(--guide-ink-deep); font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.guide-step-label { display: block; margin: .1rem 0 .5rem; }
.guide-step h3 { color: inherit; font-size: 1.16rem; line-height: 1.2; margin: 0 0 .55rem; font-weight: 650; }
.guide-step p { color: inherit; opacity: .76; line-height: 1.6; margin: 0; }
.guide-step-featured p { color: #dbe4f2; opacity: 1; }
.guide-product-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.guide-product-strip img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.guide-step-media { grid-column: 2; margin-top: .5rem; }
.guide-step-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 13px; }
.guide-step-media figcaption { color: var(--guide-muted); }
.guide-step-featured .guide-step-media, .guide-step-final .guide-step-media { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.guide-step-featured .guide-product-strip { grid-column: 3; grid-row: 1 / span 2; }
.guide-step-final .guide-step-media img { aspect-ratio: 16 / 8; }
.guide-step-final .guide-step-media figcaption { color: #68768b; }
.guide-check-list { list-style: none; padding: 0; margin: .85rem 0 0; display: grid; gap: .4rem; color: #5d6b7f; font-size: .88rem; }
.guide-check-list li::before { content: '✓'; display: inline-block; margin-right: .45rem; color: #197a64; font-weight: 800; }
.guide-review-points { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.guide-review-points span { border: 1px solid var(--guide-line); border-radius: 999px; padding: .38rem .55rem; color: #5d6b7f; font-size: .78rem; }
.guide-confirm-card { grid-column: 2; margin-top: .5rem; display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; padding: 1rem; border-radius: 14px; background: #edf7f3; color: #176c5a; }
.guide-confirm-card span:not(.guide-confirm-icon) { grid-column: 2; font-size: .83rem; margin-top: .2rem; }
.guide-confirm-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #197a64; color: #fff; font-weight: 800; }
.guide-slider-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem .25rem .1rem; }
.guide-slider-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--guide-line); border-radius: 50%; background: #fff; color: var(--guide-ink); font-size: 1.15rem; cursor: pointer; }
.guide-slider-button:hover, .guide-slider-button:focus-visible { border-color: var(--guide-ink); background: var(--guide-ink); color: #fff; }
.guide-slider-dots { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.guide-slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cbd3df; cursor: pointer; }
.guide-slider-dot[aria-current="true"] { width: 24px; border-radius: 999px; background: var(--guide-gold); }

.guide-prep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-prep-card { padding: 1.5rem; border: 1px solid var(--guide-line); border-radius: var(--guide-radius); background: #fff; }
.guide-prep-icon { display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center; justify-content: center; border-radius: 9px; background: #f8e5ad; color: #825d00; font-size: .75rem; font-weight: 850; }
.guide-prep-card h3 { color: var(--guide-ink-deep); margin: 1rem 0 .45rem; }
.guide-prep-card p { color: var(--guide-muted); line-height: 1.6; margin: 0; }

.guide-two-column { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.guide-number-list { counter-reset: guide-list; list-style: none; display: grid; gap: 1rem; padding: 0; margin: 2rem 0 0; }
.guide-number-list li { counter-increment: guide-list; position: relative; padding-left: 3rem; color: #56657b; line-height: 1.6; }
.guide-number-list li::before { content: counter(guide-list); position: absolute; left: 0; top: -.15rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #edf1f6; color: var(--guide-ink); font-weight: 800; }
.guide-number-list strong { color: var(--guide-ink-deep); }
.guide-warning-card { padding: 1.6rem; border: 1px solid #f0d99b; border-radius: var(--guide-radius); background: #fff9e9; }
.guide-warning-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--guide-gold); color: var(--guide-ink-deep); font-weight: 900; }
.guide-warning-card h3 { color: var(--guide-ink-deep); margin: 1rem 0 .5rem; }
.guide-warning-card p { color: #6b6350; line-height: 1.6; }

.guide-section-faq { background: #f1f4f7; }
.guide-faq-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.guide-faq-layout h2 { white-space: nowrap; font-size: clamp(1.75rem, 3vw, 2.75rem); }
.guide-muted { color: var(--guide-muted); line-height: 1.6; }
.guide-faq-list { display: grid; gap: .65rem; }
.guide-faq-list details { border: 1px solid var(--guide-line); border-radius: 13px; background: #fff; padding: 1rem 1.15rem; }
.guide-faq-list summary { cursor: pointer; color: var(--guide-ink-deep); font-weight: 600; list-style: none; padding-right: 1.2rem; position: relative; }
.guide-faq-list summary::-webkit-details-marker { display: none; }
.guide-faq-list summary::after { content: '+'; position: absolute; right: 0; color: var(--guide-gold); font-size: 1.25rem; line-height: 1; }
.guide-faq-list details[open] summary::after { content: '−'; }
.guide-faq-list details p { color: var(--guide-muted); line-height: 1.6; margin: .8rem 0 0; }

.guide-final-cta { padding: 3rem 0; background: var(--guide-ink-deep); color: #fff; }
.guide-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.guide-final-cta h2 { color: #fff; }
.guide-final-cta p { color: #bec9d9; margin: .7rem 0 0; }
.guide-final-cta .eyebrow { color: var(--guide-gold); }
.btn-light-outline { border: 1px solid rgba(255,255,255,.36); color: #fff; background: transparent; }
.btn-light-outline:hover, .btn-light-outline:focus-visible { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

html[data-theme="dark"] .guide-section { background: #111b2c; color: #f5f7fb; }
html[data-theme="dark"] .guide-section-soft,
html[data-theme="dark"] .guide-section-faq { background: #0b1526; }
html[data-theme="dark"] .guide-section-head h2,
html[data-theme="dark"] .guide-two-column h2,
html[data-theme="dark"] .guide-faq-layout h2 { color: #f5f7fb; }
html[data-theme="dark"] .guide-section-head > p,
html[data-theme="dark"] .guide-muted,
html[data-theme="dark"] .guide-number-list li,
html[data-theme="dark"] .guide-step-media figcaption { color: #b9c5d7; }
html[data-theme="dark"] .guide-slider-shell { background: #17243a; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .guide-step { background: #18263d; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .guide-step-final { background: #1b2a3f; color: #f5f7fb; }
html[data-theme="dark"] .guide-step h3,
html[data-theme="dark"] .guide-step-final h3 { color: #f5f7fb; }
html[data-theme="dark"] .guide-step p,
html[data-theme="dark"] .guide-step-final p,
html[data-theme="dark"] .guide-check-list,
html[data-theme="dark"] .guide-review-points span { color: #c5d0df; }
html[data-theme="dark"] .guide-prep-card,
html[data-theme="dark"] .guide-faq-list details { background: #18263d; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .guide-prep-card h3,
html[data-theme="dark"] .guide-faq-list summary { color: #f5f7fb; }
html[data-theme="dark"] .guide-prep-card p,
html[data-theme="dark"] .guide-faq-list details p { color: #c5d0df; }
html[data-theme="dark"] .guide-slider-button { background: #18263d; border-color: rgba(255,255,255,.18); color: #fff; }
html[data-theme="dark"] .guide-warning-card { background: #2b281b; border-color: #7f641b; }
html[data-theme="dark"] .guide-warning-card h3 { color: #fff6d5; }
html[data-theme="dark"] .guide-warning-card p { color: #e5d9ac; }

@media (max-width: 860px) {
  .guide-hero-grid, .guide-two-column, .guide-faq-layout { grid-template-columns: 1fr; }
  .guide-hero-visual { max-width: 620px; }
  .guide-section-head { display: block; }
  .guide-section-head > p { margin-top: .8rem; }
  .guide-step-featured, .guide-step-final { grid-template-columns: auto minmax(0, 1fr); }
  .guide-step-featured .guide-product-strip, .guide-step-final .guide-step-media { grid-column: 2; grid-row: auto; margin-top: .6rem; }
}

@media (max-width: 560px) {
  .guide-hero { padding-bottom: 3rem; }
  .guide-hero .breadcrumb { margin-bottom: 2rem; }
  .guide-hero h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .guide-lead { font-size: 1rem; }
  .guide-actions .btn { width: 100%; text-align: center; min-height: 46px; }
  .guide-prep-grid { grid-template-columns: 1fr; }
  .guide-step { grid-template-columns: auto minmax(0, 1fr); padding: 1.15rem; }
  .guide-step-featured, .guide-step-final { display: block; }
  .guide-step-featured .guide-step-number, .guide-step-final .guide-step-number { margin-bottom: .9rem; }
  .guide-step-featured .guide-product-strip, .guide-step-final .guide-step-media { margin-top: 1rem; }
  .guide-step-media, .guide-confirm-card { grid-column: 1 / -1; }
  .guide-product-strip { gap: .35rem; }
  .guide-final-cta-inner { display: block; }
  .guide-final-cta .guide-actions { margin-top: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-hero-visual { transform: none; }
}
