/* My Community (/projects/my-community/): a concept preview of the El Dorado County community dashboard, styled to
   match WhiteFeathersElDoradoCommunityDashboard.png (forest green, cream, sage, and gold, serif headings, golden-hour
   photography). The whole page takes the green tone: the site logo banner is left out (build_pages.py) and the menu links
   are hidden, so the hero's "WhiteFeathers | El Dorado County" line links home; the background, title, and footer
   are recoloured to match. Nothing here calls an API; the town pills only toggle a highlight (frontend/community.js), and every listing
   and photo (frontend/community/*.jpg, AI-generated mock images) is a labeled example. */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap");

html body.page-my-community { background: #0d211c; }
body.page-my-community #page { max-width: 1280px; background: linear-gradient(180deg, #16332b 0%, #122a24 420px, #0d211c 100%); color: #f7f3ea; }
body.page-my-community .site-navigation-row { display: none; }
body.page-my-community #masthead { margin: 0; padding-top: 0; }
/* The page title stays in the markup for screen readers and search engines, but the dashboard hero is the visible start. */
body.page-my-community .entry-header { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.page-my-community #colophon { border-top-color: rgba(227, 190, 107, 0.35); color: #c9d3c4; }
body.page-my-community #colophon a { color: #f4ead0; }
body.page-my-community #colophon a:hover { color: #e3be6b; }
body.page-my-community .widget-area { display: none; }
body.page-my-community .wrapper { display: block; }
body.page-my-community .site-content { width: 100%; }

body.page-my-community .comm-mock {
  --comm-forest: #122a24; --comm-forest-2: #1c3931; --comm-green: #1e4a2c; --comm-link: #1f5a2a;
  --comm-cream: #f7f3ea; --comm-cream-2: #fbf9f4; --comm-line: #e6dfcd; --comm-sage: #e0e4d4;
  --comm-gold: #d5ac53; --comm-gold-2: #e3be6b; --comm-ink: #1d2b22; --comm-muted: #4d5a50;
  --comm-serif: "Lora", Georgia, "Times New Roman", serif;
  overflow: hidden; border-radius: 14px; background: var(--comm-forest); color: var(--comm-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.page-my-community .comm-svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero: golden-hour foothills photo, serif headline, search, and town pills. */
body.page-my-community .comm-hero {
  position: relative; padding: 26px 24px 40px; text-align: center; color: #fff;
  background:
    linear-gradient(180deg, rgba(18, 42, 36, 0.7) 0%, rgba(18, 42, 36, 0.2) 30%, rgba(18, 42, 36, 0.25) 62%, var(--comm-forest) 100%),
    url("/community/hero.jpg") center 38% / cover no-repeat;
}
body.page-my-community .comm-brand { margin: 0 0 18px; font: 600 16px var(--comm-serif); letter-spacing: .02em; color: #fff; text-align: left; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.6); }
body.page-my-community .comm-brand a { color: inherit; text-decoration: none; }
body.page-my-community .comm-brand a:hover, body.page-my-community .comm-brand a:focus-visible { text-decoration: underline; text-decoration-color: var(--comm-gold-2); }
body.page-my-community .comm-brand span { color: var(--comm-gold); margin: 0 4px; }
body.page-my-community .comm-brand em { font-style: normal; color: var(--comm-gold-2); }
body.page-my-community .entry-content .comm-tagline { margin: 0 0 8px; font: 600 clamp(26px, 4.2vw, 46px)/1.15 var(--comm-serif); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
body.page-my-community .comm-subline { margin: 0 0 18px; font-size: 15px; color: #fdf7e6; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
body.page-my-community .comm-subline span { margin: 0 8px; color: var(--comm-gold-2); }
body.page-my-community .comm-search { display: flex; align-items: center; max-width: 820px; margin: 0 auto 22px; padding: 0 0 0 16px; gap: 10px; overflow: hidden; border-radius: 26px; background: #f1f2ec; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
body.page-my-community .comm-search > .comm-svg { color: #b48a2c; font-size: 20px; }
body.page-my-community .comm-search input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; font: 14.5px "Open Sans", Arial, sans-serif; color: var(--comm-muted); text-overflow: ellipsis; }
body.page-my-community .comm-search input::placeholder { color: #3e4a40; opacity: 1; }
body.page-my-community .comm-search button { flex: none; display: flex; align-items: center; justify-content: center; width: 78px; height: 44px; border: 0; background: var(--comm-gold); color: #1d2b22; font-size: 22px; cursor: not-allowed; }

body.page-my-community .comm-towns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
body.page-my-community .comm-towns-label { display: inline-flex; align-items: center; gap: 6px; font: 600 17px var(--comm-serif); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
body.page-my-community .comm-towns-label .comm-svg { color: var(--comm-gold-2); font-size: 20px; }
body.page-my-community .comm-town-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
body.page-my-community .comm-town { padding: 8px 20px; border: 1.5px solid rgba(244, 234, 208, 0.75); border-radius: 22px; background: rgba(22, 52, 38, 0.82); color: #fff; font: 500 14px "Open Sans", Arial, sans-serif; cursor: pointer; transition: background .15s, color .15s; }
body.page-my-community .comm-town:hover, body.page-my-community .comm-town:focus-visible { background: rgba(30, 74, 44, 0.95); border-color: var(--comm-gold-2); }
body.page-my-community .comm-town[aria-pressed="true"] { background: var(--comm-gold); border-color: var(--comm-gold); color: #1d2b22; font-weight: 700; }

/* Cards */
body.page-my-community .comm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 16px; }
body.page-my-community .comm-card { position: relative; display: flex; flex-direction: column; padding: 16px 16px 18px; border-radius: 10px; background: var(--comm-cream); border: 1px solid #efe7d2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); overflow: hidden; }
body.page-my-community .comm-card-head { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
body.page-my-community .comm-card-icon { flex: none; color: var(--comm-forest-2); font-size: 34px; line-height: 0; }
body.page-my-community .entry-content .comm-card-head h2 { margin: 0; font: 600 23px/1.2 var(--comm-serif); color: var(--comm-ink); }
body.page-my-community .comm-card-head h2 small { font-size: 17px; font-weight: 500; }
body.page-my-community .comm-card-head p { margin: 3px 0 0; color: var(--comm-ink); font-size: 13px; line-height: 1.4; }
body.page-my-community .comm-chip { flex: none; padding: 4px 12px; border-radius: 14px; background: #f4eacb; border: 1px solid #e3d29e; color: var(--comm-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
body.page-my-community .comm-card-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 12px 46px; }
body.page-my-community .comm-card-tag { padding: 2px 10px; border-radius: 10px; background: var(--comm-green); color: #f4ead0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

body.page-my-community .comm-card-list { margin: 0; padding: 0; list-style: none; }
body.page-my-community .comm-news-item { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--comm-line); }
body.page-my-community .comm-news-item:first-child { border-top: 0; padding-top: 0; }
body.page-my-community .comm-news-item img { flex: none; width: 140px; height: 80px; object-fit: cover; border-radius: 4px; }
body.page-my-community .entry-content .comm-news-item h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--comm-ink); }
body.page-my-community .comm-news-item p { margin: 2px 0 2px; color: var(--comm-muted); font-size: 12.5px; line-height: 1.4; }
body.page-my-community .comm-source { color: var(--comm-link); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

body.page-my-community .comm-garage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.page-my-community .comm-garage-item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
body.page-my-community .comm-garage-item p { margin: 6px 4px 0; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--comm-ink); }
body.page-my-community .comm-garage-item .comm-garage-price { margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--comm-green); }
body.page-my-community .comm-post-row { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; }
body.page-my-community .comm-btn-gold { display: inline-flex; align-items: center; gap: 10px; padding: 10px 26px; white-space: nowrap; border: 1px solid #c99d3e; border-radius: 10px; background: linear-gradient(180deg, #ecc979 0%, var(--comm-gold) 100%); color: var(--comm-ink); font: 600 19px var(--comm-serif); cursor: not-allowed; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); }
body.page-my-community .comm-btn-gold .comm-svg { font-size: 22px; stroke-width: 2.2; }
body.page-my-community .comm-post-row p { margin: 0; color: var(--comm-muted); font-size: 12.5px; line-height: 1.35; }

body.page-my-community .comm-card-events { padding-bottom: 130px; }
body.page-my-community .comm-card-events::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(170px, 55%); pointer-events: none; opacity: .55;
  background: url("/community/events-ridges.jpg") center 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  filter: saturate(.55) sepia(.15);
}
body.page-my-community .comm-event-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.page-my-community .comm-event { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 6px; border-radius: 8px; background: var(--comm-sage); color: var(--comm-ink); font-size: 14px; line-height: 1.3; text-align: center; }
body.page-my-community .comm-event .comm-svg { font-size: 34px; color: #1d3a2b; }

/* Photo tiles */
body.page-my-community .comm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px 16px 0; }
body.page-my-community .comm-tile { display: flex; align-items: center; gap: 14px; min-height: 108px; padding-right: 14px; overflow: hidden; border-radius: 10px; background: var(--comm-cream); border: 1px solid #efe7d2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
body.page-my-community .comm-tile img { flex: none; align-self: stretch; width: 32%; max-width: 150px; min-height: 108px; object-fit: cover; }
body.page-my-community .comm-tile-body { flex: 1 1 auto; padding: 12px 0; }
body.page-my-community .entry-content .comm-tile h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 600 19px/1.2 var(--comm-serif); color: var(--comm-ink); }
body.page-my-community .comm-tile h3 .comm-svg { font-size: 26px; color: var(--comm-forest-2); }
body.page-my-community .comm-tile p { margin: 0; color: var(--comm-ink); font-size: 12.5px; line-height: 1.45; }
body.page-my-community .comm-news-item p, body.page-my-community .comm-event { line-height: 1.35; }
body.page-my-community .comm-tile > .comm-svg { font-size: 22px; color: var(--comm-ink); }

/* Footer band */
body.page-my-community .comm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 20px; padding: 16px 24px; background: var(--comm-forest-2); border-top: 1px solid rgba(244, 234, 208, 0.12); }
body.page-my-community .comm-foot p { margin: 0; }
body.page-my-community .comm-foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 500 18px var(--comm-serif); color: #f7f3ea; }
body.page-my-community .comm-foot-brand .comm-svg { font-size: 26px; color: #f4ead0; }
body.page-my-community .comm-foot-brand span, body.page-my-community .comm-foot-links span { margin: 0 4px; color: rgba(244, 234, 208, 0.6); }
body.page-my-community .comm-foot-motto { font: italic 500 21px var(--comm-serif); color: var(--comm-gold-2); }
body.page-my-community .comm-foot-links { font-size: 13px; color: #f7f3ea; }

body.page-my-community .comm-disclaimer { margin: 0; padding: 12px 24px 16px; background: var(--comm-forest-2); color: rgba(247, 243, 234, 0.72); font-size: 12px; }
body.page-my-community .comm-disclaimer a { color: var(--comm-gold-2); }

@media (max-width: 1100px) {
  body.page-my-community .comm-grid, body.page-my-community .comm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-my-community .comm-card-events { grid-column: 1 / -1; }
  body.page-my-community .comm-tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body.page-my-community .comm-hero { padding: 20px 14px 30px; background-image: linear-gradient(180deg, rgba(18, 42, 36, 0.6) 0%, rgba(18, 42, 36, 0.3) 40%, var(--comm-forest) 100%), url("/community/hero-800.jpg"); }
  body.page-my-community .comm-grid, body.page-my-community .comm-tiles { grid-template-columns: minmax(0, 1fr); padding-left: 10px; padding-right: 10px; }
  body.page-my-community .comm-tile:last-child { grid-column: auto; }
  body.page-my-community .comm-news-item img { width: 104px; height: 70px; }
  body.page-my-community .comm-chip { display: none; }
  body.page-my-community .comm-event-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-my-community .comm-search button { width: 56px; }
  body.page-my-community .comm-foot { justify-content: center; text-align: center; }
  body.page-my-community .comm-foot-brand { flex-wrap: wrap; justify-content: center; }
  body.page-my-community .comm-post-row { flex-wrap: wrap; }
}
