/* Homepage on phones (mobile-first redesign, L1, 27 Nov 2026; docs/design/MOBILE_DESIGN_STANDARD.md). Phones only: every rule
   sits below 48rem, so the desktop homepage is unchanged. Brand, headline, the approved Earth hero and the films stay; the phone
   layout is its own: a compact hero with four equal destinations and a place entry, alerts straight after, short answers with
   the full wording one tap away, less chrome. Palette tokens only. */
@media (max-width: 47.99rem) {
  /* hero: approved globe kept; the text block starts higher and says less */
  main#main .he .hx-hero-inner { padding-top: 10rem; padding-bottom: 1.25rem; padding-inline: var(--p2p-m-gutter); }
  main#main .he .hx-tagline { font-size: .72rem; margin-bottom: .5rem; }
  main#main .he h1#home-h1 { font-size: var(--p2p-m-fs-display); margin-bottom: .6rem; }
  main#main .he .hx-lede:not(.hx-lede-m) { display: none; }   /* the founder's full lede stays in the DOM and on desktop */
  main#main .he .hx-lede.hx-lede-m { font-size: var(--p2p-m-fs-lede); line-height: var(--p2p-m-lh-body); margin: 0 0 1rem; max-width: 30ch; }
  /* four destinations as one even 2 x 2 set: icon and name; their one-line descriptions stay in the DOM for desktop */
  main#main .he .hx-paths-4 { gap: .5rem; }
  main#main .he .hx-paths-4 .hx-path[data-home-path] { grid-column: auto; position: static; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem; min-height: 4.25rem;
    margin: 0; padding: .7rem .8rem; border-radius: var(--p2p-r-m); border: 1px solid var(--p2p-line-strong); background: var(--p2p-canvas-2); box-shadow: none; text-align: left; }
  main#main .he .hx-paths-4 .hx-path[data-home-path]::after { content: none; display: none; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="story"] { margin-top: 0; }
  main#main .he .hx-paths-4 .hx-path[data-home-path] small { display: none; }
  main#main .he .hx-paths-4 .hx-path[data-home-path] strong { font: 650 .95rem/1.2 var(--p2p-font-head); color: var(--p2p-text); }
  main#main .he .hx-paths-4 .hx-path[data-home-path] svg { display: block; flex: none; width: 1.25rem; height: 1.25rem; color: var(--p2p-teal-soft); }
  main#main .he .hx-paths-4 .hx-path[data-home-path] { background: var(--p2p-canvas-2) !important; color: var(--p2p-text) !important; }
  main#main .he .hx-paths-4 .hx-path[data-home-path="earth"] { border-color: var(--p2p-teal); }
  /* place entry: the first thing most visitors want. The universal selector in its minimal mode (L7, home-place.js): a community
     name, postal code or ZIP in one box joined to Find; it opens the Almanac at that place. The selector's own 16px text and 48px
     rows come from the shared block. The fallback form (no script) keeps the same box. */
  main#main .he .hx-place { display: grid !important; grid-template-columns: auto 1fr auto; grid-template-areas: "i l l" "f f b"; gap: .45rem .6rem; align-items: center; margin-top: .75rem; }
  main#main .he .hx-place:has(> .hx-place-pp) { display: block !important; }
  main#main .he .hx-place > svg { grid-area: i; width: 1.15rem; height: 1.15rem; color: var(--p2p-teal-soft); }
  main#main .he .hx-place > label { grid-area: l; font: 700 .95rem/1.2 var(--p2p-font-head); color: var(--p2p-text); }
  main#main .he .hx-place > input { grid-area: f; min-height: var(--p2p-m-touch); min-width: 0; padding: 0 .9rem; border-radius: var(--p2p-r-pill); border: 1px solid var(--p2p-line-strong);
    background: var(--p2p-canvas-2); color: var(--p2p-text); font: 400 1rem/1.2 var(--p2p-font-body); }
  main#main .he .hx-place > input:focus-visible { outline: 3px solid var(--p2p-gold); outline-offset: 2px; }
  main#main .he .hx-place > button { grid-area: b; min-height: var(--p2p-m-touch); padding-inline: 1.2rem; }
  main#main .he .hx-place .pp-privacy { margin-top: .35rem; }
  main#main .he .hx-place .pp-legend { margin: 0 0 .4rem; font: 700 .95rem/1.2 var(--p2p-font-head); color: var(--p2p-text); }
  main#main .he .hx-reassure { margin: .75rem 0 0; font-size: .8rem; color: var(--p2p-support); }
  main#main .he .he-meta { padding: 0 var(--p2p-m-gutter) .75rem; }
  main#main .he .ehx-credit > summary { min-height: var(--p2p-m-touch); font-size: .85rem; }
  /* alerts straight after the hero, without extra air */
  main#main .tk { padding-block: 1.25rem; }
  /* film chapters: short answer, film, the full wording on request */
  main#main .p2p-chapter { padding-block: var(--p2p-m-section-y); }
  main#main .p2p-chapter .p2p-chapter__h { font-size: var(--p2p-m-fs-h2); }
  main#main .p2p-chapter .p2p-chapter__line { font-size: var(--p2p-m-fs-body); line-height: var(--p2p-m-lh-body); }
  main#main .p2p-chapter .p2p-chapter__short { color: var(--p2p-text); }
  main#main .p2p-chapter .p2p-mfold > .p2p-chapter__line { margin-top: .5rem; }
  /* outlook: the heading says what it is; the cards carry the content */
  main#main .wo-home .wo-intro { display: none; }
  main#main .wo-home h2 { font-size: var(--p2p-m-fs-h2); }
  /* sections share one rhythm */
  main#main :is(.fp, .hm-why, .hm-alerts, .hm-orgs, .wo-home, .ob) { padding-block: var(--p2p-m-section-y); }
  main#main :is(.hm-why, .hm-alerts, .hm-orgs) h2 { font-size: var(--p2p-m-fs-h2); }
  main#main .hm-orgs .p2-small { font-size: .85rem; }
  main#main .fp .fp-lede { font-size: var(--p2p-m-fs-body); }
}
