/* Court circuit: map, producer cards, fruits and vegetables in season. Tokens from breizh.css. */
.com-breizh-cc .com-breizh-carte { scroll-margin-top: 6rem; }
.com-breizh-cc .com-breizh-carte-activite + .com-breizh-carte-activite { margin-left: 0.3rem; }
.com-breizh-cc-produits { margin: 0.5rem 0; font-size: 0.95em; }
.com-breizh-cc-distance {
  display: block;
  font-family: var(--bz-donnees);
  font-size: 0.8em;
  color: var(--bz-granit);
}
.com-breizh-cc-site { color: var(--bz-glaz-fonce); font-weight: 500; }
.com-breizh-cc-credit,
.com-breizh-cc-credits { display: block; margin-top: 0.5rem; color: var(--bz-granit); font-size: 0.8em; }

.com-breizh-cc-saison > summary {
  cursor: pointer;
  font-family: var(--bz-titre);
  font-weight: 600;
  color: var(--bz-glaz-fonce);
}
.com-breizh-cc-mois {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
.com-breizh-cc-mois details {
  border: 1px solid var(--bz-ligne);
  border-radius: var(--bz-rayon);
  padding: 0.5rem 0.8rem;
  background: var(--bz-fond);
}
.com-breizh-cc-mois details.is-current { border-color: var(--bz-glaz); }
.com-breizh-cc-mois summary { cursor: pointer; font-weight: 600; text-transform: capitalize; }
.com-breizh-cc-mois p { margin: 0.4rem 0 0; line-height: 1.5; }

/* Title like the other section landing pages (Actualités, Se former). */
.com-breizh-cc .page-header h1.cc-titre { font-family: var(--bz-titres); font-synthesis: none; font-weight: 400; word-spacing: 0.15em;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  letter-spacing: -0.012em;
  line-height: 1;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.com-breizh-cc .cc-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 62ch; }

/* Top: map (2/3) + this month's produce (1/3); stacked on small screens, map first. */
.cc-haut {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  margin: 1.5rem 0 1rem;
}
.cc-haut > * { min-width: 0; }
.cc-haut .epci-carte { margin: 0; }
@media (max-width: 860px) {
  .cc-haut { grid-template-columns: minmax(0, 1fr); }
}
.cc-saison {
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--bz-ligne);
  border-radius: 24px;
  background: var(--bz-fond);
}
.cc-saison h2 { margin: 0; font-family: var(--bz-titres); font-synthesis: none; font-weight: 400; word-spacing: 0.15em; font-size: 1.3rem; line-height: 1.2; }
.cc-saison-mois {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--bz-donnees);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bz-glaz-fonce);
}
.cc-saison h3 { margin: 0.9rem 0 0.35rem; font-size: 0.95rem; font-weight: 700; }
.cc-saison ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-saison li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bz-sable) 55%, var(--bz-fond));
  font-size: 0.88rem;
}
.cc-saison li.is-bzh,
.cc-saison-legende .is-bzh {
  background: color-mix(in srgb, var(--bz-glaz) 16%, var(--bz-fond));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bz-glaz) 45%, transparent);
  color: var(--bz-glaz-fonce);
  font-weight: 600;
}
.cc-saison-legende { display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0; font-size: 0.78rem; color: var(--bz-granit); }
.cc-saison-legende .is-bzh { display: inline-block; width: 1.4rem; height: 0.9rem; border-radius: 999px; }

/* Commune page: producers and shops (2/3), then map + season in the right column; stacked on small screens. */
.cc-commune {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.cc-commune > * { min-width: 0; }
/* The page header already draws the rule: no second rule and gap above the first list. */
.cc-principal > [hidden] + .commune-section,
.cc-principal > .commune-section:first-child:not([hidden]) { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.cc-voir-carte { display: none; }
.cc-cote { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.cc-cote .epci-carte { margin: 1.5rem 0 0; }
.cc-cote .epci-legende-note { display: none; }
.cc-principal .com-breizh-cartes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
@media (max-width: 860px) {
  .cc-commune { grid-template-columns: minmax(0, 1fr); }
  .cc-cote { position: static; }
  .cc-voir-carte { display: inline-block; margin-top: 0.5rem; color: var(--bz-glaz-fonce); font-weight: 600; }
}

.cc-voisins {
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--bz-ligne);
  border-radius: 24px;
  background: var(--bz-fond);
}
.cc-voisins h2 { margin: 0 0 0.5rem; font-family: var(--bz-titres); font-synthesis: none; font-weight: 400; word-spacing: 0.15em; font-size: 1.3rem; line-height: 1.2; }
.cc-voisins ul { margin: 0; padding: 0; list-style: none; }
.cc-voisins li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--bz-ligne);
}
.cc-voisins li:first-child { border-top: 0; }
.cc-voisins a { color: var(--bz-glaz-fonce); font-weight: 600; }
.cc-voisins-info { font-family: var(--bz-donnees); font-size: 0.75rem; color: var(--bz-granit); }

/* Sections below read as distinct blocks. */
.com-breizh-cc #cc-proches,
.com-breizh-cc #cc-selection { margin-top: 1.5rem; }

/* Map: the /local EPCI map (epci.css), each EPCI shaded by its producers. */
.com-breizh-cc-carte { --cc-0: var(--bz-sable); }
.com-breizh-cc .cc-niveau-0 { --zone: var(--bz-sable); }
.com-breizh-cc .cc-niveau-1 { --zone: color-mix(in srgb, var(--bz-glaz) 18%, var(--bz-fond)); }
.com-breizh-cc .cc-niveau-2 { --zone: color-mix(in srgb, var(--bz-glaz) 36%, var(--bz-fond)); }
.com-breizh-cc .cc-niveau-3 { --zone: color-mix(in srgb, var(--bz-glaz) 58%, var(--bz-fond)); }
.com-breizh-cc .cc-niveau-4 { --zone: color-mix(in srgb, var(--bz-glaz) 82%, var(--bz-fond)); }
.com-breizh-cc .epci-zone.is-home path { fill: var(--zone); }
.com-breizh-cc .epci-zone:hover path,
.com-breizh-cc .epci-zone:focus-visible path { fill: var(--bz-glaz-fonce); }
.com-breizh-cc .epci-zone.is-current path { fill: var(--bz-nuit); stroke: var(--bz-fond); }
.cc-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.cc-outils:has([data-cc-geo][hidden]):not(:has(.cc-statut:not(:empty))) { display: none; }
.cc-statut { color: var(--bz-glaz-fonce); font-size: 0.9rem; }
.cc-liens { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.4rem 0; }
.cc-liens a { color: var(--bz-glaz-fonce); font-weight: 500; }

/* Hero: html/layouts/demat/heros_immersif.php of the demat templates (.heros-66). "Voir la carte" only on small screens. */
@media (min-width: 861px) { .com-breizh-cc .cc-heros .cc-voir-carte { display: none; } }
.com-breizh-cc #cc-carte,
.com-breizh-cc #cc-communes,
.com-breizh-cc #cc-saison-titre { scroll-margin-top: 6rem; }
