/* expono User Guide — shared stylesheet */

:root {
  --accent:      #1e3a5f;
  --accent-dim:  #142740;
  --accent-light:#eef2f7;
  --orange:      #f7701c;
  --surface:     #ffffff;
  --bg:          #f8fafc;
  --border:      #e2e8f0;
  --text:        #1e293b;
  --muted:       #64748b;
  --tip-bg:      #f0fdf4;
  --tip-border:  #86efac;
  --warn-bg:     #fffbeb;
  --warn-border: #fcd34d;
  --note-bg:     #f0f9ff;
  --note-border: #7dd3fc;
  --code-bg:     #f1f5f9;
  --nav-w:       260px;
  --content-max: 840px;
  --radius:      8px;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--nav-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.sidebar-logo .logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.sidebar-logo .logo-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
}
.sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.sidebar-foot .btn-primary {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.nav-section {
  padding: 12px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-section:first-of-type { margin-top: 8px; }

nav a {
  display: block;
  padding: 7px 20px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
  margin: 1px 8px;
  transition: background .12s, color .12s;
}
nav a:hover { background: var(--bg); color: var(--text); }
nav a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* Main content */
.main {
  flex: 1;
  min-width: 0;
  padding: 48px 64px 80px;
}

.content {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ── Page header ─────────────────────────────────────────────────────────── */

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}
.page-header .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 48px 0 16px;
  color: var(--text);
  scroll-margin-top: 24px;
}
h2:first-of-type { margin-top: 0; }

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
  scroll-margin-top: 24px;
}

h4 {
  font-size: .95rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}

p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
li { margin-bottom: 5px; }
li > ul, li > ol { margin-top: 4px; margin-bottom: 4px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  font-size: .875em;
  background: var(--code-bg);
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  font-size: .875rem;
  line-height: 1.6;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

strong { font-weight: 700; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Callout boxes ───────────────────────────────────────────────────────── */

.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  font-size: .94rem;
}
.callout .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.callout.tip    { background: var(--tip-bg);  border-left: 3px solid var(--tip-border); }
.callout.warn   { background: var(--warn-bg); border-left: 3px solid var(--warn-border); }
.callout.note   { background: var(--note-bg); border-left: 3px solid var(--note-border); }

/* ── Keyboard keys ───────────────────────────────────────────────────────── */

kbd {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: .78em;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  color: var(--text);
  vertical-align: baseline;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .9rem;
}
th {
  text-align: left;
  background: var(--bg);
  padding: 10px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── Screenshots ─────────────────────────────────────────────────────────── */

figure {
  margin: 28px 0;
}
figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: block;
}
figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
  margin-top: 10px;
}

/* ── Step list (numbered tutorial steps) ────────────────────────────────── */

.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.steps > li .step-body { flex: 1; }
.steps > li .step-body h4 { margin-top: 0; }

/* ── Feature cards (index page) ─────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(59,130,246,.12);
  text-decoration: none;
}
.card .card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1rem; margin: 0 0 6px; color: var(--text); }
.card p { font-size: .875rem; color: var(--muted); margin: 0; }

/* ── Section divider ─────────────────────────────────────────────────────── */

.section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 16px;
}

/* ── Shortcut table ──────────────────────────────────────────────────────── */

.shortcut-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* ── Hero banner (index page) ────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, #0c1a2e 0%, #142740 60%, #1e3a5f 100%);
  color: #fff;
  border-radius: 12px;
  padding: 48px 48px 44px;
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
}
.hero p { font-size: 1.1rem; opacity: .9; max-width: 560px; margin-bottom: 24px; }
.hero .hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .15s;
}
.hero .btn:hover { opacity: .9; text-decoration: none; }
.hero .btn-primary { background: #fff; color: var(--accent); }
.hero .btn-secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ── Page-section anchors ────────────────────────────────────────────────── */

h2 a.anchor, h3 a.anchor { opacity: 0; color: var(--muted); font-weight: 400; margin-left: 8px; }
h2:hover a.anchor, h3:hover a.anchor { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); }
  .main { padding: 32px 24px 60px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Quick reference ─────────────────────────────────────────────────────
   Moved out of quick-reference.html on 2026-09-08: the site CSP has no inline style, and the
   pre-commit sweep caught the block on its first run over a modified page. */
  .ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  @media (max-width: 700px) { .ref-grid { grid-template-columns: 1fr; } }
  .ref-section h3 { font-size: .95rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
  .ref-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
  .ref-table td { padding: 5px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .ref-table td:first-child { color: var(--text); padding-right: 12px; }
  .ref-table td:last-child { text-align: right; white-space: nowrap; }
  .ref-table tr:last-child td { border-bottom: none; }
