/* Community pages: /communities/ and /communities/<slug>/
   Loaded only on those pages, after site.css. Uses site.css tokens and colors only (no new colors,
   no solid color blocks). Everything else on these pages is a standard site.css building block. */

/* ---------------------------------------------------------------- hero */
.cm-checked { margin-top: 22px; }

/* ---------------------------------------------------------------- at a glance */
.cm-glance .table-wrap + .source { margin-top: 14px; }
.cm-glance .table td { color: var(--ink-2); }
.cm-glance .table td a { color: var(--gold-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cm-toc { margin-top: clamp(36px, 5vw, 48px); }

/* ---------------------------------------------------------------- about: heading column beside the prose */
.cm-about { gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .cm-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.cm-about .section-head { margin-bottom: 0; }
.cm-about .section-head .rule { margin-bottom: 0; }
.cm-about .prose > p:first-child { font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); font-weight: 300; line-height: 1.65; color: var(--ink); }

/* ---------------------------------------------------------------- amenities: open editorial columns */
.cm-amenities > .callout p { font-size: .97rem; line-height: 1.7; }
.cm-amenities > .callout .source { margin-top: 12px; }

/* ---------------------------------------------------------------- homes here */
.cm-homes > .callout .checklist { margin-top: 14px; }
.cm-homes > .callout .checklist li { font-size: .95rem; line-height: 1.6; }

/* ---------------------------------------------------------------- nearby: name and detail rows */
.cm-places { margin: 0 0 1.1em; padding: 0; border-top: 1px solid var(--line); }
.cm-places > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-places dt { font-weight: 600; color: var(--ink); line-height: 1.5; }
.cm-places dd { margin: 2px 0 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.cm-side .rule { margin-block: 18px 22px; }
.cm-side .checklist li { font-size: .95rem; line-height: 1.6; }

/* ---------------------------------------------------------------- how I help (two panels on a photo) */
.cm-help .glass .btn-row { margin-top: 24px; }
.cm-help .glass > .h3 + p { margin-top: 14px; }
.cm-help .glass .link-arrow { margin-top: 10px; }

/* ---------------------------------------------------------------- sources and the way back */
.cm-sources-head .h3 { margin-top: 4px; }
.cm-sources { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line-gold); }
.cm-sources li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; line-height: 1.6; color: var(--muted); }
.cm-sources a { color: var(--gold-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cm-sources a:hover { color: var(--ink); }
.cm-more { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: clamp(36px, 5vw, 52px); padding-top: 26px; border-top: 1px solid var(--line-gold); }

/* ---------------------------------------------------------------- nearby communities (2 to 4 links, just above the sources) */
/* the block and the sources read as one closing chapter: no second hairline between them */
.cm-nearby { padding-bottom: 0; }
.section.cm-nearby + .section.section--tight:not(.photo-section)::before { content: none; }
.cm-nearby__head .h3 { margin-top: 4px; }
.cm-nearby__list { display: grid; gap: 0 clamp(24px, 4vw, 40px); list-style: none; margin: 22px 0 0; padding: 0; }
@media (min-width: 700px) { .cm-nearby__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.cm-nearby__list li { border-top: 1px solid var(--line-gold); }
.cm-nearby__list a { display: block; padding: 14px 0 16px; color: var(--ink); text-decoration: none; }
.cm-nearby__name { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; line-height: 1.4; }
.cm-nearby__name::after { content: "→"; color: var(--gold-deep); transition: transform .25s var(--ease); }
.cm-nearby__list a:hover .cm-nearby__name { color: var(--gold-deep); }
.cm-nearby__list a:hover .cm-nearby__name::after { transform: translateX(5px); }
.cm-nearby__meta { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.5; letter-spacing: .02em; color: var(--muted); }

/* ---------------------------------------------------------------- index (/communities/) */
/* status key: three short definitions in open columns */
.cm-key { display: grid; gap: 22px clamp(28px, 4vw, 48px); margin: 0; padding: 0; }
@media (min-width: 760px) { .cm-key { grid-template-columns: repeat(3, 1fr); } }
.cm-key > div { padding-top: 18px; border-top: 1px solid var(--gold); }
.cm-key dt { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.cm-key dd { margin: 8px 0 0; font-size: .95rem; line-height: 1.65; color: var(--ink-2); }
.cm-jump { margin-top: clamp(36px, 5vw, 52px); }

/* a group of communities: small heading, rule, short note, then the cards */
.cm-group { margin-top: clamp(56px, 7vw, 88px); }
.section-head + .cm-group { margin-top: 0; }
.cm-group > .rule { margin-block: 18px; }
.cm-group > p { max-width: 70ch; }
.cm-cards { margin-top: 32px; }
.cm-card .kicker { margin-bottom: 10px; }
.cm-card .cm-card__by { margin: 4px 0 0; font-size: .82rem; line-height: 1.5; letter-spacing: .02em; color: var(--muted); }
.cm-card .h3 { font-size: 1.02rem; }
.cm-card p:not(.cm-card__by) { margin-top: 10px; font-size: .97rem; line-height: 1.65; }
.cm-card .link-arrow { margin-top: 14px; }

/* area guides: two wide photo tiles */
.cm-areas { margin-top: 8px; }
.cm-foot { margin-top: 36px; max-width: 70ch; }
.cm-sources-head .small { margin-top: 12px; }

/* ---------------------------------------------------------------- /communities/: side-by-side comparison
   Seven columns: a little smaller type, and a minimum width so tablets scroll sideways instead of squeezing.
   Phones (under 700px) stack each community into its own card, as site.css does for every .table--stack. */
.cm-compare .table { font-size: .88rem; }
.cm-compare .table td { color: var(--ink-2); }
.cm-compare .table tbody th a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cm-compare .table-wrap + .source { margin-top: 14px; }
@media (min-width: 700px) { .cm-compare .table { min-width: 980px; } .cm-compare .table tbody th { width: 13%; } }
