/* ============================================================
   Pathway Compare — Overview card
   Pathway-level fields rendered once above the comparison table.
   Split from pathway-compare.css to keep that file under 600 lines.
   pc-overview- prefix for all classes.
   ============================================================ */

/* Hidden by default; the state class on #pc-results reveals it */
.pc-overview {
  display: none;
}

.pc-state--table .pc-overview {
  display: block;
}

.pc-overview-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  margin-bottom: 4px;
}

.pc-overview-header {
  margin-bottom: 16px;
}

.pc-overview-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pc-overview-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.pc-overview-field {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}

.pc-overview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 180px;
  padding-top: 2px;
  flex-shrink: 0;
}

.pc-overview-value {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .pc-overview-card {
    padding: 16px;
  }

  .pc-overview-field {
    flex-direction: column;
    gap: 4px;
  }

  .pc-overview-label {
    min-width: unset;
  }
}

/* ============================================================
   SEO static page classes
   Used by compare/*.html generated pages only.
   ============================================================ */

.pc-content-section {
  padding: 32px 0 48px;
}

.pc-seo-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 28px;
  max-width: 780px;
}

.pc-faq-section {
  margin-top: 40px;
  border-top: 2px solid var(--border);
  padding-top: 28px;
}

.pc-faq-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.pc-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.pc-faq-q {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pc-faq-a {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.pc-also-compare {
  margin-top: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.pc-also-compare p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.pc-also-compare ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-also-compare a {
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
}

.pc-also-compare a:hover {
  text-decoration: underline;
}

.pc-freshness-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 36px;
  font-style: italic;
}

.pc-compare-more {
  margin-top: 24px;
  margin-bottom: 0;
}

.pc-compare-more-link {
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.pc-compare-more-link:hover {
  text-decoration: underline;
}

.pc-manifest-table th,
.pc-manifest-table td {
  text-align: left;
}

@media (max-width: 768px) {
  .pc-content-section {
    padding: 20px 0 36px;
  }

  .pc-seo-intro {
    font-size: 0.95rem;
  }

  .pc-also-compare ul {
    flex-direction: column;
  }
}

/* ============================================================
   Destination Comparisons directory (compare/index.html)
   Row-as-link pattern: each row is a block <a> in a CSS grid.
   pc-dir- prefix.
   ============================================================ */

.pc-dir-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 24px;
  overflow: hidden;
}

.pc-dir-header,
.pc-dir-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.pc-dir-table .pc-dir-row:last-child {
  border-bottom: none;
}

.pc-dir-header {
  background: var(--navy-dark);
}

.pc-dir-header span {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.pc-dir-row {
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.pc-dir-row:hover {
  background: var(--bg-alt);
}

.pc-dir-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.pc-dir-pathway,
.pc-dir-dest {
  padding: 12px 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  align-self: center;
}

.pc-dir-pathway {
  background: var(--navy-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .pc-dir-header {
    display: none;
  }

  .pc-dir-row {
    display: block;
    padding: 14px 16px;
    min-height: 44px;
  }

  .pc-dir-pathway {
    display: block;
    width: fit-content;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    border-right: none;
    margin-bottom: 5px;
  }

  .pc-dir-dest {
    display: inline;
    padding: 0;
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 500;
    background: none;
  }

  .pc-dir-dest + .pc-dir-dest::before {
    content: '\2192';
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 4px;
  }
}
