/* Mobile navigation is opt-in at the site's existing 560px breakpoint. */
.m-only,
.m-market-search,
.m-nav-dialog,
.m-search-empty { display: none; }
.m-nav-dialog:not([open]) { display: none !important; }
.m-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Content pages share the site's colors, independently of the header. */
.premium-crown svg,
.package-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.premium-page .package-card { border-radius: 22px; padding: 26px; }
.premium-page .annual-package { border-top: 3px solid var(--turquoise); }
.premium-page .lifetime-package { border-color: #075d81; background: radial-gradient(ellipse at top right, #137d94, transparent 70%), #014c78; color: #fff; }
.premium-page .lifetime-package h2,
.premium-page .lifetime-package .package-price strong { color: #fff; }
.premium-page .lifetime-package .package-summary,
.premium-page .lifetime-package li,
.premium-page .lifetime-package .package-price span { color: #d8eaf1; }
.premium-page .lifetime-package li::before { color: #66e5df; }
.premium-page .lifetime-package .package-price,
.premium-page .lifetime-package .package-duration { background: #ffffff12; color: #e1f6fa; }
.premium-page .lifetime-package .package-icon { background: #ffffff17; color: #ffc78b; }
.premium-page .lifetime-package .package-buy-button { background: #ffffff17; color: #e1f6fa; border: 1px solid #ffffff25; }
.premium-page .package-icon { width: 46px; height: 46px; border-radius: 15px; }
.premium-page .package-buy-button { min-height: 46px; }
.m-app-card { max-width: 640px; }
.m-app-card h2,.m-share-card h2 { margin: 0 0 12px; font-family: Manrope,sans-serif; font-size: 21px; }
.m-app-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 22px; }
.m-app-monogram { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; border-radius: 19px; background: var(--primary); color: var(--on-primary); font-size: 38px; font-weight: 800; }
.m-rating-stars { display: block; margin-bottom: 22px; color: var(--accent); font-size: 36px; letter-spacing: 3px; }
.m-share-card { max-width: 640px; }
.m-share-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 22px 0 26px; }
.m-share-options > * { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.m-share-options > *:hover { border-color: var(--turquoise); }
.m-share-options span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--primary); background: var(--paper); font-size: 16px; }
.m-share-card > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.m-copy-row { display: flex; gap: 8px; }
.m-copy-row input { min-width: 0; flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; }
.m-copy-row button { flex: none; }

@media (max-width: 560px) {
  .site-header { height: auto; min-height: 64px; }
  .site-header .header-inner { width: calc(100% - 16px); height: 63px; grid-template-columns: 32px minmax(0,1fr) auto; gap: 5px; }
  .site-header .header-inner > .brand { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; padding-inline: 2px; }
  .site-header .header-inner > .brand .brand-art { width: min(125px,100%); height: auto; max-height: 39px; object-fit: contain; }
  .site-header .header-actions { grid-column: 3; grid-row: 1; gap: 2px; }
  .site-header .header-actions > .icon-button,
  .site-header .header-actions > .premium-button { display: grid; place-items: center; flex: none; width: clamp(26px,7.2vw,36px); height: 42px; padding: 0; border-radius: 10px; border: 0; background: transparent; }
  .site-header .header-actions > .premium-button { background: var(--premium-soft); color: var(--accent); }
  .site-header .header-actions > .icon-button svg { width: 17px; height: 17px; }
  .site-header .header-actions > .premium-button svg { width: 19px; height: 19px; }
  .site-header .header-actions .m-search-toggle { order: 1; }
  .site-header .header-actions .theme-toggle { order: 2; }
  .site-header .header-actions .exchange-button { order: 3; }
  .site-header .header-actions .app-android { order: 4; }
  .site-header .header-actions .app-ios { order: 5; }
  .site-header .header-actions .premium-button { order: 6; }
  .m-only { display: grid !important; }
  .m-menu-toggle { grid-column: 1; grid-row: 1; place-items: center; width: 32px; height: 42px; padding: 0; border: 1px solid color-mix(in srgb,var(--primary) 12%,var(--line)); border-radius: 11px; background: linear-gradient(140deg,var(--soft),var(--paper)); color: var(--primary); cursor: pointer; }
  .m-menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .m-menu-toggle[aria-expanded="true"],.m-search-toggle[aria-expanded="true"] { color: var(--on-primary) !important; background: var(--primary) !important; }
  .site-header button:focus-visible,.site-header a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .market-strip { top: var(--m-header-height,64px); }

  .m-market-search { display: block; padding: 0 14px 10px; }
  .m-search-field { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 5px 0 12px; border: 1px solid color-mix(in srgb,var(--primary) 20%,var(--line)); border-radius: 13px; background: var(--soft); }
  .m-search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--turquoise) 12%,transparent); }
  .m-search-field svg,.m-close-button svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .m-search-field > svg { color: var(--primary); }
  .m-search-field input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
  .m-search-field input::placeholder { font-size: 13px; color: var(--muted); }
  .m-search-field button { display: grid; place-items: center; flex: none; width: 38px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: var(--paper); color: var(--muted-secondary); cursor: pointer; }
  .m-market-search > p { margin: 7px 3px 0; color: var(--muted-secondary); font-size: 11px; }
  .m-search-empty { display: block; padding: 38px 15px; text-align: center; }
  .m-search-empty strong { font-family: Manrope,sans-serif; font-size: 19px; }
  .m-search-empty p { color: var(--muted); font-size: 13px; line-height: 1.7; }
  .m-search-empty:not([hidden]) + .market-tiles { padding-block: 0; }

  .m-nav-dialog[open] { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: min(350px,90vw); max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: max(14px,env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)); border: 0; border-right: 1px solid var(--line); border-radius: 0 24px 24px 0; outline: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); box-shadow: 15px 0 70px #011e3430; animation: m-slide-in .23s ease-out; }
  .m-nav-dialog::backdrop { background: #051c36a6; backdrop-filter: blur(3px); }
  body.m-drawer-open { overflow: hidden; }
  .m-drawer-top { display: flex; flex: none; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .m-drawer-eyebrow { color: var(--muted-secondary); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
  .m-close-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--primary); cursor: pointer; }
  .m-drawer-hero { display: flex; flex: none; align-items: center; gap: 12px; min-height: 78px; padding: 13px; border: 1px solid color-mix(in srgb,var(--turquoise) 20%,var(--line)); border-radius: 17px; background: linear-gradient(115deg,color-mix(in srgb,var(--turquoise) 12%,var(--paper)),color-mix(in srgb,var(--accent) 8%,var(--paper))); }
  .m-drawer-brand { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: var(--on-primary); box-shadow: 0 5px 12px #014c7828; font-family: Manrope,sans-serif; font-size: 29px; font-weight: 800; }
  .m-drawer-hero small { color: var(--muted-secondary); font-size: 9px; letter-spacing: 1.3px; font-weight: 800; }
  .m-drawer-hero h2 { margin: 3px 0 0; font-family: Manrope,sans-serif; font-size: 16px; letter-spacing: -.3px; }
  .m-drawer-spark { margin-left: auto; color: var(--accent); font-size: 21px; }
  .m-drawer-nav { margin-top: 25px; }
  .m-menu-group { display: grid; gap: 5px; }
  .m-menu-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; padding-inline: 5px; color: var(--primary); font-family: Manrope,sans-serif; font-size: 13px; font-weight: 800; }
  .m-menu-group h3::before { content: ""; width: 5px; height: 13px; border-radius: 5px; background: var(--turquoise); }
  .m-menu-group + .m-menu-group { margin-top: 22px; }
  .m-menu-legal h3::before { background: var(--accent); }
  .m-menu-group > a { display: flex; align-items: center; gap: 11px; min-height: 51px; padding: 7px 11px 7px 8px; border: 1px solid transparent; border-radius: 13px; background: color-mix(in srgb,var(--soft) 72%,var(--paper)); font-size: 13px; font-weight: 600; transition: background .15s ease,border-color .15s ease; }
  .m-item-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--primary); box-shadow: 0 2px 5px #014c7805; }
  .m-item-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .m-menu-group > a:nth-of-type(3n+2) .m-item-icon { color: #0a8b8b; }
  .m-menu-group > a:nth-of-type(3n) .m-item-icon { color: var(--accent); }
  .m-chevron { width: 7px; height: 7px; flex: none; margin-left: auto; margin-right: 4px; border-top: 1.5px solid var(--muted-secondary); border-right: 1.5px solid var(--muted-secondary); transform: rotate(45deg); }
  .m-menu-group > a:hover,.m-menu-group > a[aria-current="page"] { background: color-mix(in srgb,var(--turquoise) 9%,var(--paper)); border-color: color-mix(in srgb,var(--primary) 15%,var(--line)); }
  .m-nav-dialog a:focus-visible,.m-nav-dialog button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .m-drawer-footer { margin: 26px 0 0; padding-top: 17px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 11px; }
  .m-drawer-footer span { display: block; margin-top: 5px; color: var(--muted-secondary); font-size: 10px; }
  .premium-page .package-card { padding: 22px; }
  .premium-heading h1 { font-size: clamp(24px,7vw,31px); letter-spacing: -.9px; }
  .m-app-card h2,.m-share-card h2 { font-size: 19px; }
  .m-share-options > * { gap: 7px; padding: 10px; font-size: 12px; }
  .m-copy-row input { font-size: 12px; }
  .shopping-entry-row input,.contact-form input,.contact-form select,.contact-form textarea { font-size: 16px; }
  .shopping-item-quantity { max-width: 74px; overflow-wrap: anywhere; white-space: normal; }
  .remove-shopping-item { min-height: 44px; }
  @keyframes m-slide-in { from { transform: translateX(-100%); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  .m-nav-dialog[open] { animation: none; }
  .m-menu-group > a { transition: none; }
}
