/* Pakistan incident-report pages. Builds on site.css (same tokens, fonts and components as the home page). */

body.pk-page { background: var(--bg-paper); }
.logo-text .logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.logo-area { color: inherit; }
.pk-page a:focus-visible, .pk-page button:focus-visible, .pk-page select:focus-visible, .pk-page input:focus-visible, .pk-bar-hit:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.pk-hero {
  background: radial-gradient(circle at 75% 20%, rgba(20, 68, 128, 0.45), transparent 60%), linear-gradient(135deg, #030e1d 0%, #081e3d 50%, #05142b 100%);
  color: var(--white);
  padding: 34px 0 46px;
  border-bottom: 1px solid var(--gold-line);
}
.pk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #8fa4bf; margin-bottom: 22px; }
.pk-crumbs a { color: #c0cde0; }
.pk-crumbs a:hover { color: var(--gold-light); }
.pk-crumbs [aria-current] { color: var(--gold-light); }
.pk-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--white);
  margin-top: 10px;
}
.pk-lead { color: #cbd8e8; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.75; max-width: 760px; }
.pk-lead-2 { margin-top: 8px; color: #e6edf6; }
.pk-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pk-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.pk-stat { border: 1px solid var(--gold-line); background: #071935; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pk-stat strong { font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.15; font-variant-numeric: lining-nums; }
.pk-stat span { font-size: 11.5px; color: #b7c5d8; line-height: 1.35; }

.pk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 34px; align-items: center; }
.pk-locator-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--gold-line); border-radius: 18px; padding: 10px; }
.pk-locator { width: 100%; height: auto; display: block; }
.pk-loc-dot { fill: rgba(255, 213, 79, 0.28); }
.pk-loc-has { fill: rgba(255, 213, 79, 0.6); }
.pk-loc-here { fill: #ffd54f; stroke: #ffffff; stroke-width: 2.5; }
.pk-loc-ring { fill: none; stroke: var(--gold-light); stroke-width: 2; opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: pkPulse 2.4s ease-out infinite; }
.pk-loc-label { fill: #ffffff; font-size: 26px; font-weight: 800; paint-order: stroke fill; stroke: #020914; stroke-width: 7px; stroke-linejoin: round; }
@keyframes pkPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- chart ---------- */
.pk-band { background: linear-gradient(180deg, #05142b 0%, #030c19 100%); padding: 34px 0 40px; border-bottom: 1px solid var(--gold-line); }
.pk-chart-card { background: #071935; border: 1px solid var(--gold-line); border-radius: 16px; padding: 22px 22px 14px; }
.pk-chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pk-chart-note { font-size: 12px; color: #8fa4bf; max-width: 360px; }
.pk-chart-wrap { position: relative; }
.pk-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pk-bar { fill: var(--gold-primary); transition: fill 0.15s ease; }
.pk-bar.is-hover { fill: var(--gold-light); }
.pk-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.pk-baseline { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.pk-axis { fill: #8fa4bf; font-size: 11px; }
.pk-annot { fill: #cbd8e8; font-size: 12px; font-weight: 600; }
.pk-annot-v { fill: #ffffff; font-weight: 800; }
.pk-bar-hit { fill: transparent; cursor: pointer; }
.pk-tip { position: absolute; transform: translate(-50%, -100%); background: #ffffff; color: var(--navy-950); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); pointer-events: none; white-space: nowrap; }
.pk-tip strong { font-weight: 800; }
.pk-table { margin-top: 10px; color: #cbd8e8; font-size: 12.5px; }
.pk-table summary { cursor: pointer; color: var(--gold-light); font-weight: 600; padding: 4px 0; }
.pk-table table { border-collapse: collapse; margin-top: 8px; min-width: 260px; }
.pk-table th, .pk-table td { text-align: left; padding: 4px 18px 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-variant-numeric: tabular-nums; }
.pk-table th { color: #ffffff; }
.pk-table tbody { display: block; max-height: 260px; overflow: auto; }
.pk-table thead, .pk-table tbody tr { display: table; width: 100%; table-layout: fixed; }

/* ---------- sections ---------- */
.pk-section { padding: 56px 0; }
.pk-section-alt { background: var(--bg-cream); border-top: 1px solid #ebe3d0; border-bottom: 1px solid #ebe3d0; }
.pk-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pk-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3vw, 38px); font-weight: 600; color: var(--navy-950); line-height: 1.1; margin-top: 6px; }
.pk-h2-light { color: var(--white); }
.pk-h3 { font-size: 15px; font-weight: 700; color: var(--navy-950); margin-bottom: 10px; }
.pk-link { color: var(--gold-dark); font-weight: 600; font-size: 13px; }
.pk-link:hover { color: var(--navy-950); text-decoration: underline; }
.pk-muted { color: var(--text-muted); font-size: 12px; }

/* ---------- city directory ---------- */
.pk-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pk-city { background: #ffffff; border: 1px solid #e2d8c3; border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pk-city:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--gold-primary); }
.pk-city-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 700; color: var(--navy-950); line-height: 1.15; }
.pk-city-prov { font-size: 11px; color: var(--text-muted); }
.pk-city-count { font-size: 12.5px; font-weight: 700; color: var(--navy-900); margin-top: 6px; }
.pk-city-count.is-zero { font-weight: 500; color: var(--text-muted); }
.pk-city-fm { font-size: 11.5px; color: #8b1822; font-weight: 600; }
.pk-city-other { font-size: 11.5px; color: #93400b; font-weight: 600; }

/* ---------- filters ---------- */
.pk-filters { background: #ffffff; border: 1px solid #e2d8c3; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.pk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-filter-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pk-field { display: flex; flex-direction: column; gap: 4px; }
.pk-field span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.pk-field input, .pk-field select { height: 40px; border: 1px solid #d8cfb8; border-radius: 10px; padding: 0 12px; font-size: 14px; background: #ffffff; color: var(--text-dark); width: 100%; }
.pk-count { font-size: 12.5px; color: var(--text-muted); margin: 14px 2px; }

/* ---------- report cards ---------- */
.pk-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pk-report { background: #ffffff; border: 1px solid #e0d7c2; border-radius: 12px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow 0.2s ease, border-color 0.2s ease; scroll-margin-top: 90px; }
.pk-report:hover, .pk-report:target { box-shadow: var(--shadow-sm); border-color: var(--gold-primary); }
.pk-report[hidden] { display: none; }
.pk-report-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pk-report-no { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: var(--gold-dark); }
.pk-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pk-badge-fm { background: #f8e6e7; color: #8b1822; }
.pk-badge-reg { background: #eef1f5; color: #4a5a70; }
.pk-badge-att { background: #fcebdc; color: #93400b; }
.pk-badge-per { background: #f4eedd; color: #6d5413; }
.pk-report-source { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.pk-report-source a { color: var(--gold-dark); font-weight: 600; }
.pk-report-source a:hover { text-decoration: underline; }
.pk-report-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--navy-950); line-height: 1.2; }
.pk-report-meta { font-size: 12.5px; color: var(--text-muted); }
.pk-report-meta time { color: var(--navy-900); font-weight: 600; }
.pk-report-summary { font-size: 13px; color: #3b4a5e; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pk-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 8px; }
.pk-btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
.pk-more { display: flex; justify-content: center; margin-top: 22px; }
.pk-empty { text-align: center; color: var(--text-muted); margin-top: 18px; }
.pk-empty-card { background: #ffffff; border: 1px dashed #d8cfb8; border-radius: 12px; padding: 20px; grid-column: 1 / -1; }
.pk-empty-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; color: var(--navy-950); margin-bottom: 6px; }
.pk-empty-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 12px; max-width: 640px; }
.pk-places { font-size: 13px; color: var(--text-muted); margin: -6px 0 16px; max-width: 900px; }
.pk-further { margin-top: 30px; }
.pk-near { margin-top: 30px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid #e2d8c3; border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy-900); }
.pk-chip span { background: var(--bg-cream); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; color: var(--text-muted); }
.pk-chip:hover { border-color: var(--gold-primary); }

/* ---------- about ---------- */
.pk-about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 30px; }
.pk-about-text p { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin-bottom: 12px; max-width: 760px; }
.pk-about-text strong { color: var(--navy-950); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .pk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-hero-grid { grid-template-columns: 1fr; }
  .pk-locator-card { max-width: 440px; }
  .pk-about-grid { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 820px) {
  .logo-text .logo-title { font-size: 12px; }
}
@media (max-width: 600px) {
  .pk-hero { padding: 22px 0 34px; }
  .pk-hero-actions .btn { width: 100%; }
  .pk-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-stat { padding: 12px; }
  .pk-stat strong { font-size: 21px; }
  .pk-section { padding: 40px 0; }
  .pk-filter-fields { grid-template-columns: 1fr; }
  .pk-report-grid { grid-template-columns: 1fr; }
  .pk-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-city-name { font-size: 18px; }
  .pk-chart-card { padding: 16px 12px 10px; }
  .pk-annot { font-size: 15px; }
  .pk-axis { font-size: 14px; }
  .pk-btn-sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-loc-ring { animation: none; }
}
