/* NDT Cookies documentation | Tony Nguyen | https://nguyenduytan.com/ */
::selection { background: var(--teal-soft); color: var(--text); }
html { scrollbar-color: var(--teal) var(--bg-soft); scrollbar-width: thin; }
.desktop-nav a, .mobile-nav a { display: inline-flex; align-items: center; gap: 7px; }
.desktop-nav a svg, .mobile-nav a svg { width: 17px; height: 17px; }
.desktop-nav a[aria-current], .mobile-nav a[aria-current] { color: var(--teal); }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; align-items: stretch; padding-block: 56px 88px; }
.docs-rail { position: relative; min-width: 0; }
.doc-toc { position: sticky; top: 100px; width: 100%; max-height: calc(100vh - 124px); overflow: auto; scrollbar-width: thin; background: var(--bg); }
.doc-toc > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 18px; font-size: .82rem; font-weight: 750; color: var(--teal); list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc > summary svg { width: 18px; }
.toc-body nav { display: grid; gap: 3px; }
.toc-body nav a { display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px; border-radius: 4px; color: var(--text-soft); font-size: .83rem; line-height: 1.45; border: 1px solid transparent; }
.toc-body nav a svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.toc-body nav a span { min-width: 0; }
.doc-image-link { display: block; cursor: zoom-in; }
.image-viewer { width: fit-content; max-width: 96vw; max-height: 94dvh; padding: 44px 12px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.image-viewer::backdrop { background: rgb(0 0 0 / .72); }
.image-viewer img { display: block; max-width: 90vw; max-height: calc(94dvh - 60px); width: auto; height: auto; object-fit: contain; }
.image-viewer-close { position: absolute; top: 4px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 4px; background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: 26px; }
body.image-viewer-open { overflow: hidden; }
.menu-reference { max-width: 360px; margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-soft); }
.menu-reference > p { font-size: .8rem; color: var(--text-soft); margin: 0 0 10px; }
.menu-reference > strong { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--teal); color: white; border-radius: 3px; }
.menu-reference h3 { margin: 16px 10px 8px; font-size: .85rem; }
.menu-reference ul { list-style: none; padding: 0; margin: 8px 0 0; }
.menu-reference li { padding: 6px 14px; font-size: .9rem; }
.toc-body nav a:hover, .toc-body nav a[aria-current] { background: var(--teal-soft); color: var(--teal); }
.toc-body nav a[aria-current] { border-color: var(--line); font-weight: 650; }
.toc-home { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); margin-top: 22px; padding: 16px 12px; font-size: .82rem; }
.toc-home svg { transform: rotate(180deg); width: 17px; }
.docs-article { min-width: 0; max-width: 760px; }
.docs-article h1, .docs-article h2, .docs-article p, .docs-article li { overflow-wrap: anywhere; hyphens: auto; }
.doc-intro { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-intro h1 { font-size: clamp(2rem,3.4vw,3rem); line-height: 1.15; letter-spacing: -.035em; margin: 4px 0 20px; }
.doc-intro > p { font-size: 1.13rem; max-width: 65ch; margin-bottom: 0; }
.doc-section { padding-block: 40px 8px; scroll-margin-top: 100px; }
.doc-section + .doc-section { margin-top: 24px; border-top: 1px solid var(--line); }
.doc-section h2 { font-size: clamp(1.4rem,2.1vw,1.8rem); letter-spacing: -.025em; margin-bottom: 20px; }
.doc-section p, .doc-section li { max-width: 72ch; }
.doc-steps { padding-left: 1.5em; margin: 20px 0 26px; }
.doc-steps li { padding-left: 8px; margin-bottom: 12px; color: var(--text-soft); }
.doc-steps li::marker { color: var(--teal); font-weight: 700; }
.doc-figure { margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-soft); }
.doc-figure img { width: auto; max-width: 100%; height: auto; max-height: 650px; margin-inline: auto; border: 1px solid var(--line); border-radius: 4px; }
.doc-figure figcaption { margin: 16px auto 0; max-width: 64ch; font-size: .8rem; line-height: 1.6; color: var(--text-soft); }
.doc-figure figcaption a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.doc-note { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; padding: 16px 18px; background: var(--teal-soft); border-radius: 4px; }
.doc-note svg { margin-top: 3px; color: var(--teal); width: 19px; }
.doc-note p { color: var(--text); font-size: .9rem; margin: 0; }
.doc-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 4px; }
.doc-table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.doc-table-wrap th, .doc-table-wrap td { padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table-wrap thead { background: var(--bg-soft); }
.doc-table-wrap tbody th { width: 30%; font-weight: 650; }
.doc-table-wrap td { color: var(--text-soft); }
.doc-table-wrap tr:last-child td, .doc-table-wrap tr:last-child th { border-bottom: 0; }
.doc-related { display: grid; border-top: 1px solid var(--line); margin-top: 24px; }
.doc-related a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--teal); }
.doc-related svg { width: 18px; }
.doc-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.doc-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: .85rem; }
.doc-footer nav a { display: inline-flex; align-items: center; gap: 6px; }
.doc-footer svg { width: 16px; }
.doc-footer p { width: 100%; font-size: .8rem; margin: 0; }
.doc-footer p a { font-weight: 700; color: var(--teal); }
@media (max-width: 1100px) { .docs-layout { gap: 36px; grid-template-columns: 205px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .docs-layout { display: block; padding-block: 22px 50px; }
  .doc-toc { position: static; max-height: none; margin-bottom: 28px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-soft); transform: none !important; }
  .doc-toc > summary { padding-block: 14px; cursor: pointer; }
  .toc-body { padding-bottom: 6px; }
  .doc-intro h1 { font-size: 2.15rem; }
  .doc-intro > p { font-size: 1rem; }
  .doc-section { padding-top: 30px; }
  .doc-figure { padding: 10px; margin-inline: 0; }
  .doc-note { padding: 14px; }
  .doc-table-wrap th, .doc-table-wrap td { padding: 10px; overflow-wrap: anywhere; }
  .docs-page .language-control select { max-width: 78px; }
}
@media (prefers-reduced-motion: reduce) { .doc-toc { transform: none !important; } }
