/* Mobile compositions keep HDS' editorial hierarchy and give images room. */
.hds-mobile-search-toggle { display: none; }

@media (max-width: 760px) {
  body:has([data-hds-public-header]) { --hds-mobile-gutter: 20px; }
  body .hds-public-header.hds-public-header {
    grid-template-rows: 52px 44px;
    height: 96px !important;
    min-height: 96px !important;
    padding-bottom: 0 !important;
  }
  body .hds-mobile-search-toggle {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    width: calc(100% - 2 * var(--hds-header-rail));
    min-height: 56px;
    margin: 0 var(--hds-header-rail);
    padding: 8px 10px 8px var(--hds-header-field-inset);
    border: 1px solid #e4e4e4;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: 400 14px/1.4 'Inter HDS', Arial, sans-serif;
    text-align: left;
    cursor: pointer;
  }
  .hds-mobile-search-copy { display: grid; gap: 2px; }
  .hds-mobile-search-copy small { font-size: 10px; color: #707070; }
  .hds-mobile-search-action {
    display: grid;
    place-items: center;
    min-width: 72px;
    min-height: 40px;
    padding: 0 12px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .hds-mobile-search-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  body .hds-header-search.hds-header-search.hds-mobile-search-ready { display: none; }
  body .hds-header-search.hds-header-search.hds-mobile-search-ready.is-mobile-search-open {
    position: absolute;
    z-index: 8;
    top: 152px;
    right: var(--hds-header-rail);
    left: var(--hds-header-rail);
    display: grid;
    width: auto;
    margin: 0;
    background: #fff;
    color: #111;
    border: 1px solid #e4e4e4;
    box-shadow: 0 18px 40px rgb(0 0 0 / .14);
    backdrop-filter: none;
  }
  body .hds-mobile-search-ready.is-mobile-search-open :is(label, select, .hds-home-select-trigger, .hds-home-select-chevron) {
    color: #111;
    text-shadow: none;
  }
  body .hds-mobile-search-ready.is-mobile-search-open .hds-home-select-trigger:focus-visible { box-shadow: 0 1px 0 #111; }
  body .hds-mobile-search-ready.is-mobile-search-open .hds-home-select-trigger:hover { color: #111; }
  body .hds-mobile-search-ready.is-mobile-search-open .de-hero-search-field + .de-hero-search-field { border-left: 1px solid #e4e4e4; }
  body .hds-public-masthead, body.site-about .about-masthead .de-hero { position: relative; padding-bottom: 16px; }

  /* Home: three stable title lines and a photograph that fills the screen. */
  body.site-home.home-narrative { --page-x: 20px; --hs-title: 28px; --hs-subtitle: 23px; --hs-body: 15px; }
  body.site-home .de-hero { min-height: max(620px, 100svh); }
  body.site-home .de-hero > .hds-mobile-search-toggle {
    position: absolute;
    top: 96px;
    left: var(--hds-header-rail);
    right: var(--hds-header-rail);
    width: auto;
    margin: 0;
    border-color: rgb(255 255 255 / .2);
    background: rgb(18 17 15 / .3);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body.site-home .hds-mobile-search-copy small { color: rgb(255 255 255 / .8); }
  body.site-home .de-hero-copy {
    top: calc(50% + 52px);
    right: 24px;
    bottom: auto;
    left: 24px;
    width: auto;
    transform: translateY(-50%);
    gap: 20px;
  }
  body.site-home .de-hero-copy > p { margin: 0; font-size: 10px; letter-spacing: .12em; }
  body.site-home .de-hero h1 { margin: 0; font-size: clamp(26px, 8vw, 38px); line-height: 1.12; letter-spacing: -.045em; }
  body.site-home .de-hero h1 br { display: none; }
  body.site-home .de-hero-line { display: block; text-wrap: balance; }
  body.site-home .de-hero-line:last-child { white-space: nowrap; }
  body.site-home .de-hero-image { object-position: 52% center; }
  body.site-home .de-hero-shade { background: linear-gradient(180deg, rgb(0 0 0 / .2), rgb(0 0 0 / .1) 32%, rgb(0 0 0 / .38) 58%, rgb(0 0 0 / .16)); }
  body.home-narrative .hs-chapter { padding-block: 48px; }
  body.home-narrative .hs-origin { gap: 28px; }
  body.home-narrative .hs-origin-images { grid-template-columns: 1.35fr 1fr; gap: 12px; }
  body.home-narrative .hs-origin-images img { height: 224px; }
  body.home-narrative .hs-copy p { max-width: 40ch; line-height: 1.65; }
  body.home-narrative .hs-section-head { gap: 16px; margin-bottom: 28px; }
  body.home-narrative .hs-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 24px;
    scrollbar-width: thin;
  }
  body.home-narrative .hs-tabs button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; }
  body.home-narrative .hs-intent-row .hs-tabs { width: 100%; }
  body.home-narrative .hs-intents { padding-bottom: 24px; }
  body.home-narrative .hs-intent-panel { gap: 12px; padding-top: 18px; }
  body.home-narrative .hs-spaces .de-featured-root,
  body.home-narrative .hs-today .hdt-home-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    align-items: start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  body.home-narrative .hs-spaces .de-space-card,
  body.home-narrative .hs-today .hdt-home-grid > * { scroll-snap-align: start; min-width: 0; }
  body.home-narrative .hs-spaces .de-space-card img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  body.home-narrative .hs-today .hdt-home-grid img,
  body.home-narrative .hs-today .hdt-home-grid .hdt-story:nth-child(2) img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  body.home-narrative .hs-calendar-view figure img { height: auto; aspect-ratio: 4 / 3; }
  body.home-narrative .hs-category-row { gap: 18px; }
  body.home-narrative .hs-category-row > div { gap: 12px 20px; }
  body.home-narrative .hs-category-row a { display: inline-flex; align-items: center; min-height: 36px; }
  body.home-narrative .hs-shop-images { gap: 10px; }
  body.home-narrative .hs-art-image { max-width: 100%; max-height: 460px; }
  body.home-narrative .hs-workspace { padding: 48px 20px; }
  body.home-narrative .hs-workspace > .hs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
  body.home-narrative .hs-workspace > .hs-tabs button { white-space: normal; text-align: left; }
  body.home-narrative .hs-workspace-panel { gap: 28px; }
  body.home-narrative .hs-preview-top, body.home-narrative .hs-product-preview nav { padding-inline: 14px; }
  body.home-narrative .hs-product-preview nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; min-height: 44px; align-items: center; }
  body.home-narrative .hs-preview-body { padding: 20px 14px; }
  body.home-narrative .hs-preview-grid img { height: auto; aspect-ratio: 4 / 3; }
  body.home-narrative .hs-link { min-height: 44px; }
  body.home-narrative .hs-about img { height: auto; aspect-ratio: 4 / 3; }
  body.home-narrative .de-faq { padding: 32px 20px 48px; }

  /* Audience pages: the place and the offer share the first screen. */
  body.site-audience { --hds-gutter: 24px; }
  body.site-audience .aud-opening { min-height: clamp(560px, calc(100svh - 168px), 720px); }
  body.site-audience .aud-hero { padding: 64px 24px 72px; }
  body.site-audience .aud-hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; }
  body.site-audience .aud-hero-bottom p { max-width: 34ch; font-size: 15px; line-height: 1.65; }
  body.site-audience .aud-hero-bottom .aud-link { margin-top: 28px; }
  body.site-audience .aud-photo img { object-position: 52% center; }
  body.site-audience .aud-opening::after { background: none; }
  body.site-audience .aud-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .12), rgb(0 0 0 / .34) 35%, rgb(0 0 0 / .7)); }
  body.site-audience .aud-photo figcaption { z-index: 1; color: #ddd; }
  body.site-audience .aud-intro, body.site-audience .aud-end-copy { padding: 56px 24px; }
  body.site-audience :is(.aud-intro h2, .aud-end h2) { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.12; }
  body.site-audience .aud-features { padding: 40px 24px 48px; gap: 40px; }
  body.site-audience .aud-feature-photo { aspect-ratio: 4 / 3; }
  body.site-audience .aud-feature .aud-feature-title { font-size: 17px; line-height: 1.35; gap: 12px; }
  body.site-audience .aud-actions { gap: 12px 24px; }
  body.site-audience .aud-other { margin-top: 28px; }
  body.site-audience .aud-faq { padding: 48px 24px; }

  /* About keeps the story and a wide photograph together. */
  body.site-about { --rail: 20px; }
  body.site-about .about-intro { padding-block: 36px 44px; gap: 28px; }
  body.site-about .about-content h1 { font-size: clamp(32px, 8.8vw, 40px); line-height: 1.12; }
  body.site-about .about-intro img { height: auto; aspect-ratio: 4 / 3; }
  body.site-about .about-chapter { padding-block: 44px; gap: 22px; }
  body.site-about .about-chapter img { height: auto; aspect-ratio: 4 / 3; }
  body.site-about .about-links { gap: 10px 24px; }
  body.site-about .about-links a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Calendar and Spaces retain the gallery effect of their desktop rows. */
  body.site-editions { --page: 20px; }
  body.site-editions .editions-hero { padding: 36px 20px 28px; gap: 22px; }
  body.site-editions.hds-public-page .editions-hero h1 { font-size: clamp(36px, 10vw, 48px); line-height: 1.04; letter-spacing: -.045em; }
  body.site-editions .editions-lead { font-size: 15px; line-height: 1.6; }
  body.site-editions .editions-discovery-bar { margin: 0 20px; }
  body.site-editions .editions-find-label { min-height: 44px; }
  body.site-editions .editions-discovery-bar .editions-search input { height: 52px; font-size: 14px; }
  body.site-editions .editions-discovery-bar .editions-filters,
  body.site-editions .editions-discovery-bar .editions-filters button { height: 44px; }
  body.site-editions .editions-city-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; padding: 24px 20px 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
  body.site-editions .editions-city-card { aspect-ratio: 4 / 5; scroll-snap-align: start; }
  body.site-editions .editions-city-card strong { font-size: 28px; }
  body.site-directory { --page: 20px; --directory-gutter: 20px; }
  body.site-directory:not(.is-space-view) .directory-floating-search { top: 96px; width: calc(100% - 40px); }
  body.site-directory:not(.is-space-view):has(.directory-floating-search) [data-directory-app] { padding-top: 72px; }
  body.site-directory .directory-collections { padding: 28px 20px 40px; }
  body.site-directory .directory-collections > header { align-items: stretch; gap: 18px; }
  body.site-directory h2.directory-section-title { font-size: 27px; }
  body.site-directory .directory-collection-tabs { flex-wrap: nowrap; justify-content: flex-start; gap: 24px; overflow-x: auto; min-width: 0; }
  body.site-directory .directory-collection-tabs button { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
  body.site-directory .directory-collection-intro { margin: 20px 0 28px; line-height: 1.6; }
  body.site-directory .directory-collection-images a { flex-basis: 86%; }
  body.site-directory .directory-collection-images img { aspect-ratio: 4 / 5; }
  body.site-directory .directory-collection-images span { font-size: 19px; }

  /* Today has a strong lead image rather than a sequence of small thumbnails. */
  body.hds-today-body .hdt-page { padding: 28px 20px 0; }
  body.hds-today-body .hdt-masthead { gap: 18px; margin-bottom: 24px; }
  body.hds-today-body .hdt-masthead h1 { margin: 8px 0 0; font-size: clamp(64px, 19vw, 84px); }
  body.hds-today-body .hdt-masthead small { line-height: 1.6; }
  body.hds-today-body .hdt-filters > div { flex-wrap: nowrap; gap: 24px; overflow-x: auto; }
  body.hds-today-body .hdt-filters button { flex: 0 0 auto; white-space: nowrap; }
  body.hds-today-body .hdt-lead h3 { font-size: 30px; line-height: 1.12; }
  body.hds-today-body .hdt-lead img { aspect-ratio: 4 / 3; object-fit: cover; }
  body.hds-today-body .hdt-next { padding-block: 36px 44px; }
  body.hds-today-body .hdt-next h2 { font-size: 32px; line-height: 1.15; }
  body.hds-today-body .hdt-reader { max-height: 100dvh; }

  /* Shop and Art show one generous editorial image and the next in the row. */
  .catalogue-header ~ main .editorial-hero { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .catalogue-header ~ main .editorial-hero > a { scroll-snap-align: start; }
  .catalogue-header ~ main .editorial-intro { padding-top: 28px; }
  .catalogue-header ~ main .editorial-intro h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; }
  .catalogue-header ~ main .universe-grid > :is(a, button) { flex-basis: 47%; }
  .catalogue-header ~ main .catalogue-continuity nav { flex-wrap: wrap; gap: 16px 24px; }
  body:has([data-hds-public-header]) > .public-footer { padding: 44px 20px 24px; gap: 20px; }
  body:has([data-hds-public-header]) > .public-footer > div { grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 12px; }
  body:has([data-hds-public-header]) > .public-footer :is(a, button) { display: inline-flex; align-items: center; min-height: 36px; }
}
