/* Public Developers page and help manuals (founder 2026-12-05: "we need to have some info outside the login for ai
   to know and guide the user"). Builds on styles.css + module-pages.css. */
.dev-hero { padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.dev-hero .container { max-width: 980px; }
.dev-hero .btnrow { gap: 1.2rem; flex-wrap: wrap; }
.dev-narrow { max-width: 920px; }
.dev-narrow > p { margin-top: .9rem; line-height: 1.7; color: var(--text, #33475b); }
.dev-ai { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.dev-list, .dev-steps { margin: .9rem 0 0; padding-left: 1.3rem; display: grid; gap: .6rem; line-height: 1.6; list-style: decimal; }
.dev-steps { counter-reset: none; }
.dev-note { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.dev-shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px;
            box-shadow: 0 10px 28px rgba(12, 35, 64, .10); background: #fff; }
.dev-code { margin: 1rem 0 0; padding: 1rem 1.1rem; background: #0c2340; color: #e6eef8; border-radius: 10px;
            overflow-x: auto; font: 500 .86rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.dev-code code { background: none; color: inherit; padding: 0; font: inherit; }
main code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--accent) 10%, #fff);
            color: #1a2a3f; padding: .08em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.dev-table-wrap { margin-top: 1.1rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); }
.dev-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.dev-table th { text-align: left; font-family: var(--font-head); font-weight: 600; color: var(--heading); background: color-mix(in srgb, var(--accent) 7%, #fff);
                padding: .7rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dev-table td { padding: .65rem .9rem; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.dev-table tr:first-child td { border-top: 0; }
.dev-table td:first-child { font-weight: 500; color: var(--heading); }
.dev-table td:first-child code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 720px) { .dev-table { font-size: .88rem; } .dev-table th, .dev-table td { padding: .55rem .65rem; } }

/* ---- Public manuals (/manuals/...), built by tools/public-manuals/build_manuals.py ---- */
.man-head { background: linear-gradient(160deg, #0c2340, #12325a); color: #fff; padding: clamp(1.6rem, 3.5vw, 2.4rem) 0; }
.man-head .breadcrumb, .man-head .breadcrumb a { color: #b9cae0; }
.man-head h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: .6rem; text-wrap: balance; }
.man-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.man-nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; border: 1px solid var(--border);
           border-radius: 12px; background: var(--surface, #fff); padding: .6rem; font-size: .9rem; }
.man-nav__head { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
                 color: var(--muted); padding: .6rem .6rem .3rem; }
.man-nav__item { display: block; padding: .38rem .6rem; border-radius: 8px; color: var(--heading); text-decoration: none; line-height: 1.35; }
.man-nav__item:hover { background: color-mix(in srgb, var(--accent) 8%, #fff); }
.man-nav__item[aria-current="page"] { background: color-mix(in srgb, var(--accent) 15%, #fff); font-weight: 600; }
.man-body { min-width: 0; max-width: 78ch; line-height: 1.7; color: var(--text, #33475b); }
.man-body h2 { font-size: 1.45rem; margin-top: 2.2rem; scroll-margin-top: 90px; }
.man-body h3 { font-size: 1.12rem; margin-top: 1.6rem; scroll-margin-top: 90px; }
.man-body h2:first-child { margin-top: 0; }
.man-body p, .man-body ul, .man-body ol, .man-body blockquote, .man-body pre, .man-body .dev-table-wrap { margin-top: .85rem; }
.man-body ul, .man-body ol { padding-left: 1.35rem; }
.man-body ul { list-style: disc; } .man-body ol { list-style: decimal; }
.man-body li + li { margin-top: .35rem; }
.man-body hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.man-body blockquote { margin-left: 0; padding: .8rem 1rem; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
                       background: color-mix(in srgb, var(--accent) 7%, #fff); }
.man-body blockquote > :first-child { margin-top: 0; }
.man-body pre { padding: .9rem 1rem; background: #0c2340; color: #e6eef8; border-radius: 10px; overflow-x: auto;
                font: 500 .84rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.man-body pre code { background: none; color: inherit; padding: 0; }
.man-body img, .man-shot { display: block; max-width: 100%; height: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: 10px;
                           box-shadow: 0 8px 22px rgba(12, 35, 64, .08); }
.man-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.man-pager a { font-weight: 600; text-decoration: none; }
.man-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.man-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface, #fff); padding: 1.4rem 1.5rem; }
.man-card p { color: var(--muted); margin-top: .4rem; }
.man-card ol { margin-top: .9rem; padding-left: 1.3rem; display: grid; gap: .3rem; list-style: decimal; }
@media (max-width: 900px) { .man-grid, .man-cards { grid-template-columns: minmax(0, 1fr); } .man-nav { position: static; max-height: none; } }
.dev-toc { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 1.6rem; }
.dev-toc a { font-size: .85rem; color: #cfe0f5; text-decoration: none; border: 1px solid rgba(207,224,245,.3); border-radius: 999px; padding: .25rem .75rem; }
.dev-toc a:hover, .dev-toc a:focus-visible { color: #fff; border-color: #fff; }
.dev-fig { margin: 0; }
.dev-fig + .dev-fig { margin-top: 1.1rem; }
.dev-fig figcaption { margin-top: .45rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.dev-code-label { margin-top: 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dev-code-label + .dev-code { margin-top: .35rem; }
section[id] { scroll-margin-top: 80px; }
.dev-ai a, .dev-narrow p a, .dev-table td a, .dev-note a, .man-body a, .man-card a { color: #0f766e; text-decoration: underline; text-underline-offset: 2px; }
.dev-ai a:hover, .dev-narrow p a:hover, .dev-table td a:hover, .dev-note a:hover, .man-body a:hover, .man-card a:hover { color: #0c2340; }
.dev-bullets { margin: 1rem 0 0; padding-left: 1.3rem; list-style: disc; display: grid; gap: .6rem; line-height: 1.6; }
