/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ── FORA ELECTION BAR ── May 18–19 2026 only ── */
.fora-election-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #8b1a1a;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: feb-breathe 3s ease-in-out infinite;
  box-sizing: border-box;
}
.fora-election-bar:hover {
  background: #a02020;
  animation: none;
  box-shadow: 0 2px 20px rgba(139,26,26,0.5);
}
@keyframes feb-breathe {
  0%,100% { box-shadow: inset 0 -2px 12px rgba(0,0,0,0.2); }
  50%      { box-shadow: inset 0 -2px 20px rgba(0,0,0,0.35), 0 2px 16px rgba(139,26,26,0.4); }
}
.feb-pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: white; flex-shrink: 0;
  animation: feb-dot 1.2s ease-in-out infinite;
}
@keyframes feb-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.55); }
}
.feb-left  { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.feb-verb  { font-family:'Libre Baskerville',serif; font-size:14px; font-weight:700; color:white; white-space:nowrap; }
.feb-sep   { color:rgba(255,255,255,0.35); font-size:14px; flex-shrink:0; }
.feb-cta   { font-family:'Nunito',sans-serif; font-size:12px; color:rgba(255,255,255,0.75); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.feb-right { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.feb-countdown { font-family:'JetBrains Mono',monospace; font-size:11px; color:rgba(255,255,255,0.65); letter-spacing:0.06em; }
.feb-opens { font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.5); }
.feb-arrow { font-family:'Nunito',sans-serif; font-size:12px; font-weight:800; color:white; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.25); border-radius:4px; padding:5px 12px; white-space:nowrap; transition:background 0.12s; }
.fora-election-bar:hover .feb-arrow { background:rgba(255,255,255,0.25); }
@media(max-width:640px) {
  .fora-election-bar { flex-wrap: wrap; gap: 8px; padding: 9px 14px; }
  .feb-left { flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .feb-cta { white-space: normal; font-size: 11px; }
  .feb-sep { display: none; }
  .feb-opens { display: none; }
  .feb-verb { font-size: 13px; white-space: nowrap; }
  .feb-right { width: 100%; justify-content: flex-end; }
  .feb-arrow { font-size: 11px; padding: 4px 10px; }
  .feb-countdown { font-size: 10px; }
}

/* Finance Panel */
.finance-panel {
  background: var(--navy, #0a1628);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.finance-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.finance-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.9);
  margin: 0;
}
.finance-cycle {
  font-size: 11px;
  color: rgba(244, 237, 224, 0.45);
  font-family: 'JetBrains Mono', monospace;
}
.finance-fec-link {
  margin-left: auto;
  font-size: 11px;
  color: rgba(212, 175, 55, 0.6);
  text-decoration: none;
}
.finance-fec-link:hover { color: rgba(212, 175, 55, 1); }
.finance-as-of {
  font-size: 11px;
  color: rgba(244, 237, 224, 0.35);
  margin: 0 0 16px;
  font-family: 'JetBrains Mono', monospace;
}
.finance-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.fstat { display: flex; flex-direction: column; gap: 4px; }
.fstat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(244, 237, 224, 0.4);
}
.fstat-value {
  font-size: 22px;
  font-weight: 700;
  color: rgba(244, 237, 224, 0.95);
  font-family: 'Cinzel', serif;
}
.fstat-value-debt { color: #e05c5c; }
.finance-breakdown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fbar-row { display: flex; align-items: center; gap: 10px; }
.fbar-label { font-size: 11px; color: rgba(244,237,224,0.55); width: 130px; flex-shrink: 0; }
.fbar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.fbar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.fbar-indv { background: rgba(212, 175, 55, 0.7); }
.fbar-pac  { background: rgba(100, 160, 220, 0.6); }
.fbar-pct { font-size: 11px; color: rgba(244,237,224,0.45); width: 36px; text-align: right; font-family: 'JetBrains Mono', monospace; }
.finance-disclaimer {
  font-size: 10px;
  color: rgba(244,237,224,0.25);
  margin: 0;
}

/* ── Desktop / Mobile visibility ── */
.desktop-profile { display: none; }
.mobile-profile  { display: block; }

@media (min-width: 769px) {
  .desktop-profile { display: block; }
  .mobile-profile  { display: none; }

  /* ── Ticker ── */
  @keyframes dp-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .dp-ticker {
    background: #0a1220;
    padding: 0 48px;
    height: 28px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(184,134,11,0.15);
  }
  .dp-ticker-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #b8860b; flex-shrink: 0; margin-right: 16px;
  }
  .dp-ticker-overflow { overflow: hidden; flex: 1; }
  .dp-ticker-track {
    display: inline-flex; white-space: nowrap;
    animation: dp-ticker-scroll 40s linear infinite;
  }
  .dp-ticker-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px; letter-spacing: 0.07em;
    color: rgba(244,237,224,0.5); padding: 0 28px;
  }

  /* ── Hero ── */
  .dp-hero {
    background: #1b3a6b;
    padding: 40px 48px 0;
    position: relative; overflow: hidden;
  }
  .dp-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
  .dp-hero-back {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.35); text-decoration: none;
    display: inline-block; margin-bottom: 20px;
  }
  .dp-hero-toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .dp-hero-identity { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
  .dp-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    border: 3px solid rgba(184,134,11,0.5);
    flex-shrink: 0; overflow: hidden; position: relative;
    background: linear-gradient(135deg,#254f92,#1b3a6b);
  }
  .dp-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }
  .dp-avatar-initials {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-family: 'Libre Baskerville', serif; font-size: 28px; font-weight: 700; color: #d4a832;
  }
  .dp-avatar-badge {
    position: absolute; bottom: -1px; right: -1px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #155c2d; border: 2.5px solid #1b3a6b;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: white;
  }
  .dp-name { font-family: 'Libre Baskerville', serif; font-size: 38px; font-weight: 700; color: white; line-height: 1.1; margin: 0 0 6px; }
  .dp-office-title { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.6); margin: 0 0 12px; }
  .dp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
  .dp-tag { font-family: 'JetBrains Mono', monospace; font-size: 7.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; border: 1px solid; }
  .dp-social { display: flex; gap: 14px; align-items: center; }
  .dp-social-link { color: rgba(255,255,255,0.55); text-decoration: none; line-height: 0; transition: color 0.15s; }
  .dp-social-link:hover { color: white; }

  /* ── Stat bar ── */
  .dp-stat-bar { display: flex; margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); }
  .dp-stat {
    flex: 1; padding: 14px 0; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    cursor: pointer; transition: background 0.15s; position: relative;
  }
  .dp-stat:last-child { border-right: none; }
  .dp-stat:hover { background: rgba(255,255,255,0.04); }
  .dp-stat-value { font-family: 'Libre Baskerville', serif; font-size: 20px; font-weight: 700; color: white; line-height: 1; margin-bottom: 4px; }
  .dp-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 6px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.35); }
  .dp-stat-info { position: absolute; top: 8px; right: 10px; font-size: 9px; color: rgba(184,134,11,0.5); }

  /* ── Stars strip ── */
  .dp-stars {
    height: 26px; overflow: hidden;
    display: flex; align-items: center; padding: 0 48px;
    font-size: 11px; letter-spacing: 0.55em; color: #b8860b;
    white-space: nowrap; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, black 92%, transparent 100%);
  }

  /* ── Body layout ── */
  .dp-body { max-width: 1100px; margin: 0 auto; padding: 36px 48px 60px; display: flex; gap: 32px; }
  .dp-main  { flex: 1; min-width: 0; }
  .dp-sidebar { width: 300px; flex-shrink: 0; }

  /* ── Section ── */
  .dp-section { margin-bottom: 32px; }
  .dp-section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 7.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #b8860b; margin-bottom: 5px; }
  .dp-section-title { font-family: 'Libre Baskerville', serif; font-size: 20px; font-weight: 700; color: #1b3a6b; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(27,58,107,0.09); }


  /* ── Sidebar card ── */
  .dp-card { background: white; border: 1px solid rgba(27,58,107,0.09); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
  .dp-card-title { font-family: 'JetBrains Mono', monospace; font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase; color: #b8860b; margin: 0 0 12px; }
  .dp-card-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-bottom: 1px solid #f0f2f7; }
  .dp-card-row:last-child { border-bottom: none; }
  .dp-card-label { font-family: 'Nunito', sans-serif; font-size: 11px; color: #5a6e8a; }
  .dp-card-value { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #1b3a6b; }
  .dp-card-entry { padding: 8px 0; border-bottom: 1px solid #f0f2f7; }
  .dp-card-entry:last-child { border-bottom: none; }
  .dp-card-sublabel { font-family: 'JetBrains Mono', monospace; font-size: 6.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a9ab8; margin-bottom: 3px; }
  .dp-card-text { font-family: 'Nunito', sans-serif; font-size: 11px; color: #1b3a6b; line-height: 1.45; }

  /* ── News articles (council profile) ── */
  .off-news-item { padding: 7px 0; border-bottom: 1px solid #e8ecf4; }
  .off-news-item:last-child { border-bottom: none; }
  .off-news-title { font-size: 13px; font-weight: 600; color: #1b5fa5; line-height: 1.4; text-decoration: none; display: block; margin-bottom: 3px; }
  .off-news-title:hover { text-decoration: underline; }
  .off-news-meta { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.06em; color: #8a9ab8; }

  /* ── Sponsored legislation (council profile) ── */
  .off-bill-item { padding: 9px 0; border-bottom: 1px solid #e8ecf4; }
  .off-bill-item:last-child { border-bottom: none; }
  .off-bill-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .off-bill-number { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.08em; color: #b8860b; font-weight: 700; }
  .off-bill-status { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; font-weight: 700; }
  .off-bill-status--law { background: #eaf3de; color: #155c2d; }
  .off-bill-status--committee { background: #fbeed0; color: #866400; }
  .off-bill-status--introduced { background: #dde5f5; color: #1b3a6b; }
  .off-bill-title { font-size: 13px; font-weight: 600; color: #1b3a6b; line-height: 1.4; margin-bottom: 4px; }
  .off-bill-title a { color: inherit; text-decoration: none; }
  .off-bill-title a:hover { text-decoration: underline; }
  .off-bill-summary { font-size: 12px; color: #5a6e8a; line-height: 1.5; margin-bottom: 4px; }
  .off-bill-note { font-size: 11px; color: #8a9ab8; font-style: italic; line-height: 1.45; }

  /* ── Inline stat cards ── */
  .dp-stat-cards { display: flex; gap: 16px; flex-wrap: wrap; }
  .dp-stat-card { flex: 1; min-width: 200px; background: white; border: 1px solid rgba(27,58,107,0.09); border-radius: 10px; padding: 16px 18px; }
  .dp-stat-card-title { font-family: 'JetBrains Mono', monospace; font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase; color: #b8860b; margin: 0 0 10px; }
  .dp-stat-card-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-bottom: 1px solid #f0f2f7; }
  .dp-stat-card-row:last-child { border-bottom: none; }

  /* ── Modal ── */
  .dp-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
  .dp-modal.open { display: flex; }
  .dp-modal-box { background: white; border-radius: 12px; padding: 32px 36px; max-width: 480px; width: 90%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
  .dp-modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 22px; color: #8a9ab8; cursor: pointer; line-height: 1; padding: 0; }
  .dp-modal-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase; color: #b8860b; margin-bottom: 8px; }
  .dp-modal-title { font-family: 'Libre Baskerville', serif; font-size: 22px; font-weight: 700; color: #1b3a6b; margin: 0 0 16px; }
  .dp-modal-body { font-family: 'Nunito', sans-serif; font-size: 13.5px; color: #4a5568; line-height: 1.65; }
  .dp-modal-body p { margin: 0 0 10px; }
  .dp-modal-body p:last-child { margin: 0; }

  /* ── Share button ── */
  .dp-share-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 100px;
    padding: 6px 14px; cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .dp-share-btn:hover { color: white; background: rgba(255,255,255,0.12); }

  /* ── Narrow desktop (769-900px) ── */
  @media (min-width: 769px) and (max-width: 900px) {
    .dp-hero, .dp-ticker, .dp-stars { padding-left: 24px; padding-right: 24px; }
    .dp-body { padding: 24px 24px 48px; gap: 24px; }
    .dp-sidebar { width: 240px; }
  }
}
