/* Shared behaviour styles for all pages */
html { scroll-behavior: smooth; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #F5B82E; outline-offset: 2px;
}
/* Book tabs (Arabic Letters page) */
.tab { background: #FFFFFF; color: #1C1917; border-color: #C9D6D6; }
.tab[aria-selected="true"] { background: #0E4F57; color: #FFFFFF; border-color: #0E4F57; }
[hidden] { display: none !important; }
/* Toast for "coming soon" and form messages */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: min(92vw, 520px); background: #1F2326; color: #FFFFFF;
  padding: 14px 20px; border-radius: 12px; font: 600 15px/1.6 'IBM Plex Sans Arabic', system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25); z-index: 1000; text-align: center;
}
.form-status { font: 600 15px/1.6 'IBM Plex Sans Arabic', system-ui, sans-serif; margin: 0; }
.form-status.ok { color: #0E7C66; }
.form-status.err { color: #B42318; }
/* Phones: stack multi-column grids and soften headline sizes */
@media (max-width: 720px) {
  [style*="grid-template-columns: repeat(3"], [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
  h1 { font-size: 38px !important; line-height: 1.15 !important; }
  h2 { font-size: 26px !important; }
  [style*="padding: 36px"], [style*="padding: 40px 36px"] { padding: 24px !important; }
}
