/* Medicine Wild: restrained, readable mobile navigation and editorial actions. */
@media (max-width:760px) {
  :root { --mw-gutter:24px; --mw-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18' viewBox='0 0 34 18'%3E%3Cpath d='M1 9h30M24 2l7 7-7 7' fill='none' stroke='black' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  body { -webkit-text-size-adjust:100%; }
  body .mw-legacy-arrow,
  body :is(a.readline,a.text-link,a.button,a.apx-link,a.apx-button)>span[aria-hidden="true"] { display:none; }
  body .mw-editorial-action::after,
  body :is(a.readline,a.text-link)::after,
  body .site-header .main-nav>a::after {
    content:""; display:inline-block; width:30px; height:18px; min-width:30px; flex:0 0 30px;
    background:currentColor; -webkit-mask:var(--mw-arrow) center/contain no-repeat; mask:var(--mw-arrow) center/contain no-repeat;
    margin:0; vertical-align:middle; border:0; transform:none;
  }
  body .mw-editorial-action,
  body :is(a.readline,a.text-link) { display:inline-flex; align-items:center; gap:13px; max-width:100%; line-height:1.55; white-space:normal; }
  body :is(.button.button,.protocol-button,.lab-edit-button,.home-apothecary-shop,.home-apothecary-labs,.apx-button,.apx-protocol-cta,.apx-shop-cta) {
    border-radius:2px; min-height:48px; padding:14px 18px; font-size:11px; font-weight:500; letter-spacing:.075em;
  }
  body :is(a.protocol-button,a.lab-edit-button,a.home-apothecary-shop) > svg { display:none; }
  body :is(a.text-link,a.readline) { font-size:11px; letter-spacing:.09em; min-height:44px; }
  body .site-header .masthead { height:auto; min-height:0; padding:20px var(--mw-gutter) 8px; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:auto 44px; align-items:center; gap:8px 16px; }
  body .site-header .masthead > .brand.brand-original { grid-column:1 / -1; grid-row:1; position:static; transform:none; width:360px; max-width:100%; margin:0; }
  body .site-header .brand .original-logo-window { width:100%; max-width:100%; }
  body .site-header .brand img { width:100%; height:auto; }
  body .site-header .menu-button { display:inline-flex; grid-column:1; grid-row:2; position:static; align-items:center; justify-content:flex-start; min-width:0; min-height:44px; padding:0; }
  body .site-header .header-tools { position:static; grid-column:2; grid-row:2; justify-self:end; }
  body .site-header :is(.menu-button,.icon-button) { background:transparent; border:0; border-radius:0; font:500 9px/1.4 var(--sans); letter-spacing:.09em; padding:0; box-shadow:none; }
  body .site-header .icon-button { display:inline-flex; min-width:0; align-items:center; justify-content:flex-end; }
  body .site-header .icon-button .search-icon { display:none; }
  body .site-header .icon-button .label { display:inline; }
  body .site-header :is(.menu-button,.icon-button):focus-visible { outline:2px solid #785336; outline-offset:5px; }
  body .site-header .main-nav.open { display:grid; grid-template-columns:minmax(0,1fr); gap:0; padding:8px var(--mw-gutter) 20px; }
  body .site-header .main-nav>a,
  body .site-header .main-nav>a.nav-supplements { display:flex; align-items:center; justify-content:space-between; min-height:52px; padding:14px 0; gap:20px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; color:var(--ink); font:500 10px/1.5 var(--sans); letter-spacing:.12em; }
  body .site-header .main-nav>a.nav-supplements svg { display:none; }
  body .site-header .nav-mobile-utility { display:flex; flex-wrap:wrap; grid-column:1; gap:14px 22px; padding:0 0 12px; margin:0; }
  body .site-header .nav-mobile-utility .nav-start { background:none; color:var(--ink); border:0; border-radius:0; padding:0; min-height:44px; font-size:10px; }
  body .site-header .nav-mobile-utility .nav-start::after { width:24px; min-width:24px; flex-basis:24px; }
  body .site-header .mast-side.mast-start { display:none; }
  body .site-search { padding:20px var(--mw-gutter); }
  body input[type=email],body input[type=search],body input[type=text],body select { font-size:16px; max-width:100%; }
  body .wild-hero { height:auto; min-height:620px; }
  body .wild-hero-copy { padding:82px var(--mw-gutter) 92px; max-width:100%; }
  body .wild-hero h1 { font-size:clamp(57px,16vw,77px); line-height:.97; letter-spacing:-.035em; }
  body .wild-hero-copy>p { font-size:14px; line-height:1.8; max-width:31ch; }
  body .hero-reader-actions { display:flex; flex-direction:column; align-items:flex-start; gap:15px; }
  body .hero-reader-actions .button { width:auto; max-width:100%; justify-content:space-between; font-size:10px; }
  body .hero-journal-link,body .hero-doctor-link { min-height:44px; font-size:10px; line-height:1.65; }
  body .hero-doctor-link { margin-top:10px; }
  body .section-heading { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
  body .section-heading>.text-link { max-width:100%; padding:0 0 5px; font-size:10px; }
  body .section { padding-inline:var(--mw-gutter); margin-block:60px; }
  body .section h2,body .section-heading h2 { font-size:clamp(36px,10vw,45px); line-height:1.06; }
  body :is(.home-foundations-actions,.hero-reader-actions,.founder-links,.michele-editorial-links) { flex-wrap:wrap; }
  body .home-foundations-actions { flex-direction:column; align-items:flex-start; gap:10px; }
  body .home-foundations-actions .button { width:auto; }
  body .ritual-chapters { padding:24px var(--mw-gutter) 36px; }
  body .ritual-chapter { grid-template-columns:22px minmax(0,1fr) 32px; gap:13px; padding:21px 0; }
  body .ritual-chapter-mark svg { display:none; }
  body .ritual-chapter-mark { display:block; width:auto; color:#6d765f; }
  body .ritual-chapter-mark>span { display:block; font:10px/1.5 var(--sans); letter-spacing:.08em; }
  body .ritual-chapter-name { font-size:26px; line-height:1.16; letter-spacing:-.02em; }
  body .ritual-chapter-description { font-size:11px; line-height:1.65; margin-top:4px; }
  body .ritual-chapter-arrow { display:block; width:32px; height:18px; border:0; border-radius:0; font-size:0; color:#5b694e; background:currentColor; -webkit-mask:var(--mw-arrow) center/contain no-repeat; mask:var(--mw-arrow) center/contain no-repeat; }
  body .ritual-chapter:hover .ritual-chapter-arrow { transform:none; }
  body .apx-wrap { width:calc(100% - 2 * var(--mw-gutter)); }
  body .apx-hero { gap:30px; padding-block:32px; }
  body .apx-hero h1 { font-size:clamp(42px,12vw,58px); line-height:1.04; overflow-wrap:normal; }
  body .apx-nav { display:flex; flex-wrap:wrap; gap:0 18px; padding-block:12px; }
  body .apx-nav a { min-height:44px; display:inline-flex; align-items:center; font-size:11px; }
  body .apx-actions,body .apx-approved-actions { gap:12px; }
  body .apx-collection-card>div:last-child { flex-wrap:wrap; }
  body .apx-collection-card h3 { line-height:1.12; }
  body .apx-note { gap:25px; }
  body .apx-note>div { min-width:0; }
  body .apx-note p { line-height:1.85; }
  body .apx-test-card { min-width:0; }
  body .apx-test-card h3 { overflow-wrap:anywhere; }
  body .botanical-edit-grid { grid-template-columns:minmax(0,1fr); gap:36px; }
  body .botanical-edit-grid .card { grid-column:auto; }
  body .botanical-edit-grid .card:not(:first-child) h3 { font-size:31px; }
  body .botanical-edit-grid .card:not(:first-child) p { font-size:13px; }
  body .botanical-edit-grid .card .card-image { aspect-ratio:4/3; }
  body .footer { padding-inline:var(--mw-gutter); }
  body :is(.footer-email-row,.guide-signup-row) { flex-wrap:wrap; }
}
@media (max-width:360px) {
  :root { --mw-gutter:20px; }
  body .site-header .masthead { padding-inline:20px; gap:8px; }
  body .ritual-chapter-name { font-size:24px; }
}
@media (prefers-reduced-motion:reduce) {
  .mw-editorial-action::after { transition:none; }
}
