/**
 * Pallikaranai Marsh — Flood Infrastructure feature story
 * Magazine / civic-environment layout
 */
:root {
  --marsh-deep: #0f3d35;
  --marsh-green: #2f6f5e;
  --water-blue: #5d8fa3;
  --warning-amber: #d89b28;
  --dump-smoke: #5c5c5c;
  --news-red: #b7282e;
  --sand-bg: #f3efe4;
  --paper-white: #ffffff;
  --ink: #1e1e1e;
  --muted: #666666;
}

.article-container--pallikaranai-feature {
  max-width: none;
  padding: 0;
  width: 100%;
}

.article-container--pallikaranai-feature .article-toc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article-container--pallikaranai-feature .article-share-bar,
.article-container--pallikaranai-feature .article-whatsapp-cta {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.pallikaranai-feature {
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.72;
  font-size: 1.05rem;
}

.pallikaranai-feature *,
.pallikaranai-feature *::before,
.pallikaranai-feature *::after {
  box-sizing: border-box;
}

.pallikaranai-feature h2,
.pallikaranai-feature h3 {
  font-family: "Playfair Display", "Libre Baskerville", Georgia, serif;
  color: var(--marsh-deep);
  line-height: 1.25;
}

.pallikaranai-feature a {
  color: var(--marsh-green);
  font-weight: 600;
}

.pallikaranai-feature a:hover {
  color: var(--marsh-deep);
}

/* Hero */
.pk-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 18px 32px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(15, 61, 53, 0.92) 0%, rgba(15, 61, 53, 0.55) 45%, rgba(15, 61, 53, 0.35) 100%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Pallikaranai_Marsh_Cityscape_Reflections_Sholinganallur_Apr22_R16_05915.jpg?width=1920") center/cover no-repeat;
}

@media (min-width: 768px) {
  .pk-hero {
    min-height: 82vh;
    padding: 48px clamp(24px, 5vw, 64px) 56px;
  }
}

.pk-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;
}

.pk-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 9vw, 4.2rem);
  line-height: 0.95;
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 14ch;
  color: #fff;
}

.pk-hero-dek {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  max-width: 42ch;
  margin: 0 0 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.pk-hero-loc {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin: 0;
}

.pk-hero-stats {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  backdrop-filter: blur(14px);
  background: rgba(15, 61, 53, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
}

@media (min-width: 768px) {
  .pk-hero-stats {
    position: absolute;
    right: clamp(24px, 5vw, 64px);
    bottom: 48px;
    margin-top: 0;
    min-width: 240px;
  }
}

.pk-hero-stats div strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.35rem;
  font-weight: 600;
}

.pk-hero-stats div span {
  font-size: 0.78rem;
  opacity: 0.88;
}

.pk-hero-credit {
  font-size: 0.72rem;
  margin-top: 12px;
  opacity: 0.75;
}

.pk-hero-credit a {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
}

/* Numbers strip */
.pk-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
  padding: 24px 18px;
  background: var(--sand-bg);
  border-bottom: 1px solid rgba(15, 61, 53, 0.1);
}

@media (min-width: 1100px) {
  .pk-numbers {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px;
  }
}

.pk-number-card {
  background: var(--paper-white);
  border-radius: 12px;
  padding: 14px 16px;
  border-top: 3px solid var(--marsh-green);
  box-shadow: 0 4px 16px rgba(15, 61, 53, 0.06);
}

.pk-number-card .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--marsh-green);
  display: block;
}

.pk-number-card .cap {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* Body sections */
.pk-section {
  padding: 24px 18px;
}

@media (min-width: 768px) {
  .pk-section {
    padding: 40px 24px;
  }
}

.pk-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.pk-wide {
  max-width: 1180px;
  margin: 0 auto;
}

/* Intro layout */
.pk-intro-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .pk-intro-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
  }
}

.pk-pull-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.35;
  padding: 24px 24px 24px 28px;
  margin: 24px 0;
  background: var(--sand-bg);
  border-left: 4px solid var(--warning-amber);
  color: var(--marsh-deep);
}

.pk-highlight-line {
  font-weight: 700;
  color: var(--marsh-deep);
  background: linear-gradient(180deg, transparent 60%, rgba(216, 155, 40, 0.25) 60%);
}

.pk-orient-box {
  background: var(--paper-white);
  border: 1px solid rgba(15, 61, 53, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 61, 53, 0.06);
}

.pk-orient-box h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  color: var(--marsh-green);
}

.pk-orient-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

/* Split section */
.pk-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .pk-split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.pk-img-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 61, 53, 0.12);
}

.pk-img-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.pk-img-cap {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 10px 14px;
  background: #fafafa;
  margin: 0;
}

.pk-img-cap a {
  font-weight: 500;
}

/* Stress signals */
.pk-stress-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pk-stress-item {
  position: relative;
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
}

@media (min-width: 768px) {
  .pk-stress-item {
    flex: 1 1 0;
  }
}

.pk-stress-btn {
  width: 100%;
  border: 1px solid rgba(15, 61, 53, 0.15);
  background: var(--paper-white);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--marsh-deep);
  transition: background 0.2s, border-color 0.2s;
}

.pk-stress-btn:hover,
.pk-stress-btn[aria-expanded="true"] {
  background: rgba(47, 111, 94, 0.08);
  border-color: var(--marsh-green);
}

.pk-stress-note {
  display: none;
  font-size: 0.82rem;
  color: #444;
  padding: 8px 4px 0;
  line-height: 1.45;
}

.pk-stress-item.is-open .pk-stress-note {
  display: block;
}

.pk-stress-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

/* Flood engineer panel */
.pk-flood-panel {
  background: linear-gradient(180deg, #e8f2ef 0%, var(--sand-bg) 100%);
  padding: 40px 18px;
}

.pk-flow-diagram {
  background: var(--paper-white);
  border-radius: 20px;
  padding: 28px 20px;
  margin: 24px 0;
  border: 1px solid rgba(93, 143, 163, 0.25);
  text-align: center;
}

.pk-flow-chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .pk-flow-chain {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
  }

  .pk-flow-chain .pk-flow-arrow {
    display: inline;
  }
}

.pk-flow-node {
  background: rgba(93, 143, 163, 0.12);
  border: 1px solid var(--water-blue);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--marsh-deep);
}

.pk-flow-arrow {
  color: var(--water-blue);
  font-weight: 700;
}

.pk-flood-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pk-flood-card {
  background: var(--paper-white);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border-bottom: 4px solid var(--marsh-green);
}

.pk-flood-card strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--marsh-deep);
  margin-bottom: 6px;
}

.pk-flood-card span {
  font-size: 0.88rem;
  color: var(--muted);
}

.pk-visual-break {
  margin: 0;
  line-height: 0;
}

.pk-visual-break img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Dumpyard block */
.pk-dumpyard {
  background: linear-gradient(135deg, #2c2c2c, #5c5c5c);
  color: #fff;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 64px);
  margin: 32px 18px;
}

@media (min-width: 1100px) {
  .pk-dumpyard {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pk-dumpyard h2,
.pk-dumpyard h3 {
  color: #fff;
}

.pk-dumpyard-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .pk-dumpyard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pk-dumpyard-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 320px;
}

.pk-impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pk-impact-card {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--warning-amber);
  border-radius: 8px;
  padding: 16px 18px;
}

.pk-impact-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.pk-impact-card span {
  font-size: 0.88rem;
  opacity: 0.9;
}

.pk-pathway {
  margin-top: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

/* Metro section */
.pk-compare {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .pk-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.pk-compare-bad {
  background: #f3f4f6;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e5e7eb;
}

.pk-compare-good {
  background: rgba(47, 111, 94, 0.08);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(47, 111, 94, 0.25);
}

.pk-compare h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.pk-compare ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.pk-metro-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--marsh-deep);
  color: #fff !important;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Compliance checklist */
.pk-compliance {
  background: var(--paper-white);
  border: 1px solid rgba(15, 61, 53, 0.1);
  border-radius: 20px;
  padding: 28px 22px;
}

.pk-stamp {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--news-red);
  border: 2px solid var(--news-red);
  padding: 4px 10px;
  transform: rotate(-2deg);
  margin-bottom: 16px;
}

.pk-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.pk-check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.92rem;
}

.pk-check-item::before {
  content: "\2713";
  color: var(--marsh-green);
  font-weight: 700;
  flex-shrink: 0;
}

.pk-accordion {
  margin-top: 24px;
}

.pk-acc-btn {
  width: 100%;
  text-align: left;
  background: var(--sand-bg);
  border: 1px solid rgba(15, 61, 53, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--marsh-deep);
  cursor: pointer;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.pk-acc-panel {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: #444;
}

.pk-acc-panel.is-open {
  display: block;
}

/* Flow vs fence diagram */
.pk-inspect-diagram {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .pk-inspect-diagram {
    grid-template-columns: 1fr 1fr;
  }
}

.pk-inspect-card {
  border-radius: 16px;
  padding: 24px;
  min-height: 200px;
}

.pk-inspect-fence {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
}

.pk-inspect-flow {
  background: linear-gradient(135deg, #e0f2f1, #e8f4f8);
  border: 2px solid var(--water-blue);
}

.pk-inspect-card h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.pk-inspect-chip {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  background: var(--marsh-deep);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
}

.pk-quote-panel {
  background: linear-gradient(135deg, #e8f4f8, #e0f2f1);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 28px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--marsh-deep);
}

/* Resident impact grid */
.pk-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.pk-resident-card {
  background: var(--paper-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-align: center;
}

.pk-resident-card:hover,
.pk-resident-card.is-open {
  border-color: var(--marsh-green);
  box-shadow: 0 8px 20px rgba(15, 61, 53, 0.1);
}

.pk-resident-card .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.pk-resident-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--marsh-deep);
}

.pk-resident-detail {
  display: none;
  font-size: 0.82rem;
  color: #555;
  margin-top: 10px;
  text-align: left;
  line-height: 1.45;
}

.pk-resident-card.is-open .pk-resident-detail {
  display: block;
}

/* Action dashboard */
.pk-dashboard {
  background: var(--sand-bg);
  padding: 40px 18px;
}

.pk-action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.pk-action-card {
  background: var(--paper-white);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(15, 61, 53, 0.1);
  box-shadow: 0 4px 16px rgba(15, 61, 53, 0.05);
}

.pk-action-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--marsh-green);
  font-weight: 700;
  margin-bottom: 8px;
}

.pk-agency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pk-agency-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(47, 111, 94, 0.1);
  color: var(--marsh-green);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Risk table */
.pk-risk-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 61, 53, 0.12);
}

.wetland-risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--paper-white);
}

.wetland-risk-table th,
.wetland-risk-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.wetland-risk-table th {
  background: var(--marsh-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wetland-risk-table tr:last-child td {
  border-bottom: none;
}

.wetland-risk-table tr:nth-child(even) td {
  background: #fafafa;
}

/* Pressure map */
.pk-pressure-map {
  position: relative;
  min-height: 280px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-pressure-center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--marsh-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 0 0 8px rgba(47, 111, 94, 0.15);
}

.pk-pressure-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.pk-pressure-node {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--warning-amber);
  border-radius: 999px;
  color: #92400e;
}

/* Closing */
.pk-closing {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: #fff;
  background:
    linear-gradient(rgba(15, 61, 53, 0.82), rgba(15, 61, 53, 0.88)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Pallikaranai_Marsh_Cityscape_Reflections_Sholinganallur_Apr22_R16_05915.jpg?width=1600") center/cover no-repeat;
}

.pk-closing-quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.35;
  max-width: 28ch;
  margin: 0;
}

/* Footer meta inside feature */
.pk-meta-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.pk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pk-tag {
  font-size: 0.78rem;
  padding: 6px 12px;
  background: rgba(47, 111, 94, 0.1);
  color: var(--marsh-green);
  border-radius: 999px;
  text-decoration: none;
}

.pk-related {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 61, 53, 0.12);
}

.pk-related h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.pk-related ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.pk-ramsar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 12px;
}

.article-container--pallikaranai-feature .article-content h2 {
  border: none;
  padding: 0;
}

.article-container--pallikaranai-feature .article-content {
  line-height: inherit;
}
