/* The frame around every page of the site: the top bar, the menu, search, the Guide toolbox and the footer.
   mockups/site/build.py puts it around each page; the front page and the inner pages share it whole.
   Every name here starts with px- (or is one of the ids site.js drives), so it never meets the front page's own
   classes. Colours come from palettes.css: Honey first (Leon, 25 Nov 2026), the others from the menu. */

.px-top, .px-sheet, .find, .px-foot { font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.px-top a, .px-sheet a, .find a, .px-foot a { text-decoration: none; }
.px-top button, .px-sheet button, .find button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.px-top svg.ic, .px-sheet svg.ic, .find svg.ic { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.px-in { max-width: 1360px; margin: 0 auto; padding: 0 20px; }

/* ---------- the logo: ProxiCare in capitals, the i as tall as the word ---------- */
.px-top .lg, .px-sheet .lg, .px-foot .lg { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; color: var(--teal); --lg-a: var(--logo-a, var(--orange)); --lg-b: var(--logo-b, var(--orange)); font-size: 13px; }
.px-top .lg svg, .px-sheet .lg svg, .px-foot .lg svg { display: inline-block; vertical-align: baseline; overflow: visible; }
.px-top .lablogo, .px-sheet .lablogo, .px-foot .lablogo { display: inline-flex; align-items: center; color: var(--teal); font-size: inherit; }

/* ---------- the bar ---------- */
.px-top { position: sticky; top: 0; z-index: 60; padding: 10px 10px 0; }
.px-bar { display: flex; align-items: center; gap: 4px; max-width: 1360px; margin: 0 auto; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-radius: 999px; padding: 6px 6px 6px 20px; transition: box-shadow .3s; }
.px-top.stuck .px-bar { box-shadow: 0 1px 2px rgba(16,21,23,.04), 0 12px 32px -14px rgba(23,50,62,.24); }
.px-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.px-links { display: none; gap: 2px; }
.px-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.px-links a:hover { background: var(--chip, #F2F5F6); }
.px-links a[aria-current="page"] { background: var(--teal-soft); }
.px-join { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.px-join:hover { background: var(--teal-d, var(--teal)); }
.px-burger { width: 44px; height: 44px; border-radius: 50%; background: var(--chip, #F2F5F6); display: grid; place-items: center; flex: none; }
.px-burger i, .px-burger i::before, .px-burger i::after { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.px-burger i::before, .px-burger i::after { content: ""; position: absolute; left: 0; }
.px-burger i::before { top: -6px; }
.px-burger i::after { top: 6px; }
@media (max-width: 420px) { .px-bar { padding-left: 14px; } .px-join { padding: 0 14px; font-size: 14.5px; } .px-top .lg { font-size: 11.5px; } }
@media (min-width: 1100px) { .px-links { display: flex; margin-right: 6px; } .px-logo { margin-right: 18px; } .px-links { margin-right: auto; } }

/* ---------- search and the Guide toolbox, in the bar ---------- */
.tools { display: flex; align-items: center; gap: 2px; }
.tools button { display: inline-flex; align-items: center; gap: 7px; height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 700; }
.tools button:hover, .tbx.open > button { background: var(--chip, #F2F5F6); }
.tbx { position: relative; }
.tbx[hidden] { display: none; }
.tbx .w { display: none; }
.tbx .tbx-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; }
.tbx-menu { display: none; position: absolute; right: 0; top: calc(100% + 14px); width: 320px; padding: 6px 0; background: #fff; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(16,21,23,.4); z-index: 65; }
.tbx.open .tbx-menu { display: block; }
.tbx-menu a, .sheet-tbx a { display: block; padding: 11px 18px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.35; }
.tbx-menu a:hover, .sheet-tbx a:hover { background: var(--chip, #F2F5F6); }
.tbx-menu small, .sheet-tbx small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbx-menu .tbx-more { padding: 6px 18px; color: var(--muted); font-size: 14px; }
.tbx-menu .p, .sheet-tbx .p { margin-left: 4px; color: var(--accent-ink, var(--teal)); }
.tbx-menu a.all, .sheet-tbx a.all { margin-top: 4px; border-top: 1px solid var(--line); color: var(--accent-ink, var(--teal)); }
@media (min-width: 1300px) { .tbx .w { display: inline; } }

.find { position: fixed; inset: 0 0 auto 0; z-index: 70; background: var(--bg); box-shadow: 0 24px 50px -20px rgba(16,21,23,.35); }
.find[hidden] { display: none; }
.find .px-fbar { display: flex; align-items: center; gap: 14px; height: 72px; color: var(--muted); }
.find input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 20px/1.2 'Lato', system-ui, sans-serif; }
.find input::-webkit-search-cancel-button { display: none; }
.find .px-x { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chip, #F2F5F6); color: var(--ink); }
.find .res { max-height: 64vh; overflow-y: auto; }
.find .res:not(:empty) { padding-bottom: 14px; }
.find .res a { display: block; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.find .res a:hover b { color: var(--teal); }
.find .res b { display: block; font-size: 18px; font-weight: 700; }
.find .res a span { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.find .res mark { background: var(--teal-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.find .res p { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.find .res p a { display: inline; padding: 0; border: 0; color: var(--teal); text-decoration: underline; }
.find .res a.all b { color: var(--teal); }

/* ---------- the menu: the site, search, the toolbox and the colours ---------- */
.px-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(16,21,23,.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.px-sheet[hidden] { display: none; }
.px-sheet .px-panel { position: absolute; right: 10px; top: 10px; width: min(440px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; background: #fff; border-radius: 28px; padding: 8px 8px 16px; box-shadow: 0 24px 60px -20px rgba(16,21,23,.45); color: var(--ink); }
.px-sheet .px-hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 14px; }
.px-sheet .px-x { width: 44px; height: 44px; border-radius: 50%; background: var(--chip, #F2F5F6); display: grid; place-items: center; }
.px-sheet .px-sub { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft, var(--muted)); padding: 16px 14px 6px; }
.px-sheet nav a, .px-sheet .sheet-find { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 16px; color: var(--ink); font-size: 19px; font-weight: 700; text-align: left; }
.px-sheet nav a:hover, .px-sheet .sheet-find:hover { background: var(--chip, #F2F5F6); }
.px-sheet nav a[aria-current="page"] { background: var(--teal-soft); }
.px-sheet .sheet-tbx[hidden] { display: none; }
.px-sheet .sheet-tbx a { border-radius: 16px; padding: 11px 14px; }
.px-pals { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px; }
.px-pals button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px 0 5px; border-radius: 999px; background: var(--chip, #F2F5F6); color: var(--ink); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.px-pals button:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.px-pals button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.px-pals i { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.px-sheet .px-go { display: flex; margin: 18px 6px 0; }
.px-sheet .px-go .px-join { flex: 1; min-height: 52px; font-size: 17px; }

/* ---------- the footer ---------- */
.px-foot { margin: 12px 8px 12px; background: #fff; border-radius: 28px; padding: 36px 0 26px; color: var(--ink); font-size: 17px; line-height: 1.5; }
.px-foot .px-flogo { display: inline-flex; align-items: center; min-height: 44px; }
.px-foot .lg { font-size: 15px; }
.px-foot .px-tl { color: var(--muted); margin-top: 8px; }
.px-foot h4 { font: 700 13px/1.3 'Lato', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--soft, var(--muted)); margin: 0 0 8px; }
.px-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 26px; }
.px-fgrid .px-help { grid-column: 1 / -1; }
.px-help a { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; min-height: 44px; padding: 8px 0; color: var(--muted); }
.px-help a b { color: var(--ink); font-size: 18px; }
.px-fl a { display: block; padding: 9px 0; color: var(--muted); }
.px-fl a:hover { color: var(--ink); }
.px-legal { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft, var(--muted)); }
@media (min-width: 960px) {
  .px-foot { margin: 16px 16px 16px; padding: 48px 0 30px; }
  .px-in { padding: 0 40px; }
  .px-fgrid { grid-template-columns: 1.3fr 1fr 1fr; }
  .px-fgrid .px-help { grid-column: auto; }
  .px-legal { flex-direction: row; justify-content: space-between; }
}
