/* PixelTach guide pages. Colour tokens copied from src/ui/styles.css. */
:root {
  --bg: #e8e8e4;
  --panel: #f5f5f1;
  --panel-2: #ecece7;
  --border: #d4d3cc;
  --text: #1b1b1a;
  --muted: #5f5f5b;
  --faint: #6f6f6a;
  --accent: #1f6fd1;
  --accent-soft: #e5eefb;
  --track: #dcdbd5;
  --underline: #b9b8b2;
  --texture-dot: rgba(40, 40, 30, 0.10);
  --good: #0ca30c;
  --warn: #c98a00;
  --bad: #d03b3b;
  --off: #8a8a85;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --radius: 10px;
}
:root[data-theme="dark"] {
  --bg: #1b1c1f;
  --panel: #242529;
  --panel-2: #2b2d31;
  --border: #37393f;
  --text: #e6e5e1;
  --muted: #a3a39e;
  --faint: #8c8c87;
  --accent: #4ea3ff;
  --accent-soft: #16273d;
  --track: #36383d;
  --underline: #a3a39e;
  --texture-dot: rgba(255, 255, 255, 0.075);
  --good: #22c55e;
  --warn: #fab219;
  --bad: #ef5350;
  --off: #6b6b66;
}
.logo-panel { display: none; }
.logo-panel-bg { fill: #303237; }
.logo-tile { fill: #0c0d0f; }
:root[data-theme="light"] .logo-panel { display: inline; }
:root[data-theme="light"] .logo-tile { fill: #303237; }
html, body { margin: 0; background-color: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  background-image: radial-gradient(circle at 1px 1px, var(--texture-dot) 1px, transparent 1.4px);
  background-size: 14px 14px; background-attachment: fixed;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; flex: 1; }
.brand .logo { display: block; }
.topbar nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.btn { color: #fff; background: var(--accent); padding: 6px 12px; border-radius: 8px; font-weight: 600; }
.guide { max-width: 780px; margin: 0 auto; padding: 20px 20px 8px; }
.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.guide h1 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.2px; }
.guide h2 { font-size: 19px; margin: 32px 0 8px; }
.guide p { margin: 0 0 12px; }
.answer { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: 8px; margin: 2px 0 8px; }
.cta:hover { filter: brightness(1.08); }
.scroll { overflow-x: auto; margin: 0 0 8px; }
table { border-collapse: collapse; width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 13.5px; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th { background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 12.5px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.num, .tt td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.v { font-weight: 600; }
.v::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; background: currentColor; }
.v-fits { color: var(--good); } .v-tight { color: var(--warn); } .v-exceeds { color: var(--bad); }
.v-unsupported, .v-check { color: var(--off); }
.fine { font-size: 13px; color: var(--muted); }
.related { padding-left: 20px; }
.foot { max-width: 780px; margin: 24px auto 0; padding: 16px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; }
@media (max-width: 560px) {
  .guide { padding: 14px 16px 4px; }
  .guide h1 { font-size: 23px; }
  .topbar nav { gap: 12px; }
  .topbar nav a:not(.btn) { display: none; }
  .bw th, .bw td { padding: 6px 8px; }
}
.guide h3 { font-size: 15.5px; margin: 20px 0 8px; }
.guide ol, .guide ul { padding-left: 22px; margin: 0 0 12px; }
.guide li { margin: 5px 0; }
.guide-list { list-style: none; padding: 0 !important; }
.guide-list li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; }
.guide-list a { font-weight: 600; font-size: 16px; text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }

/* Signal Flow Planner landing page (/signal-flow-planner/) */
.guide.wide { max-width: 1040px; }
.guide.wide > p, .guide.wide > .answer, .guide.wide > .related, .guide.wide > .faq, .guide.wide > .scroll { max-width: 780px; }
.lp-icon { width: 40px; height: 40px; vertical-align: -9px; margin-right: 6px; }
.lp-lede { font-size: 17px; line-height: 1.55; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.cta.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lp-hero { margin: 18px 0 24px; }
.lp-hero img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #1b1c1f; }
.lp-hero figcaption, .lp-gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.lp-feats { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.lp-feats li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0; }
.lp-feats b { display: block; margin-bottom: 3px; }
.lp-feats span { color: var(--muted); font-size: 14px; }
.lp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-gallery figure { margin: 0; }
.lp-gallery figure:first-child { grid-column: 1 / -1; }
.lp-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #1b1c1f; }
.lp-gallery figcaption b { display: block; color: var(--text); }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 560px) {
  .lp-gallery { grid-template-columns: 1fr; }
  .lp-lede { font-size: 16px; }
  .lp-icon { width: 32px; height: 32px; vertical-align: -7px; }
}
.cmp th, .cmp td { white-space: normal; }
.cmp td { width: 130px; }
@media (max-width: 560px) { .cmp td { width: 84px; } }
