:root {
  --pg-ink-9: #0b1220;
  --pg-ink-6: #2a3550;
  --pg-sand-1: #f6f1e7;
  --pg-azure-5: #2f7dd1;
  --pg-mint-4: #2fb7a3;
  --pg-amber-4: #f0b24a;
  --pg-glass-1: rgba(255,255,255,0.62);
  --pg-border-1: rgba(15,23,42,0.14);
  --pg-shadow-1: 0 18px 50px rgba(11,18,32,0.18);
  --pg-gradient-1: linear-gradient(135deg, var(--pg-glass-1), rgba(47,123,209,0.08));
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--pg-ink-9);
  background: var(--pg-sand-1);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--pg-azure-5);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

.site-header {
  background: var(--pg-gradient-1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg-border-1);
  box-shadow: var(--pg-shadow-1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg-ink-9);
  text-decoration: none;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.primary-nav a {
  color: var(--pg-ink-6);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--pg-azure-5);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pg-azure-5);
  transition: width 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  width: 100%;
}

.primary-nav a:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: 4px;
  border-radius: 2px;
}

.breadcrumb {
  background: rgba(47,123,209,0.05);
  border-bottom: 1px solid var(--pg-border-1);
  padding: 0.75rem 0;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--pg-ink-6);
}

.breadcrumb a {
  color: var(--pg-azure-5);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb a:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: 2px;
  border-radius: 2px;
}

.main-content {
  padding: 3rem 0;
  min-height: 60vh;
}

.hero-section {
  background: var(--pg-gradient-1);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--pg-shadow-1);
  border: 1px solid var(--pg-border-1);
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
  line-height: 1.2;
}

.forecast-types {
  margin-bottom: 3rem;
}

.forecast-types h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--pg-ink-9);
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.forecast-card {
  background: var(--pg-glass-1);
  border: 1px solid var(--pg-border-1);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pg-shadow-1);
}

.forecast-card h3 {
  color: var(--pg-azure-5);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.extended-forecasts {
  margin-bottom: 3rem;
}

.extended-forecasts h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.forecast-accuracy {
  background: rgba(47,183,163,0.08);
  border-left: 4px solid var(--pg-mint-4);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.forecast-accuracy h3 {
  color: var(--pg-mint-4);
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--pg-shadow-1);
}

table caption {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem;
  background: var(--pg-gradient-1);
  color: var(--pg-ink-9);
  text-align: left;
}

th {
  background: var(--pg-azure-5);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--pg-border-1);
}

tbody tr:nth-child(even) {
  background: rgba(47,123,209,0.03);
}

tbody tr:hover {
  background: rgba(47,123,209,0.08);
}

.pg-tablewrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.regional-context {
  background: rgba(240,178,74,0.08);
  border: 1px solid rgba(240,178,74,0.3);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.regional-context h2 {
  color: var(--pg-amber-4);
  margin-bottom: 1rem;
}

.authoritative-sources {
  margin: 3rem 0;
}

.authoritative-sources h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.authoritative-sources a {
  color: var(--pg-azure-5);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.authoritative-sources a:hover {
  border-bottom-color: var(--pg-azure-5);
}

.authoritative-sources a:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: 2px;
  border-radius: 2px;
}

.next-steps {
  background: var(--pg-gradient-1);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.next-steps h2 {
  color: var(--pg-ink-9);
  margin-bottom: 1rem;
}

.next-steps a {
  color: var(--pg-azure-5);
  text-decoration: none;
  font-weight: 500;
}

.next-steps a:hover {
  text-decoration: underline;
}

.faq-section {
  margin: 3rem 0;
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--pg-ink-9);
}

.faq-item {
  background: white;
  border: 1px solid var(--pg-border-1);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--pg-shadow-1);
}

.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--pg-gradient-1);
  border-bottom: 1px solid var(--pg-border-1);
  transition: background-color 0.3s ease;
}

.faq-item summary:hover {
  background: rgba(47,123,209,0.12);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: -2px;
}

.faq-item[open] summary {
  background: var(--pg-azure-5);
  color: white;
}

.faq-content {
  padding: 1.5rem;
}

.faq-content p {
  margin-bottom: 1rem;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.troubleshooting-section {
  margin: 3rem 0;
}

.troubleshooting-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--pg-ink-9);
}

.additional-resources {
  background: rgba(47,183,163,0.08);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.additional-resources h2 {
  color: var(--pg-mint-4);
  margin-bottom: 1rem;
}

.additional-resources a {
  color: var(--pg-azure-5);
  text-decoration: none;
}

.additional-resources a:hover {
  text-decoration: underline;
}

.about-intro {
  margin-bottom: 3rem;
}

.about-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.mission-section {
  margin: 3rem 0;
}

.mission-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.value-card {
  background: var(--pg-glass-1);
  border: 1px solid var(--pg-border-1);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-2px);
}

.value-card h3 {
  color: var(--pg-azure-5);
  margin-bottom: 1rem;
}

.team-section {
  margin: 3rem 0;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.team-roles h3 {
  color: var(--pg-mint-4);
  margin: 2rem 0 1rem 0;
  font-size: 1.25rem;
}

.methodology-section {
  margin: 3rem 0;
}

.methodology-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.partnerships-section {
  background: rgba(240,178,74,0.08);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.partnerships-section h2 {
  color: var(--pg-amber-4);
  margin-bottom: 1rem;
}

.partnerships-section a {
  color: var(--pg-azure-5);
  text-decoration: none;
}

.partnerships-section a:hover {
  text-decoration: underline;
}

.future-development {
  margin: 3rem 0;
}

.future-development h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--pg-ink-9);
}

.contact-section {
  background: var(--pg-gradient-1);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.contact-section h2 {
  color: var(--pg-ink-9);
  margin-bottom: 1rem;
}

.contact-section a {
  color: var(--pg-azure-5);
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--pg-ink-9);
  color: var(--pg-sand-1);
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--pg-sand-1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--pg-azure-5);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .primary-nav ul {
    gap: 1rem;
  }
  
  .hero-section {
    padding: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .forecast-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .pg-tablewrap {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .forecast-card,
  .value-card {
    padding: 1.5rem;
  }
  
  .faq-item summary {
    padding: 1rem;
  }
  
  .faq-content {
    padding: 1rem;
  }
}

p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

a:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pg-azure-5);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pg-sand-1: #1a1a1a;
    --pg-ink-9: #f0f0f0;
    --pg-ink-6: #d0d0d0;
    --pg-glass-1: rgba(255,255,255,0.1);
    --pg-border-1: rgba(255,255,255,0.2);
  }
  
  table {
    background: #2a2a2a;
  }
  
  .faq-item {
    background: #2a2a2a;
  }
}