/* Phone pages (/m/). Loaded after site.css, which already lays content out in one column
   at this width. This file adds the phone chrome: a slim top bar and a tab bar at the bottom. */

:root { --header-h: 3.5rem; --tabs-h: 3.75rem; }
html.m body { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }

.m-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  transition: transform 0.5s var(--ease);
}
.m-header.is-hidden { transform: translateY(-100%); }
.m-header:focus-within { transform: none; }
.m-header .brand-mark { width: 1.75rem; height: 1.75rem; }

.m-tabs {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper); border-top: 1px solid var(--rule);
}
.m-tabs a {
  display: grid; justify-items: center; align-content: center; gap: 0.2rem;
  font-size: 0.72rem; font-weight: 500; text-decoration: none; color: var(--text-soft);
}
.m-tabs svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.m-tabs a[aria-current="page"] { color: var(--navy); }
.m-tabs a[aria-current="page"] svg { stroke-width: 2; }

.m-footer { padding-block: 2.5rem 2rem; }
.m-footer .wrap { display: grid; gap: 1.5rem; }
.m-footer .footer-nav { grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
.m-footer .footer-legal { padding-top: 1.5rem; }

/* Tighter rhythm and thumb-sized targets */
html.m { --section: clamp(3.5rem, 14vw, 5rem); }
html.m .button { padding: 1.05rem 1.5rem; }
html.m .button--small { padding: 0.65rem 1rem; }
html.m .hero { min-height: calc(100svh - var(--tabs-h)); }
html.m .hero-actions .button { width: 100%; }
html.m .service { padding-block: 1.4rem; }
html.m .anim .oak-sticky, html.m.anim .oak-sticky { height: calc(100svh - var(--tabs-h)); }
html.m .read-progress { top: var(--header-h); }
