/* support.builtsofthub.com: the Help Center. Loaded AFTER /style.css (the
   builtsofthub.com colours, type, nav, buttons and footer, copied in by
   tools/help-center/build.js). This file adds only the help pages and a dark
   theme. Source: tools/help-center/assets/help.css (edit there, then build). */

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Dark theme: redefine the site tokens (style.css is light-only). */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --white: #0F1115; --ink: #E9EBEF; --graphite: #A9B0BB; --hair: #2A2F37; --tint: #161A20;
    --brand-50: rgba(235,51,35,.12); --brand-100: rgba(235,51,35,.30); --brand-deep: #FF9A8E; --brand-press: #FF7A6B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 8px 28px rgba(0,0,0,.45);
  }
  .site-nav { background: rgba(15,17,21,.94); }
  .btn-primary, .btn-primary:hover { color: #FFFFFF; }
  .btn-secondary { border-color: #3A404A; }
  .site-footer .mark-tm, .footer-col h2, .footer-base a { color: #FFFFFF; }
  .site-footer { background: #0A0F1A; }
  :focus-visible { outline-color: #FFFFFF; }
  .page-hero { background: radial-gradient(55% 90% at 0% 0%, rgba(245,122,60,.10) 0%, rgba(245,122,60,0) 60%), linear-gradient(180deg, #1A1213 0%, var(--white) 100%); }
}

/* Header badge */
.hc-brand { gap: 0; }
.hc-badge { margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-deep); font-size: 12px; font-weight: 600; white-space: nowrap; align-self: center; }
.hc .nav-links a { padding: 2px 0; }
@media (max-width: 480px) { .hc-badge { margin-left: 8px; padding: 2px 8px; font-size: 11px; } }
@media (max-width: 340px) { .hc-badge { display: none; } }

/* Hero */
.hc-hero { padding: 56px 0 44px; }
.hc-hero h1 { font-size: clamp(30px, 4.2vw, 48px); }
.hc-hero .lede { margin-left: auto; margin-right: auto; }
.hc-hero .center .lede, .hc-hero.center .lede { text-align: center; }
.hc-hero--platform .lede, .hc-hero--search .lede { margin-left: 0; }
.hc-hero-row { display: flex; align-items: flex-start; gap: 18px; margin-top: 18px; }
.hc-hero-row .lede { margin-top: 10px; }

/* Search form */
.hc-search { position: relative; display: flex; gap: 10px; align-items: center; max-width: 680px; margin: 28px 0 0; }
.center .hc-search, .hc-home .hc-search, .hc-404 .hc-search { margin-left: auto; margin-right: auto; }
.hc-search input[type=search] { flex: 1; min-width: 0; height: 52px; padding: 0 16px 0 46px; border: 1px solid #C6CAD1; border-radius: 12px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; }
.hc-search input[type=search]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hc-search-ic { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--graphite); pointer-events: none; }
.hc-search .btn { height: 52px; padding: 0 22px; font-size: 16px; flex: none; }
.hc-search--big input[type=search] { height: 60px; font-size: 18px; border-radius: 14px; }
.hc-search--big .btn { height: 60px; border-radius: 12px; }
@media (prefers-color-scheme: dark) { .hc-search input[type=search] { border-color: #3A404A; } }
@media (max-width: 560px) {
  .hc-search .btn { padding: 0 14px; }
  .hc-search--big input[type=search] { height: 54px; font-size: 16px; }
  .hc-search--big .btn { height: 54px; }
}
@media (max-width: 380px) { .hc-search .btn { display: none; } }

.hc-bar { border-bottom: 1px solid var(--hair); background: var(--tint); }
.hc-bar .hc-search { margin: 0; padding: 12px 0; max-width: 560px; }
.hc-bar .hc-search input[type=search] { height: 44px; font-size: 16px; border-radius: 10px; box-shadow: none; }
.hc-bar .hc-search .btn { height: 44px; }
.hc-bar .hc-search-ic { left: 14px; }

/* Live results (home) */
.hc-live { position: relative; max-width: 680px; margin: 10px auto 0; text-align: left; background: var(--white); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.hc-live ol { margin: 0; padding: 6px; list-style: none; }
.hc-live a { display: block; padding: 10px 12px; border-radius: 10px; }
.hc-live a:hover, .hc-live a:focus-visible { background: var(--tint); outline-offset: -2px; }
.hc-live .hc-live-all { display: block; padding: 12px 18px; border-top: 1px solid var(--hair); font-size: var(--fs-sm); font-weight: 600; color: var(--brand-press); }
.hc-live .hc-live-empty { padding: 14px 18px; color: var(--graphite); font-size: var(--fs-sm); }

/* Result rows (live + search page) */
.hc-r-title { display: block; font-weight: 600; color: var(--ink); }
.hc-r-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--graphite); }
.hc-r-snip { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--graphite); }
mark { background: rgba(235,51,35,.16); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Groups, tiles, cards */
.hc-home-body, .hc-platform-body, .hc-results-wrap { padding-top: 48px; padding-bottom: 72px; }
.hc-group + .hc-group { margin-top: 56px; }
.hc-group > h2, .hc-section > h2, .hc-related > h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.hc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hc-tile { position: relative; display: flex; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.hc-tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); }
.hc-tile:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.hc-tile h3 { font-size: 18px; }
.hc-tile-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.hc-tile-link:focus-visible { outline: none; }
.hc-tile p { margin-top: 4px; color: var(--graphite); font-size: var(--fs-sm); }
.hc-tile .hc-tile-count { margin-top: 10px; font-size: 13px; color: var(--brand-deep); font-weight: 500; }
.hc-tile-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.hc-tile-ic .ic { width: 24px; height: 24px; }
.hc-tile-ic--lg { width: 56px; height: 56px; border-radius: 14px; }
.hc-tile-ic--lg .ic { width: 30px; height: 30px; }

.hc-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hc-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hc-card a { display: block; height: 100%; padding: 16px 18px; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; transition: border-color .15s ease; }
.hc-card a:hover { border-color: var(--brand); }
.hc-card-title { display: block; font-weight: 600; color: var(--ink); }
.hc-card-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--brand-deep); }
.hc-card-sum { display: block; margin-top: 4px; color: var(--graphite); font-size: var(--fs-sm); }
@media (max-width: 720px) { .hc-cards--2 { grid-template-columns: minmax(0, 1fr); } }

.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--hair); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); cursor: pointer; font-family: inherit; }
.hc-chip span { color: var(--graphite); font-weight: 400; }
.hc-chip:hover { border-color: var(--ink); }
.hc-chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hc-chip[aria-pressed="true"] span { color: inherit; }
.hc-product-link { margin-top: 16px; font-size: var(--fs-sm); }
.hc-product-link a, .hc-more a { color: var(--brand-press); text-decoration: underline; text-underline-offset: 3px; }
.hc-section + .hc-section { margin-top: 48px; }
.hc-section { scroll-margin-top: 90px; }
.hc-qlist { display: grid; gap: 0; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.hc-qlist li + li { border-top: 1px solid var(--hair); }
.hc-qlist a { display: block; padding: 14px 18px; font-weight: 500; background: var(--white); }
.hc-qlist a:hover { color: var(--brand-press); }
.hc-more { margin-top: 12px; }
.hc-empty p { color: var(--graphite); max-width: 62ch; }

/* Breadcrumbs */
.hc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--graphite); }
.hc-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--hair); }
@media (prefers-color-scheme: dark) { .hc-crumbs li + li::before { color: #4A505B; } }
.hc-crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.hc-crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.hc-crumbs [aria-current] { color: var(--ink); }

/* Article */
.hc-article-wrap { padding-top: 24px; padding-bottom: 72px; }
.hc-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; margin-top: 20px; }
.hc-article { min-width: 0; max-width: 780px; }
.hc-article-head h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; }
.hc-article-head .lede { margin-top: 12px; font-size: 18px; }
.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 16px; font-size: 14px; color: var(--graphite); }
.hc-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); border: 1px solid var(--hair); color: var(--ink); }
.hc-tag--getting-started { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-deep); }
.hc-aside { position: relative; }
.hc-aside .hc-toc { position: sticky; top: 96px; }
.hc-toc summary { cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); list-style: none; }
.hc-toc summary::-webkit-details-marker { display: none; }
.hc-toc ul { margin-top: 10px; border-left: 2px solid var(--hair); }
.hc-toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--graphite); }
.hc-toc li.lv3 a { padding-left: 24px; font-size: 13px; }
.hc-toc li a:hover { color: var(--ink); }
.hc-toc li a.is-active { color: var(--ink); border-left-color: var(--brand); font-weight: 500; }
.hc-toc-inline { display: none; }
@media (max-width: 1023px) {
  .hc-article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hc-aside { display: none; }
  .hc-toc-inline { display: block; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; background: var(--tint); }
  .hc-toc-inline summary::after { content: " +"; }
  .hc-toc-inline details[open] summary::after { content: " \2212"; }
}

/* Article body */
.hc-prose { margin-top: 32px; font-size: 17px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.hc-prose > * + * { margin-top: 18px; }
.hc-prose h2 { margin-top: 44px; font-size: 26px; scroll-margin-top: 90px; }
.hc-prose h3 { margin-top: 32px; font-size: 20px; scroll-margin-top: 90px; }
.hc-prose h4 { margin-top: 24px; font-size: 17px; scroll-margin-top: 90px; }
.hc-prose h2 + *, .hc-prose h3 + *, .hc-prose h4 + * { margin-top: 10px; }
.hc-prose .hd-link { margin-left: 8px; color: var(--graphite); opacity: 0; font-weight: 400; text-decoration: none; }
.hc-prose h2:hover .hd-link, .hc-prose h3:hover .hd-link, .hc-prose h4:hover .hd-link, .hc-prose .hd-link:focus-visible { opacity: 1; }
.hc-prose p, .hc-prose li { color: var(--ink); }
.hc-prose a { color: var(--brand-press); text-decoration: underline; text-underline-offset: 3px; }
.hc-prose a:hover { color: var(--brand-deep); }
.hc-prose ul, .hc-prose ol { padding-left: 26px; }
.hc-prose ul { list-style: disc; }
.hc-prose ol { list-style: decimal; }
.hc-prose li + li { margin-top: 8px; }
.hc-prose li > ul, .hc-prose li > ol { margin-top: 8px; }
.hc-prose li::marker { color: var(--graphite); font-weight: 600; }
.hc-prose ol > li { padding-left: 4px; }
.hc-prose li > p + p { margin-top: 10px; }
.hc-prose li > figure { margin-top: 12px; }
.hc-prose strong { font-weight: 600; }
.hc-prose code { padding: 1px 6px; border-radius: 6px; background: var(--tint); border: 1px solid var(--hair); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.hc-prose pre { padding: 14px 16px; border-radius: 12px; background: #0E1A2F; color: #E9EDF5; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.hc-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.hc-prose hr { border: 0; border-top: 1px solid var(--hair); margin: 36px 0; }
.hc-prose blockquote { padding: 12px 18px; border-left: 3px solid var(--hair); color: var(--graphite); }
.hc-prose blockquote p { color: inherit; }
.callout { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--hair); background: var(--tint); }
.callout > * + * { margin-top: 8px; }
.callout--tip, .callout--note { border-left: 4px solid #2F6FEB; }
.callout--important, .callout--warning { border-left: 4px solid var(--brand); background: var(--brand-50); border-color: var(--brand-100); }
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.hc-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hc-prose th, .hc-prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.hc-prose th { background: var(--tint); font-weight: 600; }
.hc-prose tr:last-child td { border-bottom: 0; }
.hc-prose .al-center { text-align: center; }
.hc-prose .al-right { text-align: right; }

/* Q&A pages: each question reads as its own block */
.hc-prose--faq h3 { padding-top: 22px; border-top: 1px solid var(--hair); }
.hc-prose--faq h2 + h3 { border-top: 0; padding-top: 0; }

/* Screenshots */
.shot { margin: 22px 0 0; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--hair); border-radius: 12px; box-shadow: var(--shadow-sm); background: var(--tint); }
.hc-prose li .shot img { max-width: min(100%, 720px); }
.shot--missing { position: relative; max-width: 720px; border: 1px dashed #C6CAD1; border-radius: 12px; background: var(--tint); overflow: hidden; }
@media (prefers-color-scheme: dark) { .shot--missing { border-color: #3A404A; } }
.shot-ph-box { display: block; width: 100%; height: auto; fill: transparent; }
.shot-ph-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; color: var(--graphite); font-size: var(--fs-sm); font-weight: 600; }
.shot-ph-ic { width: 32px; height: 32px; color: var(--graphite); opacity: .7; }
.shot-ph-alt { max-width: 46ch; font-weight: 400; font-size: 13px; }
.shot-inline-missing { color: var(--graphite); font-style: italic; }

/* Helpful + prev/next */
.hc-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 48px; padding: 18px 20px; border: 1px solid var(--hair); border-radius: 14px; }
.hc-helpful h2 { font-size: 17px; }
.hc-helpful-btns { display: flex; gap: 8px; }
.hc-helpful p { width: 100%; color: var(--graphite); font-size: var(--fs-sm); }
.hc-helpful p a { color: var(--brand-press); text-decoration: underline; }
.hc-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 28px; }
.hc-pn a { display: block; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px; }
.hc-pn a:hover { border-color: var(--brand); }
.hc-pn span { display: block; font-size: 13px; color: var(--graphite); }
.hc-pn strong { display: block; margin-top: 2px; }
.hc-pn-next { text-align: right; }
@media (max-width: 560px) { .hc-pn { grid-template-columns: minmax(0, 1fr); } .hc-pn-next { text-align: left; } }
.hc-related { margin-top: 56px; }

/* Still need help */
.hc-help-box { margin-top: 64px; padding: 28px; border-radius: 18px; background: var(--tint); border: 1px solid var(--hair); }
.hc-help-box > h2 { font-size: clamp(22px, 2.4vw, 28px); }
.hc-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.hc-help-item { display: flex; gap: 14px; }
.hc-help-item h3 { font-size: 17px; }
.hc-help-item p { margin-top: 4px; color: var(--graphite); font-size: var(--fs-sm); }
.hc-help-item a { color: var(--brand-press); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.hc-help-ic { flex: none; width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
@media (max-width: 720px) { .hc-help-grid { grid-template-columns: minmax(0, 1fr); } .hc-help-box { padding: 20px; } }

/* Search page */
.hc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.hc-filter-label { font-size: 13px; font-weight: 600; color: var(--graphite); }
.hc-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-results-status { color: var(--graphite); }
.hc-results { margin-top: 16px; display: grid; gap: 10px; list-style: none; padding: 0; }
.hc-results a { display: block; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--white); }
.hc-results a:hover, .hc-results a:focus-visible { border-color: var(--brand); }

@media (prefers-reduced-motion: reduce) { .hc-tile, .hc-card a { transition: none; } }
@media print { .site-nav, .site-footer, .hc-bar, .hc-aside, .hc-helpful, .hc-pn, .hc-help-box, .hc-related { display: none !important; } }
