
/* A read-only status pipeline scoped to this panel; the established docs shell is unchanged. */
.self-adoption { margin: 1.5rem 0 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--quote); }
.self-adoption-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .8rem; }
.self-adoption h2 { border: 0; padding: 0; margin: 0; font-size: 1.2rem; }
.self-adoption > p { font-size: .87rem; line-height: 1.6; }
.pipeline-overall { font-size: .73rem; font-weight: 700; }
.self-adoption-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0; }
.self-adoption-pipeline li { min-width: 0; margin: 0; border-top: 2px solid var(--line); padding-top: .75rem; }
.self-adoption-pipeline a { display: block; font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; min-height: 2.7em; }
.self-adoption-pipeline [data-state] { display: block; margin-top: .45rem; font-size: .72rem; }
.self-adoption [data-state=passed] { color: #176347; }
.self-adoption [data-state=failed] { color: #b42335; }
.self-adoption [data-state=running] { color: #65500a; }
.self-adoption-pipeline li[data-state=passed] { border-color: #43856b; }
.self-adoption-pipeline li[data-state=failed] { border-color: #b42335; }
.self-adoption-refresh { display: flex; gap: 1rem; align-items: start; justify-content: space-between; margin-bottom: 1rem; }
.self-adoption-refresh p { color: var(--muted); font-size: .74rem; margin: 0; }
.self-adoption button { flex: none; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; font-size: .75rem; cursor: pointer; }
.self-adoption button:hover { border-color: var(--accent); }
.self-adoption button:disabled { cursor: wait; opacity: .7; }
.self-adoption a:focus-visible, .self-adoption button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.self-adoption .self-adoption-record { padding-top: .85rem; border-top: 1px solid var(--line); font-size: .8rem; }
.self-adoption .self-adoption-limit { color: var(--muted); font-size: .75rem; margin-bottom: 0; }
@media (prefers-color-scheme: dark) {
  .self-adoption [data-state=passed] { color: #81dbaf; }
  .self-adoption [data-state=failed] { color: #ff9caf; }
  .self-adoption [data-state=running] { color: #ead29a; }
}
@media (max-width: 600px) {
  .self-adoption { padding: 1rem; }
  .self-adoption-pipeline { grid-template-columns: 1fr; gap: .55rem; }
  .self-adoption-pipeline li { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding-top: .6rem; border-top-width: 1px; }
  .self-adoption-pipeline a { min-height: 0; font-size: .85rem; }
  .self-adoption-pipeline [data-state] { margin-top: 0; flex: none; }
  .self-adoption-refresh { flex-direction: column; gap: .6rem; }
}
@media print { .self-adoption button { display: none; } }

/* bce documentation site — one local stylesheet, no external assets. */
:root {
  --bg: #ffffff; --fg: #1b1f24; --muted: #5a6472; --line: #d8dee6;
  --accent: #0b5fff; --code-bg: #f5f7fa; --quote: #f2f6ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418; --fg: #e6e9ee; --muted: #9aa4b2; --line: #2a323c;
    --accent: #6ea8ff; --code-bg: #171d24; --quote: #161d29;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; padding: 12px 18px; background: #61c9ef; color: #07111f; }
.skip-link:focus { top: 12px; }
.site-header {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  min-height: 80px; padding: 16px max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid #29394a; background: #080919; color: #e8ebed;
  position: relative; z-index: 2;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #e8ebed; flex-shrink: 0; }
.brand strong { font-size: 24px; letter-spacing: -.02em; }
.brand span { color: #a6bbcb; font-size: 13px; margin-left: 8px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a, .site-nav summary { display: flex; align-items: center; min-height: 44px; color: #bfd0df; text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav summary:hover { color: #61c9ef; }
.site-nav a.current, .site-nav summary.current { color: #fff; text-decoration: underline; text-underline-offset: 7px; }
.site-nav summary { display: list-item; line-height: 44px; cursor: pointer; }
.nav-reference { position: relative; }
.nav-reference-links { position: absolute; right: 0; top: 52px; width: 220px; padding: 12px; background: #101b29; border: 1px solid #36445b; border-radius: 8px; box-shadow: 0 12px 24px #0003; }
.nav-reference-links a { padding: 4px 12px; }
.nav-reference-links a:hover { background: #1a2b3c; }
.site-header a:focus-visible, .site-header summary:focus-visible { outline: 2px solid #ffcb75; outline-offset: 4px; }
@media (max-width: 1050px) { .brand span { display: none; } }
@media (max-width: 600px) {
  .site-header { padding: 12px 16px; gap: 12px; min-height: 72px; }
  .brand { gap: 6px; } .brand strong { font-size: 21px; } .brand img { width: 22px; height: 22px; }
  .site-nav { gap: 14px; } .site-nav a, .site-nav summary { font-size: 12px; }
}
@media (max-width: 359px) { .site-header { flex-wrap: wrap; gap: 0; } .site-nav { width: 100%; justify-content: space-between; } }
main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
article > :first-child { margin-top: 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 2rem 0 .75rem; }
h1 { font-size: 1.9rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; padding-top: .5rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, blockquote, .table-wrap, pre { margin: 0 0 1rem; }
li { margin: .25rem 0; }
li > ul, li > ol { margin: .25rem 0 .25rem 0; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 3px;
}
p code, li code, td code { overflow-wrap: anywhere; word-break: break-word; }
pre {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px;
  padding: .85rem 1rem; overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: .85rem; line-height: 1.55; }
blockquote {
  margin-left: 0; padding: .6rem 1rem; background: var(--quote);
  border: 1px solid var(--line); border-radius: 4px;
}
blockquote > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
.paper-page main { max-width: 900px; }
.paper-page article > p, .paper-page article > blockquote { max-width: 72ch; }
.paper-page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.03em; }
.paper-reader { margin-top: 32px; }
.paper-download { margin-bottom: 12px; }
.paper-download a { display: inline-flex; align-items: center; min-height: 44px; }
.paper-reader object { display: block; width: 100%; height: 80vh; min-height: 600px; border: 1px solid var(--line); }
@media (max-width: 700px) { .paper-reader object { display: none; } }
/* The centred hero block. Images scale down on a narrow viewport rather than
   forcing the page to scroll sideways; the shields row wraps instead of
   overflowing. */
.hero { text-align: center; line-height: 0; }
.hero picture { display: block; }
.hero img { max-width: 100%; height: auto; margin: .2rem .15rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .45rem .7rem; border: 1px solid var(--line); }
th { background: var(--code-bg); font-weight: 600; }
.align-center { text-align: center; }
.align-right { text-align: right; font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.anchor {
  margin-left: .4rem; opacity: 0; text-decoration: none; font-weight: 400; color: var(--muted);
}
h1:hover .anchor, h2:hover .anchor, h3:hover .anchor,
h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { opacity: 1; }
.anchor:focus-visible {
  opacity: 1; outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
.toc {
  border: 1px solid var(--line); border-radius: 6px; padding: .85rem 1rem;
  margin: 0 0 2rem; background: var(--code-bg); font-size: .92rem;
}
.toc-title { margin: 0 0 .4rem; font-weight: 600; color: var(--muted); }
.toc ul { margin: 0; padding-left: 1.1rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; margin: 0 0 1.5rem; list-style: none; }
.cards li { border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; margin: 0; }
.cards h3 { margin: 0 0 .35rem; font-size: 1rem; }
.cards p { margin: 0; color: var(--muted); font-size: .92rem; }
.source { color: var(--muted); font-size: .85rem; margin-top: 2.5rem; }
.site-footer {
  border-top: 1px solid var(--line); padding: 1.25rem; text-align: center;
  color: var(--muted); font-size: .85rem;
}
@media (max-width: 40rem) {
  .site-nav { margin-left: 0; gap: .75rem; }
  main { padding: 1.5rem 1rem 3rem; }
}
