/* OpenMechanism home page. Base, tokens and shared components: /shell/shell.css (the Prussian bar, --om-bar, --om-ground and
   --om-mark) and /shell/site.css (the panel sheet, .om-panels). Sections, in order (Daniel's round 3 and 4 picks, 20 Oct
   2026, claude.ai/artifact/5zG2UCfKidb4G1iq76fGuP): the opening; atorvastatin's panel sheet with its description, and
   "Reading the drawings" under it as its legend; organ to molecule, on white; one index (commonly taught, the library, the
   side effects and interactions, recently added); the film, smaller; teaching in one line; the sources note. Serif headings,
   sans everything you operate; crimson only for the medicine. Light only. */
.h-wrap{width:min(1240px,calc(100% - 48px));margin-inline:auto}
.om-home main h2{font:600 clamp(1.6rem,1.3rem + 1vw,2rem)/1.15 var(--om-display);letter-spacing:-.01em;margin:0;text-wrap:balance}
.om-home main h3{margin:0}
.om-home main p{margin:0}
.om-home main section{padding:60px 0}
.h-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:26px}
.h-muted{color:var(--om-muted)}
.om-home main a{color:inherit;text-underline-offset:3px}

/* opening: the headline beside the search */
.om-home main .h-hero{padding:56px 0 36px}
.h-hero__grid{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:56px;align-items:end}
.h-hero h1{font:600 clamp(2.4rem,1.6rem + 2.6vw,3.75rem)/1.04 var(--om-display);letter-spacing:-.015em;margin:0;text-wrap:balance}
.h-lede{font-size:1.25rem;line-height:1.5;color:var(--om-ink-2);max-width:36em}
.h-search{appearance:none;width:100%;display:flex;align-items:stretch;gap:8px;margin-top:24px;padding:0;border:0;background:none;cursor:text;text-align:left;font:inherit}
.h-search__text{flex:1;min-width:0;min-height:58px;display:flex;align-items:center;padding:0 18px;border:2px solid var(--om-ink);border-radius:var(--om-radius);background:#FFFFFF;
  color:var(--om-muted);font-size:1.1875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h-search__go{flex:none;display:flex;align-items:center;padding:0 26px;border-radius:var(--om-radius);background:var(--om-bar);color:#FFFFFF;font:600 1.0625rem/1 var(--om-text)}
.h-search:hover .h-search__text{color:var(--om-ink-2)}
.h-search:focus-visible{outline:none}
.h-search:focus-visible .h-search__text{outline:3px solid var(--om-bar);outline-offset:2px}
.h-try{margin-top:16px!important;color:var(--om-muted)}
.h-all{margin-top:18px!important;font-weight:600}

/* the sheet: a medicine page's panels, three to a row, under its name, description and byline (tools/build_hubs.py
   home_sample) */
.om-home main .h-sheet{padding:8px 0 56px}
.h-sheet__head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 48px;align-items:start;margin-bottom:18px}
.h-sheet__head h2 a{text-decoration-thickness:1px}
.h-sheet__tag{margin-top:10px!important;font:400 1.1875rem/1.55 var(--om-read)}
.h-byline{margin-top:10px!important;font-size:.9375rem;color:var(--om-muted)}
.h-sheet__open{white-space:nowrap}
.h-sheet .om-panels{margin:0}

/* its legend: the marks the sheet uses, drawn by the drawing engine (tools/figure_panels.py key), then the enzyme shapes */
.h-legend{margin-top:44px}
.h-legend .h-head{margin-bottom:6px}
.h-key{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 40px}
.h-key>div{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid var(--om-line)}
.h-key dt{margin:0;display:flex;align-items:center;min-height:56px}
.h-key dt img{display:block;width:132px;height:auto}
.h-key__zone{font:500 .9375rem/1.3 var(--om-text);color:var(--om-muted)}
.h-key dd{margin:0;color:var(--om-ink-2);font-size:.9375rem;line-height:1.45}
.h-key__num{color:var(--om-mark);font:800 1.375rem/1 var(--om-text);letter-spacing:.14em}
.h-key__up{color:#1F6F54;font:700 1rem/1.25 var(--om-text)}
.h-key__q{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;margin-right:6px;border-radius:50%;background:#D9A21B;color:#24101A;font:800 .75rem/1 var(--om-text)}
.h-key__qw{font:500 .9375rem/1.2 var(--om-text);color:var(--om-ink-2)}
.h-legend__more{margin-top:22px!important;color:var(--om-ink-2);max-width:60em}
.h-shapes{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
.h-shapes li{display:grid;justify-items:center;gap:6px;padding:10px 4px;font-size:.875rem;text-align:center;color:var(--om-ink-2)}
.h-shapes img{width:56px;height:56px}

/* organ to molecule, on white with no box around its drawing (round 3) */
.om-home main .h-deeper{border-top:1px solid var(--om-line)}
.h-zoom{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:48px;align-items:center}
.h-zoom p{margin-top:14px!important;color:var(--om-ink-2)}
.h-range{margin-top:28px}
.h-range input{width:100%;accent-color:var(--om-bar)}
.h-range__ticks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));font-size:.9375rem;font-weight:600;margin-top:6px;color:var(--om-muted)}
.h-range__ticks span:nth-child(2){text-align:center;transform:translateX(-17%)}
.h-range__ticks span:nth-child(3){text-align:center;transform:translateX(17%)}
.h-range__ticks span:last-child{text-align:right}
.h-range__ticks [data-on]{color:var(--om-ink)}
.h-stage{position:relative;aspect-ratio:16/9;overflow:hidden;background:#FFFFFF}
.h-stage__layer{position:absolute;inset:0;opacity:0;transition:opacity .35s}
.h-stage__layer[data-on]{opacity:1}
.h-stage img{display:block;width:100%;height:100%;object-fit:contain}
.h-cap{margin-top:10px!important;font-size:.9375rem;color:var(--om-muted)}

/* one index: commonly taught as a row of thumbnails (no edge, round 3), the library's columns, the side effects and
   interactions, and recently added as one line */
.om-home main .h-library{border-top:1px solid var(--om-line)}
.h-letters{display:flex;flex-wrap:wrap;gap:2px;margin:0 0 32px;padding:0;list-style:none}
.h-letters a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;text-decoration:none;font:600 1rem/1 var(--om-text);color:var(--om-ink-2)}
.h-letters a:hover{background:var(--om-ground);color:var(--om-ink)}
.h-taught{margin-bottom:40px}
.h-taught h3,.h-xpl h3{font:600 1.0625rem/1.3 var(--om-text);padding-bottom:8px;border-bottom:2px solid var(--om-ink)}
.h-start__list{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}
.h-start__list a{display:grid;gap:4px;align-content:start;text-decoration:none}
.h-th{display:block;margin-bottom:6px;overflow:hidden;aspect-ratio:4/3;background:#FFFFFF}
.h-th img{display:block;width:100%;height:100%;object-fit:cover}
.h-start__list b{font-size:1.0625rem;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.h-start__list a>span:last-child{color:var(--om-muted);font-size:.875rem;line-height:1.35}
.h-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.h-cols h3{font:600 1.5rem/1.2 var(--om-display);display:flex;align-items:baseline;gap:10px}
.h-cols h3 small{font:400 .9375rem/1 var(--om-text);color:var(--om-muted)}
.h-cols ul{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:9px}
.h-cols li a{font-weight:600}
.h-cols .feat a{display:grid;gap:1px;text-decoration:none}
.h-cols .feat b{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.h-cols .feat span{font-weight:400;color:var(--om-muted);font-size:.9375rem;line-height:1.35}
.h-xpl{margin-top:44px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.h-xpl ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.h-recent{margin-top:36px!important;color:var(--om-ink-2)}

/* the film, smaller and on white, after the index (round 4): its muted loop in a 16:9 frame, the text beside it */
.om-home main .h-film{border-top:1px solid var(--om-line)}
.h-film__grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px;align-items:center}
.h-film__frame{position:relative;aspect-ratio:16/9;overflow:hidden;background:#071119}
.h-film__loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.h-film p{margin-top:12px!important;color:var(--om-ink-2)}
.h-film__watch{appearance:none;display:inline-flex;align-items:center;gap:12px;margin-top:20px;min-height:48px;padding:0 20px;border:1px solid var(--om-ink-2);border-radius:var(--om-radius);background:var(--om-paper);color:var(--om-ink);font:600 1rem/1 var(--om-text);cursor:pointer}
.h-film__watch::before{content:"";border-left:11px solid currentColor;border-top:7px solid transparent;border-bottom:7px solid transparent}
.h-film__play{appearance:none;position:absolute;left:50%;top:50%;z-index:2;width:80px;height:80px;margin:-40px 0 0 -40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);cursor:pointer;display:grid;place-items:center}
.h-film__play::before{content:"";margin-left:7px;border-left:24px solid #121014;border-top:15px solid transparent;border-bottom:15px solid transparent}
.h-film__frame :focus-visible{outline:3px solid #FFFFFF;outline-offset:3px}
dialog.film{width:min(1200px,calc(100vw - 32px));padding:0;border:0;background:#000;overflow:visible}
dialog.film::backdrop{background:rgba(5,10,16,.86)}
dialog.film video{display:block;width:100%;height:auto;max-height:calc(100vh - 80px)}
.film__close{appearance:none;position:absolute;top:-44px;right:0;width:40px;height:40px;border:0;border-radius:50%;background:#FFFFFF;color:#111;font:400 1.6rem/1 var(--om-text);cursor:pointer}

/* teaching in one line (round 4), and the sources note */
.om-home main .h-teach{padding:32px 0;border-top:1px solid var(--om-line)}
.h-teach p{max-width:none;color:var(--om-ink-2)}
.h-teach b{color:var(--om-ink)}
.om-home main .h-note{padding:40px 0;border-top:1px solid var(--om-line)}
.h-note p{max-width:60em;color:var(--om-ink-2)}
.h-note p+p{margin-top:10px!important;font-size:.9375rem}
.om-home .om-footer{margin-top:0}

@media (max-width:1050px){
  .h-hero__grid,.h-zoom,.h-film__grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .h-key{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h-shapes{grid-template-columns:repeat(4,minmax(0,1fr))}
  .h-start__list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .h-cols,.h-xpl{grid-template-columns:minmax(0,1fr);gap:32px}
}
@media (max-width:640px){
  .h-wrap{width:calc(100% - 32px)}
  .om-home main section{padding:44px 0}
  .h-search{flex-direction:column}
  .h-search__text{min-height:54px}
  .h-search__go{min-height:50px;justify-content:center}
  .h-sheet__head{grid-template-columns:minmax(0,1fr)}
  .h-key{grid-template-columns:minmax(0,1fr)}
  .h-key>div{grid-template-columns:100px minmax(0,1fr)}
  .h-key dt img{width:100px}
  .h-start__list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
  .h-film__play{width:64px;height:64px;margin:-32px 0 0 -32px}
  .h-film__play::before{border-left-width:20px;border-top-width:12px;border-bottom-width:12px;margin-left:6px}
  .h-shapes{gap:8px}
  .h-shapes img{width:48px;height:48px}
}
@media (prefers-reduced-motion:reduce){.h-stage__layer{transition:none}}
