/* Shared boxed navigation/actions. Screen-only: signed and printed records retain their layout. */
@media screen {
  :root { --action-ink:#17606b; --action-border:#82a4a9; --action-bg:#fff; --action-hover:#edf5f4; }
  :root body a:is(.portal-action,.action-link,.button,.btn,.text-link,.patient-forms-link,.staff-access-link)[href],
  :root #navigation a, :root #primary-nav a, footer nav a {
    box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-height:40px; max-width:100%; padding:8px 12px; margin:3px 5px 3px 0;
    border:1px solid var(--action-border); border-radius:6px;
    background:var(--action-bg); color:var(--action-ink);
    font-family:inherit; font-size:.875rem; font-weight:600; line-height:1.3;
    text-align:center; text-decoration:none; white-space:normal; overflow-wrap:anywhere;
    vertical-align:middle; box-shadow:none;
  }
  :root body a:is(.portal-action,.action-link,.button,.btn,.text-link,.patient-forms-link,.staff-access-link)[href]:hover,
  :root #navigation a:hover, :root #primary-nav a:hover, footer nav a:hover {
    background:var(--action-hover); color:var(--action-ink); border-color:var(--action-ink); text-decoration:none;
  }
  :root body a:is(.portal-action,.action-link,.button,.btn,.text-link,.patient-forms-link,.staff-access-link)[href]:focus-visible,
  :root #navigation a:focus-visible, :root #primary-nav a:focus-visible, footer nav a:focus-visible {
    outline:3px solid #b77918; outline-offset:3px;
  }
  a[aria-current="page"]:is(.portal-action,.action-link,.button,.btn),
  :root #navigation a[aria-current="page"],:root #primary-nav a[aria-current="page"] { border-width:2px; background:var(--action-hover); }
  .record-actions,.completion-actions,.identity-actions,.dialog-actions { align-items:center; gap:6px; }
  .specific-form-links { list-style:none; padding-left:0; }
  .specific-form-links a { margin-bottom:5px; }
  .hosted-bar a.portal-action { margin-block:0; }
  .packet-steps { gap:6px; }
}
@media screen and (pointer:coarse) {
  :root body a:is(.portal-action,.action-link,.button,.btn,.text-link,.patient-forms-link,.staff-access-link)[href],
  :root #navigation a, :root #primary-nav a, footer nav a { min-height:calc(44px / var(--portal-scale,1)); }
}

@media screen {
 #site-footer footer>div:last-child>p:first-child {display:flex;flex-wrap:wrap;gap:6px}
 #site-footer footer>div:last-child>p:first-child br{display:none}
 #site-footer footer>div:last-child>p:first-child a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid var(--action-border);border-radius:6px;padding:8px 12px;background:var(--action-bg);color:var(--action-ink);font-size:14px;line-height:1.3;font-weight:600;text-decoration:none}
 #site-footer footer>div:last-child>p:first-child a:hover{background:var(--action-hover)}
 #site-footer footer>div:last-child>p:first-child a:focus-visible{outline:3px solid #b77918;outline-offset:3px}
 #navigation a,#primary-nav a{font-size:12px;padding:7px 9px;margin:2px}
 .hero-actions{gap:6px}.hero-actions a{align-self:center}
}

@media screen{}

@media screen{:root #primary-nav a[href],:root #navigation a[href]{font-size:12px;padding:7px 9px;margin:2px}:root #primary-nav ul{gap:4px}}
