/* MettaBackup — tài liệu hướng dẫn (dùng chung font và token với site.css). */
@import url(site.css);

body { background: #fff; font-size: 16px; }
.dh { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dh .in { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 40px; }
.dh .brand { font-size: 19px; }
.dh .brand img { width: 34px; height: 34px; border-radius: 9px; }
.dh .sep { width: 1px; height: 26px; background: var(--line); }
.dh .lbl { font-weight: 600; color: var(--ink); font-size: 15px; }
.dh .pills { margin-left: auto; display: flex; gap: 8px; }
.dh .pills a { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); border: 1px solid #dbe6fb; }
.dh .pills a.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.dh .pills a:hover { text-decoration: none; filter: brightness(.97); }
.search { position: relative; width: 260px; }
.search input { width: 100%; font: inherit; font-size: 14.5px; padding: 9px 60px 9px 36px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,99,240,.15); }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--mono); color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; max-height: 60vh; overflow: auto; }
.results.on { display: block; }
.results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14.5px; }
.results a small { display: block; color: var(--muted); font-size: 12.5px; }
.results a:hover, .results a.sel { background: var(--bg-soft); text-decoration: none; }
.results .none { padding: 10px; color: var(--muted); font-size: 14px; }

.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: 40px; padding: 24px 40px 80px; max-width: 1480px; margin: 0 auto; }
.layout.wide { grid-template-columns: 280px minmax(0, 1fr); }
.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px; }
.side h6 { margin: 18px 8px 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.side h6:first-child { margin-top: 4px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.side a .icon { width: 16px; height: 16px; color: #7b8aa1; }
.side a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.side a.on { background: #e3f3fb; color: #0e8bb3; font-weight: 600; }
.side a.on .icon { color: #0e8bb3; }

.doc { min-width: 0; max-width: 820px; }
.crumb { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0e8bb3; margin: 6px 0 14px; }
.crumb a { color: #0e8bb3; }
.title { display: flex; align-items: center; gap: 16px; }
.title .ti { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e3f3fb; color: #0e8bb3; flex: none; }
.title .ti .icon { width: 22px; height: 22px; }
.title h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.025em; }
.doc .lead { margin: 14px 0 8px; font-size: 18px; max-width: none; }
.doc h2 { font-size: 23px; margin: 44px 0 14px; letter-spacing: -.015em; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 7px 0; }
.doc b, .doc strong { color: var(--ink); font-weight: 600; }
.doc code { font: 13.5px var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }
.doc pre { background: var(--navy-deep); color: #e3ecf8; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--mono); margin: 16px 0; }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; overflow-wrap: normal; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc .shot { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-s); }
.callout { display: flex; gap: 12px; border-radius: 12px; padding: 14px 16px; margin: 18px 0; background: var(--blue-soft); color: #1d3f86; font-size: 15px; }
.callout .icon { margin-top: 3px; }
.callout.warn { background: var(--warn-soft); color: #7a4f12; }
.callout.ok { background: var(--ok-soft); color: #15633a; }
.callout p { margin: 0; }
.steps-v { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-v > li { counter-increment: s; position: relative; padding-left: 44px; margin: 18px 0; }
.steps-v > li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 14px; }

.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc h6 { margin: 6px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); line-height: 1.45; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.on { color: #0e8bb3; border-left-color: #0e8bb3; }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.grid-cards a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--muted); font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.grid-cards a:hover { border-color: #bcd3f8; box-shadow: var(--shadow-s); text-decoration: none; }
.grid-cards .ci { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e3f3fb; color: #0e8bb3; margin-bottom: 14px; }
.grid-cards b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); font-weight: 600; }
.pager a small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.pager a.next { text-align: right; grid-column: 2; }
.pager a:hover { border-color: #bcd3f8; text-decoration: none; }
.dfoot { border-top: 1px solid var(--line); padding: 22px 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.side-toggle { display: none; }
@media (max-width: 1200px) { .layout { grid-template-columns: 260px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 900px) {
  .dh .in { padding: 0 16px; }
  .dh .pills, .dh .sep, .dh .lbl { display: none; }
  .search { margin-left: auto; width: auto; flex: 1; max-width: 340px; }
  .search kbd { display: none; }
  .layout, .layout.wide { grid-template-columns: 1fr; padding: 16px 16px 60px; gap: 16px; }
  .side { position: static; max-height: none; display: none; }
  .side-toggle { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 0; }
  .side-toggle summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--ink); }
  .side-toggle[open] .side { display: block; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .grid-cards { grid-template-columns: 1fr; }
  .dfoot { padding: 18px 16px; }
}
