/* Help center (/help/): BetterDocs data, Magic Bookmark look.
   Light reading pages: dark text on warm off-white, deep aqua header band.
   Assumes styles.css (tokens + fonts) is loaded first. No gold anywhere. */

:root{
  --help-bg:#F7F4F3;          /* warm off-white */
  --help-ink:#18130F;         /* near-black brown, reading text */
  --help-body:var(--brown-350);
  --help-aqua:#507576;        /* primary, never as text on aqua tints */
  --help-deep:#2B3F40;        /* deep aqua: header band, links, button */
  --help-brown:#755A51;       /* warm brown: secondary text, accents */
  --help-taupe:#DBD0CC;       /* dusty taupe: borders */
  --help-card:#FFFFFF;
  --help-sunken:var(--brown-150);
  --help-col:720px;
  --help-wide:1080px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.mb-help{
  margin:0;
  background:var(--help-bg);
  color:var(--help-ink);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:break-word;
}
.mb-help a{color:var(--help-deep);text-decoration-color:color-mix(in oklch,var(--help-deep) 35%,transparent);text-underline-offset:3px}
.mb-help a:hover{text-decoration-color:currentColor}
.mb-help :focus-visible{outline:2px solid var(--help-aqua);outline-offset:2px;border-radius:4px}
.mb-help h1,.mb-help h2{font-family:var(--font-serif);font-weight:400;color:var(--help-ink);letter-spacing:-0.005em;margin:0}
.mb-help h1{font-size:30px;line-height:1.2}
.mb-help h2{font-size:20px;line-height:1.3}

/* ── Header ── */
.help-nav{background:var(--help-deep);color:var(--brown-50)}
.help-nav-inner{max-width:var(--help-wide);margin:0 auto;padding:0 24px;height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.mb-help .help-brand{display:flex;align-items:center;gap:10px;font-family:var(--font-serif);font-size:19px;color:var(--brown-50);text-decoration:none;white-space:nowrap}
.help-brand-mark{height:30px;width:auto;display:block}
.help-brand-name{color:var(--brown-250)}
.help-nav-links{display:flex;align-items:center;gap:24px}
.mb-help .help-nav-links a{font-size:14.5px;color:var(--help-taupe);text-decoration:none}
.mb-help .help-nav-links a:hover{color:#fff}
@media(max-width:480px){.help-nav-home{display:none}.help-nav-links{gap:18px}}

/* ── Hero (help home) and slim band (category, article) ── */
.help-hero,.help-band{background:var(--help-deep);border-top:1px solid color-mix(in oklch,var(--help-taupe) 14%,transparent)}
.help-hero-inner{max-width:var(--help-col);margin:0 auto;padding:44px 24px 52px;text-align:center}
.mb-help .help-hero h1{color:var(--brown-50);font-size:clamp(30px,4.4vw,38px)}
.help-hero-sub{margin:10px 0 26px;color:var(--help-taupe)}
.help-band-inner{max-width:var(--help-col);margin:0 auto;padding:18px 24px 22px}

/* ── Search (BetterDocs live search, restyled) ── */
body.mb-help .help-search{position:relative;text-align:left}
body.mb-help .help-search .betterdocs-live-search{position:relative;margin:0;padding:0;background:none}
body.mb-help .help-search .betterdocs-searchform{position:relative;margin:0;padding:0;background:none;border:0;box-shadow:none;max-width:none;width:100%}
body.mb-help .help-search .betterdocs-searchform .betterdocs-searchform-input-wrap{position:relative;display:flex;align-items:center;border:0;padding:0;margin:0;background:none;border-radius:0;width:100%}
body.mb-help .help-search .betterdocs-search-field{
  width:100%;height:52px;margin:0;
  padding:0 48px 0 50px;
  border:1px solid transparent;border-radius:var(--radius-pill);
  background:var(--help-card);color:var(--help-ink);
  font:500 16px/1 var(--font-sans);
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  -webkit-appearance:none;appearance:none;
}
body.mb-help .help-band .help-search .betterdocs-search-field{height:46px;box-shadow:none}
body.mb-help .help-search .betterdocs-search-field::placeholder{color:var(--help-brown);opacity:1}
body.mb-help .help-search .betterdocs-search-field:focus{outline:none;border-color:var(--help-aqua);box-shadow:0 0 0 3px color-mix(in oklch,var(--help-aqua) 40%,transparent)}
body.mb-help .help-search svg.docs-search-icon{z-index:1;position:absolute;left:18px;top:50%;transform:translateY(-50%);width:20px;height:20px;fill:var(--help-brown);pointer-events:none;margin:0;opacity:1}
body.mb-help .help-search svg.docs-search-loader,body.mb-help .help-search svg.docs-search-close{z-index:1;opacity:1;position:absolute;right:16px;top:50%;transform:translateY(-50%);width:22px;height:22px;margin:0;cursor:pointer}
body.mb-help .help-search .docs-search-loader{stroke:var(--help-brown)}
body.mb-help .help-search .docs-search-close .close-border,body.mb-help .help-search .docs-search-close .close-line{fill:var(--help-brown)}
body.mb-help .help-search .betterdocs-search-heading{display:none}

/* Live results dropdown */
body.mb-help .help-search .betterdocs-search-result-wrap{position:absolute;top:100%;bottom:auto;left:0;right:0;width:auto;z-index:40}
body.mb-help .help-search .betterdocs-live-search .betterdocs-searchform .docs-search-result{
  position:static;width:100%;max-width:none;min-width:0;
  max-height:min(420px,60vh);overflow-y:auto;
  margin:8px 0 0;padding:6px;list-style:none;animation:none;
  background:var(--help-card);border:1px solid var(--help-taupe);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);text-align:left;
}
body.mb-help .help-search .betterdocs-searchform .betterdocs-search-result-wrap .docs-search-result li{display:block;margin:0;padding:0;border:0;list-style:none;background:none;font-size:15px}
body.mb-help .help-search .betterdocs-searchform .betterdocs-search-result-wrap .docs-search-result li a{display:block;padding:10px 14px;border-radius:var(--radius-md);color:var(--help-ink);text-decoration:none;font-size:15px;line-height:1.4;white-space:normal}
body.mb-help .help-search .betterdocs-searchform .betterdocs-search-result-wrap .docs-search-result li a:hover,
body.mb-help .help-search .betterdocs-searchform .betterdocs-search-result-wrap .docs-search-result li a:focus{background:var(--help-sunken)}
body.mb-help .help-search .docs-search-result li a .betterdocs-search-title{color:var(--help-ink);font-weight:700;font-size:15.5px}
body.mb-help .help-search .docs-search-result li a .betterdocs-search-category{color:var(--help-brown);font-size:13.5px}
body.mb-help .help-search .docs-search-result img{display:none}
body.mb-help .help-search .betterdocs-searchform .betterdocs-search-result-wrap .docs-search-result li:only-child{padding:0}
body.mb-help .help-search .docs-search-result li > p,body.mb-help .help-search .betterdocs-search-not-found{margin:0;padding:12px 14px;color:var(--help-brown)}

/* ── Layout ── */
.help-main{max-width:var(--help-wide);margin:0 auto;padding:40px 24px 72px}
.help-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--help-brown);margin:0 0 14px}
.mb-help .help-crumbs a{color:var(--help-brown);text-decoration:none}
.mb-help .help-crumbs a:hover{color:var(--help-ink);text-decoration:underline}
.help-crumbs span[aria-hidden]{color:var(--brown-250)}

/* Editors only: marks unpublished articles */
.help-status{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:var(--radius-pill);background:var(--brown-150);color:var(--help-brown);font-size:11.5px;font-weight:700;letter-spacing:.04em;vertical-align:2px;line-height:1.6}

/* ── Home: category cards ── */
.help-cards{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.help-cards{grid-template-columns:1fr 1fr;gap:20px}}
@media(min-width:960px){.help-cards{grid-template-columns:repeat(3,1fr)}}
.help-card{background:var(--help-card);border:1px solid var(--help-taupe);border-radius:var(--radius-lg);padding:24px 24px 20px;display:flex;flex-direction:column}
.mb-help .help-card h2 a{color:var(--help-ink);text-decoration:none}
.mb-help .help-card h2 a:hover{color:var(--help-deep)}
.help-card ul{list-style:none;margin:14px 0 16px;padding:0;flex:1}
.help-card li{padding:7px 0;border-top:1px solid var(--brown-150);line-height:1.4}
.help-card li:first-child{border-top:0}
.mb-help .help-card li a{font-size:15px;text-decoration:none}
.mb-help .help-card li a:hover{text-decoration:underline}
.mb-help .help-card-more{font-size:14px;font-weight:600;color:var(--help-brown);text-decoration:none}
.mb-help .help-card-more::after{content:" \2192"}
.mb-help .help-card-more:hover{color:var(--help-ink)}

/* ── Category page ── */
.help-category{max-width:calc(var(--help-col) + 48px)}
.help-list{list-style:none;margin:22px 0 0;padding:0;background:var(--help-card);border:1px solid var(--help-taupe);border-radius:var(--radius-lg);overflow:hidden}
.help-list li{border-top:1px solid var(--brown-150)}
.help-list li:first-child{border-top:0}
.mb-help .help-list a{display:block;padding:15px 22px;color:var(--help-ink);text-decoration:none;line-height:1.45}
.mb-help .help-list a:hover{background:var(--help-sunken)}

/* ── Article ── */
.help-article-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}
@media(min-width:1000px){.help-article-wrap{grid-template-columns:minmax(0,var(--help-col)) 260px;justify-content:space-between}}
.help-article{min-width:0;max-width:var(--help-col)}
.help-article h1{margin-bottom:18px}
.help-body{color:var(--help-ink)}
.help-body > *{margin:0 0 18px}
.help-body p{text-wrap:pretty}
.help-body strong{font-weight:700}
.help-body ul,.help-body ol{padding-left:24px}
.help-body li{margin:0 0 8px;padding-left:4px}
.help-body ol li::marker{color:var(--help-brown);font-weight:700}
.help-body ul li::marker{color:var(--help-aqua)}

/* Screenshots: natural size, never upscaled, shrink to fit */
.help-body figure.wp-block-image{margin:26px 0}
.help-body figure.wp-block-image img{display:block;max-width:100%;width:auto;height:auto;border-radius:var(--radius-md)}

/* Tables */
.help-body figure.wp-block-table{margin:24px 0;overflow-x:auto}
.help-body table{width:100%;border-collapse:separate;border-spacing:0;background:var(--help-card);border:1px solid var(--help-taupe);border-radius:var(--radius-md);font-size:15px;table-layout:auto}
.help-body .wp-block-table table{table-layout:auto}
.help-body .wp-block-table th,.help-body .wp-block-table td{padding:11px 16px;text-align:left;vertical-align:top;border:0;border-top:1px solid var(--brown-150)}
.help-body .wp-block-table thead{border:0}
.help-body .wp-block-table thead th{border-top:0;background:var(--help-sunken);font-weight:700;color:var(--help-ink)}
.help-body td:last-child,.help-body th:last-child{white-space:nowrap}
@media(max-width:420px){.help-body .wp-block-table th,.help-body .wp-block-table td{padding:10px 12px;font-size:14.5px}}

/* Sidebar: other articles in this category */
.help-side{align-self:start;border-top:1px solid var(--help-taupe);padding-top:22px}
@media(min-width:1000px){.help-side{position:sticky;top:24px;border-top:0;padding-top:34px}}
.mb-help .help-side h2{font-size:18px}
.mb-help .help-side h2 a{color:var(--help-ink);text-decoration:none}
.help-side ul{list-style:none;margin:12px 0 0;padding:0}
.help-side li{margin:0}
.mb-help .help-side li a{display:block;padding:7px 0 7px 14px;border-left:2px solid var(--help-taupe);font-size:14.5px;line-height:1.4;color:var(--help-body);text-decoration:none}
.mb-help .help-side li a:hover{color:var(--help-ink);border-left-color:var(--help-brown)}
.mb-help .help-side li.is-current a{color:var(--help-ink);font-weight:700;border-left-color:var(--help-deep)}

/* ── "Still need help?" ── */
.help-contact{margin-top:48px;background:var(--help-sunken);border-radius:var(--radius-lg);padding:26px 26px 28px}
.help-home .help-contact{max-width:var(--help-col);margin-left:auto;margin-right:auto;text-align:center}
.help-contact p{margin:6px 0 16px;color:var(--help-body)}
.mb-help .help-button{display:inline-block;padding:11px 22px;border-radius:var(--radius-pill);background:var(--help-deep);color:#fff;font-weight:700;font-size:15px;text-decoration:none}
.mb-help .help-button:hover{background:var(--aqua-400);color:#fff}

/* ── Footer ── */
.help-foot{border-top:1px solid var(--help-taupe);padding:28px 24px 44px;text-align:center;font-size:14px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px}
.mb-help .help-foot a{color:var(--help-brown);text-decoration:none}
.mb-help .help-foot a:hover{color:var(--help-ink)}

@media(max-width:480px){
  .help-hero-inner{padding:32px 16px 38px}
  .help-band-inner{padding:14px 16px 18px}
  .help-main{padding:28px 16px 56px}
  .help-nav-inner{padding:0 16px}
  .help-card{padding:20px 18px 16px}
  .help-contact{padding:22px 18px 24px}
}
