/* Elizabeth's Place — shared stylesheet
   Warm, clean, mobile-first styles for the public site and blog.
   If this file already exists on a later pass, append rather than replace it. */

:root {
  --bg: #f7f3ed;
  --paper: #fffcf8;
  --ink: #2a2420;
  --muted: #5d554e;
  --line: #e3dad0;
  --accent: #3d5c4e;
  --accent-dark: #2b4439;
  --accent-soft: #e7efe9;
  --link: #215544;
  --link-hover: #163c30;
  --warning-bg: #f3eee4;
  --warning-line: #d4c4a8;
  --footer-bg: #2b4439;
  --footer-ink: #f4efe7;
  --footer-muted: #d5ddd8;
  --max: 42rem;
  --max-wide: 62rem;
  --shadow: 0 1px 2px rgba(42, 36, 32, 0.04), 0 8px 24px rgba(42, 36, 32, 0.06);
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 106.25%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  width: min(100% - 2rem, var(--max-wide));
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  min-width: 0;
}

.site-logo {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

.site-mark:hover {
  color: var(--link);
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--link);
  text-decoration: underline;
}

.hero,
.page-intro {
  padding: 2.25rem 0 0.5rem;
}

.hero h1,
.page-intro h1,
.article-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
}

.lede,
.page-intro p {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

main {
  padding-bottom: 3rem;
}

.article-header {
  padding: 2.25rem 0 0.25rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

article.entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem 2rem;
  margin: 0.5rem 0 2rem;
}

@media (min-width: 700px) {
  article.entry {
    padding: 2.25rem 2.4rem 2.5rem;
  }
}

.entry h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2rem 0 0.7rem;
}

.entry h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  margin: 1.5rem 0 0.5rem;
}

.entry p,
.entry li {
  color: var(--ink);
}

.entry p {
  margin: 0 0 1rem;
}

.entry ul,
.entry ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.entry li {
  margin: 0 0 0.45rem;
}

.entry li ul {
  margin: 0.4rem 0 0.2rem;
}

.notice {
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: 0.55rem;
  padding: 0.95rem 1rem;
  margin: 1.5rem 0;
}

.notice p {
  margin: 0;
  font-size: 0.95rem;
}

.sources {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.sources h2 {
  margin-top: 0;
}

.sources li {
  margin-bottom: 0.55rem;
}

.related {
  margin-top: 1.5rem;
}

.related h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.related li {
  margin: 0 0 0.4rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.blog-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: inherit;
}

.blog-card h2 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--accent-dark);
}

.blog-card .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.55rem;
}

.blog-card p {
  margin: 0;
  color: var(--ink);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 2rem 0 2.4rem;
  margin-top: 1rem;
}

.site-footer .wrap,
.site-footer .wrap-wide {
  width: min(100% - 2rem, var(--max-wide));
}

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--footer-muted);
  max-width: 46rem;
}

.site-footer p:first-child {
  color: var(--footer-ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.site-footer a {
  color: #e8f3ed;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 560px) {
  html {
    font-size: 100%;
  }
}

@media (max-width: 760px) {
  .site-header .wrap,
  .site-header .wrap-wide {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .related,
  .skip-link {
    box-shadow: none;
  }

  article.entry {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333;
    word-break: break-all;
  }
}

/* ==========================================================================
   Home page, gallery, lightbox, and sticky contact buttons (appended)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-nav {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: var(--accent-dark);
}

.button--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Hero */
.home-hero {
  position: relative;
  min-height: min(78vh, 44rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1e1a17;
}

.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.home-hero-overlay {
  position: relative;
  width: 100%;
  padding: 7rem 0 2.5rem;
  background: linear-gradient(to top, rgba(20, 17, 14, 0.82) 0%, rgba(20, 17, 14, 0.55) 55%, rgba(20, 17, 14, 0) 100%);
  color: #fff;
}

.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-hero-tag {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  margin: 0 0 0.35rem;
}

.home-hero-note {
  margin: 0.15rem 0 1.2rem;
  max-width: 28rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.home-hero .button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.home-hero .button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-hero a:focus-visible {
  outline-color: #fff;
}

/* Sections */
.section {
  padding: 3.25rem 0;
  scroll-margin-top: 4rem;
}

.section--tint {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.8vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
}

.section-intro {
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

.section p {
  max-width: 44rem;
}

.women-only {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0.35rem;
}

/* Four dimensions */
.dimensions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.dimension {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 0.6rem;
  padding: 1.2rem 1.25rem;
}

.dimension h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--accent-dark);
}

.dimension p {
  margin: 0;
}

@media (min-width: 620px) {
  .dimensions { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .dimensions { grid-template-columns: repeat(4, 1fr); }
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.lightbox::backdrop {
  background: rgba(15, 13, 11, 0.92);
}

.lightbox-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.75rem 1rem;
  pointer-events: none;
}

.lightbox-frame > * {
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 0.35rem;
}

.lightbox-bar {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  width: min(100%, 60rem);
  color: #f4efe7;
  font-size: 0.95rem;
  padding: 0.6rem 0.25rem 0;
}

.lightbox-bar p {
  margin: 0;
}

.lightbox-count {
  color: #cfc7bd;
  white-space: nowrap;
}

.lightbox-btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lightbox-close { top: 0.5rem; right: 0.75rem; }
.lightbox-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }

/* Blog teaser grid */
.blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-grid .blog-card {
  height: 100%;
}

.blog-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--accent-dark);
}

.more-link {
  margin: 1.5rem 0 0;
  font-weight: 650;
}

/* Contact */
.contact-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

@media (min-width: 620px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem;
}

.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
}

.contact-location {
  color: var(--muted);
}

.site-footer .copyright {
  margin-top: 1.25rem;
  font-family: var(--sans);
  color: var(--footer-ink);
}

/* Sticky contact buttons: bottom bar on phones, floating group on desktop */
.sticky-contact {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--accent-dark);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.4rem;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
}

.sticky-btn + .sticky-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-btn svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.sticky-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sticky-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

body.has-sticky-contact {
  padding-bottom: calc(3.4rem + env(safe-area-inset-bottom, 0));
}

@media (min-width: 900px) {
  .sticky-contact {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .sticky-btn {
    min-height: 0;
    justify-content: flex-start;
    padding: 0.7rem 1.15rem 0.7rem 0.95rem;
    border-radius: 999px;
    background: var(--accent-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  .sticky-btn + .sticky-btn {
    border-left: 0;
  }

  .sticky-btn:hover {
    background: var(--accent);
  }

  .sticky-btn:focus-visible {
    outline-offset: 3px;
    outline-color: var(--accent-dark);
  }

  body.has-sticky-contact {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img,
  .blog-card { transition: none; }
}

@media print {
  .sticky-contact,
  .lightbox { display: none !important; }
}

/* Footer links and cookie notice (appended) */
.site-footer .footer-links {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--footer-muted);
}

.site-footer .footer-links a {
  margin-right: 0.15rem;
}

.is-coming-soon {
  text-decoration: none;
  cursor: default;
  font-style: italic;
  opacity: 0.85;
}

a.is-coming-soon:hover {
  color: inherit;
}

.site-footer .is-coming-soon,
.site-footer .is-coming-soon:hover {
  color: var(--footer-muted);
}

.consent {
  position: fixed;
  z-index: 70;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(4.1rem + env(safe-area-inset-bottom, 0));
  max-width: 34rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
}

.consent p { margin: 0 0 0.75rem; }
.consent .consent-actions { display: flex; gap: 0.6rem; margin: 0; }

@media (min-width: 900px) {
  .consent { left: 1.25rem; right: auto; bottom: 1.25rem; }
}

/* Phones: keep the header in normal flow so it doesn't eat screen height */
@media (max-width: 699px) {
  .site-header { position: static; }
  .site-header .wrap-wide { padding: 0.7rem 0; row-gap: 0.35rem; }
  .section { scroll-margin-top: 0.5rem; }
  .approx-location { scroll-margin-top: 0.5rem; }
  .site-logo { width: 1.9rem; height: 1.9rem; }
  .site-mark { font-size: 1.08rem; gap: 0.4rem; }
}

/* Hero tagline inside the H1, what-we-are block, footer nav (appended) */
.home-hero h1 .home-hero-tag {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.are-not {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .are-not { grid-template-columns: 1fr 1fr; }
}

.are-not-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.2rem 1.3rem;
}

.are-not-col h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--accent-dark);
}

.are-not-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.are-not-col li {
  position: relative;
  padding-left: 1.7rem;
  margin: 0 0 0.5rem;
}

.are-not-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.are-not-col--are li::before { content: "\2713"; color: var(--accent); }
.are-not-col--not li::before { content: "\2715"; color: #8a4b3c; }

.are-not-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.site-footer .footer-nav a {
  font-weight: 600;
}

/* Gallery: flex so an incomplete last row is centered instead of leaving a hole */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery > li {
  flex: 0 0 100%;
}

@media (min-width: 560px) {
  .gallery > li { flex-basis: calc((100% - 0.75rem) / 2); }
}

@media (min-width: 960px) {
  .gallery > li { flex-basis: calc((100% - 1.5rem) / 3); }
}

/* Fix: keep article cards centered (article.entry margin was overriding .wrap) */
article.entry.wrap,
.notice.wrap,
.related.wrap,
.blog-list.wrap {
  margin-left: auto;
  margin-right: auto;
}

.page-intro .kicker {
  font-size: 0.78rem;
  color: var(--accent);
}

/* Program, fit, amenities, contact label (appended) */
.honesty-first {
  margin-top: 1.15rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0.35rem;
  max-width: 44rem;
}

.program-blocks {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .program-blocks { grid-template-columns: 1.15fr 0.85fr; }
}

.program-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.2rem 1.3rem;
}

.program-block h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
}

.program-block p + h3 {
  margin-top: 1rem;
}

.program-block p {
  margin: 0;
}

.split-lists {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .split-lists { grid-template-columns: 1fr 1fr; }
}

.split-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.2rem 1.3rem;
}

.section:not(.section--tint) .split-col {
  background: var(--paper);
}

.split-col h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--accent-dark);
}

.split-col ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.split-col li {
  margin: 0 0 0.5rem;
}

.split-col li:last-child {
  margin-bottom: 0;
}

.section p.fit-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  max-width: none;
}

.section--tint .fit-note {
  background: var(--bg);
}

.house-manager {
  font-weight: 650;
  margin: 1rem 0 0;
}

.sticky-btn.is-coming-soon {
  opacity: 0.72;
  font-style: normal;
  cursor: pointer;
}

.sticky-btn.is-coming-soon:hover {
  color: #fff;
}

@media (max-width: 699px) {
  .site-nav {
    gap: 0.45rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* Large portrait logo in the hero, above the title */
.home-hero-portrait {
  display: block;
  width: clamp(96px, 14vw, 168px);
  height: auto;
  margin: 0 0 1rem;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
@media (max-height: 640px) and (max-width: 700px) {
  .home-hero-portrait { width: 84px; margin-bottom: .6rem; }
}

/* How to join */
.join-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: join-step;
}

@media (min-width: 700px) {
  .join-steps { grid-template-columns: repeat(3, 1fr); }
}

.join-steps li {
  counter-increment: join-step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.2rem 1.3rem;
}

.section--tint .join-steps li {
  background: var(--bg);
}

.join-steps h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.join-steps h3::before {
  content: counter(join-step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.join-steps p {
  margin: 0;
}

.section p.join-note {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0.35rem;
  max-width: 44rem;
}

.section p.join-costs {
  color: var(--muted);
  margin: 0;
}

.contact-person { margin: 0 0 1rem; font-size: 1.05rem; }


/* ==========================================================================
   Header polish (centered mobile bar) and sticky Home button
   ========================================================================== */

/* Desktop: keep primary nav on one line, including at 1024px */
.site-nav {
  flex-wrap: nowrap;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .site-header .wrap,
  .site-header .wrap-wide {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .site-nav {
    gap: 0.7rem;
    font-size: 0.85rem;
  }
}

/* Phones and narrow tablets: centered mark, tidy centered nav rows */
@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-header .wrap,
  .site-header .wrap-wide {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    row-gap: 0;
    padding: 0.55rem 0 0.3rem;
  }

  .site-logo {
    width: 1.9rem;
    height: 1.9rem;
  }

  .site-mark {
    font-size: 1.08rem;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.1rem 0 0.4rem;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0 0.1rem;
    padding: 0.1rem 0 0;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
    text-align: center;
  }

  .section {
    scroll-margin-top: 0.5rem;
  }

  .approx-location {
    scroll-margin-top: 0.5rem;
  }
}


/* Force a 3 + 4 nav wrap on mid-size phones; very narrow phones wrap naturally */
.nav-break {
  display: none;
}

@media (min-width: 350px) and (max-width: 620px) {
  .nav-break {
    display: block;
    flex-basis: 100%;
    width: 100%;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;
  }
}

/* Sticky Home: fourth item in the mobile contact bar; pill at bottom-left on desktop */
.sticky-home {
  position: fixed;
  z-index: 60;
  left: 0;
  bottom: 0;
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.4rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

a.sticky-home:link,
a.sticky-home:visited,
a.sticky-home:hover,
a.sticky-home:active,
a.sticky-home:focus {
  color: #fff;
  text-decoration: none;
}

.sticky-home svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Hover highlight only on devices that can hover. On iOS, :hover can stick
   after a tap; background: rgba(255,255,255,0.1) replaced the solid bar and
   left the Home button looking transparent until the next tap elsewhere. */
@media (hover: hover) {
  .sticky-home:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
}

.sticky-home:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  color: #fff;
}

/* Contact bar shares the bottom row with Home on phones */
.sticky-contact {
  left: 25%;
}

@media (min-width: 900px) {
  .sticky-home {
    left: 1.25rem;
    right: auto;
    bottom: 1.25rem;
    width: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem 0.7rem 0.95rem;
    border-radius: 999px;
    border-right: 0;
    font-size: 1rem;
    background: var(--accent-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  }

  @media (hover: hover) {
    .sticky-home:hover {
      background: var(--accent);
    }
  }

  .sticky-home:focus-visible {
    outline-offset: 3px;
    outline-color: var(--accent-dark);
  }

  /* Restore the floating contact stack on the right */
  .sticky-contact {
    left: auto;
  }

  /* Cookie banner sits above the Home pill so they do not overlap */
  .consent {
    bottom: 5.5rem;
  }
}

@media print {
  .sticky-home {
    display: none !important;
  }
}


/* Approximate location map in the Contact section */
.approx-location {
  margin: 1.5rem 0 0;
  padding: 0;
  scroll-margin-top: 4rem;
}

.approx-location h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent-dark);
  margin: 0 0 0.5rem;
}

.approx-location > p {
  margin: 0 0 1rem;
  max-width: 44rem;
}

.approx-location-map {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.approx-location-map picture,
.approx-location-map img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.approx-location figcaption {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
