/* Shared stylesheet for all /timer/guides/ pages.
   Mirrors the main /timer/ landing palette so the guides feel native. */
:root {
  --bg-app: #0a0d12;
  --bg-panel: #11161e;
  --bg-card: #161c26;
  --bg-card-2: #1b222d;
  --bg-input: #0e131b;
  --amber: #ef7f1a;
  --amber-soft: rgba(239, 127, 26, 0.14);
  --amber-strong: #ff8d2e;
  --text: #e7edf5;
  --text-dim: #a4acb8;
  --text-muted: #7a828f;
  --bd: #262c38;
  --bd-strong: #353c4b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-app);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }

/* Top bar with brand + launch button */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-bottom: 28px; padding-bottom: 18px;
  border-bottom: 1px solid var(--bd);
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 15px;
}
.topbar-brand .mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--amber); color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: -0.3px;
}
.topbar-brand .sub { color: var(--text-dim); font-weight: 400; font-size: 13px; }
.topbar-launch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; background: var(--amber); color: #000;
  text-decoration: none; border-radius: 999px; font-weight: 600;
  font-size: 14px; white-space: nowrap;
  transition: background 0.15s ease;
}
.topbar-launch:hover { background: var(--amber-strong); }

/* Breadcrumbs */
.crumbs {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { margin: 0 6px; opacity: 0.6; }

/* Article typography */
h1 {
  font-size: 36px; font-weight: 700; line-height: 1.2;
  margin: 0 0 16px; letter-spacing: -0.5px;
}
h1 .accent { color: var(--amber); }
.lede {
  font-size: 18px; color: var(--text-dim);
  margin: 0 0 32px; line-height: 1.6;
}
h2 {
  font-size: 24px; font-weight: 600; line-height: 1.3;
  margin: 48px 0 14px; letter-spacing: -0.3px;
  padding-bottom: 8px; border-bottom: 1px solid var(--bd);
}
h3 {
  font-size: 19px; font-weight: 600; line-height: 1.35;
  margin: 32px 0 10px; color: var(--text);
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: #fff; }
a { color: var(--amber); text-decoration: underline; text-decoration-color: rgba(239,127,26,0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }

/* Keyboard-shortcut chip */
kbd {
  display: inline-block;
  padding: 2px 7px;
  background: var(--bg-input);
  border: 1px solid var(--bd-strong);
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* Shortcut table */
table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bd); font-size: 15px; }
th { font-weight: 600; color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }

/* CTA panel */
.cta {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--bd);
  border-radius: 14px; padding: 24px;
  margin: 32px 0;
}
.cta-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.cta-body { color: var(--text-dim); margin: 0 0 16px; font-size: 15px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; background: var(--amber); color: #000;
  text-decoration: none; border-radius: 999px; font-weight: 600;
  font-size: 15px; transition: background 0.15s ease;
}
.cta-btn:hover { background: var(--amber-strong); text-decoration: none; }

/* FAQ list */
.faq { margin: 20px 0; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq details[open] { background: var(--bg-card-2); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--amber); font-size: 22px; font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { margin-top: 12px; color: var(--text-dim); font-size: 15px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Checklist */
.checklist { background: var(--bg-card); border: 1px solid var(--bd); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text-dim); font-size: 15px; }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border: 1.5px solid var(--bd-strong); border-radius: 4px;
  background: var(--bg-input);
}

/* Related + footer */
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bd); }
.related h2 { border: none; margin: 0 0 14px; font-size: 18px; padding: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; font-size: 15px; }
.related a { color: var(--text); }
.related a:hover { color: var(--amber); }

.site-foot {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bd);
  color: var(--text-muted); font-size: 13px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.site-foot a { color: var(--text-dim); text-decoration: none; }
.site-foot a:hover { color: var(--amber); }

/* Hub-page card grid (only used on guides/index.html) */
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0 40px; }
@media (min-width: 640px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  background: var(--bg-card); border: 1px solid var(--bd);
  border-radius: 14px; padding: 22px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, transform 0.15s;
}
.hub-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.hub-card h3 { margin: 0; font-size: 17px; color: #fff; }
.hub-card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.hub-tag { display: inline-block; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); padding: 3px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 2px; }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 20px 16px 60px; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; margin: 36px 0 12px; }
  h3 { font-size: 17px; }
  .lede { font-size: 16px; }
  .topbar-brand .sub { display: none; }
  .cta { padding: 20px; }
}
