/* Owner's guide pages (/guides/*). Built for a phone held in one hand while the
   other hand is on the remote, so steps stay large and the contents rail stays
   reachable. Shares the site tokens from styles.css. */

.guide-hero { padding: 56px 0 40px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.guide-hero .eyebrow {
  font-family: var(--font-accent); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px;
}
.guide-hero h1 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); line-height: 1.1; margin-bottom: 16px; }
.guide-hero-sub { font-size: 1.05rem; color: var(--gray-600); max-width: 62ch; line-height: 1.65; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Jump-to strip for the three things people actually open this page for */
.quick-fix { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 32px; }
.quick-fix a {
  display: block; padding: 16px 18px; background: var(--white);
  border: 1px solid var(--gray-200); border-left: 3px solid var(--navy);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s;
}
.quick-fix a:hover { border-left-color: var(--navy-light); transform: translateX(2px); }
.quick-fix strong { display: block; font-family: var(--font-accent); font-weight: 600; color: var(--black); margin-bottom: 3px; }
.quick-fix span { font-size: 0.88rem; color: var(--gray-600); }

/* Two-column shell: sticky contents rail + article */
.guide-shell { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
/* Clears the sticky site header (85px) so the rail never slides under it. */
.guide-toc { position: sticky; top: 100px; }
.guide-toc h2 {
  font-family: var(--font-accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px;
}
.guide-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a {
  display: block; padding: 6px 0 6px 26px; position: relative; font-size: 0.9rem;
  color: var(--gray-600); text-decoration: none; line-height: 1.4;
}
.guide-toc a::before {
  content: counter(toc); position: absolute; left: 0; top: 6px;
  font-size: 0.72rem; color: var(--gray-400); font-variant-numeric: tabular-nums;
}
.guide-toc a:hover { color: var(--navy); }
/* The <details> wrapper only earns its keep on narrow screens, where the rail
   collapses; on desktop the list is always open so the toggle is noise. */
.guide-toc details > summary { display: none; }

.guide-body { min-width: 0; }
/* scroll-margin clears the sticky header when a contents link jumps here. */
.guide-section { padding-top: 8px; margin-bottom: 60px; scroll-margin-top: 100px; }
.guide-section > h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.2; margin-bottom: 8px;
  padding-bottom: 12px; border-bottom: 2px solid var(--black);
}
.guide-section .sec-lede { color: var(--gray-600); line-height: 1.7; margin: 14px 0 24px; }
.guide-section h3 {
  font-family: var(--font-accent); font-size: 1rem; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; margin: 32px 0 14px;
}
.guide-body p { line-height: 1.7; margin-bottom: 14px; }

/* Step cards */
.steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative; display: grid;
  grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--gray-200);
}
.steps > li:last-child { border-bottom: 1px solid var(--gray-200); }
.steps > li::before {
  content: counter(step); grid-column: 1; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white);
  font-family: var(--font-accent); font-size: 0.9rem; font-weight: 600;
}
.steps.lettered > li::before { content: counter(step, upper-alpha); }
.step-main { line-height: 1.6; }
.step-main strong { font-weight: 600; }

/* Remote button glyphs, drawn to read like the buttons on the handset */
.keys { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; margin: 0 2px; }
.key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--black); background: var(--white); flex: none;
}
.key svg { width: 15px; height: 15px; }
.key.key-p { border-radius: 6px; font-family: var(--font-accent); font-weight: 700; font-size: 0.85rem; width: auto; padding: 0 9px; }
.key-plus { font-size: 1rem; font-weight: 600; color: var(--gray-600); }

/* Inline chips: hold time, jog feedback, display readout */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-family: var(--font-accent); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}
.chip-hold { background: var(--navy); color: var(--white); }
.chip-jog { background: var(--gray-100); color: var(--gray-800); border: 1px solid var(--gray-200); }
.chip-lcd {
  background: var(--black); color: #7dd87d; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em; border-radius: 3px;
}
.step-feedback { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Callouts */
.callout { padding: 16px 18px; border-radius: var(--radius); margin: 20px 0; line-height: 1.65; font-size: 0.95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-note { background: var(--gray-50); border-left: 3px solid var(--gray-400); }
.callout-warn { background: #fff8f0; border-left: 3px solid #c2721a; }
.callout-tip { background: #f2f7fc; border-left: 3px solid var(--navy); }
.callout strong { font-weight: 600; }

/* Preprogrammed banner repeated through the printed guide */
.preset-banner {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 24px; font-size: 0.94rem; line-height: 1.65; color: var(--gray-600);
}
.preset-banner strong { color: var(--black); font-weight: 600; }

/* Spec + package tables */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin: 8px 0 4px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--gray-200); }
.spec-table th { font-family: var(--font-accent); font-weight: 600; color: var(--gray-600); width: 52%; }
.spec-table td { font-variant-numeric: tabular-nums; }
.spec-caption {
  font-family: var(--font-accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 10px;
}

/* Model comparison */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.model-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; background: var(--white); }
.model-card h4 { font-family: var(--font-accent); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.model-card p { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 0; }

/* Troubleshooting */
.trouble { display: grid; gap: 16px; }
.trouble-card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.trouble-card > h3 {
  margin: 0; padding: 14px 18px; background: var(--black); color: var(--white);
  font-size: 0.95rem; text-transform: none; letter-spacing: 0.01em;
}
.trouble-card dl { margin: 0; padding: 6px 18px 16px; }
.trouble-card dt {
  font-family: var(--font-accent); font-weight: 600; font-size: 0.88rem;
  margin-top: 14px; color: var(--gray-800);
}
.trouble-card dd { margin: 4px 0 0; font-size: 0.94rem; line-height: 1.6; color: var(--gray-600); }

/* Closing help band */
.guide-help { background: var(--black); color: var(--white); padding: 46px; border-radius: var(--radius); margin-top: 20px; }
.guide-help h2 { color: var(--white); font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 12px; border: 0; padding: 0; }
.guide-help p { color: rgba(255,255,255,0.72); margin-bottom: 22px; max-width: 52ch; }
.guide-help .btn { margin-right: 10px; }

@media (max-width: 900px) {
  .guide-shell { grid-template-columns: 1fr; gap: 0; }
  .guide-toc {
    position: static; margin-bottom: 40px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 0;
  }
  .guide-toc > h2 { display: none; }
  .guide-toc details > summary { display: block; }
  .guide-toc details > summary {
    list-style: none; cursor: pointer; padding: 15px 18px;
    font-family: var(--font-accent); font-weight: 600; font-size: 0.92rem;
  }
  .guide-toc details > summary::-webkit-details-marker { display: none; }
  .guide-toc details > summary::after { content: "＋"; float: right; color: var(--gray-400); }
  .guide-toc details[open] > summary::after { content: "－"; }
  .guide-toc ol { padding: 0 18px 16px; }
  .guide-section { margin-bottom: 48px; }
  .steps > li { grid-template-columns: 32px 1fr; gap: 12px; }
  .steps > li::before { width: 28px; height: 28px; font-size: 0.82rem; }
  .guide-help { padding: 32px 24px; }
}

@media print {
  .promo-bar, .site-header, .site-footer, .mobile-cta-bar, .guide-toc,
  .guide-hero-actions, .quick-fix, .guide-help { display: none !important; }
  .guide-shell { display: block; }
  .guide-section { page-break-inside: avoid; margin-bottom: 28px; }
}
