/* The Help page. Built on info.css, which gives the brand header, colours and footer. */
[hidden] { display: none !important; }
.page { max-width: 820px; font-size: 17px; line-height: 1.7; }
.page a { color: var(--blue); }
.lead { margin-bottom: 22px; }
.small { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 6px 0 0; }

/* Search and view controls */
.tools { padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.search-label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
#q { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
#q:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
#q-clear, .linkish, .seg button { font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
#q-clear { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.tool-label { color: var(--text-dim); font-size: 14px; }
.spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; background: transparent; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--pink); color: #fff; font-weight: 700; }
.linkish { background: none; border: 0; padding: 8px 2px; color: var(--blue); text-decoration: underline; }
mark { background: rgba(255, 138, 31, 0.35); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Contents */
.toc { margin: 22px 0 18px; display: grid; gap: 14px; }
.toc-group { padding: 4px 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc-group h2 { margin: 12px 0 6px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); }
.toc li:first-child a { border-top: 0; }
.toc li a strong { display: block; color: var(--text); }
.toc li a span { display: block; color: var(--text-dim); font-size: 15px; line-height: 1.4; }
.toc li a:hover strong { color: var(--pink); }
.searching .toc, .searching .ask, .searching .shots { display: none; }

/* Sections that open and close */
details.sec { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
details.sec > summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; scroll-margin-top: 12px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after, details.tab > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; color: var(--pink); }
details[open] > summary::after { content: "\2212"; }
details.sec > summary h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.blurb { display: block; margin-top: 2px; color: var(--text-dim); font-size: 15px; line-height: 1.4; }
.body { padding: 0 18px 12px; }
details.sec[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.body > p, .body p { max-width: 64ch; margin: 0 0 16px; }
.ask { border-left: 4px solid var(--orange); }
.ask-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.ask-buttons button, .ask-buttons a.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ask-buttons button:hover, .ask-buttons a.button:hover { border-color: var(--pink); }

/* Tabs inside "The five tabs" */
details.tab { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
details.tab > summary { list-style: none; cursor: pointer; padding: 12px 48px 12px 16px; position: relative; }
details.tab > summary::-webkit-details-marker { display: none; }
details.tab > summary h3 { margin: 0; font-size: 18px; color: var(--pink); }
details.tab > .body { padding-top: 6px; }

/* Steps */
dl { margin: 6px 0 0; }
.step { margin: 0 0 12px; padding: 14px 16px 2px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface-2); }
details.tab .step { background: var(--surface); }
.step dt { margin: 0 0 6px; font-weight: 700; color: var(--text); }
.step dd { margin: 0; color: #cdd3ea; }
.step dd p { margin: 0 0 12px; max-width: 62ch; }
.only.inline { display: inline; }
.who { font-weight: 700; color: var(--orange); }
p.only, div.only { color: inherit; }

/* Phone or computer. Only the wording changes. */
[data-show="phone"] .only.desktop, [data-show="desktop"] .only.phone { display: none; }
.only.phone:not(.inline)::before, .only.desktop:not(.inline)::before { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px; border: 1px solid var(--orange); color: var(--orange); }
.only.phone:not(.inline)::before { content: "Phone"; }
.only.desktop:not(.inline)::before { content: "Computer"; }
[data-show="phone"] .only.phone:not(.inline)::before, [data-show="desktop"] .only.desktop:not(.inline)::before { display: none; }
.step dd div.only { margin: 0; }
.step dd div.only > p:first-child::before { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px; border: 1px solid var(--orange); color: var(--orange); }
.step dd div.only.phone > p:first-child::before { content: "Phone"; }
.step dd div.only.desktop > p:first-child::before { content: "Computer"; }
[data-show="phone"] .step dd div.only.phone > p:first-child::before, [data-show="desktop"] .step dd div.only.desktop > p:first-child::before { display: none; }

/* Pictures */
.table-wrap { margin: 14px 0; overflow-x: auto; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 22px 0; }
.shot { margin: 0; max-width: 100%; }
.shot.phone { width: min(300px, 100%); }
.shot.desktop { width: 100%; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); color: var(--text); }
tbody th { background: var(--surface); color: var(--pink); white-space: nowrap; }
td { color: var(--text-dim); }

/* Names from the screen, shown the same way in the app */
b.ui { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.93em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.guide-link { color: var(--blue); }
.body ul, .step dd ul { margin: 0 0 14px; padding-left: 20px; max-width: 62ch; }
.body li, .step dd li { margin: 0 0 6px; }
.step dd ul:last-child { margin-bottom: 12px; }
.who-tag { display: inline-block; margin: 0 0 6px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 20px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--orange); }
[data-show="phone"] .who-tag, [data-show="desktop"] .who-tag { display: none; }
.step:target, details.sec:target > summary { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 520px) {
  .page { font-size: 16.5px; }
  .tools, .body { padding-left: 14px; padding-right: 14px; }
  details.sec > summary { padding-left: 14px; }
  .step { padding: 12px 12px 2px; }
  .spacer { display: none; }
}
@media print { .tools, .toc, .ask { display: none; } }
