/* A9 Lister help pages (a9lister.com/help, AL-15). Loaded after site.css, which supplies the tokens, the landing page's
   header, phone menu, buttons and footer, so those are the same code on both. This file is only what help adds:
   the page grid, search, the article typography, pictures and panel mode (the tool's help panel frames these pages). */

.help { --work: #eef1f6; --rule-soft: #e3e7ed; --tint: #f6f8fc; --rule-help: #d9dee6;
  --ok-bg: #dcf1e3; --ok: #14532d; --warn-bg: #fde7c3; --warn: #7a4508; --hot-bg: #fbe1e2; --hot: #8f1d22; --info-bg: #e4ebfb; --info: #1e3f94;
  --shadow: 0 1px 2px rgba(12, 26, 48, .06), 0 6px 18px rgba(12, 26, 48, .06); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- the header band ---------- */
.help-top { overflow: visible; }
.help-top .topo { overflow: hidden; }
.help-hero { padding-bottom: 56px; }
.help-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 28px; }
.help-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.help-intro .lead { font-size: 18px; line-height: 1.55; color: var(--on-navy-2); max-width: 600px; }
.nav a[aria-current="page"], .sheet-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- search ---------- */
.hsearch { position: relative; }
.hsearch input { width: 100%; min-height: 48px; padding: 0 44px 0 16px; border: 1px solid var(--rule-help); border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px/1.2 var(--text); box-shadow: var(--shadow); }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.hero .hsearch input:focus-visible { outline-color: var(--gold); }
.hs-key { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--rule-help); border-radius: 6px; color: var(--muted); font: 500 13px/1 var(--mono); pointer-events: none; }
.help-hero .hsearch { width: 100%; max-width: 560px; }
.hresults { margin-top: 12px; background: #fff; color: var(--ink); border: 1px solid var(--rule-help); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; text-align: left; }
.hresults[hidden] { display: none; }
.help-hero .hresults { max-width: 560px; }
.hr-count { margin: 6px 10px 2px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hr-list { display: flex; flex-direction: column; }
.hr-list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.hr-list a:hover, .hr-list a:focus-visible { background: var(--tint); outline: none; box-shadow: inset 3px 0 0 var(--gold); }
.hr-list b { display: block; font-weight: 650; font-size: 15px; }
.hr-where { display: block; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.hr-sn { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.hr-none { margin: 10px 12px; font-size: 14.5px; color: var(--body); }
.hr-sug { margin: 0 12px 10px; padding-left: 18px; list-style: disc; font-size: 14.5px; }
.hr-sug li { padding: 2px 0; }
mark { background: var(--warn-bg); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.searching .topics, .searching #topicList { display: none; }

/* ---------- article pages: topics on the left, the article on the right ---------- */
.help-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 32px; padding-bottom: 72px; }
.help-side { position: sticky; top: calc(var(--pin) + 16px); max-height: calc(100vh - var(--pin) - 32px); overflow-y: auto; padding: 2px 4px 16px 2px; }
.topics { margin-top: 18px; }
.topics summary { display: none; cursor: pointer; padding: 12px 14px; border: 1px solid var(--rule-help); border-radius: 12px; background: #fff; font-weight: 600; list-style: none; }
.topics summary::-webkit-details-marker { display: none; }
.topics summary::after { content: "▾"; float: right; color: var(--muted); }
.topics[open] summary::after { content: "▴"; }
.tg { margin-bottom: 18px; }
.tg h2 { font: 500 11.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px 10px; }
.tg ul { display: flex; flex-direction: column; }
.tg a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--body); text-decoration: none; font-size: 15px; }
.tg a:hover { background: rgba(12, 26, 48, .05); color: var(--ink); }
.tg a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold), var(--shadow); }

.help-main { min-width: 0; outline: none; }
.help-main > article { background: #fff; border: 1px solid var(--rule-help); border-radius: 14px; box-shadow: var(--shadow); padding: 36px 44px 40px; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.help-main h1 { margin-top: 10px; font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); }
.lede { margin-top: 14px; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 62ch; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--info-bg); color: var(--info); font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.toc { margin-top: 22px; padding: 14px 18px; border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--tint); }
.toc b { font: 500 11.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.toc ul { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.toc a { display: inline-block; padding: 4px 0; font-size: 15px; }

/* ---------- the article text ---------- */
.prose { margin-top: 8px; font-size: 16.5px; line-height: 1.65; color: var(--body); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule-soft); font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 27px; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); }
.prose h2:first-child { margin-top: 28px; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 28px; font-size: 19px; font-weight: 650; line-height: 1.3; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose a { text-underline-offset: 2px; }
.prose b, .prose strong { color: var(--ink); font-weight: 650; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ul li + li, .prose ol li + li { margin-top: 8px; }
.prose ol { counter-reset: step; padding: 0; }
.prose ol > li { position: relative; padding-left: 42px; min-height: 30px; counter-increment: step; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 600 13px/1 var(--mono); }
.prose ol > li > ul, .prose ol > li > p { margin-top: 8px; }
.prose code, .prose kbd { font: 500 .88em var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--work); border: 1px solid var(--rule-soft); color: var(--ink); }
.prose kbd { box-shadow: 0 1px 0 var(--rule-help); }
.tw { overflow-x: auto; border: 1px solid var(--rule-help); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose table th, .prose table td { min-width: 0; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose th { background: var(--tint); font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.note { padding: 14px 18px; border-radius: 12px; border: 1px solid #c9d6f2; background: var(--info-bg); color: #16306f; font-size: 15.5px; line-height: 1.55; }
.note.warn { border-color: #f1d49a; background: var(--warn-bg); color: #5e3606; }
.note.ok { border-color: #b8e0c6; background: var(--ok-bg); color: #0f4224; }
.note b { color: inherit; }
.note p + p { margin-top: 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font: 600 12.5px/1.5 var(--text); background: var(--work); color: var(--ink); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.hot { background: var(--hot-bg); color: var(--hot); }
.pill.info { background: var(--info-bg); color: var(--info); }
.anchor { margin-left: 8px; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { display: none; } }

/* pictures: the shot is a real screenshot, so it is framed like a window and zooms when tapped */
figure.hfig { margin: 24px 0 12px; }
figure.hfig img { display: block; width: auto; max-width: 100%; height: auto; border: 1px solid var(--rule-help); border-radius: 12px; box-shadow: var(--shadow); background: var(--work); cursor: zoom-in; }
figure.hfig figcaption { display: block; clear: both; margin: 16px 2px 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
figure.hfig.narrow img { max-width: 360px; }
figure.hfig.missing div { display: grid; place-items: center; min-height: 160px; border: 2px dashed var(--rule-help); border-radius: 12px; color: var(--muted); font: 500 13px var(--mono); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 18, 36, .8); }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 12px; background: #fff; cursor: zoom-out; }
.lb-x { position: absolute; right: -6px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

.still { margin-top: 44px; padding: 20px 24px; border-radius: 14px; background: var(--navy); color: var(--on-navy-2); }
.still h2 { font: 800 20px/1.2 var(--display); font-stretch: 112%; letter-spacing: -.02em; color: var(--on-navy); margin: 0 0 4px; }
.still p { font-size: 15.5px; }
.still a { color: var(--gold); }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pn { flex: 1 1 0; max-width: 48%; display: block; padding: 14px 18px; border: 1px solid var(--rule-help); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 650; text-decoration: none; }
.pn:hover { border-color: var(--navy); }
.pn span { display: block; font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pn.next { text-align: right; margin-left: auto; }

/* ---------- the help home ---------- */
.help-homebody { padding-top: 40px; padding-bottom: 72px; }
.hgroup + .hgroup { margin-top: 34px; }
.hgroup > h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.hcard { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--rule-help); border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--body); text-decoration: none; transition: border-color .15s, transform .15s; }
.hcard:hover { border-color: var(--navy); transform: translateY(-2px); }
.hcard b { font-size: 17px; font-weight: 650; color: var(--ink); }
.hcard span { font-size: 14.5px; line-height: 1.5; }
.help-homebody .still { margin-top: 44px; }
@media (prefers-reduced-motion: reduce) { .hcard { transition: none; } .hcard:hover { transform: none; } }

/* ---------- phones and tablets ---------- */
@media (max-width: 899px) {
  .help-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; padding-bottom: 48px; }
  .help-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .topics summary { display: block; }
  .topics nav { margin-top: 10px; padding: 12px 6px 2px; border: 1px solid var(--rule-help); border-radius: 12px; background: #fff; }
  .help-main > article { padding: 24px 20px 28px; }
  .lede { font-size: 17.5px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .help-hero { padding-bottom: 36px; }
}
@media (max-width: 520px) {
  .prevnext { flex-direction: column; }
  .pn { max-width: none; }
}

@media (hover: none) { .hs-key { display: none; } .hsearch input { padding-right: 16px; } }

/* ---------- panel mode: the tool's help panel frames these pages ---------- */
html.panel { --bar: 0px; --pin: 0px; }
html.panel body { background: #fff; }
html.panel .help-top, html.panel .foot, html.panel .skip, html.panel .crumbs, html.panel .prevnext, html.panel .still, html.panel .hs-key { display: none; }
html.panel .help-grid { display: block; padding: 14px 16px 28px; }
html.panel .help-side { position: static; max-height: none; overflow: visible; padding: 0; }
html.panel .help-main > article { border: 0; box-shadow: none; padding: 18px 0 0; border-radius: 0; }
html.panel .topics summary { display: block; }
html.panel .topics nav { margin-top: 10px; padding: 12px 6px 2px; border: 1px solid var(--rule-help); border-radius: 12px; background: #fff; }
html.panel .help-main h1 { font-size: 27px; margin-top: 0; }
html.panel .lede { font-size: 16.5px; }
html.panel .prose { font-size: 15.5px; }
html.panel .prose h2 { font-size: 21px; margin-top: 32px; padding-top: 20px; }
html.panel .prose h3 { font-size: 17px; }
html.panel .prose ol > li { padding-left: 38px; }
html.panel .toc { display: none; }
html.panel .hsearch input { min-height: 44px; box-shadow: none; }
html.panel figure.hfig img { box-shadow: none; }
html.panel figure.hfig figcaption { margin-top: 16px; }
