/* Curb-specific styles for Pico.css */

/* Import Outfit font (self-hosted) */
@import url('../vendor/outfit-font.css');

/* ============================
   EMOJI FIX FOR CORPORATE BROWSERS
   Fixes emoji rendering in enterprise environments with MDM font profiles
   (e.g., Netskope RBI, Dax Pro font override)
   ============================ */

/* Define emoji font-face with Unicode ranges for emoji codepoints */
@font-face {
  font-family: "Emoji";
  src: local("Apple Color Emoji"),
    local("Segoe UI Emoji"),
    local("Segoe UI Symbol"),
    local("Noto Color Emoji"),
    local("Android Emoji"),
    local("EmojiSymbols");
  /* Emoji Unicode ranges - catches most common emoji */
  unicode-range: U+1F300-1F9FF,
    /* Misc Symbols, Emoticons, Dingbats */
    U+2600-26FF,
    /* Misc Symbols */
    U+2700-27BF,
    /* Dingbats */
    U+FE00-FE0F,
    /* Variation Selectors */
    U+1F000-1F02F,
    /* Mahjong, Domino */
    U+1F0A0-1F0FF,
    /* Playing Cards */
    U+200D,
    /* Zero Width Joiner (for combined emoji) */
    U+2300-23FF,
    /* Misc Technical */
    U+2B50-2B55,
    /* Stars */
    U+203C-3299;
  /* Misc Symbols */
}

/* Emoji font stack for cross-browser compatibility */
/* Ensures emojis render properly even in enterprise browsers */
:root {
  --emoji-font-stack: "Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", sans-serif;
}

/* High-specificity emoji class for elements that ACTUALLY contain emojis */
/* Do NOT apply to stat-pill - it contains numbers that need proper font */
.emoji,
[data-emoji],
.posture,
.posture-badge,
.posture-pill,
.feature-icon,
.role-icon,
.signal-tile,
.newsletter-highlight,
.feedback-btn,
.theme-toggle,
.badge-curated,
.posture-remediate::before,
.posture-audit::before,
.posture-plan::before,
.posture-observe::before,
.posture-align::before {
  font-family: "Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

/* Apply Outfit font globally */
body {
  font-family: "Outfit", sans-serif;
}

/* Specific emoji-heavy elements */
.posture-badge,
.feedback-btn,
.copy-btn,
button,
label,
summary {
  font-family: inherit;
}

/* Color Variables - Light Mode */
:root {
  --curb-primary: #007bff;
  --curb-primary-light: rgba(0, 123, 255, 0.1);
  --curb-shadow: rgba(0, 123, 255, 0.15);
}

/* Color Variables - Dark Mode */
[data-theme="dark"] {
  --curb-primary: #4da3ff;
  --curb-primary-light: rgba(77, 163, 255, 0.15);
  --curb-shadow: rgba(77, 163, 255, 0.2);
}

/* Light mode background to make white cards pop */
body {
  background-color: #f9fafb;
}

/* Dark mode background - let Pico handle it or ensure it's dark */
[data-theme="dark"] body {
  background-color: #11191f;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid #999;
  /* Visible outline in light mode */
  color: var(--pico-color);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  opacity: 1 !important;
  /* Ensure no transparency */
}

.theme-toggle img.emoji {
  opacity: 1 !important;
  /* Ensure Twemoji icon isn't transparent */
  filter: none !important;
}

[data-theme="light"] .theme-toggle {
  border-color: #777;
  /* Darker border in light mode for better visibility */
  background: white;
  /* Solid background in light mode */
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--pico-muted-border-color);
  background: transparent;
}

.theme-toggle:hover {
  background: var(--pico-card-background-color);
  border-color: var(--curb-primary);
}

/* Logo */
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--curb-primary);
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

/* Nav badge */
.nav-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--curb-primary-light);
  color: var(--curb-primary);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Posture badges - pill style like old design */
.posture {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin: 0.1rem;
}

/* OBSERVE - Blue (informational, low priority) */
.posture-observe {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #64b5f6;
}

/* SUPPRESSED/IGNORE - Grey (filtered out) */
.posture-suppressed,
.posture-ignore {
  background: #f5f5f5;
  color: #616161;
  border: 1px solid #e0e0e0;
}

/* PLAN - Purple (requires planning, strategic) */
.posture-plan {
  background: #7b1fa2;
  color: white;
  border: 1px solid #7b1fa2;
}

/* AUDIT - Pink/Magenta (requires review, higher priority) */
.posture-audit {
  background: #fce4ec;
  color: #880e4f;
  border: 1px solid #f06292;
}

/* REMEDIATE - Red (urgent action required) */
.posture-remediate {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #e57373;
}

/* ALIGN - Green (CIO strategic alignment) */
.posture-align {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #81c784;
}

/* AWS Curated badge */
.badge-curated {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #000;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Hero section - bigger, bolder */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--curb-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--pico-muted-color);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Feature cards - colorful borders and shadows */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .feature-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border: 2px solid var(--curb-primary);
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--pico-card-background-color) 0%, var(--pico-background-color) 100%);
  box-shadow: 0 4px 12px var(--curb-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--curb-shadow);
}

.role-card {
  padding: 2rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  background: var(--pico-card-background-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: var(--curb-primary);
}

.role-card h3 {
  color: var(--curb-primary);
  margin-bottom: 1rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Section styling */
section {
  padding: 1.5rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Dark mode adjustments */
[data-theme="dark"] {
  --curb-primary: #4da3ff;
  --curb-primary-light: rgba(77, 163, 255, 0.15);
  --curb-shadow: rgba(77, 163, 255, 0.2);
}

[data-theme="dark"] .posture-observe {
  background: #1565c0;
  color: #e3f2fd;
}

[data-theme="dark"] .posture-suppressed,
[data-theme="dark"] .posture-ignore {
  background: #424242;
  color: #bdbdbd;
  border-color: #616161;
}

[data-theme="dark"] .posture-plan {
  background: #7b1fa2;
  color: #f3e5f5;
}

[data-theme="dark"] .posture-audit {
  background: #f57f17;
  color: #fff9c4;
}

[data-theme="dark"] .posture-remediate {
  background: #dc2626;
  color: #ffebee;
}

[data-theme="dark"] .posture-align {
  background: #2e7d32;
  color: #e8f5e9;
}

/* ============================
   NEWSLETTER SECTION
   ============================ */
.newsletter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 3rem 0 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.newsletter h2 {
  margin-bottom: 0.75rem;
  color: white;
  font-size: 1.75rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 450px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  min-width: 200px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.25);
}

/* Dark mode: lighter input background for better contrast */
[data-theme="dark"] .newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 0.65rem 1.5rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-highlight {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  margin: 1rem auto;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  backdrop-filter: blur(10px);
}

.newsletter-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ============================
   FOOTER
   ============================ */
footer.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
  margin-top: 2.5rem;
  color: var(--pico-color);
}

footer.site-footer p {
  margin: 0.5rem 0;
}

footer.site-footer strong {
  color: var(--pico-color);
}

/* ============================
   ISSUE CARDS (for digest pages)
   ============================ */
.issue-card {
  padding: 1.5rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: var(--pico-card-background-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.issue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--curb-primary);
}

.issue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.issue-card h4 {
  margin: 0.75rem 0;
  color: var(--pico-color);
  font-size: 1.1rem;
}

.issue-card-summary {
  color: var(--pico-color);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.issue-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.issue-card-date {
  font-size: 0.85rem;
  color: var(--pico-color);
}

.issue-card-link {
  color: var(--curb-primary);
  text-decoration: none;
  font-weight: 500;
}

.issue-card-link:hover {
  text-decoration: underline;
}

/* Service tags */
.service-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--pico-secondary-background);
  color: var(--pico-color);
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================
   KEY INSIGHTS SECTION
   ============================ */
.insights-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.insight-card {
  padding: 1.5rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  background: var(--pico-card-background-color);
}

.insight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--pico-color);
}

.insight-card p {
  color: var(--pico-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================
   TWO-COLUMN ROLE LAYOUT
   ============================ */
.role-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.role-column h3 {
  margin-bottom: 1.5rem;
  color: var(--curb-primary);
}

@media (max-width: 768px) {
  .role-columns {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input {
    width: 100%;
    min-width: unset;
  }
}

/* ============================
   WEEKLY SUMMARY BOX
   ============================ */
.weekly-summary {
  background: var(--pico-secondary-background);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.weekly-summary h3 {
  margin: 0 0 0.5rem 0;
}

.weekly-summary .stats {
  color: var(--pico-color);
  font-size: 0.95rem;
}

.suppression-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--pico-card-background-color);
  border-radius: 8px;
  border: 1px solid var(--pico-muted-border-color);
}

.stat-label {
  font-weight: 600;
  color: var(--curb-primary);
}

.stat-value {
  display: block;
  font-size: 0.9rem;
  color: var(--pico-color);
  margin-top: 0.25rem;
}

/* ============================
   PULSE METRICS SECTION
   ============================ */
.pulse-metrics {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.pulse-card {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  min-width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pulse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--curb-shadow);
}

.pulse-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--curb-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pulse-label {
  font-size: 0.9rem;
  color: var(--pico-color);
  font-weight: 500;
}

/* ============================
   WEEK TABS
   ============================ */
.week-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  background: var(--pico-background-color);
  z-index: 1000;
  border-bottom: 1px solid var(--pico-muted-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .week-tabs {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.week-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--pico-muted-border-color);
  border-radius: 2rem;
  background: transparent;
  color: var(--pico-color);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.week-tab:hover {
  border-color: var(--curb-primary);
  background: rgba(102, 126, 234, 0.1);
}

.week-tab.active {
  background: var(--curb-primary);
  border-color: var(--curb-primary);
  color: white;
}

/* ============================
   WEEK CONTENT
   ============================ */
.week-content {
  display: none;
}

.week-content.active {
  display: block;
}

.week-summary {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.week-summary h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.week-summary .stats {
  color: var(--pico-color);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ============================
   ISSUE GRID
   ============================ */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Role columns for digest */
.role-section {
  margin: 2rem 0;
}

.role-section h3 {
  color: var(--curb-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.role-section h3 span {
  margin-right: 0.5rem;
}

/* ============================
   DARK MODE TOGGLE
   ============================ */
.theme-toggle {
  background: none;
  border: 1px solid #999;
  /* Dark outline visible in light mode */
  color: var(--pico-color);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--pico-muted-border-color);
}

.theme-toggle:hover {
  background: var(--pico-card-background-color);
  border-color: var(--curb-primary);
}

/* ============================
   DARK MODE OVERRIDES
   ============================ */
[data-theme="dark"] .pulse-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .week-summary {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
}

[data-theme="dark"] .week-summary h3,
[data-theme="dark"] .week-summary .stats {
  color: #1a1a2e;
}

[data-theme="dark"] .week-summary .suppression-stats .stat-item {
  background: #f5f5f5;
  color: #1a1a2e;
}

[data-theme="dark"] .week-summary .stat-label {
  color: var(--curb-primary);
}

[data-theme="dark"] .week-summary .stat-value {
  color: #333;
}

[data-theme="dark"] .week-tab {
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .issue-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .issue-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--curb-primary);
}

/* ============================
   KANBAN & ROLE UI
   ============================ */

/* Role Switcher */
/* Integrated Role Switcher */
.role-toggle-integrated {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
}

/* Divider inside banner */
.banner-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem -2rem 1.5rem -2rem;
  /* Extend to edges */
  width: auto;
}

.role-btn {
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  color: #6b7280;
  /* Gray-500 */
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-btn:hover {
  color: #111827;
  /* Gray-900 */
  background: #f3f4f6;
}

.role-btn.active {
  background: #eff6ff;
  /* Very light blue */
  color: #2563eb;
  /* Blue-600 */
  border: 1px solid #bfdbfe;
  box-shadow: none;
}

/* Kanban Board */
.kanban-container {
  width: 100%;
  overflow-x: auto;
}

/* Role Switcher Label */
.role-switcher-label {
  font-size: 0.75rem;
  color: var(--pico-color);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

/* Ensure top banner card handles role switcher spacing */
.top-banner-card .role-toggle-integrated {
  margin-top: 0.5rem;
  justify-content: center;
  width: 100%;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-width: 1000px;
  /* Ensure columns don't squish too much */
}

@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background: rgba(var(--pico-card-background-color-rgb), 0.5);
  /* slightly transparent */
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--pico-muted-border-color);
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}

.column-header h4 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.count-badge {
  background: var(--pico-secondary-background);
  color: var(--pico-color);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Column Specific Headers */
.column-remediate .column-header {
  border-color: #d73a49;
}

.column-remediate h4 {
  color: #d73a49;
}

.column-audit .column-header {
  border-color: #d29922;
}

.column-audit h4 {
  color: #d29922;
}

.column-plan .column-header {
  border-color: #fa7a18;
}

.column-plan h4 {
  color: #fa7a18;
}

.column-observe .column-header {
  border-color: #0366d6;
}

.column-observe h4 {
  color: #0366d6;
}

/* Kanban Card */
.issue-card-kanban {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.issue-card-kanban:hover {
  transform: translateY(-2px);
  border-color: var(--curb-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.service-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  background: var(--pico-secondary-background);
  color: var(--pico-color);
  border: 1px solid var(--pico-muted-border-color);
}

.issue-card-kanban h5 {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.issue-card-kanban h5 a {
  color: var(--pico-color);
  text-decoration: none;
}

.issue-card-kanban h5 a:hover {
  color: var(--curb-primary);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--pico-color);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  border-top: 1px solid var(--pico-muted-border-color);
  padding-top: 0.5rem;
}

.view-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.date {
  font-size: 0.75rem;
  color: var(--pico-color);
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--pico-color);
  font-size: 0.9rem;
  font-style: italic;
  border: 1px dashed var(--pico-muted-border-color);
  border-radius: 6px;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .issue-card-kanban {
  background: #161b22;
  /* GitHub card bg */
  border-color: #30363d;
}

[data-theme="dark"] .kanban-column {
  background: #0d1117;
  /* GitHub bg */
  border-color: #30363d;
}

[data-theme="dark"] .service-badge {
  background: #21262d;
  border-color: #30363d;
}

/* ============================
   NEW UI REFINEMENTS (Unified Grid)
   ============================ */

/* Top Banner Card (Force Light Theme) */
.top-banner-card {
  background: #ffffff;
  color: #1f2937;
  /* Dark Gray text */
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 0;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

[data-theme="dark"] .top-banner-card {
  /* Override dark mode for this specific card */
  background: #ffffff;
  color: #1f2937;
  border-color: #e5e7eb;
}

.banner-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #111827;
  /* Almost Black */
}

.banner-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Visibility Logic for Split Layout */
.week-banner,
.week-grid {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.week-banner.active,
.week-grid.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Week Tabs - Blue Pill Style */
.week-tabs {
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.week-tab {
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  color: var(--pico-color);
  border-radius: 50px;
  /* Full pill */
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.week-tab:hover {
  background: var(--pico-secondary-background);
}

.week-tab.active {
  background: #3b82f6 !important;
  /* Vivid Blue */
  border-color: #3b82f6 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Stats Styling within White Banner */
.stats-breakdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-pill {
  padding: 0.5rem 1rem;
  padding-top: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
  /* Outfit first for numbers, emoji fonts as fallback for emoji characters */
  font-family: "Outfit", system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.stat-remediate {
  background: #dc2626;
}

/* Red */
.stat-audit {
  background: #d97706;
}

/* Purple */
.stat-plan {
  background: #8e24aa;
}

/* Orange */
.stat-observe {
  background: #2563eb;
}

/* Blue */
.stat-align {
  background: #16a34a;
}

/* Green */
.stat-neutral {
  background: #6b7280;
}

/* Gray */

.stats-noise {
  color: #6b7280;
  /* Force gray for light theme */
  font-size: 1.1rem;
  font-style: normal;
  margin-top: 1rem;
  font-weight: 500;
}

/* Unified Grid */
.unified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Compact Card */
.issue-card-refined {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.issue-card-refined:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--curb-primary);
}

.card-header {
  margin-bottom: 0.5rem;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.service-pill {
  font-size: 0.7rem;
  background: var(--pico-secondary-background);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--pico-color);
  font-weight: 600;
  text-transform: uppercase;
}

.posture-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Posture colors match stats */
.posture-remediate,
.posture-critical {
  background: #dc2626;
  color: white;
}

.posture-audit,
.posture-ignore {
  background: #d97706;
  color: white;
}


.posture-observe,
.posture-optional {
  background: #2563eb;
  color: white;
}

.posture-align,
.posture-strategic {
  background: #16a34a;
  color: white;
}

.issue-card-refined h5 {
  margin: 0;
  font-size: 1rem;
  /* Compact font */
  line-height: 1.3;
  font-weight: 700;
}

.issue-card-refined h5 a {
  color: var(--pico-color);
  text-decoration: none;
}

.card-body {
  flex: 1;
}

.description {
  color: var(--pico-color);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-info {
  font-size: 0.75rem;
  color: var(--pico-color);
  margin-bottom: 0.75rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--pico-muted-border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* Roadmap button pulse hint animation */
@keyframes roadmap-hint-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--pico-primary);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
    transform: scale(1.05);
  }
}

/* Roadmap Widget - Plus Button */
.roadmap-widget {
  position: relative;
}

.roadmap-btn-icon {
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  width: 28px;
  /* Small circle */
  height: 28px;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  color: var(--pico-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

.roadmap-btn-icon.hint-pulse {
  animation: roadmap-hint-pulse 1s ease-out;
}

.roadmap-btn-icon:hover {
  background: var(--pico-primary-background);
  color: #fff;
  border-color: var(--pico-primary-background);
}

.roadmap-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  padding: 0.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 10;
  margin-bottom: 0.5rem;
}

/* Invisible bridge to prevent hover loss */
.roadmap-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.5rem;
  /* Matches margin-bottom */
}

.roadmap-widget:hover .roadmap-dropdown {
  display: block;
}

.quarter-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.roadmap-opt {
  padding: 0.2rem;
  font-size: 0.75rem;
  width: 100%;
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 4px;
  cursor: pointer;
}

.roadmap-opt:hover {
  background: var(--pico-secondary-background);
}

.year-input {
  width: 100%;
  padding: 0.2rem;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 4px;
}

/* Vote Buttons */
.vote-widget {
  display: flex;
  gap: 0.5rem;
}

.vote-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  /* Smaller icons */
  color: var(--pico-color);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.1s;
}

.vote-btn:hover {
  transform: scale(1.1);
  background: transparent;
  /* No bg on hover */
}

.vote-btn.upvote:hover {
  filter: contrast(200%);
}

.vote-btn.downvote:hover {
  filter: contrast(200%);
}

.view-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--curb-primary);
  text-decoration: none;
}

.week-tab {
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  color: var(--pico-color);
  border-radius: 50px;
  /* Full pill */
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}

.week-tab.active {
  background: #3b82f6 !important;
  /* Vivid Blue */
  border-color: #3b82f6 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Stats Banner */
.stats-banner {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Light mode: ensure banner has contrast */
[data-theme="light"] .stats-banner {
  background: #f9fafb;
  border: 2px solid #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-banner h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.stats-breakdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stat-pill {
  padding: 0.5rem 0.8rem;
  padding-top: 0.6rem;
  /* Prevent number clipping at top */
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  line-height: 1.4;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
}

.stat-remediate {
  background: #dc2626;
}

/* Red */
.stat-audit {
  background: #d97706;
}

/* Purple */
.stat-plan {
  background: #8e24aa;
}

/* Orange */
.stat-observe {
  background: #2563eb;
}

/* Blue */
.stat-align {
  background: #16a34a;
}

/* Green */
.stat-neutral {
  background: #6b7280;
}

/* Gray */

.stats-noise {
  color: var(--pico-color);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
}

/* Unified Grid */
.unified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  /* Compact gap */
}

/* Compact Card */
.issue-card-refined {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 8px;
  /* Compact radius */
  padding: 1rem;
  /* Compact padding */
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.issue-card-refined:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--curb-primary);
}

.card-header {
  margin-bottom: 0.5rem;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.service-pill {
  font-size: 0.7rem;
  background: var(--pico-secondary-background);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--pico-color);
  font-weight: 600;
  text-transform: uppercase;
}

.posture-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Posture colors match stats */
.posture-remediate,
.posture-critical {
  background: #dc2626;
  color: white;
}

.posture-audit,
.posture-ignore {
  background: #d97706;
  color: white;
}


.posture-observe,
.posture-optional {
  background: #2563eb;
  color: white;
}

.posture-align,
.posture-strategic {
  background: #16a34a;
  color: white;
}

.issue-card-refined h5 {
  margin: 0;
  font-size: 1rem;
  /* Compact font */
  line-height: 1.3;
  font-weight: 700;
}

.issue-card-refined h5 a {
  color: var(--pico-color);
  text-decoration: none;
}

.card-body {
  flex: 1;
}

.description {
  color: var(--pico-color);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-info {
  font-size: 0.75rem;
  color: var(--pico-color);
  margin-bottom: 0.75rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--pico-muted-border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* Roadmap Widget - Plus Button */
.roadmap-widget {
  position: relative;
}

.roadmap-btn-icon {
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  width: 28px;
  /* Small circle */
  height: 28px;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  color: var(--pico-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

.roadmap-btn-icon:hover {
  background: var(--pico-primary-background);
  color: #fff;
  border-color: var(--pico-primary-background);
}

.roadmap-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  padding: 0.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 10;
  margin-bottom: 0.5rem;
}

/* Invisible bridge to prevent hover loss */
.roadmap-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.5rem;
  /* Matches margin-bottom */
}

.roadmap-widget:hover .roadmap-dropdown {
  display: block;
}

.quarter-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.roadmap-opt {
  padding: 0.2rem;
  font-size: 0.75rem;
  width: 100%;
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 4px;
  cursor: pointer;
  color: var(--pico-color);
}

.roadmap-opt:hover {
  background: var(--pico-secondary-background);
}

.year-input {
  width: 100%;
  padding: 0.2rem;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 4px;
}

/* Vote Buttons */
.vote-widget {
  display: flex;
  gap: 0.5rem;
}

.vote-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  /* Smaller icons */
  color: var(--pico-color);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.1s;
}

.vote-btn:hover {
  transform: scale(1.1);
  background: transparent;
  /* No bg on hover */
}

.vote-btn.upvote:hover {
  filter: contrast(200%);
}

.vote-btn.downvote:hover {
  filter: contrast(200%);
}

.view-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--curb-primary);
  text-decoration: none;
}

/* Light mode: ensure week tabs are visible */
[data-theme="light"] .week-tab {
  border-color: #d1d5db;
  color: #374151;
}

[data-theme="light"] .week-tab:hover {
  border-color: var(--curb-primary);
  background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .week-tab.active {
  background: var(--curb-primary);
  border-color: var(--curb-primary);
  color: white;
}

/* Light mode: roadmap button text */
[data-theme="light"] .roadmap-btn-icon {
  color: #374151;
  border-color: #d1d5db;
}

/* Light mode: roadmap quarter buttons */
[data-theme="light"] .roadmap-opt {
  color: #374151;
  border-color: #d1d5db;
}

[data-theme="light"] .roadmap-opt:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--curb-primary);
  color: #374151;
}

/* Service pill badges */
.service-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .service-pill {
  background: #374151;
  color: white;
  border: 1px solid #1f2937;
}

[data-theme="dark"] .service-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================
   LIGHT MODE COMPREHENSIVE FIX
   ============================ */

[data-theme="light"] {

  /* Hero section - add subtle background */
  .hero {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 3rem 0;
    border-radius: 12px;
    margin-bottom: 2rem;
  }

  /* Pulse metrics - add borders for definition */
  .pulse-card {
    background: white;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  /* Issue cards - add clear borders */
  .issue-card-kanban,
  .issue-card-refined {
    background: white;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .issue-card-kanban:hover,
  .issue-card-refined:hover {
    border-color: var(--curb-primary);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
  }

  /* Kanban columns */
  .kanban-column {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
  }

  /* Column headers */
  .column-header {
    background: white;
    border-bottom: 2px solid #e5e7eb;
  }

  /* Role button hover - blue border with subtle tint (both modes) */
  .role-btn:hover {
    border-color: var(--curb-primary) !important;
    background: rgba(102, 126, 234, 0.1) !important;
  }

  /* Time filter container */
  .time-filter-container {
    position: sticky;
    top: 0;
    background: var(--pico-background-color);
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
  }

  /* Month/Year selector */
  .month-year-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .month-select,
  .year-select-filter {
    padding: 0.5rem 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.5rem;
    background: var(--pico-card-background-color);
    color: var(--pico-color);
    font-size: 0.9rem;
    cursor: pointer;
  }

  /* Update week tabs to match old version */
  .week-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    background: var(--pico-background-color);
    z-index: 1000;
    border-bottom: 1px solid var(--pico-muted-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .week-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: transparent;
    color: var(--pico-color);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .week-tab:hover {
    border-color: var(--curb-primary);
    color: var(--curb-primary);
  }

  .week-tab.active {
    background: var(--curb-primary);
    border-color: var(--curb-primary);
    color: white;
  }

  /* Compact month/year selectors - TILE STYLE */
}

/* Week Tabs Container - Centered */
.week-tabs {
  display: flex;
  justify-content: center;
  /* Center alignment */
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--pico-background-color);
  z-index: 1000;
  border-bottom: 1px solid var(--pico-muted-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Compact month/year selectors - TILE STYLE (Blue) */
.month-select-compact,
.year-select-compact {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding: 0.4rem 0.75rem !important;
  border: 2px solid var(--curb-primary) !important;
  border-radius: 6px !important;
  background-color: var(--pico-card-background-color) !important;
  background-image: none !important;
  color: var(--curb-primary) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  margin-right: 0.5rem !important;
  width: auto !important;
  display: inline-block !important;
  height: auto !important;
  min-height: unset !important;
  line-height: normal !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  text-align: center !important;
}

.year-select-compact {
  margin-right: 2rem !important;
  /* Separation */
}

/* Digest Search - Match Month/Year Pill Style */
.digest-search {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding: 0.4rem 0.75rem !important;
  border: 2px solid var(--pico-muted-border-color) !important;
  border-radius: 6px !important;
  background-color: var(--pico-card-background-color) !important;
  color: var(--pico-color) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  cursor: text !important;
  margin-right: 0.5rem !important;
  width: 120px !important;
  display: inline-block !important;
  height: auto !important;
  min-height: unset !important;
  line-height: normal !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.digest-search::placeholder {
  color: var(--pico-muted-color);
  opacity: 0.7;
}

.digest-search:focus {
  outline: none;
  border-color: var(--curb-primary) !important;
}

/* Filter Dropdown */
.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.filter-toggle {
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid var(--pico-muted-border-color);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  background: var(--pico-card-background-color);
  color: var(--pico-color);
  transition: all 0.2s ease;
}

.filter-toggle:hover {
  border-color: var(--curb-primary);
}

.filter-toggle span,
.filter-toggle svg {
  color: inherit !important;
}

.filter-toggle svg {
  opacity: 0.7;
}

/* Ensure Toggle Button Text is Dark in Light Mode */
[data-theme="light"] .filter-toggle {
  background: #ffffff;
  color: #374151 !important;
  /* Dark Gray */
  border-color: #d1d5db;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 220px;
  padding: 0.75rem;
}

/* Light Mode Explicit Overrides for Visibility */
[data-theme="light"] .filter-dropdown {
  background: #ffffff;
  border-color: #e5e7eb;
}

.keyword-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 4px;
  background: var(--pico-background-color);
  color: var(--pico-color);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Fix Input Visibility in Light Mode */
[data-theme="light"] .keyword-search {
  background: #f3f4f6;
  /* Light gray background */
  color: #1f2937;
  /* Dark gray text */
  border-color: #d1d5db;
}

[data-theme="light"] .keyword-search::placeholder {
  color: #6b7280;
}

.keyword-search:focus {
  outline: none;
  border-color: var(--curb-primary);
  background: var(--pico-card-background-color);
}

.filter-options {
  border-top: 1px solid var(--pico-muted-border-color);
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  margin: 0;
  border-radius: 4px;
}

.filter-option:hover {
  background: var(--pico-background-color);
}

/* Light Mode Option Hover */
[data-theme="light"] .filter-option:hover {
  background: #f3f4f6;
  color: #000;
}

.filter-option input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  color: var(--pico-muted-color);
  font-size: 0.8rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.filter-btn {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 4px;
  background: transparent;
  color: var(--pico-color);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Fix Clear Button Visibility in Light Mode */
[data-theme="light"] .filter-btn {
  background: #ffffff;
  color: #374151;
  /* Dark gray text */
  border-color: #d1d5db;
}

[data-theme="light"] .filter-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.filter-btn:hover {
  background: var(--pico-background-color);
  border-color: var(--pico-color);
}

.filter-btn-primary {
  background: var(--curb-primary) !important;
  color: white !important;
  border: 1px solid var(--curb-primary) !important;
}

.filter-btn-primary:hover {
  filter: brightness(0.9);
  opacity: 0.9;
}

/* Hover State */
.month-select-compact:hover,
.year-select-compact:hover {
  background-color: var(--curb-primary) !important;
  color: var(--pico-background-color) !important;
  /* Invert */
  transform: translateY(-1px);
}

/* Light Mode Overrides */
[data-theme="light"] .month-select-compact,
[data-theme="light"] .year-select-compact {
  background-color: #ffffff !important;
  border-color: var(--curb-primary) !important;
  color: var(--curb-primary) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .month-select-compact:hover,
[data-theme="light"] .year-select-compact:hover {
  color: white !important;
}

/* Dark Mode Overrides - Explicitly match Light Mode Blue */
[data-theme="dark"] .month-select-compact,
[data-theme="dark"] .year-select-compact {
  border-color: var(--curb-primary) !important;
  color: var(--curb-primary) !important;
  background-color: var(--pico-card-background-color) !important;
}

[data-theme="dark"] .month-select-compact:hover,
[data-theme="dark"] .year-select-compact:hover {
  background-color: var(--curb-primary) !important;
  color: white !important;
}

/* Fix Non-Selected Week Tab Visibility in Light Mode */
[data-theme="light"] .week-tab {
  border: 2px solid #6b7280 !important;
  /* Dark Gray Border */
  color: #374151 !important;
  /* Dark Text */
  background-color: #ffffff !important;
  font-weight: 600 !important;
}

[data-theme="light"] .week-tab:hover {
  border-color: var(--curb-primary) !important;
  color: var(--curb-primary) !important;
  background-color: rgba(0, 123, 255, 0.05) !important;
}

[data-theme="light"] .week-tab.active {
  background-color: var(--curb-primary) !important;
  color: white !important;
  border-color: var(--curb-primary) !important;
}

/* Quarter color coding for roadmap - distinct from posture/service colors */
.roadmap-btn-icon[data-quarter="Q1"] {
  background: #8b5cf6 !important;
  /* Purple */
  color: white !important;
  border-color: #8b5cf6 !important;
}

.roadmap-btn-icon[data-quarter="Q2"] {
  background: #06b6d4 !important;
  /* Cyan */
  color: white !important;
  border-color: #06b6d4 !important;
}

.roadmap-btn-icon[data-quarter="Q3"] {
  background: #c3ec48 !important;
  /* Pink */
  color: white !important;
  border-color: #c3ec48 !important;
}

.roadmap-btn-icon[data-quarter="Q4"] {
  background: #1435b8 !important;
  /* Teal */
  color: white !important;
  border-color: #1435b8 !important;
}

/* Signal Rating Widget */
.signal-bars,
.signal-bars-issue {
  user-select: none;
}

.bar {
  background: rgba(128, 128, 128, 0.3);
  border: 1px solid rgba(128, 128, 128, 0.5);
  border-radius: 3px;
  transition: background 0.2s, transform 0.1s;
}

.bar:hover {
  transform: scaleY(1.05);
  background: rgba(128, 128, 128, 0.4);
}

.bar.filled {
  background: var(--pico-primary);
  border-color: var(--pico-primary);
}

.share-buttons button,
.share-buttons a,
.share-buttons-issue button,
.share-buttons-issue a {
  transition: transform 0.2s, opacity 0.2s;
}

.share-buttons button:hover,
.share-buttons a:hover,
.share-buttons-issue button:hover,
.share-buttons-issue a:hover {
  transform: scale(1.2);
  opacity: 1 !important;
}

/* ============================
   FEEDBACK WIDGET (Inline Pills)
   ============================ */
.feedback-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pico-muted-border-color);
}

.feedback-label {
  font-size: 0.875rem;
  color: var(--pico-muted-color);
  white-space: nowrap;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1.5px solid var(--pico-muted-border-color);
  background: rgba(16, 149, 193, 0.25);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--pico-muted-color);
  transition: all 0.2s ease;
}

.feedback-btn:hover {
  border-color: var(--pico-primary);
  color: var(--pico-primary);
  background: var(--pico-primary-background);
}

/* Vote count styling - default (muted) */
.feedback-btn .count {
  font-weight: 500;
  min-width: 0.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s ease;
}

/* Empty count - hide */
.feedback-btn .count:empty {
  display: none;
}

/* Voted state - keep button subtle, highlight the COUNT */
.feedback-btn.voted {
  border-color: var(--pico-muted-border-color);
  background: transparent;
  color: var(--pico-color);
}

/* Upvote voted - green count */
.feedback-btn[data-vote="up"].voted .count {
  color: #16a34a;
  /* Green - works both modes */
  font-weight: 700;
  font-size: 1rem;
}

/* Downvote voted - red count */
.feedback-btn[data-vote="down"].voted .count {
  color: #dc2626;
  /* Red - works both modes */
  font-weight: 700;
  font-size: 1rem;
}

/* Dark mode color adjustments */
[data-theme="dark"] .feedback-btn[data-vote="up"].voted .count {
  color: #4ade80;
  /* Brighter green for dark */
}

[data-theme="dark"] .feedback-btn[data-vote="down"].voted .count {
  color: #f87171;
  /* Brighter red for dark */
}

/* Pulse animation on vote */
@keyframes feedbackPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.feedback-btn.pulse {
  animation: feedbackPulse 0.3s ease;
}

.feedback-btn .count.updated {
  animation: feedbackPulse 0.3s ease;
}

/* ============================
   COMPACT FEEDBACK (Digest Cards)
   ============================ */
.feedback-compact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.feedback-compact .feedback-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border: none;
  background: transparent;
}

.feedback-compact .feedback-btn:hover {
  background: var(--pico-primary-background);
}

/* Hide non-voted button when voted (compact mode) */
.feedback-compact.has-vote .feedback-btn:not(.voted) {
  display: none;
}

/* Show count prominently when voted (compact mode) */
.feedback-compact .feedback-btn.voted {
  padding: 0.25rem 0.6rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .feedback-inline {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .feedback-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

.feedback-inline {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feedback-label {
  width: 100%;
  margin-bottom: 0.25rem;
}


/* Fix textarea contrast in dark mode */
[data-theme="dark"] textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"] {
  background: var(--pico-form-element-background-color);
  border: 1px solid var(--pico-form-element-border-color);
  color: var(--pico-color);
}

[data-theme="dark"] textarea:focus,
[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus {
  border-color: var(--pico-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] input::placeholder {
  color: var(--pico-muted-color);
  opacity: 0.7;
}

/* Fix checkbox contrast in dark mode - consistent styling for all checkboxes */
[data-theme="dark"] input[type="checkbox"] {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
}

[data-theme="dark"] input[type="checkbox"]:checked {
  background: var(--pico-primary) !important;
  border-color: var(--pico-primary) !important;
}

[data-theme="dark"] input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.1rem;
  width: 0.4rem;
  height: 0.7rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Roadmap card checkbox visibility in dark mode - always visible */
[data-theme="dark"] .card-checkbox {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
}

[data-theme="dark"] .card-checkbox:checked {
  background: var(--pico-primary) !important;
  border-color: var(--pico-primary) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

/* How It Works box - visible border in both themes */
.how-it-works-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .how-it-works-box {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .how-it-works-box {
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Roadmap card hover effect (match digest cards) */
.roadmap-card {
  transition: all 0.2s ease;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--pico-primary) !important;
}

[data-theme="dark"] .roadmap-card:hover {
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}


/* Twemoji emoji sizing - match text size exactly */
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
  display: inline-block;
}


/* ============================================
   RESPONSIVE FIXES - Mobile Navigation Overflow
   ============================================ */

/* Fix navigation overflow on mobile (320px - 767px) */
@media (max-width: 767px) {

  /* Reduce container padding on mobile */
  nav.container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Tighter navigation spacing */
  nav ul {
    gap: 0.5rem;
  }

  nav li a {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Scale down logo */
  .logo {
    font-size: 1.1rem !important;
  }

  /* Hide badge on mobile to save space */
  .nav-badge {
    display: none !important;
  }

  /* Smaller theme toggle */
  .theme-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }

  .week-tabs {
    flex-wrap: wrap !important;
    width: 100% !important;
    height: auto !important;
    min-height: min-content;
    display: flex !important;
    padding-bottom: 0.75rem !important;
    /* Ensure space for bottom row */
    overflow: visible !important;
    /* Prevent clipping */
    background: var(--pico-background-color);
    /* Ensure opaque background */
    z-index: 1000;
  }

  /* Mobile Week Tabs Structural Layout (2 Rows) */
  /* Top Row: Combined Search, Signal, Month, Year */
  .week-tabs-left {
    width: auto;
    flex: 1;
    order: 1;
    margin-bottom: 0;
  }

  /* Make search input compact */
  .week-tabs-left input[type="search"] {
    margin-bottom: 0;
    height: 2.5rem;
    font-size: 0.9rem;
  }

  /* Bottom row: Scrollable Weeks */
  .week-tabs-center {
    width: 100vw;
    /* Use viewport width relative to parent */
    max-width: 100%;
    order: 3;
    /* Bottom */
    overflow-x: auto !important;
    display: flex !important;
    white-space: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
    margin-left: -0.5rem;
    /* Counteract parent padding for full bleed scroll */
    margin-right: 0;
    /* Don't cut off right side - let padding work */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Add invisible spacer at end to ensure scroll space */
  .week-tabs-center::after {
    content: '';
    display: block;
    flex: 0 0 14rem;
    /* 224px spacer to show last pill */
    height: 1px;
  }

  .week-tabs-center::-webkit-scrollbar {
    display: none;
  }

  /* Top Row: Right (Month/Year) - Moved up */
  .week-tabs-right {
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    order: 2;
    /* Top Right */
    flex-wrap: nowrap;
    /* Keep on one line if possible */
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1002;
  }

  /* Fix Dropdown Aesthetics */
  .week-tabs-right select {
    width: auto;
    min-width: 4rem;
    /* Ensure enough space for "Feb" */
    height: 2.5rem;
    margin-bottom: 0;
    padding-right: 1.5rem;
    /* Reduce arrow space */
    padding-left: 0.5rem;
    font-size: 0.9rem;
    background-position: center right 0.25rem;
  }

  .week-tabs-right .secondary {
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  /* Fix "No Data" Modal Dropdowns */
  .no-data-month-selector select {
    background-position: center right 0.5rem;
    padding-right: 2rem;
    text-overflow: ellipsis;
    min-width: 5rem;
  }

  .no-data-year-selector select {
    min-width: 4.5rem;
  }

  .week-tab {
    flex: 0 0 auto !important;
    display: block !important;
    flex-wrap: nowrap;
  }

  /* Radar Page Responive Grids */
  .radar-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  /* Prevent grid blowout from pre tags */
  .radar-service-grid>* {
    min-width: 0;
  }

  .radar-quick-add-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    flex-grow: 1;
  }

  @media (max-width: 768px) {
    .radar-service-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .radar-quick-add-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    /* Ensure categories in quick add don't overflow */
    .radar-quick-add-grid button {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0.75rem 0.25rem;
      font-size: 0.8rem;
    }

    /* Home Page Pulse Stats - Compact Grid */
    .mobile-pulse-scroll {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      padding-bottom: 0 !important;
    }

    .mobile-pulse-scroll .pulse-card {
      padding: 1rem !important;
      min-width: 0;
    }

    .mobile-pulse-scroll .pulse-number {
      font-size: 1.75rem !important;
    }

    .mobile-pulse-scroll .pulse-label {
      font-size: 0.75rem !important;
    }
  }

  /* Prevent main container from expanding */
  main.container {
    overflow-x: hidden;
  }

  /* Allow nav to be scrollable if needed, don't wrap ugly */
  nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  /* Fix Role Switcher overflow on mobile */
  .role-toggle-integrated {
    flex-wrap: wrap !important;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  .role-toggle-integrated button,
  .role-toggle-integrated a {
    flex: 1 1 auto;
    width: auto;
    min-width: 100px;
    /* Ensure touch target size */
    text-align: center;
  }
}

/* Extra small screens (320px) - more aggressive fixes */
@media (max-width: 374px) {
  nav.container {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  nav ul {
    gap: 0.1rem;
  }

  nav li a {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
  }

  .logo {
    font-size: 1rem !important;
  }

  .theme-toggle {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
  }

  /* Ensure no overflow */
  body,
  html {
    overflow-x: hidden;
  }

  main.container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Fix minor overflow on tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  body {
    overflow-x: hidden;
  }

  main.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }

  .week-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================
   RADAR PREFERENCE BANNER
   ============================ */
.radar-preference-banner {
  background: var(--pico-primary-focus);
  padding: 1rem 1.25rem;
  border-radius: var(--pico-border-radius);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--pico-primary);
  /* Fix overlap issues by ensuring it stacks properly */
  position: relative;
  z-index: 5;
  clear: both;
}

.radar-preference-banner .banner-content {
  display: flex;
  flex-direction: column;
}

.radar-preference-banner small {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.radar-preference-banner .banner-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.radar-preference-banner .banner-actions button.outline {
  background: transparent;
  border: 1px solid var(--pico-primary);
  color: var(--pico-primary);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
}

/* Mobile adjustments for banner */
@media (max-width: 767px) {
  .radar-preference-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    /* Extra top margin for mobile safety */
  }

  .radar-preference-banner .banner-actions {
    width: 100%;
    justify-content: space-between;
  }
}