/* Lockout tracker and salary-cap explainer.
   The shared page column (.tax-main, .panel, .lede, .foot) stays in taxes.css.
*/

/* --- the lockout tracker's update log ----------------------------------- */

.lockout-entries {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lockout-entry + .lockout-entry {
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}
.lockout-entry p { margin: 0 0 4px; }
.lockout-entry-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lockout-entry-headline { color: var(--text-primary); }
.lockout-entry-summary { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.lockout-entry-source { font-size: 0.82rem; color: var(--text-muted); }
.lockout-entry-source a { color: var(--accent); text-decoration: none; }
.lockout-entry-source a:hover { text-decoration: underline; }

/* ===========================================================================
   Lockout section: the two-tab strip and the salary cap & floor explainer.

   The tab strip lives INSIDE the page body, not the main site nav, which
   already runs tight on laptop widths (see docs/styles.css, the .site-nav
   width notes). Two tabs, plain links, no JavaScript: aria-current is the
   source of truth and the styling follows it, exactly as the main nav does.
   ======================================================================== */

.lockout-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  flex-wrap: wrap;
}

.lockout-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--glass-surface);
  transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.lockout-tabs a:hover { color: var(--text-primary); }

.lockout-tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lockout-tabs a[aria-current="page"] {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--accent-wash);
}

/* The topic filter above "Latest updates". Same pill language as the tab
   strip above, but real <button>s with aria-pressed rather than links --
   this chooses a subset of one page's own content, not a destination. */
.lockout-filter {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  flex-wrap: wrap;
}

.lockout-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--glass-surface);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.lockout-filter-btn:hover { color: var(--text-primary); }

.lockout-filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lockout-filter-btn[aria-pressed="true"] {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--accent-wash);
}

.lockout-filter-empty {
  margin: 0 0 14px;
}

/* --- salary cap & floor explainer ---------------------------------------- */

/* The four headline tiles carry a small note line (a year, or "in force
   today") under the label. */
.stat-tile .tile-note {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cap-summary { margin-top: 4px; }
.cap-asof { margin: 0 0 20px; }

/* The one simple scale we draw ourselves: a single horizontal axis with the
   league-level marks only. No libraries, no images, no per-team dots. */
.cap-scale {
  margin: 0 0 26px;
  padding: 10px 4px 0;
}
.cap-scale-svg {
  width: 100%;
  height: auto;
  max-height: 170px;
  overflow: visible;
}
.cap-scale-axis {
  stroke: var(--glass-border);
  stroke-width: 2;
}
.cap-scale-tick {
  stroke: color-mix(in srgb, var(--accent) 60%, var(--border));
  stroke-width: 2;
}
.cap-scale-dot {
  fill: var(--accent);
}
.cap-scale-value {
  fill: var(--text-primary);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
}
.cap-scale-label {
  fill: var(--text-muted);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cap-scale figcaption { margin-top: 4px; }

/* Each explainer section: title and a one-line summary always visible, the
   long copy folded into a details block collapsed by default. */
.cap-section-summary { margin-top: 2px; color: var(--text-secondary); }

.cap-details {
  margin-top: 10px;
}
.cap-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  list-style: none;
  width: max-content;
}
.cap-details > summary::-webkit-details-marker { display: none; }
.cap-details > summary::after {
  content: "+";
  font-size: 0.9rem;
  line-height: 1;
}
.cap-details[open] > summary::after { content: "\2212"; }
.cap-details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.cap-section-body {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.cap-section-body p { margin: 0 0 10px; }
.cap-section-body p:last-child { margin-bottom: 0; }

.cap-bullets {
  margin: 0 0 10px;
  padding-left: 20px;
}
.cap-bullets li { margin-bottom: 7px; }

.cap-note {
  color: var(--text-muted);
  font-style: italic;
}

.cap-links {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.cap-links a { color: var(--accent); }

.cap-sources {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.cap-sources li { margin-bottom: 6px; }
.cap-source-date { color: var(--text-muted); }

@media (max-width: 520px) {
  .cap-scale-value { font-size: 26px; }
  .cap-scale-label { font-size: 19px; }
  .lockout-tabs a { font-size: 0.76rem; padding: 7px 13px; }
  .lockout-filter-btn { font-size: 0.74rem; padding: 6px 12px; }
}
