/* The navigation drawer on the desktop design: the app's drawer (the same markup as the phone view's, partials/m-drawer.blade.php with $desk) opened by the
   menu button of the header (public/js/desk-drawer.js). The rules are the phone view's (public/css/home-mobile.css) at the app's reference size
   (--u: 1px), outside its phone-only media query. */
.deskDrawer {
  --u: 1px;
  --raised: 0 4px 10px rgba(27, 42, 94, .14);
  color: var(--color-ink);
  font-family: Inter, "SF Pro", Roboto, -apple-system, system-ui, sans-serif;
  font-size: calc(15 * var(--u));
  line-height: 1.4;
}
.deskDrawer *, .deskDrawer *::before, .deskDrawer *::after { box-sizing: border-box; }
.deskDrawer[hidden] { display: none; }
.deskDrawer a { text-decoration: none; }
.deskDrawer h2, .deskDrawer p { margin: 0; }
.deskDrawer button { font-family: inherit; cursor: pointer; }
.deskDrawer .mRound { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-card); color: var(--color-ink); }
.mDrawerNav a b.mDrawerCount { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: calc(15 * var(--u)); font-weight: 700; text-align: center; }
.mDrawerNav form { display: block; }
.mDrawerSignOut { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 8px; border: 0; border-radius: 16px; background: none; color: var(--color-danger); font-size: calc(15 * var(--u)); text-align: left; }
.mDrawerSignOut span { flex: 1; }
.mDrawerSignOut i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); }
.mDrawer { position: fixed; z-index: 50; inset: 0; }
.mDrawerBackdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.mDrawer.isClosing .mDrawerPanel { animation: mDrawerOut .21s cubic-bezier(.55,.055,.675,.19) forwards; }
.mDrawer.isClosing .mDrawerBackdrop { animation: mFadeOut .21s linear forwards; }
.mDrawerBackdrop { background: rgba(15, 28, 38, .62); animation: mFadeIn .28s ease-out; }
.mDrawerPanel { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: 88%; max-width: 360px; padding: calc(8px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 30px 30px 0; background: var(--color-paper); box-shadow: 12px 0 26px rgba(15, 28, 38, .3); overflow: hidden; animation: mDrawerIn .28s cubic-bezier(.215,.61,.355,1); }
@keyframes mDrawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes mDrawerOut { to { transform: translateX(-100%); } }
@keyframes mFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mFadeOut { to { opacity: 0; } }
.mDrawerHead { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 84px; margin-bottom: 8px; }
.mDrawerHead > a { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mDrawerHead img { display: block; width: 200px; height: auto; transform: translateY(10px); }
.mDrawerHead .mRound { position: relative; width: 40px; height: 40px; color: var(--color-ink); }
/* The title, the welcome card and the language stay; only the Explorer list (.mDrawerNav) scrolls. */
.mDrawerScroll { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 16px; overflow: hidden; padding-bottom: 16px; }
.mDrawerScroll > * { flex: none; }
.mDrawerHero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 174px; padding: 16px; overflow: hidden; border-radius: 26px; background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary)); color: #fff; }
.mDrawerHero::before, .mDrawerHero::after { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); content: ""; pointer-events: none; }
.mDrawerHero::before { top: -70px; right: -44px; width: 142px; height: 142px; }
.mDrawerHero::after { right: 22px; bottom: -38px; width: 72px; height: 72px; }
.mDrawerHero > * { position: relative; z-index: 1; }
.mDrawerEyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; margin-bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: calc(15 * var(--u)); line-height: 1.4; }
.mDrawerEyebrow svg path { fill: rgba(255,255,255,.22); }
.mDrawerHero h2 { max-width: 92%; font-size: calc(18 * var(--u)); font-weight: 400; line-height: 1.4; }
.mDrawerHero p { max-width: 92%; margin-top: 8px; color: rgba(255,255,255,.82); font-size: calc(15 * var(--u)); line-height: 1.4; }
.mDrawerScroll > .mDrawerSection { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.mDrawerSection > h2 { margin: 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); font-weight: 400; line-height: 1.4; letter-spacing: 1.1px; text-transform: uppercase; }
.mDrawerNav { display: grid; flex: 1; min-height: 0; align-content: start; gap: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mDrawerNav::-webkit-scrollbar { display: none; }
.mDrawerNav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; border-radius: 16px; color: var(--color-ink); font-size: calc(15 * var(--u)); font-weight: 400; }
.mDrawerNav a span { flex: 1; }
.mDrawerNav a > svg { color: var(--color-placeholder); }
.mDrawerNav a i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); color: var(--color-ink-soft); }
.mDrawerNav a.isOn { background: var(--color-primary-tint); color: var(--color-primary-dark); }
.mDrawerNav a.isOn::before { position: absolute; top: 50%; left: 0; width: 4px; height: 24px; margin-top: -12px; border-radius: 999px; background: var(--color-primary); content: ""; }
.mDrawerNav a.isOn > svg { color: var(--color-primary-dark); }
.mDrawerNav a.isOn i { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.mDrawerLanguage { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--color-line); border-radius: 16px; background: var(--color-card); }
.mDrawerLanguage summary { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); line-height: 1.4; letter-spacing: 1.1px; text-transform: uppercase; list-style: none; cursor: pointer; }
.mDrawerLanguage summary::-webkit-details-marker { display: none; }
.mDrawerLanguageValue { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--color-secondary-tint); color: var(--color-primary); font-weight: 700; letter-spacing: 0; text-transform: none; }
.mDrawerLanguageValue svg { color: var(--color-secondary-dark); }
.mDrawerLanguage form { position: absolute; z-index: 2; right: 0; bottom: calc(100% + 6px); display: grid; min-width: 160px; padding: 6px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-card); box-shadow: var(--raised); }
.mDrawerLanguage form button { padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: calc(15 * var(--u)); }
.mDrawerLanguage form button[aria-current] { background: var(--color-primary-tint); color: var(--color-primary-dark); font-weight: 700; }
.mDrawerFooter { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--color-line); }
.mPublishWide { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 12px; border-radius: 16px; background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary)); color: #fff; font-size: calc(17 * var(--u)); }
.mPublishWide span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--color-primary-dark); }
.mPublishWide b { flex: 1; font-weight: 600; }
.mDrawerFooter p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--color-ink-soft); font-size: calc(15 * var(--u)); line-height: 1.4; text-align: center; }
.mDrawerFooter p svg { color: var(--color-secondary); }
.mDrawerFooter p.mDrawerVersion { display: block; margin-top: -8px; color: var(--color-placeholder); }
