/* CLIEAIR Red / Green Light Billboard
   =====================================
   Public landing for the constitutional scoring rubric. Civic, calm,
   transparent. Red/Yellow/Green pills are color-coded but never flash;
   reduced-motion honored throughout.
*/

:root {
  --rg-navy: #0d1b2a;
  --rg-slate: #1a2738;
  --rg-gold: #c9a227;
  --rg-parchment: #f0e6d2;
  --rg-mute: #8a9bb0;
  --rg-red: #c25b3a;
  --rg-yellow: #d4a04a;
  --rg-green: #6aa86a;
}

body { background: var(--rg-navy); color: var(--rg-parchment); }

/* Hero */
.rg-hero {
  background: linear-gradient(180deg, rgba(13, 27, 42, 1) 0%, rgba(13, 27, 42, 0.85) 100%);
  padding: 3rem 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.rg-hero__inner { max-width: 56rem; margin: 0 auto; }
.rg-hero__title {
  margin: 0 0 0.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--rg-parchment);
}
.rg-hero__sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--rg-mute);
  margin: 0 0 1.2rem;
}
.rg-hero__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rg-hero__cta a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  color: var(--rg-gold);
  text-decoration: none;
  font-size: 0.92rem;
}
.rg-hero__cta a:hover { background: rgba(201, 162, 39, 0.14); }

/* Sections */
.rg-main { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.rg-section { margin-bottom: 3rem; }
.rg-section__title {
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  padding-bottom: 0.5rem;
  margin: 0 0 0.6rem;
  color: var(--rg-parchment);
}
.rg-section__sub { color: var(--rg-mute); font-style: italic; margin: 0 0 1.2rem; }
.rg-loading { color: var(--rg-mute); font-style: italic; padding: 1rem; text-align: center; }
.rg-card { background: var(--rg-slate); padding: 1.25rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.04); }

/* Methodology */
.rg-methodology__text { font-size: 1rem; line-height: 1.65; color: var(--rg-parchment); margin: 0 0 1rem; }
.rg-thresholds { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.75rem 0; }
.rg-threshold { display: flex; align-items: center; gap: 0.5rem; background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.05); padding: 0.4rem 0.7rem; border-radius: 6px; }
.rg-threshold__pill { font-size: 0.7rem; letter-spacing: 0.07em; padding: 0.18rem 0.45rem; border-radius: 999px; font-weight: 700; }
.rg-threshold--red    .rg-threshold__pill { background: rgba(194, 91, 58, 0.18); color: var(--rg-red); border: 1px solid rgba(194, 91, 58, 0.4); }
.rg-threshold--yellow .rg-threshold__pill { background: rgba(212, 160, 74, 0.18); color: var(--rg-yellow); border: 1px solid rgba(212, 160, 74, 0.4); }
.rg-threshold--green  .rg-threshold__pill { background: rgba(106, 168, 106, 0.18); color: var(--rg-green); border: 1px solid rgba(106, 168, 106, 0.4); }
.rg-threshold__rule { font-size: 0.85rem; color: var(--rg-mute); font-family: ui-monospace, monospace; }
.rg-methodology__range, .rg-cross-check { font-size: 0.85rem; color: var(--rg-mute); margin: 0.3rem 0; }

/* Dimensions */
.rg-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.rg-dim {
  background: var(--rg-slate);
  border-left: 4px solid var(--rg-gold);
  border-radius: 8px;
  padding: 1rem;
}
.rg-dim__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.rg-dim__title { margin: 0; font-size: 1.05rem; color: var(--rg-parchment); }
.rg-dim__weight { font-size: 0.75rem; color: var(--rg-mute); font-family: monospace; }
.rg-dim__basis { font-size: 0.85rem; color: var(--rg-mute); margin: 0 0 0.7rem; line-height: 1.45; }
.rg-dim__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.6rem; }
.rg-dim__col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.3rem; }
.rg-dim__col--red h4 { color: var(--rg-red); }
.rg-dim__col--green h4 { color: var(--rg-green); }
.rg-dim__col ul { margin: 0; padding-left: 1.05rem; font-size: 0.82rem; color: var(--rg-parchment); }
.rg-dim__col li { margin-bottom: 0.25rem; }
.rg-dim__auth { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.3rem; }
.rg-dim__auth-label { font-size: 0.7rem; color: var(--rg-mute); margin-right: 0.3rem; }
.rg-dim__auth-chip { font-size: 0.7rem; padding: 0.1rem 0.45rem; background: rgba(201, 162, 39, 0.07); border: 1px solid rgba(201, 162, 39, 0.2); color: var(--rg-gold); border-radius: 999px; }

@media (max-width: 540px) { .rg-dim__cols { grid-template-columns: 1fr; } }

/* Patterns */
.rg-pattern-list { display: flex; flex-direction: column; gap: 0.8rem; }
.rg-pat { background: var(--rg-slate); padding: 0.9rem 1rem; border-radius: 8px; border-left: 3px solid var(--rg-red); }
.rg-pat__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.rg-pat__pattern { background: rgba(0,0,0,0.25); padding: 0.18rem 0.5rem; border-radius: 4px; color: var(--rg-parchment); font-size: 0.85rem; }
.rg-pat__id { font-size: 0.72rem; color: var(--rg-mute); font-family: monospace; }
.rg-pat__concern { margin: 0 0 0.5rem; color: var(--rg-parchment); font-size: 0.9rem; line-height: 1.5; }
.rg-pat__dims { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.rg-pat__dims-label { font-size: 0.72rem; color: var(--rg-mute); margin-right: 0.3rem; }
.rg-pat__dim-chip { font-size: 0.72rem; padding: 0.12rem 0.5rem; background: rgba(201, 162, 39, 0.07); border: 1px solid rgba(201, 162, 39, 0.25); color: var(--rg-gold); border-radius: 999px; }

/* Authorities */
.rg-auth-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.rg-auth { background: var(--rg-slate); border-radius: 8px; padding: 1rem; border-top: 3px solid var(--rg-gold); }
.rg-auth__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.rg-auth__name { margin: 0; font-size: 1.02rem; color: var(--rg-parchment); }
.rg-auth__lean { font-size: 0.7rem; padding: 0.12rem 0.5rem; background: rgba(255,255,255,0.04); border-radius: 999px; color: var(--rg-mute); font-style: italic; }
.rg-auth__spec { font-size: 0.85rem; color: var(--rg-mute); margin: 0 0 0.7rem; line-height: 1.5; }
.rg-auth__link { font-size: 0.85rem; color: var(--rg-gold); text-decoration: none; }
.rg-auth__link:hover { text-decoration: underline; }
.rg-auth-policy { grid-column: 1 / -1; padding: 0.9rem 1rem; background: rgba(201, 162, 39, 0.04); border: 1px dashed rgba(201, 162, 39, 0.25); border-radius: 8px; color: var(--rg-mute); font-style: italic; font-size: 0.9rem; line-height: 1.55; }

/* Disclaimer */
.rg-disclaimer-block { background: var(--rg-slate); padding: 1.25rem; border-radius: 8px; border: 1px solid rgba(201, 162, 39, 0.2); }
.rg-disclaimer-block h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--rg-gold); }
.rg-standing-disclaimer { font-size: 0.92rem; line-height: 1.55; color: var(--rg-parchment); margin: 0 0 0.6rem; }
.rg-meta { font-size: 0.78rem; color: var(--rg-mute); margin: 0; }
.rg-meta code { background: rgba(0,0,0,0.18); padding: 0.05rem 0.35rem; border-radius: 4px; color: var(--rg-gold); }

/* Footer */
.rg-footer { padding: 1.5rem 1.25rem; text-align: center; border-top: 1px solid rgba(201, 162, 39, 0.15); color: var(--rg-mute); }
.rg-footer a { color: var(--rg-gold); margin: 0 0.3rem; text-decoration: none; }
.rg-footer a:hover { text-decoration: underline; }

/* Soft error */
.rg-error-soft {
  padding: 1rem;
  background: rgba(120, 90, 30, 0.08);
  border: 1px dashed rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  color: var(--rg-gold);
  font-size: 0.92rem;
  text-align: center;
}

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