/* Public actions are lettering, without standalone frames or seals.
 * The shared path is retained for existing homepage and Folio consumers.
 * Native controls, event handlers and registered source-plane sizes stay intact.
 * Original pharmacy source assets remain archived with their provenance. */
html .book-controls button,
html .book-controls select,
html .book-options > summary,
html .folio3dNav button,
html #shareSpatialPress,
html .book-inscription-close,
html #folio3dReceipt button,
html #generateBtn {
  box-sizing:border-box;
  appearance:none;
  border:0;
  border-image:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--paper,#f4ecdc);
  min-width:44px;
  min-height:48px;
  padding:8px 10px;
  font-family:var(--sp-type-metadata,Georgia,serif);
  font-weight:600;
  line-height:1.25;
  letter-spacing:.015em;
  text-shadow:none;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.22em;
  cursor:pointer;
  touch-action:manipulation;
  filter:none;
  transition:text-decoration-thickness 140ms ease;
}
/* The form and receipt are on paper. Keep their approved source-plane geometry. */
html #generateBtn {min-height:80px;height:auto;padding:3px 12px;font-size:31px;color:#23223c;}
html #folio3dReceipt button {min-height:64px;font-size:25px;line-height:1.2;padding:3px 9px;color:#23223c;}
html .book-controls button {font-size:16px;}
html .book-controls select {appearance:auto;font:inherit;max-width:100%;}
html .book-controls select option {background:#00243f;color:#f4ecdc;}
html .folio3dNav button {padding:8px 4px;}
html .book-controls button[data-book-prev],
html .book-controls button[data-book-next] {
  width:48px;height:48px;min-width:48px;min-height:48px;flex:0 0 48px;
  padding:0;font-size:23px;line-height:1;letter-spacing:0;
}
/* Follow the original footer's ink, including its accessible reading dialog. */
html #shareSpatialPress {font:inherit!important;padding:8px 0!important;color:inherit!important;
  background:transparent!important;text-align:inherit!important;justify-content:inherit!important;
  text-transform:inherit!important;letter-spacing:inherit!important;}
html .book-inscription-close {color:inherit;font:inherit;}
html .book-controls button[aria-pressed=true],
html .folio3dNav button[aria-pressed=true] {background:transparent;color:var(--paper,#f4ecdc);text-decoration-thickness:3px;}
html .book-controls button:focus-visible,
html .book-controls select:focus-visible,
html .book-options > summary:focus-visible,
html .folio3dNav button:focus-visible,
html #shareSpatialPress:focus-visible,
html .book-inscription-close:focus-visible,
html #folio3dReceipt button:focus-visible,
html #generateBtn:focus-visible {outline:3px solid currentColor;outline-offset:3px;box-shadow:none;}
@media(hover:hover) {
  html .book-controls button:enabled:hover,
  html .book-options > summary:hover,
  html .folio3dNav button:enabled:hover,
  html #shareSpatialPress:enabled:hover,
  html .book-inscription-close:enabled:hover,
  html #folio3dReceipt button:enabled:hover,
  html #generateBtn:enabled:hover {text-decoration-thickness:3px;}
}
html .book-controls button:disabled,
html .folio3dNav button:disabled,
html #shareSpatialPress:disabled,
html #folio3dReceipt button:disabled,
html #generateBtn:disabled {opacity:.6;cursor:not-allowed;}
@media(max-width:360px) {
  html .folio3dNav {grid-template-columns:repeat(2,minmax(0,1fr));}
  html .folio3dNav button:last-child {grid-column:auto;}
}
@media(prefers-reduced-motion:reduce) {
  html .book-controls button,html .book-controls select,html .book-options > summary,
  html .folio3dNav button,html #shareSpatialPress,html .book-inscription-close,
  html #folio3dReceipt button,html #generateBtn {transition:none;}
}
@media(forced-colors:active) {
  html .book-controls button,html .book-controls select,html .book-options > summary,
  html .folio3dNav button,html #shareSpatialPress,html .book-inscription-close,
  html #folio3dReceipt button,html #generateBtn {
    color:ButtonText!important;text-shadow:none!important;
  }
  html .book-controls button:disabled,html .folio3dNav button:disabled,
  html #shareSpatialPress:disabled,html #folio3dReceipt button:disabled,
  html #generateBtn:disabled {color:GrayText!important;opacity:1;}
}
