/* Documentation site layout. The fact-sheet cards and help animations use docly.css,
   the extension's own stylesheet, so they look exactly as they do in Docly. */
body.site { margin: 0; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6; color-scheme: light; }
.site-hd { border-bottom: 1px solid var(--line); background: #fff; }
.site-hd-in { max-width: 960px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-brand { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 20px; text-decoration: none; }
.site-brand img { width: 32px; height: 32px; }
.site-brand span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.2; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
main.doc { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.doc > h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.2; }
.doc > h2 { margin: 48px 0 12px; font-size: 24px; line-height: 1.3; }
.doc > h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; }
.doc > p, .doc > ul, .doc > ol { margin: 0 0 16px; }
.doc > ul, .doc > ol { padding-left: 24px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--primary); text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc > hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 24px; }
.doc code { font-size: 14px; background: var(--soft); padding: 0 4px; border-radius: 4px; }
.shot { margin: 24px 0; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.ui { max-width: 420px; margin: 16px 0 24px; padding: 12px 12px 0; background: var(--bg); border-radius: 12px; font-size: 14px; line-height: 1.45; }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 0 24px; margin: 8px 0 16px; }
.figs .hx-fig { margin: 8px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.site-ft { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-ft-in { max-width: 760px; margin: 0 auto; padding: 24px 16px 32px; }
.site-ft a { color: var(--muted); }
@media print { .site-hd, .site-ft { display: none; } .figs { display: block; } }
