/* ==========================================================================
   Phone layout (v1.13.0-phone.0, OWNER 2026-09-30: Option C "Start here")
   Everything here applies below 768px only. Computers and tablets keep the
   existing design; the only rules outside the media query hide the phone-only
   pieces and keep the footer's link columns looking exactly as before.
   Prototype and Mobbin references: Mobile_Redesign_2026-09-29/.
   ========================================================================== */

.ph-home, .ph-dock, .ph-sheet, .ph-scrim,
.nav__toggle-label, .nav__toggle-label--close, .mnav-search, .mnav-group { display: none; }

/* Footer link columns are <details open>; on desktop they must not fold. */
.footer__acc > summary { display: block; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.footer__acc > summary::-webkit-details-marker { display: none; }

@media (max-width: 767px) {
  :root { --ph-mute: #6b625c; --ph-ease: cubic-bezier(0.16, 1, 0.3, 1); --ph-safe: env(safe-area-inset-bottom, 0px); }

  /* ---------- Header: logo, name and a labeled Menu button ---------- */
  .utilbar, .header__search { display: none !important; }
  .header .nav__toggle {
    display: inline-grid;
    grid-template-columns: 20px auto; grid-template-rows: repeat(3, 2px);
    column-gap: 8px; row-gap: 5px; align-content: center;
    width: auto; height: 44px; padding: 0 12px;
  }
  .nav__toggle-bar { grid-column: 1; }
  .nav__toggle-label {
    display: block; grid-column: 2; grid-row: 1 / 4; align-self: center;
    font: 600 15px/1 var(--font-body); color: var(--ink);
  }
  .nav__toggle-label--close { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-label { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-label--close { display: block; color: var(--cream); }

  /* ---------- Menu: search, then both lists under plain headings ---------- */
  .mobile-nav__scroll { padding: 12px 20px 24px; }
  .mnav-switch { display: none; }
  .mnav-panel[hidden] { display: block; }
  .mnav-search {
    display: flex; align-items: center; gap: 10px; width: 100%;
    height: 50px; padding: 0 14px; margin: 2px 0 6px;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    font: 400 16px var(--font-body); color: var(--ph-mute); text-align: left; cursor: pointer;
  }
  .mnav-group, .mnav-head { display: block; font: 600 13px/1 var(--font-body); color: var(--ph-mute); margin: 18px 4px 8px; }
  .mnav-rows { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .mnav-rows li + li { border-top: 1px solid var(--line); }
  .mnav-rows a { position: relative; display: block; padding: 13px 42px 13px 16px; border-bottom: 0; min-height: 60px; }
  .mnav-rows a::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
    border-right: 1.75px solid #b9aea2; border-top: 1.75px solid #b9aea2;
    transform: translateY(-50%) rotate(45deg);
  }
  .mnav-rows strong { font: 600 16.5px/1.25 var(--font-body); letter-spacing: 0; }
  .mnav-rows span { font-size: 14px; color: var(--ph-mute); }
  .mnav-grid { padding: 0 4px; }
  .mnav-grid a { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--ink-soft); padding: 0; }

  /* ---------- Buttons, icons, rows shared by the phone pieces ---------- */
  .ph-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .ph-ic--sm { width: 18px; height: 18px; }
  .ph-ic--out { transform: rotate(-45deg); }
  .ph-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
    font: 600 16px/1 var(--font-body); white-space: nowrap; text-decoration: none;
    transition: background-color .2s var(--ph-ease), transform .2s var(--ph-ease);
  }
  .ph-btn:active { transform: scale(0.98); }
  .ph-btn--red { background: var(--red); color: var(--white); }
  .ph-btn--red:hover { background: var(--red-deep); color: var(--white); }
  .ph-btn--line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .ph-rows { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .ph-rows li + li { border-top: 1px solid var(--line); }
  .ph-row {
    position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
    min-height: 64px; padding: 11px 42px 11px 14px;
    background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); text-decoration: none;
    font-family: var(--font-body);
  }
  .ph-row::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
    border-right: 1.75px solid #b9aea2; border-top: 1.75px solid #b9aea2;
    transform: translateY(-50%) rotate(45deg);
  }
  .ph-row:hover { background: #fdfbf8; }
  .ph-row__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f7e9e6; color: var(--red); flex: none; }
  .ph-row__txt { flex: 1; min-width: 0; }
  .ph-row__txt strong { display: block; font: 600 16.5px/1.25 var(--font-body); }
  .ph-row__txt span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--ph-mute); }
  .ph-link { display: inline-flex; align-items: center; gap: 6px; font: 600 16px var(--font-body); color: var(--red); text-decoration: none; }

  /* ---------- Action dock: Talk | Apply in the thumb zone ---------- */
  .ph-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + var(--ph-safe));
    background: rgba(250, 246, 241, 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 -1px 0 var(--line);
    transition: transform .4s var(--ph-ease);
  }
  .ph-dock.is-hidden { transform: translateY(110%); }
  .ph-dock__talk { gap: 9px; padding-left: 6px; }
  .ph-dock__talk img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #efe4d6; }
  .footer { padding-bottom: calc(76px + var(--ph-safe)); }

  /* ---------- Sheets ---------- */
  .ph-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(26, 22, 20, 0.42); opacity: 0; transition: opacity .3s var(--ph-ease); }
  .ph-scrim[hidden] { display: none; }
  .ph-scrim.is-open { opacity: 1; }
  .ph-sheet {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    max-height: calc(100dvh - 24px);
    background: var(--cream); color: var(--ink);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px -12px rgba(26, 22, 20, 0.28);
    transform: translateY(104%);
    transition: transform .42s var(--ph-ease);
  }
  .ph-sheet[hidden] { display: none; }
  .ph-sheet.is-open { transform: translateY(0); }
  .ph-sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: #d6ccbf; margin: 8px auto 0; flex: none; }
  .ph-sheet__top { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 4px 20px; flex: none; }
  .ph-sheet__title { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.01em; margin: 0; }
  .ph-sheet__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
  .ph-sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(20px + var(--ph-safe)); }
  .ph-say { font: 400 18px/1.55 var(--font-display); margin: 2px 0 18px; }
  .ph-sheet .ph-rows { margin-bottom: 14px; }
  .ph-sheet .ph-rows + .ph-note { margin: -4px 2px 14px; }
  .ph-goal-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-note { margin: 10px 2px 0; font-size: 13px; color: var(--ph-mute); }
  .ph-who { display: flex; align-items: center; gap: 14px; padding: 4px 0 16px; }
  .ph-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #efe4d6; flex: none; }
  .ph-who__name { font: 600 21px/1.15 var(--font-display); margin: 0; }
  .ph-who__meta { font-size: 14px; color: var(--ph-mute); margin: 3px 0 0; line-height: 1.4; }
  .ph-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
  .ph-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 14px 6px 12px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
    font: 600 14.5px/1 var(--font-body); color: var(--ink); text-decoration: none;
  }
  .ph-quick a:first-child { background: var(--red); border-color: var(--red); color: var(--white); }
  .ph-quick .ph-ic { width: 24px; height: 24px; }
  .ph-fine { font-size: 12.5px; line-height: 1.5; color: var(--ph-mute); margin: 14px 4px 0; }
  .ph-fine a { color: var(--ink-soft); text-decoration: underline; }

  /* ---------- Homepage: Option C replaces the desktop sections ---------- */
  .home-template .hero, .home-template .strip, .home-template .latest-episode,
  .home-template .mmr-live-wrap--home, .home-template .episodes, .home-template .tools,
  .home-template .about, .home-template .optin { display: none !important; }
  .ph-home { display: block; padding-bottom: 8px; }
  .ph-intro { padding: 18px 20px 0; }
  .ph-me { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
  .ph-me img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #efe4d6; border: 3px solid var(--white); box-shadow: 0 6px 16px -8px rgba(26, 22, 20, 0.4); }
  .ph-me__name { font: 600 18px/1.15 var(--font-display); margin: 0; }
  .ph-me__meta { font-size: 13.5px; color: var(--ph-mute); margin: 3px 0 0; }
  .ph-q { font: 600 38px/1.05 var(--font-display); letter-spacing: -0.028em; margin: 0 0 8px; text-wrap: balance; }
  .ph-lede { margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; }
  .ph-goals .ph-row { min-height: 72px; }
  .ph-goals .ph-row__ic { width: 44px; height: 44px; border-radius: 13px; }
  .ph-goals .ph-row__txt strong { font-size: 17.5px; }
  .ph-row--quiet .ph-row__ic { background: var(--paper); color: var(--ink-soft); }
  .ph-creds { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 16px 2px 0; padding: 0; font-size: 14px; color: var(--ph-mute); }
  .ph-creds li { display: inline-flex; align-items: center; gap: 6px; }
  .ph-creds li::before {
    content: ""; width: 9px; height: 5px; margin-bottom: 3px;
    border-left: 1.75px solid var(--ph-mute); border-bottom: 1.75px solid var(--ph-mute); transform: rotate(-45deg);
  }
  .ph-sec { padding: 42px 20px 0; }
  .ph-h2 { font: 600 27px/1.12 var(--font-display); letter-spacing: -0.018em; margin: 0 0 16px; }
  .ph-h2--sm { font-size: 24px; margin-bottom: 8px; }
  .ph-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #e9dfd2; }
  .ph-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .ph-thumb__play {
    position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
    background: rgba(26, 22, 20, 0.86); color: #fff; font: 600 14.5px/1 var(--font-body);
  }
  .ph-ep-title { font: 600 20px/1.25 var(--font-display); margin: 14px 0 6px; }
  .ph-ep-title a { color: var(--ink); text-decoration: none; }
  .ph-ep-meta { font-size: 14px; color: var(--ph-mute); margin: 0 0 16px; }
  /* The next-live card joins the cream world here: red stays for the one action */
  .ph-live .mmr-live { margin: 0; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
  .ph-live .mmr-live__label { color: var(--ph-mute); letter-spacing: .04em; }
  .ph-live .mmr-live__when { color: var(--ink); }
  .ph-live .mmr-live__where { color: var(--ink-soft); }
  .ph-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 2px 20px 8px; margin: 22px -20px 8px; scroll-padding-inline: 20px;
  }
  .ph-rail::-webkit-scrollbar { display: none; }
  .ph-rail a { scroll-snap-align: start; text-decoration: none; color: var(--ink); }
  .ph-rail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #e9dfd2; }
  .ph-rail small { display: block; margin: 9px 0 3px; font-size: 13px; color: var(--ph-mute); }
  .ph-rail span { font: 600 15.5px/1.3 var(--font-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ph-meet {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
    margin: 44px 20px 0; background: var(--paper); border-radius: 22px; overflow: hidden;
  }
  .ph-meet__txt { padding: 22px 0 22px 20px; }
  .ph-meet img { width: 120px; height: 120px; margin-right: 20px; border-radius: 50%; }
  .ph-meet__txt p { margin: 0 0 12px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
  .home-template .newsletter-cta { margin-top: 44px; }
  .newsletter-cta .eyebrow { display: none; }
  .ph-nw { white-space: nowrap; }

  /* ---------- Cookie banner (lives in Ghost Code Injection): compact card ---------- */
  html #mmr-consent {
    left: 10px; right: 10px; bottom: calc(10px + var(--ph-safe));
    padding: 14px 14px 12px; border: 0; border-radius: 18px;
    background: var(--ink); color: #f3ede5;
    box-shadow: 0 10px 28px -10px rgba(26, 22, 20, 0.5);
    font-size: 14px; line-height: 1.45;
  }
  html #mmr-consent p { margin: 0 2px 12px; }
  html #mmr-consent a { color: #fff; }
  html #mmr-consent .mmr-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html #mmr-consent button { min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 15px; }
  html #mmr-consent .mmr-accept { background: #f3ede5; color: var(--ink); border: 0; }
  html #mmr-consent .mmr-decline { background: transparent; color: #f3ede5; border: 1.5px solid rgba(243, 237, 229, 0.5); }

  /* ---------- Footer: link lists fold away ---------- */
  .footer__top { row-gap: 0; }
  .footer__col--brand { margin-bottom: 20px; }
  .footer__acc { border-top: 1px solid rgba(250, 246, 241, 0.12); }
  .footer__acc > summary {
    pointer-events: auto; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; min-height: 54px;
  }
  .footer__acc > summary h4 { margin: 0; }
  .footer__acc > summary::after {
    content: ""; width: 8px; height: 8px; margin-right: 6px;
    border-right: 1.75px solid currentColor; border-top: 1.75px solid currentColor;
    transform: rotate(135deg); opacity: .6; transition: transform .3s var(--ph-ease);
  }
  .footer__acc[open] > summary::after { transform: rotate(-45deg); }
  .footer__acc ul { padding-bottom: 12px; }
  .footer__acc li a { display: inline-flex; min-height: 44px; align-items: center; }

  @media (prefers-reduced-motion: reduce) {
    .ph-sheet, .ph-scrim, .ph-dock, .ph-btn { transition: none; }
  }
}

@media (max-width: 359px) {
  .ph-dock .ph-btn { font-size: 15px; }
  .ph-dock__talk img { display: none; }
  .ph-dock__talk { padding-left: 12px; }
  .ph-q { font-size: 34px; }
}
