/* GENERATED by science/build-sci.py from science/film.css — edit that, not this. */
/* The Bone Class · Osteoporosis in numbers — the film's styles (site/film.css, used by the front page and /osteoporosis).
   The film is a dark stage like the science page's x-ray panel. Inside it: a canvas (honeycomb, map, the 100 people), a
   picture area (.vis) for the diagrams, and the words (.txt). On phones the picture sits over the words; on a wide stage
   the picture is on the left and the words on the right (container query on the stage's own shape).
   Every rule here starts with .film, so it can't touch the rest of a page.
   Build 32: This one again / The next one beside the big play button, Skip to (a panel of the six chapters) top left.
   Build 45: those three round buttons moved off the picture (under a tall stage, in a wide stage's top bar); a short, wide stage
   (a phone on its side) gets its own sizes for the words and a two-column Skip to panel. */
/* ---------- the stage ---------- */
.film{--ink2:#eef3f1;--soft:#c9d4d0;--quiet:#a9b8b3;--mint:#8fd3bd;--coral:#f0a37e;
  position:relative;container:film/size;overflow:hidden;margin:4px -20px 0;aspect-ratio:4/5;max-height:88svh;min-height:min(420px,88svh);
  background:#0b1517;color:var(--ink2);border-radius:0;-webkit-user-select:none;user-select:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;outline:none}   /* min-height never beats the 88svh cap, so a phone on its side keeps the whole film on screen */
@supports not (height:1svh){.film{max-height:88vh;min-height:min(420px,88vh)}}
.film:focus-visible{box-shadow:inset 0 0 0 3px var(--mint)}
.film .bg{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 90% at 32% 42%,#16292d 0%,#0d1a1d 45%,#070f11 100%)}
.film .grain{position:absolute;inset:0;pointer-events:none;opacity:.5}
.film .light{position:absolute;inset:0;pointer-events:none;background:#f6f1e9;clip-path:circle(0 at 50% 40%);visibility:hidden}
.film .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.film canvas.fx{position:absolute;left:0;top:0;width:100%;height:100%;display:block;pointer-events:none}

/* the picture area and the words: phones (a tall stage) */
.film .vis{position:absolute;left:0;right:0;top:0;height:56%;pointer-events:none}
.film .txt{position:absolute;left:0;right:0;bottom:0;height:44%;padding:0 22px}
.film .d{position:absolute;inset:0;opacity:0;visibility:hidden}
.film svg.d{width:100%;height:100%;overflow:visible}
.film #spine{top:9%;height:87%}
.film #femur{pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,#000 50%,transparent 58%);mask-image:linear-gradient(to bottom,#000 50%,transparent 58%)}
.film #hip{top:7%;height:90%}
.film #bars{top:9%;height:89%}
.film #scale{top:auto;bottom:4%;left:5%;width:90%;height:46%}

/* the words */
.film .kick,.film .beat,.film .cite{position:absolute;left:22px;right:22px;opacity:0;visibility:hidden;will-change:opacity,transform}
.film .kick{top:2px;font-size:14px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--mint)}
.film .beat{top:28px}
.film .cite{bottom:14px;font-size:14px;line-height:1.3;color:var(--quiet)}
.film .pre{font-size:18px;font-weight:700;color:var(--soft);line-height:1.2;text-wrap:balance}
.film .big{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:44px;line-height:1.02;letter-spacing:-.01em;color:#fff;font-variant-numeric:lining-nums tabular-nums;margin:2px 0 4px}
.film .big.w{font-size:36px}
.film .big.bad{color:var(--coral)}
.film .big.warn{color:#e3b54a}
.film .big.good{color:var(--mint)}
.film .head{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:27px;line-height:1.14;color:#fff;text-wrap:balance;letter-spacing:-.005em}
.film .line{font-size:19px;line-height:1.35;color:var(--soft);text-wrap:balance}
.film .line b{color:#fff}
.film .tags{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.film .tags li{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px 0 10px;border-radius:19px;background:rgba(240,163,126,.14);border:1px solid rgba(240,163,126,.5);font-size:17px;font-weight:700;color:#ffe6da}
.film .tags li::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--coral)}
.film .title{top:20px}
.film .title .t1{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:46px;line-height:1;letter-spacing:-.015em;color:#fff}
.film .title .t2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:46px;line-height:1.05;letter-spacing:-.015em;color:var(--mint)}
.film .start{display:none;margin-top:18px;align-items:center;gap:12px;min-height:60px;padding:0 24px 0 8px;border-radius:999px;border:0;background:#fff;color:#0e181a;font-size:20px;font-weight:700;cursor:pointer}
.film .start .disc{flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center}
.film .start .len{font-weight:400;color:#4b5a57;font-size:17px;margin-left:2px}
.film .start:hover{background:#8fd3bd}
.film .start:focus-visible{outline:3px solid var(--mint);outline-offset:3px}
.film.fresh .start{display:inline-flex}

/* labels drawn over the picture */
.film .lab{inset:auto 0 auto 0;top:max(24px,4.5%);text-align:center;font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
.film .legend{inset:auto 14px 8px auto;font-size:14px;color:var(--quiet);display:flex;align-items:center;gap:7px}
.film .legend i{width:7px;height:7px;border-radius:50%;background:#f3ead8;box-shadow:0 0 6px rgba(255,230,190,.8)}
.film .tl span{position:absolute;transform:translate(-50%,0);font-size:15px;font-weight:700;color:var(--soft);white-space:nowrap}
.film .tl span.y0{color:var(--mint);font-family:Fraunces,Georgia,serif;font-size:22px}
.film .nodes span{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;min-height:40px;padding:0 14px;border-radius:20px;font-size:16px;font-weight:700;white-space:nowrap;background:#12272b;border:1.5px solid rgba(143,211,189,.75);color:#dff5ec}
.film .nodes span.b{border-style:dashed}
.film canvas.lift{position:absolute;inset:0;width:100%;height:100%;display:block;
  -webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}

/* the end: the class, on the site's own ivory (build 32: no tagline, the page's own line sits under the film; a quiet Sources link) */
.film .fin{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;justify-content:safe center;gap:14px;padding:48px 22px 20px;text-align:center;color:var(--ink);opacity:0;visibility:hidden;cursor:auto}
.film .fin .logo{width:min(86%,440px);max-width:none;height:auto;margin:0 0 6px}
.film .fin .acts{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px;margin-top:6px}
.film .fin .btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 22px;border-radius:14px;font-size:19px;font-weight:700;text-decoration:none;white-space:nowrap}
.film .fin .btn.secondary{background:#fff;border:1px solid var(--edge);color:var(--ink)}
.film .fin .btn.secondary:hover{border-color:var(--green)}
.film .fin .btn.primary{background:var(--green);color:#fff}
.film .fin .btn.primary:hover{background:var(--green-dark)}
.film .fin .btn:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.film .fin .src{display:inline-block;padding:10px 4px;margin-top:2px;font-size:16px;font-weight:700;color:var(--green)}
.film .fin .src:focus-visible{outline:3px solid var(--green);outline-offset:2px}

/* controls (build 32): chapter bars along the top; Skip to (top left) and the pause pill (top right) while the film has started;
   This one again / Carry on / The next one while it is paused; and the Skip to panel over the stage */
.film .segs{position:absolute;top:10px;left:12px;right:12px;display:flex;gap:4px;z-index:3;cursor:pointer}
.film .segs i{position:relative;height:5px;border-radius:3px;background:rgba(255,255,255,.28)}   /* no overflow:hidden: the taller tap target below has to reach outside the bar */
.film .segs i::before{content:'';position:absolute;left:0;right:0;top:-12px;bottom:-12px}   /* a taller tap target */
.film .segs b{position:absolute;left:0;top:0;bottom:0;width:0;background:#fff;border-radius:3px}
.film .pp,.film .skipbtn{position:absolute;top:24px;z-index:4;display:none;transition:opacity .4s ease;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 12px;border-radius:22px;border:1px solid rgba(143,230,202,.5);background:rgba(7,15,17,.78);color:#e6f6ef;font-size:17px;font-weight:700;cursor:pointer;white-space:nowrap}
.film .pp{right:12px}
.film .skipbtn{left:12px;width:44px;padding:0;justify-content:center;border-radius:50%}   /* an icon on its own; its words show from 900 px wide, where the picture's label has room beside it */
.film .skipbtn #skiptxt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.film .pp:hover,.film .skipbtn:hover{background:rgba(7,15,17,.95)}
.film .pp:focus-visible,.film .skipbtn:focus-visible{outline:2px solid #8fe6ca;outline-offset:2px}
.film.started .pp,.film.started .skipbtn{display:inline-flex}
.film.playing.idle .pp,.film.playing.idle .skipbtn{opacity:0;pointer-events:none}   /* while it plays, the pills step out of the way after a few seconds; any tap or move brings them back */
.film.fresh .segs{opacity:0;visibility:hidden;pointer-events:none}   /* before the film has started the bars are out of the way, not just invisible: a tap near the top edge must not jump to a chapter */
/* This one again / Carry on / The next one, while paused (build 45: off the picture, so they never sit over the figures people pause
   to read). film.js moves the row (#fsteps): under the stage when the stage is tall (phones), into the top bar, left of the pause
   pill, when it is wide. .oncard (film.js): the end card is up, so they stay out of the way of its links; the pause pill still says Play */
.film .fsteps,.film + .fsteps{display:none;align-items:center;justify-content:center}
.film .fsteps button,.film + .fsteps button{flex:0 0 auto;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:#0e181a;display:flex;align-items:center;justify-content:center;cursor:pointer}
/* under a tall stage: on the page itself, so drawn like the end card's buttons. The row keeps its room from the first Play on (the
   buttons are only hidden while it plays), so the page below never jumps when the film pauses */
.film.started + .fsteps{display:flex;gap:16px;min-height:64px;margin-top:12px}
.film + .fsteps button{visibility:hidden;background:#fff;border:1px solid var(--edge);box-shadow:0 4px 14px rgba(31,27,23,.1)}
.film + .fsteps .bigplay{width:64px;height:64px}
.film + .fsteps .step{width:52px;height:52px}
.film + .fsteps button:hover{border-color:var(--green)}
.film + .fsteps button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.film.paused:not(.ended):not(.fresh):not(.oncard):not(.skipopen) + .fsteps button{visibility:visible}
/* in the top bar of a wide stage, pill-sized; --ppw (film.js) is the pause pill's width, so the row ends just left of it */
.film .fsteps{position:absolute;z-index:4;top:24px;right:calc(var(--ppw,92px) + 28px);gap:8px}
.film .fsteps button{width:44px;height:44px;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.film .fsteps .step svg{width:22px;height:22px}
.film .fsteps .bigplay svg{width:26px;height:26px}
.film .fsteps button:focus-visible{outline:3px solid var(--mint);outline-offset:3px}
.film.paused:not(.ended):not(.fresh):not(.oncard) .fsteps{display:flex}
.film.lit .segs i{background:rgba(31,27,23,.16)}
.film.lit .segs b{background:var(--green)}
.film.lit .pp,.film.lit .skipbtn{background:#fff;color:var(--ink);border-color:var(--edge)}
.film.lit .pp:hover,.film.lit .skipbtn:hover{border-color:var(--green)}
.film.lit .fsteps button{border:1px solid var(--edge);box-shadow:none}
.film.ended{cursor:auto}
.film.ivory{background:#f6f1e9}   /* the end card: the stage itself turns ivory and its dark layers go, so the rounded corners show no dark rim */
.film.ivory .bg,.film.ivory .grain{visibility:hidden}
/* the Skip to panel: the six chapters, centred; it scrolls inside the stage if it ever needs to */
.film .skip{position:absolute;inset:0;z-index:6;display:none;flex-direction:column;padding:12px 18px 10px;background:#0b1517;color:var(--ink2);overflow:auto;overscroll-behavior:contain;cursor:auto;text-align:center}
.film.skipopen .skip{display:flex}
.film .skip .top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}
.film .skip h3{margin:0;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:22px;line-height:1.1;color:#fff}
.film .skip .x{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:1px solid rgba(143,230,202,.5);background:transparent;color:#e6f6ef;display:flex;align-items:center;justify-content:center;cursor:pointer}
.film .skip .x:hover{background:rgba(255,255,255,.1)}
.film .skip .x:focus-visible,.film .skip .name:focus-visible,.film .skip .more:focus-visible{outline:2px solid #8fe6ca;outline-offset:2px}
.film .skip .body{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;justify-content:safe center;gap:2px;padding:6px 0}
.film .skip .name{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 22px;border:0;border-radius:25px;background:none;color:var(--mint);font-size:17px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;cursor:pointer;white-space:nowrap}
.film .skip .name:hover{background:rgba(255,255,255,.08);color:#fff}
.film .skip .name.now{color:#fff}
.film .skip .name.now::before{content:'';position:absolute;left:4px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--mint)}   /* the dot sits in the padding, so the words stay centred */
.film .skip .more{flex:0 0 auto;align-self:center;display:inline-block;padding:10px 6px;font-size:15px;font-weight:700;color:var(--mint)}
/* without JavaScript: the title and the words below */
html:not(.js) .film .beat:not(.title),html:not(.js) .film .kick,html:not(.js) .film .cite,html:not(.js) .film .fin{display:none}
html:not(.js) .film .title{opacity:1;visibility:visible}
html:not(.js) .film .start{display:none!important}
html:not(.js) .film .skipbtn,html:not(.js) .film .fsteps,html:not(.js) .film .skip{display:none!important}

/* ---------- a wide stage: picture left, words right ---------- */
@container film (min-aspect-ratio:1/1){
  .film #femur{-webkit-mask-image:linear-gradient(to right,#000 50%,transparent 58%);mask-image:linear-gradient(to right,#000 50%,transparent 58%)}
  .film .vis{top:0;bottom:0;left:0;right:auto;width:54%;height:auto}
  .film .txt{top:0;bottom:0;left:auto;right:0;width:46%;height:auto;padding:0}
  .film .kick,.film .beat,.film .cite{left:6px;right:8%}
  .film .kick{top:25%;font-size:max(14px,2.7cqmin)}
  .film .beat{top:calc(25% + max(28px,5.2cqmin))}
  .film .title{top:30%}
  .film .cite{bottom:7%;font-size:max(14px,2.5cqmin)}
  .film .pre{font-size:max(18px,3.6cqmin)}
  .film .big{font-size:min(max(44px,11cqmin),6.8cqw)}
  .film .big.w{font-size:min(max(36px,8.4cqmin),5.6cqw)}
  .film .head{font-size:min(max(27px,6.1cqmin),4.4cqw)}
  .film .line{font-size:max(19px,3.9cqmin)}
  .film .tags li{font-size:max(17px,3.2cqmin);min-height:max(38px,7cqmin);border-radius:99px}
  .film .title .t1,.film .title .t2{font-size:min(max(46px,11.5cqmin),6cqw)}
  .film .lab{font-size:max(15px,2.6cqmin)}
  .film .legend{font-size:max(14px,2.4cqmin)}
  .film .skip{padding:16px 28px 14px}
  .film .skip h3{font-size:26px}
  .film .skip .name{font-size:max(17px,3.4cqmin);min-height:max(50px,9cqmin)}
  .film .tl span{font-size:max(15px,2.9cqmin)}
  .film .tl span.y0{font-size:max(22px,4.4cqmin)}
  .film .nodes span{font-size:max(16px,3cqmin);min-height:max(40px,7.4cqmin);padding:0 max(14px,2.6cqmin)}
  .film .fin{padding:56px 40px 36px;gap:16px}
  .film .fin .logo{width:min(60%,520px)}
  .film .fin .tag{font-size:max(23px,5cqmin);max-width:none}
  .film .fin .acts{flex-direction:row;justify-content:center;max-width:none;width:auto}
  .film .fin .btn{min-height:max(52px,9.6cqmin);font-size:max(19px,3.5cqmin)}
}
@container film (min-aspect-ratio:1/1) and (min-width:900px){
  .film .skipbtn{width:auto;padding:0 16px 0 12px;border-radius:22px}
  .film .skipbtn #skiptxt{position:static;width:auto;height:auto;overflow:visible;clip:auto}
}
/* a short, wide stage (a phone on its side, a laptop zoomed right in): the end card scales down so its three buttons stay on screen */
@container film (min-aspect-ratio:1/1) and (max-height:440px){
  .film .fin{padding:22px 32px 12px;gap:10px}
  .film .fin .logo{width:min(60%,520px,90cqh);margin:0}
  .film .fin .acts{gap:8px}
  .film .fin .btn{min-height:46px;font-size:17px;padding:0 18px}
  .film .fin .src{padding:6px 4px;margin-top:0;font-size:15px}
  /* build 45: the words start below the top bar (where the paused buttons sit) and come down a size with the stage's height, so the
     longest lines and the spine's three tags end above the source line */
  .film .kick,.film .beat,.film .cite{right:12px}
  .film .kick{top:max(25%,74px)}
  .film .beat{top:calc(max(25%,74px) + 26px)}
  .film .title{top:30%}
  .film .cite{bottom:max(10px,4%)}
  .film .pre{font-size:max(15px,min(18px,5.6cqh))}
  .film .big{font-size:min(44px,6.8cqw,max(34px,13cqh))}
  .film .big.w{font-size:min(36px,5.6cqw,max(28px,10.6cqh))}
  .film .head{font-size:min(27px,4.4cqw,max(21px,8cqh))}
  .film .line{font-size:max(16px,min(19px,6cqh))}
  .film .tags{gap:6px;margin-top:8px}
  .film .tags li{font-size:min(17px,max(13px,2.35cqw));min-height:max(30px,min(38px,12cqh));padding:0 12px 0 9px;gap:7px}   /* two rows, not three */
  /* Skip to: the six chapters in two columns, so the panel fits without scrolling */
  .film .skip{padding:10px 24px 8px}
  .film .skip .body{display:grid;grid-template-rows:repeat(3,auto);grid-auto-flow:column;justify-content:center;align-content:center;gap:2px 24px;padding:0}
  .film .skip .name{min-height:44px}
  .film .skip .more{padding:8px 6px}
}
/* build 45: a phone held sideways with a narrow picture (an iPhone SE): the picture's label comes down a size, so it clears Skip to */
@container film (min-aspect-ratio:1/1) and (max-width:610px){
  .film .lab{font-size:13px}
}
/* a tall stage with more room (large phones): the pause pill is an icon only, so the label between the two pills has room */
@container film (max-aspect-ratio:1/1){
  .film .pp{width:44px;padding:0;justify-content:center;border-radius:50%}
  .film .pp #ppt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .film.ended .pp{width:auto;padding:0 16px 0 12px;border-radius:22px}
  .film.ended .pp #ppt{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .film .fin{padding-top:72px}
  .film .tags{gap:6px;margin-top:10px}
  .film .tags li{font-size:15px;min-height:32px;padding:0 12px 0 9px}
  .film .nodes span{font-size:15px;min-height:36px;padding:0 11px}
}
@container film (max-aspect-ratio:1/1) and (min-width:400px){
  .film .big{font-size:48px}
  .film .head{font-size:28px}
}
@container film (max-aspect-ratio:1/1) and (max-width:340px){
  .film .txt{padding:0 18px}
  .film .lab{font-size:13px;left:52px;right:52px}
  .film .kick,.film .beat,.film .cite{left:18px;right:18px}
  .film .title .t1,.film .title .t2{font-size:38px}
  .film .head{font-size:22px}
  .film .big{font-size:36px}
  .film .big.w{font-size:30px}
  .film .line{font-size:17px}
  .film .pre{font-size:16px}
  .film .tags{gap:5px;margin-top:8px}
  .film .tags li{font-size:13px;min-height:28px;padding:0 11px 0 8px;gap:7px}   /* tighter, so the spine chapter's three tags clear the source line on a zoomed-in iPhone */
  .film .start{min-height:54px;font-size:18px;margin-top:12px}
  .film .start .disc{width:40px;height:40px}
  .film .start .len{font-size:15px}
  .film .fin{gap:8px;padding-bottom:16px}
  .film .fin .logo{width:70%}
  .film .fin .tag{font-size:19px}
  .film .fin .acts{gap:8px}
  .film .fin .btn{min-height:44px;font-size:17px}
}
@container film (max-aspect-ratio:1/1) and (max-height:470px){
  .film .skip .name{min-height:46px}
  .film .skip .body{padding:0}
  .film .beat{top:24px}
  .film .cite{bottom:10px}   /* a little more room between the spine chapter's tags and its source line */
  .film .big{font-size:40px}
  .film .big.w{font-size:33px}
  .film .head{font-size:25px}
  .film .line{font-size:18px}
  .film .title .t1,.film .title .t2{font-size:42px}
  .film .fin{gap:10px;padding-top:40px}
  .film .fin .tag{font-size:21px}
  .film .fin .btn{min-height:48px;font-size:18px}
}
@media (min-width:720px){
  .film{margin:14px 0 0;aspect-ratio:16/9;min-height:0;border-radius:20px}
}
@media (min-width:720px) and (max-width:1023px){
  .film{aspect-ratio:4/3}
}
@media (prefers-reduced-motion:reduce){
  .film .kick,.film .beat,.film .cite{will-change:auto}
}
