:root {
  --pg-ink: #14213d;
  --pg-muted: #5f6f85;
  --pg-accent: #c46b2d;
  --pg-accent-soft: rgba(196, 107, 45, 0.14);
  --pg-surface: #ffffff;
  --pg-surface-alt: #f5f1e8;
  --pg-line: rgba(20, 33, 61, 0.12);
  --pg-shadow: 0 18px 40px rgba(20, 33, 61, 0.08);
  --pg-radius: 18px;
}

body {
  color: var(--pg-ink);
}

.pg-home-hero,
.pg-overview,
.pg-status-shell,
.pg-pulsar-card,
.pg-summary-card,
.pg-link-card {
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow);
}

.pg-home-hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.96), rgba(20, 33, 61, 0.88)),
    linear-gradient(160deg, rgba(196, 107, 45, 0.24), transparent 52%);
  color: #fff;
}

.pg-home-hero h1,
.pg-home-hero h2,
.pg-home-hero p,
.pg-home-hero a {
  color: inherit;
}

.pg-home-eyebrow,
.pg-section-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pg-home-copy h2 {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
  line-height: 1.15;
}

.pg-home-copy p {
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.pg-hero-actions,
.pg-chip-list,
.pg-link-strip,
.pg-card-meta,
.pg-antenna-metrics,
.pg-plot-grid,
.pg-lastobs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pg-hero-actions a,
.pg-link-strip a,
.pg-lastobs-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.pg-button-primary {
  background: var(--pg-accent);
  color: #fff !important;
}

.pg-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.pg-hero-aside {
  display: grid;
  gap: 1rem;
}

.pg-stat-card {
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pg-stat-card h3,
.pg-stat-card p {
  margin: 0;
  color: inherit;
}

.pg-stat-card h3 {
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-overview {
  padding: 2rem;
  margin-bottom: 2rem;
}

.pg-section-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.7rem;
}

.pg-section-copy {
  margin: 0 0 1.25rem 0;
  color: var(--pg-muted);
}

.pg-links-grid,
.pg-summary-grid,
.pg-plot-grid {
  display: grid;
  gap: 1rem;
}

.pg-links-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pg-link-card {
  padding: 1.35rem;
}

.pg-link-card h3,
.pg-summary-card h3,
.pg-pulsar-card h2,
.pg-status-shell h2 {
  margin-top: 0;
}

.pg-link-card p,
.pg-summary-card p,
.pg-pulsar-card p,
.pg-embed-card p,
.pg-obs-summary p {
  color: var(--pg-muted);
}

.pg-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pg-summary-card {
  padding: 1.35rem;
}

.pg-summary-value {
  margin: 0 0 0.35rem 0;
  font-size: 2rem;
  line-height: 1.05;
}

.pg-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.pg-summary-table th,
.pg-summary-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--pg-line);
  text-align: left;
  vertical-align: top;
}

.pg-chip-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.pg-chip-list li {
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: var(--pg-surface-alt);
  border: 1px solid rgba(196, 107, 45, 0.22);
  font-size: 0.92rem;
  font-weight: 600;
}

.pg-status-shell {
  padding: 2rem;
  margin-bottom: 1.75rem;
  background:
    radial-gradient(circle at top right, rgba(196, 107, 45, 0.14), transparent 32%),
    linear-gradient(180deg, #fff, #fbfaf7);
}

.pg-status-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.4rem;
}

.pg-embed-card {
  padding: 1.1rem 1.2rem;
  background: var(--pg-surface);
  border: 1px solid var(--pg-line);
  border-radius: 16px;
}

.pg-embed-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 0.95rem;
}

.pg-embed-card embed {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  background: #fff;
}

.pg-pulsar-card {
  padding: 1.45rem;
  margin-bottom: 1.35rem;
}

.pg-pulsar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.pg-pulsar-header h2 {
  margin-bottom: 0.2rem;
  font-size: 1.55rem;
}

.pg-pulsar-subtitle {
  margin: 0;
  font-size: 0.95rem;
}

.pg-link-strip a {
  border: 1px solid var(--pg-line);
  background: var(--pg-surface-alt);
  color: var(--pg-ink) !important;
}

.pg-obs-panel {
  margin-top: 1rem;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.pg-table-wrap {
  overflow-x: auto;
}

.pg-year-panel {
  margin-top: 1.1rem;
}

.pg-year-label {
  margin: 0;
  font-size: 1.18rem;
}

.pg-month-label {
  margin: 0;
  font-size: 1.05rem;
}

.pg-month-count {
  margin: 0.25rem 0 0 0;
  font-size: 0.88rem;
  color: var(--pg-muted);
}

.pg-obs-panel summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  background: #fbfaf8;
}

.pg-obs-panel summary::-webkit-details-marker {
  display: none;
}

.pg-obs-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pg-obs-summary h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
}

.pg-obs-summary p {
  margin: 0;
}

.pg-open-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pg-accent);
}

.pg-open-label:before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--pg-accent-soft);
}

.pg-obs-panel[open] .pg-open-label:before {
  content: "-";
}

.pg-antenna-body {
  padding: 1rem 1.15rem 1.2rem 1.15rem;
  border-top: 1px solid var(--pg-line);
}

.pg-card-meta,
.pg-antenna-metrics {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-card-meta li,
.pg-antenna-metrics li {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: var(--pg-surface-alt);
  border: 1px solid rgba(20, 33, 61, 0.08);
  font-size: 0.88rem;
}

.pg-antenna-metrics {
  margin-bottom: 1rem;
}

.pg-plot-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.pg-plot-card {
  display: block;
  text-decoration: none;
  color: inherit !important;
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.06);
}

.pg-plot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf1f5;
}

.pg-plot-card span {
  display: block;
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media screen and (min-width: 980px) {
  .pg-home-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    align-items: start;
  }
}

@media screen and (max-width: 736px) {
  .pg-home-hero,
  .pg-overview,
  .pg-status-shell,
  .pg-pulsar-card {
    padding: 1.3rem;
  }

  .pg-home-copy h2 {
    font-size: 1.7rem;
  }

  .pg-pulsar-header,
  .pg-obs-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
