/* =========================================================
   Plauma wordmark — rounded, bold, lowercase (the chosen logo style).
   Shared by every page. The font file is subset to the letters of
   "plauma" only (fonts/fredoka-plauma.woff2, see fonts.css), so it's tiny.
   Colour follows the page: dark on light, light in dark mode, white
   in the footer.
   ========================================================= */
.logo .logo-word {
  font-family: "Fredoka", "Cairo", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--gray-900, #0f1117);
  direction: ltr;
  unicode-bidi: isolate; /* stays "plauma" inside Arabic pages */
}
/* Sign-in / sign-up / password pages use their own logo boxes; same wordmark, their colours. */
.brand-logo .logo-word,
.topbar-logo .logo-word {
  font-family: "Fredoka", "Cairo", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15em;
  letter-spacing: -0.01em;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}
.footer .logo .logo-word,
.footer-brand .logo .logo-word { color: #fff; }

/* =========================================================
   Phones: one header row that always fits the screen (every page).
   - the search box becomes a 🔍 button; tapping it opens the field
     full-width just under the header (the header keeps its height,
     so sticky bars below it stay in place);
   - smaller buttons; the account chip shows only the avatar;
   - messages and favourites leave the header (both are in the
     account menu and the nav bar), and on the smallest phones the
     dark-mode button too.
   ========================================================= */
@media (max-width: 600px) {
  .header .header-inner { padding: 0 12px; gap: 8px; }
  .header .header-actions { gap: 6px; margin-inline-start: auto; margin-right: 0; min-width: 0; }
  .header .header-actions .icon-btn,
  .header .dark-toggle,
  .header .mry-auth-icon,
  .header .mry-auth-avatar { width: 34px; height: 34px; font-size: 15px; flex-shrink: 0; }
  .header .mry-auth { gap: 6px; }
  .header .mry-auth-login { height: 34px; padding: 0 12px; font-size: 12px; }
  .header .user-chip { padding: 0; gap: 0; border: 0; background: none; }
  .header .user-chip .uname,
  .header .user-chip .caret { display: none; }

  .header #favBtn,
  .header #favHeaderBtn,
  .header #msgPopoverWrap,
  .header .mry-auth-icon[href$="#messages"] { display: none; }

  .header .search-wrap { flex: 0 0 34px; max-width: 34px; height: 34px; margin: 0; position: relative; }
  .header .search-wrap input { width: 34px; height: 34px; padding: 0; border-radius: 50%; color: transparent; cursor: pointer; }
  .header .search-wrap input::placeholder { color: transparent; }
  .header .search-wrap .search-icon { left: 50%; right: auto; transform: translate(-50%, -50%); pointer-events: none; font-size: 15px; }
  .header .search-wrap:focus-within { position: static; }
  .header .search-wrap:focus-within .search-icon { display: none; }
  .header .search-wrap:focus-within input {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); width: auto; height: 44px;
    padding: 0 18px; border-radius: 50px; color: var(--gray-900, #0f1117); cursor: text; z-index: 950;
    box-shadow: 0 8px 24px rgba(15, 17, 23, .18);
  }
  .header .search-wrap:focus-within input::placeholder { color: var(--gray-400, #8a91a6); }
}
@media (max-width: 400px) {
  .header .header-inner { padding: 0 10px; gap: 6px; }
  .header .header-actions,
  .header .mry-auth { gap: 5px; }
  .header .mry-auth-login { padding: 0 10px; font-size: 11.5px; }
  .header .logo .logo-word { font-size: 21px; }
}
@media (max-width: 359px) {
  .header .dark-toggle,
  .header #darkToggle { display: none; }
}
