/* Community Access page (/community/).
   Page-scoped styles loaded after styles.css. Core tokens only; no new
   colors or type. Documented in DESIGN_SYSTEM.md §6.11. */

/* In-page section nav (sits under the sticky site header) */
.community-access-page .section-nav { position: relative; z-index: 15; display: block; width: auto; gap: 0; padding: 0; border-bottom: 1px solid rgba(55, 94, 119, .14); background: rgba(255, 255, 255, .55); }
.community-access-page .section-nav-links { display: flex; min-height: 3.25rem; align-items: center; justify-content: space-between; gap: 1.2rem; }
.community-access-page .section-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.community-access-page .section-nav a::after { bottom: .45rem; }

/* Anchor targets land below the sticky site header (5.6rem tall, ~8.5rem when it stacks at ≤950px, not sticky at ≤680px) */
.community-access-page .intro-band, .demo-section, .access-section, .community-access-why, .community-access-connect { scroll-margin-top: 6.5rem; }

/* Hero: full-bleed photo under a cream paper gradient (the quiet cousin of the kelp hero) */
.community-access-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: 34rem; align-items: center; background: var(--mist); }
.community-access-hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(250, 249, 248, .99) 0%, rgba(250, 249, 248, .97) 37%, rgba(250, 249, 248, .72) 55%, rgba(250, 249, 248, .08) 82%); content: ""; }
.has-kelp-sketch .community-access-hero, .has-kelp-sketch .community-access-connect { z-index: 13; }
.community-access-hero-grid { display: grid; grid-template-columns: minmax(0, 42rem) 1fr; align-items: center; }
.community-access-hero-copy { padding-block: clamp(3.5rem, 7vw, 5rem); }
.community-access-hero h1 { max-width: 12ch; margin-bottom: 1.3rem; font-size: clamp(3.4rem, 5.5vw, 5.6rem); }
.community-access-hero .lead { max-width: 36rem; margin-bottom: 1rem; }
.community-access-hero-copy > p:not(.eyebrow):not(.lead) { max-width: 36rem; margin-bottom: 0; font-size: 1.05rem; line-height: 1.6; }
.community-access-hero .button-row { margin-top: 1.8rem; }
.community-access-photo { position: absolute; z-index: -2; inset: 0; margin: 0; }
.community-access-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.community-access-photo figcaption { position: absolute; right: clamp(1.25rem, 5vw, 4rem); bottom: clamp(1.25rem, 5vw, 4rem); border-left: 2px solid var(--coral); border-radius: 0 1rem 1rem 0; padding: 1.1rem 1.3rem; background: rgba(250, 249, 248, .78); color: var(--blue-deep); font-family: var(--serif); font-size: 1.05rem; font-style: italic; backdrop-filter: blur(10px); }

/* What we share */
.community-access-page .intro-grid h2 { max-width: 12ch; }
.public-library-note { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(55, 94, 119, .16); color: rgba(38, 63, 80, .78); font-size: .95rem; }
.public-library-note:last-child { margin-bottom: 0; }

/* Demo */
.demo-section { padding-block: 0 clamp(4rem, 8vw, 7rem); }
.demo-section .section-heading h2 { max-width: 12ch; }
.demo-figure { margin: 0; }
.demo-frame { display: grid; aspect-ratio: 16 / 9; background: var(--blue-deep); }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-caption { margin: .9rem 0 0; color: rgba(38, 63, 80, .75); font-size: .82rem; line-height: 1.6; }
.demo-caption a { color: var(--blue); font-weight: 700; }

/* Easy access */
.access-heading { max-width: 53rem; margin-bottom: clamp(1.75rem, 3vw, 2.7rem); }
.access-heading h2 { max-width: 14ch; }
.access-heading > p:last-child { max-width: 45rem; margin-bottom: 0; font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.6; }
.access-card { display: grid; grid-template-columns: minmax(14rem, .8fr) minmax(20rem, 1.2fr); align-items: center; overflow: hidden; border: 1px solid rgba(55, 94, 119, .12); border-radius: 1.5rem; background: var(--white); box-shadow: 0 14px 34px rgba(38, 63, 80, .08); }
.access-card-photo { position: relative; align-self: stretch; margin: 0; }
.access-card-photo img { width: 100%; height: 100%; min-height: 22rem; max-height: 30rem; object-fit: cover; object-position: 62% center; }
.access-card-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; border-radius: .5rem; padding: .35rem .7rem; background: rgba(250, 249, 248, .86); color: rgba(38, 63, 80, .8); font-size: .72rem; backdrop-filter: blur(6px); }
.access-card-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.access-card-copy h3 { margin-bottom: 1rem; font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.access-card-copy p:last-child { margin-bottom: 0; color: rgba(38, 63, 80, .78); font-size: .95rem; }

/* Why we offer it: a warm sand wash */
.community-access-why { padding-block: clamp(4rem, 8vw, 7rem); background: linear-gradient(100deg, rgba(227, 214, 194, .38), var(--cream)); }
.community-access-why .intro-grid h2 { max-width: 15ch; }
.community-access-why .intro-copy p:last-child { margin-bottom: 0; }

/* Let's connect: dark photo band with the inquiry form */
.community-access-connect { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 8vw, 7rem); background: var(--ocean) url("../assets/home-private-practice.jpg") center 58% / cover no-repeat; color: var(--white); }
.community-access-connect::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(25, 55, 65, .94), rgba(35, 68, 76, .86) 54%, rgba(35, 68, 76, .62)); content: ""; }
.connect-grid { display: grid; grid-template-columns: minmax(17rem, .9fr) minmax(20rem, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.connect-copy .eyebrow { color: #f4bfaf; }
.connect-copy h2 { max-width: 12ch; color: var(--white); font-size: clamp(2.8rem, 4.8vw, 4.7rem); line-height: 1; }
.connect-copy > p:not(.eyebrow):not(.hero-note) { max-width: 34rem; margin-bottom: 1.6rem; color: rgba(255, 255, 255, .9); font-size: 1.08rem; line-height: 1.65; }
.connect-copy a:focus-visible { outline-color: var(--white); }
.community-access-connect .site-form { color: var(--blue-deep); }

@media (max-width: 950px) {
  .community-access-page .intro-band, .demo-section, .access-section, .community-access-why, .community-access-connect { scroll-margin-top: 9.5rem; }
  .community-access-page .section-nav { display: block; grid-template-columns: none; padding-bottom: 0; }
  .community-access-hero-grid { grid-template-columns: 1fr; }
  .community-access-hero::after { background: linear-gradient(90deg, rgba(250, 249, 248, .97), rgba(250, 249, 248, .88) 68%, rgba(250, 249, 248, .48)); }
  .community-access-hero-copy { max-width: 39rem; }
  .community-access-photo img { object-position: 67% center; }
  .community-access-photo figcaption { display: none; }
  .access-card { grid-template-columns: .85fr 1.15fr; }
  .connect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .community-access-page .intro-band, .demo-section, .access-section, .community-access-why, .community-access-connect { scroll-margin-top: 1rem; }
  .community-access-page .section-nav-links { justify-content: flex-start; gap: 1.4rem; overflow-x: auto; scrollbar-width: thin; }
  .community-access-page .section-nav a { flex: 0 0 auto; }
  .community-access-hero { min-height: 0; }
  .community-access-hero::after { background: rgba(250, 249, 248, .9); }
  .community-access-hero-copy { padding-block: 3rem; }
  .community-access-hero h1 { font-size: clamp(2.9rem, 11vw, 4rem); }
  .community-access-hero .lead { font-size: 1.02rem; line-height: 1.48; }
  .community-access-hero .button-row .button { width: 100%; }
  .demo-section { padding-block: 0 3rem; }
  .access-card { grid-template-columns: 1fr; }
  .access-card-photo img { min-height: 14rem; max-height: 20rem; }
  .access-card-copy { padding: 1.35rem; }
  .community-access-why, .community-access-connect { padding-block: 3rem; }
  .connect-copy .button-row .button { width: 100%; }
}
