/* A compact native disclosure extends the existing franchise-colored story. */
.franchise-profile #team-story .franchise-analysis {
  margin-top: 18px;
  min-width: 0;
}

.franchise-profile #team-story .franchise-analysis > summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--league-gold-text);
  font: 600 16px/1.4 var(--body, Arial, sans-serif);
  cursor: pointer;
  list-style: none;
}

.franchise-analysis > summary::-webkit-details-marker { display: none; }
.franchise-analysis > summary::marker { content: ""; }
.franchise-analysis__icon::before { content: "+"; }
.franchise-analysis[open] > summary .franchise-analysis__icon::before { content: "−"; }
.franchise-analysis > summary .franchise-analysis__collapse,
.franchise-analysis[open] > summary .franchise-analysis__expand { display: none; }
.franchise-analysis[open] > summary .franchise-analysis__collapse { display: inline; }
.franchise-profile #team-story .franchise-analysis > summary:hover {
  color: var(--gold-highlight);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.franchise-profile #team-story .franchise-analysis > summary:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 4px;
}

.franchise-profile #team-story .franchise-analysis__body {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 28px);
  border-left: 3px solid var(--team-accent);
  background: linear-gradient(135deg, #05070ad9, #07111fbf);
  max-width: 74ch;
  overflow-wrap: anywhere;
}
.franchise-profile #team-story .franchise-analysis__body h3 {
  margin: 10px 0 20px;
  font-size: clamp(26px, 3vw, 36px);
}
.franchise-profile #team-story .franchise-analysis__body p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.franchise-profile #team-story .franchise-analysis__outlook {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ffffff26;
}
.franchise-analysis__outlook h4 { font-size: 22px; margin: 0 0 12px; }
.franchise-analysis__seasons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
  margin-top: 8px;
  font-size: 15px;
}
.franchise-analysis__seasons > span { flex-basis: 100%; color: #bfcbd8; }
.franchise-analysis__seasons > a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; }
.franchise-profile #team-story .franchise-story-grid:has(.franchise-analysis[open]) {
  align-items: start;
}
@media (max-width: 640px) {
  .franchise-profile #team-story .franchise-analysis__body { padding: 18px 16px; }
  .franchise-profile #team-story .franchise-analysis__body p:not(.eyebrow) { font-size: 16px; }
}
@media (forced-colors: active) {
  .franchise-profile #team-story .franchise-analysis > summary { color: LinkText; }
  .franchise-profile #team-story .franchise-analysis__body { border-color: CanvasText; background: Canvas; }
}
