/* Community landing pages (landing-<town>.html, for outreach campaigns; not linked from the site), on top of site.css.
   Every town uses the site's own colours, sizes and corners (teal and coral, like the home page). A town only sets its photo.
   Pages are written by tools/make_landings.py. Photo credits are in each page. */
.town-squamish      { --hero: url("../images/squamish-chief-hero.jpg");        --hero-pos: 60% 30%; }
.town-richmond      { --hero: url("../images/richmond-steveston-hero.jpg");    --hero-pos: 50% 50%; --mid: 0.55; }
.town-whistler      { --hero: url("../images/whistler-mountains-hero.jpg");    --hero-pos: 70% 40%; }
.town-portmoody     { --hero: url("../images/portmoody-inlet-hero.jpg");       --hero-pos: 60% 50%; }
.town-portcoquitlam { --hero: url("../images/portcoquitlam-pitt-river-hero.jpg"); --hero-pos: 65% 40%; }
.town-survey        { --hero: url("../images/landscape-squamish.jpg");         --hero-pos: center 40%; }   /* survey.html: Council Watch's own art */

/* Hero: town photo behind a teal fade so the text stays readable */
.lp-hero { position: relative; color: var(--white); background:
  linear-gradient(90deg, rgba(1, 54, 70, 0.95) 0%, rgba(1, 54, 70, 0.84) 38%, rgba(1, 54, 70, var(--mid, 0.25)) 72%, rgba(1, 54, 70, 0) 100%),
  var(--hero) var(--hero-pos) / cover no-repeat, var(--teal); }
.lp-hero .wrap { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 7vw, 96px); }
.lp-hero-text { max-width: 700px; display: grid; gap: 22px; }
.lp-hero h1 { color: var(--white); font-size: var(--fs-display); line-height: 1.04; }
.lp-hero .eyebrow { color: var(--coral-hover); font-size: var(--fs-sm); }   /* the site's coral, one step lighter for small text on teal */
.lp-hero .tagline { color: var(--on-dark); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.02em; margin-top: -8px; }
.lp-hero .lede { color: #e6edf0; font-size: var(--fs-xl); max-width: 36ch; }
.lp-hero .subscribe label { color: var(--white); font-size: var(--fs-lg); font-weight: 700; margin: 0; }
.lp-hero .subscribe, .lp-hero .listen { max-width: 640px; }
.lp-hero .subscribe-row input[type="email"] { border-color: transparent; height: 56px; font-size: var(--fs-lg); padding: 12px 24px; }
.lp-hero .subscribe-note { color: #d6e0e4; font-size: var(--fs-base); }
.lp-hero .subscribe-note a { color: var(--white); }
.lp-hero .listen { border-top-color: rgba(255, 255, 255, 0.25); padding-top: 20px; gap: 14px; }

/* Podcast sample and podcast links, one size up in the hero */
.lp-hero .player-card { position: static; width: 100%; margin-top: 0; grid-template-columns: 64px 1fr auto; gap: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
.lp-hero .player-card img { width: 64px; height: 64px; }
.lp-hero .player-info b { font-size: var(--fs-base); }
.lp-hero .badge-img img { height: 56px; }   /* same height as the hero's .btn-lg buttons */
.lp-hero .btn svg { width: 22px; height: 22px; flex: none; }

/* Survey page (survey.html): a shorter hero, then the Tally form at its full height */
.lp-hero-short .wrap { padding-block: clamp(40px, 5vw, 64px); }
.lp-survey .wrap { max-width: 760px; padding-block: 16px 48px; }
.lp-survey iframe { display: block; width: 100%; min-height: 600px; border: 0; }

/* Photo credit on a small dark strip */
.lp-credit { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); margin: 0; padding: 4px 10px;
  background: rgba(0, 0, 0, 0.62); border-radius: var(--r-sm); font-size: var(--fs-2xs); line-height: 1.4; color: var(--white); }
.lp-credit a { color: inherit; }

/* Facts strip */
.lp-facts { background: var(--teal); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.lp-facts ul { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-facts b { display: block; color: var(--white); font-size: var(--fs-lg); }

/* Recently covered (filled from the newsletter feed by js/landing.js) */
.lp-recent { list-style: none; margin: 0; padding: 0; }
.lp-recent li { display: grid; }
.lp-recent a { text-decoration: none; height: 100%; gap: 8px; }
.lp-recent a:hover { border-color: var(--teal-2); box-shadow: var(--shadow); }
.lp-recent time, .lp-recent .lp-date { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-text); }
.lp-recent b { color: var(--teal); font-size: var(--fs-base); line-height: 1.35; }
.lp-more { margin-top: 20px; font-weight: 600; }

@media (max-width: 900px) {
  .lp-hero { background:
    linear-gradient(rgba(1, 54, 70, 0.8), rgba(1, 54, 70, 0.92)),
    var(--hero) var(--hero-pos) / cover no-repeat, var(--teal); }
  .lp-facts ul { grid-template-columns: 1fr; }
  .lp-recent.cols-2, .lp-recent.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-hero .wrap { padding-bottom: 40px; }
  .lp-credit { position: static; max-width: none; border-radius: 0; padding: 6px 20px; }
  /* Podcast badges side by side, centred under the full-width subscribe button */
  .lp-hero .badges { flex-wrap: nowrap; justify-content: center; }
  .lp-hero .badge-img { flex: 0 1 auto; min-width: 0; }
  .lp-hero .badge-img img { height: auto; max-height: 56px; }
}
@media (max-width: 480px) {
  .lp-hero .player-card { grid-template-columns: 56px 1fr; }
  .lp-hero .player-card img { width: 56px; height: 56px; }
  .lp-hero .play-btn { grid-column: 1 / -1; }
}
