/* Shared look for the sign-in page and the customer portal. Tokens and type match FitLab (web/fitlab.html) so
   staff and customers see one brand. */

/* The look matches FitLab (README "How FitLab looks", "Brand rules"): white and a cool, navy-tinted gray, the brand's navy
   as the ink, one accent (PureFlight blue), the system font for reading (San Francisco on Apple devices; nothing
   downloaded) and the brand's serif, Playfair Display, for titles and section headings (the owner's brand, direction B:
   the first words navy and heavy, the blue words light, a gold full stop). The gold is used sparingly. */
:root{
  --bg:#FFFFFF; --bg-2:#F4F6F9; --surface:#FFFFFF; --surface-2:#F4F6F9;
  --ink:#0E1B30; --ink-2:#2E3747; --muted:#59606B; --line:#D3D9E2; --line-2:#E6EAF0;
  --accent:#1F4FA3; --accent-fill:#1F4FA3; --accent-press:#183F84; --accent-soft:#EDF2FA; --on-accent:#FFFFFF; --sky:#8FB3E3; --band:#D3E0F4;
  --chip:#F0F3F7; --good:#1D7A4B; --good-soft:#E7F4EC; --warn:#975F00; --warn-soft:#FBF2E0;
  --bad:#B03A2E; --bad-soft:#FCEBE8; --bad-fill:#B03A2E; --head:#0E1B30; --head-ink:#FFFFFF; --head-muted:#B9C6D8;
  --display:"Playfair Display", Georgia, "Times New Roman", serif;
  --body:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r:14px; --r-lg:22px;
  --shadow:none;
  --head-line:#0E1B30; --head-accent:#8FB3E3; --stage:#F4F6F9; --none-tile:var(--stage);
  /* the brand pack's colors (navy #0E1B30, blue #1F4FA3, light blue #8FB3E3, gold #D9B36A, slate #59606B, pale #B9C6D8):
     --gold for its few accents, and the --br-* the logos and marks are drawn in (img/brand/brand.svg: the owner's on-light
     files in light, their on-dark colors in dark) */
  --navy:#0E1B30; --gold:#D9B36A;
  --br-ink:#0E1B30; --br-blue:#1F4FA3; --br-sub:#59606B; --br-gold:#D9B36A; --br-arc:#2F5F9E; --br-ring:#0E1B30; --br-knock:#FFFFFF;
  --warn-ink:#7A4C00; --good-ink:#156B40; /* tag text on its own tint: AA at 12 px */
  --sw-ring:#7C7C82; --sw-knob:#7C7C82; /* an off switch's outline and knob: 4:1 on white, 3.7:1 on the gray panels */
  --panel:#FFFFFF; /* a panel inside a card (the FitLab read, stopping power, the run steps); lifted in dark */
  /* the phone's own bar at the bottom (iOS's home indicator; Android's navigation bar in the app, css/app.css
     --psn-bottom): sheets and dialogs end above it, or pad their last row clear of it */
  --safe-bottom:var(--psn-bottom, env(safe-area-inset-bottom, 0px));
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5L6 6.25 10.75 1.5' fill='none' stroke='%236E6E73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5L6 6.25 10.75 1.5' fill='none' stroke='%231F4FA3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); /* a select's one chevron (FitLab's) */
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#05080F; --bg-2:#05080F; --surface:#111826; --surface-2:#111826;
  --ink:#F4F6FA; --ink-2:#D3DAE5; --muted:#9BA6B7; --line:#2C3747; --line-2:#1D2634;
  --accent:#8FB3E3; --accent-fill:#2F5FB4; --accent-press:#2A55A2; --accent-soft:#132240; --on-accent:#FFFFFF; --sky:#3F6CB6; --band:#1C2B45;
  --chip:#1D2634; --good:#5BC98F; --good-soft:#11261B; --warn:#E8B04B; --warn-soft:#2A2110;
  --bad:#F07A68; --bad-soft:#2E1714; --bad-fill:#C2453A; --head:#0E1B30; --head-ink:#FFFFFF; --head-muted:#B9C6D8;
  --shadow:none; --head-line:#0E1B30; --stage:#E8E8ED; --none-tile:#1A2333; --panel:#1A2333; --warn-ink:var(--warn); --good-ink:var(--good);
  --sw-ring:#8E8E93; --sw-knob:#A1A1A6;
  --br-ink:#FFFFFF; --br-blue:#8FB3E3; --br-sub:#B9C6D8; --br-arc:#8FB3E3; --br-ring:#8FB3E3; --br-knock:#0E1B30;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5L6 6.25 10.75 1.5' fill='none' stroke='%23A1A1A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5L6 6.25 10.75 1.5' fill='none' stroke='%238FB3E3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#05080F; --bg-2:#05080F; --surface:#111826; --surface-2:#111826;
  --ink:#F4F6FA; --ink-2:#D3DAE5; --muted:#9BA6B7; --line:#2C3747; --line-2:#1D2634;
  --accent:#8FB3E3; --accent-fill:#2F5FB4; --accent-press:#2A55A2; --accent-soft:#132240; --on-accent:#FFFFFF; --sky:#3F6CB6; --band:#1C2B45;
  --chip:#1D2634; --good:#5BC98F; --good-soft:#11261B; --warn:#E8B04B; --warn-soft:#2A2110;
  --bad:#F07A68; --bad-soft:#2E1714; --bad-fill:#C2453A; --head:#0E1B30; --head-ink:#FFFFFF; --head-muted:#B9C6D8;
  --shadow:none; --head-line:#0E1B30; --stage:#E8E8ED; --none-tile:#1A2333; --panel:#1A2333; --warn-ink:var(--warn); --good-ink:var(--good);
  --sw-ring:#8E8E93; --sw-knob:#A1A1A6;
  --br-ink:#FFFFFF; --br-blue:#8FB3E3; --br-sub:#B9C6D8; --br-arc:#8FB3E3; --br-ring:#8FB3E3; --br-knock:#0E1B30;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5L6 6.25 10.75 1.5' fill='none' stroke='%23A1A1A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.5L6 6.25 10.75 1.5' fill='none' stroke='%238FB3E3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4{text-wrap:balance;margin:0}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--accent);text-underline-offset:3px}
p{text-wrap:pretty}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* A heading, section or other box that isn't a control is focused only by the page's own script (tabindex="-1": a view
   changed, so a screen reader starts reading at its heading). It draws no ring, which only looked like a box around the
   words. Buttons, links, fields and every other control keep the ring above. The same rule is in FitLab's styles. */
[tabindex="-1"]:not(a,button,input,select,textarea,summary,[contenteditable]):focus{outline:none}
[hidden]{display:none !important}
.num,.mono{font-variant-numeric:tabular-nums}
.mono{font-family:var(--mono);letter-spacing:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- brand band ---------- */
.site-top{background:var(--head);color:var(--head-ink);padding:22px 16px 40px;border-bottom:1px solid var(--head-line)}
.site-top > *{max-width:1080px;margin-inline:auto}
.site-top :focus-visible{outline-color:var(--head-accent)}
.brand{min-width:0}
.brand .eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--head-muted);font-weight:600}
.brand h1{font-family:var(--body);font-weight:600;font-size:clamp(34px,6.4vw,56px);line-height:1.06;letter-spacing:-.035em;margin-top:18px;overflow-wrap:anywhere}
.brand h1 em{font-style:normal;font-weight:600;color:var(--head-accent)}

/* ---------- the PureFlight logo (README "Brand rules"; img/brand/README.md) ----------
   The owner's logo: the name with its ball flight and the gold ball, GOLF CO. beneath (img/brand/brand.svg #pf-logo-name
   and #pf-logo-sub, two <use>s in one <svg>); .pf-logo-compact leaves GOLF CO. out (a header's top row). The element has
   role="img" and the accessible name "PureFlight Golf Co."; --wm sets the size (the full logo is 2.3 × --wm tall, the
   compact one 2.05 ×). Its colors are the --br-* above, so light and dark each get the owner's own artwork. */
.wordmark.pf-logo{--wm:24px;display:inline-flex;line-height:0;vertical-align:middle}
.pf-logo svg{display:block;height:calc(var(--wm) * 2.3);width:auto;overflow:visible}
.pf-logo-compact svg{height:calc(var(--wm) * 2.05)}
/* the products' marks (js/places.js art(): the owner's artwork, img/brand/brand.svg), sized by their height */
.pf-art{display:block;width:auto;overflow:visible;flex:0 0 auto}
.pf-lockup.pf-brand{display:inline-flex;align-items:center;gap:0;line-height:0;font-size:inherit}
/* a product's name in a line, a list row or a chip (js/places.js inline()): its mark's name line at the text's size */
.lk.lk-art{display:inline-flex;align-items:center;line-height:1;vertical-align:-.32em}
.lk .pf-art{width:auto;height:1.3em}
.lk .lk-n.sr-only{text-transform:none}   /* (in a small-caps badge too, a screen reader reads the name as written) */
/* a mark on a surface that is dark in light mode too (the homepage's caddie panel): the owner's on-dark colors */
.br-on-dark{--br-ink:#FFFFFF;--br-blue:#8FB3E3;--br-sub:#B9C6D8;--br-arc:#8FB3E3;--br-ring:#8FB3E3;--br-knock:#0E1B30}
/* the gold full stop at the end of a title (js/header.js PSHeader.em(): the brand's dot, as after each product's name) */
.pf-stop{color:var(--gold)}

/* ---------- layout ---------- */
.site-main{width:100%;max-width:1112px;margin:0 auto;padding:32px 16px 72px;flex:1 0 auto;display:flex;flex-direction:column;gap:20px;min-width:0}

/* ---------- components (sign-in page + portal) ---------- */
.card{background:var(--surface-2);border:0;border-radius:var(--r-lg);padding:28px;min-width:0;box-shadow:var(--shadow)}
/* a card's heading in the brand's serif (direction B: section headings navy, 700, lining numerals) */
.card h2{font-family:var(--display);font-weight:700;font-size:25px;line-height:1.2;letter-spacing:-.008em;font-variant-numeric:lining-nums;overflow-wrap:anywhere}
/* Default spacing between a card's children (forms on the sign-in page); zero specificity so any
   component rule wins. Portal cards lay themselves out. */
:where(.card) > * + *{margin-top:14px}
:where(.card) > h2 + *{margin-top:4px}
:where(.p-app .card) > * + *{margin-top:0}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-size:14px;font-weight:500;color:var(--ink-2)}
/* (a text box's look: never a checkbox, a switch or a radio, which keep their own size) */
.field input:where(:not([type="checkbox"],[type="radio"])),.field select,.field textarea{width:100%;min-width:0;min-height:50px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:12px 14px;font-size:17px}
.field textarea{font-size:16px}
.field input:where(:not([type="checkbox"],[type="radio"])):focus,.field select:focus,.field textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent)}
.field input:where(:not([type="checkbox"],[type="radio"])):focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
/* a select: drawn like FitLab's (no browser arrows, Safari's included; one chevron that takes the accent on focus),
   the same box as the text fields beside it; an answer not given yet reads in gray */
.field select{-webkit-appearance:none;appearance:none;padding-right:44px;background-image:var(--chev);background-repeat:no-repeat;background-position:right 17px center;background-size:12px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.field select:focus{background-image:var(--chev-on)}
.field select:has(> option[value=""]:checked){color:var(--muted)}
.field select option{color:var(--ink);background-color:var(--surface)}
@media (forced-colors:active){.field select{-webkit-appearance:menulist;appearance:auto;background-image:none}}
.field input[autocomplete="one-time-code"]{font-family:var(--mono);font-size:20px;letter-spacing:.35em}
.field input[aria-invalid="true"]{border-color:var(--bad)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border:1px solid var(--line);border-radius:980px;background:transparent;color:var(--ink);font-weight:500;font-size:15px;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.btn:hover{border-color:var(--ink-2)}
.btn.primary{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-accent)}
.btn.primary:hover{background:var(--accent-press);border-color:var(--accent-press)}
.btn.link{background:none;border-color:transparent;color:var(--accent);padding-inline:6px;text-decoration:underline;text-underline-offset:3px}
.btn.link:hover{border-color:transparent;text-decoration-thickness:2px}
.btn.ghost-dark{background:transparent;color:var(--head-ink);border-color:rgba(255,255,255,.28)}
.btn.ghost-dark:hover{border-color:rgba(255,255,255,.6)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.55;cursor:default;filter:none}
.btn .p-icon{width:18px;height:18px;flex:0 0 auto}
.row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.note{font-size:14px;color:var(--muted)}
.status{font-size:14px;line-height:1.45;color:var(--muted)}
/* Empty status lines leave the layout but stay in the accessibility tree, so the next message is announced. */
.status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.status.ok{color:var(--good)}
.status.err{color:var(--bad);background:var(--bad-soft);border-radius:12px;padding:12px 14px;font-weight:500}
.notice{background:var(--accent-soft);border:0;border-radius:var(--r);padding:16px 18px;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.notice a{color:var(--accent);font-weight:600}
/* Soft edge shadows appear only while a wide table has more to scroll to. */
.tbl-wrap{overflow-x:auto;border:0;border-radius:var(--r);max-width:100%;-webkit-overflow-scrolling:touch;
  background:linear-gradient(to right,var(--surface) 30%,transparent) left/32px 100% no-repeat local,
    linear-gradient(to left,var(--surface) 30%,transparent) right/32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.16),transparent) left/12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.16),transparent) right/12px 100% no-repeat scroll,var(--surface)}
.tbl{border-collapse:collapse;width:100%;font-size:15px}
.tbl th,.tbl td{padding:11px 16px;text-align:right;border-bottom:1px solid var(--line-2);vertical-align:top}
.tbl thead th{font-size:13px;color:var(--muted);background:var(--surface);font-weight:500;white-space:nowrap}
.tbl td{font-variant-numeric:tabular-nums;white-space:nowrap}
.tbl th:first-child,.tbl td:first-child{text-align:left}
.tbl tbody th{font-weight:500;color:var(--ink);min-width:8em}
.tbl tbody tr:last-child > *{border-bottom:0}

/* ---------- portal: band ---------- */
.p-top{padding-block:18px 44px}
.p-top-in{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px 24px}
.p-top .brand{flex:1 1 420px}
.p-sub{margin-top:12px;color:#A1A1A6;font-size:17px;line-height:1.45;max-width:60ch}
.p-back{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:-6px 0 6px -2px;padding:0 2px;color:var(--head-ink);font-weight:600;font-size:14px;text-decoration:none}
.p-back:hover{color:var(--head-accent)}
/* The way back as a row: the homepage first on the website, then sign in. The homepage's links are .ps-web-only: css/app.css hides them in the app,
   which has no homepage, and gives Sign in its arrow back. */
.p-backs{display:flex;flex-wrap:wrap;align-items:center;gap:0 22px;margin:-6px 0 6px -2px}
.p-backs .p-back{margin:0}
.ps-web-only + .p-back .p-back-arrow{display:none}
.p-back-quiet{color:var(--head-muted);font-weight:500}
/* the PureFlight logo as a way home (the app's js/native.js takes the link off) */
.wm-link{display:inline-flex;color:inherit;text-decoration:none;border-radius:6px}
.wm-link:focus-visible{outline:2px solid var(--head-accent);outline-offset:4px}
.p-account{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%}
.p-email{font-size:13px;color:var(--head-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.p-account .btn{flex:0 0 auto;white-space:nowrap}
@media (max-width:640px){
  .p-account{order:-1;flex:1 1 100%;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--head-line)}
  /* the email, Your account and Sign out on one line at 360 px */
  .p-account{gap:8px}
  .p-account .p-email{flex:1 1 auto}
  .p-account .btn{min-height:40px;padding:8px 14px;font-size:14px}
}

/* ---------- portal: shared pieces ---------- */
.p-main{padding-top:32px}
.p-app{display:flex;flex-direction:column;gap:20px;min-width:0}
.p-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.p-card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:16px}
.p-card-sub{font-size:14px;color:var(--muted)}
.p-kicker,.p-k{display:block;font-size:14px;letter-spacing:-.01em;color:var(--muted);font-weight:600}
.p-actions{margin-top:18px}
.p-badge{display:inline-flex;align-items:center;margin-left:10px;padding:2px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-family:var(--body);font-size:12px;font-weight:600;letter-spacing:0;vertical-align:3px}
.p-staff{font-size:13.5px}

/* current setup ("the bag") */
.p-bag{list-style:none;margin:0;padding:0}
.p-bag-row{display:grid;grid-template-columns:34px minmax(0,170px) minmax(0,1fr);gap:4px 16px;align-items:baseline;padding:16px 0;border-bottom:1px solid var(--line-2)}
.p-bag-row:last-child{border-bottom:0}
.p-bag-n{font-size:13px;color:var(--accent);font-weight:600;font-variant-numeric:tabular-nums}
.p-bag-club{font-size:14px;color:var(--muted);font-weight:500;overflow-wrap:anywhere}
.p-bag-pick{display:flex;flex-direction:column;gap:3px;min-width:0}
.p-bag-line{font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
.p-bag-spec{font-size:14px;color:var(--muted);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.p-bag-none{font-size:14px;color:var(--muted)}
@media (max-width:560px){
  .p-bag-row{grid-template-columns:28px minmax(0,1fr)}
  .p-bag-pick{grid-column:2}
}

/* fittings list (the list itself, ul.p-fits: the Your fittings card from js/pay.js is a section with the same name, and
   took this list's bleed to the card's edges and its zero padding) */
.p-history{padding-bottom:8px}
ul.p-fits{list-style:none;margin:0 -28px;padding:0}
ul.p-fits > li + li{border-top:1px solid var(--line-2)}
.p-fit{display:flex;align-items:center;gap:16px;padding:16px 28px;color:inherit;text-decoration:none;min-height:60px}
.p-fit:hover{background:color-mix(in srgb, var(--ink) 4%, transparent)}
.p-fit:focus-visible{outline-offset:-2px}
.p-fit-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.p-fit-date{font-size:19px;font-weight:600;letter-spacing:-.02em}
.p-fit-clubs{font-size:15px;overflow-wrap:anywhere}
.p-fit-meta{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.p-fit-go{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--surface);color:var(--accent)}
.p-fit:hover .p-fit-go{border-color:var(--accent)}

/* empty / not found / error */
.p-empty{display:flex;flex-direction:column;gap:10px;padding:28px 24px}
.p-empty p{max-width:60ch}

/* contact */
.p-contact{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px}
.p-contact h2{font-size:22px;margin-bottom:4px}
.p-contact-list{display:flex;flex-wrap:wrap;gap:8px}
.p-contact-item{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 16px;border:0;background:var(--surface);border-radius:999px;font-size:15px;font-weight:500;color:var(--ink);text-decoration:none;overflow-wrap:anywhere;max-width:100%}
a.p-contact-item:hover{color:var(--accent)}
.p-contact-item .p-icon{color:var(--accent)}

/* skeleton while loading */
.p-skeleton{display:flex;flex-direction:column;gap:16px}
.p-skel-card{display:flex;flex-direction:column;gap:12px;box-shadow:none}
.p-skel-card i{display:block;height:14px;border-radius:6px;background:var(--chip)}
.p-skel-card i.w30{width:30%}.p-skel-card i.w40{width:40%;height:22px}.p-skel-card i.w55{width:55%}
.p-skel-card i.w65{width:65%}.p-skel-card i.w70{width:70%}.p-skel-card i.w80{width:80%}
@media (prefers-reduced-motion:no-preference){
  .p-skel-card i{background:linear-gradient(90deg,var(--chip) 0%,var(--line) 50%,var(--chip) 100%);background-size:200% 100%;animation:p-shimmer 1.4s ease-in-out infinite}
  .p-fit,.p-fit-go,.btn,.p-contact-item,.p-chip{transition:background-color .15s,border-color .15s,color .15s}
}
@keyframes p-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}

/* ---------- portal: fitting detail ---------- */
.p-summary{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px}
.p-summary-main{min-width:0;flex:1 1 420px}
.p-summary h2{font-family:var(--display);font-weight:700;font-variant-numeric:lining-nums;font-size:clamp(28px,4vw,36px);letter-spacing:-.008em;margin-top:4px}
.p-summary .p-actions{margin-top:0}
.p-player-line{margin-top:6px;color:var(--muted);font-size:15px}
.p-kv{display:flex;flex-wrap:wrap;gap:12px 32px;margin:18px 0 0}
.p-kv div{min-width:0}
.p-kv dt{font-size:13px;color:var(--muted);font-weight:500}
.p-kv dd{margin:2px 0 0;font-weight:600;overflow-wrap:anywhere}

.p-note blockquote{margin:10px 0 0;font-size:clamp(19px,2.4vw,24px);font-weight:500;letter-spacing:-.02em;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;max-width:40em}
.p-note-by{margin-top:14px;font-size:15px;font-weight:600;color:var(--accent)}
.p-note-by::before{content:"— "}

.p-jump{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:2px 2px 6px;margin:0 -2px;scrollbar-width:thin}
.p-jump-k{flex:0 0 auto;font-size:14px;color:var(--muted);font-weight:500;margin-right:4px}
.p-chip{flex:0 0 auto;min-height:40px;padding:8px 16px;border:1px solid var(--line);background:transparent;border-radius:999px;font-weight:500;font-size:15px;cursor:pointer;white-space:nowrap}
.p-chip:hover{border-color:var(--ink-2)}

.p-block{scroll-margin-top:16px}
.p-block-head{margin-bottom:16px}
.p-block-head h3{font-family:var(--display);font-size:clamp(28px,4vw,40px);font-weight:700;font-variant-numeric:lining-nums;line-height:1.08;letter-spacing:-.008em;margin-top:2px;overflow-wrap:anywhere}
/* the read's number first (FitLab's elevation estimate), then the facts and the pick */
.p-hero{margin:0 0 24px;display:flex;flex-direction:column;gap:4px}
.p-hero-num{display:flex;align-items:baseline;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.p-hero-val{font-size:clamp(64px,12vw,112px);font-weight:600;line-height:.95;letter-spacing:-.045em}
.p-hero-val.up{color:var(--accent)}
.p-hero-unit{font-size:clamp(22px,3.4vw,32px);font-weight:600;letter-spacing:-.02em}
.p-hero-cap{font-size:clamp(19px,2.4vw,24px);font-weight:600;letter-spacing:-.02em;line-height:1.25;color:var(--ink-2);max-width:24em;margin-top:6px}
.p-hero-line{font-size:15px;color:var(--muted);margin-top:8px;font-variant-numeric:tabular-nums}
.p-hero .note{font-size:13px}
.p-block-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
@media (min-width:860px){.p-block-grid.two{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}}
.p-facts,.p-recs{display:flex;flex-direction:column;gap:12px;min-width:0}
.p-numbers{display:flex;flex-direction:column;gap:8px;min-width:0}
.p-block-grid:not(.two) > .p-recs{max-width:640px}
.p-metrics td.v{font-weight:600;color:var(--ink)}
.p-metrics td.t{color:var(--muted)}
.p-metrics td.t.empty{color:var(--muted)}   /* "—", no target: quiet, but readable (--line was 1.5:1) */
.p-metrics .p-t-k{display:none}
.p-generic td{color:var(--ink)}
.p-generic tbody th{position:sticky;left:0;background:var(--surface);z-index:1}
.p-generic thead th:first-child{position:sticky;left:0;z-index:2}
.p-miss{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:var(--r);background:var(--warn-soft);overflow-wrap:anywhere}
.p-miss .p-k{color:var(--warn)}
.p-insights{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.p-insights li{position:relative;padding-left:18px;overflow-wrap:anywhere}
.p-insights li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--accent)}

.p-rec{display:flex;flex-direction:column;gap:6px;padding:20px;border:0;border-radius:18px;background:var(--surface);min-width:0}
.p-rec.none{background:transparent;border:1px dashed var(--line)}
/* the pick's photo on a light stage (most makers shoot on white, which multiplies away into it); grips are long */
.p-photo{margin:0 0 10px;position:relative;aspect-ratio:4/3;border-radius:14px;background:var(--stage);overflow:hidden;display:grid;place-items:center;isolation:isolate}
.p-photo.wide{aspect-ratio:5/2}
/* the picture fills the box itself (out of the grid flow, so a tall photo isn't cropped): the whole product shows */
.p-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;padding:8% 6%;mix-blend-mode:multiply}
.p-photo.wide img{padding:6% 4%}
/* a shaft or grip laid flat (portal.js, layFlat): turned by --tilt, its width across, turned (--ex), the box's less 4%
   a side, as in the Club Builder and FitLab; a library photo waits unseen while it's measured */
.p-photo.wide{container-type:inline-size}
@supports (width:1cqw){
  .p-photo.wide.is-tilt img{inset:auto;left:50%;top:50%;padding:0;width:calc(92cqw / var(--ex, 1.4142));height:auto;max-width:none;max-height:none;transform:translate(-50%,-50%) rotate(var(--tilt, 0deg))}
}
.p-photo img.measuring{opacity:0}
/* no picture: a quiet tile (dark in a dark theme), the icon and "Picture unavailable" on a line, the name, the details */
.p-photo[data-kind="none"]{background:var(--none-tile)}
.p-photo-none{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 14px;text-align:center;color:var(--muted);font-size:13px;line-height:1.35;width:100%;height:100%;overflow:hidden}
.p-photo-top{display:flex;flex-direction:column;align-items:center;gap:4px}
.p-photo.wide .p-photo-top{flex-direction:row;gap:6px}
.p-photo-none .p-icon{width:28px;height:28px;color:var(--muted);stroke-width:1.5;flex:0 0 auto}
.p-photo.wide .p-icon{width:22px;height:22px}
.p-photo-name{font-weight:600;color:var(--ink);overflow-wrap:anywhere;max-width:100%}
.p-photo-d{overflow-wrap:anywhere;max-width:100%}
.p-rec-k{font-size:14px;font-weight:600;color:var(--accent)}
.p-rec-line{font-size:28px;font-weight:600;line-height:1.12;letter-spacing:-.03em;overflow-wrap:anywhere}
.p-rec-spec{font-size:15px;color:var(--ink-2);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.p-ticks{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:14px}
.p-ticks li{position:relative;padding-left:22px;overflow-wrap:anywhere}
.p-ticks li::before{content:"";position:absolute;left:3px;top:.38em;width:9px;height:5px;border-left:2px solid var(--good);border-bottom:2px solid var(--good);transform:rotate(-45deg)}
.p-also ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column}
.p-also li{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line-2)}
.p-also li:last-child{padding-bottom:0}
/* an alternative with a small photo beside it; the first shaft's photo above the shaft lines */
.p-also li.has-thumb{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center}
.p-also-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.p-photo.thumb{margin:0;border-radius:10px}
.p-photo.thumb img{padding:6%}
.p-photo.thumb .p-photo-none{padding:4px;font-size:11px;gap:1px}
.p-photo.thumb .p-icon{width:20px;height:20px}
.p-shafts .p-photo.wide{margin:8px 0 2px}
.p-also-line{font-weight:600;overflow-wrap:anywhere}
.p-also-spec{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.p-disclaimer{text-align:center;max-width:60ch;margin:4px auto 0}

/* Build your club (snapshot v2): the shared Club Builder (css/builder.css) plus the Save controls.
   Its block is full width so the builder can size itself from the card. */
.p-build{margin-top:28px;padding-top:24px;border-top:1px solid var(--line-2);min-width:0}
.p-build-head{display:flex;flex-direction:column;gap:4px;margin-bottom:16px}
.p-build-head h4{font-size:22px;font-weight:600;letter-spacing:-.025em;line-height:1.2}
.p-build-head .note{max-width:68ch}
.p-build-mount{min-width:0}
.p-build-off{padding:14px 16px;border:1px dashed var(--line);border-radius:var(--r)}
.p-build-foot{display:flex;flex-direction:column;gap:12px;margin-top:20px;padding:18px;border:0;border-radius:18px;background:var(--surface)}
.p-build-note textarea{min-height:64px;resize:vertical;line-height:1.45;background:var(--bg-2)}
.p-optional{font-weight:500}
.p-build-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.p-build-actions .btn{min-width:150px}
.p-build-info{flex:1 1 220px;min-width:0;font-size:13.5px;color:var(--muted)}
.p-build-info.is-saved{color:var(--good);font-weight:600}
.p-build-info.is-saved::before{content:"";display:inline-block;width:9px;height:5px;margin:0 9px 3px 2px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
/* Saving and saved are read out from here but shown by the button and the line beside it; errors show. */
.p-build-status:not(.err){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.p-build-status.err{font-size:13.5px}

/* home: a club the customer built themselves */
.p-bag-mine{display:block;width:max-content;max-width:100%;margin-top:6px;padding:2px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:600}
.p-bag-cw{display:inline-block;margin-left:10px;padding:1px 9px;border-radius:999px;background:var(--chip);font-family:var(--body);font-size:12px;font-weight:600;color:var(--muted);vertical-align:3px;overflow-wrap:anywhere}
.p-bag-parts{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.p-bag-parts li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 8px;align-items:baseline}
.p-bag-k{font-size:13px;color:var(--muted);font-weight:500}
.p-bag-v{overflow-wrap:anywhere}
.p-bag-hint{margin-top:14px}

/* ---------- portal: self-fittings (FitLab customer mode) and snapshot v3 ---------- */
/* small labels: a word in a soft pill (never color alone) */
.p-tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:color-mix(in srgb, var(--ink) 7%, transparent);color:var(--ink-2);font-family:var(--body);font-size:12px;font-weight:600;letter-spacing:0;line-height:1.5;white-space:nowrap;vertical-align:2px}
.p-tag.is-est,.p-tag.is-close{background:color-mix(in srgb, var(--warn) 15%, transparent);color:var(--warn-ink)}
.p-tag.is-sent,.p-tag.is-holds{background:color-mix(in srgb, var(--good) 14%, transparent);color:var(--good-ink)}
.p-tag.is-read,.p-tag.is-current{background:var(--accent-soft);color:var(--accent)}
.p-tag.is-runs{background:color-mix(in srgb, var(--bad) 13%, transparent);color:var(--bad)}

/* Run a fitting yourself: the headline and the way in, then three steps */
.p-run{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px 32px}
.p-run-main{min-width:0}
.p-run-k{color:var(--accent)}
.p-run h2{font-size:clamp(26px,3.4vw,34px);letter-spacing:-.03em;line-height:1.1;margin-top:4px}
.p-run-lead{margin-top:8px;font-size:17px;color:var(--ink-2);max-width:46ch}
.p-run-go .btn{min-width:190px}
.p-run-steps{grid-column:1/-1;list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.p-run-steps li{display:flex;flex-direction:column;gap:3px;padding:16px 18px;border-radius:16px;background:var(--panel);min-width:0}
.p-run-n{font-size:13px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums;margin-bottom:4px}
.p-run-t{font-size:16px;font-weight:600;letter-spacing:-.015em}
.p-run-d{font-size:14px;color:var(--muted)}

/* Get the PureFlight app (after a fitting, website only), Invite friends (home) and Emails from PureFlight (Your account) */
.p-getapp h2,.p-invite h2{margin-top:4px}
.p-getapp p,.p-invite p{max-width:60ch}
.p-getapp-stores,.p-invite .p-actions{margin-top:12px;flex-wrap:wrap}
.p-getapp-soon{margin-top:10px}
.p-inv-code{margin-top:12px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.p-inv-code b{font-size:24px;letter-spacing:.12em;font-variant-numeric:tabular-nums;color:var(--accent);overflow-wrap:anywhere}
.p-inv-stats,.p-inv-applied{margin-top:10px}
/* a customer who joined with a friend's code: their own welcome credit, and pass it on */
.p-inv-joined{margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--accent-soft)}
.p-inv-welcome{margin:0;font-weight:600}
.p-inv-nudge{margin:4px 0 0}
.p-inv-apply{margin-top:18px;padding-top:16px;border-top:1px solid var(--line-2)}
.p-inv-apply h3{font-size:17px;margin:0 0 8px}
.p-inv-apply .row{flex-wrap:nowrap;align-items:stretch}
.p-inv-apply input{text-transform:uppercase;letter-spacing:.1em;flex:1 1 auto}

/* the self-fittings list (laid out like the fittings list) */
.p-selfs-intro{margin:-8px 0 10px;max-width:62ch}
.p-srows{list-style:none;margin:0 -28px;padding:0;border-top:1px solid var(--line-2)}
.p-srows li + li{border-top:1px solid var(--line-2)}
.p-srow{display:flex;align-items:center;gap:16px;padding:16px 28px;color:inherit;text-decoration:none;min-height:60px}
.p-srow:hover{background:color-mix(in srgb, var(--ink) 4%, transparent)}
.p-srow:focus-visible{outline-offset:-2px}
.p-srow-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.p-srow-date{font-size:19px;font-weight:600;letter-spacing:-.02em}
.p-srow-date .p-tag{vertical-align:3px}
.p-srow-clubs{font-size:15px;overflow-wrap:anywhere}
.p-srow-meta{font-size:14px;color:var(--muted)}
.p-srow-go{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--surface);color:var(--accent)}
.p-selfs .p-actions{margin-top:14px}
.p-selfs.is-error .p-card-head{margin-bottom:6px}

/* the page's estimates notice, and one club's estimate line */
.p-estimate{display:flex;gap:16px;align-items:flex-start;background:var(--warn-soft)}
.p-estimate-mark{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:color-mix(in srgb, var(--warn) 16%, transparent);color:var(--warn);font-size:24px;font-weight:700;line-height:1}
.p-estimate-txt{display:flex;flex-direction:column;gap:6px;min-width:0}
.p-estimate h2{font-size:20px;letter-spacing:-.02em}
.p-estimate p{max-width:68ch;overflow-wrap:anywhere}
.p-estimate .note{color:var(--ink-2)}
.p-est{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0 0 20px;padding:12px 16px;border-radius:var(--r);background:var(--warn-soft);font-size:14px;color:var(--ink-2);overflow-wrap:anywhere}
.p-est-t{flex:1 1 220px;min-width:0}
.p-block-sub{margin-top:6px;font-size:15px;color:var(--muted);overflow-wrap:anywhere}

/* a pick's labels (driving iron or hybrid, the club they play now) */
.p-rec-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.p-also-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}

/* stopping power */
.p-stop{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:var(--r);background:var(--panel);overflow-wrap:anywhere}
.p-stop-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
.p-stop-line{font-size:15px;font-weight:500;color:var(--ink)}
.p-stop .note{font-size:13.5px}

/* the wedge read: the verdict and the sentence under it, then a line per new wedge (its spec and why its loft) */
.p-wl-verdict{margin:0;font-size:19px;font-weight:600;line-height:1.3;letter-spacing:-.015em;color:var(--ink);overflow-wrap:anywhere}
.p-wl-lede{margin:0;color:var(--ink-2);overflow-wrap:anywhere}
.p-wl-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.p-wl-list li{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line-2);overflow-wrap:anywhere}
.p-wl-name{font-weight:600;color:var(--ink)}
.p-wl-spec{font-size:14px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.p-wl-why{font-size:14px;color:var(--muted)}

/* compared with your current club: the measure names stay put while the clubs scroll */
.p-compare{display:flex;flex-direction:column;gap:14px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line-2);min-width:0}
.p-compare-head{display:flex;flex-direction:column;gap:6px}
.p-compare-head h4{font-size:22px;font-weight:600;letter-spacing:-.025em;line-height:1.2}
.p-current{font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.p-current-line{font-weight:600;color:var(--ink)}
.p-current-spec{color:var(--ink-2)}
.p-cmp-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.p-cmp thead th{white-space:normal;min-width:7.5em;max-width:12em;vertical-align:bottom;line-height:1.3;overflow-wrap:break-word}
.p-cmp thead th:first-child{min-width:0;position:sticky;left:0;z-index:2}
.p-cmp tbody th{position:sticky;left:0;z-index:1;background:var(--surface);min-width:6.5em;white-space:nowrap}
.p-cmp td{color:var(--ink)}
.p-cmp .is-current{background:color-mix(in srgb, var(--accent) 6%, var(--surface))}
.p-cmp thead th.is-current{color:var(--accent);font-weight:600}
.p-cv{font-weight:600}
.p-cm{font-size:12px;font-weight:500;color:var(--muted)}
.p-cm.is-measured{color:var(--good)}
.p-compare-note{max-width:72ch}
.p-cmp-hint{display:none;margin-top:-6px;font-size:13px;color:var(--muted)}
.p-cmp-hint::after{content:" \2192"}
.p-cmp-wrap[data-scrolls] + .p-cmp-hint{display:block}

/* Your FitLab read */
.p-read-head{display:flex;flex-direction:column;gap:2px}
.p-read-k{display:inline-flex;align-items:center;gap:6px;color:var(--accent)}
.p-read-k .p-icon{width:16px;height:16px}
.p-read h2{font-size:clamp(24px,3vw,30px);letter-spacing:-.03em;margin-top:2px}
.p-read-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:8px;font-size:14px;color:var(--muted)}
.p-read-body{margin-top:18px;padding:4px 22px;border-radius:18px;background:var(--panel)}
.p-read-list{margin:0}
.p-read-item{display:grid;grid-template-columns:150px minmax(0,1fr);gap:4px 24px;padding:16px 0;border-top:1px solid var(--line-2)}
.p-read-list:first-child .p-read-item:first-child{border-top:0}
.p-read-item dt{font-size:14px;font-weight:600;color:var(--accent);padding-top:2px}
.p-read-item dd{margin:0;font-size:16.5px;line-height:1.55;overflow-wrap:anywhere}
.p-read-p{padding:14px 0;font-size:16.5px;line-height:1.55;overflow-wrap:anywhere}
.p-read-p + .p-read-p,.p-read-list + .p-read-p,.p-read-p + .p-read-list .p-read-item:first-child{border-top:1px solid var(--line-2)}
.p-read-intro{margin-top:10px;max-width:62ch;font-size:16px;color:var(--ink-2);overflow-wrap:anywhere}
.p-read-stale{margin-top:12px}
.p-read-cta{margin-top:18px}
.p-read-cta .btn{min-width:250px}
.p-read-limit,.p-read-status.warn{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--warn-soft);color:var(--ink-2);font-size:14px}
.p-read-status{margin-top:12px}
.p-read-status:not(.err):not(.warn){font-size:14.5px}
.p-read-status.ok{font-weight:500}
@media (prefers-reduced-motion:no-preference){
  .p-read[data-state="busy"] .p-read-cta .p-icon{animation:p-pulse 1.1s ease-in-out infinite}
}
@keyframes p-pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* What you told us */
.p-told .p-card-head{margin-bottom:6px}
.p-told-list{margin:0}
.p-told-list > div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:4px 24px;padding:14px 0;border-top:1px solid var(--line-2)}
.p-told-list > div:first-child{border-top:0}
.p-told-list dt{font-size:14px;font-weight:600;color:var(--muted);padding-top:2px;overflow-wrap:anywhere}
.p-told-list dd{margin:0;font-size:16.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}

/* a self-fitting's summary: Continue, Print, Delete (which asks again in place) */
.p-self-summary .p-kicker .p-tag{margin-left:4px}
.btn.p-del{color:var(--bad)}
.btn.p-del:hover{border-color:var(--bad)}
.btn.danger{background:var(--bad-fill);border-color:var(--bad-fill);color:#FFFFFF}
.btn.danger:hover{filter:brightness(.92)}
.p-confirm{flex:1 1 100%;display:flex;flex-direction:column;gap:8px;padding:18px 20px;border-radius:18px;background:var(--bad-soft)}
.p-confirm h3{font-size:18px;font-weight:600;letter-spacing:-.02em}
.p-confirm p{font-size:15px;color:var(--ink-2);max-width:60ch}
.p-confirm .row{margin-top:6px}
.p-confirm .status.err{background:var(--surface)}

/* Phones: the numbers table becomes one stacked row per measure so nothing scrolls sideways. */
@media (max-width:560px){
  .card{padding:20px 16px;border-radius:18px}
  ul.p-fits{margin-inline:-16px}
  .p-fit{padding-inline:16px}
  .p-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
  .p-metrics thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .p-metrics,.p-metrics tbody{display:block}
  .p-metrics tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 12px;border-bottom:1px solid var(--line)}
  .p-metrics tbody tr:last-child{border-bottom:0}
  .p-metrics th,.p-metrics td{display:block;padding:0;border:0;min-width:0}
  .p-metrics tbody th{white-space:normal}
  .p-metrics td.v{font-size:15px}
  .p-metrics td.t{grid-column:1/-1;text-align:left;font-size:12.5px;white-space:normal}
  .p-metrics td.t.empty{display:none}
  .p-metrics .p-t-k{display:inline;font-family:var(--body);font-weight:600}
  .p-srows{margin-inline:-16px}
  .p-srow{padding-inline:16px}
  .p-read-body{padding:2px 16px}
  .p-read-item,.p-told-list > div{grid-template-columns:minmax(0,1fr);gap:2px}
  .p-read-cta .btn,.p-run-go .btn{width:100%;min-width:0}
  .p-estimate{gap:12px}
  .p-estimate-mark{width:32px;height:32px;font-size:20px}
  .p-confirm{padding:16px}
  .p-confirm .row .btn{flex:1 1 auto}
  /* the comparison: narrower columns, so a phone shows the golfer's club beside a pick */
  .p-cmp th,.p-cmp td{padding:10px 12px}
  .p-cmp tbody th{white-space:normal;min-width:6.6em;width:6.6em;overflow-wrap:break-word}
  .p-cmp thead th{min-width:6.2em;max-width:8.5em}
  .p-cm{display:block;margin-top:1px;line-height:1.2}
}
@media (max-width:760px){
  .p-run{grid-template-columns:minmax(0,1fr)}
  .p-run-steps{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:0}
  .p-run-steps li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:0 10px;padding:14px 16px}
  .p-run-n{grid-row:1/span 2;margin:2px 0 0}
  .p-run-go{order:2}
}

/* ---------- footer ---------- */
.p-foot{border-top:1px solid var(--line-2);padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));color:var(--muted);font-size:13px}
/* centered: the seal, the line and the links on one axis (the owner, Nov 16: "I think it might look better centered") */
.p-foot-in{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;text-wrap:balance}
.p-foot-in span:first-child{font-weight:600}
/* the owner's seal alone in the footer (the owner, Nov 4: "Use only the seal in the footers") */
.p-foot-in .pf-seal{display:block;flex:0 0 auto;width:64px;height:64px}
.p-foot-in .p-legal{font-size:11.5px;font-weight:400}
.p-foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 18px}
.p-foot-links a{display:inline-flex;align-items:center;min-height:32px;color:var(--ink-2);font-weight:500}

/* ---------- portal: your account (#/account), deleting it ---------- */
.p-delete{display:flex;flex-direction:column;gap:12px}
.p-delete h2{font-size:24px}
.p-delete-lead{font-size:16px;color:var(--ink-2);max-width:62ch}
.p-acct-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 32px;margin-top:6px}
.p-acct-cols h3{font-size:16px;font-weight:600;letter-spacing:-.015em;margin-bottom:8px}
.p-acct-cols ul{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.5;color:var(--ink-2)}
.p-delete .p-actions{margin-top:6px}
.p-delete .p-confirm .field{max-width:340px}
.p-delete .p-confirm input{font-family:var(--mono);letter-spacing:.12em}
.p-acct-links{margin-top:4px}
@media (max-width:640px){.p-acct-cols{grid-template-columns:minmax(0,1fr)}}
@media print{.p-delete{display:none !important}}

/* ---------- print: a clean, light fitting report ---------- */
@media print{
  /* Matches the specificity of the dark-theme selectors above so print is always light. */
  :root,:root:not([data-theme="light"]),:root[data-theme]{
    --bg:#FFFFFF; --surface:#FFFFFF; --ink:#15161A; --muted:#5D626C; --line:#D9DBE0; --accent:#1F4FA3;
    --accent-soft:#FFFFFF; --chip:#F1F2F4; --good:#1D7A4B; --warn:#8A5800; --warn-soft:#FFFFFF; --shadow:none;
    /* the rest of the palette too, so a page printed from dark mode (with backgrounds) is light throughout */
    --bg-2:#FFFFFF; --surface-2:#FFFFFF; --ink-2:#2F3237; --line-2:#E3E5E8; --panel:#FFFFFF; --stage:#F5F5F7;
    --bad:#B03A2E; --bad-soft:#FFFFFF; --good-soft:#FFFFFF; --warn-ink:#7A4C00; --good-ink:#156B40;
    color-scheme:light}
  @page{margin:14mm}
  body{font-size:11pt;display:block;min-height:0}
  .site-top{background:#FFFFFF;color:#15161A;border-bottom:2px solid #15161A;padding:0 0 10px}
  .brand .eyebrow{color:#5D626C}
  .brand h1{font-size:24pt}
  .brand h1 em{color:#1F4FA3}
  .wordmark{--br-ink:#0E1B30;--br-blue:#1F4FA3;--br-sub:#59606B;--br-arc:#2F5F9E}
  .p-sub{color:#5D626C}
  .p-account,.p-back,.btn,.p-actions,.p-jump,.status,.p-staff,.p-history,.p-skeleton,.p-build-foot,.p-build-head .note,.p-bag-hint{display:none !important}
  /* the build breaks between its parts (builder.css), its heading kept with the first */
  .p-build{break-inside:auto;margin-top:12px;padding-top:10px}
  .p-build-head{break-after:avoid}
  .p-hero{margin-bottom:10px;break-inside:avoid}
  .p-hero-val{font-size:30pt;color:#15161A}
  .p-hero-cap{font-size:13pt}
  .p-build-head{margin-bottom:8px}
  .p-build-head h4{font-size:13pt}
  .site-main{padding:12px 0 0;max-width:none}
  .card{box-shadow:none;border-radius:0;border:0;border-top:1px solid #D9DBE0;padding:12px 0;break-inside:avoid}
  .p-summary,.p-setup{border-top:0}
  .p-block{break-inside:auto}
  .p-block-head{break-after:avoid}
  .p-block-head,.p-numbers,.p-rec,.p-also,.tbl-wrap,.p-miss{break-inside:avoid}
  .p-note{background:none;border-left:3px solid #1F4FA3;padding-left:12px}
  .p-block-grid.two{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  .tbl-wrap{overflow:visible;border-color:#D9DBE0;border-radius:0;background:none}
  .tbl{font-size:9.5pt}
  .tbl th,.tbl td{padding:5px 8px}
  .tbl thead th{letter-spacing:.04em}
  .p-summary h2{font-size:20pt}
  .p-kv{margin-top:10px}
  .p-note blockquote{font-size:11pt;line-height:1.5}
  .p-block-head{margin-bottom:8px}
  .p-block-head h3{font-size:17pt}
  .p-block-grid,.p-facts,.p-recs{gap:10px}
  .p-rec{padding:10px 12px;gap:4px}
  .p-rec-line{font-size:15pt}
  .p-ticks,.p-insights{gap:4px;font-size:10pt}
  .p-also li{padding:5px 0}
  .p-generic tbody th,.p-generic thead th:first-child{position:static}
  .p-rec{box-shadow:none}
  .p-contact-item{border:0;padding:0 12px 0 0;min-height:0}
  a[href^="http"].p-contact-item::after{content:" (" attr(href) ")";font-weight:400;color:#5D626C}
  .p-foot{border-top:1px solid #D9DBE0;padding:8px 0 0}
  /* self-fittings and v3: the read, the estimates and the comparison print; the ways in and out don't */
  .p-run,.p-selfs,.p-read-cta,.p-read-limit,.p-read-status,.p-confirm,.p-cmp-hint{display:none !important}
  .p-read[hidden]{display:none !important}
  .p-estimate,.p-est{background:none;border-left:3px solid #8A5800;border-radius:0;padding:4px 0 4px 12px}
  .p-estimate{border-top:0;break-inside:avoid}
  .p-estimate-mark{display:none}
  .p-estimate h2{font-size:13pt}
  .p-est{margin-bottom:8px}
  .p-tag{background:none;border:1px solid currentColor;padding:0 6px}
  .p-read-body{background:none;padding:0}
  .p-read-item,.p-told-list > div{grid-template-columns:110pt minmax(0,1fr);padding:6px 0;break-inside:avoid}
  .p-read-item dd,.p-read-p,.p-told-list dd{font-size:10.5pt;line-height:1.45}
  .p-read h2,.p-told h2{font-size:15pt}
  .p-compare{margin-top:10px;padding-top:8px;gap:6px;break-inside:avoid}
  .p-compare-head h4{font-size:12pt}
  .p-cmp tbody th,.p-cmp thead th:first-child{position:static}
  .p-cmp td,.p-cmp th{white-space:normal}
  .p-cmp .is-current{background:none;font-weight:600}
  .p-stop{background:none;padding:0;border-radius:0}
}

/* ---------- On/off settings: the switch (the owner's pick, "C") ----------
   Every on/off setting in the app, the website, FitLab and the owner pages is this one switch, on the LEFT of its
   words: a real <input type="checkbox" role="switch"> (or a <button role="switch" aria-checked> where a tap saves
   straight away), so VoiceOver and TalkBack say "switch, on/off". 40x24: PureFlight blue with a white knob when on, an
   outline with a gray knob when off (an outline is easier to see than a pale track); dimmed when it can't be changed;
   the accent ring on keyboard focus. The row (.pf-row, a <label>) is the tap target, at least 44 px tall: the bold
   label (.pf-row-t) with the muted words under it (.pf-row-d). Picks from a list and one-off agreements stay
   checkboxes. FitLab (web/fitlab.html) doesn't load this file: its own <style> has a copy of these rules, and
   js/native.js's App settings sheet draws the same switch with its own colors. */
.pf-row{display:flex;align-items:flex-start;gap:14px;min-height:44px;padding:10px 0;cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:15.5px;font-weight:400;color:var(--ink);text-align:left}
.pf-row-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.pf-row-t{font-size:15.5px;font-weight:700;line-height:1.4;letter-spacing:-.01em;color:var(--ink)}
.pf-row-d{font-size:13.5px;font-weight:400;line-height:1.45;letter-spacing:-.005em;color:var(--muted)}
.pf-row:has(.pf-switch:disabled){cursor:default}
.pf-row:has(.pf-switch:disabled) .pf-row-t{color:var(--muted)}
.pf-switch[role="switch"]{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 auto;box-sizing:border-box;display:inline-block;
  width:40px;height:24px;min-width:40px;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:999px;
  background:transparent;box-shadow:inset 0 0 0 1.5px var(--sw-ring);color:inherit;font:inherit;vertical-align:middle;cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:background-color .2s ease,box-shadow .2s ease}
.pf-row > .pf-switch[role="switch"]{margin-top:-1px}
.pf-switch[role="switch"]::before{content:"";position:absolute;top:5px;left:5px;width:14px;height:14px;border-radius:50%;background:var(--sw-knob);
  transition:transform .2s ease,width .2s ease,height .2s ease,top .2s ease,left .2s ease,background-color .2s ease}
/* a bigger invisible tap area where the switch stands alone (no row around it) */
.pf-switch[role="switch"]::after{content:"";position:absolute;inset:-10px -4px}
.pf-switch[role="switch"]:is(:checked,[aria-checked="true"]){background:var(--accent-fill);box-shadow:none}
.pf-switch[role="switch"]:is(:checked,[aria-checked="true"])::before{top:3px;left:3px;width:18px;height:18px;background:#FFFFFF;transform:translateX(16px)}
.pf-switch[role="switch"]:disabled{opacity:.4;cursor:default}
.pf-switch[role="switch"]:focus{outline:none}
.pf-switch[role="switch"]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.pf-switch[role="switch"],.pf-switch[role="switch"]::before{transition:none}}
@media (forced-colors:active){
  .pf-switch[role="switch"]{forced-color-adjust:none;background:Canvas;box-shadow:inset 0 0 0 1.5px CanvasText}
  .pf-switch[role="switch"]::before{background:CanvasText}
  .pf-switch[role="switch"]:is(:checked,[aria-checked="true"]){background:Highlight}
  .pf-switch[role="switch"]:is(:checked,[aria-checked="true"])::before{background:HighlightText}
  .pf-switch[role="switch"]:disabled{opacity:1;box-shadow:inset 0 0 0 1.5px GrayText}
  .pf-switch[role="switch"]:disabled::before{background:GrayText}}

/* A select with its own chevron, one style for these pages (the owner, Nov 10; the same chevron as .field select, the
   accent on focus): the browser's arrow off, the chevron 12 px in from the right edge, the padding sized so the text
   and the chevron sit together (<span class="ps-select"><select>…</select></span>: js/gpsplay.js,
   js/pinlayout-settings.js). */
.ps-select{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle}
.ps-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:44px;max-width:100%;margin:0;padding:8px 34px 8px 14px;border:1px solid var(--line);border-radius:12px;background-color:var(--surface);background-image:var(--chev);background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;color:var(--ink);font:inherit;font-size:16px;line-height:1.25;cursor:pointer}
.ps-select select:focus{background-image:var(--chev-on)}
.ps-select select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ps-select select:disabled{opacity:.55;cursor:default}

/* ---------- iPads and the unfolded iPhone Duo (the device check, Nov 18): readable widths on a wide screen ----------
   Nothing here reaches a phone (under 640 px every column is already narrower than these). */
@media (min-width:640px){
  /* running text near 70 characters a line, never 130 to 157 across an iPad turned sideways: the notes, a
     community's line, Looking for a group's and a saved round's paragraphs, PureFlightAI's list */
  .p-app p.note,.p-app .sh-body,#app[data-view^="lfg"] .card p,#app[data-view="caddie-round"] .card p,.p-app .cai-list li,.p-app .cd-get-plan li,.p-app .p-est-t{max-width:72ch}
  /* (the notes that sit centered stay centered) */
  .p-app p.note.gp-near-note,.p-app p.note.cx-fine,.p-app p.note.ma-fine,.p-app p.note.cs-offer-fine{margin-inline:auto}
}
@media (min-width:800px){
  /* screens of rows, fields and one big button: a centered column as Owner Settings', not 1,000 px rows and fields
     (My Bag and its Stats by club, Account settings, Start a round and its course search; not the round
     screen itself, which has the whole window) */
  body:not(.is-round) #app:is([data-view="bag"],[data-view="bag-stats"],[data-view="account-settings"],[data-view="caddie-gps"]){width:100%;max-width:760px;margin-inline:auto}
  /* the Social Feed: its cards (and the question about your rounds, with its PIN) in a 720 px column under the tabs */
  #app[data-view="social-feed"] > :not(.so-tabs){width:100%;max-width:720px;margin-inline:auto}
}
