/* Spin-off calendar — shares the terminal skin, adds a dated event table. */

[hidden] { display: none !important; }

.page-hero--spinoffs {
  background:
    radial-gradient(680px 300px at 88% 6%, rgba(192, 132, 252, 0.055), transparent 70%),
    #050505;
}

.page-hero--spinoffs h1 { max-width: 17ch; }

.sp-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #7c7c7c;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sp-hero-foot-sep { color: #444; }
.sp-hero-foot strong { color: #b98a3a; font-weight: 500; }

.sp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 20px;
  border-bottom: 1px solid #242424;
}

.sp-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.sp-tab:hover { color: #e6e6e6; }

.sp-tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sp-tab-count {
  padding: 0 5px;
  border: 1px solid #333;
  background: #111;
  color: #9a9a9a;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.sp-tab[aria-selected="true"] .sp-tab-count {
  color: var(--accent);
  border-color: #5a4522;
  background: rgba(255, 158, 27, 0.06);
}

.sp-table { min-width: 1140px; }

.sp-table th:nth-child(1) { width: 128px; }
.sp-table th:nth-child(2) { width: 236px; }
.sp-table th:nth-child(3) { width: 92px; }
.sp-table th:nth-child(4) { width: 112px; }
.sp-table th:nth-child(6) { width: 140px; }

.sp-table .td-details {
  width: auto;
  min-width: 300px;
  max-width: none;
}

.sp-table .td-market {
  width: 92px;
  white-space: normal;
}

.sp-row { cursor: pointer; }

.sp-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.sp-keydate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sp-date-main {
  color: #f0f0f0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: nowrap;
}

.sp-date-main--none {
  color: #8a8a8a;
  font-weight: 500;
}

.sp-relative {
  color: #b98a3a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.sp-datetype {
  color: #777;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-chip--confirmed {
  color: var(--green);
  border-color: rgba(61, 220, 132, 0.35);
  background: rgba(61, 220, 132, 0.06);
}

.sp-chip--window {
  color: var(--amber);
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.07);
}

.sp-chip--tba {
  color: #9a9a9a;
  border-color: #3a3a3a;
  background: #0f0f0f;
}

.sp-chip--completed {
  color: #6cb6ff;
  border-color: rgba(108, 182, 255, 0.32);
  background: rgba(108, 182, 255, 0.07);
}

.sp-company { display: block; }

.sp-parent-name {
  display: block;
  color: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.sp-spinco-line {
  display: block;
  margin-top: 2px;
  color: #c6c6c6;
  font-size: 12px;
  line-height: 1.5;
}

.sp-arrow {
  padding-right: 3px;
  color: var(--accent);
}

.sp-spinco-name { font-weight: 600; }

.sp-ticker {
  display: inline-block;
  margin-left: 5px;
  padding: 0 4px;
  border: 1px solid #333;
  background: #111;
  color: #ffb347;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  vertical-align: 1px;
}

.sp-exchange {
  display: block;
  margin-top: 3px;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.sp-status {
  display: block;
  color: #d8d8d8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sp-status-note {
  display: block;
  margin-top: 1px;
  color: #777;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
}

.sp-detail {
  display: block;
  color: #bcbcbc;
  font-size: 12px;
  line-height: 1.6;
}

.sp-detail-meta {
  display: block;
  margin-top: 5px;
  color: #666;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.sp-src {
  display: block;
  color: #56d4dd;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(86, 212, 221, 0.35);
  overflow-wrap: anywhere;
}

.sp-src + .sp-src { margin-top: 5px; }
.sp-src:hover { color: #a7f0f5; }

.sp-src--locked {
  color: #7a6a4a;
  text-decoration: none;
  cursor: default;
}

.sp-table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 0;
  color: #777;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.sp-table-foot strong { color: #c6c6c6; font-weight: 500; }

/* Event drawer */
.sp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.sp-drawer-open .sp-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(560px, 94vw);
  overflow-y: auto;
  background: #080808;
  border-left: 1px solid #2a2a2a;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  transition: transform 0.24s ease;
  outline: none;
}

body.sp-drawer-open .sp-drawer { transform: none; }

.sp-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: #0a0a0a;
  border-bottom: 1px solid #242424;
}

.sp-drawer-kicker {
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid #333;
  background: #101010;
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.sp-drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sp-drawer-body { padding: 22px 22px 40px; }

.sp-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.sp-drawer h2 {
  margin: 0 0 8px;
  color: #f5f5f5;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sp-drawer-arrow {
  color: var(--accent);
  font-weight: 400;
}

.sp-drawer-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.sp-drawer-lede {
  color: #c6c6c6;
  font-size: 13px;
  line-height: 1.7;
}

.sp-drawer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  border: 1px solid #262626;
  background: #0a0a0a;
}

.sp-drawer-meta > div {
  padding: 10px 12px;
  border-right: 1px solid #262626;
  border-bottom: 1px solid #262626;
}

.sp-drawer-meta > div:nth-child(2n) { border-right: 0; }
.sp-drawer-meta > div:nth-last-child(-n + 2) { border-bottom: 0; }

.sp-dm-label {
  display: block;
  color: #777;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-dm-value {
  display: block;
  margin-top: 3px;
  color: #e0e0e0;
  font-size: 11.5px;
  line-height: 1.5;
}

.sp-drawer-section { margin-top: 24px; }

.sp-drawer-section h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-drawer-section p {
  color: #a8a8a8;
  font-size: 12px;
  line-height: 1.7;
}

.sp-src-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #242424;
}

.sp-src-list li {
  padding: 9px 0;
  border-bottom: 1px solid #1e1e1e;
}

.sp-src-list a {
  color: #56d4dd;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(86, 212, 221, 0.35);
}

.sp-src-list a:hover { color: #a7f0f5; }

.sp-src-list span {
  display: block;
  margin-top: 2px;
  color: #777;
  font-family: var(--mono);
  font-size: 9px;
}

.sp-drawer-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 176, 32, 0.05);
  color: #c9a25d;
  font-size: 10.5px;
  line-height: 1.65;
}

.sp-drawer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.sp-drawer-fine {
  margin-top: 16px;
  color: #666;
  font-size: 9.5px;
  line-height: 1.6;
}

/* Supporting sections */
.sp-section {
  padding: 44px var(--gutter);
  border-bottom: 1px solid #242424;
}

.sp-section .database-heading { margin-bottom: 18px; }

.sp-section-note {
  max-width: 760px;
  color: #8f8f8f;
  font-size: 12.5px;
  line-height: 1.7;
}

.sp-method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid #262626;
  background: #080808;
}

.sp-method article {
  padding: 18px;
  border-right: 1px solid #262626;
}

.sp-method article:last-child { border-right: 0; }

.sp-method h3 {
  margin: 10px 0 6px;
  color: #f0f0f0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sp-method p {
  color: #8f8f8f;
  font-size: 11px;
  line-height: 1.65;
}

.sp-scope {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #262626;
  background: #0a0a0a;
  color: #8f8f8f;
  font-size: 11px;
  line-height: 1.7;
}

.sp-scope strong {
  color: #c6c6c6;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .sp-method { grid-template-columns: 1fr 1fr; }
  .sp-method article { border-bottom: 1px solid #262626; }
  .sp-method article:nth-child(2n) { border-right: 0; }
  .sp-method article:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  .sp-hero-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sp-hero-foot-sep { display: none; }

  /* Compact event cards instead of a sideways-scrolling table. */
  .sp-table {
    display: block;
    min-width: 0;
  }

  .sp-table thead { display: none; }
  .sp-table tbody { display: block; }

  .sp-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 14px;
  }

  .sp-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .sp-table th + th,
  .sp-table td + td { border-left: 0; }

  .sp-table .td-date { grid-column: 1; grid-row: 1; }
  .sp-table .td-market {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    text-align: right;
  }
  .sp-table .td-company {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    max-width: none;
  }
  .sp-table td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .sp-table .td-details {
    grid-column: 1 / -1;
    grid-row: 4;
    min-width: 0;
  }
  .sp-table .td-source {
    grid-column: 1 / -1;
    grid-row: 5;
    padding-top: 9px;
    border-top: 1px solid #1e1e1e;
  }

  .sp-table tbody tr:hover td { background: transparent; }
  .sp-table tbody tr:hover td:first-child { box-shadow: none; }
  .sp-table tbody tr:nth-child(even) td { background: transparent; }
  .sp-table tbody tr + tr { border-top: 1px solid #1e1e1e; }

  .sp-keydate {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
  }

  .sp-date-main { font-size: 14px; }
  .sp-exchange { display: inline; margin-top: 0; margin-left: 4px; }

  .sp-table td:nth-child(4) .sp-status,
  .sp-table td:nth-child(4) .sp-status-note {
    display: inline;
  }
  .sp-table td:nth-child(4) .sp-status-note { margin-left: 6px; }

  .sp-table .td-source .sp-src {
    display: inline-block;
    margin-right: 12px;
  }
  .sp-src + .sp-src { margin-top: 0; }
}

@media (max-width: 640px) {
  .sp-method { grid-template-columns: 1fr; }
  .sp-method article {
    border-right: 0;
    border-bottom: 1px solid #262626;
  }
  .sp-method article:last-child { border-bottom: 0; }
  .sp-drawer-body { padding: 18px 16px 32px; }
  .sp-drawer-head { padding: 12px 16px; }
  .sp-drawer h2 { font-size: 21px; }
}
