/* ─────────────────────────────────────────────────────────────────────────
   CoachCentral website-builder — theme tokens + section styles.

   Everything is namespaced under `.cc-site` so it never leaks into the app
   chrome (the platform harness renders inside the admin layout). A "theme" is
   nothing but the token block on `.cc-site[data-theme="…"]`; every section
   component styles itself through those tokens, so swapping the data-theme
   attribute restyles the whole page. Loaded page-scoped via <HeadContent>,
   never in App.razor, so these rules only exist on website-builder surfaces.
   ───────────────────────────────────────────────────────────────────────── */

/* ---- theme token sets ----
   The eight theme token blocks (warm … slate) live in /css/themes.css, shared
   with the links page; SiteHeadLinks / SiteChromeHeadLinks load it first. */

/* Bridge the site's accent tokens onto the app-wide --cc-* names. Shared app
   components reused INSIDE the site (notably HeroBlock — its `.hb` solid band and
   `.hb-bg-brand` gradient read `--cc-accent`) otherwise fall through to the app's
   `:root` default (#2383E2, admin blue) because the site tree only sets `--accent`.
   Applies to every theme: `--cc-accent` mirrors whatever `--accent` resolves to
   (theme block or the inline SiteAccent override). */
.cc-site {
    --cc-accent: var(--accent);
    --cc-accent-on: var(--accent-contrast);
    --cc-text: var(--text);
}
/* ---- base ---- */
.cc-site {
    background: var(--bg); color: var(--text);
    font-family: var(--font-body), system-ui, sans-serif; line-height: 1.6;
    /* Per-site "reading size": nudges body copy without touching the display
       hierarchy. Body text (paragraphs, blurbs, prose, list items) is unitless /
       inherited, so it scales with this; every heading, button, price, eyebrow and
       nav size is in `rem` (anchored to the root), so they stay put. Unset = 1rem =
       today's look; a per-site override sets --reading-size inline on .cc-site. */
    font-size: var(--reading-size, 1rem);
    min-height: 100dvh;
}
.cc-site h1, .cc-site h2, .cc-site h3 {
    font-family: var(--font-display), Georgia, serif; letter-spacing: var(--tracking);
    line-height: 1.1; margin: 0; color: var(--text);
}
.cc-site p { margin: 0 0 1rem; }
.cc-site a { color: inherit; }
.cc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Wide-display framing: the live site becomes an elevated card on a tinted canvas
   (mirrors the editor's preview), which adds structure on large screens. Phones /
   tablets stay full-bleed. Scoped to .cc-framed (the live SiteRoot render) so the
   editor's own inline-preview frame is left alone. Slightly wider than the editor
   card so the brand isn't crowded in the corner. */
.cc-framed > .cc-shell { background: var(--bg); }
@media (min-width: 1024px) {
    .cc-site.cc-framed { background: var(--surface-2); padding: 32px 24px; }
    .cc-framed > .cc-shell {
        max-width: 1120px; margin: 0 auto; min-height: calc(100dvh - 64px);
        border-radius: 18px; overflow: hidden;
        border: 1px solid var(--border); box-shadow: 0 14px 46px rgba(20, 16, 10, .10);
    }
}
/* Below the framing breakpoint the site is full-bleed (no canvas gutter to hold the
   brand off the edge), so the content carries its own wider gutter throughout — not
   just on phones. This closes the intermediate 821–1023px gap. */
@media (max-width: 1023.98px) {
    .cc-wrap { padding: 0 30px; }
}
.cc-eyebrow { color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; font-weight: 700; font-family: var(--font-body), sans-serif; }
.cc-site .cc-muted { color: var(--muted); }
.cc-site section { padding: var(--pad) 0; }
.cc-band-2 { background: var(--surface-2); }
/* Centered section head. max-width is in rem (not ch, which is measured in the
   small body font and squeezed the 2.1rem heading onto two lines). balance keeps
   any wrap even. */
.cc-sec-head { text-align: center; max-width: 36rem; margin: 0 auto 2.4rem; }
.cc-sec-head h2 { font-size: 2.1rem; margin-bottom: .6rem; text-wrap: balance; }

/* ---- buttons ---- */
.cc-site .cc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--font-body), sans-serif;
    font-weight: 600; font-size: .95rem; padding: .7rem 1.3rem; border-radius: var(--radius-btn);
    border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; box-sizing: border-box;
    transition: background .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
}
/* One accent-based button language: a solid PRIMARY and an outlined SECONDARY.
   The secondary was a faint neutral "ghost" (--border + --text) that nearly
   vanished on tinted bands; anchoring it on the accent — filled vs outlined, same
   hue — makes every button on the page read as one system with a clear hierarchy. */
.cc-site .cc-btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.cc-site .cc-btn-primary:hover { filter: brightness(.93); }
.cc-site .cc-btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.cc-site .cc-btn-ghost:hover { background: var(--accent-soft); }

/* ---- images ---- */
/* Placeholder shown when a section has no image set (empty-state). */
.cc-ph { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); border-radius: var(--radius); display: flex; align-items: flex-end; color: var(--muted); font-size: .72rem; }
.cc-ph span { padding: .5rem .7rem; opacity: .7; }
/* Image blocks render the photo as a CSS background so the coach can scale +
   pan it within the fixed frame; the matte (surface-2) shows around a shrunk
   image. Inline style sets background-image/size/position per block. */
.cc-media { border-radius: var(--radius); overflow: hidden; background-color: var(--surface-2); background-repeat: no-repeat; background-position: center; background-size: cover; }
.cc-hero .cc-media { aspect-ratio: 4 / 3; }
.cc-cols .cc-media { aspect-ratio: 1 / 1; }

/* ---- header ---- */
.cc-topbar { background: var(--accent); color: var(--accent-contrast); text-align: center; font-size: .8rem; padding: .45rem 1rem; }
.cc-header { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); z-index: 5; }
/* Only set the vertical padding here (padding-block) — the horizontal gutter must
   come from .cc-wrap so the header brand tracks the same responsive side padding as
   the rest of the content (a `padding: 16px 0` shorthand wiped .cc-wrap's gutter,
   leaving the brand hard-left below 1080px). */
.cc-navrow { display: flex; align-items: center; gap: 20px; padding-block: 16px; }
.cc-logo { font-family: var(--font-display), serif; font-weight: 700; font-size: 1.2rem; color: inherit; text-decoration: none; }
/* Logo image: height-capped so any shape (wide wordmark or square mark) sits cleanly
   in the header; width scales. Falls back to the brand text when no logo is set. */
.cc-logo--img { display: inline-flex; align-items: center; gap: 12px; }
.cc-logo-img { height: 40px; width: auto; max-width: 260px; display: block; object-fit: contain; }
.cc-logo-name { white-space: nowrap; }
@media (max-width: 640px) { .cc-logo-img { height: 34px; } }
.cc-nav { display: flex; gap: 18px; margin-left: auto; font-size: .92rem; }
.cc-nav a { text-decoration: none; color: var(--text); }
.cc-nav a:hover { color: var(--accent); }
/* Sign-in + CTA group. On desktop .cc-nav's margin-left:auto pushes this to the
   right; on mobile .cc-nav is hidden, so the group takes the auto margin itself
   (below) — keeping the always-present Sign in reachable on every screen. */
.cc-header-actions { display: flex; align-items: center; gap: 14px; }
.cc-signin { font-family: var(--font-body), sans-serif; font-size: .92rem; text-decoration: none; color: var(--text); white-space: nowrap; }
.cc-signin:hover { color: var(--accent); }
/* Mobile nav toggle — a CSS-only checkbox disclosure (SSR-safe, no JS). Hidden on
   desktop, where .cc-navmenu is display:contents so the links + actions flow inline
   into .cc-navrow exactly as before. The hamburger + dropdown live in the
   @media (max-width:820px) block below. */
.cc-navtoggle-cb { position: absolute; width: 1px; height: 1px; opacity: 0; margin: -1px; pointer-events: none; }
.cc-navtoggle { display: none; }
.cc-navmenu { display: contents; }

/* ---- hero ---- */
.cc-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cc-hero h1 { font-size: 3.1rem; margin: .6rem 0 1rem; }
.cc-hero .cc-sub { font-size: 1.15rem; max-width: 34ch; }
.cc-hero .cc-hero-cta { display: flex; gap: 12px; margin-top: 1.6rem; flex-wrap: wrap; }
.cc-hero .cc-ph { aspect-ratio: 4/3; }

/* ---- columns primitive ---- */
.cc-cols { display: grid; gap: var(--gap); }
.cc-cols[data-preset="2eq"] { grid-template-columns: repeat(2, 1fr); }
.cc-cols[data-preset="2wn"] { grid-template-columns: 2fr 1fr; align-items: center; }
.cc-cols[data-preset="2nw"] { grid-template-columns: 1fr 2fr; align-items: center; }
.cc-cols[data-preset="3eq"] { grid-template-columns: repeat(3, 1fr); }
.cc-cols[data-preset="4eq"] { grid-template-columns: repeat(4, 1fr); }
.cc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.cc-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.cc-cols .cc-ph { aspect-ratio: 1/1; }
/* Rich text column: the courses-editor body ends on a trailing paragraph/list
   margin (or none), so normalize it and set a clean gap before the optional CTA —
   otherwise the button sits flush against the last line. Adjacent-sibling scope
   keeps this to the richtext column (the only .cc-prose inside .cc-cols). */
.cc-cols .cc-prose > :last-child { margin-bottom: 0; }
.cc-cols .cc-prose + .cc-btn { margin-top: 1.25rem; }

/* ---- services ---- */
.cc-svc-card { display: flex; flex-direction: column; }
/* Optional card image: a band that bleeds to the card edges above the content.
   Negative margins undo the .cc-card padding; the 3:2 frame + top-only radius
   sit it flush under the card's rounded top. (Wins the aspect-ratio over the
   generic .cc-cols .cc-media by equal specificity + later source order.) */
.cc-svc-card .cc-svc-media { aspect-ratio: 3 / 2; margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0; }
/* Composed gradient/overlay hero in a card's media band (product with no photo):
   HeroBlock (Compact) fills the band; container-type lets its title scale to the
   card width, overflow clips it to the rounded top. */
.cc-svc-card .cc-svc-media--hero { container-type: inline-size; overflow: hidden; }
.cc-svc-card .cc-svc-media--hero > .hb { width: 100%; height: 100%; }

/* Recommendations — the whole card is a link to the item. The image band bleeds
   to the card edges; contain-fit keeps book covers / portrait art uncropped. */
.cc-rec-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.cc-rec-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.cc-rec-card h3 { margin-bottom: .35rem; }
.cc-rec-media { aspect-ratio: 3 / 2; margin: -26px -26px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--surface-2); }
.cc-rec-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }

/* Testimonials grid — quote card with an optional photo + attribution row. The
   1-column layout centers a single narrower column; 2/3 reuse the .cc-cols grid. */
.cc-cols[data-preset="1"] { grid-template-columns: minmax(0, 640px); justify-content: center; }
.cc-test-card { display: flex; flex-direction: column; gap: 14px; }
.cc-test-quote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.cc-test-by { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; font-style: normal; }
.cc-test-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
/* A long quote stops at seven lines, so one long testimonial doesn't stretch its
   whole row. site-testimonials.js shows the card's "Read more" only when the
   quote is cut off, and opens the whole quote in .cc-test-dialog. The cut is
   visual only: the full text stays in the page for screen readers and search. */
.cc-test-quote {
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden;
}
.cc-test-more {
    align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none;
    font: inherit; font-size: .92rem; font-weight: 600; color: var(--accent);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cc-test-more[hidden] { display: none; }
.cc-test-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Inside .cc-site, so the theme's colors and fonts apply. An explicit width drops
   the browser's dialog centering; inset + margin bring it back (CLAUDE.md). */
.cc-test-dialog {
    inset: 0; margin: auto; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
    padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(20, 16, 10, .3);
}
.cc-test-dialog::backdrop { background: rgba(20, 16, 10, .45); }
.cc-test-dialog-body { display: flex; flex-direction: column; gap: 16px; padding: 36px 30px 28px; }
.cc-test-dialog-quote { margin: 0; font-size: 1.15rem; line-height: 1.65; }
.cc-test-dialog-x {
    position: absolute; top: 10px; right: 12px; padding: 4px 9px; border: 0; border-radius: 8px;
    background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.cc-test-dialog-x:hover { background: var(--accent-soft); }
.cc-test-dialog-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Team / "Our coaches" grid — each card is a link to a coach's /c/{slug} profile. */
.cc-team-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.cc-team-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cc-team-photo { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.cc-team-photo-ph { background: var(--border); }
.cc-team-name { font-weight: 600; font-size: 1.1rem; }
.cc-team-headline { color: var(--muted); font-size: .92rem; }
.cc-svc-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.cc-price { font-family: var(--font-display), serif; font-size: 1.5rem; margin: .4rem 0 1rem; }
.cc-price small { font-size: .9rem; color: var(--muted); }
/* Push the button to the bottom of the card and center it (auto width). */
.cc-svc-card .cc-btn { margin-top: auto; align-self: center; }

/* ---- testimonial ---- */
.cc-quote { text-align: center; max-width: 52ch; margin: 0 auto; }
.cc-quote .cc-q { font-family: var(--font-display), serif; font-size: 1.7rem; line-height: 1.35; }
.cc-quote .cc-by { margin-top: 1.2rem; color: var(--muted); font-size: .95rem; }

/* ---- rich-text (prose) section ---- */
/* Sanitized courses-editor HTML. `.cc-prose` is a narrow reading measure;
   `.cc-prose-wide` fills the content column. Type + color come from the theme. */
.cc-prose { max-width: 68ch; margin: 0 auto; }
.cc-prose-wide { max-width: none; }

/* FAQ — native <details> accordion; +/− marker in the accent color. Type + color
   come from the theme tokens, so it matches every theme automatically. */
.cc-faq-wrap { max-width: 760px; margin: 0 auto; }
.cc-faq { border-top: 1px solid var(--border); }
.cc-faq-item { border-bottom: 1px solid var(--border); }
.cc-faq-item > summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font-family: var(--font-display), serif; font-size: 1.12rem; font-weight: 600; color: var(--text); }
.cc-faq-item > summary::-webkit-details-marker { display: none; }
.cc-faq-item > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); }
.cc-faq-item[open] > summary::after { content: "\2212"; }
.cc-faq-a { padding: 0 40px 22px 0; color: var(--muted); }
.cc-faq-a p { margin: 0; line-height: 1.6; }

/* About — prose column; heading sits above the profile-pulled body. */
.cc-about .cc-about-h { font-size: 2rem; margin-bottom: 1rem; }

/* Contact — profile-resolved rows + socials + book-a-call, themed + centered. */
.cc-contact-wrap { max-width: 680px; margin: 0 auto; text-align: center; }
.cc-contact-card { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cc-contact-rows { display: flex; flex-direction: column; gap: 10px; }
.cc-contact-row { display: flex; gap: 12px; align-items: baseline; justify-content: center; }
.cc-contact-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); min-width: 6em; text-align: right; }
.cc-contact-v { color: var(--text); }
a.cc-contact-v { color: var(--accent); text-decoration: none; }
a.cc-contact-v:hover { text-decoration: underline; }
.cc-socials { display: flex; gap: 12px; justify-content: center; }
.cc-social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); border: 1px solid var(--border); transition: color .15s, border-color .15s; }
.cc-social:hover { color: var(--accent); border-color: var(--accent); }
.cc-social svg { width: 20px; height: 20px; }
/* Footer social row: left-aligned under the brand/tagline (the section variant stays centered). */
.cc-foot-socials { justify-content: flex-start; margin-top: .85rem; }
/* The footer's `a { display:block }` overrides .cc-social's grid centering, pushing the
   glyph off-center. Restore it for the footer icons (the section isn't under .cc-footer). */
.cc-foot-socials .cc-social { display: grid; place-items: center; }

/* Lead-magnet capture form — themed, centered on a band. */
.cc-leadmagnet-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.cc-leadform-wrap { margin-top: 20px; }
.cc-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cc-leadform-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cc-input { flex: 1 1 180px; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-btn); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cc-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cc-leadform-row .cc-btn { flex: 0 0 auto; }
.cc-leadform-optin { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.cc-leadform-thanks { padding: 22px; font-size: 1.05rem; color: var(--text); }
.cc-leadform-error { margin: 10px 0 0; font-size: .9rem; color: #b3261e; }
.cc-leadform-fine { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }
.cc-leadform-fine a { color: inherit; }
.cc-prose h2 { font-size: 1.9rem; margin: 1.8rem 0 .6rem; }
.cc-prose h3 { font-size: 1.3rem; margin: 1.4rem 0 .5rem; }
.cc-prose p { margin: 0 0 1rem; }
.cc-prose ul, .cc-prose ol { margin: 0 0 1rem 1.25rem; }
.cc-prose li { margin: .3rem 0; }
.cc-prose a { color: var(--accent); }
.cc-prose blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.cc-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.cc-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cc-prose th, .cc-prose td { border: 1px solid var(--border); padding: .5rem .7rem; text-align: left; }

/* ---- CTA band ---- */
.cc-cta-band { background: var(--accent); color: var(--accent-contrast); text-align: center; }
.cc-cta-band h2 { color: var(--accent-contrast); font-size: 2.1rem; margin-bottom: 1rem; }
.cc-cta-band p { opacity: .9; max-width: 44ch; margin: 0 auto 1.6rem; }
.cc-cta-band .cc-btn-primary { background: var(--accent-contrast); color: var(--accent); }

/* ---- footer ---- */
.cc-footer { background: var(--surface-2); padding: 52px 0 30px; font-size: .9rem; }
.cc-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.cc-foot a { color: var(--muted); text-decoration: none; display: block; margin: .3rem 0; }
.cc-foot strong { display: block; margin-bottom: .3rem; }
.cc-powered { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 820px) {
    .cc-hero, .cc-cols { grid-template-columns: 1fr !important; }
    .cc-foot { grid-template-columns: 1fr; }
    .cc-hero h1 { font-size: 2.4rem; }

    /* Collapse the whole nav — links + Sign in + CTA — into a hamburger dropdown so
       every page stays reachable on a phone (previously .cc-nav was just hidden and
       the CTA got crushed inline). */
    .cc-navrow { position: relative; }
    /* A logo IMAGE + a long practice name must not push the hamburger off-screen:
       let the logo shrink and the name ellipsize, and trim the name a touch. */
    .cc-logo { min-width: 0; font-size: 1rem; }
    .cc-logo-name { overflow: hidden; text-overflow: ellipsis; }
    .cc-navtoggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        margin-left: auto; width: 44px; height: 44px; padding: 11px; box-sizing: border-box;
        border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
    }
    .cc-navtoggle-bar { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
    .cc-navmenu {
        display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 6;
        flex-direction: column; gap: 4px; padding: 12px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
    }
    .cc-navtoggle-cb:checked ~ .cc-navmenu { display: flex; }
    .cc-navtoggle-cb:focus-visible ~ .cc-navtoggle { outline: 2px solid var(--accent); outline-offset: 2px; }
    .cc-navmenu .cc-nav { display: flex; flex-direction: column; gap: 2px; margin-left: 0; font-size: 1rem; }
    .cc-navmenu .cc-nav a { padding: 11px 10px; border-radius: 8px; }
    .cc-navmenu .cc-nav a:hover { background: var(--accent-soft); }
    .cc-navmenu .cc-header-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
    .cc-navmenu .cc-signin { padding: 6px 10px; }
    .cc-navmenu .cc-btn-primary { width: 100%; justify-content: center; }
    /* hamburger morphs to an X when open */
    .cc-navtoggle-cb:checked ~ .cc-navtoggle .cc-navtoggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .cc-navtoggle-cb:checked ~ .cc-navtoggle .cc-navtoggle-bar:nth-child(2) { opacity: 0; }
    .cc-navtoggle-cb:checked ~ .cc-navtoggle .cc-navtoggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Product "View" overlay (site-productmodal.js) ----
   Rendered on document.body, OUTSIDE .cc-site, so it's styled self-contained;
   the checkout button picks up the coach's --accent via --cc-pmodal-accent. */
.cc-pmodal { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(20, 16, 10, .45); padding: 24px; overflow-y: auto; }
.cc-pmodal.open { display: flex; align-items: flex-start; justify-content: center; }
.cc-pmodal-card { position: relative; width: 100%; max-width: 620px; margin: auto; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(20, 16, 10, .35); padding: 32px 32px 28px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #2C2A26; }
.cc-pmodal-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #9a948a; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.cc-pmodal-x:hover { background: #f2efe9; color: #2C2A26; }
.cc-pmodal-title { font-size: 1.6rem; font-weight: 700; margin: 0 24px 14px 0; }
.cc-pmodal-desc { color: #4a463f; line-height: 1.6; }
.cc-pmodal-desc p { margin: 0 0 .8em; }
.cc-pmodal-desc ul, .cc-pmodal-desc ol { margin: 0 0 .8em; padding-left: 1.2em; }
.cc-pmodal-desc h1, .cc-pmodal-desc h2, .cc-pmodal-desc h3 { font-weight: 700; margin: 1em 0 .4em; }
.cc-pmodal-incl { margin-top: 18px; border-top: 1px solid #ece8e0; padding-top: 16px; }
.cc-pmodal-incl h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.cc-pmodal-incl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-pmodal-incl li { font-size: .95rem; }
.cc-pmodal-incl li span { color: #7C776E; }
.cc-pmodal-foot { margin-top: 22px; border-top: 1px solid #ece8e0; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cc-pmodal-price { font-size: 1.5rem; font-weight: 700; }
.cc-pmodal-buy { display: inline-block; background: var(--cc-pmodal-accent, #2f6f5f); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 10px; }
.cc-pmodal-buy:hover { filter: brightness(.94); }
.cc-pmodal-msg { padding: 30px 0; text-align: center; color: #7C776E; }
@media (max-width: 640px) { .cc-pmodal { padding: 0; } .cc-pmodal-card { border-radius: 0; min-height: 100%; padding: 48px 20px 28px; } }

/* ---- public profile in the website's look (docs/PUBLIC_PROFILE_EDITOR.md) ----
   The coach's /c/{slug} page drawn with the website's sections and theme. Its own
   pieces: the Coach hero and From the blog. The same markup is drawn live by the
   profile editor (site-editor.js profile mode), so keep the two in step. */

/* The page sits in the app layout; break out of its content padding so the
   framed site spans edge to edge, as the website does. */
.pp-page { margin: -1.5rem -1.5rem -3rem; }
@media (min-width: 641px) { .pp-page { margin-left: -2rem; } }
/* With the website's own header (and its Sign in), the app's sign-in strip would
   be a second header. */
body:has(.pp-has-site-chrome) .cc-topnav-anon { display: none; }

.pp-hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pp-hero-row--solo { grid-template-columns: minmax(0, 760px); }
.pp-hero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pp-id { display: flex; align-items: center; gap: 14px; }
.pp-headshot {
    width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(20, 16, 10, .12); background: var(--surface-2);
}
.pp-headshot--ph {
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
    font-family: var(--font-display), serif; font-weight: 700; font-size: 1.6rem;
}
.pp-id-text { display: flex; flex-direction: column; min-width: 0; }
.pp-name { font-family: var(--font-display), serif; font-weight: 700; font-size: 1.1rem; }
.pp-role { font-size: .92rem; color: var(--muted); }
.pp-badge {
    align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft);
    color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.cc-site .pp-hero h1 { font-size: 3rem; line-height: 1.12; text-wrap: balance; }
.cc-site .pp-tagline { font-size: 1.15rem; max-width: 38ch; margin: 0; color: var(--muted); }
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cc-socials.pp-socials { justify-content: flex-start; }
.pp-hero-media { aspect-ratio: 4 / 3; }
.pp-video { margin-top: 44px; }
.pp-video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.pp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Overlay: the text over a background — the hero photo under a dark scrim, the
   theme's color, or its soft tint. */
.cc-site section.pp-hero--overlay { padding: 110px 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.pp-bg-photo { background-color: #1d2420; color: #fff; }
.pp-bg-accent { background: var(--accent); color: var(--accent-contrast); }
.pp-bg-tint { background: var(--accent-soft); }
.cc-site .pp-bg-photo h1, .cc-site .pp-bg-photo .pp-name { color: #fff; }
.cc-site .pp-bg-photo .pp-tagline, .cc-site .pp-bg-photo .pp-role { color: rgba(255, 255, 255, .9); }
.cc-site .pp-bg-accent h1, .cc-site .pp-bg-accent .pp-name,
.cc-site .pp-bg-accent .pp-tagline, .cc-site .pp-bg-accent .pp-role { color: var(--accent-contrast); }
.cc-site .pp-bg-photo .cc-btn-primary, .cc-site .pp-bg-accent .cc-btn-primary { background: #fff; color: #1f1d1a; border-color: #fff; }
.cc-site .pp-bg-photo .cc-btn-ghost, .cc-site .pp-bg-accent .cc-btn-ghost { border-color: currentColor; color: inherit; }
.cc-site .pp-bg-photo .cc-btn-ghost:hover, .cc-site .pp-bg-accent .cc-btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.pp-bg-photo .pp-badge, .pp-bg-accent .pp-badge { background: rgba(255, 255, 255, .18); color: inherit; }
.pp-bg-photo .cc-social, .pp-bg-accent .cc-social { color: inherit; border-color: rgba(255, 255, 255, .55); }
.pp-bg-photo .pp-headshot, .pp-bg-accent .pp-headshot { border-color: #fff; }
.pp-bg-tint .pp-headshot { border-color: var(--bg); }

/* From the blog */
.cc-site .pp-post { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.cc-site .pp-post:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.pp-post-media { aspect-ratio: 3 / 2; background-color: var(--surface-2); background-size: cover; background-position: center; }
.pp-post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.pp-post-meta { font-size: .85rem; color: var(--muted); }
.cc-site .pp-post h3 { font-size: 1.1rem; line-height: 1.3; margin: 0; }
.pp-post-more { margin-top: 2px; font-size: .9rem; font-weight: 700; color: var(--accent); }

/* With no website: a simple header with the practice's mark, and a quiet footer. */
.cc-site .pp-simple-head .cc-navrow { padding-block: 14px; gap: 12px; }
.pp-mark {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-contrast); font-family: var(--font-display), serif; font-weight: 700;
}
.pp-simple-foot { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; font-size: .85rem; color: var(--muted); }

@media (max-width: 820px) {
    .pp-hero-row { grid-template-columns: 1fr; gap: 28px; }
    .cc-site .pp-hero h1 { font-size: 2.2rem; }
    .cc-site section.pp-hero--overlay { padding: 56px 0; }
    .pp-headshot { width: 64px; height: 64px; }
}
