/* On the site the timeline takes the whole width of its window, inside the home page and on the full
   screen alike; the product keeps its reading width (Yaron, 28.9.26). */
html body { max-width: none; }

/* The bar above a product screen published on the site: it says the case is fictitious and leads back. */
.site-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px clamp(14px, 3vw, 32px); color: #f4efe6; background: #132b3a; font-family: system-ui, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.site-bar p { flex: 1 1 320px; margin: 0; }
.site-bar a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 45%); }
.site-bar a:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
.site-bar-back { padding: 6px 14px; border: 1px solid rgb(255 255 255 / 55%) !important; border-radius: 999px; white-space: nowrap; }
.site-bar-home { font-size: 17px; letter-spacing: .02em; border-bottom: 0 !important; }
.site-bar-demo { padding: 6px 14px; background: #60343a; border: 0 !important; border-radius: 999px; }
.site-bar-foot { padding: 24px clamp(14px, 3vw, 32px); font-family: system-ui, "Segoe UI", Arial, sans-serif; font-size: 13px; }
.site-bar-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-bar-foot a { color: #355362; }

/* The document an event stands on, opened over the timeline at the clause the event cites. */
.doc-viewer { --dv-bg: #fffefa; --dv-soft: #f4f2ec; --dv-ink: #132b3a; --dv-muted: #4d5f69; --dv-line: #ddd6c8; --dv-mark: #fff0c2; --dv-mark-line: #b8860b; --dv-mark-ink: #6b4a00;
  width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; color: var(--dv-ink); background: var(--dv-bg); border: 1px solid var(--dv-line); border-radius: 12px; box-shadow: 0 30px 80px rgb(8 18 26 / 35%); font-family: system-ui, "Segoe UI", Arial, sans-serif; }
.doc-viewer[open] { display: flex; flex-direction: column; }
.doc-viewer::backdrop { background: rgb(8 18 26 / 55%); }
.doc-viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; border-bottom: 1px solid var(--dv-line); }
.doc-viewer h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.doc-viewer-kind { margin: 0 0 4px; color: var(--dv-muted); font-size: 12px; font-weight: 700; }
.doc-viewer-meta { margin: 4px 0 0; color: var(--dv-muted); font-size: 13px; line-height: 1.5; }
.doc-viewer-close { flex: none; min-height: 40px; padding: 6px 16px; color: inherit; background: transparent; border: 1px solid var(--dv-line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.doc-viewer-close:focus-visible { outline: 3px solid var(--dv-mark-line); outline-offset: 2px; }
.doc-viewer-note { margin: 0; padding: 8px 20px; color: var(--dv-muted); background: var(--dv-soft); font-size: 13px; }
.doc-viewer-body { overflow: auto; padding: 4px 20px 24px; outline: none; }
.doc-page { padding: 14px 0 6px; border-bottom: 1px dashed var(--dv-line); }
.doc-page:last-child { border-bottom: 0; }
.doc-page-no { margin: 0 0 8px; color: var(--dv-muted); font-size: 12px; font-weight: 700; }
.doc-block { margin: 0 0 8px; padding: 6px 12px; border-inline-start: 4px solid transparent; border-radius: 6px; }
.doc-block h3 { margin: 0 0 2px; font-size: 14px; }
.doc-block p { margin: 0; font-size: 16px; line-height: 1.75; }
.doc-n { margin-inline-end: 8px; font-weight: 700; }
.doc-block.is-cited { background: var(--dv-mark); border-inline-start-color: var(--dv-mark-line); }
.doc-cited-label { display: block; margin-bottom: 2px; color: var(--dv-mark-ink); font-size: 12px; font-weight: 800; }
:root[data-theme="dark"] .doc-viewer { --dv-bg: #132634; --dv-soft: #0e1f2a; --dv-ink: #eef2f4; --dv-muted: #a9bac4; --dv-line: #2c4556; --dv-mark: #3a3217; --dv-mark-line: #e2b93b; --dv-mark-ink: #f2d27a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc-viewer { --dv-bg: #132634; --dv-soft: #0e1f2a; --dv-ink: #eef2f4; --dv-muted: #a9bac4; --dv-line: #2c4556; --dv-mark: #3a3217; --dv-mark-line: #e2b93b; --dv-mark-ink: #f2d27a; }
}
