/* PariPulse homepage additions. Loaded after style.css; reuses its tokens and falls back to the brief's palette. */
:root {
  --pp-bg: var(--color-bg, #050505);
  --pp-surface: var(--color-surface, #111214);
  --pp-card: var(--color-card, #18191D);
  --pp-red: var(--color-primary, #FF4D55);
  --pp-text: var(--color-text, #FFFFFF);
  --pp-muted: var(--color-muted, #A6A8AE);
  --pp-border: var(--color-border, #292B30);
}

/* Whole-card links for silo navigation */
.card-link {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--pp-border);
  transition: border-color .15s ease, transform .15s ease;
}
.card-link:hover { border-color: var(--pp-red); transform: translateY(-2px); }
.card-link:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 3px; }
.card-link h3 { margin: 0; }
.card-link p { color: var(--pp-muted); margin: 0; flex: 1; }

.card-icon {
  width: 28px; height: 28px;
  color: var(--pp-red);
  flex: none;
}
.card-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem;
  font-weight: 600; font-size: .9rem;
  color: var(--pp-text);
}
.card-more svg { width: 16px; height: 16px; color: var(--pp-red); }

/* Paired contextual links under a section */
.link-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.25rem; }
.link-row a { color: var(--pp-text); font-weight: 600; text-decoration-color: var(--pp-red); text-underline-offset: 4px; }

/* Event row table with colour-coded market groups */
.line-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.line-table th, .line-table td { padding: .7rem .6rem; text-align: center; border-bottom: 1px solid var(--pp-border); }
.line-table thead th { font-size: .85rem; color: var(--pp-muted); font-weight: 600; }
.line-table tbody th { text-align: left; font-weight: 600; }
.line-table td { background: var(--pp-card); }
.line-table .line-val { color: var(--pp-muted); font-weight: 700; }
.line-table thead .grp-a { box-shadow: inset 0 -3px 0 #FF4D55; }
.line-table thead .grp-b { box-shadow: inset 0 -3px 0 #F2A93B; }
.line-table thead .grp-c { box-shadow: inset 0 -3px 0 #6FA8FF; }

.legend-grid { margin-top: 1.25rem; }
.legend-item { display: flex; gap: .75rem; align-items: flex-start; }
.legend-item p { margin: 0; color: var(--pp-muted); }
.legend-item strong { color: var(--pp-text); }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; margin-top: .3rem; flex: none; }
.legend-swatch.grp-a { background: #FF4D55; }
.legend-swatch.grp-b { background: #F2A93B; }
.legend-swatch.grp-c { background: #6FA8FF; }

/* Hero odds are illustrative, not controls */
.hero-visual .odd { cursor: default; }

/* Pending operator data */
.status-pending { color: var(--pp-muted); font-style: italic; }

/* Footer headings */
.footer-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-muted); margin: 0 0 .75rem; }

@media (max-width: 760px) {
  .eco-grid { grid-template-columns: 1fr; }
  .link-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
  .card-link:hover { transform: none; }
}

/* Social icons in the footer */
.social-links { display: flex; gap: .75rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--pp-border); border-radius: 50%; color: var(--pp-text); }
.social-links a:hover { border-color: var(--pp-red); }
.social-links svg { width: 18px; height: 18px; }

/* Footer: brand column + three link columns, meta row underneath */
.footer-grid .footer-links { grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-grid > div:first-child, .footer-meta { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--pp-border); }
  .footer-meta p { margin: 0; }
}

a[href^="tel:"] { white-space: nowrap; }
