/* p5-21 POLICIES & HANDBOOK --------------------------------------------------
   One line per document: title, Rev, Adopted, EN / ES. Glove floors: no text
   under 17 px, 52 px taps. Desk (>= 900 px, R-1009-49): two columns. No
   generated text in CSS - every word is a string key. */
.lib-page { padding: 12px 16px 96px; }
.lib-note { font-size: 18px; margin: 10px 0; }
.lib-note[hidden] { display: none; }
.lib-list { list-style: none; margin: 12px 0; padding: 0; }
.lib-row { border-radius: 14px; border: 2px solid rgba(127,127,127,.55); padding: 12px 16px; margin: 0 0 12px; }
.lib-row p { margin: 0; }
.lib-row .lib-t { font-size: 20px; font-weight: 800; }
.lib-row .lib-m { font-size: 17px; margin-top: 6px; opacity: .9; }
.lib-btns { display: flex; gap: 12px; margin-top: 10px; }
.lib-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 88px;
  padding: 0 16px; font-size: 18px; font-weight: 700; border-radius: 12px; border: 2px solid currentColor;
  color: inherit; text-decoration: none; }
.lib-btn.lib-mine { border-width: 4px; }
@media (min-width: 900px) {
  body.lib-page { max-width: 1100px; margin: 0 auto; }
  .lib-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .lib-row { margin: 0; }
}
/* end p5-21 */
/* merge rel-phase4-1009: one heading per group (Handbook, Safety Program Manual,
   Policies, Safety Data Sheets, Equipment Manuals) and the p5-23 share line */
.lib-group { list-style: none; margin: 18px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #57A9FE; }
.lib-share { margin: 12px 0; font-size: 17px; color: #A3ACB9; }
/* P5-51 D-1010-25c (JD 2026-10-11 01:25: "the buttons need a little cleaned
   up and the structure looks kind of janky"). Fixed sections (Policies ·
   Handbook · Safety Program Manual · Safety Data Sheets · Equipment Manuals ·
   Maps - bts/library_shelf.GROUPS; only sections with files come back).
   ONE button: same size, same 2 px edge on every button; his language's
   button is marked by a fill ring INSIDE the edge, so it never grows. A
   heading spans the whole row on a desk (it was one grid cell, rows shifted
   under it); every card's buttons sit at its foot, one line. */
.lib-btn, .lib-btn.lib-mine { box-sizing: border-box; width: 88px; min-width: 88px; height: 52px; min-height: 52px;
  padding: 0; border-width: 2px; }
.lib-btn.lib-mine { box-shadow: inset 0 0 0 3px currentColor; }
.lib-row { display: flex; flex-direction: column; }
.lib-row .lib-btns { margin-top: auto; padding-top: 10px; }
.lib-list > .lib-group:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .lib-list .lib-group { grid-column: 1 / -1; margin: 18px 0 0; }
  .lib-list > .lib-group:first-child { margin-top: 0; }
}
/* p5-41 (R-1009-119): the in-app document viewer - the frame fills the page
   under the Back + Home strip; the bottom bar keeps its own room (bb-on). */
.lib-view .lv-frame { display: block; width: 100%; height: calc(100vh - 190px); height: calc(100dvh - 190px);
  min-height: 360px; border: 0; border-radius: 10px; background: #fff; }
.lib-view .lv-frame[hidden] { display: none; }
