/* Copyright (C) 2026 myHUB Contributors
   This file is part of myHUB and is licensed under the GNU Affero General Public License v3 (AGPLv3).
   The static About page (www.dipdap.org/public, vite.public.config.js). No inline styles (CSP style-src 'self'). */

:root {
  --bg: #eef1f5; --pane: #ffffff; --fg: #1f2328; --muted: #656d76; --line: #d8dee4; --accent: #2f6fde;
  --accent-soft: #e3ecfb; --hover: #f0f3f6; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f14; --pane: #12171e; --fg: #e6edf3; --muted: #8d96a0; --line: #2a313a; --accent: #4c8dff;
    --accent-soft: #1b2a44; --hover: #1a2029; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.pub { background: var(--bg); color: var(--fg); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  color: #fff; font-size: 16px; }


/* header */
.pub-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--pane); border-bottom: 1px solid var(--line); }
.pub-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--fg);
  text-decoration: none; }
.pub-grow { flex: 1; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-opt { border: 0; background: transparent; padding: 3px 10px; font: 600 12px system-ui, sans-serif;
  color: var(--muted); cursor: pointer; }
.lang-opt + .lang-opt { border-left: 1px solid var(--line); }
.lang-opt.on { background: var(--accent); color: #fff; }
.pub-btn { display: inline-block; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 14px system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.pub-signin { margin-left: 16px; }

/* content */
.pub-main { max-width: 980px; margin: 0 auto; padding: 24px 16px 48px; }
.pub-main section { margin-bottom: 32px; }
.pub-hero { text-align: center; padding: 28px 0 8px; }
.pub-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 38px); }
.pub-lead { margin: 0 auto; max-width: 680px; font-size: 18px; color: var(--muted); }
h2 { font-size: 22px; margin: 0 0 12px; }
.pub-flow { padding-left: 22px; }
.pub-flow li { margin-bottom: 8px; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pub-grid article { background: var(--pane); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.pub-grid h3 { margin: 0 0 8px; font-size: 17px; }
.pub-grid ul { margin: 0; padding-left: 18px; }
.pub-grid li { margin-bottom: 4px; }
.pub-credits { background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; }
.pub-small { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .pub-brand { font-size: 15px; } .pub-signin { margin-left: 8px; } }
.pub-why p { max-width: 860px; }
.pub-why .pub-grid { margin-top: 14px; }
code { font: 13px ui-monospace, Menlo, Consolas, monospace; background: var(--hover); padding: 1px 5px; border-radius: 4px; }
.pub-shots figure { margin: 0 0 22px; }
.pub-shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .14); background: #eef1f5; }
.pub-shots figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pub-self p, .pub-self ul { max-width: 860px; }
.pub-self ul { padding-left: 1.2em; display: grid; gap: 6px; }
