/* ===== TIRami — Additional CSS ===== */

/* Stop iOS Safari auto-inflating text so mobile matches desktop */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Safety: remove any gap the theme adds above page content */
.wp-site-blocks > main { margin-top: 0 !important; }

/* Tagline: one line; theme locks its size with !important so we match it */
.wp-block-site-tagline {
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

/* Vertically centre the nav in the navbar — the header has uneven top/bottom
   padding (top was reduced to seat the logo), which pushed the nav up.
   13px ≈ that padding difference; desktop only so the mobile menu isn't moved. */
@media (min-width: 601px) {
  header .wp-block-navigation { margin-top: 7px; }
}

/* Mobile: smaller logo + tagline so the header isn't tall */
@media (max-width: 600px) {
  .wp-block-site-logo { width: 140px !important; }
  .wp-block-site-logo img.custom-logo { width: 100% !important; height: auto !important; }
  .wp-block-site-tagline { font-size: 10px !important; }
}

/* Nav links: clean by default, underline on hover/focus (beats the global no-underline style) */
.wp-block-navigation a:not(.wp-element-button) { cursor: pointer; text-decoration: none; }
.wp-block-navigation a:not(.wp-element-button):hover,
.wp-block-navigation a:not(.wp-element-button):focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* In-content links: underlined by default, thicker on hover/focus */
.entry-content a:not(.wp-element-button) {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.entry-content a:not(.wp-element-button):hover,
.entry-content a:not(.wp-element-button):focus-visible {
  text-decoration-thickness: 2px;
}

/* Buttons: pointer cursor, subtle dim on hover/focus, never underlined */
a.wp-element-button.wp-block-button__link { cursor: pointer; }
.wp-element-button:hover,
.wp-element-button:focus-visible { text-decoration: none; opacity: 0.9; }

/* Keyboard focus ring for accessibility */
a:focus-visible,
.wp-element-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }