@media (width < 450px) {
  .mobile-drawer { width: min(370px, calc(100% - 20px)); padding: 0; border-radius: 0 24px 24px 0; background: #fafbfc; }
  .mobile-drawer__head { flex-shrink: 0; padding: max(20px, env(safe-area-inset-top)) 20px 18px; background: #fff; border-color: #edf0f1; }
  .mobile-drawer__identity { display: grid; gap: 8px; }
  .mobile-drawer__identity small { color: #8a949a; font-size: 10px; line-height: 18px; }
  .mobile-drawer__close { width: 40px; height: 40px; background: #f8f9fa; border: 1px solid #eceff1; color: #62717b; }
  .mobile-drawer__tabs { flex-shrink: 0; margin: 16px 16px 0; padding: 5px; gap: 4px; border: 1px solid #e9edef; border-radius: 13px; background: #eff2f4; }
  .mobile-drawer__tab { min-height: 42px; padding: 8px 4px; background: transparent; border-radius: 9px; font-size: 11px; font-weight: 600; color: #7d8890; }
  .mobile-drawer__tab[aria-pressed="true"] { background: #fff; color: var(--color-primary); box-shadow: 0 2px 6px rgb(27 39 48 / 5%); }
  .mobile-drawer__content { flex: 1 1 auto; min-height: 0; padding: 20px 16px; scrollbar-width: thin; scrollbar-color: #dce1e5 transparent; }
  .mobile-drawer__content [hidden] { display: none; }
  .mobile-drawer__intro { margin-bottom: 16px; }
  .mobile-drawer__intro h2 { margin: 0 0 5px; font-size: 18px; font-weight: 900; line-height: 30px; }
  .mobile-drawer__intro p { margin: 0; color: #8c969d; font-size: 10px; line-height: 21px; }
  .mobile-drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .mobile-drawer__quick button { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 100px; padding: 14px; border: 1px solid #f0ded3; border-radius: 13px; background: #fff7f1; color: var(--color-primary); font-size: 12px; font-weight: 700; text-align: start; }
  .mobile-drawer__quick svg { width: 25px; height: 25px; }
  .mobile-drawer__quick small { display: block; margin-top: 4px; color: #a48777; font-size: 9px; font-weight: 400; }
  .mobile-drawer__links { padding: 0 14px; border: 1px solid #edf0f2; border-radius: 14px; background: #fff; }
  .mobile-drawer__links li:last-child a { border-bottom: 0; }
  .mobile-drawer__links a { justify-content: space-between; gap: 12px; padding-block: 14px; min-height: 50px; color: #4d5c66; font-size: 12px; }
  .mobile-drawer__links svg { width: 14px; height: 14px; color: #bdc5cb; }
  .mobile-directory { display: grid; gap: 10px; }
  .mobile-directory__group { border: 1px solid #e9edef; border-radius: 13px; background: #fff; transition: border-color 300ms ease; }
  .mobile-directory__group[open] { border-color: #efd1c0; }
  .mobile-directory__summary { display: grid; grid-template-columns: 46px minmax(0,1fr) 26px; align-items: center; gap: 12px; min-height: 76px; padding: 12px; list-style: none; cursor: pointer; border-radius: 13px; -webkit-tap-highlight-color: transparent; }
  .mobile-directory__summary::-webkit-details-marker { display: none; }
  .mobile-directory__summary::marker { content: ''; }
  .mobile-directory__art { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: #fff5ed; color: var(--color-primary); }
  .mobile-directory__art > svg { width: 25px; height: 25px; }
  .mobile-directory__art img { width: 42px; height: 42px; object-fit: contain; }
  .mobile-directory__group--brand .mobile-directory__summary { grid-template-columns: 80px minmax(0,1fr) 26px; }
  .mobile-directory__group--brand .mobile-directory__art { width: 80px; height: 38px; border-radius: 0; background: #fff; }
  .mobile-directory__group--brand .mobile-directory__art img { width: 78px; height: 30px; }
  .mobile-directory__name { display: block; font-size: 12px; font-weight: 700; line-height: 22px; }
  .mobile-directory__meta { display: block; margin-top: 3px; color: #9aa3a9; font-size: 9px; line-height: 17px; }
  .mobile-directory__chevron { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f5f7f8; color: #8d989f; transition: transform 320ms ease, color 320ms ease, background-color 320ms ease; }
  .mobile-directory__chevron svg { width: 11px; height: 7px; }
  .mobile-directory__group[open] .mobile-directory__chevron { transform: rotate(180deg); background: #fff0e7; color: var(--color-primary); }
  .mobile-directory__group[open] .mobile-directory__name { color: var(--color-primary); }
  .mobile-directory__children { margin: 0 12px 12px; padding: 4px 12px 0; border-top: 1px solid #f0e9e3; border-radius: 0 0 9px 9px; background: #fffcfa; }
  .mobile-directory__children ul { margin: 0; padding: 0; list-style: none; }
  .mobile-directory__children li + li { border-top: 1px solid #f3eeea; }
  .mobile-directory__children li a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding-block: 9px; color: #65727b; font-size: 11px; line-height: 22px; }
  .mobile-directory__children li a::before { width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: #e5bda8; content: ''; }
  .mobile-directory__all { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding-block: 10px; border-top: 1px solid #f0e4dc; color: var(--color-primary); font-size: 10px; font-weight: 700; }
  .mobile-directory__footer-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 14px; padding: 12px; border-radius: 11px; background: #edf1f4; color: #4e606c; font-size: 11px; }
  .mobile-drawer__contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; margin: 0; padding: 16px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #e9edef; background: #fff; text-align: start; }
  .mobile-drawer__contact small { display: block; margin-bottom: 3px; color: #9ca5ab; font-size: 9px; }
  .mobile-drawer__contact strong { font-size: 14px; font-weight: 800; letter-spacing: .3px; }
  .mobile-drawer__contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff1e8; color: var(--color-primary); }
  .mobile-drawer__contact-icon svg { width: 22px; height: 22px; }
  .mobile-directory__summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
  .mobile-directory__children a:active { color: var(--color-primary); }
  @supports (interpolate-size: allow-keywords) {
    .mobile-directory__group { interpolate-size: allow-keywords; }
    .mobile-directory__group::details-content { height: 0; overflow: clip; transition: height 320ms ease, content-visibility 320ms allow-discrete; }
    .mobile-directory__group[open]::details-content { height: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-directory__group, .mobile-directory__chevron, .mobile-directory__group::details-content { transition: none; }
}

@media (width < 450px) {
  .mobile-search { display: flex; align-items: center; gap: 9px; flex-shrink: 0; margin: 16px 16px 0; padding-inline: 12px 4px; min-height: 46px; border: 1px solid #e5e9ec; border-radius: 11px; background: #fff; transition: border-color 300ms ease; }
  .mobile-search:focus-within { border-color: #e9a68a; }
  .mobile-search__icon { flex-shrink: 0; color: var(--color-primary); }
  .mobile-search input { width: 100%; min-width: 0; height: 44px; border: 0; padding: 0; outline: 0; background: transparent; color: var(--color-text); font-size: 12px; }
  .mobile-search input::placeholder { color: #9aa4aa; font-size: 11px; }
  .mobile-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
  .mobile-search__clear { display: grid; place-items: center; width: 36px; height: 40px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: #87949d; }
  .mobile-search__clear[hidden] { display: none; }
  .mobile-search__status { display: none; margin: 12px 20px 0; font-size: 10px; color: #8a969e; }
  .mobile-search__results { display: none; }
  .mobile-drawer.is-searching .mobile-drawer__tabs, .mobile-drawer.is-searching [data-mobile-panel] { display: none; }
  .mobile-drawer.is-searching .mobile-search__status, .mobile-drawer.is-searching .mobile-search__results { display: block; }
  .mobile-search__heading { margin: 0 0 12px; color: #63727c; font-size: 12px; font-weight: 700; line-height: 22px; }
  .mobile-search__results > .mobile-directory + .mobile-search__heading { margin-top: 24px; }
  .mobile-search__empty { padding: 24px 12px; border: 1px dashed #dfe5e9; border-radius: 12px; text-align: center; }
  .mobile-search__empty p { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
  .mobile-search__empty span { font-size: 11px; line-height: 22px; color: #8a969e; }
  .mobile-directory__children li[hidden] { display: none; }
}

/* Keep the menu usable when the mobile keyboard reduces the viewport height. */
@media (width < 450px) {
  .mobile-search input { font-size: 16px; }
  .mobile-drawer__content { scroll-padding-block: 12px; }
}
@media (width < 450px) and (height < 600px) {
  .mobile-drawer__head { padding-block: 12px; }
  .mobile-drawer__identity small { display: none; }
  .mobile-drawer__contact { padding-block: 10px; }
  .mobile-drawer__contact-icon { width: 34px; height: 34px; }
}

/* RTL mobile header and right-edge drawers. */
@media(max-width:449px){
.site-header__main{direction:rtl;grid-template-columns:44px minmax(0,1fr);align-items:center}
.site-header__main>.mobile-menu-toggle{grid-column:1;grid-row:1;justify-self:start}
.site-header__main>.site-logo{grid-column:2;grid-row:1;justify-self:end;margin:0}
.site-header__main>.site-header__tools{grid-column:1 / -1;grid-row:2}
.mobile-drawer{left:auto;right:0;inset-inline-start:0;inset-inline-end:auto;margin:0;border-radius:20px 0 0 20px;transform:translateX(100%);direction:rtl;text-align:right}
.mobile-drawer.is-visible{transform:translateX(0)}
}
