/* Loaded only on the Journal and the mobile resource pages. */
@media (max-width: 749px) {
  body:has(#header-group) #MainContent {
    & {
      --mdr-gutter: 4.8vw;
      --resource-heading: clamp(23px, 6.8vw, 34px);
    }
    & .mdr-exp-hero--full,
    & .mdr-maphero { min-height: 0; height: 168vw; }
    & .mdr-exp-hero--short,
    & .mdr-contact__hero,
    & .mdr-faqlib__hero { height: 104vw; min-height: 0; }
    &[data-template="page.community"] .mdr-exp-hero__media { background: url('./mdr-resource-community.webp') center/cover; }
    &[data-template="page.help-center"] .mdr-exp-hero__media { background: url('./mdr-resource-support.webp') center/cover; }
    & .mdr-maphero__media { background: url('./mdr-resource-map.webp') center/cover; }
    & .mdr-contact__hero { background: url('./mdr-resource-contact.webp') center/cover; }
    & :is(.mdr-exp-hero__media,.mdr-maphero__media,.mdr-contact__hero) > :is(picture,img,video,svg) { display: none; }
    & :is(.mdr-exp-hero__media,.mdr-contact__hero,.mdr-maphero__media)::after { background: none; }
    & .mdr-exp-hero__inner { align-content: center; padding-block: 0; }
    & :is(.mdr-exp-hero__title,.mdr-contact__title,.mdr-maphero__title,.mdr-smap__title,.mdr-h2,.mdr-app-download h1,.mdr-faqlib__hero h1) { font-size: var(--resource-heading); line-height: 1.15; }
    & .mdr-exp-quotes__eyebrow { font-size: 12px; line-height: 1.25; margin-bottom: 40px; }
    & .mdr-exp-quote__text { max-width: 88vw; font-size: 18px; line-height: 1.33; }
    & .mdr-exp-quote__name { font-size: 14px; line-height: 1.25; margin-top: 30px; }
    & .mdr-exp-quote__meta { font-size: 10px; line-height: 1.4; }
    & .mdr-exp-slider__dots--ring { gap: 0; margin-top: 28px; }
    & .mdr-exp-slider__dots--ring .mdr-exp-slider__dot { width: 14px; height: 28px; display: grid; place-items: center; border: 0; background: none; }
    & .mdr-exp-slider__dots--ring .mdr-exp-slider__dot::after { content: ''; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
    & .mdr-exp-slider__dots--ring [aria-current=true]::after { background: currentColor; }

    & .mdr-exp-hero__content:has(.mdr-exp-search) { width: 100%; }
    & .mdr-exp-search { width: min(80vw, 450px); height: 40px; gap: 8px; padding-inline: 22px; margin-top: 24px; }
    & .mdr-exp-search svg { width: 18px; height: 18px; }
    & .mdr-exp-search__input { font-size: 16px; }
    & .mdr-exp-links, & .mdr-exp-faq { padding-block-start: 64px; background: #fafafa; }
    & .mdr-exp-links .mdr-exp-intro, & .mdr-exp-faq .mdr-exp-intro { margin-bottom: 30px; }
    & .mdr-exp-links__grid { gap: 14px 10px; }
    & .mdr-exp-link { min-height: 90px; border-radius: 12px; }
    & .mdr-exp-links--outline .mdr-exp-link__title { max-width: 9em; font-size: 14px; }
    & .mdr-exp-link__title { font-size: 15px; }
    & .mdr-exp-link__sub { font-size: 11px; }
    & .mdr-smap__pin-label { font-family: var(--mdr-font); }
    & .mdr-maphero__content { height: 100%; justify-content: end; padding-block: 0 12vw; }
    & .mdr-maphero__text { margin: 14px 0 20px; padding: 0; max-width: 23em; font-size: 12px; }
    & .mdr-maphero .mdr-playbtn { order: 1; margin: 0; min-height: 32px; padding: 4px 18px 4px 5px; gap: 12px; font-size: 11px; }
    & .mdr-playbtn__icon { width: 22px; height: 22px; }
    & .mdr-playbtn__icon svg { width: 12px; height: 12px; }
    & .mdr-contact__body { padding-block: 68px 84px; }
    & .mdr-contact__heading { font-size: 24px; line-height: 1.15; }
    & .mdr-contact__sub { margin-top: 12px; font-size: 12px; line-height: 1.38; }
    & .mdr-contact__cards { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
    & .mdr-contact__card { min-height: 118px; padding: 18px 16px 16px 20px; border-radius: 6px; }
    & .mdr-contact__card-main { column-gap: 14px; }
    & .mdr-contact__card-icon { width: 26px; height: 26px; margin-top: 1px; }
    & .mdr-contact .mdr-contact__card-title { font-family: var(--mdr-font); font-size: 20px; font-weight: 500; line-height: 1.18; }
    & .mdr-contact__card-text { margin-top: 6px; font-size: 11.5px; line-height: 1.35; }
    & .mdr-contact__email-link { margin-top: 16px; font-size: 11.5px; line-height: 1.35; }
    & .mdr-contact__card-note { margin-top: 16px; font-size: 11.5px; line-height: 1.35; }
    & .mdr-contact__formwrap { margin-top: 68px; }
    & .mdr-contact__form { gap: 14px; margin-top: 22px; }
    & .mdr-contact__row { grid-template-columns: 1fr; gap: 14px; }
    & .mdr-contact__input { min-height: 40px; border-radius: 6px; font-size: 12px; padding: 10px 15px; }
    & .mdr-contact__textarea { min-height: 134px; resize: none; }
    & .mdr-contact__submit { justify-self: center; min-width: 114px; min-height: 34px; margin-top: 22px; padding: 6px 18px; font-size: 12px; }
    & .mdr-contact__socials-wrap { margin-top: 66px; }
    & .mdr-contact__divider { gap: 14px; font-size: 12px; }
    & .mdr-contact__socials { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 272px); margin: 66px auto 0; gap: 42px 0; }
    & .mdr-contact__social { font-size: 12px; gap: 14px; }
    & .mdr-contact__social img { width: 44px; border-radius: 6px; }

    & .mdr-faqlib__hero { background-image: url('./mdr-resource-faq.webp'); display: grid; align-content: center; padding: 0 9vw; }
    & .mdr-faqlib__hero p { max-width: 25em; font-size: 12px; margin-top: 12px; }
    & .mdr-faqlib__search-wrap { margin-top: 22px; }
    & .mdr-faqlib__search { height: 42px; }
    & .mdr-faqlib__search input { font-size: 11px; }
    & .mdr-faqlib__container { width: 90.4%; padding-block: 44px 64px; }
    & .mdr-faqlib__nav p, & .mdr-faqlib__group h2 img { display: none; }
    & .mdr-faqlib__nav [role=tablist] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border: 0; }
    & .mdr-faqlib__nav button { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 78px; padding: 8px 12px; border: 1px solid #aaa; border-radius: 12px; text-align: center; font-size: 13px; color: #242424; }
    & .mdr-faqlib__nav button::before { content: ''; width: 20px; height: 20px; background: var(--tab-icon) center/contain no-repeat; }
    [data-faq-category="product-features"] { --tab-icon: url('./mdr-resource-product.webp'); }
    [data-faq-category="orders-shipping"] { --tab-icon: url('./mdr-resource-orders.webp'); }
    [data-faq-category="setup-compatibility"] { --tab-icon: url('./mdr-resource-setup.webp'); }
    [data-faq-category="app-membership"] { --tab-icon: url('./mdr-resource-membership.webp'); }
    [data-faq-category="aroma-accessories"] { --tab-icon: url('./mdr-resource-aroma.webp'); }
    [data-faq-category="returns-warranty"] { --tab-icon: url('./mdr-resource-returns.webp'); }
    & .mdr-faqlib__nav button[aria-selected=true] { background: #242424; color: white; }
    & .mdr-faqlib__nav button[aria-selected=true]::before { filter: brightness(0) invert(1); }
    & .mdr-faqlib__group h2 { font-size: 17px; }
    & .mdr-faqlib__question { border-radius: 9px; margin-bottom: 14px; }
    & .mdr-faqlib__question summary { min-height: 54px; font-size: 13px; line-height: 1.25; padding: 10px 17px; }
    & .mdr-faqlib__answer { font-size: 11px; line-height: 1.28; margin-top: -2px; padding: 0 17px 19px; }
    & .mdr-faqlib__support-photo { order: -1; }
    & .mdr-faqlib__support-copy { min-height: 220px; padding: 24px; }
    & .mdr-faqlib__support-icon { position: static; width: 34px; height: 34px; margin-bottom: 30px; }
    & .mdr-faqlib__support h2 { font-size: 18px; }
    & .mdr-faqlib__support p { font-size: 12px; }
    & .mdr-faqlib__support a { margin-top: 22px; padding: 8px 12px; font-size: 12px; }
    & .mdr-app-download { padding: 32px 4.8vw 64px; }
    & .mdr-app-download__intro { max-width: none; margin: 16px auto 0; font-size: clamp(10.25px, 3.2vw, 15px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 300; }
    & .mdr-app-download__intro > span { display: block; }
    & .mdr-app-download__intro br { display: none; }
    & .mdr-app-download__qr { margin-top: 40px; border-radius: 22px; }
    & .mdr-app-download__button { min-height: 34px; margin-top: 18px; font-size: 12px; }
    & .mdr-app-download__button img { width: 14px; }
    & .mdr-app-download__qr, & .mdr-app-download__button { width: 140px; }
    & .mdr-app-download__screens { display: block; margin-top: 52px; aspect-ratio: 1.95; background: url('./mdr-resource-screens.webp') center/contain no-repeat; }
    & .mdr-app-download__screens img { display: none; }
    & .mdr-journal-search { display: flex; align-items: center; gap: 10px; margin: 0 4.8vw 24px; border: 1px solid #aaa; border-radius: 99px; background: #fff; padding: 0 18px; height: 42px; }
    & .mdr-journal-search :is(input,button) { background: none; border: 0; }
    & .mdr-journal-search svg { width: 18px; }
    & .mdr-blognav__list { justify-content: start; gap: 16px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }
    & :is(.mdr-blognav__list, .mdr-blogcol__side, .mdr-smap__scroller) { scrollbar-width: none; }
    & :is(.mdr-blognav__list, .mdr-blogcol__side, .mdr-smap__scroller)::-webkit-scrollbar { display: none; }
    & .mdr-blognav__list li { flex: none; }
    & .mdr-blognav__link { display: block; font-size: 12px; padding: 8px 2px; border-bottom: 1px solid #ddd; }
    & .mdr-blognav__link.is-active { border-color: currentColor; }
    & .mdr-blognav__list li:has(.mdr-blognav__search) { display: none; }
    & .mdr-blogsec { padding-top: 64px; }
    & .mdr-blogsec--first { padding-top: 40px; }
    & .mdr-blogcol--mosaic { gap: 18px; }
    & .mdr-blogcol--cards { grid-auto-columns: 75.2vw; gap: 14px; }
    & .mdr-tile--large { aspect-ratio: 340/312; }
    & .mdr-tile--card { aspect-ratio: 1; }
    & .mdr-tile--large .mdr-tile__title { padding: 0 18px 24px; font-size: 16px; line-height: 1.15; text-wrap: wrap; }
    & .mdr-tile--card .mdr-tile__title { padding: 0 18px 24px; font-size: 12px; line-height: 1.25; text-wrap: wrap; }
    & .mdr-tile__tag { top: 18px; left: 18px; padding: 4px 10px; font-size: 10px; }
    & .mdr-blogfeat__body { padding: 0 18px 24px; gap: 14px; }
    & .mdr-blogfeat__body .mdr-btn { min-height: 34px; padding: 6px 26px; font-size: 12px; }
    & .mdr-bloglist__more .mdr-btn { min-width: 144px; min-height: 36px; padding: 8px 24px; font-size: 12px; }
    & .mdr-blogsec__title { font-size: 16px; margin-bottom: 20px; }
    & .mdr-blogfeat { aspect-ratio: 1.1; min-height: 0; }
    & .mdr-blogfeat__heading { font-size: 16px; line-height: 1.25; text-wrap: wrap; }
    & .mdr-blogcol__side { grid-auto-flow: column; grid-auto-columns: 83%; overflow: auto hidden; scroll-snap-type: x mandatory; }
    & .mdr-blogcol__side .mdr-tile { min-height: 0; scroll-snap-align: start; }
    & .mdr-blogcol--cards { overflow-y: hidden; }
    & .mdr-bloglist__media { aspect-ratio: 340/200; border-radius: 10px; }
    & .mdr-bloglist__title { text-wrap: wrap; }
    & .mdr-bloglist__body { padding-inline: 6px; }
    & :is(.mdr-bloglist__date,.mdr-bloglist__excerpt,.mdr-article__byline) { font-size: 12px; line-height: 1.35; }
    & .mdr-bloglist__title, & .mdr-article__title { font-size: 16px; line-height: 1.3; }
    & .mdr-article__main { min-width: 0; overflow-wrap: break-word; }
    & .mdr-article__hero { aspect-ratio: 340/200; border-radius: 9px; }
    & .mdr-article__byline { margin-top: 16px; }
    & .mdr-rte { font-size: 11px; line-height: 1.35; }
    & .mdr-rte > :first-child { margin-top: 26px; }
    & .mdr-rte p { margin-top: 15px; }
    & .mdr-rte h2 { font: 400 16px/1.3 var(--mdr-heading-font); }
    & .mdr-rte h3 { margin-top: 18px; font-size: 11px; padding-left: 12px; }
    & .mdr-rte h3::before { width: 6px; height: 6px; }
    & .mdr-article__category { font-size: 13px; }
    & .mdr-article__grid, & .mdr-article__aside { gap: 44px; }
    & .mdr-article__more { padding: 20px 18px 24px; }
    & .mdr-article__more-title { font-size: 16px; margin-bottom: 16px; }
    & .mdr-article__more li + li { border: 0; margin-top: 12px; padding: 0; }
    & .mdr-article__more a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border: 1px solid #e4dfdc; border-radius: 8px; padding: 10px 12px; font-size: 11px; line-height: 1.35; }
    & .mdr-article__more a::after { content: '→'; font-size: 16px; }
    & .mdr-article__promo { aspect-ratio: 340/310; }
    & .mdr-article__promo-title { font-size: 18px; }
    & .mdr-article__promo .mdr-btn, & .mdr-news__feature .mdr-btn { min-height: 28px; padding: 5px 14px; font-size: 12px; }
    & .mdr-article__banner { min-height: 68px; flex-direction: row; align-items: center; padding: 18px; }
    & .mdr-article__banner-title { font-size: 15px; }
    & .mdr-article__banner-btn { min-height: 32px; font-size: 12px; }

    & .mdr-smap__title, & .mdr-smap__text { text-align: center; }
    & .mdr-smap__text { font-size: 12px; }
    & .mdr-smap__map { width: clamp(700px, 196vw, 1000px); }
    & .mdr-smap__scroller { margin-top: 24px; }
    & .mdr-abrow__media img { object-position: center; }
    & .mdr-abrows { padding-bottom: 64px; }
    & .mdr-news-wrap { margin-top: 0; }
    & .mdr-news { padding-block: 64px 52px; }
    & .mdr-news__eyebrow { font: 300 12px/1.3 var(--mdr-font); margin-bottom: 24px; }
    & .mdr-news__grid, & .mdr-news__list { gap: 14px; }
    & .mdr-news__feature { min-height: 0; aspect-ratio: 340/262; padding: 18px 18px 24px; }
    & .mdr-news__tag { top: 16px; left: 18px; font-size: 10px; padding: 4px 12px; }
    & .mdr-news__title { font-size: 16px; line-height: 1.15; text-wrap: wrap; margin-bottom: 14px; }
    & .mdr-news__item { min-height: 60px; padding: 10px 18px; font-size: 12px; line-height: 1.2; }
    & .mdr-news__item-arrow { width: 30px; height: 30px; }
    & .mdr-news__item-arrow svg { width: 14px; height: 14px; }
    & .mdr-abrow__media { order: -1; aspect-ratio: 1.3; }
    & .mdr-abrow__text { font-size: 12px; line-height: 1.3; }
    & .mdr-abrow__heading { font-size: 25px; }
    & .mdr-abrow__text p + p { margin-top: 16px; }
    & .mdr-exp-faq__more .mdr-btn { min-width: 115px; min-height: 34px; padding: 6px 18px; font-size: 12px; }
    & .mdr-exp-faq__q { font-size: 13px; line-height: 1.25; }
    & .mdr-exp-faq__a { font-size: 11px; line-height: 1.28; }
    & .mdr-exp-faq__list { background: #eee; }
    &[data-template="page.community"] .mdr-exp-hero__text { display: none; }
    & .mdr-faqlib__hero { grid-template-columns: minmax(0,1fr); padding-inline: 4vw; }
    & .mdr-faqlib__hero h1 { font-size: clamp(22px,6.8vw,32px); }
    & .mdr-faqlib__search-wrap { width: 80vw; justify-self: center; }
    & .mdr-blogcol__side .mdr-tile { display: block; aspect-ratio: auto; overflow: visible; background: none; color: var(--mdr-text); }
    & .mdr-blogcol__side .mdr-tile__media { position: relative; aspect-ratio: 2.08; border-radius: 8px; overflow: hidden; z-index: auto; }
    & .mdr-blogcol__side .mdr-tile__media::after { display: none; }
    & .mdr-blogcol__side .mdr-tile__title { padding: 6px 2px; font-size: 13px; }

  }
  body:has(#MainContent) .mdr-exp-quotes__track { overflow-y: hidden; }
  body:has(#MainContent:is([data-template="page.faq"],[data-template="page.contact"],[data-template="page.help-center"])) #header-group {
    height: 0;
    .mdr-header:not(.mdr-global-header-scrolled,.is-open,.is-scrolled) {
      background: transparent;
      color: #fff;
      .mdr-header__bar .mdr-logo--dark { display: none; }
      .mdr-header__bar .mdr-logo--light { display: block; }
    }
  }
}
