/**
 * Pallikaranai & OMR Wetlands — Civic Responsibility feature story
 * Environment / civic awareness long-form layout
 */
:root {
  --pkw-deep: #0f3d35;
  --pkw-green: #2f6f5e;
  --pkw-mint: #e8f3ef;
  --pkw-beige: #f3efe4;
  --pkw-water: #4a8fa8;
  --pkw-blue: #2c6e8a;
  --pkw-warning: #b7282e;
  --pkw-amber: #c47d12;
  --pkw-ink: #1e1e1e;
  --pkw-muted: #5c5c5c;
  --pkw-paper: #ffffff;
}

.article-container--pallikaranai-wetlands-civic {
  max-width: none;
  padding: 0;
  width: 100%;
}

.article-container--pallikaranai-wetlands-civic .article-share-bar,
.article-container--pallikaranai-wetlands-civic .article-meta {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.pkw-feature {
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  color: var(--pkw-ink);
  line-height: 1.72;
  font-size: 1.05rem;
}

/* Override default article.php content styles when feature layout is not wired */
.article-content .pkw-feature {
  line-height: 1.72;
}

.article-content .pkw-feature h2,
.article-content .pkw-feature h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.article-content .pkw-feature img.pkw-hero-img {
  max-width: none;
  width: 100%;
  border-radius: 0;
  margin: 0;
}

.pkw-feature *,
.pkw-feature *::before,
.pkw-feature *::after {
  box-sizing: border-box;
}

.pkw-feature h2,
.pkw-feature h3 {
  font-family: "Playfair Display", "Libre Baskerville", Georgia, serif;
  color: var(--pkw-deep);
  line-height: 1.25;
}

.pkw-feature a {
  color: var(--pkw-green);
  font-weight: 600;
}

.pkw-feature a:hover {
  color: var(--pkw-deep);
}

/* Hero — single image only */
.pkw-hero {
  position: relative;
  overflow: hidden;
  background: var(--pkw-deep);
}

.pkw-hero-img {
  display: block;
  width: 100%;
  height: clamp(280px, 52vw, 520px);
  object-fit: cover;
  object-position: center 40%;
}

.pkw-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 18px 32px;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 61, 53, 0.15) 0%, rgba(15, 61, 53, 0.55) 45%, rgba(15, 61, 53, 0.92) 100%);
}

@media (min-width: 768px) {
  .pkw-hero-overlay {
    padding: 48px clamp(24px, 5vw, 64px) 56px;
  }
}

.pkw-hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.92;
}

.pkw-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 18ch;
  color: #fff;
}

.pkw-hero-dek {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  max-width: 48ch;
  margin: 0 0 20px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.pkw-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pkw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.pkw-hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pkw-hero-credit {
  font-size: 0.75rem;
  margin: 16px 0 0;
  opacity: 0.8;
}

.pkw-hero-credit a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Section shell */
.pkw-section {
  padding: 48px 18px;
}

@media (min-width: 768px) {
  .pkw-section {
    padding: 64px clamp(24px, 5vw, 64px);
  }
}

.pkw-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.pkw-wide {
  max-width: 1080px;
  margin: 0 auto;
}

/* Five reasons grid */
.pkw-reasons {
  background: var(--pkw-mint);
}

.pkw-reasons h2 {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.pkw-reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .pkw-reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pkw-reasons-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pkw-reason-card {
  background: var(--pkw-paper);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15, 61, 53, 0.08);
  border: 1px solid rgba(47, 111, 94, 0.12);
}

.pkw-reason-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--pkw-green);
}

.pkw-reason-card h3 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  color: var(--pkw-deep);
}

.pkw-reason-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--pkw-muted);
  line-height: 1.5;
}

/* Law explainer */
.pkw-law-block {
  background: var(--pkw-beige);
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 800px;
  margin: 0 auto;
  border-left: 4px solid var(--pkw-green);
}

.pkw-law-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pkw-green);
  margin-bottom: 12px;
}

/* Pull quote */
.pkw-pull-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--pkw-deep);
  border-left: 4px solid var(--pkw-water);
  padding: 16px 0 16px 24px;
  margin: 28px 0;
  line-height: 1.4;
}

/* Flow infographic */
.pkw-flow {
  background: linear-gradient(135deg, var(--pkw-mint) 0%, #d4ebe4 100%);
  border-radius: 16px;
  padding: 28px 20px;
  overflow-x: auto;
}

.pkw-flow-track {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min-content;
  flex-wrap: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.pkw-flow-node {
  background: var(--pkw-paper);
  border: 2px solid var(--pkw-green);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: nowrap;
  color: var(--pkw-deep);
}

.pkw-flow-node--marsh {
  background: var(--pkw-deep);
  color: #fff;
  border-color: var(--pkw-deep);
}

.pkw-flow-arrow {
  color: var(--pkw-water);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Warning table */
.pkw-warning {
  background: #fdf2f2;
  border: 2px solid #f5c6c6;
  border-radius: 16px;
  padding: 28px 20px;
}

.pkw-warning h2 {
  color: var(--pkw-warning);
  margin-top: 0;
}

.pkw-warning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .pkw-warning-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pkw-warning-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--pkw-warning);
}

.pkw-warning-card strong {
  display: block;
  color: var(--pkw-warning);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.pkw-warning-card span {
  display: block;
  font-size: 0.86rem;
  color: var(--pkw-muted);
  line-height: 1.45;
}

/* Map section */
.pkw-map-wrap {
  background: var(--pkw-mint);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.pkw-map-svg {
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}

.pkw-map-disclaimer {
  font-size: 0.78rem;
  color: var(--pkw-muted);
  font-style: italic;
  margin: 0;
}

/* Before / after */
.pkw-before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .pkw-before-after {
    grid-template-columns: 1fr 1fr;
  }
}

.pkw-ba-card {
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.pkw-ba-card--good {
  background: linear-gradient(160deg, #d4ebe4, #a8d5c8);
  border: 2px solid var(--pkw-green);
}

.pkw-ba-card--bad {
  background: linear-gradient(160deg, #fde8e8, #f5c6c6);
  border: 2px solid var(--pkw-warning);
}

.pkw-ba-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity: 0.85;
}

.pkw-ba-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* Split section */
.pkw-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .pkw-split {
    grid-template-columns: 1fr 1fr;
  }
}

.pkw-recharge-visual {
  background: linear-gradient(180deg, var(--pkw-water) 0%, var(--pkw-blue) 40%, #1a4a5e 100%);
  border-radius: 16px;
  padding: 32px 24px;
  color: #fff;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pkw-recharge-visual .layer {
  padding: 8px;
  margin: 4px 0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pkw-recharge-visual .rain { background: rgba(255,255,255,0.25); }
.pkw-recharge-visual .wetland { background: rgba(74,143,168,0.6); }
.pkw-recharge-visual .ground { background: rgba(26,74,94,0.8); }

/* Biodiversity — text chips only (no extra images) */
.pkw-bio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.pkw-bio-list li {
  background: var(--pkw-mint);
  border: 1px solid rgba(47, 111, 94, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pkw-deep);
}

/* Public health alert */
.pkw-health-alert {
  background: #1a2e2a;
  color: #e8f3ef;
  border-radius: 16px;
  padding: 32px 24px;
}

.pkw-health-alert h2 {
  color: #fff;
  margin-top: 0;
}

.pkw-health-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.pkw-health-checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pkw-health-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6fcf97;
  font-weight: 700;
}

/* Checklist cards */
.pkw-checklist {
  background: var(--pkw-beige);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(47, 111, 94, 0.2);
}

.pkw-checklist ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pkw-checklist li {
  margin-bottom: 10px;
}

.pkw-disclaimer {
  font-size: 0.78rem;
  color: var(--pkw-muted);
  font-style: italic;
  margin-top: 16px;
}

/* Toolkit box */
.pkw-toolkit {
  background: linear-gradient(135deg, var(--pkw-deep), var(--pkw-green));
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px;
}

.pkw-toolkit h3 {
  color: #fff;
  margin-top: 0;
}

.pkw-toolkit ul {
  columns: 1;
  margin: 0;
  padding-left: 1.2rem;
}

@media (min-width: 600px) {
  .pkw-toolkit ul {
    columns: 2;
  }
}

.pkw-toolkit li {
  margin-bottom: 8px;
  break-inside: avoid;
}

/* Youth / corporate sections */
.pkw-youth-box {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 16px;
  padding: 28px 24px;
  border: 2px solid var(--pkw-green);
}

.pkw-youth-mission {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pkw-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 16px;
}

.pkw-corporate {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 28px 24px;
  border-top: 4px solid var(--pkw-deep);
}

.pkw-esg-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.pkw-esg-icon {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pkw-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Developer flow */
.pkw-dev-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pkw-dev-step {
  background: #e9ecef;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--pkw-deep);
}

.pkw-dev-arrow {
  color: var(--pkw-muted);
}

/* MyOMR desk */
.pkw-desk-box {
  background: var(--pkw-paper);
  border: 2px dashed var(--pkw-green);
  border-radius: 16px;
  padding: 28px 24px;
}

.pkw-desk-box h3 {
  margin-top: 0;
}

/* Timeline */
.pkw-timeline-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.pkw-timeline {
  display: flex;
  gap: 16px;
  min-width: min-content;
  padding: 8px 4px;
}

.pkw-timeline-stage {
  flex: 0 0 260px;
  border-radius: 14px;
  padding: 20px 18px;
  color: #fff;
}

.pkw-timeline-stage:nth-child(1) { background: linear-gradient(160deg, #2f6f5e, #1a4a3e); }
.pkw-timeline-stage:nth-child(2) { background: linear-gradient(160deg, #4a8fa8, #2c6e8a); }
.pkw-timeline-stage:nth-child(3) { background: linear-gradient(160deg, #3d7a6a, #256050); }
.pkw-timeline-stage:nth-child(4) { background: linear-gradient(160deg, #1a4a5e, #0f3d35); }

.pkw-timeline-stage h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 12px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
}

.pkw-timeline-stage ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Closing — no background photo */
.pkw-closing {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 64px 24px;
  background: linear-gradient(160deg, var(--pkw-deep) 0%, #1a5a4a 55%, var(--pkw-green) 100%);
}

.pkw-closing h2 {
  color: #fff;
  max-width: 28ch;
  margin: 0 auto 20px;
}

.pkw-closing p {
  max-width: 52ch;
  margin: 0 auto 16px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.pkw-final-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  margin: 32px auto 0;
  max-width: 36ch;
  line-height: 1.35;
}

/* Poster block */
.pkw-poster {
  background: var(--pkw-deep);
  color: #fff;
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.pkw-poster h2 {
  color: #fff;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin: 0 0 20px;
  line-height: 1.3;
}

.pkw-poster p {
  font-size: 1.05rem;
  margin: 0 0 12px;
  opacity: 0.95;
}

.pkw-poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.pkw-poster-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pkw-poster-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pkw-poster-btn--wa {
  background: #25d366;
  color: #fff;
}

.pkw-poster-btn--share {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

.pkw-poster-btn--report {
  background: var(--pkw-warning);
  color: #fff;
}

.pkw-poster-btn--link {
  background: #fff;
  color: var(--pkw-deep);
}

/* Numbered list styling */
.pkw-numbered {
  counter-reset: pkw-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pkw-numbered li {
  counter-increment: pkw-step;
  position: relative;
  padding: 12px 0 12px 48px;
  border-bottom: 1px solid rgba(47, 111, 94, 0.15);
}

.pkw-numbered li::before {
  content: counter(pkw-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  background: var(--pkw-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Related links footer inside article */
.pkw-related {
  background: var(--pkw-mint);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}

.pkw-related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pkw-related li {
  margin-bottom: 8px;
}
