:root {
  --blue: #075bd8;
  --blue-700: #0874df;
  --navy: #08235a;
  --teal: #0f9f96;
  --soft: #f2f9ff;
  --line: #cfe5ff;
  --ink: #24385f;
  --muted: #5c6f8d;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: linear-gradient(180deg,#eff8ff 0,#fff 400px); line-height: 1.55; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; border-radius: 10px; padding: 10px 14px; background: #fff; color: var(--blue); box-shadow: 0 8px 24px #0002; }
.skip-link:focus { top: 12px; }
.guide-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 2px 18px rgba(8,35,90,.08); backdrop-filter: blur(12px); }
.guide-header__inner { width: min(1120px,calc(100% - 32px)); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: auto; }
.guide-brand { min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.guide-brand__mark { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; border-radius: 14px; background: linear-gradient(140deg,#0753ad,#1ca8ef); color: #fff; font-weight: 900; box-shadow: 0 8px 20px rgba(7,83,173,.22); }
.guide-brand__copy { min-width: 0; display: flex; flex-direction: column-reverse; }
.guide-brand small,.guide-brand strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-brand small { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .045em; }
.guide-brand strong { color: var(--navy); font-size: 15px; letter-spacing: .01em; }
.guide-home,.guide-bottom a { min-height: 42px; display: inline-flex; align-items: center; border: 1px solid #b9d6f4; border-radius: 999px; padding: 9px 15px; background: #fff; color: var(--blue); font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(7,83,173,.08); }
.guide-home:hover,.guide-bottom a:hover { border-color: var(--blue); background: var(--soft); }
.guide-shell { width: min(1120px,calc(100% - 32px)); margin: 28px auto 56px; }
.guide-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); align-items: center; gap: 26px; border-radius: 24px; padding: 32px; background: linear-gradient(135deg,#08235a,#075bd8 58%,#0ea5e9); color: #fff; box-shadow: 0 18px 45px rgba(7,91,216,.18); }
.guide-eyebrow { margin: 0 0 7px; color: #bff7ef; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.guide-hero h1 { margin: 0; font-size: clamp(30px,4vw,46px); line-height: 1.1; }
.guide-hero p:not(.guide-eyebrow) { max-width: 700px; margin: 15px 0 0; color: #e7f4ff; }
.guide-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.guide-toc a { border: 1px solid rgba(255,255,255,.32); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.1); font-weight: 800; text-decoration: none; }
.guide-toc a:hover,.guide-toc a:focus-visible { background: #fff; color: var(--blue); }
.guide-section { scroll-margin-top: 92px; margin-top: 24px; border: 1px solid var(--line); border-radius: 20px; padding: 27px; background: #fff; box-shadow: 0 10px 28px rgba(7,91,216,.05); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.section-heading>span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; padding: 0 8px; background: #eaf4ff; color: var(--blue); font-weight: 900; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 25px; line-height: 1.2; }
.section-heading h2::after { width: 42px; height: 3px; display: block; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg,var(--blue),#44bde8); content: ""; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.step-grid,.guide-columns,.error-grid,.document-grid { display: grid; gap: 14px; }
.step-grid { grid-template-columns: repeat(3,1fr); margin: 0; padding: 0; list-style: none; }
.step-grid li,.guide-columns article,.error-grid article { border: 1px solid #dceeff; border-radius: 15px; padding: 17px; background: linear-gradient(145deg,#fff,var(--soft)); }
.step-grid strong,.step-grid span { display: block; }
.step-grid strong,.guide-columns h3,.error-grid h3 { color: var(--blue); }
.step-grid span { margin-top: 6px; color: var(--muted); }
.guide-columns,.error-grid,.document-grid { grid-template-columns: 1fr 1fr; }
.guide-columns h3,.error-grid h3 { margin: 0 0 8px; }
.guide-columns ul,.check-list { margin: 0; padding-left: 20px; }
.guide-columns li,.check-list li { margin: 7px 0; }
.notice { margin-top: 15px; border-left: 4px solid #ff9d00; border-radius: 10px; padding: 13px 15px; background: #fff8e8; }
.numbered-list { counter-reset: guide; margin: 0; padding: 0; list-style: none; }
.numbered-list li { position: relative; counter-increment: guide; margin: 10px 0; border-radius: 12px; padding: 12px 14px 12px 48px; background: var(--soft); }
.numbered-list li::before { position: absolute; top: 10px; left: 13px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; content: counter(guide); }
.file-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.file-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.file-table th,.file-table td { border-bottom: 1px solid #e3efff; padding: 12px 14px; text-align: left; vertical-align: top; }
.file-table th { background: #eaf4ff; color: var(--navy); }
.file-table tr:last-child td { border-bottom: 0; }
.check-list { margin-top: 17px; }
.error-grid article p { margin: 0; color: var(--muted); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 13px; padding: 0 15px; background: #fbfdff; }
.faq-list summary { cursor: pointer; padding: 14px 0; color: var(--navy); font-weight: 850; }
.faq-list p { margin: 0 0 15px; color: var(--muted); }
.documents { background: linear-gradient(180deg,#fff,#f4fbff); }
.document-grid a { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #b9dfff; border-radius: 15px; padding: 18px; background: #fff; color: var(--navy); text-decoration: none; box-shadow: 0 8px 20px rgba(7,91,216,.05); transition: transform .16s ease,border-color .16s ease; }
.document-grid a:hover,.document-grid a:focus-visible { transform: translateY(-2px); border-color: var(--blue); }
.document-grid span { color: var(--blue); font-weight: 800; }
.guide-bottom { margin: 28px 0; text-align: center; }
.guide-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 23px 16px; background: var(--navy); color: #fff; text-align: center; }
.guide-footer span { color: #dcecff; }
a:focus-visible,summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
@media (max-width:760px) {
  .guide-header__inner { min-height: 68px; }
  .guide-brand small { font-size: 9px; }
  .guide-brand strong { font-size: 13px; }
  .guide-brand__mark { width: 42px; height: 42px; flex-basis: 42px; }
  .guide-home { padding: 8px 11px; font-size: 13px; }
  .guide-shell { width: min(100% - 22px,1120px); margin-top: 15px; }
  .guide-hero { grid-template-columns: 1fr; border-radius: 20px; padding: 23px; }
  .guide-section { border-radius: 17px; padding: 19px; }
  .step-grid,.guide-columns,.error-grid,.document-grid { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 21px; }
  .section-heading>span { min-width: 38px; height: 38px; }
  .file-table { min-width: 620px; }
}
@media (max-width:430px) {
  .guide-brand small { display: none; }
  .guide-brand strong { font-size: 12px; }
  .guide-home { font-size: 0; }
  .guide-home::after { font-size: 13px; content: "← Trang chủ"; }
  .guide-toc { grid-template-columns: 1fr; }
  .guide-hero h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
