/* ==========================================================
   THE POLITICAL RIFT — SHUTDOWN INDEX (FULL LOCKED CSS v593+)
   Scope: Loaded on Shutdown Index page via CSS Loader plugin
   Includes: Missing Agency table section + Page hero styling
========================================================== */

/* ==========================================================
   PAGE HERO (matches homepage masthead feel)
   Safe because this stylesheet is loaded ONLY on the tracker page.
========================================================== */

.pr-home{
  max-width:1180px;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:14px !important;
  padding-right:14px !important;
}

.pr-home-hero .wp-block-heading,
.pr-home-hero h1{
  text-align:center;
  color:#ff6f00;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:14px 0 8px !important;
  line-height:1.05;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);
}

.pr-home-hero .wp-block-quote,
.pr-home-hero blockquote{
  border-left:0 !important;
  padding-left:0 !important;
  margin:0 auto 14px !important;
  max-width:820px;
}

.pr-home-hero .wp-block-quote p,
.pr-home-hero blockquote p{
  text-align:center !important;
  opacity:.9;
  line-height:1.45;
  margin:0 !important;
}

.pr-home-hero .wp-block-quote strong,
.pr-home-hero blockquote strong{
  font-weight:950;
}

/* ==========================================================
   THE POLITICAL RIFT — SHUTDOWN INDEX (FULL LOCKED CSS v593)
   Scope: .rift-shutdown ONLY
   Fortune-500 Dashboard Layout
========================================================== */

.rift-shutdown{
  --rift-accent:#ff6f00;
  --rift-bg:#fdf6e3;
  --rift-text:#333333;
  --rift-muted:rgba(51,51,51,.62);

  --rift-card:rgba(255,255,255,.62);
  --rift-border:rgba(0,0,0,.07);
  --rift-shadow:0 14px 40px rgba(0,0,0,.08);

  --rift-radius-lg:18px;
  --rift-radius-md:14px;

  --rift-track:rgba(51,51,51,.10);
  --rift-soft:rgba(0,0,0,.05);
}

.rift-shutdown,
.rift-shutdown *{
  box-sizing:border-box;
}

.rift-shutdown{
  color:var(--rift-text);
}

/* ==========================================================
   GRID LAYOUT
========================================================== */

.rift-shutdown .rift-grid{
  max-width:1180px;
  margin:14px auto 0;
  padding:0 14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.rift-shutdown .rift-col{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}

@media(max-width:900px){
  .rift-shutdown .rift-grid{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   CARDS
========================================================== */

.rift-shutdown .rift-card{
  background:var(--rift-card);
  border:1px solid var(--rift-border);
  border-radius:var(--rift-radius-lg);
  padding:18px;
  box-shadow:var(--rift-shadow);
  backdrop-filter:saturate(120%) blur(3px);
}

.rift-shutdown .rift-card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  min-width:0;
}

.rift-shutdown .rift-h2{
  font-size:16px;
  font-weight:900;
  margin:0;
}

.rift-shutdown .rift-divider{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:14px 0;
}

.rift-shutdown .rift-muted{
  opacity:.75;
}

.rift-shutdown .rift-muted--tight{
  margin-top:8px;
  font-size:12px;
  opacity:.72;
}

/* ==========================================================
   MOMENTUM HEADER + SINGLE STATE PILL (LOCKED)
========================================================== */

.rift-shutdown .rift-momentum-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.rift-shutdown .rift-momentum-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:24px;
  padding:0 12px;

  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);

  font-size:12px;
  font-weight:950;
  letter-spacing:.2px;
  line-height:1;

  white-space:nowrap;
  user-select:none;

  background:rgba(255,255,255,.70);
  color:var(--rift-text);
}

/* default */
.rift-shutdown .rift-momentum-pill--quiet{
  background:rgba(51,51,51,.08);
  border-color:rgba(0,0,0,.10);
  color:var(--rift-text);
}

.rift-shutdown .rift-momentum-pill--watch,
.rift-shutdown .rift-momentum-pill--watchful{
  background:rgba(255,111,0,.14);
  border-color:rgba(255,111,0,.22);
  color:var(--rift-accent);
}

.rift-shutdown .rift-momentum-pill--warming{
  background:rgba(255,111,0,.20);
  border-color:rgba(255,111,0,.28);
  color:var(--rift-accent);
}

.rift-shutdown .rift-momentum-pill--negotiating{
  background:rgba(255,111,0,.26);
  border-color:rgba(255,111,0,.34);
  color:var(--rift-accent);
}

.rift-shutdown .rift-momentum-pill--flashpoint{
  background:rgba(255,111,0,.34);
  border-color:rgba(255,111,0,.44);
  color:var(--rift-accent);
}

/* If your PHP still uses rift-pill, make it harmless */
.rift-shutdown .rift-pill{
  border-radius:999px;
}

/* ==========================================================
   BADGES
========================================================== */

.rift-shutdown .rift-badge{
  font-size:11px;
  padding:5px 12px;
  border-radius:999px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.70);
  white-space:nowrap;
}

.rift-shutdown .rift-badge[data-risk="stable"]{background:rgba(232,244,234,.85);}
.rift-shutdown .rift-badge[data-risk="watch"]{background:rgba(255,245,232,.90);}
.rift-shutdown .rift-badge[data-risk="elevated"]{background:rgba(255,232,210,.90);}
.rift-shutdown .rift-badge[data-risk="critical"]{background:rgba(255,220,220,.90);}

/* ==========================================================
   THERMOMETER (HORIZONTAL)
========================================================== */

.rift-shutdown .rift-thermo{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rift-shutdown .rift-thermo__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.rift-shutdown .rift-thermo__value{
  font-weight:950;
  font-size:18px;
}

.rift-shutdown .rift-thermo__track{
  position:relative;
  height:14px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(46,125,50,.25) 0%,
    rgba(46,125,50,.25) 40%,
    rgba(255,193,7,.22) 55%,
    rgba(255,111,0,.26) 75%,
    rgba(198,40,40,.22) 100%
  );
  border:1px solid rgba(0,0,0,.06);
  overflow:hidden;
}

.rift-shutdown .rift-thermo__fill{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:0%;
  background:rgba(51,51,51,.10);
}

.rift-shutdown .rift-thermo__marker{
  position:absolute;
  top:50%;
  transform:translate(-50%,-50%);
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--rift-accent);
  border:2px solid #fdf6e3;
  box-shadow:0 2px 10px rgba(0,0,0,.20);
}

.rift-shutdown .rift-thermo__legend{
  display:flex;
  justify-content:space-between;
  font-size:11px;
  opacity:.6;
}

/* ==========================================================
   MOMENTUM BARS
========================================================== */

.rift-shutdown .rift-bar{
  margin-bottom:14px;
}

.rift-shutdown .rift-bar__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
}

.rift-shutdown .rift-bar__track{
  height:8px;
  background:#e7e3db;
  border-radius:999px;
  margin:6px 0;
  overflow:hidden;
}

.rift-shutdown .rift-bar__fill{
  height:100%;
  background:var(--rift-accent);
}

.rift-shutdown .rift-bar__meta{
  display:flex;
  justify-content:space-between;
  font-size:11px;
  opacity:.6;
}

/* ==========================================================
   AGENCY TABLE + SHIELDS
   (This section is REQUIRED to prevent stacking)
========================================================== */

.rift-shutdown .rift-mini-table{
  width:100%;
}

.rift-shutdown .rift-mini-row{
  display:grid;
  grid-template-columns:1fr 80px 120px;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.05);
}

.rift-shutdown .rift-mini-row > div{
  min-width:0;
}

.rift-shutdown .rift-mini-head{
  padding-top:0;
  font-weight:900;
  opacity:.75;
}

.rift-shutdown .rift-agency{
  display:flex;
  align-items:center;
  min-width:0;
}

/* The ENTIRE badge (icon + code) is one inline-flex pill */
.rift-shutdown .rift-shield{
  display:inline-flex;
  align-items:center;
  gap:6px;

  height:22px;
  padding:0 10px;

  border-radius:999px;
  background:rgba(95,126,163,.15);
  border:1px solid rgba(0,0,0,.06);

  white-space:nowrap;
  line-height:1;
}

.rift-shutdown .rift-shield svg{
  width:14px;
  height:14px;
  display:block;
}

.rift-shutdown .rift-shield__code{
  display:inline-flex;
  align-items:center;
  gap:6px;
  line-height:1;
}

.rift-shutdown .rift-shield__code strong{
  display:inline;
  line-height:1;
  font-weight:950;
}

/* ==========================================================
   STATUS CHIPS
========================================================== */

.rift-shutdown .rift-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:11px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.70);
  white-space:nowrap;
}

.rift-shutdown .rift-chip--ok{
  background:rgba(232,244,234,.88);
}

.rift-shutdown .rift-chip--warn{
  background:rgba(255,245,232,.92);
}

.rift-shutdown .rift-chip--hot{
  background:rgba(255,232,210,.92);
}

/* ==========================================================
   FUNDING SIGNALS — ENFORCE ORDER:
   [Bill badge] Title [Agency badge]
========================================================== */

.rift-shutdown .rift-statement{
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,.05);
}

.rift-shutdown .rift-statement:last-child{
  border-bottom:0;
}

.rift-shutdown .rift-statement__top{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rift-shutdown .rift-bill-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:950;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.70);
  white-space:nowrap;
  text-decoration:none;
}

.rift-shutdown .rift-bill-badge--bill{
  background:rgba(95,126,163,.15);
}

.rift-shutdown .rift-bill-badge--agency{
  background:rgba(232,244,234,.88);
}

.rift-shutdown .rift-statement__titleline{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex-wrap:nowrap;
}

.rift-shutdown .rift-statement__title{
  font-weight:950;
  font-size:15px;
  line-height:1.25;
  flex:1 1 auto;
  min-width:0;
}

.rift-shutdown .rift-statement__meta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  opacity:.75;
}

.rift-shutdown .rift-statement__date{
  font-weight:800;
}

.rift-shutdown .rift-statement__quote{
  margin-top:8px;
  font-size:13px;
  opacity:.80;
  line-height:1.45;
}

/* ==========================================================
   VOTES LIST
========================================================== */

.rift-shutdown .rift-vote{
  display:flex;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.05);
}

.rift-shutdown .rift-vote:last-child{
  border-bottom:0;
}

.rift-shutdown .rift-vote__date{
  width:92px;
  flex:0 0 92px;
  font-weight:900;
  opacity:.75;
  font-size:12px;
}

.rift-shutdown .rift-vote__title{
  font-weight:950;
  line-height:1.25;
}

.rift-shutdown .rift-vote__meta{
  margin-top:6px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  opacity:.8;
}

.rift-shutdown .rift-vote__result{
  font-weight:900;
}

/* ==========================================================
   TIMELINE (COUNTDOWN)
========================================================== */

.rift-shutdown .rift-row{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.05);
}

.rift-shutdown .rift-row:last-child{
  border-bottom:0;
}

.rift-shutdown .rift-date{
  font-weight:950;
  opacity:.75;
}

.rift-shutdown .rift-item__title{
  font-weight:950;
}

.rift-shutdown .rift-item__meta{
  margin-top:4px;
  font-size:13px;
  opacity:.75;
  line-height:1.45;
}

/* ==========================================================
   BULLETS
========================================================== */

.rift-shutdown .rift-bullets ul{
  padding-left:18px;
  margin:0;
}

.rift-shutdown .rift-bullets li{
  margin:4px 0;
  font-size:14px;
}

/* ==========================================================
   HEADINGS (H3 used in summary)
========================================================== */

.rift-shutdown .rift-h3{
  font-size:13px;
  font-weight:950;
  margin:0 0 8px 0;
}

/* ==========================================================
   LINKS
========================================================== */

.rift-shutdown a{
  color:var(--rift-accent);
  font-weight:900;
  text-decoration:none;
}

.rift-shutdown a:hover{
  text-decoration:underline;
}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:520px){
  .rift-shutdown .rift-mini-row{
    grid-template-columns:1fr 60px 96px;
  }

  .rift-shutdown .rift-vote{
    flex-direction:column;
  }

  .rift-shutdown .rift-vote__date{
    width:auto;
    flex:0 0 auto;
  }

  .rift-shutdown .rift-row{
    grid-template-columns:1fr;
  }

  .rift-shutdown .rift-statement__title{
    font-size:14px;
  }
}