/* Navigation remains a real link (new tabs, downloads and permissions unchanged).
   Only its screen presentation changes. Existing module cards retain their layout. */
@media screen {
  body a[href]:not(.module-card):not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 15px;
    margin-block: 3px;
    border: 1px solid #0f766e !important;
    border-radius: 10px !important;
    background: #0f766e !important;
    color: #fff !important;
    text-decoration: none !important;
    font-family: inherit;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.65;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0 2px 5px #0f3d661a;
  }
  body a[href]:not(.module-card):hover {
    background: #115e59 !important;
    border-color: #115e59 !important;
  }
  body a[href]:focus-visible {
    outline: 3px solid #f59e0b !important;
    outline-offset: 3px;
  }
  body a[href]:not(.module-card):active { box-shadow: none; }
  .header-actions { flex-wrap: wrap; }
  @media (max-width: 600px) {
    body a[href]:not(.module-card) { padding-inline: 12px; }
    .header-actions { min-width: 0; }
  }
}
