festival-price-explorer.toc-fpe {
  --fpe-accent: var(--toc-accent, #df7c30);
  --fpe-max-width: var(--toc-content-wide, 1180px);
  --fpe-radius: var(--toc-radius, 4px);
  --fpe-pill-radius: var(--toc-pill-radius, 999px);
  --fpe-surface: var(--toc-surface, var(--card, Canvas));
  --fpe-surface-text: var(--toc-text, var(--ink, CanvasText));
  --fpe-muted: color-mix(in srgb, currentColor 62%, transparent);
  --fpe-border: color-mix(in srgb, currentColor 16%, transparent);
  --fpe-grid: color-mix(in srgb, currentColor 10%, transparent);
  display: block;
  color: inherit;
  font: inherit;
  max-width: var(--fpe-max-width);
  margin: 0 auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.toc-fpe *, .toc-fpe *::before, .toc-fpe *::after { box-sizing: border-box; }
.toc-fpe__inner { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 6rem); }
.toc-fpe h1, .toc-fpe h2, .toc-fpe p { margin-top: 0; }
.toc-fpe h1 { font: inherit; font-size: clamp(2.35rem, 7vw, 5.7rem); font-weight: 850; line-height: .95; max-width: 12ch; letter-spacing: -.045em; margin-bottom: 1.25rem; }
.toc-fpe h2 { font: inherit; font-size: clamp(1.3rem, 3vw, 2.05rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.toc-fpe__intro { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem); }
.toc-fpe__eyebrow, .toc-fpe__kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; color: var(--fpe-accent); margin-bottom: .65rem; }
.toc-fpe__lede { max-width: 780px; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; color: var(--fpe-muted); }

.toc-fpe__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.toc-fpe__product-note { font-size: .85rem; line-height: 1.5; color: var(--fpe-muted); margin-bottom: 1.25rem; max-width: 850px; }
.toc-fpe__controls label, .toc-fpe__ticket-control, .toc-fpe__mode-control { min-width: 0; }
.toc-fpe__controls label > span, .toc-fpe__ticket-control > span, .toc-fpe__mode-control > span { display: block; margin: 0 0 .38rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--fpe-muted); }
.toc-fpe__ticket-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.toc-fpe__ticket-toggle { min-height: 46px; border: 1px solid var(--fpe-border); border-radius: var(--fpe-pill-radius); background: transparent; color: inherit; font: inherit; font-weight: 750; cursor: pointer; }
.toc-fpe__ticket-toggle[aria-pressed="true"] { border-color: var(--fpe-accent); background: color-mix(in srgb, var(--fpe-accent) 12%, transparent); }
.toc-fpe__ticket-toggle:disabled { opacity: .35; cursor: not-allowed; }
.toc-fpe__mode-toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
.toc-fpe__mode-toggles button { min-height: 46px; border: 1px solid var(--fpe-border); border-radius: var(--fpe-pill-radius); padding: .45rem .65rem; background: transparent; color: inherit; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.toc-fpe__mode-toggles button[aria-pressed="true"] { border-color: var(--fpe-accent); background: color-mix(in srgb, var(--fpe-accent) 12%, transparent); }
.toc-fpe select { width: 100%; min-height: 46px; border: 1px solid var(--fpe-border); background: transparent; color: inherit; border-radius: var(--fpe-radius); padding: .65rem 2.2rem .65rem .75rem; font: inherit; }
.toc-fpe select:focus, .toc-fpe button:focus, .toc-fpe a:focus { outline: 2px solid var(--fpe-accent); outline-offset: 2px; }

.toc-fpe__panel { border-top: 3px solid var(--fpe-accent); border-bottom: 1px solid var(--fpe-border); padding: 1.25rem 0 1rem; }
.toc-fpe__panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: .5rem; }
.toc-fpe__panel-head h2 { margin-bottom: 0; }
.toc-fpe__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem .8rem; font-size: .78rem; color: var(--fpe-muted); }
.toc-fpe__legend-item { display: inline-flex; align-items: center; gap: .4rem; }
.toc-fpe__legend-swatch { width: 18px; height: 3px; border-radius: 3px; background: var(--series-color); }
.toc-fpe__chart-wrap { position: relative; min-width: 0; }
.toc-fpe__chart { width: 100%; height: auto; display: block; overflow: visible; }
.toc-fpe__axis-label { fill: currentColor; opacity: .56; font-size: 12px; }
.toc-fpe__grid-line { stroke: var(--fpe-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.toc-fpe__line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.toc-fpe__point { stroke: var(--fpe-surface); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; }
.toc-fpe__point:focus { outline: none; stroke-width: 4; }
.toc-fpe__tooltip { position: absolute; z-index: 4; pointer-events: none; min-width: 180px; max-width: 270px; padding: .72rem .8rem; border: 1px solid var(--fpe-border); border-top: 3px solid var(--fpe-accent); background: var(--fpe-surface); color: var(--fpe-surface-text); box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: .82rem; line-height: 1.35; }
.toc-fpe__tooltip strong { display: block; margin-bottom: .2rem; }

.toc-fpe__driver-head { margin-top: 2rem; }
.toc-fpe__driver-head h2 { margin-bottom: 0; max-width: 680px; }
.toc-fpe__driver-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; padding: 1rem 0 1.5rem; }
.toc-fpe__driver { border: 1px solid var(--fpe-border); border-radius: var(--fpe-pill-radius); padding: .7rem 1rem; background: transparent; color: inherit; text-align: center; font: inherit; min-height: 46px; cursor: pointer; }
.toc-fpe__driver[aria-pressed="true"] { border-color: var(--fpe-accent); background: color-mix(in srgb, var(--fpe-accent) 12%, transparent); }
.toc-fpe__driver-name { display: block; font-weight: 750; line-height: 1.15; }
.toc-fpe__driver-meta { display: none; }
.toc-fpe__badge { display: inline-flex; align-items: center; border: 1px solid var(--fpe-border); border-radius: var(--fpe-pill-radius); padding: .15rem .42rem; text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; font-weight: 800; }

.toc-fpe__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--fpe-border); border: 1px solid var(--fpe-border); margin: .25rem 0 2rem; }
.toc-fpe__stat { background: var(--fpe-surface); color: var(--fpe-surface-text); padding: 1rem; min-width: 0; }
.toc-fpe__stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--fpe-muted); }
.toc-fpe__stat-value { display: block; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 850; letter-spacing: -.04em; margin: .15rem 0; }
.toc-fpe__stat-note { font-size: .78rem; color: var(--fpe-muted); line-height: 1.35; }

.toc-fpe__annotations, .toc-fpe__sources { border-top: 1px solid var(--fpe-border); padding: 1.2rem 0; }
.toc-fpe__annotations h2 { font-size: 1rem; margin-bottom: .8rem; }
.toc-fpe__sources summary, .toc-fpe__method summary { cursor: pointer; font-weight: 800; list-style-position: outside; }
.toc-fpe__sources details[open] summary, .toc-fpe__method[open] summary { margin-bottom: .85rem; }
.toc-fpe__annotation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.5rem; }
.toc-fpe__annotation-list > div { display: grid; grid-template-columns: 4rem 1fr; gap: .65rem; font-size: .82rem; line-height: 1.4; }
.toc-fpe__annotation-list span { color: var(--fpe-muted); }
.toc-fpe__source-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.toc-fpe__source-list a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--fpe-border); padding: .2rem 0; font-size: .82rem; }
.toc-fpe__source-list a:hover { border-color: var(--fpe-accent); }

.toc-fpe__method { border-left: 3px solid var(--fpe-accent); padding: .6rem 0 .6rem 1rem; max-width: 850px; margin-top: 1rem; }
.toc-fpe__method-body p { color: var(--fpe-muted); line-height: 1.55; margin-bottom: .7rem; }
.toc-fpe__method-body p:last-child { margin-bottom: 0; }
.toc-fpe__status { font-size: .78rem; color: var(--fpe-muted); margin: 1rem 0 0; }

@media (max-width: 800px) {
  .toc-fpe__controls { grid-template-columns: 1fr; }
  .toc-fpe__panel-head { align-items: flex-start; flex-direction: column; }
  .toc-fpe__legend { justify-content: flex-start; }
  .toc-fpe__driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-fpe__summary { grid-template-columns: 1fr; }
  .toc-fpe__annotation-list { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .toc-fpe__driver-grid { grid-template-columns: 1fr; }
  .toc-fpe__mode-toggles { grid-template-columns: 1fr; }
}

.toc-fpe__deep { margin: .25rem 0 1.25rem; border-top: 1px solid var(--fpe-border); border-bottom: 1px solid var(--fpe-border); padding: .8rem 0; }
.toc-fpe__deep summary { cursor: pointer; font-weight: 800; }
.toc-fpe__deep-body { padding-top: .8rem; }
.toc-fpe__deep-body > p { max-width: 760px; margin-bottom: .8rem; color: var(--fpe-muted); line-height: 1.5; font-size: .88rem; }
.toc-fpe__driver-grid--deep { padding-top: 0; }
.toc-fpe__driver-grid--deep .toc-fpe__driver { border-style: dashed; }

.toc-fpe__source-item { display: inline-flex; align-items: center; gap: .4rem; border-bottom: 1px solid var(--fpe-border); padding: .2rem 0; font-size: .82rem; }
.toc-fpe__driver-detail { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--fpe-border); max-width: 760px; }
.toc-fpe__driver-detail h3 { margin: 0 0 .35rem; font-size: 1rem; }
.toc-fpe__driver-detail p { margin: 0 0 .55rem; color: var(--fpe-muted); line-height: 1.5; font-size: .86rem; }
.toc-fpe__driver-detail-meta { display: flex; gap: .45rem .7rem; flex-wrap: wrap; align-items: center; color: var(--fpe-muted); font-size: .75rem; }


.toc-fpe__analysis {
  border-top: 1px solid var(--fpe-border);
  border-bottom: 1px solid var(--fpe-border);
  padding: .75rem 0;
  margin: 0 0 1.2rem;
}
.toc-fpe__analysis > summary {
  cursor: pointer;
  font-weight: 800;
}
.toc-fpe__analysis[open] > summary { margin-bottom: .85rem; }
.toc-fpe__analysis-intro { max-width: 70ch; margin: 0 0 1rem; color: var(--fpe-muted); font-size: .9rem; line-height: 1.45; }
.toc-fpe__analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  align-items: start;
}
.toc-fpe__analysis-grid > * { min-width: 0; }
.toc-fpe__analysis-grid select { font-size: .95rem; line-height: 1.35; }
.toc-fpe__analysis-grid label > span,
.toc-fpe__downloads > span {
  display: block;
  margin: 0 0 .38rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fpe-muted);
}
.toc-fpe__downloads > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.toc-fpe__downloads button {
  min-height: 46px;
  min-width: 0;
  border: 1px solid var(--fpe-border);
  border-radius: var(--fpe-radius);
  padding: .5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}
.toc-fpe__analysis-note {
  margin: .8rem 0 0;
  max-width: 900px;
  color: var(--fpe-muted);
  font-size: .82rem;
  line-height: 1.45;
}
