/* ==========================================================================
   Parks of Dhaka — editorial civic-green stylesheet
   Self-hosted type: Fraunces (display) + Archivo (UI/body) + Noto Sans Bengali
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/fraunces-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/notosansbengali-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/notosansbengali-700.woff2') format('woff2');
}

:root {
  --ink: #16241b;
  --ink-soft: #3a4a3d;
  --paper: #f6f1e6;
  --paper-raised: #fffdf7;
  --green-deep: #143624;
  --green: #1f5c3d;
  --green-mid: #2c7a51;
  --green-soft: #e4ecdf;
  --line: #d8cfba;
  --terracotta: #c8562f;
  --terracotta-deep: #a5431f;
  --marigold: #e2a133;
  --marigold-deep: #b97e1c;
  --danger: #b23a2f;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', ui-serif, Georgia, serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Archivo', sans-serif;

  --radius: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(22, 36, 27, 0.06), 0 8px 24px -12px rgba(22, 36, 27, 0.22);
  --shadow-lift: 0 4px 8px rgba(22, 36, 27, 0.08), 0 20px 40px -16px rgba(22, 36, 27, 0.3);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(31, 92, 61, 0.06), transparent 45%),
    radial-gradient(circle at 100% 12%, rgba(200, 86, 47, 0.05), transparent 40%);
}

.bn { font-family: var(--font-bn); }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------- Header ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px 20px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-deep);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--green-mid), var(--green-deep));
  display: grid;
  place-items: center;
  color: var(--paper-raised);
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta-deep);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green-deep);
}

/* ---------------------------- Hero ---------------------------- */
/* Full-bleed park photo, bottom-up dark scrim for guaranteed text contrast.
   Pages set --hero-image inline; a plain green fallback covers missing photos. */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--paper);
  padding: 120px 0 88px;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 42%;
  filter: contrast(1.05) saturate(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(8, 18, 12, 0.94) 0%,
    rgba(8, 18, 12, 0.72) 32%,
    rgba(8, 18, 12, 0.28) 62%,
    rgba(8, 18, 12, 0.05) 85%
  );
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--marigold);
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 0.7s 0.05s ease forwards;
}

.hero h1 {
  color: var(--paper-raised);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  max-width: 15ch;
  margin-bottom: 20px;
  opacity: 0;
  animation: rise 0.8s 0.15s ease forwards;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--marigold);
}

.hero p.lede {
  max-width: 52ch;
  font-size: 1.14rem;
  color: #dde8de;
  margin: 0 0 34px;
  opacity: 0;
  animation: rise 0.8s 0.25s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s 0.35s ease forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 56px;
  opacity: 0;
  animation: rise 0.8s 0.45s ease forwards;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--paper-raised);
}

.hero-stats div span {
  font-size: 0.82rem;
  color: #b9ccb9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------- Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--marigold);
  color: var(--green-deep);
  box-shadow: 0 8px 20px -8px rgba(226, 161, 51, 0.7);
}
.btn-primary:hover { background: #edb246; box-shadow: 0 10px 26px -8px rgba(226, 161, 51, 0.85); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper-raised);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* Neutral high-contrast button for browse/nav CTAs on photo heroes — amber (.btn-primary)
   is reserved for petition/action buttons so it reads as visually distinct. */
.btn-paper {
  background: var(--paper-raised);
  color: var(--green-deep);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}
.btn-paper:hover { background: #ffffff; }

.btn-solid {
  background: var(--green-deep);
  color: var(--paper-raised);
}
.btn-solid:hover { background: var(--green); }

.btn-ghost {
  background: var(--green-soft);
  color: var(--green-deep);
}
.btn-ghost:hover { background: #d7e6cf; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------------------- Section headers ---------------------------- */

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head .kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta-deep);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin: 10px 0 0; color: var(--ink-soft); max-width: 60ch; }

/* ---------------------------- Park grid & cards ---------------------------- */

.park-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.park-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease;
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.park-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.park-card .thumb {
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
}

.park-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  transition: transform 0.5s ease;
}
.park-card:hover .thumb img { transform: scale(1.06); }

.thumb .badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 20%, rgba(226, 161, 51, 0.35), transparent 55%),
    linear-gradient(135deg, var(--green-mid), var(--green-deep));
}

.park-card .body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.park-card .names { display: flex; flex-direction: column; gap: 2px; }
.park-card h3 { font-size: 1.28rem; margin: 0; }
.park-card .bn-name { font-family: var(--font-bn); color: var(--ink-soft); font-size: 0.92rem; }

.park-card .location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--paper-raised);
  background: rgba(20, 54, 36, 0.72);
  backdrop-filter: blur(3px);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
}
.park-card .location-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 54, 36, 0.72);
  color: var(--paper-raised);
  backdrop-filter: blur(3px);
}
/* "new" reuses the neutral badge treatment — the warm accent is reserved for
   petition/action CTAs so it stays visually distinct from browse chrome. */

.park-card .desc {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 4px 0 6px;
  flex: 1;
}

/* Amenity chips: small icon + label derived client-side from each park's highlights. */
.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
}
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  line-height: 1;
}
.amenity-chip svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--green-mid); }

.park-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}

.stars { color: var(--marigold-deep); letter-spacing: 1px; font-size: 0.95rem; }
.stars .empty { color: #d9cfae; }

/* ---------------------------- Footer ---------------------------- */

.site-footer {
  background: var(--green-deep);
  color: #cfdccf;
  padding: 56px 0 32px;
  margin-top: 80px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: var(--paper-raised);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.site-footer p { font-size: 0.9rem; color: #b9ccb9; max-width: 40ch; }
.site-footer a { text-decoration: none; color: #cfdccf; font-size: 0.92rem; }
.site-footer a:hover { color: var(--marigold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #8fa88f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------- Detail page ---------------------------- */

/* Full-bleed photo hero, same scrim treatment as the homepage hero.
   JS sets --hero-image inline per park; falls back to plain green if a park has no photo. */
.park-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper-raised);
  background: var(--green-deep);
  padding: 128px 0 40px;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
}

.park-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 42%;
  filter: contrast(1.05) saturate(1.05);
}

.park-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(8, 18, 12, 0.92) 0%,
    rgba(8, 18, 12, 0.68) 34%,
    rgba(8, 18, 12, 0.24) 64%,
    rgba(8, 18, 12, 0.05) 85%
  );
}

.park-hero .container { position: relative; }

.crumbs { font-size: 0.85rem; color: #d7e6cf; margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: #d7e6cf; }
.crumbs a:hover { color: var(--marigold); }

.park-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.park-title-row h1 { color: var(--paper-raised); margin-bottom: 6px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; }
.park-title-row .bn-name { font-family: var(--font-bn); color: var(--marigold); font-size: 1.15rem; }
.park-title-row .subline { color: #cfdccf; font-size: 0.95rem; margin-top: 8px; }
.park-title-row .amenity-chips { margin-top: 14px; }
.park-title-row .amenity-chip {
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper-raised);
  backdrop-filter: blur(3px);
}
.park-title-row .amenity-chip svg { color: var(--marigold); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.card + .card { margin-top: 24px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.tag.issue { background: #fbeae4; color: var(--terracotta-deep); }

.prose p { margin: 0 0 1em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab-btn {
  background: none;
  border: none;
  padding: 12px 4px;
  margin-right: 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.tab-btn:hover { color: var(--green-deep); }
.tab-btn.active { color: var(--green-deep); border-bottom-color: var(--terracotta); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise 0.35s ease; }

/* Reviews */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-head strong { font-size: 0.98rem; }
.review-date { font-size: 0.8rem; color: var(--ink-soft); }
.review-item p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.empty-note {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.92rem;
  padding: 8px 0;
}

.list-limit-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 8px 0 0;
}

/* Cleanliness bars */
.score-row { margin-bottom: 16px; }
.score-row:last-child { margin-bottom: 0; }
.score-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.score-track {
  height: 10px;
  border-radius: 999px;
  background: var(--green-soft);
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-deep));
  transition: width 0.6s cubic-bezier(.2,.8,.2,1);
  width: 0;
}

/* Ideas */
.idea-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.idea-item:last-child { border-bottom: none; }
.upvote-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--green-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--green-deep);
  transition: background 0.18s ease, transform 0.12s ease;
}
.upvote-btn:hover { background: #d7e6cf; }
.upvote-btn:active { transform: scale(0.94); }
.upvote-btn svg { width: 16px; height: 16px; }
.idea-item .idea-body strong { font-size: 0.92rem; }
.idea-item .idea-body p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------------------------- Forms ---------------------------- */

.form-grid { display: grid; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.86rem; font-weight: 700; color: var(--green-deep); }
.form-row .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(44, 122, 81, 0.16);
}
textarea { resize: vertical; min-height: 90px; }

.rating-picker { display: flex; gap: 6px; }
.rating-picker button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.1rem;
  color: #cbb87a;
  transition: transform 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.rating-picker button.filled { color: var(--marigold-deep); border-color: var(--marigold); }
.rating-picker button:hover { transform: scale(1.08); }

/* Honeypot — visually hidden, still in the tab order removed */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-msg.show { display: block; }
.form-msg.success { background: var(--green-soft); color: var(--green-deep); }
.form-msg.error { background: #fbeae4; color: var(--danger); }

/* ---------------------------- Petitions ---------------------------- */

.petition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}

.petition-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.petition-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.petition-card .target {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta-deep);
  font-weight: 700;
}

.status-badge.goal-reached {
  background: var(--marigold);
  color: var(--green-deep);
  flex-shrink: 0;
}

.petition-card h3 { font-size: 1.35rem; margin: 4px 0 2px; }
.petition-card .summary { color: var(--ink-soft); font-size: 0.94rem; }

.petition-card .demands { margin: 4px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.9rem; }
.petition-card .demands li { margin-bottom: 4px; }

.progress-wrap { margin-top: auto; }
.progress-status {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 8px;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: var(--green-soft);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--marigold));
  width: 0;
  transition: width 0.6s cubic-bezier(.2,.8,.2,1);
}

.petition-card .sign-toggle { margin-top: 4px; }

.sign-panel {
  display: none;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.sign-panel.open { display: block; animation: rise 0.35s ease; }

.about-blurb {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 30px 34px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.about-blurb strong { color: var(--green-deep); }

/* ---------------------------- Misc ---------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marigold);
  color: var(--green-deep);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.loading-note, .error-note {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft);
}
.error-note { color: var(--danger); }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .site-footer .container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header .container { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; width: 100%; }
  .main-nav a { padding: 8px 12px; font-size: 0.88rem; }
  .hero { padding: 56px 0 72px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section { padding: 52px 0; }
}
