/* PalQum - small design fixes added 13 Nov 2026.
   Loaded after the main stylesheet. Remove this file's <link> tag from the pages to undo everything here. */

/* 1. Arabic: never add space between letters (it breaks the joined script) */
html[lang="ar"] *, [dir="rtl"] * { letter-spacing: 0 !important; }

/* 2-3: phones only */
@media (max-width: 767px) {
  /* 2. smallest text sizes raised (10-11px -> 12px, 12px -> 13px) */
  .text-\[10px\], .text-\[11px\] { font-size: 12px !important; }
  .text-xs { font-size: 13px !important; }
  /* form fields at 16px so iPhones do not zoom in when a field is tapped */
  select, textarea, input { font-size: 16px !important; }

  /* 3. finger-sized buttons */
  button.w-\[36px\].h-\[36px\] { width: 44px !important; height: 44px !important; }
  button.p-2\.5.rounded-full { padding: 14px !important; }
  .text-xs.py-2.rounded-full { min-height: 44px; }
  /* text links: a larger invisible touch area, the look stays the same */
  button.link-draw, a.link-draw, footer a.group { position: relative; }
  button.link-draw::before, a.link-draw::before, footer a.group::before { content: ""; position: absolute; inset: -10px -6px; }
}
/* top bar buttons (theme, language, menu) - not on very narrow 320px phones, where there is no room */
@media (min-width: 360px) and (max-width: 767px) {
  button.w-9.h-9 { width: 44px !important; height: 44px !important; }
  button.md\:hidden.p-2 { padding: 12px !important; }
  button.text-\[10px\].rounded-full { min-height: 36px; min-width: 42px; padding-inline: 10px !important; }
}

/* 4. phones: bigger product screenshots in the card at the top of the home page */
@media (max-width: 639px) {
  .aspect-\[16\/10\].w-\[44\%\] { width: 64% !important; }
  .aspect-\[16\/10\].w-\[33\%\] { width: 50% !important; }
  .aspect-\[16\/10\].-me-\[6\%\] { margin-inline-end: -24% !important; }
  .aspect-\[16\/10\].-ms-\[6\%\] { margin-inline-start: -24% !important; }
}

/* 5. No page jump while the headline font loads (added 14 Nov 2026).
   Until "Instrument Serif" has arrived, the browser shows a system font shrunk to the same width,
   so lines break in the same places and nothing moves when the real font swaps in. */
@font-face { font-family: "IS Fallback G"; font-style: normal; src: local("Georgia"); size-adjust: 76.7%; ascent-override: 129.1%; descent-override: 40.4%; line-gap-override: 0%; }
@font-face { font-family: "IS Fallback G"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 79.5%; ascent-override: 124.5%; descent-override: 39%; line-gap-override: 0%; }
@font-face { font-family: "IS Fallback T"; font-style: normal; src: local("Times New Roman"), local("TimesNewRomanPSMT"); size-adjust: 84%; ascent-override: 117.9%; descent-override: 36.9%; line-gap-override: 0%; }
@font-face { font-family: "IS Fallback T"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"); size-adjust: 88.5%; ascent-override: 111.9%; descent-override: 35%; line-gap-override: 0%; }
@font-face { font-family: "IS Fallback D"; src: local("DejaVu Serif"); size-adjust: 66.3%; ascent-override: 149.3%; descent-override: 46.8%; line-gap-override: 0%; }
:root, :host { --font-display: "Instrument Serif", "IS Fallback G", "IS Fallback T", "IS Fallback D", Georgia, "Times New Roman", serif; }

/* 6. Inner pages (notes, legal): while the page content loads, keep the footer below the screen
   instead of letting it flash into view and jump away again (added 14 Nov 2026). */
main { min-height: 100vh; }
