/* Blossom Host "next": the document family.
   Pages of type "doc": /company/, /carriers/, /network/, /trust/, /abuse/, /contact/,
   /how-it-works/ and /brand/. Linked after bloom.css, so a plain .bn-doc selector wins.
   Everything here is composed from the shared tokens; every name starts with bn-doc. */

.bn-doc {
  --bn-doc-toc: 200px;
  --bn-doc-gap: clamp(44px, 6.4vw, 92px);
  --bn-pagehead-scene: 236px;
}

/* ------------------------------------------------------------------ page head */
.bn-doc .bn-pagehead-scene { --bn-sun-size: clamp(150px, 14vw, 204px); --bn-sun-x: 79%; --bn-sun-y: -4%; }
.bn-doc .bn-pagehead:has(.bn-pagehead-facts) .bn-pagehead-scene { --bn-sun-x: 94%; --bn-sun-y: 4%; }
.bn-doc .bn-pagehead .bn-h1 { max-width: 12em; }
.bn-doc .bn-pagehead .bn-lede { max-width: 33em; }
.bn-doc .bn-pagehead-facts { margin-top: 6px; }
.bn-doc .bn-pagehead-facts .bn-dl > div { grid-template-columns: minmax(6.4em, 30%) minmax(0, 1fr); }
.bn-doc .bn-doc-lines > span { display: block; }
.bn-doc .bn-doc-lines > span + span { margin-top: 4px; }
.bn-doc .bn-doc-headlist { list-style: none; padding-bottom: 12px; }
.bn-doc .bn-doc-headlist li { padding: 9px 0; border-top: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-headlist li:first-child { border-top: 0; padding-top: 2px; }
.bn-doc .bn-doc-headsend { padding: 0 0 20px; }
.bn-doc .bn-doc-headsend > * + * { margin-top: 10px; }

/* ------------------------------------------------------------------ body: contents list and column */
.bn-doc .bn-doc-body { padding-top: clamp(28px, 4vw, 56px); }
.bn-doc .bn-doc-grid { display: grid; grid-template-columns: var(--bn-doc-toc) minmax(0, 1fr); column-gap: var(--bn-doc-gap); align-items: start; }
.bn-doc .bn-doc-main { min-width: 0; max-width: 884px; }
.bn-doc .bn-doc-toc { position: sticky; top: calc(var(--bn-head-h) + 34px); max-height: calc(100vh - var(--bn-head-h) - 60px); overflow-y: auto; padding-bottom: 6px; scrollbar-width: thin; }
.bn-doc .bn-doc-toc-h { font: 600 .84rem/1.3 var(--bn-text); color: var(--bn-fg-2); padding-bottom: 12px; }
.bn-doc .bn-doc-toc ol { list-style: none; border-left: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--bn-fg-2); font-size: .95rem; line-height: 1.32; text-decoration: none; transition: color .15s, border-color .15s; }
.bn-doc .bn-doc-toc a:hover { color: var(--bn-fg); }
.bn-doc .bn-doc-toc a[aria-current] { color: var(--bn-fg); font-weight: 600; border-left-color: var(--bn-sakura); }
.bn-doc .bn-doc-toc a:focus-visible { outline-offset: -2px; }

.bn-doc .bn-doc-intro { max-width: 60ch; font-size: 1.16rem; line-height: 1.56; margin-bottom: clamp(44px, 5.4vw, 72px); }

/* A section: one thin ink rule, the heading under it, then the text. */
.bn-doc .bn-doc-sec { position: relative; padding-top: 28px; border-top: 1px solid var(--bn-rule-strong); scroll-margin-top: calc(var(--bn-head-h) + 22px); }
.bn-doc .bn-doc-sec + .bn-doc-sec { margin-top: clamp(64px, 7vw, 104px); }
.bn-doc .bn-doc-sec > h2 { font-size: clamp(1.72rem, 2.7vw, 2.3rem); line-height: 1.08; letter-spacing: -0.027em; max-width: 19em; }
.bn-doc .bn-doc-sec > * + * { margin-top: 1.05em; }
.bn-doc .bn-doc-sec > h2 + * { margin-top: 22px; }
.bn-doc .bn-doc-sec > .bn-doc-stand + h2 { margin-top: 0; }
.bn-doc .bn-doc-sec > :where(p, ul, ol, dl) { max-width: var(--bn-measure); }
.bn-doc .bn-doc-sec > h3 { margin-top: 2.3em; font-size: clamp(1.26rem, 1.8vw, 1.44rem); scroll-margin-top: calc(var(--bn-head-h) + 22px); }
.bn-doc .bn-doc-sec > h3 + * { margin-top: 12px; }
.bn-doc .bn-doc-sec > .bn-table-wrap { margin-top: 24px; }
.bn-doc .bn-doc-sec > .bn-table-wrap + p { margin-top: 26px; }
.bn-doc .bn-doc-sec > .bn-actions { margin-top: 30px; max-width: none; }
.bn-doc .bn-doc-quiet { color: var(--bn-fg-2); }

/* Tidy ruled list. An ordered one shows its number in the display face. */
.bn-doc .bn-doc-list { list-style: none; border-top: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-list > li { position: relative; padding: 12px 0 13px 28px; border-bottom: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-list > li::before { content: ""; position: absolute; left: 3px; top: calc(12px + .78em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--bn-fg-2); opacity: .55; }
.bn-doc ol.bn-doc-list { counter-reset: bn-doc-n; }
.bn-doc ol.bn-doc-list > li { padding-left: 44px; }
.bn-doc ol.bn-doc-list > li::before { counter-increment: bn-doc-n; content: counter(bn-doc-n); left: 0; top: 11px; width: auto; height: auto; border-radius: 0; background: none; opacity: 1; font: 700 1.22rem/1.4 var(--bn-display); font-variant-numeric: tabular-nums; color: var(--bn-fg); }
.bn-doc .bn-doc-list--rows > li { padding: 18px 0 19px; }
.bn-doc .bn-doc-list--rows > li::before { content: none; }

/* Links at the end of a section, and the closing set of a page. */
.bn-doc .bn-doc-links { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; max-width: none; }
.bn-doc .bn-doc-sec > .bn-doc-links { margin-top: 26px; }
.bn-doc .bn-doc-more { margin-top: clamp(56px, 6vw, 84px); padding-top: 24px; border-top: 1px solid var(--bn-rule); }

/* Two-column fact tables (Field, Detail). */
.bn-doc .bn-doc-facts tbody th { width: 11.5em; color: var(--bn-fg-2); font-weight: 500; }
.bn-doc .bn-doc-facts td { max-width: 46em; }
.bn-doc .bn-table td a { font-weight: 500; }
.bn-doc .bn-table tbody th a { color: inherit; text-decoration-color: var(--bn-link); text-underline-offset: .22em; }
.bn-doc .bn-doc-wide th:first-child { width: 12.5em; }

/* A fact table under its own heading needs no visible column heads. */
.bn-doc .bn-doc-facts--bare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bn-doc .bn-doc-facts--bare { border-top: 1px solid var(--bn-rule); }

/* Locations read from the live catalog. */
.bn-doc .bn-doc-live { margin-top: 2.1em; }
.bn-doc .bn-doc-live > h3 { font-size: clamp(1.26rem, 1.8vw, 1.44rem); margin-bottom: 14px; }
.bn-doc .bn-doc-places { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; }
.bn-doc .bn-doc-places li { padding: 5px 14px; border: 1px solid var(--bn-rule); border-radius: 999px; background: var(--bn-surface); font-weight: 500; font-size: .98rem; }

/* ------------------------------------------------------------------ addresses with a copy button */
.bn-doc .bn-doc-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bn-doc .bn-doc-addr > a { font: 500 1.02rem/1.3 var(--bn-mono); letter-spacing: 0; color: var(--bn-fg); text-decoration-color: var(--bn-link); text-decoration-thickness: 1.5px; text-underline-offset: .26em; overflow-wrap: anywhere; }
.bn-doc .bn-doc-addr > a:hover { color: var(--bn-link); }
.bn-doc .bn-doc-addr--xl > a { font-size: clamp(1.16rem, 2.2vw, 1.62rem); font-weight: 600; }
.bn-doc .bn-doc-copy { flex: none; min-height: 30px; padding: 0 13px; border: 1px solid var(--bn-field-line); border-radius: 999px; background: transparent; color: var(--bn-fg); font: 600 .8rem/1 var(--bn-text); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bn-doc .bn-doc-copy:hover { background: var(--bn-btn-bg); border-color: var(--bn-btn-bg); color: var(--bn-btn-fg); }
.bn-doc .bn-doc-copy-done, .bn-doc .bn-doc-copy.bn-is-copied .bn-doc-copy-do { display: none; }
.bn-doc .bn-doc-copy.bn-is-copied .bn-doc-copy-done { display: inline; }
html:not(.bn-js) .bn-doc .bn-doc-copy { display: none; }

/* Contact methods: a plain definition list. */
.bn-doc .bn-doc-reach { max-width: none; border-top: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-reach > div { display: grid; grid-template-columns: minmax(8.4em, 24%) minmax(0, 1fr); gap: 8px 36px; padding: 24px 0 26px; border-bottom: 1px solid var(--bn-rule); align-items: baseline; }
.bn-doc .bn-doc-reach dt { font: 650 1.22rem/1.25 var(--bn-display); letter-spacing: -0.016em; }
.bn-doc .bn-doc-reach dd { max-width: 40em; }
.bn-doc .bn-doc-reach dd > * + * { margin-top: 12px; }
.bn-doc .bn-doc-reach dd > p:first-child { color: var(--bn-fg-2); }

/* A dark surface inside the reading column. It carries the night palette under its own
   class, because bloom.js turns the whole header to night over any .bn-night block and
   these blocks do not span the page. Keep the values in step with .bn-night in bloom.css. */
.bn-doc .bn-doc-night {
  --bn-bg: var(--bn-night);
  --bn-surface: #1D1526;
  --bn-fg: var(--bn-mist);
  --bn-fg-2: #C6BACD;
  --bn-rule: rgba(247, 242, 245, .16);
  --bn-rule-strong: rgba(247, 242, 245, .62);
  --bn-link: var(--bn-petal);
  --bn-focus: var(--bn-petal);
  --bn-btn-bg: var(--bn-mist);
  --bn-btn-bg-hover: #FFFFFF;
  --bn-btn-fg: var(--bn-ink);
  --bn-field-bg: #1D1526;
  --bn-field-line: rgba(247, 242, 245, .36);
  background-color: var(--bn-bg);
  color: var(--bn-fg);
}

/* The contact block of /carriers/: the one dark surface on the page. */
.bn-doc .bn-doc-call { margin-top: clamp(64px, 7vw, 104px); padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 52px) clamp(30px, 4vw, 50px); border-radius: var(--bn-radius); scroll-margin-top: calc(var(--bn-head-h) + 22px); }
.bn-doc .bn-doc-call > h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.bn-doc .bn-doc-call > * + * { margin-top: 20px; }
.bn-doc .bn-doc-call > p { max-width: 36em; color: var(--bn-fg-2); font-size: 1.08rem; }
.bn-doc .bn-doc-call .bn-doc-addr { margin-top: 26px; }
.bn-doc .bn-doc-call .bn-doc-links { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--bn-rule); }

/* A box standing on the rule of a section, in the gap above it. */
.bn-doc .bn-doc-stand { position: absolute; right: 18px; bottom: 100%; margin-bottom: -5px; line-height: 0; }

/* ------------------------------------------------------------------ /how-it-works/: steps and the courier ridge */
.bn-doc .bn-doc-track { --bn-doc-hill: 52px; --bn-doc-run: 58px; position: sticky; top: var(--bn-head-h); z-index: 6; height: 112px; margin: 0 0 16px; background: var(--bn-mist); pointer-events: none; }
.bn-doc .bn-doc-track::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(180deg, var(--bn-mist), rgba(247, 242, 245, 0)); }
html:not(.bn-js) .bn-doc .bn-doc-track { display: none; }
.bn-doc .bn-doc-track-hill { position: absolute; left: 0; right: 0; top: var(--bn-doc-hill); height: 56px; }
.bn-doc .bn-doc-track-hill svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bn-doc .bn-doc-track-fill { fill: url(#bn-doc-ridge-g); }
.bn-doc .bn-doc-track-crest { fill: none; stroke: var(--bn-ink); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bn-doc .bn-doc-track-post { position: absolute; left: var(--bn-x); top: calc(var(--bn-doc-hill) + var(--bn-y) * 1px); width: 0; height: 0; }
.bn-doc .bn-doc-track-post::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bn-mist); border: 1.5px solid var(--bn-ink); transition: background-color .3s, border-color .3s, transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.bn-doc .bn-doc-track-post > i { position: absolute; left: -1em; top: 11px; width: 2em; text-align: center; font: 600 .8rem/1 var(--bn-text); font-style: normal; font-variant-numeric: tabular-nums; color: var(--bn-fg-2); transition: color .3s; }
.bn-doc .bn-doc-track-post.bn-is-reached::before { background: var(--bn-sakura); border-color: var(--bn-sakura); transform: scale(1.15); }
.bn-doc .bn-doc-track-post.bn-is-reached > i { color: var(--bn-fg); }
.bn-doc .bn-doc-track-run { position: absolute; left: 0; top: 0; line-height: 0; will-change: transform; }
.bn-doc .bn-doc-track-run .bn-box { --bn-box: var(--bn-doc-run); pointer-events: none; }

.bn-doc .bn-doc-steps { list-style: none; max-width: none; }
.bn-doc .bn-doc-step { display: grid; grid-template-columns: clamp(56px, 8vw, 92px) minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 30px); padding: 34px 0 40px; border-top: 1px solid var(--bn-rule); scroll-margin-top: calc(var(--bn-head-h) + 128px); }
.bn-doc .bn-doc-step:first-child { border-top: 0; padding-top: 14px; }
.bn-doc .bn-doc-step-n { font: 700 clamp(2.5rem, 4.6vw, 3.7rem)/.86 var(--bn-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--bn-fg); transition: color .45s; }
.bn-doc .bn-doc-steps.bn-is-tracked .bn-doc-step:not(.bn-is-reached) .bn-doc-step-n { color: #BDB0C6; }
.bn-doc .bn-doc-step-body > h3 { font-size: clamp(1.38rem, 2.1vw, 1.72rem); line-height: 1.12; }
.bn-doc .bn-doc-step-body > * + * { margin-top: .9em; }
.bn-doc .bn-doc-step-body > h3 + * { margin-top: 12px; }
.bn-doc .bn-doc-step-body > p { max-width: 62ch; }

/* ------------------------------------------------------------------ /brand/ */
.bn-doc .bn-doc-marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; border: 1px solid var(--bn-rule); border-radius: var(--bn-radius); overflow: hidden; }
.bn-doc .bn-doc-marks-side { display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-start; gap: 38px 30px; padding: clamp(24px, 3.4vw, 40px); background: var(--bn-cloud); }
.bn-doc .bn-doc-marks-side.bn-doc-night { background: var(--bn-night); }
.bn-doc .bn-doc-marks figure { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.bn-doc .bn-doc-marks figure > :is(img, svg) { display: block; height: 74px; width: auto; max-width: 100%; overflow: visible; }
.bn-doc .bn-doc-marks figure.bn-doc-marks-tall > :is(img, svg) { height: 124px; }
.bn-doc .bn-doc-marks figure.bn-doc-marks-row { flex: 0 0 100%; }
.bn-doc .bn-doc-marks figcaption { font-size: .86rem; line-height: 1.4; }
.bn-doc .bn-doc-marks figcaption a { font-family: var(--bn-mono); font-size: .82rem; overflow-wrap: anywhere; }
.bn-doc .bn-doc-wordmark { font: 700 clamp(1.9rem, 3.3vw, 2.6rem)/1 var(--bn-display); letter-spacing: -0.03em; color: var(--bn-fg); white-space: nowrap; }
.bn-doc .bn-doc-files { list-style: none; border-top: 1px solid var(--bn-rule-strong); }
.bn-doc .bn-doc-files li { padding: 10px 0; border-bottom: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-files a { font: 500 .93rem/1.4 var(--bn-mono); color: var(--bn-fg); text-decoration-color: var(--bn-link); overflow-wrap: anywhere; }
.bn-doc .bn-doc-files-h { font: 600 .84rem/1.3 var(--bn-text); color: var(--bn-fg-2); padding-bottom: 10px; scroll-margin-top: calc(var(--bn-head-h) + 22px); }
.bn-doc .bn-doc-sec > .bn-grid-2 { margin-top: 34px; max-width: none; }

/* The cast, standing on one rule. */
.bn-doc .bn-doc-cast { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px clamp(14px, 3vw, 40px); list-style: none; max-width: none; margin-top: 44px; padding: 0 8px; border-bottom: 1.5px solid var(--bn-rule-strong); }
.bn-doc .bn-doc-cast li { line-height: 0; margin-bottom: -4px; }
.bn-doc .bn-doc-cast .bn-box { --bn-box: 76px; }

/* Colours: the palette as one day, then the table. */
.bn-doc .bn-doc-day { display: flex; height: 84px; max-width: none; border: 1px solid var(--bn-rule); border-radius: var(--bn-radius); overflow: hidden; }
.bn-doc .bn-doc-day span { flex: 1 1 0; }
.bn-doc .bn-doc-chip { display: inline-block; width: 22px; height: 22px; margin-right: 12px; border-radius: 50%; border: 1px solid rgba(23, 17, 28, .16); vertical-align: -5px; }
.bn-doc .bn-doc-hex { font: 500 .93rem var(--bn-mono); letter-spacing: 0; white-space: nowrap; }
.bn-doc .bn-doc-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }

/* Type specimens. */
.bn-doc .bn-doc-type { list-style: none; max-width: none; border-top: 1px solid var(--bn-rule); }
.bn-doc .bn-doc-type li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; padding: 22px 0 20px; border-bottom: 1px solid var(--bn-rule); color: var(--bn-fg); overflow: hidden; }
.bn-doc .bn-doc-type span { white-space: nowrap; }
.bn-doc .bn-doc-type-d { font: 700 clamp(1.7rem, 6vw, 4.4rem)/1 var(--bn-display); letter-spacing: -0.03em; }
.bn-doc .bn-doc-type-t { font: 400 clamp(1.7rem, 6vw, 4.4rem)/1 var(--bn-text); }
.bn-doc .bn-doc-type-m { font: 400 clamp(1.42rem, 5.1vw, 3.7rem)/1 var(--bn-mono); }
.bn-doc .bn-doc-type .bn-doc-type-n { font-size: clamp(1.1rem, 2.2vw, 1.7rem); letter-spacing: 0; color: var(--bn-fg-2); }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1000px) {
  .bn-doc .bn-doc-grid { display: block; }
  .bn-doc .bn-doc-main { max-width: none; }
  .bn-doc .bn-doc-toc { position: static; max-height: none; overflow: visible; margin-bottom: 44px; padding: 16px 0 6px; border-top: 1px solid var(--bn-rule); border-bottom: 1px solid var(--bn-rule); }
  .bn-doc .bn-doc-toc ol { border-left: 0; columns: 2; column-gap: 32px; }
  .bn-doc .bn-doc-toc a { margin: 0; padding: 6px 0; border-left: 0; break-inside: avoid; }
  .bn-doc .bn-doc-toc a[aria-current] { font-weight: 400; color: var(--bn-fg-2); }
  .bn-doc .bn-doc-intro { margin-bottom: 36px; }
}
@media (max-width: 760px) {
  .bn-doc .bn-doc-toc ol { columns: 1; }
  .bn-doc .bn-doc-sec { padding-top: 22px; }
  .bn-doc .bn-doc-intro { font-size: 1.08rem; }
  .bn-doc .bn-doc-reach > div { display: block; padding: 20px 0 22px; }
  .bn-doc .bn-doc-reach dt { margin-bottom: 8px; }
  .bn-doc .bn-doc-stand { right: 6px; }
  .bn-doc .bn-doc-stand .bn-box { --bn-box: 50px !important; }
  .bn-doc .bn-doc-track { --bn-doc-hill: 40px; --bn-doc-run: 46px; height: 98px; }
  .bn-doc .bn-doc-step { display: block; padding: 26px 0 30px; }
  .bn-doc .bn-doc-step-n { display: block; margin-bottom: 12px; font-size: 2.3rem; }
  .bn-doc .bn-doc-marks { grid-template-columns: 1fr; }
  .bn-doc .bn-doc-cast .bn-box { --bn-box: 54px; }
  .bn-doc .bn-doc-day { height: 60px; }
  /* Fact tables: the field name is the label, so the stacked label column is not needed. */
  .bn-doc .bn-doc-facts tbody tr { padding: 12px 0 11px; }
  .bn-doc .bn-doc-facts tbody th { width: auto; padding: 0 0 2px; font: 500 .9rem/1.4 var(--bn-text); letter-spacing: 0; }
  .bn-doc .bn-doc-facts td { min-height: 0; padding: 0; }
  .bn-doc .bn-doc-facts td::before { content: none; }
  .bn-doc .bn-doc-wide th:first-child { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-doc :is(.bn-doc-toc a, .bn-doc-copy, .bn-doc-step-n, .bn-doc-track-post::before, .bn-doc-track-post > i) { transition: none; }
}

@media print {
  .bn-doc :is(.bn-doc-toc, .bn-doc-track, .bn-doc-copy, .bn-doc-stand, .bn-doc-cast) { display: none !important; }
  .bn-doc .bn-doc-grid { display: block; }
  .bn-doc .bn-doc-call { background: none; padding: 0; }
}
