/* help-guides.css -- shared stylesheet for help-user-guide.html and
 * help-admin-guide.html.
 *
 * PRODUCTION-FIX (this pass): this CSS used to be an inline <style>
 * block embedded directly in each guide's own <head>. netlify.toml's
 * global CSP (`for = "/*"`) sets `style-src 'self' https://fonts.googleapis.com`
 * with no `'unsafe-inline'` keyword and no hash/nonce for a <style>
 * block -- unlike the one inline <script> the rest of the site relies
 * on (js/theme.js's flash-fix), which IS allow-listed by its exact
 * SHA-256 hash. A real browser enforcing that CSP therefore silently
 * discarded the guides' entire inline stylesheet on every real
 * deploy: the HTML still rendered, just with zero applied styling
 * (default serif font, default blue links, no navy sidebar, no flex
 * layout, no card borders/shadows) -- confirmed live via a real CSP
 * header and a real browser's console, which reported two
 * "Refused to apply inline style" violations for this exact block.
 *
 * `style-src 'self'` already permits any same-origin <link
 * rel="stylesheet"> with no further CSP change needed -- moving this
 * CSS into its own file is the fix, not loosening the policy.
 *
 * Referenced with an ABSOLUTE path (`/assets/css/help-guides.css`),
 * not a relative one, specifically so it resolves the same whether
 * the browser is at the pretty URL (/help/user-guide,
 * /help/admin-guide) or the real underlying filename
 * (/help-user-guide.html, /help-admin-guide.html) -- a relative path
 * would resolve against /help/ as a base on the pretty URL and 404.
 */

/* Small utility classes below replace what were inline style="..."
 * attributes on a few one-off elements added for cross-linking between
 * the two guides. Inline style attributes are ALSO blocked by the same
 * CSP style-src directive as a <style> block (confirmed live: three
 * more "Refused to apply inline style" console errors, one per
 * attribute, even after the main stylesheet was externalized) -- so
 * these have to be real classes, not a style="" shortcut, for the same
 * reason the rest of this file isn't inline anymore. */
.sidebar-cross-link { color: rgba(255, 255, 255, .4); }
.sidebar-portal-action{padding:8px 16px 6px}
.sidebar .back-to-portal{display:flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.88);font-size:11px;font-weight:600;text-decoration:none;border-left:1px solid rgba(255,255,255,.16)}
.sidebar .back-to-portal:hover{background:rgba(255,255,255,.13);color:#fff}
.sidebar .back-to-portal:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hero-guide-link { color: #fff; text-decoration: underline; }
.section--flush-bottom { padding-bottom: 0; border-bottom: none; }

:root {
  --navy:#1a2744;--navy-mid:#243460;--accent:#2d6be4;--accent-light:#e8f0fd;
  --surface:#ffffff;--bg:#f4f6fb;--border:#e4e8f0;--border-md:#c8d0e0;
  --text:#1a2030;--text-mid:#3d4a63;--text-muted:#6b7a99;--text-faint:#9ba8c0;
  --green:#15803d;--green-bg:#f0fdf4;--green-border:#bbf7d0;
  --amber:#b45309;--amber-bg:#fffbeb;--amber-border:#fde68a;
  --red:#b91c1c;--red-bg:#fef2f2;--red-border:#fecaca;
  --blue-bg:#eff6ff;--blue-border:#bfdbfe;
  --radius:8px;--radius-sm:5px;--radius-lg:12px;
  --shadow:0 2px 12px rgba(0,0,0,.08);
  --font:'Inter',sans-serif;--mono:'DM Mono',monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px;line-height:1.7}
.wrapper{display:flex;min-height:100vh}

.sidebar{width:250px;min-width:250px;background:var(--navy);position:fixed;top:0;left:0;bottom:0;overflow-y:auto;z-index:100;padding:0 0 24px}
.sidebar-logo{padding:22px 18px 16px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:8px}
.logo-mark{display:flex;align-items:center;gap:8px}
.logo-sigil{width:28px;height:28px;background:var(--accent);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;letter-spacing:.5px}
.logo-name{font-size:12px;font-weight:600;color:#fff}
.logo-sub{font-size:10px;color:rgba(255,255,255,.35);margin-top:1px;letter-spacing:.03em}
.sidebar-section{font-size:9px;font-weight:700;color:rgba(255,255,255,.28);letter-spacing:.1em;text-transform:uppercase;padding:10px 18px 4px}
.sidebar a{display:block;padding:6px 18px;font-size:12px;font-weight:500;color:rgba(255,255,255,.55);text-decoration:none;border-left:2px solid transparent;transition:all .15s}
.sidebar a:hover{color:#fff;background:rgba(255,255,255,.06)}
.sidebar a.active{color:#fff;background:rgba(255,255,255,.1);border-left-color:var(--accent)}

.main{margin-left:250px;flex:1;padding:0 0 80px}

.hero{background:var(--navy);padding:48px 56px 44px;color:#fff}
.hero-eyebrow{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.4);margin-bottom:10px}
.hero h1{font-size:28px;font-weight:600;line-height:1.25;margin-bottom:12px}
.hero-sub{font-size:14px;color:rgba(255,255,255,.55);max-width:640px}
.hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.hero-pill{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:4px 12px;font-size:11px;color:rgba(255,255,255,.6)}
.hero-pill span{color:rgba(255,255,255,.85);font-weight:500}

.section{padding:44px 56px;border-bottom:1px solid var(--border)}
.section:last-child{border-bottom:none}
.section-eyebrow{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.section h2{font-size:20px;font-weight:600;color:var(--navy);margin-bottom:16px;line-height:1.3}
.section h3{font-size:14px;font-weight:600;color:var(--text);margin:24px 0 8px}
.section h3:first-of-type{margin-top:8px}
.section p{color:var(--text-mid);margin-bottom:12px;max-width:760px}
.section p:last-child{margin-bottom:0}

.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:20px 0}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 20px;box-shadow:var(--shadow)}
.card-icon{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:15px;margin-bottom:10px}
.card-icon.blue{background:var(--blue-bg)}.card-icon.green{background:var(--green-bg)}.card-icon.amber{background:var(--amber-bg)}.card-icon.red{background:var(--red-bg)}.card-icon.navy{background:rgba(26,39,68,.08)}
.card h4{font-size:13px;font-weight:600;color:var(--text);margin-bottom:5px}
.card p{font-size:12px;color:var(--text-muted);line-height:1.55;margin:0}

.step-list{list-style:none;margin:16px 0}
.step-list li{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--border)}
.step-list li:last-child{border-bottom:none}
.step-num{width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.step-content strong{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:2px}
.step-content span{font-size:12px;color:var(--text-muted)}

.data-table{width:100%;border-collapse:collapse;margin:20px 0;font-size:12.5px;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.data-table thead{background:var(--navy);color:#fff}
.data-table th{padding:11px 16px;text-align:left;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.data-table td{padding:10px 16px;border-bottom:1px solid var(--border);vertical-align:top}
.data-table tbody tr:last-child td{border-bottom:none}
.data-table tbody tr:nth-child(even){background:#f9fafc}
.data-table td:first-child{font-weight:500;color:var(--text)}
.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:20px 0}
.table-scroll .data-table{margin:0;min-width:520px}

.callout{border-radius:var(--radius);padding:14px 18px;margin:16px 0;font-size:13px;line-height:1.6;display:flex;gap:12px;align-items:flex-start}
.callout-icon{font-size:16px;flex-shrink:0;margin-top:1px}
.callout.info{background:var(--blue-bg);border:1px solid var(--blue-border);color:#1e40af}
.callout.warning{background:var(--amber-bg);border:1px solid var(--amber-border);color:#92400e}
.callout.danger{background:var(--red-bg);border:1px solid var(--red-border);color:#991b1b}
.callout.success{background:var(--green-bg);border:1px solid var(--green-border);color:#166534}
.callout strong{display:block;font-weight:600;margin-bottom:2px}

.field-list{margin:12px 0}
.field-item{display:flex;gap:10px;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--border);font-size:12.5px}
.field-item:last-child{border-bottom:none}
.field-req{color:#e53e3e;font-size:10px;flex-shrink:0;margin-top:2px}
.field-name{font-weight:500;color:var(--text);min-width:190px}
.field-desc{color:var(--text-muted);min-width:0;overflow-wrap:anywhere}

.new-tag{display:inline-block;background:var(--accent);color:#fff;font-size:9px;font-weight:700;letter-spacing:.04em;padding:1px 6px;border-radius:3px;vertical-align:middle;margin-left:6px}
.role-tag{display:inline-block;background:rgba(26,39,68,.07);color:var(--navy-mid);font-size:9px;font-weight:700;letter-spacing:.04em;padding:1px 6px;border-radius:3px;vertical-align:middle;margin-left:6px}
code{font-family:var(--mono);font-size:11px;background:rgba(26,39,68,.06);color:var(--navy-mid);padding:1px 5px;border-radius:3px}

.shotwrap{margin:18px 0;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);background:var(--surface);max-width:720px}
.shotwrap .shotbar{display:flex;align-items:center;gap:6px;padding:8px 12px;background:#eef1f7;border-bottom:1px solid var(--border)}
.shotwrap .dot{width:8px;height:8px;border-radius:50%}
.shotwrap .dot.r{background:#f47067}.shotwrap .dot.y{background:#f6c343}.shotwrap .dot.g{background:#3ec776}
.shotwrap .shotcap{font-size:11px;color:var(--text-muted);margin-left:8px;font-family:var(--mono)}
img.shot{display:block;width:100%;height:auto}

.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:20px 0}
.tool-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.tool-card .shotwrap{margin:0;border:none;border-radius:0;box-shadow:none;max-width:none}
.tool-card .shotwrap img.shot{height:158px;object-fit:cover;object-position:top left}
.tool-card .tool-body{padding:16px 18px}
.tool-card h4{font-size:13.5px;font-weight:600;color:var(--navy);margin-bottom:6px}
.tool-card p{font-size:12px;color:var(--text-muted);margin:0 0 8px;max-width:none}
.tool-card .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}

.table-scroll{overflow-x:auto}

@media (max-width:900px){
  .sidebar{position:static;width:100%;min-width:0;height:auto;padding-bottom:8px}
  .wrapper{flex-direction:column}
  .main{margin-left:0;min-width:0}
  .hero{padding:32px 24px}
  .section{padding:32px 24px}
}
@media (max-width:600px){
  .hero{padding:28px 18px}
  .section{padding:24px 18px}
  .card-grid{grid-template-columns:1fr}
  .tool-grid{grid-template-columns:1fr}
}
a:focus-visible,.sidebar a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media print{.sidebar{display:none}.main{margin-left:0}.section{break-inside:avoid}}
