:root {
  /* Lean into Pico’s theming instead of bespoke colors */
  --pico-primary: #2563eb;
  --pico-primary-background: #2563eb;
  --pico-primary-hover: #1e40af;
  --pico-primary-focus: rgba(37, 99, 235, 0.14);
  --pico-border-radius: 12px;
  --pico-card-background-color: #ffffff;
  --pico-muted-border-color: #e6e9ee;
  --bg: #f5f7fa;
  --muted: #6b7280;
  --text: #1f2937;
  --shadow: 0 8px 22px rgba(31,41,55,0.08);
  --card-shadow: 0 10px 28px rgba(31,41,55,0.08);
  --chart-height: 160px;
  --status-chart-height: 120px;
  --note-card-bg: #ffffff;
  --note-card-text-color: #1f2937;
  --note-card-border-color: #e6e9ee;
  --note-card-context-bg: #e6e9ee;
  --note-card-embed-bg: #e6e9ee;
  --note-card-context-link-color: #1d9bf0;
  --note-card-icon-color: #2563eb;
  --note-card-title-color: #1f2937;
  --note-card-note-bg: #f3f4f6;
  --note-card-nav-btn-border-color: #d1d5db;
  --note-card-nav-btn-bg: #ffffff;
  --note-card-nav-btn-text-color: #1f2937;
  --note-card-dot-border-color: #d1d5db;
  --note-card-meta-text: #6b7280;
  --note-card-title-size: 16px;
  --note-card-radius: 12px;  
  --pico-background-color: #f5f7fa;
  --pico-card-color: #1f2937;
  --pico-secondary: #6b7280;
  --tab-header-bg: #ffffff;
  --tab-header-border: #e5e7eb;
  --tab-button-text: #1f2937;
  --tab-button-active-bg: #1f2937;
  --tab-button-active-text: #ffffff;
  --filter-label-color: #4b5563;
  --total-count-color: #333;
  --loading-border: #e5e7eb;
  --scroll-to-top-bg: #fff;
  --tweet-card-bg: #fff;
  --tweet-card-border: #e6e9ee;
  --tweet-card-bookmark-border: #374151;
  --tweet-card-bookmark-bg: #fff;
  --tweet-card-bookmark-stroke: #374151;
  --tweet-card-bookmark-hover-bg: #eef2ff;
  --tweet-card-bookmark-bookmarked-bg: #e0e7ff;
  --footer-banner-bg: #6e717f;
  --footer-banner-text: #fff;
  --about-close-button-bg: #111827;
  --about-close-button-text: #fff;
  --about-close-button-border: #ccc;
  --note-card-dot-active-bg: #2563eb;
  --highlight-bg: yellow;
  --highlight-text: #000;
  --embed-error-text: #333;
  --no-bookmarks-text: #666;
  --no-bookmarks-desc-text: #555;
  --status-legend-item-text: #555;
  --search-pill-border: #e5e7eb;
  --search-pill-bg: #2563eb;
  --search-pill-text: #ffffff;
  --bookmark-pill-bg: #ff6f61;
  --bookmark-pill-text: #ffffff;
  --tab-button-hover-bg: rgba(37,99,235,0.08);
  --tab-button-hover-text: #1d4ed8;
  --tab-button-active-border: rgba(255,255,255,0.08);
  --load-more-text: #ffffff;
  --tweet-card-date-bg: #ff6f61;
  --tweet-card-date-text: #ffffff;
  --skeleton-bg: linear-gradient(180deg, rgba(240,240,240,0.6), rgba(230,230,230,0.6));
  --skeleton-bar-bg: linear-gradient(90deg, rgba(245,245,245,0.6), rgba(230,230,230,0.5));
  --bookmark-expand-border: #e6e9ee;
  --group-addon-bg: #f3f4f6;
  --group-addon-text-color: #4b5563;
  --group-addon-mobile-text-color: #6b7280;
  --pico-error-color: #b91c1c;
  --status-helpful-bg: #2ca02c;
  --status-not-helpful-bg: #ef4444;
  --status-needs-rating-bg: #fb8c00;
  --status-needs-rating-text: #0f172a;
  --status-unknown-bg: #7c3aedc9;
  --status-default-bg: #374151;
  --status-default-text: #fff;
  --status-icon-visible-color: #16a34a;
  --status-icon-needs-rating-color: #ff8c00;
  --status-icon-not-helpful-color: #ef4444;
  /* Top Words / Tag Cloud theme colors */
  --keyword-tag-bg: #f3f4f6;
  --keyword-tag-text: #374151;
  --keyword-tag-border: #e5e7eb;
  --tooltip-bg: #1f2937;
  --tooltip-text: #f9fafb;
  /* Guide step icon colors and settings */
  --guide-icon-size: 34px; /* icon diameter */
  --guide-icon-font-size: 16px; /* icon font-size */
  --guide-icon-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --guide-icon-bg-search: #2563eb; /* blue */
  --guide-icon-bg-browse: #06b6d4; /* teal */
  --guide-icon-bg-open: #7c3aed; /* purple for open */
  --guide-icon-bg-explore: #60a5fa; /* light blue for explore */
  --guide-icon-bg-status: #f59e0b; /* amber */
  --guide-icon-bg-bookmark: #ef4444; /* red */
  --guide-icon-bg-export: #16a34a; /* green */
}

[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e5e7eb;
  --pico-card-background-color: #111827;
  --pico-muted-border-color: #1e293b;
  --muted: #9ca3af;
  --note-card-bg: #0f172a;
  --note-card-text-color: #e5e7eb;
  --note-card-border-color: #1e293b;
  --note-card-context-bg: #1e293b;
  --note-card-context-link-color: #6bc9fb;
  --note-card-icon-color: #60a5fa;
  --note-card-title-color: #e5e7eb;
  --note-card-note-bg: #0b1220;
  --note-card-nav-btn-border-color: #4b5563;
  --note-card-nav-btn-bg: #374151;
  --note-card-nav-btn-text-color: #e5e7eb;
  --note-card-dot-border-color: #4b5563;
  --note-card-embed-bg: #1e293b;
  --note-card-meta-text: #9ca3af;
  --pico-background-color: #0b1220;
  --pico-card-color: #e5e7eb;
  --pico-secondary: #9ca3af;
  --tab-header-bg: #111827;
  --tab-header-border: #1e293b;
  --tab-button-text: #e5e7eb;
  --keyword-tag-bg: #1e293b;
  --keyword-tag-text: #e5e7eb;
  --keyword-tag-border: #374151;
  --tooltip-bg: #374151;
  --tooltip-text: #f9fafb;
  --tab-button-active-bg: #e5e7eb;
  --tab-button-active-text: #111827;
  --filter-label-color: #9ca3af;
  --total-count-color: #e5e7eb;
  --loading-border: #374151;
  --scroll-to-top-bg: #1f2937;
  --tweet-card-bg: #0f172a;
  --tweet-card-border: #1e293b;
  --tweet-card-bookmark-border: #9ca3af;
  --tweet-card-bookmark-bg: #111827;
  --tweet-card-bookmark-stroke: #9ca3af;
  --tweet-card-bookmark-hover-bg: #1e293b;
  --tweet-card-bookmark-bookmarked-bg: #374151;
  --footer-banner-bg: #1f2937;
  --footer-banner-text: #fff;
  --about-close-button-bg: #e5e7eb;
  --about-close-button-text: #111827;
  --about-close-button-border: #9ca3af;
  --note-card-dot-active-bg: #2563eb;
  --highlight-bg: #40566b;
  --highlight-text: #e5e7eb;
  --embed-error-text: #9ca3af;
  --no-bookmarks-text: #9ca3af;
  --no-bookmarks-desc-text: #9ca3af;
  --status-legend-item-text: #9ca3af;
  --search-pill-border: #374151;
  --search-pill-bg: #2563eb;
  --search-pill-text: #ffffff;
  --bookmark-pill-bg: #ef4444;
  --bookmark-pill-text: #ffffff;
  --tab-button-hover-bg: rgba(59, 130, 246, 0.1);
  --tab-button-hover-text: #93c5fd;
  --tab-button-active-border: rgba(255,255,255,0.12);
  --load-more-text: #ffffff;
  --tweet-card-date-bg: #ef4444;
  --tweet-card-date-text: #ffffff;
  --skeleton-bg: linear-gradient(180deg, rgba(31,41,55,0.6), rgba(55,65,81,0.6));
  --skeleton-bar-bg: linear-gradient(90deg, rgba(55,65,81,0.6), rgba(31,41,55,0.5));
  --bookmark-expand-border: var(--pico-muted-border-color);
  --group-addon-bg: #1e293b;
  --group-addon-text-color: #9ca3af;
  --group-addon-mobile-text-color: #9ca3af;
  --pico-error-color: #f87171;
  --status-helpful-bg: #2ca02c;
  --status-not-helpful-bg: #ef4444;
  --status-needs-rating-bg: #fb8c00;
  --status-needs-rating-text: #ffffff;
  --status-unknown-bg: #ceb2ff;
  --status-default-bg: #9ca3af;
  --status-default-text: #111827;
  --status-icon-visible-color: #22c55e;
  --status-icon-needs-rating-color: #f97316;
  --status-icon-not-helpful-color: #ef4444;
}

/* Dark theme adjustments for topMenu links */
[data-theme="dark"] .topMenu .menu-link {
  color: #fff;
}
[data-theme="dark"] .topMenu .menu-link:hover {
  background: var(--tab-button-hover-bg); /* Lighter blue translucent background */
  border-color: var(--pico-muted-border-color); /* Darker border */
  color: #fff; 
}

/* Dark theme adjustments for bookmark action buttons */
[data-theme="dark"] .bookmark-actions-right button.primary.outline {
  color: #fff;  
  border-color: #fff;  
}
[data-theme="dark"] .bookmark-actions-right button.primary.outline:hover {
  background: var(--tab-button-hover-bg);  
  color: #fff;  
}

[data-theme="dark"] .bookmark-actions-right button.secondary.outline {
  color: #fff; /* Muted gray text */
  border-color: #fff; /* Muted gray border */
}
[data-theme="dark"] .bookmark-actions-right button.secondary.outline:hover {
  background: rgba(156, 163, 175, 0.1); /* Muted gray translucent background */
  color: #fff; /* Muted gray text */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  font-size: 14px;
}

.hidden { display: none !important; }
.sr-only,
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.show-flex { display: flex !important; }
.show-inline-flex { display: inline-flex !important; }
.show-grid { display: grid !important; }
.show-block { display: block !important; }

.container-fluid {
  width: min(1260px, 96vw);
  margin-inline: auto;
  padding: 1.25rem 1rem 2rem;
}

.mainHeader {
  background: var(--pico-card-background-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--pico-muted-border-color);
  padding: 1rem;
  margin-top: 1rem;
}

/* Reporter guide icons */
.steps .guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--guide-icon-size);
  height: var(--guide-icon-size);
  margin-right: 0.6rem;
  font-size: var(--guide-icon-font-size);
  color: #fff;
  border-radius: 9999px;
  box-shadow: var(--guide-icon-shadow);
  vertical-align: middle;
}
.steps { list-style: none; padding-left: 0; margin-left: 0; }
.steps .step { margin-bottom: 1rem; position: relative; padding-left: calc(var(--guide-icon-size) + 12px); }
.steps .step > strong { display: block; }
.steps .guide-icon { position: absolute; left: 0; top: 6px; }
/* Ensure nested lists align with the step text (not with the icon) */
.steps .step ul { margin-left: 0; padding-left: 1.05em; }
.steps .step-search .guide-icon { background: var(--guide-icon-bg-search); }
.steps .step-browse .guide-icon { background: var(--guide-icon-bg-browse); }
.steps .step-status .guide-icon { background: var(--guide-icon-bg-status); }
.steps .step-bookmark .guide-icon { background: var(--guide-icon-bg-bookmark); }
.steps .step-export .guide-icon { background: var(--guide-icon-bg-export); }
/* Help page additions */
.steps .step-open .guide-icon { background: var(--guide-icon-bg-open); }
.steps .step-filters .guide-icon { background: var(--guide-icon-bg-browse); }
.steps .step-explore .guide-icon { background: var(--guide-icon-bg-explore); }

/* Dark theme variants */
[data-theme="dark"] .steps .guide-icon { box-shadow: none; }
[data-theme="dark"] .steps .step-search .guide-icon { background: #1e40af; }
[data-theme="dark"] .steps .step-browse .guide-icon { background: #0891b2; }
[data-theme="dark"] .steps .step-status .guide-icon { background: #b45309; }
[data-theme="dark"] .steps .step-bookmark .guide-icon { background: #dc2626; }
[data-theme="dark"] .steps .step-export .guide-icon { background: #16a34a; }
[data-theme="dark"] .steps .step-open .guide-icon { background: #6d28d9; }
[data-theme="dark"] .steps .step-filters .guide-icon { background: #0891b2; }
[data-theme="dark"] .steps .step-explore .guide-icon { background: #3b82f6; }

/* Responsive tweaks for small screens */
@media (max-width: 480px) {
  :root { --guide-icon-size: 28px; --guide-icon-font-size: 14px; }
  .steps .guide-icon { margin-right: 0.45rem; position: absolute; top: 6px; }
  .steps .step { padding-left: calc(var(--guide-icon-size) + 8px); }
}

/* Header */
.custom-nav {
  margin: 18px auto;
  padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--pico-card-background-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--pico-muted-border-color);
}
.custom-nav p { margin: 4px 0 0 25px; color: var(--muted); font-size: 14px; }
.custom-nav a { color: var(--pico-primary); text-decoration: none; font-weight: 600; }
.topMenu { display: flex; gap: 10px; align-items: center; }
.menu-link {
  background: transparent;
  color: var(--pico-primary);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: var(--pico-border-radius);
  text-decoration: none;
  font-weight: 600;
}
.menu-link:hover { background: rgba(37,99,235,0.08); border-color: var(--pico-muted-border-color); }

/* About modal */
.about-modal {
  position: fixed; /* Change to fixed to allow for transitions */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* Start slightly smaller and off-center */
  opacity: 0;
  visibility: hidden; /* Hidden by default */
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  padding: 18px;
  margin: 0 auto; /* Remove margin-bottom to avoid interference */
  max-width: 1200px;
  width: calc(100% - 36px); /* Make modal responsive */
  max-height: calc(100vh - 36px); /* Prevent modal from overflowing viewport */
  overflow-y: auto; /* Enable scrolling for content */
  transition: all 0.3s ease-out; /* Smooth transition for all properties */
  z-index: 1000; /* Ensure it's above other content */
  box-sizing: border-box; /* Include padding in width/height */
}
.about-modal.open {
  transform: translate(-50%, -50%) scale(1); /* Return to original size and center */
  opacity: 1;
  visibility: visible; /* Make visible */
}

.stats-attached-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Fill full viewport height */
  max-height: 100%; /* Ensure it can take full height */
  z-index: 1500;
  background: var(--pico-card-background-color);
  border-top: 1px solid var(--pico-muted-border-color);
  border-radius: 0; /* Remove rounded corners to fill full page */
  box-shadow: var(--card-shadow);
  transform: translateY(100%); /* Start off-screen below */
  transition: transform 0.3s ease-out;
  display: flex; /* Use flex to manage content inside */
  flex-direction: column;
  padding: 18px; /* Padding for content */
  box-sizing: border-box; /* Include padding in width/height */
  visibility: hidden; /* Hidden by default for screen readers and initial load */
}

.stats-attached-modal.open {
  transform: translateY(0); /* Slide into view */
  visibility: visible; /* Make visible when open */
}

/* Adjust close button for attached modal */
.stats-attached-modal .about-close-button {
  top: 10px;
  right: 10px;
  z-index: 1501; /* Ensure it's above modal content */
  position: absolute;
}

/* Ensure content scrolls if too long */
.stats-attached-modal #statsContent {
  flex-grow: 1; /* Allow content to take available space */
  overflow-y: auto; /* Enable scrolling for content */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding-right: 10px; /* Space for scrollbar */
}
.about-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--about-close-button-border);
  background: var(--about-close-button-bg);
  color: var(--about-close-button-text);
  font-size: 18px;
  cursor: pointer;
  border-radius: var(--pico-border-radius);
  padding: 4px 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.external-link-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.external-link-modal .modal-content {
  position: relative;
  background: var(--pico-card-background-color);
  color: var(--pico-card-color);
  padding: 2rem;
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  max-width: 480px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--pico-muted-border-color);
}

.external-link-modal p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.external-link-modal .modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}


/* Tabs */
.tabs-wrapper {
  width: 100%;
  margin: 12px auto 8px;
  padding: 0;
  box-sizing: border-box;
}
.tab-header {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  background: var(--tab-header-bg);
  border: 1px solid var(--tab-header-border);
  border-radius: var(--pico-border-radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 6px;
}
.tab-button {
  flex: 1 1 220px;
  min-width: 180px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--pico-border-radius);
  border: 1px solid;
  background: transparent;
  color: var(--tab-button-text);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 160ms ease;
}
.tab-button#tabSearchBtn {
  background: transparent;
  color: var(--tab-button-text);
  border: 1px solid;
  box-shadow: none;
}
.tab-button#tabSearchBtn:hover {
  background: var(--tab-button-hover-bg);
  color: var(--tab-button-hover-text);
}
.tab-button#tabSearchBtn[aria-pressed="true"] {
  background: var(--tab-button-active-bg);
  color: var(--tab-button-active-text);
  box-shadow: 0 14px 26px rgba(17,24,39,0.18);
}
.tab-button:hover {
  transform: translateY(-1px);
  background: var(--tab-button-hover-bg);
  color: var(--tab-button-hover-text);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.12);
}
.tab-button[aria-pressed="true"], .tab-button.active {
  background: var(--tab-button-active-bg);
  box-shadow: 0 16px 34px rgba(31,41,55,0.22);
  border-color: var(--tab-button-active-border);
  color: var(--tab-button-active-text);
  transform: translateY(-1px);
}
.tab-button:focus-visible {
  outline: 3px solid rgba(37,99,235,0.14);
  outline-offset: 2px;
}
.tab-icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; }
.tab-label { display: inline-block; }
.tab-indicator { display: none !important; }
.tab-contents { margin-top: 12px; position: relative; }
.tab-content { display: none; opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
.tab-content.active { display: block; opacity: 1; transform: translateY(0); }

.search-pill {
  display: inline-block;
  min-width: 36px;
  padding: 4px 8px;
  background: var(--search-pill-bg);
  border-radius: var(--pico-border-radius);
  font-weight: 700;
  color: var(--search-pill-text);
  margin-left: 8px;
  border: 1px solid var(--search-pill-border);
}
.bookmark-pill {
  background: var(--bookmark-pill-bg);
  color: var(--bookmark-pill-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  margin-left: 6px;
  box-shadow: 0 4px 10px rgba(255,111,97,0.12);
}

/* --- LearnMore (About modal) small visual tokens (labels, icons, colors) --- */
.learn-more { padding: 0.25rem 0.5rem; }

/* At a Glance callout box */
.at-a-glance-box {
  background: var(--pico-card-background-color);
  border: 2px solid var(--pico-primary);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.at-a-glance-box h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: var(--pico-primary);
}
.at-a-glance-box p {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.at-a-glance-box .highlight-visible {
  color: var(--status-icon-visible-color, #22c55e);
  font-size: 1.15em;
}
.at-a-glance-box .highlight-not-visible {
  color: var(--pico-error-color, #ef4444);
  font-size: 1.15em;
}
.at-a-glance-box .at-a-glance-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Project byline with logo */
.project-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--pico-card-background-color);
  border-radius: 8px;
  border-left: 3px solid var(--pico-primary);
}
.project-byline .byline-text {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}
.project-byline .byline-logo {
  display: inline-flex;
  align-items: center;
}
.project-byline .byline-logo img {
  height: 28px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  transition: opacity 0.2s;
}
.project-byline .byline-logo:hover img {
  opacity: 0.8;
}
.project-byline .byline-link {
  font-weight: 600;
  color: var(--pico-primary);
  text-decoration: none;
}
.project-byline .byline-link:hover {
  text-decoration: underline;
}

.lm-heading { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 0.5rem; }
.lm-heading-icon { color: var(--pico-primary); font-size: 1.25rem; display: inline-flex; }
.lm-labels { list-style: none; padding-left: 0; display: flex; gap: 12px; margin: 0.5rem 0 1rem; align-items: center; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.lm-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 14px; font-weight: 600; font-size: 0.95rem; color: #fff; }
.lm-label i { font-size: 1rem; opacity: 0.95; }
.lm-label--factual { background: var(--pico-error-color); color: white; }
.lm-label--manipulated { background: var(--status-unknown-bg); color: white; }
.lm-label--missing { background: var(--status-needs-rating-bg); color: #0f172a; }
.lm-label--outdated { background: var(--pico-secondary); color: #fff; }
.lm-label--unverified { background: var(--pico-primary); color: #fff; }
.lm-label--satire { background: #06b6d4; color: #042235; }
.lm-label--other { background: var(--group-addon-bg); color: var(--group-addon-text-color); border: 1px solid var(--pico-muted-border-color); }

.lm-visibility { list-style: square; list-style-position: outside; padding-left: 1.25rem; margin: 0.25rem 0 1rem; display: flex; gap: 12px; flex-direction: column; }
.lm-visibility li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.lm-status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 1rem; white-space: nowrap; box-shadow: 0 6px 8px rgba(0,0,0,0.06); }
.lm-status-pill i { font-size: 1rem; }
.lm-status-pill--visible { background: var(--status-icon-visible-color); color: #fff; }
.lm-status-pill--unseen { background: #9ca3af; color: #fff; }
.lm-status-desc { color: var(--muted); font-weight: 600; line-height: 1.35; }

.lm-criteria { list-style: none; padding-left: 0; margin: 0; }
.lm-criteria li { margin: 10px 0; display: grid; grid-template-columns: 44px auto; gap: 12px; align-items: start; }
.lm-criteria-icon { display: flex; justify-content: center; align-items: flex-start; }
.lm-criteria-icon i { font-size: 20px; color: var(--pico-primary); }
.lm-criteria-body { display: flex; flex-direction: column; }
.lm-criteria-title { font-weight: 800; font-size: 1.05rem; line-height: 1.05; color: var(--note-card-title-color); margin-bottom: 6px; }
.lm-criteria-desc { color: var(--muted); font-weight: 600; line-height: 1.45; }

/* Small responsive tweaks */
@media (max-width: 680px) {
  .lm-labels { gap: 10px; }
  .lm-heading { font-size: 1rem; }
}

/* Ensure the label badges appear as inline blocks so they don't stretch in the flex container */
.lm-label { display: inline-flex; min-width: 120px; justify-content: center; text-align: center; white-space: nowrap; }

/* Filter bar */
.compact-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pico-spacing, 1rem);
  padding: 0.75rem;
  margin: 0 0 1rem 0;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: calc(var(--pico-border-radius) * 0.2);
  box-shadow: var(--card-shadow);
}

/* Make filter items just flex containers, no decoration */
.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Style the actual form elements */
.filter-item select,
.filter-item input {
  font-size: 14px;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  padding: 8px 12px;
  height: auto; /* Let padding define height */
}

/* Remove weird default styles from inputs inside the bar */
.compact-filters-bar input, .compact-filters-bar select {
    box-shadow: none;
    margin-bottom: 0;
}
.compact-filters-bar input:focus, .compact-filters-bar select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--pico-primary-focus); /* Pico-style focus */
}

/* Specifics for different filter types */
.type-item select {
  min-width: 160px;
}

.date-group {
  flex: 1 1 320px;
}
.date-group input[type="date"] {
  width: 150px;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--filter-label-color);
}

.search-bar {
  flex: 1 1 360px;
}
.search-bar input {
  width: 100%;
}

.compact-btn {
  margin-left: auto;
}

.filter-messages { margin-top: 6px; }
.search-message { color: var(--pico-error-color); font-weight: 600; }

/* Reset button styling - make it orange to stand out */
#showAllButton {
  background: #ff8c00 !important;
  border-color: #ff8c00 !important;
  color: #ffffff !important;
  font-weight: 600;
}

#showAllButton:hover {
  background: #e67e00 !important;
  border-color: #e67e00 !important;
}

#showAllButton:active {
  background: #cc6f00 !important;
  border-color: #cc6f00 !important;
}

/* Card grids & chart containers */
.grid {
  max-width: 1200px;
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}
.grid.cards { gap: 14px; }
.cards.pico-gap { gap: 1rem; }
.wide-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-block { /* legacy hook; Pico now provides card styling on <article> */
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1rem;
}
.chart-figure { margin: 0; }
.chart-footnote {
  margin: 8px 0 0 0;
  padding: 6px 8px;
  background: var(--pico-muted-border-color);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.chart-footnote small {
  display: block;
}
.chart-footnote strong {
  color: var(--pico-primary);
}
.chart-area canvas,
.chart-area .chart-canvas,
#timeSeriesChart canvas {
  width: 100% !important;
  height: var(--chart-height);
  aspect-ratio: 4 / 3;
  display: block;
}
#statusChart {
  width: 100% !important;
  height: var(--chart-height);
  aspect-ratio: 1 / 1;
  display: block;
}

/* Notes Section - container for community notes grid */
.notes-section {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  margin: 18px 0;
}
.notes-section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.notes-section__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.notes-section__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notes-section__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pico-h3-color);
}
.notes-section__count {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--pico-muted-border-color);
  padding: 2px 8px;
  border-radius: 999px;
}
.notes-section__bulk-bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}
.notes-section__bulk-bookmark.is-active {
  background: var(--bookmark-pill-bg);
  border-color: var(--bookmark-pill-bg);
  color: var(--bookmark-pill-text);
}
.notes-section__bulk-bookmark.is-active:hover,
.notes-section__bulk-bookmark.is-active:focus {
  background: var(--bookmark-pill-bg);
  border-color: var(--bookmark-pill-bg);
  color: var(--bookmark-pill-text);
  filter: brightness(1.04);
}

/* Status Filter - Checkbox-based approach */
.status-filter-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.status-filter-legend {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.status-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.status-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  margin: 0;
  padding: 0;
}
.status-checkbox input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.status-checkbox__label {
  font-weight: 600;
}

.status-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  margin: 0;
  padding: 0;
}
.status-radio input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.status-radio__label {
  font-weight: 600;
}
/* Status label colors matching charts.js STATUS_COLOR_MAP */
.status-color-proposed { color: #7c3aedc9; }
.status-color-needs-ratings { color: #fb8c00; }
.status-color-not-helpful { color: #ef4444; }
.status-color-helpful { color: #2ca02c; }
.status-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  margin-left: 2px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.status-info-btn:hover,
.status-info-btn:focus {
  color: var(--pico-primary);
  background: var(--pico-muted-border-color);
}
.status-info-btn i {
  font-size: 14px;
}

/* Status info tooltip - shown on click/tap */
.status-info-tooltip {
  display: none;
  padding: 10px 12px;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.status-info-tooltip.visible {
  display: block;
}

.notes-section #tweetGrid {
  margin: 0;
  max-width: 100%;
}
.notes-section .load-more {
  margin-top: 1rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: var(--pico-spacing);
  align-items: stretch;
}
.charts-grid article {
  display: block;
  height: 100%;
}
.charts-grid figure {
  height: 100%;
}
.charts-grid canvas {
  max-height: var(--chart-height);
}
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}
.status-chart-wrap {
  display: flex;
  gap: var(--pico-spacing);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.status-chart-wrap canvas {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 480px;
  height: var(--chart-height);
  aspect-ratio: 4 / 3;
}
.status-chart-wrap .status-bar-legend {
  flex: 0 0 200px;
  max-width: 260px;
  align-self: flex-start;
}
.chart-no-data { text-align: center; padding: 26px 12px; color: var(--muted); font-size: 14px; }

.total-count, .chart-title {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--total-count-color);
  text-align: center;
}

/* Chart Header with Info Icon (generic) */
.chart-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.chart-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}
.chart-info-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--pico-card-background-color);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.chart-info:hover .chart-info-icon {
  opacity: 1;
}
.chart-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  width: 220px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--tooltip-bg);
}
.chart-info:hover .chart-tooltip,
.chart-info:focus .chart-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Top Words / Tag Cloud */
.top-words-wrap {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  justify-content: center;
}
.top-words-wrap .keyword-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--keyword-tag-bg);
  color: var(--keyword-tag-text);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, color 0.15s;
  border: 1px solid var(--keyword-tag-border);
  white-space: nowrap;
}
.top-words-wrap .keyword-tag:hover,
.top-words-wrap .keyword-tag:focus {
  background: var(--pico-primary);
  color: #fff;
  border-color: var(--pico-primary);
  transform: scale(1.05);
  outline: none;
}
.top-words-wrap .keyword-tag .tag-count {
  opacity: 0.7;
  font-size: 10px;
  margin-left: 4px;
}
.top-words-wrap .keyword-tag.active .tag-count {
  display: none;
}
.top-words-wrap .keyword-tag .tag-close {
  display: none;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.top-words-wrap .keyword-tag.active .tag-close {
  display: inline;
}
.top-words-wrap .keyword-tag .tag-close:hover {
  opacity: 1;
}
.top-words-wrap .keyword-tag.active {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.top-words-loading {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  width: 100%;
}
.keyword-count {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}
.top-words-article {
  min-width: 200px;
}

/* Top Words Header with Info Icon */
.top-words-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.top-words-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}
.top-words-info-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--pico-card-background-color);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.top-words-info:hover .top-words-info-icon {
  opacity: 1;
}
.top-words-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  width: 220px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.top-words-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--tooltip-bg);
}
.top-words-info:hover .top-words-tooltip,
.top-words-info:focus .top-words-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Top Words Pagination */
.top-words-pagination {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 6px;
  border-top: 1px solid var(--pico-muted-border-color);
  margin-top: 8px;
}
.top-words-pagination button {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--pico-muted-border-color);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-weight: 500;
  margin: 0;
  vertical-align: middle;
}
.top-words-pagination button:hover:not(:disabled) {
  color: var(--pico-primary);
  border-color: var(--pico-primary);
}
.top-words-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.top-words-pagination .page-info {
  font-size: 12px;
  color: var(--muted);
  min-width: 70px;
  text-align: center;
  margin: 0;
  vertical-align: middle;
}

/* Loading & buttons */
.loading-container { position: relative; min-height: 48px; display: none; align-items: center; justify-content: center; color: var(--muted); }
.loading-container.show-flex { display: inline-flex !important; }
.loading {
  width: 38px;
  height: 38px;
  border: 4px solid var(--loading-border);
  border-top: 4px solid var(--pico-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.load-more {
  display: block;
  margin: 14px auto 40px;
  background: var(--pico-primary);
  color: var(--load-more-text);
  padding: 10px 16px;
  border: none;
  border-radius: var(--pico-border-radius);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37,99,235,0.08);
}
.load-more:active { transform: translateY(1px); }
.scroll-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2500;
  background: var(--scroll-to-top-bg);
  color: var(--text);
  border: none;
  padding: 8px 10px;
  border-radius: var(--pico-border-radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
}
.scroll-to-top:hover { color: var(--pico-primary); transform: translateY(-3px); }
.scroll-to-top.show { display: flex; }

/* Status legend */
.status-bar-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  font-size: 13px;
  color: var(--text);
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
  text-align: left;
  padding-left: 4px;
}
.status-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--status-legend-item-text); }
.meta-item { font-weight: bold; }
.status-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
/* Tooltip: hide text by default, reveal on hover/focus */
.tooltip-text { display: none; }
.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus-within .tooltip-text {
  display: block;
}

/* Center embedded spinner and footer link */
.embed-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.embed-section .loading {
  margin: 0 auto;
}
.tweet-card__footer {
  text-align: center;
}

.footer-banner {
  background-color: var(--footer-banner-bg);
  color: var(--footer-banner-text);
  padding: 10px 15px;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo, disclaimer, button */
  gap: 15px;
  align-items: center;
}

.footer-banner a.hero-img {
  justify-self: start; /* Align logo to the left */
}

.footer-disclaimer {
  text-align: center; /* Center disclaimer text */
}

.footer-banner p {
  color: inherit;
  margin: 0; /* Remove default paragraph margin for banners */
  line-height: 1.4; /* Adjust line height for better readability */
}

.footer-stats-link {
  justify-self: end; /* Align stats button to the right */
}

.footer-banner .menu-link {
  color: var(--footer-banner-text); /* Ensure the link color matches footer text */
  border-color: var(--footer-banner-bg); /* Match border to background */
  background: transparent;
}

.footer-banner .menu-link:hover {
  background: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--footer-banner-text); /* Keep text color consistent on hover */
}

body.modal-open {
  overflow: hidden;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--pico-border-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  z-index: 2000;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Bookmark actions */
.bookmark-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}

.bookmark-actions > #clearBookmarksButton { /* Target the clear button */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 16px; /* Consistent padding */
  box-sizing: border-box; /* Include padding in width calculation */
}

.experimental-notice { /* Reposition experimental notice */
  margin-left: unset; /* Remove auto margin */
  white-space: nowrap; /* Prevent wrapping */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em; /* Keep original font size */
  color: var(--muted); /* Keep original muted color */
  display: flex; /* Make it a flex item */
  align-items: center; /* Vertically align with buttons */
}

.bookmark-actions-right { /* Container for download/print buttons */
  display: flex; /* Keep internal flex layout */
  gap: 10px;
  flex-wrap: nowrap; /* Prevent wrapping by default on desktop for these buttons */
  justify-content: flex-end; /* Align buttons to the right within their column */
  align-items: center; /* Align items vertically (experimental notice and buttons) */
  width: auto; /* Let grid manage width */
  margin-left: auto;
}

/* Individual button styling within bookmark actions */
.bookmark-actions-right > button { /* Targets download and print buttons */
  flex: 1; /* Allow buttons to grow and shrink, sharing available space */
  min-width: unset; /* Remove min-width constraint */
  max-width: unset; /* Remove max-width constraint */
  display: flex; /* Allow content (icon+text) to be flexed */
  align-items: center; /* Center icon and text vertically */
  justify-content: center; /* Center icon and text horizontally */
  gap: 8px; /* Space between icon and text */
  white-space: nowrap; /* Prevent text wrapping within button */
  padding: 10px 16px; /* Consistent padding */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Styling for the enabled Clear All Bookmarks button */
button.is-clear-enabled {
  background: var(--bookmark-pill-bg);
  color: var(--bookmark-pill-text);
  border: 1px solid var(--bookmark-pill-bg);
  /* padding-left: 1rem;
  padding-right: 1rem; Removed as padding is now in #clearBookmarksButton */
  box-shadow: 0 4px 10px rgba(255,111,97,0.12);
  display: flex;
  align-items: center;
  justify-content: center; /* Center content of the button */
  gap: 8px;
}

button.is-clear-enabled:hover {
  background: var(--bookmark-pill-bg);
  filter: brightness(1.05); /* Slightly brighter on hover */
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255,111,97,0.18);
}

button.is-clear-enabled:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255,111,97,0.12);
}

/* Style for disabled clear bookmarks button */
button#clearBookmarksButton[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  background-color: var(--pico-secondary);
  border-color: var(--pico-secondary);
  color: var(--pico-card-background-color);
  box-shadow: none;
}

/* Experimental Notice Styling */
.experimental-notice {
  font-size: 0.85em;
  color: var(--muted); /* Use a muted color defined in variables */
  padding: 0.5em 0;
  margin-left: auto; /* Push it to the right */
  align-self: center; /* Vertically align in flex container */
  white-space: nowrap; /* Prevent wrapping */
  font-weight: 600;
  text-transform: uppercase;
}


/* Skeletons */
.chart-skeleton {
  background: var(--skeleton-bg);
  border-radius: var(--pico-border-radius);
  padding: 12px;
  min-height: var(--chart-height);
  display: flex;
  align-items: center;
  justify-content: center;
}
.skeleton-chart-bars { display: flex; gap: 10px; align-items: end; width: 100%; height: 100%; }
.skeleton-bar {
  flex: 1 1 0;
  background: var(--skeleton-bar-bg);
  border-radius: var(--pico-border-radius);
  height: 40%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}
@keyframes skeletonPulse { 0% { opacity: 0.9; } 50% { opacity: 0.6; } 100% { opacity: 0.9; } }

/* Tweet cards */
.tweet-card {
  position: relative;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(31,41,55,0.08);
  border-radius: var(--pico-border-radius);
  background: var(--tweet-card-bg);
  border: 1px solid var(--tweet-card-border);
  padding: 0;
}
.tweet-card.is-bookmarked {
  border-color: var(--pico-primary);
  box-shadow: 0 6px 22px rgba(37,99,235,0.16);
}
.tweet-card__header { display: flex; align-items: center; padding: 14px 18px 6px 18px; gap: 12px; }
.tweet-card__header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tweet-card__title { color: var(--pico-primary); font-weight: 700; font-size: 16px; line-height: 1; }
.tweet-card__date { padding: 6px 12px; background-color: var(--tweet-card-date-bg); color: var(--tweet-card-date-text); font-weight: bold; border-radius: var(--pico-border-radius); font-size: 13px; }

/* Style for date-text span */
.date-text {
  color: var(--note-card-icon-color);
}

/* Adjust Bookmark Button to fit header */
.tweet-card__bookmark-button {
  width: 40px;
  height: 40px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tweet-card__bookmark-button svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: var(--tweet-card-bookmark-stroke);
  fill: var(--note-card-bg);
  pointer-events: none;
}
.tweet-card__bookmark-button:hover {
  background: rgba(0,0,0,0.05);
  color: var(--pico-primary);
}
.tweet-card__bookmark-button.is-bookmarked {
  border-color: var(--pico-primary);
  background: var(--tweet-card-bookmark-bookmarked-bg);
  color: var(--pico-primary);
}
.tweet-card__bookmark-button.is-bookmarked svg {
  stroke: var(--pico-primary);
  fill: var(--pico-primary);
}
.tweet-card__bookmark-button[aria-pressed="true"] {
  border-color: var(--bookmark-pill-bg);
  background: var(--tweet-card-bookmark-bookmarked-bg);
  color: var(--bookmark-pill-bg);
}
.tweet-card__bookmark-button[aria-pressed="true"] svg {
  stroke: var(--bookmark-pill-bg);
  fill: var(--bookmark-pill-bg);
}
.note-card {
  background: var(--note-card-bg);
  color: var(--note-card-text-color);
  border: 1px solid var(--note-card-border-color);
}
.note-card__context {
  padding: 12px 12px 0 12px;
  background: var(--note-card-context-bg);
  border-bottom: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius) var(--pico-border-radius) 0 0;
}
.note-card__context a {
  color: var(--note-card-context-link-color);
}
.note-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0;
  max-height: 25px;
}
/* NEW: Visual header for the note body */
.note-card__meta {
  background: var(--note-card-note-bg);
  padding: 10px 12px;
  /* Rounded top corners, square bottom to connect */
  border-radius: var(--pico-border-radius) var(--pico-border-radius) 0 0;
  margin-bottom: 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92em;
  color: var(--note-card-meta-text);
  border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
}
.note-card__icon .status-icon { color: var(--note-card-icon-color); }
.note-card__title {
  font-size: var(--note-card-title-size);
  font-weight: 700;
  color: var(--text);
  display: flex; /* Enable flexbox for horizontal alignment */
  align-items: center; /* Vertically center items */
  justify-content: space-between; /* Space out items: buttons at ends, text in middle */
  gap: 8px; /* Add some space between items */
}
.note-card__body .note {
  background: var(--note-card-note-bg);
  padding: 12px;
  border-radius: 0 0 var(--pico-border-radius) var(--pico-border-radius);
  color: var(--note-card-text-color);
  line-height: 1.5;
  font-weight: 400;
  min-height: 120px;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}
.note-card__body .note.expanded {
  max-height: none;
}
.note-card__body .note.has-overflow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--note-card-note-bg));
  pointer-events: none;
}
.note-card__body .note.expanded.has-overflow::after {
  display: none;
}
.note-expand-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 6px 12px;
  margin-top: 4px;
  background: var(--note-card-note-bg);
  border: none;
  border-radius: var(--pico-border-radius);
  color: var(--note-card-text-color);
  font-size: 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.note-expand-btn:hover {
  opacity: 1;
}
.note-expand-btn.visible {
  display: flex;
}
.note-expand-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}
.note-expand-btn.expanded i {
  transform: rotate(180deg);
}
.note-card__body {
  position: relative;
}
.note-card__slides { position: relative; }
.note-card__slide { display: none; }
.note-card__slide.active {
  display: flex;
  flex-direction: column;
}
.note-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--status-default-text);
  background: var(--status-default-bg);
  border: 1px solid rgba(0,0,0,0.12);
  margin-top: 10px;
  align-self: flex-end;
}
.note-card__status-text { color: inherit; font-weight: bold; }
.note-card__status.status-currently_rated_helpful { background: var(--status-helpful-bg); }
.note-card__status.status-currently_rated_not_helpful { background: var(--status-not-helpful-bg); }
.note-card__status.status-needs_more_ratings { background: var(--status-needs-rating-bg); color: var(--status-needs-rating-text); }
.note-card__status.status-unknown { background: var(--status-unknown-bg); }
.note-card__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.note-card__nav-dots {
  display: flex;
  gap: 5px;
}

.note-card__nav-btn {
  border: 1px solid var(--note-card-nav-btn-border-color);
  background: var(--note-card-nav-btn-bg);
  color: var(--note-card-nav-btn-text-color);
  border-radius: var(--pico-border-radius);
  padding: 2px 6px; /* Reduced padding */
  line-height: 1; /* Ensure text sits nicely */
  margin: 0; /* Remove any default margin */
  cursor: pointer;
  display: flex; /* Make it a flex container */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
}
.note-card__nav-btn:hover {
  background: var(--tab-button-hover-bg);
}
.note-card__nav-btn:focus-visible {
  outline: 2px solid var(--pico-primary-focus);
  outline-offset: 1px;
}
.note-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--note-card-dot-border-color);
  background: var(--bg);
  padding: 0;
}
.note-card__dot.active {
  background: var(--note-card-dot-active-bg);
  border-color: var(--note-card-dot-active-bg);
}
.note-card__embed {
  background: var(--note-card-embed-bg); 
  padding: 0px 12px 0 12px;
  border-radius: 0 0 var(--pico-border-radius) var(--pico-border-radius);
}
.embed-error { padding: 18px; color: var(--embed-error-text); font-style: italic; }
.highlight { background-color: var(--highlight-bg); color: var(--highlight-text); }
.bookmark-expand { cursor: pointer; text-align: center; padding: 12px 0; border-top: 1px solid var(--bookmark-expand-border); }



@media (max-width: 640px) {
  :root { --chart-height: 120px; --status-chart-height: 100px; }
  .lm-visibility li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
  .tabs-wrapper { max-width: 100%; margin: auto; padding: 0 12px; }
  .tab-header { justify-content: center; gap: 8px; padding: 6px; }
  .tab-button { flex: 1 1 100%; min-width: 0; max-width: 100%; justify-content: center; }
  .grid { margin-left: 12px; margin-right: 12px; max-width: calc(100% - 24px); }
  #leftSidebar, #tweetGrid, #clippedNotesContainer {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .chart-skeleton, .skeleton-chart-bars { min-height: 200px; height: 200px; }
  
  /* Notes section mobile adjustments - match grid margins */
  .notes-section {
    margin: 12px 0;
    padding: 0.75rem;
    box-sizing: border-box;
  }
  .notes-section__header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .notes-section__header-top {
    align-items: stretch;
    flex-direction: column;
  }
  .notes-section__title {
    font-size: 1rem;
  }
  .notes-section__bulk-bookmark {
    margin-left: 0;
    width: 100%;
  }
  
  /* Status filter checkboxes mobile - stack vertically */
  .status-filter-options {
    flex-direction: column;
    gap: 8px;
  }
  .status-checkbox {
    font-size: 13px;
  }
  .status-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .status-radio {
    font-size: 13px;
  }
  .status-radio input[type="radio"] {
    width: 16px;
    height: 16px;
  }

  .status-info-btn {
    width: 24px;
    height: 24px;
  }
  .status-info-tooltip {
    font-size: 12px;
  }
}

/* Make the visibility pill + description stack on narrow/mobile screens */
@media (max-width: 480px) {
  .lm-visibility { padding-left: 0.25rem; }
  .lm-visibility li { flex-direction: column; align-items: flex-start; }
  .lm-status-pill { width: 100%; justify-content: flex-start; padding-left: 12px; padding-right: 12px; box-sizing: border-box; }
  .lm-status-pill i { margin-right: 8px; }
  .lm-status-desc { margin-top: 10px; margin-left: 0; }
  .lm-criteria li { grid-template-columns: 1fr; }
  .lm-criteria-key { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 8px; }
  .lm-criteria-title { font-size: 1rem; }
  .lm-criteria-desc { margin-left: 0; }
}

/* Style external links in notes */
.note-external-link {
  color: var(--pico-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Make spans inside a group look like gray labels */
.compact-filters-bar fieldset[role="group"] .group-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background-color: var(--group-addon-bg);
  color: var(--group-addon-text-color);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--pico-muted-border-color);
  
  /* Fix borders to merge with inputs */
  border-right: none; 
  margin: 0;
  white-space: nowrap;
}


@media print {
  @page {
    size: A4;
    margin: 1cm;
  }

  body {
    background: white !important;
    color: black !important;
    margin: 0;
    font-size: 9pt; /* Smaller base font size for print */
  }

  /* Hide everything by default */
  body * {
    visibility: hidden;
  }

  /* Show only the bookmarks grid and its contents */
  #clippedNotesGrid, #clippedNotesGrid * {
    visibility: visible;
  }

  #clippedNotesGrid {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  #clippedNotesGrid .grid {
      grid-template-columns: 1fr; /* Force single column layout */
      gap: 0;
  }

  .tweet-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #aaa !important;
    padding: 0.2cm;
    margin: 0;
    border-bottom: none;
  }
  #clippedNotesGrid .tweet-card:last-child {
      border-bottom: 1px solid #aaa !important;
  }

  .tweet-card__bookmark-button, .note-card__nav {
    display: none !important;
  }

  .note-card, .note-card__context, .note-card__body, .note-card__embed {
    padding: 0;
    margin: 0;
    background: white !important;
    color: black !important;
    border: none !important;
  }
  
  .note-card__header {
      padding: 0.1cm;
  }

  .note-card__title, .note-card__status-text, .note-card a, .tweet-card__date {
      color: black !important;
      font-size: 8pt;
  }
  
  /* Clean Note Text */
  .note-card__body .note {
    background: transparent; /* Remove gray box */
    padding: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
  }
  
  .note-card__embed {
    max-height: 15cm;
    overflow: hidden;
  }

  .note-card__status {
      background: white !important;
      border: 1px solid black !important;
      padding: 2px 4px;
      margin-top: 4px;
      color: black !important;
  }
  
.note-card__date {
      background: #eee !important;
      color: black !important;
      padding: 2px 4px;
  }
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

/* Mobile dropdown menu styles */
.mobile-dropdown-menu {
  display: flex; /* Default to horizontal on desktop */
  gap: 1px;
  align-items: center;
  line-height: 1.4;
}

.mobile-only {
  display: none !important; /* Hide toggle button on desktop */
}



@media (max-width: 768px) { /* Adjust breakpoint as needed */

  .compact-filters-bar h5.mobile-only {
    text-align: left;
    width: 100%; /* Ensure it takes full width */
    padding: 0.5rem 0.25rem; /* Add some padding */
    margin-bottom: 0.5rem; /* Space below the header */
  }

  .bookmark-actions {
    display: flex; /* Revert to flex for mobile */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center the stacked items */
    align-items: center; /* Center items horizontally */
    gap: 10px; /* Standard gap for stacked items */
  }

  .bookmark-actions > #clearBookmarksButton,
  .bookmark-actions-right,
  .experimental-notice {
    grid-column: unset; /* Remove grid placement */
    width: 100%; /* Take full width on mobile */
    margin: 0; /* Reset margins */
  }

  .bookmark-actions-right {
    flex-direction: column; /* Stack buttons inside this group too */
    justify-content: center;
    align-items: center;
  }
  .bookmark-actions-right > button {
    width: 100%; /* Full width for individual buttons */
    min-width: unset; /* Remove min-width constraint */
  }

  .experimental-notice {
    text-align: center; /* Center text on mobile */
    align-self: center; /* Vertically align in flex container */
  }

  .compact-filters-bar {
      flex-direction: column;
      align-items: stretch;
  }
  /* 1. Force the group to stack vertically */    
  .compact-filters-bar fieldset[role="group"] {
      flex-direction: column;
  }
  /* 2. Make every item full width and fix borders */
  .compact-filters-bar fieldset[role="group"] > * {
      width: 100% !important;
      margin: 0 !important;
      border-radius: 0 !important; /* Reset all corners to square first */    
      /* Layout logic: Restore right borders, remove bottom borders to merge stack */
      border-right-width: 1px !important; 
      border-bottom-width: 0 !important;
  }
  .compact-filters-bar fieldset[role="group"] button {
      width: 100%;
  }
  .date-group {
      flex-direction: column;
      align-items: stretch;
      gap: 0.25rem;
  }
  .date-group input[type="date"] {
      width: 100%;
  }
  .search-bar {
      flex-basis: auto;
  }
  .compact-btn {
      margin-left: 0;
      margin-top: 0.5rem;
  }

  /* Reduce height of form elements on mobile */
  .filter-item select,
  .filter-item input {
      padding-top: 4px;
      padding-bottom: 4px;
  }
  .tab-contents {
    background: transparent; /* Revert to transparent on mobile for space */
    border: none;
    box-shadow: none;
    padding: 0;
  }  

  .bookmark-actions {
    justify-content: center; /* Center items on mobile */
  }

  .bookmark-actions > button,
  .bookmark-actions-right > button {
    width: 100%; /* Full width on mobile */
    min-width: unset; /* Remove min-width constraint */
  }

  .bookmark-actions-right {
    width: 100%; /* Ensure the container takes full width to center its buttons */
    justify-content: center; /* Center buttons within this sub-container on mobile */
  }

  /* Keep the "From" and "To" text on mobile as bars */
  .compact-filters-bar fieldset[role="group"] .group-addon {
    width: 100%;
    border-right: 1px solid var(--pico-muted-border-color) !important; /* Restore border */
    border-bottom: 0;
    justify-content: flex-start; /* Left align text on mobile */
    height: 30px; /* Make it thin */
    color: var(--group-addon-mobile-text-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .topMenu {
    position: relative;
    display: flex; /* Allow positioning children */
    justify-content: flex-end; /* Push toggle to the right */
    width: 100%; /* Take full width to align content */
  }

  .mobile-dropdown-menu {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below the toggle button */
    right: 0;
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--card-shadow);
    z-index: 1000;
    min-width: 180px;
    padding: 10px 0;
  }

  .mobile-dropdown-menu.open {
    display: flex; /* Show when open */
  }

  .mobile-dropdown-menu .menu-link {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    justify-content: flex-start; /* Align text to left */
    border: none; /* Remove borders */
    border-radius: 0;
  }

  .mobile-dropdown-menu .menu-link:hover {
    background: var(--tab-button-hover-bg);
  }

  .mobile-only {
    display: inline-flex !important; /* Show toggle button on mobile */
    margin-left: auto; /* Push to the right */
  }

  /* Make the toggle visible again on mobile viewports (overrides ID rule above) */
  #mobileMenuToggle {
    display: inline-flex !important;
  }

  .topMenu > .menu-link:not(.mobile-only) { /* Hide desktop menu links that are not the toggle */
    display: none;
  }

  /* Responsive styles for footer banner */
  .footer-banner {
    grid-template-columns: 1fr; /* Stack items vertically */
    text-align: center; /* Center align all items */
  }

  .footer-banner a.hero-img,
  .footer-stats-link {
    justify-self: center; /* Center logo and button */
  }

  .footer-banner .footer-disclaimer {
    text-align: center; /* Ensure disclaimer is centered */
  }
}

/* Team Page specific styles */
.team-page {
  padding: 1.5rem;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  margin-top: 18px;
}

.team-page hgroup {
  margin-bottom: 1.5rem;
}

.team-page hgroup h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.team-page hgroup h3 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: normal;
  line-height: 1.6;
}

.team-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--pico-background-color);
  border-radius: var(--pico-border-radius);
  border: 1px solid var(--pico-muted-border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.team-member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--pico-primary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-member h4 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.team-page a {
  color: var(--pico-primary);
  text-decoration: underline;
}

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


/* Consistent hyperlink color for light mode */
a {
  color: #1d9bf0;
}

/* Consistent hyperlink color for dark mode */
[data-theme="dark"] a {
  color: #6bc9fb;
}

/* Styling for no bookmarks notice */
.no-bookmarks {
  display: flex; /* Use flexbox for centering content */
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center horizontally */
  justify-content: center; /* Center vertically */
  text-align: center; /* Center text within its own div */
  max-width: 50%; /* Set width to 50% */
  margin: 50px auto; /* Center the block horizontally and add vertical spacing */
  min-height: 250px; /* Give it more height */
  border: 1px dashed var(--pico-muted-border-color); /* Add a subtle border */
  border-radius: var(--pico-border-radius);
  padding: 2rem; /* Add some padding */
  gap: 1rem; /* Space between elements */
  background-color: var(--pico-card-background-color); /* Add a background */
  box-shadow: var(--card-shadow); /* Add a subtle shadow */
}

.no-bookmarks-icon {
  font-size: 4rem; /* Large icon size */
  color: var(--pico-primary); /* Use primary color */
  transform: rotateZ(-30deg); /* Rotate to suggest "empty" or "turned over" */
  margin-bottom: 0.5rem; /* Space below the icon */
}

.no-bookmarks-title {
  font-size: 1.5rem; /* Larger title */
  font-weight: 700;
  color: var(--text);
}

  .no-bookmarks-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.5;
  }

  @media (max-width: 768px) {
    .no-bookmarks {
      max-width: 80%;
    }
  }

/* Related Tools Page */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(31,41,55,0.12);
}
.tool-card header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.tool-card header img {
  max-height: 150px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  background: #fff;
}
.tool-card .card-body {
  flex-grow: 1;
}
.tool-card h4 {
    margin-bottom: 0.5rem;
}
.tool-card p {
    font-size: 0.9em;
    color: var(--muted);
    line-height: 1.5;
}
.tool-card footer {
  margin-top: 1.5rem;
}

/* Mobile Styles (adjust 768px to your preferred breakpoint) */
@media (max-width: 768px) {
  
  /* 1. Maximize Main Width */
  /* Reduces side padding so the container fills more of the screen */
  main.container-fluid {
    padding-left: 10px !important;  /* Adjust as needed (e.g., 0.5rem) */
    padding-right: 10px !important;
    overflow-x: hidden; /* Prevents horizontal scroll on the main page */
  }

  /* 2. Fix Grid Layout */
  /* Forces the grid to be a single column on mobile */
  #tweetGrid.grid {
    display: grid;
    grid-template-columns: 1fr !important; /* Forces 1 item per row */
    gap: 1rem; /* Reduces gap if 'pico-gap' is too wide for mobile */
  }

  /* 3. Prevent Card "Stick Out" (The Critical Fix) */
  #tweetGrid .tweet-card {
    /* 'min-width: 0' is the magic fix for Grid/Flex overflow issues */
    min-width: 0; 
    
    /* Ensures card doesn't exceed the grid track width */
    max-width: 100%; 
    
    /* Ensures padding doesn't add to the width */
    box-sizing: border-box; 
    
    /* Wraps long text/URLs that usually force cards wide */
    overflow-wrap: break-word; 
    word-break: break-word; 
  }
}
/*# sourceMappingURL=dashboard.min.css.map */