/* Help Center: /support (index) and /support/{slug} (articles). Attached through $meta['styles']. */

/* ---- Index ---------------------------------------------------------------- */
.help-hero { padding: 2.5rem 0 2rem; text-align: center; }
.help-hero-text { max-width: 42rem; margin: 1rem auto 0; font-size: 1.125rem; line-height: 1.6; color: var(--color-mb-grey); }
.help-search { position: relative; max-width: 40rem; margin: 2rem auto 0; }
.help-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--color-mb-grey); pointer-events: none; }
.help-search input {
  width: 100%;
  padding: 1.05rem 1.25rem 1.05rem 3.25rem;
  font-size: 16px;
  border: 1px solid var(--color-mb-grey-light);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 42, 45, .06);
  outline: none;
}
.help-search input:focus { border-color: var(--color-mb-teal); }

.help-results { max-width: 48rem; margin: 0 auto 3rem; }
.help-results-title { margin: 0 0 1rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-mb-grey); }
.help-results ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.help-results a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--color-mb-grey-light); border-radius: 16px; background: var(--color-mb-cream); }
.help-results a:hover, .help-results a:focus-visible { border-color: var(--color-mb-coral); }
.help-result-title { display: block; font-weight: 700; color: var(--color-mb-ink); }
.help-result-summary { display: block; margin-top: .25rem; font-size: .875rem; line-height: 1.5; color: var(--color-mb-grey); }
.help-results [data-help-empty] { color: var(--color-mb-grey); }
.help-results [data-help-empty] a { font-weight: 700; text-decoration: underline; }

.help-popular { margin-bottom: 3rem; }
.help-popular h2, .help-section-title { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 700; }
.help-popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.help-popular-card { display: block; padding: 1.25rem; border-radius: 20px; background: var(--color-mb-teal); color: #fff; transition: transform .15s ease; }
.help-popular-card:hover, .help-popular-card:focus-visible { transform: translateY(-2px); }
.help-popular-title { display: block; font-weight: 700; }
.help-popular-summary { display: block; margin-top: .4rem; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }

.help-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.help-category { padding: 1.5rem; border: 1px solid var(--color-mb-grey-light); border-radius: 24px; background: var(--color-mb-cream); scroll-margin-top: 7rem; }
.help-category-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.help-category-head h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.help-category-head p { margin: .25rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--color-mb-grey); }
.help-category-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .9rem; background: var(--color-mb-paper); color: var(--color-mb-teal); }
.help-category ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-mb-grey-light); }
.help-category li { padding: .55rem 0; border-bottom: 1px solid rgba(0, 0, 0, .05); font-size: .9375rem; line-height: 1.4; }
.help-category li:last-child { border-bottom: 0; }
.help-category li a { color: var(--color-mb-ink); }
.help-category li a:hover, .help-category li a:focus-visible { color: var(--color-mb-teal); text-decoration: underline; text-underline-offset: 3px; }

.help-plan { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.help-plan--pro { background: var(--color-mb-teal); color: #fff; }
.help-plan--all { background: #e3f0ef; color: var(--color-mb-teal-dark, #12494c); }

/* ---- Article ---------------------------------------------------------------- */
.help-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; align-items: start; padding: 1.5rem 0 2rem; }
.help-article { max-width: 46rem; }
.help-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: .875rem; font-weight: 700; }
.help-kicker a { color: var(--color-mb-teal); }
.help-article .page-title { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.12; letter-spacing: -.01em; }
.help-summary { margin: 1rem 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--color-mb-ink); }
.help-updated { margin: .75rem 0 0; font-size: .8125rem; color: var(--color-mb-grey); }

.help-toc { margin: 2rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--color-mb-grey-light); border-radius: 18px; background: var(--color-mb-cream); }
.help-toc p { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-mb-grey); }
.help-toc ol { margin: 0; padding-left: 1.25rem; list-style: decimal; font-size: .9375rem; line-height: 1.7; }
.help-toc a { color: var(--color-mb-ink); }
.help-toc a:hover { color: var(--color-mb-teal); text-decoration: underline; }

.help-section { margin-top: 2.25rem; scroll-margin-top: 7rem; }
.help-section h2 { margin: 0 0 .75rem; font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.help-section p { margin: 0 0 .9rem; font-size: 1rem; line-height: 1.7; color: #3a3935; }
.help-steps { counter-reset: step; margin: .5rem 0 1rem; padding: 0; list-style: none; }
.help-steps li { position: relative; padding: .7rem 0 .7rem 3rem; border-bottom: 1px solid rgba(0, 0, 0, .06); line-height: 1.6; }
.help-steps li:last-child { border-bottom: 0; }
.help-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-mb-teal);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
}
.help-list { margin: .25rem 0 1rem; padding-left: 1.25rem; list-style: disc; line-height: 1.7; }
.help-list li + li { margin-top: .3rem; }
.help-note { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 16px; background: #fff6e6; color: #5b4a24 !important; font-size: .9375rem !important; }
.help-note svg { flex: none; margin-top: .1rem; color: #b7791f; }
.help-problems .faq-item, .help-problems details { background: transparent; }
.help-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 2rem 0 0; font-size: .9375rem; font-weight: 700; }
.help-links a { color: var(--color-mb-ink); text-decoration: underline; text-underline-offset: 4px; }
.help-links a:hover { color: var(--color-mb-teal); }
.help-contact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--color-mb-grey-light); border-radius: 20px; background: #fff; }
.help-contact p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--color-mb-grey); }
.help-contact b { color: var(--color-mb-ink); }

.help-aside { position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.help-aside-box { padding: 1.1rem 1.25rem; border: 1px solid var(--color-mb-grey-light); border-radius: 18px; background: var(--color-mb-cream); }
.help-aside-title { margin: 0 0 .6rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-mb-grey); }
.help-aside ul { margin: 0; padding: 0; list-style: none; }
.help-aside li { padding: .35rem 0; font-size: .875rem; line-height: 1.45; }
.help-aside li a { color: var(--color-mb-ink); }
.help-aside li a:hover { color: var(--color-mb-teal); text-decoration: underline; }
.help-aside li a[aria-current="page"] { font-weight: 700; color: var(--color-mb-teal); }
.help-aside-all { margin: .6rem 0 0; font-size: .875rem; font-weight: 700; }

@media (max-width: 960px) {
  .help-article-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .help-aside { position: static; }
}
@media (max-width: 640px) {
  .help-contact { flex-direction: column; align-items: stretch; text-align: left; }
  .help-steps li { padding-left: 2.6rem; }
}
