/* Explore page editorial styles */

/* Banner */
.explore-banner {
  background-color: #E8F0DC;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v1H0zM0 0h1v20H0z' fill='%231F3A5F' fill-opacity='.06'/%3E%3C/svg%3E");
  padding: 3rem 1.5rem 2rem;
  overflow-x: hidden;
}

.explore-banner-title {
  line-height: 1;
  margin: 0 0 1rem;
}

.explore-banner-title .font-heading {
  display: block;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 900;
  color: #1F3A5F;
}

.explore-smallcaps {
  display: block;
  font-family: "Inter", sans-serif;
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
  font-size: clamp(1rem, 4vw, 1.8rem);
  color: #4A8EBF;
  margin-top: 0.25rem;
}

.explore-tagline {
  color: #1F3A5F;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin: 0.75rem 0 1.5rem;
  max-width: 36ch;
}

/* Native <details>/<summary> disclosure — no JS */
.explore-manifesto {
  width: fit-content;
}

.explore-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.625rem 1.25rem;
  border: 2px solid #1F3A5F;
  border-radius: 999px;
  background: transparent;
  color: #1F3A5F;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  list-style: none; /* suppress default disclosure marker (chevron SVG is used instead) */
}

.explore-toggle-btn::-webkit-details-marker {
  display: none;
}

.explore-toggle-btn:hover,
.explore-toggle-btn:focus-visible {
  background: rgba(31, 58, 95, 0.08);
  outline: 2px solid #1F3A5F;
  outline-offset: 2px;
}

/* Chevron rotates when the disclosure is open */
.explore-toggle-btn svg {
  transition: transform 0.2s ease;
}

.explore-manifesto[open] .explore-toggle-btn svg {
  transform: rotate(180deg);
}

/* Manifesto panel — visible whenever the <details> is open */
.explore-manifesto-panel {
  overflow: hidden;
}

.explore-manifesto-body {
  padding: 1.25rem 0 0.5rem;
  color: #1F3A5F;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 60ch;
}

.explore-manifesto-body p + p {
  margin-top: 0.75rem;
}

/* Category sections */
.explore-category {
  padding: 2.5rem 1.5rem;
  overflow-x: hidden;
}

.explore-category:nth-child(even) {
  background-color: var(--bg, #FCFFF5);
}

.explore-category:nth-child(odd) {
  background-color: #F5F8F0;
}

.explore-cat-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.explore-cat-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.explore-cat-visual svg,
.explore-cat-visual img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
}

.explore-category h2 {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 700;
  color: #1F3A5F;
  margin: 0;
}

.explore-cat-expl {
  font-size: 1rem;
  font-weight: 600;
  color: #1F3A5F;
  margin: 0;
}

.explore-cat-body p {
  color: #3a4a5c;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.explore-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.explore-facts li {
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: rgba(31, 58, 95, 0.07);
  color: #1F3A5F;
}

/* Per-category accent colours */
[data-category="courses"]  .explore-facts li { background-color: rgba(74, 142, 191, 0.12); color: #2a6a91; }
[data-category="vetements"] .explore-facts li { background-color: rgba(31, 58, 95, 0.1);  color: #1F3A5F; }
[data-category="objets"]   .explore-facts li { background-color: rgba(176, 72, 30, 0.1);  color: #8a2a0a; }
[data-category="sortir"]   .explore-facts li { background-color: rgba(107, 138, 61, 0.12); color: #3a5a1a; }

/* Bottom sections */
.explore-section {
  padding: 2.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.explore-section h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: #1F3A5F;
  margin: 0 0 0.75rem;
}

.explore-section p {
  color: #3a4a5c;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.explore-section ul {
  padding-left: 1.25rem;
  color: #3a4a5c;
  font-size: 0.95rem;
  line-height: 1.7;
}

.explore-contribution {
  background-color: #E8F0DC;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.explore-contribution p {
  margin-bottom: 1rem;
}

/* Mobile overflow guards (US3) */
.explore-banner,
.explore-category {
  overflow-x: hidden;
}
