/* ============================================================
   market.css — styles used ONLY on market/vertical pages
   Loaded via {{ block "extra_head" }} in market-page.html
   ============================================================ */

/* BREADCRUMB */
.breadcrumb {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 0;
  font-size: 0.8rem;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.breadcrumb__list li + li::before {
  content: "›";
  margin-right: 0.25rem;
  color: #9ca3af;
}
.breadcrumb__list a {
  color: #1a9fa0;
  text-decoration: none;
}
.breadcrumb__list a:hover { text-decoration: underline; }

/* MARKET MAP */
.market-map__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.market-map__text h2 { margin-bottom: 1rem; }
.market-svg { width: 100%; max-width: 340px; }
@media (max-width: 768px) {
  .market-map__inner { grid-template-columns: 1fr; }
  .market-map__visual { display: none; }
}

/* ANALYSIS CARDS */
.analysis-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.analysis-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.analysis-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.analysis-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f3a3b;
  line-height: 1.2;
}
.analysis-card__note {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* VIS BAR */
.vis-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin-top: 0.6rem;
  overflow: hidden;
}
.vis-bar__fill {
  height: 100%;
  background: #1a9fa0;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* METHODOLOGY NOTE */
.methodology-note {
  background: #f0fdfd;
  border-left: 3px solid #1a9fa0;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: #374151;
  margin: 0 auto 0;
  border-radius: 0 4px 4px 0;
}

/* ACCORDION */
.accordion {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  background: white;
  user-select: none;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f3a3b;
}
.accordion__toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.accordion__toggle::before,
.accordion__toggle::after {
  content: "";
  position: absolute;
  background: #1a9fa0;
  border-radius: 2px;
  transition: transform 0.2s;
}
.accordion__toggle::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.accordion__toggle::after  { width: 2px; height: 14px; top: 3px; left: 9px; }
details[open] .accordion__toggle::after { transform: rotate(90deg); opacity: 0; }
.accordion__body { padding: 0 1.5rem 1.5rem; }

/* DATA TABLE */
.data-table-wrap { overflow-x: auto; margin-top: 1rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  background: #f3f4f6;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  white-space: nowrap;
}
.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.data-table tbody tr:hover { background: #f9fafb; }
.competitor--client td { background: #f0fdfd; font-weight: 600; color: #0f3a3b; }

/* SOURCE NOTE */
.source-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1rem;
  font-style: italic;
}

/* PRIORITY BADGE */
.priority-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.priority--high   { background: #dcfce7; color: #166534; }
.priority--medium { background: #fef9c3; color: #854d0e; }
.priority--low    { background: #f3f4f6; color: #6b7280; }

/* MARKET PROSE */
.market-prose__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.market-prose__section h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
@media (max-width: 768px) {
  .market-prose__inner { grid-template-columns: 1fr; }
}

/* PROOF MAPS GRID */
.proof-maps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.proof-map {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.proof-map__label {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
}
.proof-map img { width: 100%; display: block; }

/* VERTICALS GRID */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.vertical-card {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.15s, color 0.15s;
}
.vertical-card:hover {
  border-color: #1a9fa0;
  color: #1a9fa0;
}

/* MARKET CTA */
.market-cta { background: #0f3a3b; color: white; }
.market-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.market-cta h2 { color: white; margin-bottom: 0.5rem; }
.market-cta p { color: rgba(255,255,255,0.8); margin: 0; }
@media (max-width: 768px) {
  .market-cta__inner { flex-direction: column; align-items: flex-start; }
}
