/* Adult phone/tablet presentation only. Desktop, ads and request handlers stay unchanged. */
@media (max-width:1024px){
  html body.page-home:not(.tv-mode) #ma-ai-entry{margin:12px 0 16px!important}
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box h2{
    font-size:22px!important;line-height:1.2!important;margin:0 0 6px!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box>p:not([data-i18n="search.voiceHint"]){
    font-size:13px!important;line-height:1.4!important;margin:0 0 10px!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box>.home-ask-composer{
    display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;
    grid-template-rows:44px 44px!important;grid-template-areas:"input mic" "input send"!important;
    align-items:center!important;gap:4px 8px!important;padding:10px 12px!important;
    min-height:0!important;height:auto!important;border-radius:20px!important;box-sizing:border-box!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>#specific-search-input{
    grid-area:input!important;align-self:stretch!important;width:100%!important;min-width:0!important;
    height:92px!important;min-height:92px!important;max-height:92px!important;
    padding:4px 2px!important;font-size:16px!important;line-height:1.45!important;
    overflow-y:auto!important;resize:none!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>#mic-btn-index{
    grid-area:mic!important;width:44px!important;min-width:44px!important;
    height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;
    align-self:center!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn,
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row>.composer-send{
    display:grid!important;place-items:center!important;position:relative!important;
    width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
    margin:0!important;padding:0!important;border-radius:14px!important;
    border:1px solid #f1cf7d!important;background:linear-gradient(145deg,#48305e,#211629)!important;
    color:#ffe9a6!important;font-size:0!important;line-height:1!important;
    justify-self:end!important;align-self:center!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn{
    grid-area:send!important;grid-column:2!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn::before,
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row>.composer-send::before{
    content:""!important;display:block!important;position:static!important;
    width:30px!important;height:30px!important;background:url("/assets/brand/matchapp-send-star.svg") center/contain no-repeat!important;
    transform:none!important;animation:none!important;opacity:1!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn::after,
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row>.composer-send::after{
    content:none!important;display:none!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn:disabled,
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row>.composer-send:disabled{opacity:.45!important}
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .search-examples{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;margin:10px 0 0!important;align-items:stretch!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .search-examples>span{
    grid-column:1/-1!important;font-size:10px!important;line-height:1.2!important;letter-spacing:.08em!important;
    margin:0!important;color:#aa9fbb!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .search-examples>button{
    min-width:0!important;min-height:44px!important;height:auto!important;padding:6px 9px!important;
    margin:0!important;font-size:12px!important;line-height:1.3!important;border-radius:12px!important;
    white-space:normal!important;overflow-wrap:normal!important;
  }
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .search-examples>button:last-child{grid-column:1/-1!important}
  html body.page-home:not(.tv-mode) #ma-concierge{padding:10px!important;margin-bottom:12px!important;border-radius:18px!important}
  html body.page-home:not(.tv-mode) #ma-concierge #questionnaire-box{padding:0!important}
  html body.page-home:not(.tv-mode) #questionnaire-box .ma-quick{gap:6px!important}
  html body.page-home:not(.tv-mode) #questionnaire-box .ma-filter-row{gap:3px!important;padding:0!important}
  html body.page-home:not(.tv-mode) #questionnaire-box .ma-chip-row{gap:6px!important}
  html body.page-home:not(.tv-mode) #questionnaire-box .ma-chip{
    min-height:44px!important;padding:6px 10px!important;font-size:12px!important;line-height:1.25!important;
  }
  html body.page-home:not(.tv-mode) #questionnaire-box .matchapp-topic-shortcuts{gap:6px!important;margin:8px 0!important}
  html body.page-home:not(.tv-mode) #questionnaire-box .matchapp-topic-choice{
    min-height:44px!important;padding:7px 8px!important;font-size:12px!important;border-radius:12px!important;
  }
  html body.page-home:not(.tv-mode) #questionnaire-box .matchapp-topic-description{
    margin:4px 0 8px!important;padding:7px 9px!important;font-size:12px!important;line-height:1.4!important;
  }
  html body.page-home:not(.tv-mode) :is(.lazy-head,.global-events-summary,#latest-news>summary,#cooking-home>summary,.ebook-fold){
    min-height:48px!important;padding-top:8px!important;padding-bottom:8px!important;font-size:14px!important;line-height:1.25!important;
  }
  html body.page-home:not(.tv-mode) :is(#cooking-home,#spotlight-ahs13,#weekly-pick-disclosure>.spotlight-card){
    padding:12px!important;border-radius:18px!important;
  }
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .discover-title-copy h1{font-size:24px!important;line-height:1.2!important}
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .concierge-tagline{font-size:13px!important;line-height:1.4!important;margin:6px 0 10px!important}
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row{
    grid-template-columns:minmax(0,1fr) 44px 44px!important;padding:8px 10px!important;
    gap:6px!important;margin-top:14px!important;border-radius:20px!important;
  }
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) #discover-new-input{
    min-height:68px!important;height:68px!important;max-height:120px!important;padding:4px!important;
    font-size:16px!important;line-height:1.45!important;overflow-y:auto!important;
  }
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .composer-hint{font-size:12px!important;line-height:1.4!important}
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .chat-log{gap:14px!important;margin:16px 0!important}
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) :is(.chat-user,.chat-assistant){padding:12px 14px!important;border-radius:16px!important}
  html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .chat-answer-text{font-size:16px!important;line-height:1.55!important}
  /* Layered important styles override the legacy gold keycap's heavy bottom shadow. */
  @layer ma-depth{
    html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn,
    html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row>.composer-send{
      box-shadow:inset 0 1px 0 #ffffff20,0 3px 10px #0004!important;
      border-color:#f1cf7d!important;
    }
  }
}
@media (min-width:700px) and (max-width:1024px){
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .search-examples{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .search-examples>button:last-child{grid-column:auto!important}
}

/* Second compact pass: crests and expansion affordances must shrink with their row. */
@media(max-width:1024px){
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box h2{font-size:20px!important}
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box>p:not([data-i18n="search.voiceHint"]){font-size:12px!important;line-height:1.35!important;margin-bottom:8px!important}
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box>.home-ask-composer{
  grid-template-columns:minmax(0,1fr) 36px 36px!important;
  grid-template-rows:44px 36px!important;grid-template-areas:"input input input" ". mic send"!important;
  gap:4px 6px!important;padding:6px 10px!important;border-radius:18px!important;isolation:isolate!important;
 }
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>#specific-search-input{
  height:44px!important;min-height:44px!important;max-height:44px!important;
  font-size:14px!important;line-height:1.4!important;padding:2px!important;
 }
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>#mic-btn-index,
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn{
  width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:11px!important;
 }
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn{grid-area:send!important;grid-column:3!important}
 html body.page-home:not(.tv-mode) #ma-ai-entry #mic-btn-index svg{width:21px!important;height:21px!important}
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box .home-ask-composer>.gold-btn::before,
 html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row>.composer-send::before{
  position:absolute!important;inset:0!important;margin:auto!important;align-self:center!important;justify-self:center!important;
  width:26px!important;height:26px!important;
 }
 html body.page-home:not(.tv-mode) #ma-ai-entry #search-box>.home-ask-composer::after,
 html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row::after{
  content:""!important;display:block!important;position:absolute!important;inset:-3px!important;z-index:-1!important;
  pointer-events:none!important;border:1px solid #c899ed80!important;border-radius:inherit!important;
  background:radial-gradient(ellipse at 8% 10%,#9960da30,transparent 55%),radial-gradient(ellipse at 92% 90%,#e3bd5820,transparent 55%)!important;
  box-shadow:0 0 12px #ab70e52b!important;animation:maComposerAura 5s ease-in-out infinite!important;
 }
 html body.ai-chat-page.ma-ia-discover:not(.tv-mode) .newsearch-row{position:relative!important;isolation:isolate!important}
 html body.ai-chat-page.ma-ia-discover:not(.tv-mode) #discover-new-input{font-size:14px!important;min-height:48px!important;height:48px!important}
 html body.page-home:not(.tv-mode) :is(
  .lazy-head[data-fold-key],#latest-news>summary,#premiere-disclosure>summary,#weekly-pick-disclosure>summary,
  #global-events>.global-events-fold>.global-events-summary,#swifties-spotify .swifties-fold,
  #ma-concierge .match-more-filters>summary,#ebook-matcher-root .ebook-fold>summary,.seo-fold-summary
 ){
  min-height:46px!important;height:auto!important;padding:6px 43px 6px 9px!important;
  gap:8px!important;margin-block:4px!important;border-radius:14px!important;box-sizing:border-box!important;
 }
 html body.page-home:not(.tv-mode) :is(
  .lazy-head[data-fold-key],#latest-news>summary,#premiere-disclosure>summary,#weekly-pick-disclosure>summary,
  #global-events>.global-events-fold>.global-events-summary,#swifties-spotify .swifties-fold,
  #ma-concierge .match-more-filters>summary,.seo-fold-summary
 )::before{width:30px!important;height:30px!important;flex:0 0 30px!important;margin:0!important}
 html body.page-home:not(.tv-mode) :is(
  .lazy-head[data-fold-key],#latest-news>summary,#premiere-disclosure>summary,#weekly-pick-disclosure>summary,
  #global-events>.global-events-fold>.global-events-summary,#swifties-spotify .swifties-fold,
  #ma-concierge .match-more-filters>summary,.seo-fold-summary
 )::after{width:28px!important;height:28px!important;min-width:0!important;min-height:0!important;right:9px!important;font-size:18px!important}
 html body.page-home:not(.tv-mode) :is(
  .lazy-head[data-fold-key] .lazy-head-label,#latest-news .ma-news-title,
  #premiere-disclosure>summary,#weekly-pick-disclosure>summary,#global-events .ge-sum-label,
  #swifties-spotify .swifties-fold #swifties-spotify-title,#ma-concierge .match-more-filters>summary
 ){font-size:14px!important;line-height:1.25!important}
 html body.page-home:not(.tv-mode) #latest-news>summary{padding-right:9px!important}
 html body.page-home:not(.tv-mode) #latest-news .ma-news-description{font-size:10px!important}
 html body.page-home:not(.tv-mode) #global-events .ge-sum-count{font-size:11px!important;padding:3px 6px!important}
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold>summary{
  grid-template-columns:30px minmax(0,1fr) 28px!important;padding-right:9px!important;
 }
 html body.page-home:not(.tv-mode) #ebook-matcher-root :is(.ebook-summary-icon,img.ebook-brand-crest){width:30px!important;height:30px!important}
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold>summary strong{font-size:14px!important;line-height:1.25!important;text-align:left!important}
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-chevron{width:28px!important;height:28px!important;min-width:0!important;min-height:0!important;font-size:18px!important}
 html body.page-home:not(.tv-mode) #ma-concierge #questionnaire-box>button[data-i18n="q.submit"]{
  min-height:44px!important;padding:8px 12px!important;font-size:14px!important;margin-top:10px!important;border-radius:12px!important;
 }
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header{
  padding:5px 8px 6px!important;gap:3px!important;
 }
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header .ma-brand-orb-stage{
  width:42px!important;min-width:42px!important;flex-basis:42px!important;height:40px!important;
 }
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header .ma-brand-orb{width:44px!important;height:44px!important;top:-2px!important}
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header :is(.ma-wordmark,.ma-word-ai){font-size:24px!important}
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header>nav.mh-deck.ma-header-actions{
  grid-auto-rows:minmax(34px,auto)!important;gap:6px!important;
 }
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header>nav.mh-deck.ma-header-actions :is(
  button,select,a.ma-kids-mode-entry,a.nav-avatar-link,.ma-menu-wrap,#lang-switcher-host,#quota-badge,#nav-reg-btn,#nav-logout-btn
 ){height:34px!important;min-height:34px!important;border-radius:10px!important;font-size:11px!important}
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header>nav.mh-deck.ma-header-actions>#lang-switcher-host select{
  height:34px!important;min-height:34px!important;font-size:11px!important;padding-left:6px!important;
 }
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header>nav.mh-deck.ma-header-actions :is(button svg,.matchapp-notification-button svg){width:18px!important;height:18px!important}
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header>nav.mh-deck.ma-header-actions>a#profile-link-tab.nav-avatar-link>.avatar-ring{
  width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;
 }
 html body.page-home:not(.tv-mode) #mh-topbox.app-header.ma-home-header>nav.mh-deck.ma-header-actions>.ma-kids-mode-entry img{width:17px!important;min-width:17px!important;height:17px!important}
}
@keyframes maComposerAura{0%,100%{opacity:.45;transform:scale(1)}50%{opacity:1;transform:scale(1.004)}}
@media(prefers-reduced-motion:reduce){
 html body.page-home #ma-ai-entry #search-box>.home-ask-composer::after,
 html body.ai-chat-page.ma-ia-discover .newsearch-row::after{animation:none!important;opacity:.65!important}
}
html.reduce-motion body.page-home #ma-ai-entry #search-box>.home-ask-composer::after,
html.reduce-motion body.ai-chat-page.ma-ia-discover .newsearch-row::after{animation:none!important;opacity:.65!important}

/* Align the three remaining Home disclosures with the 46px section rhythm. */
@media(max-width:1024px){
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold,
 html body.page-home:not(.tv-mode) #cooking-home.premium-card.cooking-home,
 html body.page-home:not(.tv-mode) #swifties-spotify.marquee-wrapper{
  padding:0!important;min-height:0!important;height:auto!important;box-sizing:border-box!important;
  border-radius:14px!important;
 }
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold>summary,
 html body.page-home:not(.tv-mode) #cooking-home.premium-card.cooking-home>summary,
 html body.page-home:not(.tv-mode) #swifties-spotify.marquee-wrapper>.swifties-fold{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-height:46px!important;height:46px!important;box-sizing:border-box!important;
  margin:0!important;padding:5px 43px 5px 9px!important;gap:8px!important;
  border-radius:14px!important;font-size:14px!important;line-height:1.2!important;
 }
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold>summary{
  display:grid!important;grid-template-columns:30px minmax(0,1fr) 28px!important;padding-right:9px!important;
 }
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold>summary :is(.ebook-summary-icon,img.ebook-brand-crest){
  width:30px!important;height:30px!important;min-height:0!important;min-width:0!important;padding:0!important;
 }
 html body.page-home:not(.tv-mode) #ebook-matcher-root .ebook-fold>summary .ebook-chevron{
  width:28px!important;height:28px!important;min-height:0!important;min-width:0!important;font-size:18px!important;
 }
 html body.page-home:not(.tv-mode) #cooking-home.premium-card.cooking-home>summary{
  position:relative!important;padding-right:9px!important;
 }
 html body.page-home:not(.tv-mode) #cooking-home.premium-card.cooking-home>summary>img{
  width:30px!important;height:30px!important;flex:0 0 30px!important;object-fit:contain!important;
 }
 html body.page-home:not(.tv-mode) #cooking-home.premium-card.cooking-home>summary>span{
  min-width:0!important;font-size:14px!important;line-height:1.2!important;
 }
 html body.page-home:not(.tv-mode) #cooking-home.premium-card.cooking-home{margin:6px 0 10px!important}
 html body.page-home:not(.tv-mode) #swifties-spotify.marquee-wrapper>.swifties-fold::before{
  width:30px!important;height:30px!important;flex:0 0 30px!important;margin:0!important;
 }
 html body.page-home:not(.tv-mode) #swifties-spotify.marquee-wrapper>.swifties-fold::after{
  width:28px!important;height:28px!important;right:9px!important;font-size:18px!important;
 }
 html body.page-home:not(.tv-mode) #swifties-spotify.marquee-wrapper>.swifties-fold #swifties-spotify-title{
  font-size:11px!important;line-height:1.05!important;letter-spacing:0!important;
 }
 html body.page-home:not(.tv-mode) #swifties-spotify.marquee-wrapper>.swifties-fold #swifties-spotify-title strong{
  display:inline!important;font-size:inherit!important;line-height:inherit!important;margin:0!important;
 }
}
