/* Home page — light widgets */

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: fit-content;
  max-width: 100%;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s,
    opacity 0.15s;
}

.hero-actions .button--primary {
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  padding: 10px 18px;
}

.hero-actions .button--primary:hover {
  background: var(--orange-deep);
}

.hero-actions .button--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.35);
}

.hero-actions .button--secondary:hover {
  border-color: #fff;
}

.hero-actions .button--ghost {
  background: rgb(255 255 255 / 0.1);
  color: #e8e4de;
}

.hero-actions .button--ghost:hover {
  background: rgb(255 255 255 / 0.16);
}

.home-widgets {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.home-widget {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 32rem;
  border: 1px solid var(--grey-rule);
  background: #fff;
}

.home-widget__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--grey-rule);
  flex-wrap: wrap;
}

.home-widget__title {
  font-family: var(--head);
  font-size: 17px;
  font-weight: bold;
  color: var(--black);
}

.home-widget__meta {
  font-family: var(--head);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-meta);
}

.home-widget__body {
  padding: 8px 0 4px;
  flex: 1;
  min-height: 0;
}

.home-widget__body--scroll {
  max-height: 24rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  scrollbar-gutter: auto;
}

.home-widget__body--scroll .widget-status {
  padding: 18px 22px;
}

.home-widget__foot {
  flex-shrink: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--grey-light);
  background: var(--grey-light);
}

.home-widget__link {
  font-family: var(--head);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--orange-deep);
  text-decoration: none;
}

.home-widget__link:hover {
  color: var(--black);
}

.home-widget__illus {
  font-family: var(--body);
  font-size: 11.5px;
  font-style: italic;
  color: var(--grey-meta);
  margin-top: 10px;
}

.home-widget__foot--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.home-widget__teaser {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-static);
  margin: 0;
}

.home-widget__cta {
  font-family: var(--head);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
}

.home-widget__cta:hover {
  background: var(--orange-deep);
}

.widget-status {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-static);
  padding: 18px 22px;
  margin: 0;
}

.widget-status--error {
  color: var(--orange-deep);
}

/* News feed (public API) */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--grey-light);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__date {
  display: block;
  font-family: var(--head);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-meta);
  margin-bottom: 8px;
}

.news-item__title {
  font-family: var(--head);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--black);
  margin: 0 0 10px;
}

.news-item__summary {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.58;
  color: var(--grey-static);
  margin: 0;
}

.news-item__more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--grey-rule);
}

.news-item__ellipsis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.news-item__ellipsis span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.85;
}

.news-item__ellipsis span:nth-child(2) {
  opacity: 0.55;
}

.news-item__ellipsis span:nth-child(3) {
  opacity: 0.35;
}

.news-item__unlock {
  font-family: var(--head);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--orange-deep);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1.35;
  transition: color 0.15s;
}

.news-item__unlock:hover {
  color: var(--black);
}

/* League tables widget (tabs) */
.league-widget__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--grey-rule);
  background: var(--grey-light);
  position: sticky;
  top: 0;
  z-index: 1;
}

.league-tab {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--head);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--grey-static);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 11px 4px;
  margin-bottom: -1px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}

.league-tab:hover {
  color: var(--black);
}

.league-tab[aria-selected="true"] {
  color: var(--black);
  border-bottom-color: var(--orange);
  background: #fff;
}

.league-tab-panel {
  display: none;
}

.league-tab-panel.is-active {
  display: block;
}

.league-mini--widget {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.league-mini--widget th {
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-meta);
  text-align: left;
  padding: 12px 22px 10px;
  border-bottom: 1px solid var(--grey-rule);
  font-weight: normal;
}

.league-mini--widget td {
  font-family: var(--body);
  font-size: 14px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--ink);
}

.league-mini--widget tr:last-child td {
  border-bottom: none;
}

.league-mini--widget td.league-rank {
  width: 2.5rem;
  font-family: var(--head);
  font-weight: bold;
  color: var(--orange);
}

.league-mini--widget .league-name {
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Editorial feed */
.intel-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--grey-light);
}

.intel-item:last-child {
  border-bottom: none;
}

.intel-item__tag {
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.intel-item__text {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.intel-item__text strong {
  color: var(--black);
}

/* Compact league */
.league-mini {
  width: 100%;
  border-collapse: collapse;
}

.league-mini th {
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-meta);
  text-align: left;
  padding: 10px 22px;
  font-weight: normal;
  border-bottom: 1px solid var(--grey-rule);
}

.league-mini th.num,
.league-mini td.num {
  text-align: right;
}

.league-mini td {
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--ink);
}

.league-mini tr:last-child td {
  border-bottom: none;
}

.league-mini .league-rank {
  width: 32px;
  font-family: var(--head);
  font-weight: bold;
  color: var(--orange);
}

.league-mini .league-locked {
  width: 120px;
  height: 11px;
}

/* Quick explore */
.home-explore {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 48px;
}

.home-explore__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-rule);
  border: 1px solid var(--grey-rule);
}

.home-explore__card {
  background: #fff;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.home-explore__card:hover {
  background: var(--grey-light);
}

.home-explore__label {
  font-family: var(--head);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.home-explore__title {
  font-family: var(--head);
  font-size: 17px;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.25;
}

.home-explore__body {
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--grey-static);
  margin-bottom: 14px;
  flex: 1;
}

.home-explore__arrow {
  font-family: var(--head);
  font-size: 12px;
  font-weight: bold;
  color: var(--orange-deep);
}

.home-cta-band {
  max-width: var(--wide);
  margin: 0 auto 64px;
  padding: 0 48px;
}

.home-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  background: var(--black);
  color: #fff;
}

.home-cta-band__text h2 {
  font-family: var(--head);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 8px;
}

.home-cta-band__text p {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: #c2beb7;
  max-width: 36rem;
  margin: 0;
}

.home-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-cta-band__actions .button--primary {
  background: var(--orange);
  color: #fff;
}

.home-cta-band__actions .button--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.35);
}

/* League widget: keep Party beside rank (overrides .league-mini below) */
.league-mini.league-mini--widget .league-col-rank {
  width: 2.75rem;
}

.league-mini.league-mini--widget th.league-rank,
.league-mini.league-mini--widget td.league-rank {
  width: 2.75rem;
  white-space: nowrap;
  padding-right: 10px;
  text-align: left;
}

.league-mini.league-mini--widget th.league-name,
.league-mini.league-mini--widget td.league-name {
  text-align: left;
  padding-left: 12px;
}

@media (max-width: 1024px) {
  .home-widgets {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }

  .home-explore {
    padding: 0 20px 48px;
  }

  .home-explore__grid {
    grid-template-columns: 1fr;
  }

  .home-cta-band {
    padding: 0 20px 48px;
  }

  .home-cta-band__inner {
    padding: 28px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
