/* Help Center additions. Colours, type, header, footer and buttons come from mogdock.css. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.preview-ribbon { margin: 0; padding: 9px var(--gutter); background: #8a5a00; color: #fff; font-size: .82rem; font-weight: 600; text-align: center; }
.brand-tag { margin-left: 6px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--accent); font-size: .74rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.nav-link .nav-external { width: 14px; height: 14px; margin-left: 3px; color: var(--subtle); }

.help-hero { padding-bottom: 46px; }
.help-search { position: relative; max-width: 640px; margin-top: 32px; }
.help-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.help-search input { width: 100%; min-height: 58px; padding: 14px 18px 14px 52px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow); }
.help-search input::placeholder { color: var(--subtle); }
.help-search input:focus-visible { outline-offset: 2px; border-color: var(--accent); }
.help-jump { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.help-jump a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--text); font-size: .84rem; font-weight: 550; text-decoration: none; }
.help-jump a:hover { border-color: var(--accent); color: var(--accent); }

.help-content { padding-block: 65px; }
.help-category { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; margin-bottom: 62px; }
.help-category:last-of-type { margin-bottom: 0; }
.help-category-heading h2 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); margin-top: 20px; }
.help-category-heading p { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.help-category-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--accent); }
.help-guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.help-guides li { border-bottom: 1px solid var(--border); }
.help-guides a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 4px; color: var(--text); text-decoration: none; }
.help-guides strong, .help-guides small { display: block; }
.help-guides strong { font-size: 1.04rem; font-weight: 600; line-height: 1.4; }
.help-guides small { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.help-guides .icon { width: 18px; color: var(--accent); transition: transform .15s; }
.help-guides a:hover strong { color: var(--accent); }
.help-guides a:hover .icon { transform: translateX(4px); }
.help-no-match, .help-none { max-width: 60ch; color: var(--muted); }
.help-none h2 { color: var(--text); font-size: clamp(1.6rem, 2.5vw, 2.5rem); margin-bottom: 16px; }

.help-contact { padding-block: 58px; background: var(--soft-blue); }
.help-contact-heading h2 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.help-contact-heading p { margin-top: 13px; color: var(--muted); }
.help-contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.help-contact-option { display: flex; align-items: flex-start; gap: 15px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-decoration: none; transition: border-color .18s, transform .18s; }
.help-contact-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.help-contact-option > .icon:first-child { margin-top: 2px; color: var(--accent); }
.help-contact-option span { flex: 1; }
.help-contact-option strong, .help-contact-option small { display: block; }
.help-contact-option strong { font-size: .98rem; font-weight: 600; line-height: 1.4; }
.help-contact-option small { margin-top: 6px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.help-contact-option .option-arrow { width: 17px; margin-top: 4px; color: var(--subtle); }

.article-intro { padding-top: 44px; padding-bottom: 44px; }
.article-intro h1 { max-width: 24ch; font-size: clamp(2.1rem, 3.5vw, 3.5rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 20px; font-size: .86rem; font-weight: 550; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--subtle); }
.page-intro > p.article-updated { margin-top: 18px; font-size: .88rem; color: var(--subtle); }
.article-layout { display: grid; grid-template-columns: minmax(0, 74ch) minmax(210px, 290px); justify-content: space-between; gap: 60px; padding-block: 54px 68px; }
.article-body { font-size: 1.04rem; line-height: 1.72; overflow-wrap: break-word; }
.article-body > :first-child { margin-top: 0; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { margin: 2.1em 0 .65em; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
.article-body h1, .article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4, .article-body h5, .article-body h6 { font-size: 1.05rem; letter-spacing: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body .table-scroll, .article-body .video { margin: 1.05em 0 0; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li + li { margin-top: .5em; }
.article-body li > ul, .article-body li > ol { margin-top: .5em; }
.article-body li::marker { color: var(--accent); font-weight: 600; }
.article-body strong { font-weight: 650; }
.article-body a { font-weight: 550; }
.article-body blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.article-body code { padding: 2px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.article-body pre { padding: 16px 18px; overflow-x: auto; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.article-body pre code { padding: 0; border: 0; background: none; }
.article-body hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--border); }
.article-body .table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { padding: 12px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--surface); font-weight: 600; white-space: nowrap; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body .video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: var(--dark-surface); }
.article-body .video iframe { display: block; width: 100%; height: 100%; border: 0; }

.article-aside { align-self: start; position: sticky; top: 118px; display: grid; gap: 30px; }
.article-nav h2 { margin-bottom: 12px; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--subtle); }
.article-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.article-nav a { display: block; margin-left: -1px; padding: 6px 0 6px 15px; border-left: 2px solid transparent; color: var(--muted); font-size: .9rem; line-height: 1.45; text-decoration: none; }
.article-nav a:hover { color: var(--accent); }
.article-nav a[aria-current='page'] { border-left-color: var(--accent); color: var(--text); font-weight: 600; }

.article-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 62px; }
.article-pager a { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); text-decoration: none; }
.article-pager a:hover { border-color: var(--accent); }
.article-pager small, .article-pager strong { display: block; }
.article-pager small { color: var(--subtle); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.article-pager strong { margin-top: 5px; font-weight: 600; line-height: 1.4; }
.pager-next { grid-column: 2; text-align: right; }

@media (max-width: 980px) {
  .help-contact-options { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 50px; }
  .article-aside { position: static; }
}
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .help-search { margin-top: 26px; }
  .help-content { padding-block: 40px; }
  .help-category { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
  .help-category-heading { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .help-category-heading h2 { margin-top: 0; }
  .help-category-heading p { grid-column: 2; margin-top: 2px; }
  .help-category-icon { grid-row: span 2; }
  .help-contact { padding-block: 42px; }
  .article-intro { padding-block: 32px; }
  .article-intro h1 { font-size: 2.05rem; }
  .article-body { font-size: 1rem; }
  .article-pager { grid-template-columns: 1fr; padding-bottom: 44px; }
  .pager-next { grid-column: 1; text-align: left; }
}
