/* OpenMechanism shared site shell · one header for home, atlas, figure library and platform.
   Namespaced (om-shell / om-*) so it never collides with page stylesheets. */
/* Type (0.208.0, the design audit): Source Serif 4 for reading text and headings, Source Sans 3 for the interface,
   both SIL Open Font License, in the subsets Google Fonts serves (Latin, Latin Extended, Greek). The family names stay
   "OM Display" and "OM Text", so every page and tool that uses the tokens follows. */
@font-face{font-family:"OM Text";src:url(/fonts/source-sans-3-greek.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:"OM Text";src:url(/fonts/source-sans-3-latin-ext.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"OM Text";src:url(/fonts/source-sans-3-latin.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"OM Display";src:url(/fonts/source-serif-4-italic-latin-ext.woff2) format("woff2");font-weight:200 900;font-style:italic;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"OM Display";src:url(/fonts/source-serif-4-italic-latin.woff2) format("woff2");font-weight:200 900;font-style:italic;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"OM Display";src:url(/fonts/source-serif-4-greek.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:"OM Display";src:url(/fonts/source-serif-4-latin-ext.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"OM Display";src:url(/fonts/source-serif-4-latin.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{
  /* light: a white page (0.208.0); crimson is for the medicine and the step markers */
  --om-paper:#FFFFFF;--om-surface:#FFFFFF;--om-soft:#F4F4F2;--om-ink:#171717;--om-ink-2:#3B3B3B;--om-muted:#666666;
  --om-line:#DCDCDC;--om-accent:#9B2242;--om-accent-hover:#7E1A35;--om-accent-ink:#FFFFFF;--om-accent-soft:#F6E9ED;
  --om-shadow:0 10px 28px -14px rgba(0,0,0,.22),0 1px 4px rgba(0,0,0,.06);
  --om-display:"OM Display","Source Serif 4",Charter,Georgia,serif;--om-read:var(--om-display);
  --om-text:"OM Text","Source Sans 3","Helvetica Neue",Arial,system-ui,sans-serif;
  --om-shell-h:64px;
  /* corner radii (review r1, f06): buttons and small controls 4 px; panels, the search dialog and popovers 8 px */
  --om-radius:4px;--om-radius-panel:8px;
  color-scheme:light;
}
/* light only (Daniel, 18 Oct 2026): no dark tokens; the head script marks every page light */
/* one scroll offset for the sticky header, so a skip link or a source link lands below it (review r1, b06) */
html{scroll-padding-top:80px}
/* the pinned bar's own controls are already in view: without this, focusing one by keyboard (Tab, Shift+Tab, a screen
   reader) scrolled the page by the padding above, under the open menu (the review of 18 November 2026) */
header.om-shell *{scroll-margin-top:-80px}

/* ---------------------------------------------------------------- header
   Daniel, 19 Oct 2026: the Clinical header in Prussian blue, with the search always on. Two rows: the bar (wordmark,
   Preview, search) stays pinned; the navigation row under it scrolls away. Prussian is the bar's colour only; crimson stays
   the medicine's. On narrow screens the navigation row is the menu the bar's button opens; on phones nothing is pinned. */
:root{--om-mark:#003153;--om-bar:#003153;--om-bar-2:#0B3D63;--om-bar-ink:#FFFFFF;--om-bar-muted:#B9CFE1;--om-bar-btn:#D3E3EF;--om-ground:#EDF3F7}
.om-shell{position:sticky;top:0;z-index:1000;background:var(--om-bar);color:var(--om-bar-ink);font-family:var(--om-text);font-size:16px;line-height:1.4}
.om-shell *{box-sizing:border-box}
.om-shell a{color:inherit;text-decoration:none}
.om-shell__bar{width:min(1420px,calc(100% - 48px));margin-inline:auto;min-height:var(--om-shell-h);display:flex;align-items:center;gap:20px;padding-block:10px}
.om-shell__id{display:flex;align-items:center;gap:14px;flex:none}
.om-shell__brand{display:inline-flex;align-items:center;gap:10px;font:600 1.3125rem/1 var(--om-display);letter-spacing:-.005em;white-space:nowrap;flex:none}
.om-shell__brand svg{width:28px;height:28px;flex:none}
.om-shell__brand svg rect{fill:var(--om-bar-ink)}
.om-shell__brand svg path{fill:none;stroke:var(--om-bar);stroke-width:3.7;stroke-linecap:round}

/* the review line (decided 16 November 2026, launch 17 November 2026): how many pages are medically reviewed, linking /reviewed; it replaced the
   "Preview" badge and its panel */
.om-badge{flex:none;font:400 .875rem/1.2 var(--om-text);color:var(--om-bar-muted);white-space:nowrap;text-decoration:underline dotted;text-underline-offset:4px}
.om-badge:hover{color:var(--om-bar-ink)}
@media (max-width:1240px){.om-badge__long{display:none}}

/* the line above the header asking for volunteer reviewers (apply_shell.py CALL; Daniel, 17 November 2026): one line on the
   pale ground, the link in the text colour and underlined, shorter words on phones; it scrolls away while the header stays
   pinned. Closed, it stays closed in this browser (shell.js callLine; the head script adds .om-call-closed before paint). */
.om-call{background:var(--om-ground);color:var(--om-ink);font:400 .875rem/1.45 var(--om-text);border-bottom:1px solid var(--om-line)}
.om-call-closed .om-call{display:none}
.om-call__inner{width:min(1420px,calc(100% - 48px));margin-inline:auto;display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px 40px;position:relative}
.om-call p{margin:0;text-align:center;text-wrap:balance}
.om-call a{color:inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.om-call a:focus-visible{outline:2px solid var(--om-ink);outline-offset:2px}
.om-call__short{display:none}
/* two classes, so the older tools' own `button:not(...)` rules (crimson fill, margins) cannot restyle it; 40 px, the line's
   height and its side padding, with the focus ring drawn inside it so the line does not clip it */
.om-call .om-call__close{position:absolute;right:0;top:50%;transform:translateY(-50%);width:40px;height:40px;display:grid;place-items:center;padding:0;margin:0;min-width:0;min-height:0;border:0;border-radius:4px;background:none;box-shadow:none;color:var(--om-ink-2);cursor:pointer}
.om-call .om-call__close:hover{color:var(--om-ink)}
.om-call .om-call__close:focus-visible{outline:2px solid var(--om-ink);outline-offset:-2px}
.om-call__close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media (max-width:640px){
  .om-call__long{display:none}.om-call__short{display:inline}
  .om-call__inner{justify-content:flex-start;padding:7px 40px 7px 0}
  .om-call p{text-align:left}
}

/* the search, always in view: a field-shaped button that opens the site search */
.om-shell__search{appearance:none;flex:1 1 320px;max-width:620px;margin-left:auto;min-height:44px;display:flex;align-items:stretch;padding:0;border:0;
  border-radius:var(--om-radius);background:#FFFFFF;color:var(--om-muted);font:400 1rem/1 var(--om-text);text-align:left;cursor:text;overflow:hidden}
/* the label is a block, so a cut one ends in an ellipsis (a flex box never shows one), and a narrower field shows a
   shorter label: the long one needs about 400 px with the button, the short one about 300 (launch review of 17 Nov 2026,
   browser-11: cut off mid-word on phones) */
.om-shell__search{container-type:inline-size}
.om-shell__search-text{flex:1;min-width:0;align-self:center;padding:0 14px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-shell__search-short,.om-shell__search-min{display:none}
@container (max-width:439px){.om-shell__search-long{display:none}.om-shell__search-short{display:inline}}
@container (max-width:304px){.om-shell__search-short{display:none}.om-shell__search-min{display:inline}}
@container (max-width:124px){.om-shell__search-text{visibility:hidden}}  /* too narrow even for "Search": the magnifier alone */
.om-shell__search kbd{align-self:center;margin-right:10px;font:600 .75rem/1 var(--om-text);padding:3px 6px;border:1px solid var(--om-line);border-radius:var(--om-radius);color:var(--om-muted);background:#FFFFFF}
.om-shell__search-go{flex:none;width:50px;display:grid;place-items:center;background:var(--om-bar-btn);color:var(--om-bar)}
.om-shell__search-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.om-shell__search:hover .om-shell__search-text{color:var(--om-ink-2)}

/* tools: the menu button on narrow screens (a tool page's own theme button is hidden, below) */
.om-shell__tools{display:flex;align-items:center;gap:6px;flex:none}
.om-shell__tools button{appearance:none;min-height:44px;padding:0 12px;border:1px solid var(--om-bar-muted);border-radius:var(--om-radius);background:transparent;
  color:var(--om-bar-ink);font:500 .9375rem/1 var(--om-text);cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.om-shell__menu-btn{display:none!important}
.om-shell__menu-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* the open menu's button shows a close mark (launch review, browser-12) */
.om-shell__menu-x,.om-shell.is-open .om-shell__menu-lines{display:none}
.om-shell.is-open .om-shell__menu-x{display:inline}
.om-shell :focus-visible{outline:2px solid var(--om-bar-ink);outline-offset:2px}

/* the navigation row */
.om-shell__row{position:relative;top:auto;z-index:999;background:var(--om-bar-2)}
.om-shell__nav{width:min(1420px,calc(100% - 48px));margin-inline:auto;display:flex;align-items:center;gap:4px;min-height:46px}
.om-shell__nav>a,.om-menu>summary{display:inline-flex;align-items:center;gap:7px;min-height:46px;padding:0 14px;font-size:1rem;font-weight:600;
  color:var(--om-bar-ink);cursor:pointer;white-space:nowrap}
/* the row's ends keep their words in line with the bar above, with room on the outside for the focus ring drawn inside */
.om-shell__nav>a:first-child{padding-left:14px;margin-left:-14px}
.om-shell__nav>a:hover,.om-menu>summary:hover,.om-menu[open]>summary{text-decoration:underline;text-underline-offset:5px}
/* the row is as tall as its links, so their focus ring is drawn inside them, where all four sides show (launch review, browser-10) */
.om-shell .om-shell__nav>a:focus-visible,.om-shell .om-menu>summary:focus-visible{outline-offset:-3px}
.om-shell__nav>a[aria-current],.om-menu.is-current>summary{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.om-shell__gap{flex:1}
.om-menu{position:relative}
.om-menu>summary{list-style:none}
.om-menu>summary::-webkit-details-marker{display:none}
.om-menu>summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.8;transition:transform .15s}
.om-menu[open]>summary::after{transform:translateY(1px) rotate(225deg)}
.om-menu:last-child>summary{padding-right:14px;margin-right:-14px}
.om-menu__panel :focus-visible{outline-color:var(--om-ink)}  /* the panels are paper: the bar's white ring would not show */
.om-menu__panel{position:absolute;right:0;top:calc(100% + 4px);min-width:340px;padding:8px;background:var(--om-surface);color:var(--om-ink);border:1px solid var(--om-line);
  border-radius:var(--om-radius-panel);box-shadow:var(--om-shadow);display:grid;gap:2px}
.om-menu__panel a{display:grid;gap:2px;padding:10px 12px;border-radius:var(--om-radius-panel)}
.om-menu__panel a:hover{background:var(--om-soft)}
.om-menu__panel a[aria-current]{background:var(--om-ground)}
.om-menu__panel a b{font-weight:600;font-size:.9375rem;color:var(--om-ink)}
.om-menu__panel a span{font-size:.8125rem;line-height:1.35;color:var(--om-muted)}
.om-menu__label{grid-column:1/-1;padding:8px 12px 4px;font:600 .875rem/1.2 var(--om-text);color:var(--om-muted)}
.om-menu__sep{grid-column:1/-1;height:1px;background:var(--om-line);margin:6px 4px}
.om-menu--studio>summary{font-weight:400}

/* page-local navigation (atlas views, Studio, the symbol library) sits directly under the pinned bar */
.om-subnav{position:sticky;top:var(--om-shell-h);z-index:998;background:var(--om-paper);border-bottom:1px solid var(--om-line);font-family:var(--om-text)}
.om-subnav__inner{width:min(1420px,calc(100% - 48px));margin-inline:auto;display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none;min-height:50px;
  flex-wrap:wrap;box-sizing:border-box;padding-block:4px}  /* the tabs wrap instead of running off the screen (sweep m03) */
/* phones: a wrapped row of tabs is too tall to stay pinned under the header */
@media (max-width:640px){.om-subnav{position:static}}
.om-subnav__inner::-webkit-scrollbar{display:none}
.om-subnav__title{font:600 1.0625rem/1 var(--om-display);color:var(--om-ink);margin-right:14px;white-space:nowrap}
.om-subnav button,.om-subnav a{appearance:none;border:0;background:none;padding:8px 12px;border-radius:var(--om-radius);font:500 .9375rem/1 var(--om-text);color:var(--om-ink-2);cursor:pointer;white-space:nowrap;min-height:36px}
.om-subnav button:hover{background:var(--om-soft);color:var(--om-ink)}
.om-subnav button.active{background:var(--om-ink);color:var(--om-paper)}

/* ---------------------------------------------------------------- narrow screens: the navigation row becomes the menu */
@media (max-width:1080px){
  .om-call__inner{width:calc(100% - 32px)}  /* the line's edges follow the bar's (.om-shell__bar below) */
  .om-shell__bar{width:calc(100% - 32px);gap:12px}
  .om-shell__menu-btn{display:inline-flex!important}
  .om-shell__search kbd{display:none}
  .om-shell__row{display:none;position:fixed;left:0;right:0;top:var(--om-menu-top,var(--om-shell-h));bottom:0;z-index:1001;overflow-y:auto;background:var(--om-paper);
    color:var(--om-ink);border-top:1px solid var(--om-line)}
  body.om-nav-open .om-shell__row{display:block}
  .om-shell__row :focus-visible{outline-color:var(--om-ink)}  /* the open menu is paper, so the bar's white ring would not show */
  .om-shell__nav{width:auto;min-height:0;flex-direction:column;align-items:stretch;gap:4px;padding:12px 16px 40px}
  .om-shell__nav>a,.om-menu>summary{min-height:48px;font-size:1.0625rem;justify-content:space-between;padding:0 12px;color:var(--om-ink)}
  .om-shell__nav>a:first-child,.om-menu:last-child>summary{padding:0 12px;margin:0}
  .om-shell__nav>a[aria-current]{text-decoration:none;box-shadow:inset 3px 0 0 var(--om-bar)}
  .om-shell__gap{display:none}
  .om-menu__panel{position:static;min-width:0;box-shadow:none;border:0;padding:0 0 8px 8px;grid-template-columns:1fr;background:transparent}
  .om-subnav__inner{width:calc(100% - 32px)}
  /* while the menu is open the page stays still: the lock is on the root, not <body>. With .om-has-shell's overflow-x:clip
     on <html>, an overflow on <body> no longer passes to the window, so <body> became its own scroll box and the pinned
     header scrolled away with the page, taking the close button with it (the live check of 18 November 2026) */
  html.om-nav-open{overflow:hidden}  /* shell.js setOpen keeps a visible scrollbar's room as padding */
}
/* phones: the bar is two lines (the search takes its own), so nothing is pinned */
@media (max-width:640px){
  html body header.om-shell{position:relative!important}
  .om-shell__bar{flex-wrap:wrap;row-gap:10px;padding-block:10px 12px}
  .om-shell__search{order:3;flex:1 1 100%;max-width:none;margin-left:0}
  .om-shell__tools{margin-left:auto}
}
@media (max-width:520px){
  .om-shell__brand{font-size:1.2rem}
  .om-shell__brand svg{width:26px;height:26px}
  .om-shell__tools button{padding:0 10px}
}

/* ---------------------------------------------------------------- page clean-up applied by the shell
   One status badge in the header replaces the repeated per-page review cards and strips. */
.om-has-shell .status-strip,.om-has-shell .atlas-status,.om-has-shell aside.status{display:none!important}
.om-has-shell .edition-note,.om-has-shell .review-note,.om-has-shell .body-boundary,.om-has-shell .review-boundary,
.om-has-shell .deep-boundary,.om-has-shell .process-boundary,.om-has-shell .draft-seal{display:none!important}

/* compact tool headers: tools should start above the fold */
.om-tool .page-intro,.om-tool .body-intro,.om-tool .composer-intro,.om-tool .deep-intro,.om-tool .process-intro,.om-tool .scene-intro{
  display:block!important;padding:28px 0 18px!important;margin:0!important;min-height:0!important}
.om-tool .page-intro h1,.om-tool .body-intro h1,.om-tool .composer-intro h1,.om-tool .deep-intro h1,.om-tool .process-intro h1,.om-tool .scene-intro h1{
  font-size:clamp(1.85rem,2.6vw + .6rem,2.6rem)!important;line-height:1.08!important;letter-spacing:-.015em!important;margin:4px 0 8px!important;max-width:28ch}
.om-tool .page-intro p:not(.eyebrow),.om-tool .body-intro p,.om-tool .composer-intro p,.om-tool .deep-intro p,.om-tool .process-intro p,.om-tool .scene-intro p{
  font-size:1.0625rem!important;line-height:1.5!important;margin:0!important;max-width:70ch}
.om-tool .atlas-intro-compact h1{font-size:clamp(1.85rem,2.6vw + .6rem,2.6rem)!important}

/* long caveat paragraphs collapse to two lines with a toggle */
.om-clamp>.om-clamp__text,.om-clamp:not(:has(>.om-clamp__text)){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.om-clamp-toggle{appearance:none;border:0;background:none;padding:2px 0;margin:2px 0 10px;color:var(--om-ink-2);font:600 .8125rem/1.2 var(--om-text);cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* fix: nothing should push the page sideways */
.om-has-shell{overflow-x:clip}
/* ...and <body> must not be a scroll box of its own: an overflow on it (app.css, the symbol library's and the claim pages')
   no longer passes to the window under the clip above, and the pinned bar and sub-navigation then scrolled away */
.om-has-shell body{overflow-x:clip}

@media print{.om-shell,.om-subnav,.om-call{display:none!important}}
@media (prefers-reduced-motion:reduce){.om-menu>summary::after{transition:none}}

/* the tools' folds: a 44 px row to tap, the size of the site's other small controls (review r7, b24); the grouped
   downloads' "More formats" keeps the height of the buttons beside it */
.om-tool main details:not(.om-more)>summary{min-height:44px;padding-block:12px;box-sizing:border-box}

/* page-level fixes for narrow screens */
.om-tool .workspace-nav{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
.om-tool .workspace-nav::-webkit-scrollbar{display:none}
.om-tool .workspace-nav>*{flex:none}

/* student-facing pages: the header badge replaces the repeated caveat box */
.om-student .notice:not([id]){display:none!important}

/* neutralise generic element rules some pages apply to every header / nav */
header.om-shell{display:block!important;padding:0!important;gap:0!important;flex-wrap:nowrap!important;position:sticky!important;top:0!important;border:0!important;background:var(--om-bar)!important}
nav.om-shell__row{gap:0!important;flex:none!important;padding:0!important;margin:0!important;border:0!important}
nav.om-subnav{display:block!important;gap:0!important;flex:none!important;padding:0!important}
.om-shell .om-shell__brand{font-weight:600!important;font-size:1.3125rem!important;flex:none!important}

/* atlas intro, compact like the other tools */
.om-tool #atlas-main .intro{padding:28px 0 12px!important;margin:0!important}
.om-tool #atlas-main .intro h1{font-size:clamp(1.85rem,2.6vw + .6rem,2.6rem)!important;line-height:1.08!important;margin:0 0 8px!important}
.om-tool #atlas-main .intro .lead{font-size:1.0625rem!important;margin:0!important}
@media (max-width:520px){
  .om-shell .om-shell__brand{font-size:1.2rem!important;gap:8px}
  .om-shell__tools button{width:40px;padding:0!important;justify-content:center}
}
@media (max-width:400px){
  .om-shell__bar{gap:8px}
  .om-shell .om-shell__brand{font-size:1.08rem!important}
  .om-badge{font-size:.8125rem}
  .om-badge__mid{display:none}
}
/* the narrowest phones (review r1, f04): a smaller wordmark and 2 px between the three 40 px buttons, so the bar fits 320 px */
@media (max-width:359px){
  .om-shell .om-shell__brand{font-size:.875rem!important}
  .om-shell__tools{gap:2px}
}
.om-tool #atlas-main{padding-top:4px!important}
.om-tool #atlas-main>section>h1{font-size:clamp(1.85rem,2.6vw + .6rem,2.6rem)!important;line-height:1.08!important;margin:28px 0 8px!important}
.om-tool #atlas-main>section>.lead{font-size:1.0625rem!important}

/* type-to-search for long dropdowns */
.om-picker{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:44px;margin:0 0 8px;padding:0 14px 0 40px;border:1.5px solid var(--om-ink);border-radius:var(--om-radius);
  background:var(--om-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23655F6B' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") 12px center/18px no-repeat;
  color:var(--om-ink);font:400 1rem/1.2 var(--om-text)}
.om-picker::placeholder{color:var(--om-muted)}
.om-picker:focus{outline:2px solid var(--om-accent);outline-offset:1px}

/* grouped download formats */
.om-more{position:relative;display:inline-block;vertical-align:top}
.om-more>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--om-line);border-radius:var(--om-radius);
  background:var(--om-surface);color:var(--om-ink-2);font:500 .9375rem/1 var(--om-text);white-space:nowrap}
.om-more>summary::-webkit-details-marker{display:none}
.om-more>summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.om-more[open]>summary{border-color:var(--om-muted);color:var(--om-ink)}
.om-more__panel{position:absolute;z-index:50;left:0;top:calc(100% + 6px);min-width:220px;padding:6px;display:grid;gap:2px;background:var(--om-surface);border:1px solid var(--om-line);border-radius:var(--om-radius-panel);box-shadow:var(--om-shadow)}
.om-more__panel>button,.om-more__panel>a{display:block;width:100%;margin:0!important;text-align:left;border:0!important;border-radius:var(--om-radius)!important;background:transparent!important;padding:10px 12px!important;color:var(--om-ink)!important;font:500 .9375rem/1.2 var(--om-text)!important;box-shadow:none!important;min-height:0!important}
.om-more__panel>button:hover:not(:disabled),.om-more__panel>a:hover{background:var(--om-soft)!important}
.om-more__panel>button:disabled{opacity:.45}
.om-subnav a{text-decoration:none!important;display:inline-flex;align-items:center}
.om-subnav a:hover{background:var(--om-soft);color:var(--om-ink)}
.om-subnav a[aria-current="page"]{background:var(--om-ink);color:var(--om-paper)}

/* connected strip inside tools */
.om-connected{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:4px 0 18px;padding:10px 14px;border:1px solid var(--om-line);border-radius:var(--om-radius);background:var(--om-surface);font-family:var(--om-text)}
.om-connected[hidden]{display:none}
.om-connected__label{font:600 .875rem/1.2 var(--om-text);color:var(--om-muted);margin-right:4px}
.om-connected__link{display:inline;padding:0;border:0;border-radius:0;font-size:.9375rem;font-weight:400;color:var(--om-ink)!important;text-decoration:underline!important;text-underline-offset:3px;background:none}
.om-connected__link::after{content:none}
.om-connected__link:hover{text-decoration-thickness:2px!important}

/* site search */
.om-search-btn{appearance:none;min-height:38px;padding:0 10px 0 12px;border:1px solid var(--om-line);border-radius:var(--om-radius);background:var(--om-surface);color:var(--om-muted);
  font:500 .875rem/1 var(--om-text);cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.om-search-btn:hover{border-color:var(--om-muted);color:var(--om-ink)}
.om-search-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.om-search-btn kbd{font:600 .75rem/1 var(--om-text);padding:3px 6px;border:1px solid var(--om-line);border-radius:var(--om-radius);color:var(--om-muted);background:var(--om-paper)}
.om-search{width:min(680px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 96px));margin:72px auto auto;padding:0;border:1px solid var(--om-line);border-radius:var(--om-radius-panel);
  background:var(--om-surface);color:var(--om-ink);box-shadow:var(--om-shadow);font-family:var(--om-text);overflow:hidden;display:none}
.om-search[open]{display:flex;flex-direction:column}
.om-search::backdrop{background:rgba(20,12,18,.45)}
.om-search__box{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--om-line)}
.om-search__box svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--om-muted);stroke-width:2}
.om-search__box input{flex:1;min-width:0;min-height:44px;border:0;background:transparent;color:var(--om-ink);font:400 1.125rem/1.2 var(--om-text);outline:none}
.om-search__box input::-webkit-search-cancel-button{display:none}
.om-search__close{appearance:none;border:1px solid var(--om-line);border-radius:var(--om-radius);background:var(--om-paper);color:var(--om-muted);font:600 .75rem/1 var(--om-text);padding:6px 8px;cursor:pointer}
.om-search__results{list-style:none;margin:0;padding:6px;overflow-y:auto}
.om-search__results:empty{display:none}
.om-search__results a{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:baseline;padding:10px 12px;border-radius:var(--om-radius-panel);text-decoration:none;color:inherit}
.om-search__results li[aria-selected="true"] a,.om-search__results a:hover{background:var(--om-accent-soft)}
.om-search__kind{grid-row:span 2;align-self:start;margin-top:3px;padding:0;border-radius:0;background:none;font:400 .8125rem/1.2 var(--om-text);color:var(--om-muted);white-space:nowrap}
.om-search__results b{font-weight:600}
.om-search__sub{grid-column:2;font-size:.875rem;color:var(--om-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.om-search__hint{margin:0;padding:10px 16px;border-top:1px solid var(--om-line);font-size:.8125rem;color:var(--om-muted)}
@media (max-width:1180px){.om-search-btn kbd{display:none}}
@media (max-width:760px){.om-search-btn{width:40px;padding:0;justify-content:center}.om-search-btn__text{display:none}.om-search{margin-top:16px}}
/* phones: the review line sits under the wordmark (review p1, b14) */
@media (max-width:480px){
  .om-shell__id{flex-direction:column;align-items:flex-start;gap:2px}
  .om-badge{position:relative;margin:0 0 0 36px;font-size:.8125rem}
  .om-badge::after{content:"";position:absolute;inset:-7px -8px}
}
.om-search__box input:focus,.om-search__box input:focus-visible{outline:none!important;box-shadow:none}

/* site footer (shared by every page; Daniel, 19 Oct 2026: the Reference footer): the site in a sentence, then three columns */
.om-footer{margin-top:56px;background:var(--om-ground);border-top:1px solid var(--om-line);font-family:var(--om-text)}
.om-footer__inner{width:min(1240px,calc(100% - 48px));margin-inline:auto;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,3fr);gap:28px 32px;padding:44px 0 32px;font-size:.9375rem;color:var(--om-ink-2)}
.om-footer__brand{display:inline-flex;align-items:center;gap:10px;font:600 1.25rem/1 var(--om-display);color:var(--om-ink)}
.om-footer__brand svg{width:28px;height:28px;flex:none}
.om-footer__brand svg rect{fill:var(--om-bar)}
.om-footer__brand svg path{fill:none;stroke:#FFFFFF;stroke-width:3.7;stroke-linecap:round}
.om-footer__about p{margin:12px 0 0;max-width:22em;color:var(--om-muted)}
.om-footer__cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px}
.om-footer__cols h2{margin:0 0 10px;font:600 .9375rem/1.3 var(--om-text);color:var(--om-ink)}
.om-footer__cols ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.om-footer a{color:var(--om-ink-2);text-decoration:none}
.om-footer a:hover{color:var(--om-ink);text-decoration:underline;text-underline-offset:3px}
.om-footer__meta a{text-decoration:underline;text-underline-offset:3px}  /* a link inside a sentence is underlined (launch review, browser-3) */
.om-footer__meta{grid-column:1/-1;margin:8px 0 0;padding-top:16px;border-top:1px solid var(--om-line);display:flex;flex-wrap:wrap;gap:6px 24px;color:var(--om-muted)}
.om-tool .om-footer__inner{width:min(1420px,calc(100% - 48px))}
@media (max-width:900px){.om-footer__inner{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .om-footer__inner,.om-tool .om-footer__inner{width:calc(100% - 32px)}
  .om-footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* segmented buttons (from <select data-om-seg>) */
.om-seg-source{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0}
/* 44 px buttons, as the site's other controls (review r4, b18) */
.om-seg{display:inline-flex;flex-wrap:wrap;padding:2px;border:1px solid var(--om-line);border-radius:var(--om-radius);background:var(--om-paper);gap:2px;font-family:var(--om-text)}
.om-seg button{appearance:none;border:0;background:transparent;min-height:44px;padding:8px 14px;border-radius:var(--om-radius);font:500 .9375rem/1.2 var(--om-text);color:var(--om-ink-2);cursor:pointer;white-space:normal;text-align:center;max-width:100%}
.om-seg button:hover:not(:disabled){color:var(--om-ink);background:var(--om-soft)}
.om-seg button[aria-pressed="true"]{background:var(--om-ink);color:var(--om-paper)}
.om-seg button:disabled{opacity:.5;cursor:default}
@media (max-width:640px){.om-seg{display:flex}.om-seg button{flex:1 1 auto;padding:0 10px}}

/* Folded record-keeping: inspector "Record details" and figure review stamps (shell.js) */
.om-record{margin-top:14px;border-top:1px solid var(--om-line);padding-top:10px}
.om-record>summary{cursor:pointer;font:600 .8125rem/1.3 var(--om-text);color:var(--om-ink-2);list-style:none;display:flex;align-items:center;gap:6px;min-height:32px}
.om-record>summary::-webkit-details-marker{display:none}
.om-record>summary::before{content:"+";font-weight:600;width:1em;text-align:center;color:var(--om-muted)}
.om-record[open]>summary::before{content:"\2212"}
.om-record__body{opacity:.9}
html:not(.om-stamps-shown) svg text.om-stamp{visibility:hidden}
main button.om-stamp-toggle{appearance:none;display:block;margin:6px 0 0 auto;border:0;border-radius:0;background:none;box-shadow:none;padding:6px 2px;min-height:32px;color:var(--om-muted);font:500 .78rem/1.2 var(--om-text);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
main button.om-stamp-toggle:hover{color:var(--om-accent);background:none}
.om-tool .inspector-field:has(>strong+p:empty:last-child){display:none}
.om-search__context{margin:0;padding:10px 16px;border-bottom:1px solid var(--om-line);background:var(--om-soft);font:400 .875rem/1.45 var(--om-text);color:var(--om-ink-2)}
.om-search__context b{color:var(--om-ink)}
/* Figure viewer (shell.js figureZoom) */
.om-figure__tools{display:inline-flex;align-items:center;gap:14px;flex-wrap:wrap}
.om-figure__enlarge{appearance:none;border:1px solid var(--om-line);background:var(--om-surface);color:var(--om-ink-2);border-radius:var(--om-radius);padding:6px 12px;min-height:36px;font:500 .875rem/1 var(--om-text);cursor:zoom-in}
.om-figure__enlarge:hover{border-color:var(--om-ink-2);color:var(--om-ink)}
.om-figure__frame[data-om-zoom]{cursor:zoom-in}
.om-zoom{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--om-paper);color:var(--om-ink)}
.om-zoom[open]{display:flex;flex-direction:column}
.om-zoom::backdrop{background:rgba(20,16,22,.6)}
.om-zoom__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--om-line);background:var(--om-surface)}
.om-zoom__title{margin:0;font:600 .9375rem/1.3 var(--om-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.om-zoom__tools{display:flex;align-items:center;gap:6px;flex:none}
.om-zoom__tools button,.om-zoom__open{appearance:none;display:inline-grid;place-items:center;min-width:40px;min-height:40px;padding:0 12px;border:1px solid var(--om-line);border-radius:var(--om-radius);background:var(--om-surface);color:var(--om-ink);font:600 .9rem/1 var(--om-text);text-decoration:none;cursor:pointer}
.om-zoom__tools button:hover,.om-zoom__open:hover{border-color:var(--om-accent)}
.om-zoom__tools button:disabled,.om-zoom__tools button[aria-disabled="true"]{opacity:.4;cursor:default}  /* the ends keep focus (review r6, b12) */
.om-zoom__close{font-size:1.4rem!important}
.om-zoom__stage{flex:1;overflow:auto;padding:16px;touch-action:pan-x pan-y pinch-zoom;outline:none}
.om-zoom__stage img{display:block;width:100%;max-width:none;height:auto;margin:auto;background:var(--om-surface);border-radius:4px}
.om-zoom__stage:not(.is-zoomed) img{max-height:calc(100dvh - 100px);object-fit:contain}
@media (pointer:coarse) and (orientation:landscape){.om-zoom__stage:not(.is-zoomed) img{max-height:none}}  /* Fit fills the width (review r6, b10) */
.om-zoom__stage.is-zoomed{cursor:grab}.om-zoom__stage.is-dragging{cursor:grabbing}
@media (max-width:600px){.om-zoom__open{display:none}.om-zoom__bar{padding:8px 10px}}
.om-search__context a{color:var(--om-ink);font-weight:600;text-underline-offset:3px}

/* archive: the first published figure library, folded */
.om-archive-lib>details>summary{cursor:pointer;font:600 clamp(1.4rem,1.1rem + 1vw,1.75rem)/1.15 var(--om-display);color:var(--om-ink);list-style:none;display:flex;justify-content:space-between;gap:16px}
.om-archive-lib>details>summary::-webkit-details-marker{display:none}
.om-archive-lib>details>summary::after{content:"Show";font:600 .875rem/1 var(--om-text);color:var(--om-accent)}
.om-archive-lib>details[open]>summary::after{content:"Hide"}

/* a tool page's own theme button stays in the page for its script, out of sight: the site is light only */
.om-shell__tools .om-theme-own{display:none!important}
/* review r5: the search dialog (b08): a fixed kind column, so every title starts on one line; placeholders in the muted
   token; on phones a row's second line wraps to two lines. The empty state's link (b06). The notes fold's toggle is a
   32 px target where it remains (b09). */
.om-search__results a{grid-template-columns:5.75rem 1fr}  /* the longest label, "Inside the body", is 84 px at 13 px */
input::placeholder{color:var(--om-muted);opacity:1}
.om-search__hint a{color:var(--om-ink);text-underline-offset:3px}
.om-clamp-toggle{min-height:32px}
@media (max-width:760px){.om-search__sub{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}
