/* Pro Lab Help Centre */
:root {
  --blue: #0a8fd6;
  --blue-deep: #0670ad;
  --ink: #0b1f33;
  --text: #1b2733;
  --muted: #5b6875;
  --line: #e2e7ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --card: #ffffff;
  --tip: #eaf6fd;
  --warn: #fff6e0;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4db8f0;
    --blue-deep: #7ccbf5;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --line: #26323f;
    --bg: #0d1620;
    --bg-soft: #131e2a;
    --card: #131e2a;
    --tip: #10293a;
    --warn: #33290f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

.pilot-bar { background: #fff3c4; color: #4a3b00; font-size: 14px; text-align: center; padding: 7px 16px; }
.pilot-bar a { color: inherit; font-weight: 600; }

/* header: the logo is drawn for a white ground, so the bar stays white in both themes */
.site-header { background: #fff; border-bottom: 1px solid #e2e7ec; position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-tag { color: #5b6875; font-size: 15px; font-weight: 600; padding-left: 12px; border-left: 1px solid #d3dae1; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.top-nav a { color: #1b2733; text-decoration: none; }
.top-nav a:hover { color: #0670ad; }
.top-nav .btn-store { display: inline-flex; align-items: center; gap: 6px; background: #0b1f33; color: #fff; padding: 9px 14px; border-radius: 8px; }
.top-nav .btn-store:hover { background: #0670ad; color: #fff; }
.btn-store .icon { width: 16px; height: 16px; }

/* hero */
.hero { background: var(--ink); color: #fff; padding: 64px 0 76px; }
.hero-in { max-width: 760px; }
.eyebrow { margin: 0 0 10px; color: #6fc6f5; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 28px; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }

/* search (Pagefind UI) */
.search { --pagefind-ui-scale: 1; --pagefind-ui-primary: #0670ad; --pagefind-ui-text: #1b2733; --pagefind-ui-background: #fff; --pagefind-ui-border: #cfd8e0; --pagefind-ui-tag: #eef3f7; --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 10px; --pagefind-ui-font: var(--font); min-height: 64px; }
.search .pagefind-ui__drawer { background: #fff; border-radius: 10px; padding: 4px 20px 16px; margin-top: 10px; box-shadow: 0 12px 32px rgba(11, 31, 51, .18); }
.search .pagefind-ui__result-link { color: #0670ad; }
.search .pagefind-ui__message { color: #5b6875; }
.search mark { background: #fff3c4; color: inherit; }
.page-head .search { margin-top: 24px; max-width: 640px; }
.page-head .search .pagefind-ui__drawer { border: 1px solid var(--line); }

/* sections */
.section { padding: 48px 24px 8px; }
.section-h { font-size: 22px; margin: 0 0 20px; letter-spacing: -.01em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11, 31, 51, .08); color: var(--text); }
.card-icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 6px; }
.card-t { font-weight: 650; font-size: 18px; line-height: 1.3; }
.card-d { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.card-n { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-deep); font-size: 14px; font-weight: 600; margin-top: 6px; }
.card-n .icon { width: 15px; height: 15px; }

.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: block; padding: 16px 20px; text-decoration: none; color: var(--text); }
.row:hover { background: var(--bg-soft); color: var(--text); }
.row-t { display: block; font-weight: 600; color: var(--blue-deep); }
.row-d { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* page heads */
.page-head { padding: 36px 24px 0; }
.page-head.narrow { max-width: 760px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.lede { color: var(--muted); font-size: 18px; margin: 0; max-width: 62ch; }
.coll-head { display: flex; gap: 18px; align-items: flex-start; }
.coll-icon { width: 40px; height: 40px; color: var(--blue); margin-top: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); text-decoration: underline; }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; padding-top: 36px; padding-bottom: 24px; align-items: start; }
.article { max-width: 740px; min-width: 0; }
.article h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.14; margin: 0 0 12px; letter-spacing: -.02em; text-wrap: balance; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.has-video { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-deep); font-weight: 600; }
.has-video .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.prose { font-size: 17px; }
.prose > p:first-child { font-size: 19px; line-height: 1.55; }
.prose h2 { font-size: 25px; line-height: 1.25; margin: 44px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.anchor { margin-left: 8px; color: var(--line); text-decoration: none; font-weight: 400; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; color: var(--blue); }
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
blockquote { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 8px; }
blockquote p { margin: 0; }
.callout { border-color: transparent; background: var(--tip); }
.callout.warn { background: var(--warn); }
.callout-icon { margin-right: 8px; }

/* video + audio */
.video { margin: 6px 0 24px; }
.yt, .video iframe, .video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.yt { position: relative; overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s, transform .3s; }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: #e62117; border-radius: 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.yt-play::after { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.yt-title { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 28px; color: #fff; font-weight: 600; font-size: 16px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); text-align: left; }
.audio audio { width: 100%; margin: 6px 0 20px; }

/* toc */
.toc { position: sticky; top: 96px; font-size: 14.5px; padding-left: 18px; border-left: 1px solid var(--line); max-height: calc(100vh - 120px); overflow: auto; }
.toc-h { margin: 0 0 10px; font-weight: 650; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 9px; line-height: 1.35; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--blue-deep); }
.toc a.active { font-weight: 600; }

/* feedback */
.feedback { margin: 44px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.fb-q { margin: 0 0 12px; font-weight: 650; }
.fb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.feedback button { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.feedback button:hover { border-color: var(--blue); color: var(--blue-deep); }
.feedback button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fb-form { margin-top: 16px; display: grid; gap: 8px; }
.fb-form label { font-size: 15px; color: var(--muted); }
.fb-form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); resize: vertical; }
.fb-form button { justify-self: start; background: var(--ink); border-color: var(--ink); color: #fff; }
.fb-done { margin: 14px 0 0; color: var(--muted); }
.related { margin-top: 44px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }

/* contact */
.contact-cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-cards li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.contact-cards .icon { color: var(--blue); }
.contact-cards span { color: var(--muted); width: 90px; }
.contact-cards a { font-weight: 600; }

/* footer */
.site-footer { margin-top: 72px; background: var(--ink); color: #c9d6e2; padding: 40px 0 24px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-h { margin: 0; color: #fff; font-size: 20px; font-weight: 650; }
.footer-sub { margin: 4px 0 0; font-size: 15px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .icon { color: #6fc6f5; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #8fa1b3; }
.footer-legal a { color: inherit; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .header-in { height: 60px; }
  .brand img { height: 32px; }
  .brand-tag, .top-nav a:not(.btn-store) { display: none; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 36px 18px 4px; }
  .page-head { padding: 28px 18px 0; }
  .coll-icon { display: none; }
  .contact-list { flex-direction: column; gap: 12px; }
}
@media print {
  .site-header, .site-footer, .toc, .feedback, .related, .pilot-bar, .search { display: none !important; }
  .article-layout { display: block; }
}

/* search results: the Topic filter adds noise at this size */
.search .pagefind-ui__filter-panel { display: none; }

/* emoji topic icons + plain toggles */
.emoji { font-size: 26px; line-height: 1; }
.emoji.card-icon { width: auto; height: auto; margin-bottom: 8px; }
.emoji.coll-icon { width: auto; height: auto; font-size: 36px; }
.prose details { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; background: var(--card); }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details[open] summary { margin-bottom: 10px; }
