:root{
  --bg:#ffffff;
  --text:#1b1e24;
  --muted:#5f6678;
  --panel:#f5f6f9;
  --border:#e5e7ee;
  --brand:#7A1F1F; /* deep red accent */
  --brand-weak:#f8e9ea;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* Header */
.site-header{
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(150% 90% at 0% 0%, rgba(122,31,31,0.06), transparent 60%),
    radial-gradient(120% 80% at 100% 0%, rgba(122,31,31,0.05), transparent 60%),
    #fff;
}
.header-inner{max-width:1100px;margin:0 auto;padding:20px 16px}
.brand{display:flex;gap:16px;align-items:center}
.cover{width:64px;height:64px;border-radius:12px;object-fit:cover;border:1px solid var(--border)}
.title{margin:0 0 4px 0;font-size:24px;line-height:1.2}
.subtitle{margin:0;color:var(--muted)}

/* Layout */
.layout{max-width:1100px;margin:18px auto 80px;padding:0 16px}

/* Filters */
.filters{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  margin-bottom:12px;
}
.filters-row{display:grid;gap:10px;margin-bottom:10px}
.filters-row:first-child{grid-template-columns:1fr}
.filters-row:nth-child(2){grid-template-columns:1fr 1fr 1fr auto}
.filter label{display:block;font-size:12px;color:var(--muted);margin:0 0 6px}
.filters input[type="search"],
.filters select{
  width:100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
}
.filters select[multiple]{
  min-height:48px;
}
.button{
  background:var(--brand);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:10px 12px;
  font-weight:600;
  cursor:pointer;
}
.button.secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}
.button.secondary:hover{border-color:var(--brand);color:var(--brand)}

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
}
.chip .chip-label{color:var(--muted)}
.chip .chip-x{
  border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:14px;line-height:1;
}

/* Stats */
.stats{color:var(--muted);margin:8px 2px 14px}

/* Groups */
.year-heading{
  font-size:20px;margin:18px 0 8px;color:#111;
  border-left:4px solid var(--brand);
  padding-left:8px;
}
.month-heading{
  font-size:15px;margin:12px 0 8px;color:#222
}
.groups{display:block}

/* Episode card */
.episode-card{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  margin:8px 0;
  overflow:hidden;
}
.episode-summary{
  cursor:pointer;
  padding:12px 14px;
  display:block;
  font-weight:600;
}
.episode-summary::-webkit-details-marker{display:none}
.episode-card[open] .episode-summary{background:var(--brand-weak)}
.episode-body{
  padding:0 14px 12px 14px;
  border-top:1px solid var(--border);
}
.meta{
  font-size:12px;
  color:var(--muted);
  margin:10px 0 6px;
}
.desc{
  margin:8px 0 10px;
  line-height:1.5;
}
.actions{display:flex;gap:8px}
a.button{
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center
}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:18px 16px;
  color:var(--muted);
}
.footer-inner{max-width:1100px;margin:0 auto}

/* Expand/collapse icon */
.episode-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

details[open] .toggle-icon {
  transform: rotate(90deg);
  opacity: 1;
}

/* Pills row */
.pills-row {
  grid-template-columns: repeat(3, auto) auto;
  align-items: center;
}

.pill-wrapper {
  position: relative;
}

/* Pill buttons */
.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pill-button .pill-arrow {
  font-size: 11px;
  opacity: 0.7;
}

.pill-button.active {
  border-color: var(--brand);
  background: var(--brand-weak);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Dropdown container under pills */
#filterDropdownHost {
  position: relative;
  margin-top: 4px;
}

/* Panel per filter */
.filter-dropdown {
  position: absolute;
  z-index: 20;
  min-width: 180px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  display: none;
}

.filter-dropdown.open {
  display: block;
}

.filter-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.filter-option input[type="checkbox"] {
  accent-color: var(--brand);
}

/* Mobilanpassning */
@media (max-width: 700px) {
  .pills-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }
  .filter.actions {
    justify-self: end;
  }
  .filter-dropdown {
    left: 0;
    right: auto;
    min-width: 70vw;
  }
}

.intro {
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.intro .tribute {
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
}

.intro .tribute::before {
  content: "✨";
  opacity: 0.9;
  transform: translateY(1px);
  font-size: 1.1rem;
}

/* --------------------------- */
/* MOBILE FIX FOR FILTER PILLS */
/* --------------------------- */
@media (max-width: 600px) {

  /* Gör att pill-raden kan brytas */
  .pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-template-columns: none; /* slår ut grid-layout */
  }

  /* Varje pill blir fullbredd */
  .pill-wrapper,
  .pill-button {
    width: 100%;
  }

  /* Clear-knappen bryts till egen rad */
  .filter.actions {
    width: 100%;
    justify-self: stretch;
  }
}


/* ----------------------------- */
/* INTRO SECTION (Tribute block) */
/* ----------------------------- */

.intro {
  background: #faf9f9;
  border: 1px solid #eee;
  border-left: 4px solid #b71234; /* TRIH-rött */
  padding: 2rem 1.5rem;
  margin: 2rem 0 3rem 0;
  border-radius: 6px;

  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
}

.intro p {
  margin: 0 0 1.1rem 0;
  max-width: 850px;
}

.intro .tribute {
  font-weight: 600;
  color: #b71234;  /* samma röd ton för tribute */
  margin-top: 1.4rem;
}

/* Subtle fade-in animation */
.intro {
  opacity: 0;
  animation: fadeInIntro 0.7s ease-out forwards;
}

@keyframes fadeInIntro {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .intro {
    padding: 1.4rem 1rem;
    font-size: 1rem;
  }
}

/* --------------------------------------------------
   Contribute Section
-------------------------------------------------- */
.contribute {
  margin: 1.5rem 0 2rem 0;   /* vänsterställd */
  max-width: 800px;          /* samma som intro-boxen ovan */
  padding: 0;
}

.contribute-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  max-width: 680px;
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 3px 8px rgba(0,0,0,0.06);
}

.contribute-icon {
  font-size: 1.9rem;
  line-height: 1;
  padding-top: 2px;
}

.contribute-text {
  font-size: 0.97rem;
  line-height: 1.45;
  color: #333;
}

.contribute-text strong {
  font-weight: 600;
}

.contribute-text a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: #b80000; /* mild podcast-röd */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.18s ease;
}
/*
.contribute-text a:hover {
  border-bottom-color: #b80000;
}
*/
/* Mobile adjustments */
@media (max-width: 600px) {
  .contribute-card {
    flex-direction: column;
    text-align: left;
    padding: 1.2rem 1.3rem;
  }

  .contribute-icon {
    font-size: 1.7rem;
  }
}

/* Listen row */
.listen-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Text-only pills */
.listen-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: #f4f4f4;
  color: #333;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: background 0.2s, border-color 0.2s;
}

.listen-pill:hover {
  background: #e9e9e9;
  border-color: #bbb;
}

/* Dark mode friendly */
@media (prefers-color-scheme: dark) {
  .listen-pill {
    background: #333;
    color: #eee;
    border-color: #555;
  }
  .listen-pill:hover {
    background: #444;
    border-color: #777;
  }
}

.official-link-box {
  padding: 12px 16px;
  background: #f4f4f4;
  border-radius: 8px;
  margin: -10px 0 30px 0;
  text-align: center;
  font-size: 0.95rem;
}

.official-link-box a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.official-link-box a:hover {
  text-decoration: underline;
}

.pill-button {
  min-width: 110px;
  justify-content: space-between;
}


.contribute-details {
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fafafa;
  padding: 0.75rem 1rem;
}

.contribute-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.contribute-summary::-webkit-details-marker {
  display: none;
}

.contribute-summary {
  display: flex;
  align-items: center;
  justify-content: space-between; /* text vänster, pil höger */
}

.contribute-summary::after {
  content: "▸";
  font-size: 1.2rem;        /* större pil */
  opacity: 0.55;
  margin-left: 8px;
  transition: transform 0.25s;
}

.contribute-details[open] .contribute-summary::after {
  transform: rotate(90deg);
}

.contribute-details[open] .contribute-summary::after {
  transform: rotate(90deg);
}

.contribute-expanded {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
}

.footer-official {
  margin-top: 6px;
  text-align: center;
  font-size: 14px;
}

.footer-official a {
  color: #0044cc;
  text-decoration: none;
  font-weight: 500;
}

.footer-official a:hover {
  text-decoration: underline;
}

.footer-inner {
  text-align: center;
}

.footer-official {
  margin-top: 8px;
  text-align: center;
}

.group-toggle {
  margin: 10px 0 16px 0;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-toggle select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
}

/* --- Group-by pills --- */
.group-by-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}

.group-by-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.group-pill {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 100px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.group-pill:hover {
  background: #f2f2f2;
}

/* ⭐ ACTIVE = TRIH vinröd */
.group-pill.active {
  background: #8B1E3F;
  border-color: #8B1E3F;
  color: #fff;
}

/* --------------------------- */
/* MOBILE GROUP-BY PILL STACK  */
/* --------------------------- */
@media (max-width: 600px) {
  .group-by-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .group-pill {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .pill-wrapper {
    position: relative;
  }
}

/* Footer additions */
.footer-disclaimer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.footer-disclaimer .disc-icon {
  font-size: 14px;
  margin-right: 6px;
  opacity: 0.75;
}

.footer-credit {
  margin-top: 8px;
  font-size: 13px;
  color: #8B1E3F;   /* TRIH vinröd */
  font-weight: 600;
  text-align: center;
}

.footer-disclaimer,
.footer-disclaimer * {
  font-family: 'Inter', sans-serif !important;
}

.footer-credit {
  font-family: 'Inter', sans-serif !important;
}

.footer-disclaimer,
.footer-disclaimer *,
.footer-credit {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.footer-credit {
  margin-top: 6px;
  font-weight: 600;
  color: #8B1E3F; /* TRIH-röd */
}

.footer-disclaimer {
  margin-top: 16px;
  padding: 0 18px;
}

.footer-disclaimer .info-icon {
  font-size: 20px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.7;
}

.footer-community {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
}


/* ABOUT BOX – collapsible */
.about-box {
  border-left: 4px solid #8B1E3F;  /* TRIH-vinröd */
  background: #faf8f8;
  border-radius: 8px;
  margin: 28px 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Header when collapsed */
.about-header {
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.06rem;
  color: #333;
}

/* Inner content */
.about-content {
  padding: 16px 16px 22px 16px;
  font-size: 0.97rem;
  line-height: 1.48;
  color: #444;
}

/* Tribute paragraph stays in TRIH red */
.about-content .tribute {
  color: #8B1E3F;
  font-weight: 600;
  margin-top: 14px;
}

/* Closed state: only header visible */
.about-box.closed {
  max-height: 56px;
}

/* Open state */
.about-box.open {
  max-height: 700px; /* Plenty for full text */
}

/* Chevron animation */
.chevron {
  transition: transform 0.3s ease;
}

.about-box.open .chevron {
  transform: rotate(180deg);
}

/* Slightly tighter on mobile */
@media (max-width: 600px) {
  .about-header {
    padding: 12px 14px;
    font-size: 1rem;
  }
  .about-content {
    padding: 14px;
    font-size: 0.95rem;
  }
}

/* Collapsed intro box */
.about-collapsed {
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  border-left: 4px solid #b71234;
  border-radius: 6px;
  padding: 0;
  background: #faf9f9;
}

/* The toggle bar */
.about-toggle {
  width: 100%;
  background: #fff;
  border: 0;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.about-toggle .chevron {
  font-size: 1.2rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

/* Content hidden by default */
.about-content {
  display: none;
  padding: 16px 16px 20px;
  background: #faf9f9;
}

/* When expanded */
.about-collapsed.open .about-content {
  display: block;
}

.about-collapsed.open .chevron {
  transform: rotate(90deg);
}

.intro {
  max-width: 900px;       /* samma bredd som layout */
  margin: 0 auto;         /* centrera på desktop */
}

/* Make "About this site" align with the rest of the content in .layout */
.layout > .intro.about-collapsed {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Make Contribute section full-width inside .layout */
.layout .contribute {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   TRIH HEADER — VINRÖD BAKGRUND + LJUS TEXT
   (Drop-in block, påverkar endast headern)
   ========================================================= */

.site-header {
  background: #8B1E3F; /* TRIH vinröd */
  border-bottom: none;
  color: #fff;
  padding: 20px 0;
}

.header-inner {
  color: #fff;
}

.site-header .title,
.site-header .subtitle {
  color: #fff !important;
}

.site-header .subtitle {
  opacity: 0.85; /* svagare kontrast */
}

.brand {
  color: #fff;
}

/* Gör omslagsbilden tydlig mot mörk bakgrund */
.cover {
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 12px;
}

/* Liten förbättring: vit ikon om du lägger till ikon i framtiden */
.site-header svg,
.site-header img.icon {
  filter: brightness(10);
}

/* =========================================================
   Contribute-header: ikon + text vänster, pilen till höger
   ========================================================= */

.contribute-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* allt börjar på vänster sida */
  gap: 10px;                    /* mellan ikon och text */
}

/* Texten ska inte centreras */
.contribute-summary span {
  text-align: left;
}

/* Flytta pilen till höger */
.contribute-summary::after {
  margin-left: auto;            /* skickar pilen längst till höger */
  opacity: 0.55;
}

/* =========================================================
   TRIH FOOTER — VINRÖD BAKGRUND + LJUS TEXT
   ========================================================= */

.site-footer {
  background: #8B1E3F;     /* samma vinröda som headern */
  color: #ffffff;
  border-top: none;
  padding: 40px 16px;
}

.site-footer a {
  color: #ffffff;
  opacity: 0.9;
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-community,
.footer-official,
.footer-disclaimer,
.footer-credit {
  color: #ffffff !important;  /* gör all text ljus */
}

/* Default (mobile): center logo + text */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand .cover {
  width: 120px;
  height: auto;
  margin-bottom: 0.5rem;
}

.title {
  margin: 0;
}

.subtitle {
  margin-top: 0.25rem;
  max-width: 320px;
}

/* Desktop layout */
@media (min-width: 700px) {
  .brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .brand .cover {
    width: 80px;
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .brand > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Hide title on mobile */
.title {
  display: none;
}

/* Show again on desktop */
@media (min-width: 700px) {
  .title {
    display: block;
  }
}

/* Make subtitle visible again on mobile */
.subtitle {
  display: block !important;
}

/* TOP NAV: HOME / STATS */
.header-inner { ... }
.site-nav { ... }
.nav-link { ... }
.nav-link:hover { ... }
.nav-link.nav-link-active { ... }

@media (min-width: 700px) {
  .header-inner { ... }
}

/* ============================
   NAV AS BUTTON-LIKE TEXT LINKS
   ============================ */

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  align-items: center;
}

/* Alla länkar */
.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Hover (endast text får lätt bakgrund) */
.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 🔥 Aktiv sida — SER UT SOM EN KNAPP */
.nav-link-active {
  background: white;
  color: #7a0f2b;        /* TRIH vinröd text */
  border-radius: 6px;
}

.site-nav {
  margin-top: 0.4rem;   /* lite luft mellan loggan och knapparna */
}


/* Förhindra hover på aktiv knapp */
.nav-link-active:hover {
  background: white !important;
  color: #7a0f2b !important;
  cursor: default;
}

/* Sökfältets placeholder-storlek */
#q::placeholder {
  font-size: 14px;
}

.filter-dropdown-inner {
  font-size: 14px;
}

.filter-dropdown-inner .filter-option {
  font-size: 14px;
}

.filter-dropdown-inner input[type="checkbox"] {
  transform: scale(1.1); /* valfritt – gör boxarna tydligare */
  margin-right: 6px;
}


/* Filterpanelen: text och input */
.filter-container label,
.filter-container input,
.filter-container select {
    font-size: 16px;
}

/* Search bar placeholder */
.filter-container input::placeholder {
    font-size: 16px;
}

/* Group-by knapparna */
.group-buttons button {
    font-size: 16px;
}


/* Desktop layout: filters in one row */
.pills-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 10px;
  align-items: center;
}

/* Desktop: filters i rad */
.filter-fields {
  display: grid;
  grid-template-columns: repeat(4, auto) auto;
  gap: 10px;
  align-items: center;
}

/* Mobil: stacked (du har redan detta i pill CSS men lägger en fallback) */
@media (max-width: 700px) {
  .filter-fields {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fix: pills-row ska ha 4 kolumner på desktop även på stats.html */
@media (min-width: 700px) {
  .filters-row.pills-row {
    grid-template-columns: repeat(4, auto) auto;
  }
}

/* ------------------------------ */
/* Lazy-loading placeholders */
/* ------------------------------ */

.lazy-placeholder {
  height: 60px;                   /* viktigaste */
  margin: 12px 0;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  animation: placeholderPulse 1.2s ease-in-out infinite alternate;
}

/* Mild pulsering för placeholder */
@keyframes placeholderPulse {
  from { opacity: 0.55; }
  to { opacity: 0.95; }
}


/* ------------------------------ */
/* Fade-in när den riktiga gruppen laddas */
/* ------------------------------ */

.year-group {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInGroup 0.25s ease-out forwards;
}

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

/* Full stack of filter pills on mobile */
@media (max-width: 600px) {
  .filter-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .pill-wrapper,
  .pill-button {
    width: 100% !important;
  }
}

/* Override pill-row for mobile — final effective rule */
@media (max-width: 700px) {
  .filters-row.pills-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .pill-wrapper,
  .pill-button,
  .filter.actions {
    width: 100% !important;
  }
}