/* Cloud Media Shrinker help page. Adds to ../cms.css, which shares the frame, header and colors from /styles.css. */
.cms-help { max-width: none; }
.cms-help .c-brand a { color: var(--green); }
.h-title { margin: 0 0 14px; font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: -1.3px; text-wrap: balance; }
.h-lede { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.5; }
.h-version { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* On this page: a sticky sidebar on wide screens, a Jump to menu on narrower ones. */
.h-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 30px; }
.h-main { min-width: 0; max-width: 760px; }
/* The site styles every nav like its menu bar, so the sidebar resets that. */
.cms nav.h-side { display: block; gap: 0; padding: 0 0 12px; font-size: inherit; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.h-side-title { margin: 6px 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.h-side ol, .h-jump ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.h-side li, .h-jump li { counter-increment: toc; }
.h-side ol { border-left: 1px solid var(--line); }
.cms .h-side a { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 38px; margin-left: -1px; padding: 6px 10px 6px 14px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.3; white-space: normal; text-decoration: none; color: var(--ink); }
.cms .h-side a::before, .cms .h-jump a::before { content: counter(toc, decimal-leading-zero); flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--green); }
.cms .h-side a:hover span, .cms .h-jump a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cms .h-side a[aria-current] { border-left-color: var(--green); background: linear-gradient(90deg, var(--box), transparent); color: var(--green); font-weight: 700; }
.h-jump { display: none; }
.h-main > .h-sec:first-of-type { border-top: 0; padding-top: 4px; }

/* Sections. */
.h-sec { padding: 34px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.h-sec > h2 { margin: 0 0 14px; font-size: 27px; line-height: 1.2; letter-spacing: -.5px; }
.h-sec > h2 .eyebrow { display: block; margin: 0 0 8px; }
.h-sec h3 { margin: 24px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.h-sec p, .h-sec li { font-size: 16px; line-height: 1.6; }
.h-sec p { margin: 0 0 12px; }
.h-sec ul, .h-sec ol { margin: 0 0 14px; padding-left: 22px; }
.h-sec li { margin: 0 0 6px; }
.h-sec li::marker { color: var(--green); font-weight: 700; }
/* A step with its own sub-steps, and a link target that lights up like a frequent issue does. */
.h-sec li > ol, .h-sec li > ul { margin: 8px 0 10px; }
.h-sec li > p { margin: 8px 0 4px; }
.h-step { scroll-margin-top: 20px; border-radius: 6px; }
.h-step:target { background: var(--box); box-shadow: 0 0 0 8px var(--box); }
.h-sec b { font-weight: 700; }
.ui { font-weight: 700; }
.tag { display: inline-block; margin-right: 6px; padding: 2px 7px; border: 1px solid #b7c3a5; border-radius: 4px; background: var(--box); color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: 1px; white-space: nowrap; }
.soon { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #fdf1d8; border: 1px solid #e3c98f; color: #6b4e12; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.h-note { margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--green); border-radius: 0 6px 6px 0; background: var(--tile); font-size: 15px; line-height: 1.55; }
.h-note p { margin: 0 0 8px; font-size: 15px; }
.h-note p:last-child { margin-bottom: 0; }

/* Screenshots. */
.h-shots { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 18px 0 20px; }
.h-shot { margin: 0; }
.h-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--tile); }
.h-shot.phone { width: 230px; }
.h-shot.phone img { border-radius: 22px; }
.h-shot.wide { flex: 1 1 360px; max-width: 580px; }
.h-shot figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }

.h-help { margin-top: 28px; }
.h-help .c-actions { margin-top: 14px; }

/* Frequent issues: a problem, then what to do. Each answer has a stable anchor and a # that copies a link to it. */
.h-faqs { margin-top: 8px; border-top: 1px solid var(--soft-line); }
.h-faq { margin: 0 -12px; padding: 14px 12px 4px; border-bottom: 1px solid var(--soft-line); border-radius: 6px; scroll-margin-top: 20px; }
.h-faq:target, .h-faq.is-target { background: var(--box); }
.h-faq h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.h-faq p { margin: 0 0 10px; }
.h-anchor { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -6px 0 -6px 4px; vertical-align: middle; border-radius: 6px; font-family: var(--mono); font-size: 16px; font-weight: 400; }
.cms a.h-anchor { color: var(--muted); text-decoration: none; }
.cms a.h-anchor:hover, .cms a.h-anchor:focus-visible { color: var(--green); background: var(--tile); }
/* A 44 px tap area around the small mark. */
.h-anchor::before { content: ""; position: absolute; inset: -7px; }
.h-anchor[data-copied]::after { content: attr(data-copied); position: absolute; right: 0; top: calc(100% + 4px); z-index: 2; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 700 12px/1.4 Arial, Helvetica, sans-serif; white-space: nowrap; }
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1000px) {
  .h-layout { display: block; margin-top: 22px; }
  .h-main { max-width: none; }
  .cms nav.h-side { display: none; }
  .h-jump { display: block; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--box); }
  .h-jump summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 700; }
  .h-jump summary::-webkit-details-marker { display: none; }
  .h-jump summary::after { content: "+"; font-family: var(--mono); font-size: 20px; font-weight: 400; color: var(--green); }
  .h-jump[open] summary::after { content: "\2212"; }
  .h-jump ol { padding: 0 12px 10px; }
  .cms .h-jump a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; font-size: 16px; text-decoration: none; color: var(--ink); }
  .h-main > .h-sec:first-of-type { border-top: 1px solid var(--line); padding-top: 28px; }
}
@media (max-width: 620px) {
  .h-sec { padding-top: 28px; }
  .h-sec > h2 { font-size: 23px; }
  .h-shots { gap: 12px; }
  .h-shot.phone { width: calc(50% - 6px); }
  .h-shot.wide { flex-basis: 100%; }
}
@media screen and (prefers-color-scheme: dark) {
  .tag { border-color: var(--chip-line); background: var(--chip); }
  .soon { background: #3a2f17; border-color: #6b5626; color: #f0d9a4; }
}
