/* FOBC pocket guide. This file is loaded only below 768px; desktop is untouched. */
@media (max-width: 767px) {
  :root { --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --pocket-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--pocket-bottom) + 20px); }
  body { font-size: 17px; padding-bottom: var(--pocket-bottom); }
  .mobile-only { display: block; }
  .site-header { min-height: 78px; padding-block: 10px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 45px; height: 45px; }
  .brand span { font-size: 13px; line-height: 1.18; }
  .menu-toggle { padding: 8px 10px; font-size: 14px; min-height: 44px; gap: 8px; }
  .nav-enhanced #primary-nav { padding-bottom: 12px; }
  .mobile-nav { position: fixed; z-index: 25; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border-top: 1px solid var(--line); padding: 4px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 66px; padding: 8px 4px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.15; text-decoration: none; border-top: 2px solid transparent; }
  .mobile-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav a[aria-current] { color: var(--maroon); border-top-color: var(--maroon); }
  .mobile-nav a:focus-visible { outline-offset: -4px; }
  .pocket-editing .mobile-nav { display: none; }
  .btn { min-height: 50px; padding: 13px 18px; }
  .btn:active, .material-resource:active, .catch-up-link:active { filter: brightness(.94); }
  .text-link { min-height: 48px; }
  .inner-main { padding-bottom: 40px; }
  .page-hero { padding-block: 32px 28px; }
  .page-hero h1 { font-size: clamp(36px, 9.8vw, 46px); line-height: 1.04; margin-bottom: 20px; }
  .page-hero p { font-size: 17px; line-height: 1.5; margin-bottom: 20px; }
  .page-hero .text-link { margin: 0; }

  /* Home's identity is typographic; the date, not an illustration, anchors the event. */
  .home .hero { min-height: 0; display: block; }
  .home .hero-layout { display: block; padding-block: 26px 24px; position: relative; }
  .home .hero-layout::before { content: ''; display: block; width: 48px; height: 6px; border-left: 32px solid var(--maroon); border-right: 8px solid var(--gold); margin-bottom: 20px; animation: pocket-mark 500ms cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes pocket-mark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  .home .hero-copy h1 { font-size: clamp(43px, 12.5vw, 60px); line-height: 1.01; margin-bottom: 18px; max-width: 14ch; }
  .home .hero-copy > p { font-size: 16px; line-height: 1.5; margin-bottom: 10px; max-width: 42ch; }
  .home .hero-actions .btn { display: none; }
  .home .hero-actions { gap: 0; }
  .home .hero-artwork, .home .scroll-cue, .home .transition-space, .home [data-st-03-pixels] { display: none; }
  .home .next-event { margin-top: 0; padding: 28px var(--gutter) 26px; }
  .home .next-event-inner { position: relative; transform: none !important; }
  .home .next-event-inner > h2 { font-size: 16px; margin-bottom: 16px; }
  .home .next-event-layout { display: grid; gap: 20px; }
  .home .next-event-title { font-size: clamp(30px, 8vw, 40px); line-height: 1.08; max-width: none; padding-right: 82px; }
  .pocket-date { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; padding-left: 16px; border-left: 1px solid #bd7180; }
  .pocket-date > span { font-size: 15px; }
  .pocket-date strong { font-size: 65px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
  .home .next-event-date { font-size: 16px; }
  .home .next-event-time { font-size: 23px; }
  .home .next-event-place { font-size: 16px; }
  .home .next-event-summary > p { font-size: 16px; line-height: 1.5; }
  .home .next-event-summary .next-event-host { font-size: 14px; }
  .home .next-event-actions { gap: 8px; display: grid; }
  .home .next-event-actions .btn { width: 100%; }
  .home .next-event-actions .text-link { justify-content: space-between; width: 100%; }
  .catch-up { padding-block: 32px; border-bottom: 1px solid var(--line); }
  .catch-up h2 { font-size: 27px; margin-bottom: 18px; max-width: 17ch; }
  .catch-up-link { display: flex; align-items: center; gap: 18px; text-decoration: none; padding: 18px 0; border-block: 1px solid var(--line); }
  .catch-up-link > span { flex: 1; min-width: 0; }
  .catch-up-link time { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .catch-up-link strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 600; margin-bottom: 10px; }
  .catch-up-link span span { display: block; font-size: 14px; color: var(--muted); }
  .catch-up > .text-link { font-size: 14px; margin-top: 10px; }
  .learn-section { padding-block: 32px; }
  .learning-content { gap: 28px; }
  .learning-copy .section-intro { margin-bottom: 24px; }
  .learning-copy .section-intro h2 { font-size: 29px; line-height: 1.14; margin-bottom: 16px; }
  .learning-copy .section-intro p, .learning-copy article p { font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
  .learning-copy article h3 { font-size: 22px; margin-bottom: 12px; }
  .learning-copy article + article { padding-top: 20px; margin-top: 16px; }
  .home .book-panel { padding: 22px 20px 10px; }
  .home .book-panel h3 { margin-bottom: 12px; font-size: 25px; }
  .home .book-panel .book-note { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
  .mobile-disclosure { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; padding: 12px 0; text-align: left; font-size: 16px; font-weight: 600; }
  .mobile-disclosure svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms; }
  .mobile-disclosure[aria-expanded="true"] svg { transform: rotate(180deg); }
  .home .book-panel .mobile-disclosure { border-color: #bd7180; }
  .home .book-panel :focus-visible { outline-color: var(--gold); }
  .has-mobile-rows .book-table-wrap { display: none; }
  .mobile-book { display: none; }
  .has-mobile-rows .mobile-book { display: block; }
  .mobile-book > p:first-child { color: #f0d7dc; font-size: 14px; margin-block: 12px 18px; }
  #mobile-book-list { list-style: none; padding: 0; margin: 0; }
  #mobile-book-list li { padding-block: 18px; border-top: 1px solid #bd7180; }
  .mobile-asset-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
  .mobile-asset-heading > span > span { display: block; font-size: 14px; color: #f0d7dc; }
  .mobile-asset-heading > strong { text-align: right; overflow-wrap: anywhere; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
  .mobile-book dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; font-size: 14px; }
  .mobile-book dt { color: #f0d7dc; }
  .mobile-book dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .mobile-book dl > div:last-child { text-align: right; }
  .mobile-book-total { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid #bd7180; font-size: 16px; }
  .mobile-book-total strong { text-align: right; overflow-wrap: anywhere; min-width: 0; }
  .alumni-section { padding-block: 32px; }
  .alumni-section h2 { font-size: 19px; max-width: 23ch; margin-bottom: 24px; }
  .alumni-section > p { font-size: 12px; }
  .site-footer, .home .site-footer { padding-block: 28px; gap: 20px; }
  .footer-name { font-size: 21px; }
  .site-footer p { margin-top: 12px; }
  .footer-links { gap: 2px 16px; font-size: 14px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

  /* Destination pages: short openings and one obvious next action. */
  .events-heading { gap: 8px; }
  .events-heading > .text-link { font-size: 15px; }
  .events-view-switch { gap: 24px; }
  .events-view-tab { font-size: 17px; padding-bottom: 12px; }
  .events-view-panel { padding-top: 26px; }
  .program-entry { gap: 22px; padding-bottom: 28px; }
  .program-date { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
  .program-date strong { grid-column: 1; grid-row: 1 / 3; font-size: 58px; }
  .program-date span:first-child { grid-column: 2; grid-row: 1; }
  .program-date span:last-child { grid-column: 2; grid-row: 2; align-self: start; font-size: 14px; }
  .program-title { flex-direction: row; align-items: start; gap: 14px; }
  .program-title h3 { font-size: 29px; margin-bottom: 12px; min-width: 0; }
  .program-visual { width: 80px; padding: 12px 8px; }
  .program-visual.is-portrait { width: 80px; }
  .program-role { font-size: 14px; }
  .program-details > p { font-size: 16px; line-height: 1.5; }
  .program-location { margin-block: 20px; }
  .program-actions { display: grid; gap: 8px; }
  .program-actions .btn { width: 100%; }
  .pending-events { padding-top: 24px; }
  .materials-intro { font-size: 16px; margin-bottom: 24px; }
  .material-entry { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 28px; }
  .material-details { order: 0; }
  .material-details h3 { font-size: 28px; margin-bottom: 14px; }
  .material-date { font-size: 14px; }
  .material-details > p:not(.event-note) { font-size: 16px; line-height: 1.5; }
  .material-entry > .mobile-disclosure { order: 1; margin-top: 20px; }
  .material-preview { order: 2; width: 100%; margin-top: 8px; }
  .material-resources { margin-top: 20px; }
  .material-resource { min-height: 56px; gap: 10px; }
  .about-study, .membership-section, .chat-details { padding-block: 26px; gap: 20px; }
  .about-study h2, .membership-section h2, .chat-details h2 { font-size: 28px; margin-bottom: 0; }
  .topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .topic-list li { display: flex; align-items: center; min-height: 60px; font-size: 14px; padding: 12px; }
  .membership-rows h3, .detail-rows h3 { font-size: 23px; }
  .membership-rows p, .detail-rows p { font-size: 16px; }
  .cta-band { padding: 24px 20px; margin-block: 20px 0; }
  .cta-band h2 { font-size: 30px; }
  .officer-grid { display: block; }
  .officer { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; padding-block: 24px; border-top: 1px solid var(--line); }
  .officer .well { grid-column: 1; grid-row: 1 / 5; width: 84px; height: 105px; aspect-ratio: 4 / 5; margin: 0; align-self: start; }
  .officer h2 { grid-column: 2; grid-row: 1; font-size: 23px; margin-bottom: 8px; }
  .officer .role { grid-column: 2; grid-row: 2; font-size: 14px; margin-bottom: 6px; }
  .officer .mobile-disclosure { grid-column: 2; grid-row: 3; border-top: 0; font-size: 14px; padding-block: 8px; }
  .officer .links { grid-column: 2; grid-row: 4; margin: 0; gap: 20px; font-size: 14px; }
  .officer .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .officer .bio { grid-column: 1 / -1; grid-row: 5; margin-block: 18px 0; font-size: 16px; }
  .pending-portrait span { font-size: 17px; }
  .join-layout .page-hero { padding-top: 30px; }
  .join-layout h1 { font-size: 42px; }
  .join-help { font-size: 15px !important; }
  .form-wrap { padding-top: 0; }
  .form-wrap h2 { font-size: 28px; margin-bottom: 24px; }
  .form-panel { gap: 20px; }
  .form-panel label { font-size: 16px; }
  .form-panel input, .form-panel select { font-size: 16px; }
  [data-page="chat"] .page-hero > .btn, [data-page="thank-you"] .page-hero > .btn { width: 100%; }
  [data-page="404"] .hero-actions { display: grid; gap: 8px; }
  @media (prefers-reduced-motion: reduce) { .home .hero-layout::before { animation: none; } }
}
