/* Repair-assistant guide layout (plan 031, templates/pages/guide.html). Loaded only by that template, so the
   article layout's HTML+CSS budget is unchanged. Mobile-first, system fonts, no images, no layout shift:
   <details> open in place and nothing loads late. Touch targets are at least 44px tall. */
.guide { --g-line: #e3e6ea; --g-soft: #f5f7fa; --g-ink: #1a1a1a; --g-radius: 10px; }
.guide h1 { font-size: 1.6rem; line-height: 1.2; margin: .5rem 0 .5rem; }
.guide .summary { font-size: 1.05rem; margin: 0 0 .75rem; }
.g-hero { margin-bottom: 1rem; }
.g-dx { background: var(--g-soft); border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 1rem;
        margin: .75rem 0 .5rem; }
.g-dx h2 { font-size: 1.15rem; margin: 0 0 .25rem; }
.g-dx-lede { margin: 0 0 .75rem; color: var(--muted); }
.g-dx label { display: block; font-size: .95rem; margin-bottom: .35rem; }
.g-dx input[name="model_number"] { box-sizing: border-box; width: 100%; font: inherit; padding: .6rem .7rem;
        border: 1px solid #b8bec7; border-radius: 6px; margin-bottom: .6rem; min-height: 44px; background: #fff; }
.g-dx fieldset { border: 0; padding: 0; margin: 0 0 .6rem; }
.g-dx label.choice { padding: .6rem .5rem; border: 1px solid var(--g-line); border-radius: 6px; margin: .35rem 0;
        background: #fff; }
.g-btn { display: block; width: 100%; min-height: 48px; font-weight: 600; font-size: 1.05rem; border-radius: 8px;
         cursor: pointer; }
.g-btn:hover, .g-btn:focus-visible { background: #084a8c; }
.guide button { min-height: 44px; }
.g-alt { text-align: center; margin: .5rem 0; }
.g-alt a { display: inline-block; padding: .6rem .75rem; min-height: 44px; box-sizing: border-box; color: var(--accent); }
.g-hero .attribution { font-size: .85rem; }
.g-safety { border-radius: var(--g-radius); font-size: .95rem; padding: .6rem .9rem; }
.g-safety h2 { font-size: 1.05rem; margin: .25rem 0 .35rem; }
.g-safety ul { margin: 0; padding-left: 1.1rem; }
.g-safety li { margin: .25rem 0; }
.g-fixes h2 { font-size: 1.3rem; margin: 1.25rem 0 .25rem; }
.g-fixes-lede { margin: 0 0 .6rem; }
.g-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.g-card { border: 1px solid var(--g-line); border-radius: var(--g-radius); background: #fff; }
.g-card > summary { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; cursor: pointer;
                    list-style: none; min-height: 44px; }
.g-card > summary::-webkit-details-marker { display: none; }
.g-card > summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--muted);
                           transition: transform .15s; }
.g-card[open] > summary::after { transform: rotate(90deg); }
.g-card > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--g-radius); }
.g-n { flex: 0 0 auto; width: 2rem; height: 2rem; line-height: 2rem; text-align: center; border-radius: 8px;
       background: var(--g-soft); font-weight: 700; }
.g-card-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.g-card-title { font-weight: 600; font-size: 1.05rem; }
.g-card-meta, .g-card-finds { font-size: .875rem; color: var(--muted); }
.g-warn { color: #7a4b00; font-weight: 600; }
.g-card-body { padding: 0 .9rem .9rem; border-top: 1px solid var(--g-line); }
.g-card-body .warning { margin: .75rem 0 .25rem; font-size: .95rem; }
.g-card-body .procedure h3 { margin: .9rem 0 .2rem; }
.g-card-body ol { padding-left: 1.25rem; margin: .35rem 0; }
.g-card-body li { margin: .25rem 0; }
.g-then { font-weight: 600; margin: 1rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--g-line); }
.g-next { margin: .75rem 0 0; }
.g-more { margin: 1.25rem 0; border-top: 1px solid var(--g-line); }
.g-sec { border-bottom: 1px solid var(--g-line); }
.g-sec > summary { display: flex; align-items: center; gap: .5rem; padding: .75rem 0; cursor: pointer; list-style: none;
                   min-height: 44px; }
.g-sec > summary::-webkit-details-marker { display: none; }
.g-sec > summary h2 { font-size: 1.05rem; margin: 0; flex: 1; }
.g-sec > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.g-sec[open] > summary::after { content: "−"; }
.g-sec > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-sec[open] { padding-bottom: .75rem; }
.g-count { font-size: .8rem; color: var(--muted); background: var(--g-soft); border-radius: 999px; padding: 0 .5rem; }
.g-sec .causes { padding-left: 1.25rem; }
.g-still { margin: 1.25rem 0; }
.g-still h2, .g-related h2 { font-size: 1.2rem; }
.g-related ul { padding-left: 1.1rem; }
.g-related li { margin: .35rem 0; }
@media (min-width: 40rem) {
  .guide h1 { font-size: 1.9rem; }
  .g-dx { padding: 1.1rem 1.25rem; }
  .g-dx form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; }
  .g-dx form label, .g-dx form fieldset { grid-column: 1 / -1; margin-bottom: 0; }
  .g-dx input[name="model_number"] { margin-bottom: 0; }
  .g-btn { width: auto; padding: 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .g-card > summary::after { transition: none; } }
/* Plan 032: links from the cards and the safety box to the shared repair guide and reference. */
.g-card-guide { display: inline-block; margin: .35rem 0 0 .9rem; padding: .5rem 0; min-height: 44px;
                box-sizing: border-box; font-weight: 600; color: var(--accent); }
.g-more-link { margin: .5rem 0 0; }
.g-more-link a { font-weight: 600; }
/* Card thumbnails: a crop of the cited scene below the cards, drawn by <use> (plan 032). */
.g-thumb { position: relative; flex: 0 0 auto; width: 80px; height: 60px; border: 1px solid var(--g-line);
           border-radius: 8px; background: #fff; }
.g-thumb svg { display: block; width: 80px; height: 60px; border-radius: 8px; }
.g-thumb .g-n { position: absolute; left: -.4rem; top: -.4rem; width: 1.6rem; height: 1.6rem; line-height: 1.6rem;
                font-size: .85rem; background: var(--g-ink); color: #fff; }
/* Decision cards (plan 033): the findings, each with where it leads. */
.g-finds { margin: .35rem 0 0; padding-left: 1.1rem; }
.g-finds li { margin: .4rem 0; }
