/* ==========================================================================
   Indore — help.css
   Loads after base.css. Nothing here belongs to any other page.

   The help page is a knowledge base on the dark ground of the downloads and
   pricing pages: Clash Display in white, mono for labels, no photograph.

     .hhead    "Help." in .d1, one line, the LAST UPDATED line.
     .hsearch  the search field (only with JavaScript: html.js), its count
               line and the empty state. Sticky under the nav below 1000.
     .hcards   4 white cards, the common ways in, copied from pricing's
               .choice at a smaller size.
     .hgrid    the topic list (.htoc) and the topics (.hbody). From 1000 the
               list is a sticky rail on the left that shows the current
               topic's articles under it (js/help.js sets aria-current).
     .topic    a .cap label over its articles.
     .kb       one article: a <details> whose summary is the title in Clash
               on a hairline; the body is plain prose. "Copy link" sits at
               the right end of the title row while it is open.

   The document skeleton in base.css (.doc) is left alone: Privacy, Terms
   and Refunds share it.

   The colour of copy is --copy here, not --body as on the downloads page:
   base.css uses --body for the body typeface, and redefining it inside
   <main> would break any font-family:var(--body) under it.
   ========================================================================== */

main.help{--ground:#0B111D;--hair:rgba(255,255,255,.2);--white55:rgba(255,255,255,.66);
  --copy:rgba(255,255,255,.78);
  background:var(--ground);color:var(--white);padding:88px 0 72px}
body{background:var(--ground)}
@media (min-width:900px){main.help{padding:128px 0 112px}}

/* the frosted nav and the light footer need the blue focus ring */
.snav :focus-visible,
.footer :focus-visible,
.hcard:focus-visible{outline-color:var(--primary)}


/* --- title ---------------------------------------------------------------- */
.hhead__title{font-size:clamp(64px,10vw,144px);color:var(--white)}
.hhead__lede{margin-top:20px;max-width:34ch;font-family:var(--disp);font-weight:500;
  font-size:20px;line-height:1.2;color:var(--white);text-wrap:pretty}
.hhead__meta,
.hsearch__count,
.kb__app,
.htoc__n,
.topic__n,
.hcard__who{font-family:var(--mono);font-weight:400;font-size:12px;line-height:20px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--white55)}
.hhead__meta{margin-top:20px}
@media (min-width:900px){
  .hhead__lede{margin-top:28px;font-size:26px}
  .hhead__meta{margin-top:28px}
}


/* --- search ----------------------------------------------------------------
   Hidden without JavaScript, where it could not do anything. Below 1000 it
   sticks under the nav (56px), on the ground so the list passes under it. */
.hsearch{display:none}
.js .hsearch{display:block;position:sticky;top:56px;z-index:20;margin-top:28px;
  padding:12px 0;background:var(--ground)}
.hsearch__field{display:block;width:100%;height:52px;padding:0 18px;border:0;border-radius:999px;
  background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px var(--hair);color:var(--white);
  font:inherit;font-size:18px;-webkit-appearance:none;appearance:none}
.hsearch__field::placeholder{color:var(--white55)}
.hsearch__field:focus{outline:none;box-shadow:inset 0 0 0 2px var(--white)}
.hsearch__count{min-height:20px;margin-top:8px}
.hsearch__count:empty{display:none}
.hsearch__none{margin-top:12px;font-size:17px;color:var(--copy)}
.hsearch__none a{color:var(--white);text-decoration:underline;text-underline-offset:4px}
@media (min-width:900px){.js .hsearch{top:64px}}
@media (min-width:1000px){.js .hsearch{position:static;max-width:640px;margin-top:36px;padding:0}}


/* --- the 4 cards ---------------------------------------------------------- */
.hcards{margin-top:28px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hcard{display:flex;flex-direction:column;justify-content:space-between;gap:20px;height:100%;
  min-height:120px;padding:18px 16px 18px;border-radius:16px;background:var(--white);color:var(--plum)}
.hcard__who{color:rgba(37,68,113,.82)}   /* 5.9:1 on white, as pricing's --fine */
.hcard__name{font-family:var(--disp);font-weight:600;font-size:24px;line-height:1;
  letter-spacing:-.01em;text-wrap:balance}
.hcard:hover{background:rgba(255,255,255,.88)}
@media (min-width:900px){
  .hcards{margin-top:40px;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
  .hcard{min-height:176px;padding:28px 28px 26px}
  .hcard__name{font-size:clamp(28px,2.6vw,40px)}
}


/* --- layout: topic list + topics ------------------------------------------ */
.hgrid{margin-top:56px}
.htoc__label{color:var(--white55)}
.htoc__list{margin:16px 0 0;padding:0;list-style:none;border-bottom:1px solid var(--hair)}
.htoc__list>li{border-top:1px solid var(--hair)}
.htoc__list>li>a{display:flex;align-items:center;gap:14px;min-height:48px;
  font-family:var(--disp);font-weight:600;font-size:20px;line-height:1.15;color:var(--white)}
.htoc__list a:hover{color:var(--white55)}
.htoc__n{flex:0 0 auto;width:24px}
.htoc__arts{display:none;margin:0;padding:0 0 12px 38px;list-style:none}
.htoc__arts a{display:block;padding:5px 0;font-size:15px;line-height:1.3;color:var(--copy)}
.htoc__arts a[aria-current]{color:var(--white)}

.hbody{margin-top:64px}
@media (min-width:1000px){
  .hgrid{display:grid;grid-template-columns:280px minmax(0,1fr);column-gap:64px;align-items:start;margin-top:96px}
  .htoc{position:sticky;top:96px;max-height:calc(100vh - 120px);overflow-y:auto;overscroll-behavior:contain}
  .htoc__list{border-bottom:0}
  .htoc__list>li{border-top:0}
  .htoc__list>li>a{min-height:40px;font-size:17px}
  .htoc__list>li>a[aria-current]{color:var(--white)}
  .htoc__list>li>a:not([aria-current]){color:var(--white55)}
  .htoc__list>li>a:not([aria-current]) .htoc__n{color:inherit}
  .htoc__list>li[data-current] .htoc__arts{display:block}
  .hbody{margin-top:0;max-width:820px}
}


/* --- a topic -------------------------------------------------------------- */
.topic+.topic{margin-top:72px}
.topic__label{display:flex;align-items:baseline;gap:14px;color:var(--white55);padding-bottom:16px}
.topic,.kb,.kb__alias{scroll-margin-top:80px}
.js .topic,.js .kb,.js .kb__alias{scroll-margin-top:148px}   /* the sticky search */
@media (min-width:900px){.topic,.kb,.kb__alias{scroll-margin-top:96px}.js .topic,.js .kb,.js .kb__alias{scroll-margin-top:164px}}
@media (min-width:1000px){.js .topic,.js .kb,.js .kb__alias{scroll-margin-top:96px}}
.topic>.kb:last-of-type{border-bottom:1px solid var(--hair)}


/* --- an article ----------------------------------------------------------- */
.kb{position:relative;border-top:1px solid var(--hair)}
.kb[hidden],.topic[hidden]{display:none}
.kb__alias{display:block;position:absolute;top:0}
.kb__sum{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;min-height:64px;
  padding:16px 40px 16px 0;cursor:pointer;list-style:none;position:relative}
.kb__sum::-webkit-details-marker{display:none}
/* the disclosure mark: a plus drawn with 2 bars, the vertical one folds away */
.kb__sum::before,
.kb__sum::after{content:"";position:absolute;right:6px;top:50%;width:16px;height:2px;margin-top:-1px;
  background:var(--white);transition:transform 160ms ease}
.kb__sum::after{transform:rotate(90deg)}
.kb__d[open]>.kb__sum::after{transform:rotate(0)}
.kb__title{font-family:var(--disp);font-weight:600;font-size:22px;line-height:1.15;color:var(--white);text-wrap:pretty}
.kb__sum:hover .kb__title{color:var(--white55)}
/* written in capitals in the HTML and never transformed: uppercase turns
   β into the capital Β, which reads as a B */
.kb__app{white-space:nowrap;text-transform:none}

/* Copy link: inside the open article, outside the summary. On a phone it is
   its own line under the title, from 600 it sits at the right end of the
   title row and the summary leaves room for it. */
.kb__link{display:inline-flex;align-items:center;min-height:44px;margin:-8px 0 4px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--white55);text-decoration:underline;text-underline-offset:4px;
  text-decoration-color:rgba(255,255,255,.35)}
.kb__link:hover,.kb__link.is-copied{color:var(--white)}
@media (min-width:600px){
  .kb__d[open]>.kb__sum{padding-right:170px}
  .kb__link{position:absolute;top:10px;right:40px;margin:0}
}

/* the body: plain prose on the ground */
.kb__body{padding:0 0 32px;font-size:17px;line-height:1.55;color:var(--copy)}
.kb__body>*+*{margin-top:1em}
/* prose keeps a reading measure; a screenshot strip may use the full column */
.kb__body>:not(.shots){max-width:68ch}
.kb__body strong{font-weight:600;color:var(--white)}
.kb__body a{color:var(--white);text-decoration:underline;text-underline-offset:4px;
  text-decoration-thickness:1px;text-decoration-color:rgba(255,255,255,.45)}
.kb__body a:hover{text-decoration-color:currentColor}
.kb__body ul,.kb__body ol{padding-left:1.3em}
.kb__body ul{list-style:disc}
.kb__body ol{list-style:decimal}
.kb__body li{padding-left:.25em}
.kb__body li+li{margin-top:.5em}
.kb__body li::marker{color:var(--white55)}
.kb__body dt{font-weight:600;color:var(--white);margin-top:1em}
.kb__body dt:first-child{margin-top:0}
.kb__body dd{margin-top:.2em}
.kb__body .small{margin-left:.5em;font-family:var(--mono);font-weight:400;font-size:12px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--white55)}
.kb__body .num{font-family:var(--mono);font-size:.94em}
/* a table scrolls inside its own box on a phone */
.kb__body table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;text-align:left;font-size:16px}
.kb__body th{font-family:var(--mono);font-weight:400;font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--white55);padding:0 16px 10px 0;border-bottom:1px solid var(--hair);white-space:nowrap}
.kb__body td{padding:10px 16px 10px 0;border-bottom:1px solid var(--hair);vertical-align:top}
@media (min-width:900px){
  .kb__sum{min-height:72px}
  .kb__title{font-size:26px}
  .kb__body{font-size:18px}
  .kb__link{top:14px}
}

/* screenshots: a figure is a strip on its own row with a caption under it.
   Up to 3 phone screens across in the 820px column; on a phone the strip
   (.shots__row) scrolls sideways inside its own box (the negative margin lets
   it run to the screen edge, the padding keeps the first screen on the text
   line). The caption stays outside the scrolling row, on the text line.
   Screens get a rounded rim, no hardware. */
.shots{margin:24px 0 0}
.shots__row{display:flex;align-items:flex-start;gap:16px;margin:0 calc(-1 * var(--pad));padding:0 var(--pad) 8px;scroll-padding-inline:var(--pad);
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.3) transparent}
.kb__body>.shots+*{margin-top:24px}
.shots img,.shots video{flex:0 0 auto;display:block;width:240px;height:auto;border-radius:24px;
  box-shadow:0 0 0 1px var(--hair);background:#000;scroll-snap-align:start}
/* the lock screen card and the desktop HUD are wider than tall */
.shots .shots__wide{width:300px;border-radius:12px}
.shots figcaption{margin-top:12px;max-width:60ch;font-family:var(--body);font-size:15px;line-height:1.45;color:var(--white55)}
@media (min-width:600px){.shots__row{margin-left:0;margin-right:0;padding-left:0;padding-right:0}}
@media (min-width:900px){
  .shots img,.shots video{width:260px;border-radius:26px}
  .shots .shots__wide{width:400px;border-radius:14px}
}

/* a β note inside a store article: a quiet tinted block, no rule */
.kb__beta{padding:16px 18px 18px;border-radius:16px;background:rgba(255,255,255,.06)}
.kb__beta>*+*{margin-top:.6em}
.kb__beta>.kb__app{display:block;color:var(--white55)}


/* --- foot ----------------------------------------------------------------- */
.hfoot{margin-top:72px;padding-top:24px;border-top:1px solid var(--hair)}
.hfoot .small{color:var(--white55);font-size:15px}
