/* Help center (help.html, help/*.html). Loaded after site.css, only on help pages, so the rules here stay on these pages.
   Home with every topic and its articles → topic page with its articles → article with a contents list
   (sticky on the right on wide screens, a collapsible «Contents» under the title below 1024px). */

/* readable greys: --muted for text, --faint only for decoration (icons, chevrons, separators) */

/* search band at the top of every help page */
.hb{padding:72px 0 64px;background:linear-gradient(180deg,var(--sand),var(--cream));border-bottom:1px solid var(--line)}
.hb.home{padding:112px 0 96px;text-align:center}
.hb h1{font-size:clamp(42px,6vw,76px);line-height:1;margin:0 0 36px}
.search{position:relative;max-width:640px}
.hb.home .search{margin:0 auto}
.search svg{position:absolute;left:22px;top:50%;translate:0 -50%;width:20px;height:20px;stroke:var(--faint);fill:none;stroke-width:2;stroke-linecap:round;pointer-events:none}
.search input{width:100%;padding:19px 24px 19px 56px;border-radius:999px;border:1.5px solid var(--line);background:var(--paper);font:inherit;font-size:17px;color:var(--ink);box-shadow:var(--shadow-sm);transition:border-color .2s,box-shadow .2s}
.search input::placeholder{color:var(--muted)}
.search input:focus{outline:none;border-color:var(--coral);box-shadow:0 0 0 4px rgba(232,87,63,.14)}
.results{position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:20;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-lg);padding:8px;text-align:left;max-height:420px;overflow:auto}
.results[hidden],.results .none[hidden]{display:none}
.results .opts:empty{display:none}
.results a{display:block;padding:12px 16px;border-radius:12px}
.results a:hover,.results a.on{background:var(--sand)}
.results b{display:block;font-weight:600}
.results small{display:block;color:var(--muted);font-size:14px}
.results .none{padding:14px 16px;color:var(--muted)}
.results .none a{display:inline;padding:0;color:var(--coral-dark);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* topic and article pages: a compact search row, lined up with the column below it */
.hb.compact{padding:24px 0}
.hb.compact .search input{padding:13px 20px 13px 50px;font-size:16px}
.hb.compact .search svg{left:19px;width:18px;height:18px}
.hb.topic-w .container{max-width:calc(860px + 2 * var(--gutter))}
.hb.art-w .container{max-width:calc(1016px + 2 * var(--gutter))}

/* keyboard focus: a coral ring, and the same highlight the mouse gets */
a:focus-visible,summary:focus-visible,.btn:focus-visible{outline:2px solid var(--coral);outline-offset:3px;border-radius:8px}
.btn:focus-visible{border-radius:999px}

/* breadcrumb */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin-bottom:28px}
.crumbs a{color:var(--muted);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.crumbs a:hover,.crumbs a:focus-visible{color:var(--ink);text-decoration-color:currentColor}
.crumbs [aria-current]{color:var(--ink)}
.crumbs span[aria-hidden]{color:var(--faint)}

/* home: every topic with its articles, two columns on wide screens */
.topics{padding:88px 0 128px}
.tindex{columns:2;column-gap:88px;max-width:calc(1100px + 2 * var(--gutter))}
.tgroup{break-inside:avoid;padding:32px 0 36px;border-top:1px solid var(--line)}
.thead{display:flex;align-items:center;gap:18px;margin-bottom:14px;border-radius:16px}
.thead .icon{flex:none;transition:transform .3s var(--ease-out),color .2s}
.thead h2{font-size:clamp(24px,2.2vw,30px);line-height:1.15;margin:0;transition:color .2s}
.thead small{display:block;margin-top:4px;font-size:14px;color:var(--muted)}
.thead:hover h2,.thead:focus-visible h2{color:var(--coral-dark)}
.thead:hover .icon,.thead:focus-visible .icon{transform:translateY(-2px);color:var(--coral-dark)}
.tgroup ul{list-style:none;margin:0;padding:0 0 0 48px}
.tgroup li a{display:block;padding:7px 0;font-size:17px;line-height:1.4;color:var(--ink);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:color .2s,text-decoration-color .2s}
.tgroup li a:hover,.tgroup li a:focus-visible{color:var(--coral-dark);text-decoration-color:currentColor}

/* topic page: list of articles */
.topic{padding:56px 0 144px}
.topic-head{max-width:860px;margin:0 auto 48px}
.topic-head h1{font-size:clamp(40px,5vw,64px);margin:24px 0 12px}
.topic-head p{color:var(--muted);font-size:19px}
.topic-head .count{margin-top:12px;font-size:14px;color:var(--muted)}
.alist{max-width:860px;margin:0 auto;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--shadow-sm);overflow:hidden}
.alist a{display:flex;align-items:center;gap:24px;padding:28px 36px;border-top:1px solid var(--sand);transition:background .2s}
.alist a:first-child{border-top:0}
.alist a:hover,.alist a:focus-visible{background:#FCF8F1}
.alist a:focus-visible{outline-offset:-3px;border-radius:0}
.alist b{display:block;font-size:19px;font-weight:600}
.alist small{display:block;margin-top:4px;color:var(--muted);font-size:16px}
.alist a::after{content:"›";margin-left:auto;font-size:26px;color:var(--faint);line-height:1}
.alist a:hover::after,.alist a:focus-visible::after{color:var(--coral)}

/* topic page: the other topics */
.others{max-width:860px;margin:64px auto 0}
.others h2{font-size:24px;margin:0 0 16px}
.others ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.others a{display:inline-flex;align-items:center;gap:10px;padding:9px 18px 9px 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper);font-size:15px;font-weight:500;transition:border-color .2s,background .2s}
.others a:hover,.others a:focus-visible{border-color:#D8CDB8;background:#FCF8F1}
.others a:focus-visible{border-radius:999px}
.others .icon svg{width:18px;height:18px;stroke-width:1.6}

/* article */
.art{padding:56px 0 144px}
.art-grid{display:grid;grid-template-columns:minmax(0,680px) 240px;gap:96px;justify-content:center}
.art-head h1{font-size:clamp(38px,4.6vw,58px);margin:0 0 16px}
.art-head .sub{color:var(--muted);font-size:20px;line-height:1.5}
.art-head .date{margin-top:16px;font-size:14px;color:var(--muted)}
.body{margin-top:56px;font-size:18px;line-height:1.7}
.body h2{font-size:clamp(28px,3vw,36px);margin:72px 0 18px;scroll-margin-top:96px}
.body h2:first-child{margin-top:0}
.body h3{font-family:var(--text);font-size:20px;font-weight:600;letter-spacing:-.01em;margin:36px 0 10px;scroll-margin-top:96px}
.body p{margin:0 0 18px}
.body ul,.body ol{margin:0 0 20px;padding-left:1.4em}
.body li{margin:8px 0}
.body li::marker{color:var(--coral);font-weight:600}
.body a{color:var(--coral-dark);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.body a:hover{text-decoration-thickness:2px}
.body b{font-weight:600}
.body kbd{display:inline-block;min-width:1.7em;padding:2px 8px;border:1px solid var(--line);border-bottom-width:2px;border-radius:7px;background:var(--paper);font-family:var(--text);font-size:.85em;font-weight:600;text-align:center;line-height:1.5}
.body .ui{font-weight:600;color:var(--ink)}

/* boxes: .note (friendly aside, "Psst…" for insider tips), .tip, .info (neutral), .warn (a real warning) */
.note{margin:28px 0;padding:20px 24px;border-radius:20px;background:var(--sage-tint);color:var(--olive-text);font-size:17px;line-height:1.6}
.note b{color:var(--ink)}
.note.info,.note.warn{display:flex;gap:14px;align-items:flex-start}
.note .ni{flex:none;width:22px;height:22px;margin-top:2px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.note .nt{min-width:0}
.note.info{background:var(--paper);border:1px solid var(--line);color:var(--ink)}
.note.info .ni{color:var(--muted)}
.note.warn{background:#FDF1EC;border:1px solid var(--coral-soft);color:var(--ink)}
.note.warn .ni{color:var(--coral-dark)}
.note.warn .lead{color:#9E3422}
.note.warn a{color:#9E3422;font-weight:600}
/* screenshot slot: replaced by a real <img> later */
.shot{margin:32px 0;aspect-ratio:16/10;border-radius:20px;background:linear-gradient(135deg,#F3F2E8,#E6EADA);border:1px solid rgba(126,143,92,.38);display:grid;place-items:center;position:relative;color:var(--olive-text);font-size:15px;font-weight:500;text-align:center;padding:24px}
.shot::before{content:"";position:absolute;inset:8px;border-radius:14px;border:1px dashed rgba(126,143,92,.45)}
.shot.small{aspect-ratio:16/5}
.body img{border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow);margin:32px 0}
/* a real macOS window or menu: its own rounded corners, only a soft shadow */
.body img.mac{border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 14px 30px rgba(20,24,40,.18))}

/* contents list on the right, follows the reader */
.toc{position:sticky;top:104px;align-self:start;font-size:14.5px}
.toc b{display:block;margin-bottom:14px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.toc a{display:block;padding:7px 0 7px 16px;border-left:2px solid var(--line);color:var(--muted);line-height:1.4;transition:color .2s,border-color .2s}
.toc a.sub{padding-left:30px;font-size:13.5px}
.toc a:hover,.toc a:focus-visible{color:var(--ink);border-left-color:var(--coral-soft)}
.toc a:focus-visible{border-radius:0 8px 8px 0}
.toc a.on{color:var(--ink);border-color:var(--coral);font-weight:600}

/* contents under the title, below 1024px */
.toc-m{display:none;margin-top:28px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.toc-m summary{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;font-weight:600;cursor:pointer;list-style:none;border-radius:18px}
.toc-m summary::-webkit-details-marker{display:none}
.toc-m summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);rotate:45deg;translate:0 -3px;transition:rotate .2s}
.toc-m[open] summary::after{rotate:225deg;translate:0 2px}
.toc-m [data-langs]{padding:0 20px 14px}
.toc-m a{display:block;padding:8px 0;border-top:1px solid var(--sand);color:var(--muted);font-size:15.5px;line-height:1.4}
.toc-m a.sub{padding-left:16px;font-size:14.5px}
.toc-m a:hover,.toc-m a:focus-visible{color:var(--ink)}

/* previous / next article in the same topic */
.pn{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:72px}
.pn a{display:flex;flex-direction:column;gap:4px;padding:20px 24px;border:1px solid var(--line);border-radius:20px;background:var(--paper);transition:border-color .2s,background .2s,transform .3s var(--ease-out)}
.pn a:hover,.pn a:focus-visible{border-color:#D8CDB8;background:#FCF8F1}
.pn a:focus-visible{border-radius:20px}
.pn a.next{text-align:right;grid-column:2}
.pn small{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.pn a.prev small::before{content:"← "}
.pn a.next small::after{content:" →"}
.pn b{font-weight:600;font-size:17px;line-height:1.35}

/* bottom of an article */
.more{margin-top:72px;padding-top:40px;border-top:1px solid var(--line)}
.more h2{font-size:28px;margin:0 0 20px}
.more .alist{max-width:none}
.helpful{margin-top:48px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:28px 32px;border-radius:24px;background:var(--sand)}
.helpful p{font-family:var(--head);font-weight:500;letter-spacing:-.015em;font-size:22px}

/* «Write to us» on the help home: the darker coral, for contrast with the white text */
main .btn-primary{background:var(--coral-dark)}
main .btn-primary:hover{background:#B33C28}

/* one language per article body: site.js shows the block for the current language (English when missing) */
[data-l]{display:none}
[data-l].show{display:block}

@media (max-width:1024px){
  .art-grid{grid-template-columns:minmax(0,680px);gap:0}
  .toc{display:none}
  .toc-m{display:block}
  .body{margin-top:40px}
  .hb.art-w .container{max-width:calc(680px + 2 * var(--gutter))}
}
@media (max-width:760px){
  .hb{padding:48px 0 40px}.hb.home{padding:72px 0 56px}
  .hb.compact{padding:16px 0}
  .topics{padding:40px 0 88px}
  .tindex{columns:1}
  .tgroup{padding:24px 0 26px}
  .thead{gap:14px;margin-bottom:8px}
  .thead .icon svg{width:26px;height:26px}
  .tgroup ul{padding-left:40px}
  .tgroup li a{padding:6px 0;font-size:16px}
  .alist a{padding:22px 22px}
  .art,.topic{padding:36px 0 96px}
  .body{font-size:17px}
  .pn{grid-template-columns:1fr}
  .pn a.next{grid-column:1}
  .note.info,.note.warn{gap:12px}
  .note{padding:18px 20px}
}
