/* PulStar Help — shared styles. Follows the system light/dark appearance. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --accent: #d9661f;      /* PulStar orange */
  --link: #0066cc;
  --note-bg: #f5f5f7;
  --warn-bg: #fff4e5;
  --warn-rule: #f0a04b;
  --kbd-bg: #f2f2f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #3a3a3c;
    --accent: #ff8a3d;
    --link: #4aa3ff;
    --note-bg: #2a2a2c;
    --warn-bg: #3a2a17;
    --warn-rule: #c47a2c;
    --kbd-bg: #2f2f31;
  }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 24px 28px 48px;
  max-width: 760px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

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

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 28px 0 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
h3 { font-size: 15px; margin: 20px 0 6px; }
p, ul, ol, table { margin: 0 0 12px; }
li { margin-bottom: 4px; }

.lede { font-size: 15px; color: var(--muted); margin-bottom: 20px; }

.crumbs { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }

.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero img { width: 72px; height: 72px; }
.hero h1 { margin: 0; }

.topics { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.topics li { margin: 0; }
.topics a { font-weight: 600; }
.topics span { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr; } }

.note, .important {
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 14px;
}
.note { background: var(--note-bg); }
.important { background: var(--warn-bg); border-left: 4px solid var(--warn-rule); }
.note strong:first-child, .important strong:first-child { margin-right: 4px; }

table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 600; }

kbd {
  font: 12px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--kbd-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.ui { font-weight: 600; }   /* names of buttons, menus and settings */

.related { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; }
.related h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.related ul { padding-left: 18px; }

.figure { margin: 4px 0 16px; text-align: center; }
.figure img { width: 240px; max-width: 100%; height: auto; border-radius: 8px; }
.figure figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
