/* article.css -- income-tax article dashboard styling (Phase 3).
 * Self-contained: no @import, no external fonts/CDN. CSP-safe. The
 * income-tax article's CTA buttons (.pcg-article-cta) are styled here so the
 * calculator CTAs stay theme-independent; the older TakeHomeView table/FAQ/
 * siblings styling (.pcg-th-*) lives in take-home.css. */

.pcg-article-dashboard {
    max-width: 900px;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pcg-article-hero {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    background: #e6f4ea;
    color: #1b5e20;
}
.pcg-article-hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pcg-article-hero-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}
.pcg-article-hero-sub {
    font-size: 1rem;
    opacity: 0.85;
}

.pcg-article-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 560px) {
    .pcg-article-cards { grid-template-columns: 1fr; }
}
.pcg-article-card {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}
.pcg-article-card-value {
    font-size: 1.4rem;
    font-weight: 700;
}
.pcg-article-card-label {
    font-size: 0.85rem;
    color: #555;
}

.pcg-article-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 320px;
    margin: 0.5rem auto 0;
}

/* Calculator CTA buttons ("Calculate your exact tax", "See your paycheck").
 * Bundled here so they survive a theme change without custom CSS. */
.pcg-article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
  justify-content: center;
  text-align: center;
}

.pcg-article-cta-btn {
  display: inline-block;
  background-color: #D52B1E;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pcg-article-cta-btn:hover {
  background-color: #b32217;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.22);
}

.pcg-article-cta-btn:visited {
  color: #ffffff !important;
}

/* Related-pages sections: nearby salaries (in-province) + same salary across
 * provinces. Bundled here so the internal-linking blocks stay theme-independent. */
.pcg-article-nearby,
.pcg-article-provinces {
  margin: 2rem 0;
}
.pcg-article-related-heading {
  color: #1a3a8f;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.35rem;
}
.pcg-article-related-sub {
  text-align: center;
  color: #555;
  margin: 0 0 1rem;
}
.pcg-nearby-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pcg-nearby-pill {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #d5dbe6;
  border-radius: 999px;
  background: #fff;
  color: #1a3a8f;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.pcg-nearby-pill:hover {
  border-color: #1a3a8f;
  transform: translateY(-1px);
}
.pcg-nearby-pill.is-current {
  background: #e8eefb;
  border-color: #1a3a8f;
  cursor: default;
}
.pcg-province-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .pcg-province-grid { grid-template-columns: 1fr; }
}
.pcg-province-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #fafbfd;
  color: #222;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pcg-province-card:hover {
  border-color: #1a3a8f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.pcg-province-code {
  color: #1a3a8f;
  font-weight: 700;
  white-space: nowrap;
}
