/* How-to page only (linked after site.css): breadcrumb, search, topic index, Start here, page tools, guides, pictures, print */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0 0 var(--space-s); padding: 0; list-style: none; font-size: var(--step--1); }
.crumbs li + li::before { content: "\203A"; margin-inline-end: .6rem; color: var(--text-2); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); min-width: var(--target-min); color: var(--text-2); }
.search { max-width: 40rem; margin-top: var(--space-m); }
.search label { display: block; margin-bottom: var(--space-2xs); color: var(--text); font-weight: 600; }
.search-field { position: relative; }
.search-field svg { position: absolute; inset-inline-start: 1rem; top: 50%; width: 1.4rem; height: 1.4rem; transform: translateY(-50%); fill: none; stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; }
.search input { width: 100%; min-height: 3.5rem; padding-block: .7rem; padding-inline: 3.2rem 1rem; border: 1px solid var(--edge); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; font-size: var(--step-0); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--text-2); opacity: 1; }
.search-status { min-height: 1.6em; margin: var(--space-2xs) 0 0; color: var(--text-2); font-size: var(--step--1); }
.howto { display: grid; gap: var(--space-l) var(--block-gap); padding-block: var(--section); }
.topics h2 { margin-bottom: var(--space-s); font: 600 var(--step--1)/1.4 var(--sans); }
.topics ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.topics a { min-height: var(--target-min); display: flex; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--rule); color: var(--text); font-weight: 500; text-decoration: none; }
.topics a:hover { color: var(--accent); }
/* Phones and tablets: the topics wrap as a row of links instead of a tall list (concise site, 2026-10-15) */
@media (max-width: 63.99rem) {
  .topics ul { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); border-top: 0; }
  .topics li { margin: 0; }
  .topics a { padding: .4rem .9rem; border: 1px solid var(--edge); border-radius: 999px; }
}
.topic-list { min-width: 0; max-width: 46rem; }
.topic { scroll-margin-top: 1rem; }
.topic + .topic { margin-top: var(--block-gap); }
.topic h2 { font-size: var(--step-3); }
.topic > p { color: var(--text-2); }
.anchor { position: relative; top: -1rem; display: block; height: 0; }
/* Start here: the setup path, always open */
.start { padding: var(--space-m); border: 1px solid var(--edge); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.start h2 { font-size: var(--step-2); }
.start > p { color: var(--text); }
.path { margin: 0; padding-inline-start: 1.4rem; }
.path li { margin: .55rem 0; padding-inline-start: .3rem; }
.path li::marker { color: var(--accent); font-weight: 700; }
.path a { font-weight: 600; }
/* Page tools: which phone they have, and open or close every guide */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: var(--space-m) 0; padding: var(--space-s); border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--surface); }
.switch { min-inline-size: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.switch > span { margin-inline-end: .25rem; font-weight: 600; }
.switch label { display: inline-flex; flex-wrap: wrap; min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; align-items: center; gap: .45rem; min-height: var(--target-min); padding: .3rem .9rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.switch label:has(:checked) { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
.switch input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent); }
.all { display: flex; flex-wrap: wrap; gap: .5rem; margin-inline-start: auto; }
.tools button, .copy-link { min-height: var(--target-min); max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; padding: .3rem .9rem; border: 1px solid var(--accent); border-radius: var(--radius-s); background: transparent; color: var(--accent); font: inherit; font-size: var(--step--1); font-weight: 600; cursor: pointer; }
.tools button:hover, .copy-link:hover { background: var(--btn-bg); color: var(--btn-fg); }
html:not(.js) .tools, html:not(.js) .search, html:not(.js) .switch, html:not(.js) .all, html:not(.js) .copy-link { display: none; }
html[data-phone="android"] [data-phone="iphone"], html[data-phone="iphone"] [data-phone="android"] { display: none !important; }
.badge { display: inline-block; margin-inline-start: .3rem; padding: .05rem .6rem; border: 1px solid var(--edge); border-radius: 999px; color: var(--text-2); font: 600 var(--step--1)/1.7 var(--sans); letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
/* A phone badge sits after its summary text, after a space, so it can move to the next line at large text sizes */
.plus summary > span { min-width: 0; }
/* Guides */
.howto-item details { scroll-margin-top: 1rem; }
.howto-item :target > summary, .howto-item details:has(:target) > summary { border-inline-start: 3px solid var(--accent); padding-inline-start: .9rem; }
.guide { margin-inline-start: 2.35rem; max-width: 44rem; }
@media (max-width: 39.99rem) { .guide { margin-inline-start: 0; } }   /* the indent would leave a 148 px picture at 320 */
.guide b { font-weight: 650; }
.part { display: block; margin-bottom: .25rem; color: var(--text-2); font: 600 var(--step--1)/1.4 var(--sans); }
.before { margin: var(--space-2xs) 0 var(--space-s); padding: var(--space-s); border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--bg-2); }
.before ul { margin: var(--space-2xs) 0 0; padding-inline-start: 1.2rem; }
.before li { margin: .3rem 0; }
.device { overflow-wrap: anywhere; display: flex; align-items: center; gap: .6rem; margin: var(--space-s) 0 var(--space-2xs); color: var(--text); font: 600 var(--step--1)/1.3 var(--sans); }
.device svg { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.howto .steps { display: block; position: static; margin: var(--space-2xs) 0 var(--space-s); padding-inline-start: 1.4rem; list-style: decimal; }
.howto .steps::before { content: none; }
.howto .steps li { margin-bottom: var(--space-xs); padding-inline-start: .35rem; }
.howto .steps li::marker { color: var(--accent); font-weight: 700; }
.choose, .branch, .fix, .phone-note { margin: var(--space-xs) 0; padding: var(--space-s); border: 1px solid var(--rule); border-inline-start-width: 3px; border-radius: var(--radius-s); background: var(--surface); }
.choose .label, .branch .label, .fix .label { display: block; margin: 0 0 var(--space-2xs); font-weight: 600; }
.choose ul, .branch ul, .fix ul { margin: 0; padding-inline-start: 1.2rem; }
.choose li, .branch li, .fix li { margin: var(--space-2xs) 0; }
.fix { border-inline-start-color: var(--edge); }
.fix .label { color: var(--accent); }
.worked { margin: 0 0 var(--space-s); }
.know { margin: 0 0 var(--space-s); color: var(--text-2); }
.guide-tools { margin: 0 0 var(--space-m); }
/* A picture of the app, right after its step, in a light phone-like frame; the green ring marks the control */
.howto-shot { width: 60%; max-width: 300px; margin: .7rem 0 .4rem; }
.howto-shot > figure { margin: 0; }
@media (max-width: 39.99rem) { .howto-shot { width: calc(100% + 1.75rem); max-width: 20rem; margin-inline-start: -1.75rem; } }   /* the picture takes the step column's full width, undoing the list and item indent */   /* up to 20rem wide, so the app's text can be read */
.howto-shot .enlarge { display: flex; margin-top: var(--space-2xs); }
.howto-shot a { display: block; }
.howto-shot img { display: block; box-sizing: border-box; width: 100%; height: auto; margin: 0 0 var(--space-2xs); border: 1px solid var(--edge); border-radius: var(--radius-s); background: var(--surface); }
.howto-shot figcaption { margin: 0; color: var(--text-2); font-size: var(--step--1); line-height: 1.45; }
@media (min-width: 64rem) {
  .howto { grid-template-columns: 17rem minmax(0, 1fr); align-items: start; }
  .topics { position: sticky; top: calc(var(--head-h) + var(--space-s)); }
  .howto-shot { float: inline-end; clear: inline-end; width: 40%; max-width: 300px; margin-block: var(--space-2xs) var(--space-s); margin-inline: var(--space-m) 0; }
  .howto .steps li { clear: none; }
  .worked, .know, .device, .guide-tools, .before { clear: both; }
}
@media print {
  .site-head, .menu, .localnav, .band-head .search, .topics, .tools, .guide-tools, .site-foot nav, .crumbs { display: none !important; }
  .band-head h1, .band-head .lead { color: inherit; }
  .howto { display: block; padding: 0; }
  .guide { margin-inline-start: 0; }
  .howto-shot { float: none; width: 45%; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: var(--step--1); color: var(--text-2); }
}
/* Without JavaScript the search box cannot filter, so it is hidden */
@media (scripting: none) { .search { display: none; } }

html:has(.lang) .topics { position: static; }
.copy-recovery { margin-block: var(--space-s); }
.copy-recovery label { display: block; }
.copy-recovery input { inline-size: 100%; min-block-size: var(--target-min); font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--edge); }
.copy-status { margin-inline-start: var(--space-xs); overflow-wrap: anywhere; }
