/* Help: the integration guides side by side, split by lines and always whole rows, and the report guide with its
   contents on the left. Every class starts with dc-. */

@keyframes dc-flow { to { background-position: 36px 0; } }

/* ---------- Integration guides: one to four columns, so twelve a page always fill whole rows ---------- */
.dc-grid-wrap { padding-left: max(0px, calc(var(--pad-x) - 20px)); padding-right: max(0px, calc(var(--pad-x) - 20px)); }
.dc-grid-clip { overflow: hidden; border-bottom: 1px solid var(--line); }
.dc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.dc-guide {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; transition: background .15s ease;
}
.dc-guide:hover { background: var(--panel-2); color: inherit; }
.dc-guide:hover .dc-title { color: var(--brand-text); }
.dc-guide:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.dc-pair { display: flex; align-items: center; }
.dc-pair .brandmark { width: 96px; height: 26px; }
.dc-wire { position: relative; flex: none; width: 34px; height: 2px; margin: 0 4px; background: var(--line-strong); }
.dc-wire::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--line-strong); border-right: 0; }
.dc-wire.both { background: var(--brand-text); }
.dc-wire.both::after { border-left-color: var(--brand-text); }
.dc-wire.both::before { content: ""; position: absolute; left: -1px; top: -3px; border: 4px solid transparent; border-right: 6px solid var(--brand-text); border-left: 0; }
.dc-guide:hover .dc-wire { background: repeating-linear-gradient(90deg, var(--brand-text) 0 9px, transparent 9px 18px); background-size: 36px 2px; animation: dc-flow .9s linear infinite; }
.dc-title { font-size: var(--fs-m); font-weight: 600; line-height: 1.3; color: var(--ink); }
.dc-sub { margin-top: -6px; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-4); }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; font-size: var(--fs-xs); color: var(--ink-3); }
.dc-open { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--brand-text); }
.dc-foot svg { width: 13px; height: 13px; transition: transform .2s ease; }
.dc-guide:hover .dc-open svg { transform: translate(2px, -2px); }
.dc-empty { display: grid; justify-items: start; gap: 6px; padding-top: 26px; padding-bottom: 26px; }
.dc-empty b { font-size: var(--fs-m); color: var(--ink); }
.dc-empty span { font-size: var(--fs-s); color: var(--ink-4); }
.dc-empty .btn { margin-top: 6px; }

@container page (min-width: 1460px) {
  .dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- The report guide: the contents on the left, the sections on the right ---------- */
.dc-rg { display: grid; grid-template-columns: 252px minmax(0, 1fr); padding-inline: var(--pad-x); }
.dc-rg-nav { position: sticky; top: calc(var(--topbar) + var(--banner-h, 0px) + 12px); align-self: start; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 22px 0; }
.dc-rg-h { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-4); }
.dc-rg-list { display: grid; gap: 2px; }
.dc-rg-list a {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; border-radius: var(--r-m);
  color: var(--ink-2); font-size: var(--fs-s); font-weight: 500; transition: background .15s ease, color .15s ease;
}
.dc-rg-list a svg { box-sizing: content-box; flex: none; width: 15px; height: 15px; padding: 6px; border-radius: var(--r-s); background: color-mix(in srgb, var(--brand-text) 11%, transparent); color: var(--brand-text); }
.dc-rg-list a > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-rg-list a:hover { background: var(--panel-2); color: var(--ink); }
.dc-rg-list a.on { background: color-mix(in srgb, var(--brand-text) 9%, var(--panel)); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand); }
.dc-rg-level { font-size: var(--fs-2xs); font-weight: 600; color: var(--ink-4); }
.dc-rg-plan { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }
.dc-rg-plan .btn { justify-self: start; }

/* The sections sit beside the contents, split from them by one line. */
.dc-rg-body { --zl: 28px; --zr: 0px; min-width: 0; border-left: 1px solid var(--line); }
.dc-section { scroll-margin-top: calc(var(--topbar) + var(--banner-h, 0px) + 12px); }
.dc-section:last-child { border-bottom: 0; }
.dc-lead { max-width: 780px; margin: 0; font-size: var(--fs-m); line-height: 1.65; color: var(--ink-3); }
.dc-lead-body { padding-bottom: 18px; }
.dc-rg .colsplit.dc-cols { margin-top: 0; padding-left: var(--zl); padding-right: var(--zr); }
.dc-cols .colsplit-h { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.dc-cols .colsplit-h svg { width: 14px; height: 14px; color: var(--brand-text); }
.dc-list { margin: 0; padding-left: 18px; font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); }
.dc-list li + li { margin-top: 6px; }
.dc-cols + .dc-defs-body { border-top: 1px solid var(--line); }
.dc-lead-body + .dc-defs-body { padding-top: 0; }
.dc-defs-h { margin: 0 0 6px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-4); }
.dc-defs { margin: 0; }
.dc-def { display: grid; grid-template-columns: minmax(160px, 230px) minmax(0, 1fr); gap: 4px 24px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-s); }
.dc-def:first-child { border-top: 0; padding-top: 4px; }
.dc-def dt { font-weight: 600; color: var(--ink); }
.dc-def dd { margin: 0; line-height: 1.55; color: var(--ink-3); }
.dc-section .zone-head .right .pill { margin-right: 2px; }

@container page (max-width: 900px) {
  .dc-rg { grid-template-columns: minmax(0, 1fr); }
  .dc-rg-nav { position: static; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .dc-rg-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
  .dc-rg-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .dc-rg-body { --zl: 0px; border-left: 0; }
}

@container page (max-width: 820px) {
  .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container page (max-width: 640px) {
  .dc-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-rg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-rg-list a { font-size: var(--fs-xs); }
  .dc-rg-level { display: none; }
  .dc-def { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-guide:hover .dc-wire { animation: none; }
}
