/* docs.v1.css (20 Nov 2026): the documentation on plus.safetoopen.com/docs in the safetoopen.com template.
   Loaded after site.v1.css (the website's own stylesheets), so the nav, footer, fonts, colours and the article header
   (.art-hero, .art-tag, .art-hero__lede/__meta) and article text (.art-body) are the website's. This file only adds what
   documentation needs: the product bar, a sidebar with the guides and "On this page", guide cards, tables, code, notes
   and previous/next links. 8px corners, rings instead of one-sided lines, no icon tiles, no number badges. */
body.dx{background:#fff}

/* product bar under the site nav */
.dx-sub{background:#f6f7fb}
.dx-sub__in{max-width:1180px;margin:0 auto;padding:10px clamp(20px,4vw,32px);display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
.dx-sub__t{font-weight:700;color:var(--ink,#0f1827);font-size:.95rem;text-decoration:none}
.dx-sub nav{display:flex;gap:4px;flex-wrap:wrap}
.dx-sub nav a{padding:7px 12px;border-radius:8px;font-size:.9rem;line-height:1.3;color:var(--mut,#55607a);text-decoration:none;transition:background .15s,color .15s}
.dx-sub nav a:hover{color:var(--ink,#0f1827);background:#eceef7}
.dx-sub nav a[aria-current="page"],.dx-sub nav a.is-on{background:#fff;color:var(--ink,#0f1827);box-shadow:0 0 0 1px #e3e6f1}

/* page header: the website's article header, aligned with the text column */
.dx .art-hero.dx-hero{padding:clamp(30px,4vw,48px) 0 clamp(22px,3vw,30px)}
.dx-hero__wrap{max-width:1180px;margin:0 auto;padding:0 clamp(20px,4vw,32px)}
.dx-hero__in{max-width:780px}
@media (min-width:961px){.dx-hero__in{margin-inline-start:308px}}
.dx-crumbs{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:.88rem;color:var(--faint,#8697aa);margin:0}
.dx-crumbs a{color:var(--cobalt,#003ea5);text-decoration:none}
.dx-crumbs a:hover{text-decoration:underline}
.dx .art-hero.dx-hero .art-tag{margin:14px 0 12px}
.dx .art-hero.dx-hero h1{font-size:clamp(1.8rem,2.4vw + .7rem,2.6rem)}
.dx .art-hero__meta a{color:var(--cobalt,#003ea5);text-decoration:none;font-weight:600}
.dx .art-hero__meta a:hover{text-decoration:underline}

/* sidebar + text */
.dx-layout{max-width:1180px;margin:0 auto;padding:clamp(22px,3vw,34px) clamp(20px,4vw,32px) 72px;display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:start}
.dx-side{position:sticky;top:88px;max-height:calc(100vh - 104px);overflow:auto;font-size:.92rem;padding:2px 2px 12px;overscroll-behavior:contain}
.dx-side__d>summary{display:none}
.dx-side h2{font-size:.82rem;font-weight:600;color:var(--faint,#8697aa);margin:0 0 6px;padding:0 10px;letter-spacing:0;text-transform:none;line-height:1.4}
.dx-side ul{list-style:none;margin:0 0 22px;padding:0}
.dx-side li{margin:0}
.dx-side a{display:block;padding:6px 10px;border-radius:8px;color:var(--mut,#55607a);text-decoration:none;line-height:1.4;transition:background .15s,color .15s}
.dx-side a:hover{background:#f4f5fb;color:var(--ink,#0f1827)}
.dx-side a[aria-current="page"]{background:#eef0f8;color:var(--ink,#0f1827);font-weight:600}
.dx-side .dx-toc a.is-on{color:var(--ink,#0f1827);background:#f4f5fb}
.dx .art-body.dx-body{max-width:780px;margin:0;padding:0}

/* text details the website's article style does not cover */
.dx .dx-body h2,.dx .dx-body h3,.dx .dx-body h4{scroll-margin-top:96px}
.dx .dx-body>h2:first-child,.dx .dx-body>.dx-cards:first-child{margin-top:0}
.dx .dx-body h4{font-size:1rem;color:var(--ink,#0f1827);margin:22px 0 8px;font-weight:700}
.dx .dx-anchor{margin-inline-start:8px;color:transparent;text-decoration:none!important;font-weight:400}
.dx .dx-body :is(h2,h3,h4):hover .dx-anchor,.dx .dx-anchor:focus-visible{color:var(--faint,#8697aa)}
.dx .dx-body code{font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);font-size:.86em;background:#f1f3fa;color:var(--ink,#0f1827);padding:1px 6px;border-radius:4px;overflow-wrap:anywhere}
.dx .dx-body pre{background:#f6f7fb;box-shadow:0 0 0 1px #e3e6f1;border-radius:8px;padding:14px 16px;overflow-x:auto;font-size:13px;line-height:1.55;margin:0 0 20px}
.dx .dx-body pre code{background:none;padding:0;font-size:inherit;overflow-wrap:normal}
.dx .dx-body ul,.dx .dx-body ol{padding-inline-start:22px}
.dx .dx-body li>ul,.dx .dx-body li>ol{margin:8px 0 4px}

/* tables: a ring around the table, a tinted header and zebra rows instead of lines */
.dx .dx-tw{overflow-x:auto;margin:6px 0 24px;border-radius:8px;box-shadow:0 0 0 1px #e3e6f1}
.dx .dx-body table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5;margin:0}
.dx .dx-body th{border:0;background:#eef0f8;color:var(--ink,#0f1827);font-family:inherit;font-size:13px;font-weight:600;text-transform:none;letter-spacing:0;white-space:normal;text-align:start;padding:10px 14px;vertical-align:bottom}
.dx .dx-body td{border:0;padding:10px 14px;vertical-align:top;color:var(--charcoal,#33373d);font-weight:400}
.dx .dx-body td:first-child{color:var(--ink,#0f1827);font-weight:600}
.dx .dx-body tbody tr:nth-child(even) td{background:#f8f9fc}

/* notes */
.dx .dx-note{background:#eef0f8;border-radius:8px;padding:14px 18px;margin:18px 0 22px;font-size:1rem;line-height:1.65;color:var(--charcoal,#33373d)}
.dx .dx-note>strong:first-child{color:var(--ink,#0f1827);margin-inline-end:6px}
.dx .dx-note--warn{background:#fff3e2}
.dx .dx-caption{font-size:.88rem;color:var(--mut,#55607a);margin:-8px 0 18px}

/* guide cards (documentation home and guide lists) */
.dx .dx-sec{margin:0 0 40px}
.dx .dx-sec>h2{margin:0 0 6px}
.dx .dx-sec>p{color:var(--mut,#55607a);margin:0 0 4px}
.dx .dx-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin:16px 0 30px}
.dx .dx-card{display:flex;flex-direction:column;background:#fff;border-radius:8px;padding:18px 20px;box-shadow:0 0 0 1px #e3e6f1,0 14px 30px -26px rgba(15,24,39,.45);transition:box-shadow .2s}
.dx .dx-card:hover{box-shadow:0 0 0 1px #d5d9ec,0 18px 36px -24px rgba(15,24,39,.45)}
.dx .dx-card p.dx-card__n{flex:none;font-size:.82rem;color:var(--faint,#8697aa);margin:0 0 6px;line-height:1.4}
.dx .dx-card h3{font-size:1.05rem;line-height:1.35;margin:0 0 8px;color:var(--ink,#0f1827)}
.dx .dx-card h3 a{color:inherit;text-decoration:none}
.dx .dx-card h3 a:hover{color:var(--cobalt,#003ea5)}
.dx .dx-card p{font-size:.94rem;line-height:1.55;color:var(--mut,#55607a);margin:0 0 14px;flex:1}
.dx .dx-card__links{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:.9rem}
.dx .dx-card__links a{color:var(--cobalt,#003ea5);text-decoration:none;font-weight:600}
.dx .dx-card__links a:hover{text-decoration:underline}
.dx .dx-card__links a.dx-dl{color:var(--mut,#55607a);font-weight:500}

/* previous / next, and the closing line */
.dx .dx-pn{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:48px 0 0}
.dx .dx-pn a{display:block;padding:16px 18px;border-radius:8px;background:#fff;box-shadow:0 0 0 1px #e3e6f1;text-decoration:none;transition:background .15s}
.dx .dx-pn a:hover{background:#f7f8fc}
.dx .dx-pn small{display:block;color:var(--faint,#8697aa);font-size:.82rem;margin:0 0 4px}
.dx .dx-pn span{display:block;color:var(--ink,#0f1827);font-weight:600;line-height:1.4}
.dx .dx-pn .dx-pn__next{grid-column:2;text-align:end}
.dx .dx-updated{margin:36px 0 0;font-size:.9rem;line-height:1.6;color:var(--faint,#8697aa)}
.dx .dx-updated a{color:var(--cobalt,#003ea5)}

/* tablets and phones: the sidebar folds into one "Guides and contents" panel above the text */
@media (max-width:960px){
  .dx-layout{grid-template-columns:minmax(0,1fr);gap:22px}
  .dx-side{position:static;max-height:none;overflow:visible;padding:0}
  .dx-side__d{background:#f6f7fb;border-radius:8px;padding:4px 8px}
  .dx-side__d>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 8px;cursor:pointer;font-weight:600;color:var(--ink,#0f1827);list-style:none}
  .dx-side__d>summary::-webkit-details-marker{display:none}
  .dx-side__d>summary::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:-4px 6px 0 0;transition:transform .2s}
  .dx-side__d[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
  .dx-side__d[open]{padding-bottom:6px}
  .dx-side h2{margin-top:6px}
  .dx-side ul{margin-bottom:12px}
  .dx .dx-pn{grid-template-columns:1fr}
  .dx .dx-pn .dx-pn__next{grid-column:1}
}
@media (prefers-reduced-motion:reduce){.dx-side a,.dx-sub nav a,.dx .dx-card,.dx .dx-pn a{transition:none}}
@media print{
  .nav,.skip-link,.dx-sub,.dx-side,.footer,.dx .dx-pn{display:none!important}
  .dx-layout{display:block;padding:0}
  .dx .art-hero.dx-hero{background:none;padding:0 0 12px}
  .dx-hero__in{margin:0}
  .dx .dx-body pre{white-space:pre-wrap}
}
