/*
  X7 Education Estate strip
  Canonical source: 24_X7_ESTATE_DESIGN_SYSTEM/x7-estate.css
  Sites should package this file as /assets/x7-estate.css and load it after
  their local stylesheet.
*/

.estate-strip {
  --estate-shell: min(100% - 32px, 1180px);
  --estate-ink: #ffffff;
  --estate-muted: rgba(255, 255, 255, 0.68);
  --estate-border: rgba(255, 255, 255, 0.14);
  --estate-pill: rgba(255, 255, 255, 0.06);
  --estate-pill-hover: rgba(255, 255, 255, 0.14);
  --estate-shadow: 0 18px 42px rgba(20, 36, 31, 0.18);
  --estate-bg:
    linear-gradient(135deg, rgba(18, 118, 100, 0.28), rgba(49, 87, 164, 0.18)),
    rgba(20, 36, 31, 0.92);
  width: var(--estate-shell);
  margin: 88px auto 0;
  color: var(--estate-ink);
}

.estate-strip[data-estate-header="sticky"] {
  --estate-shell: min(100% - 40px, 1180px);
  margin-top: 14px;
}

.estate-strip[data-estate-tone="rootreboot"] {
  --estate-bg:
    linear-gradient(135deg, rgba(34, 125, 101, 0.3), rgba(207, 151, 46, 0.2)),
    rgba(16, 37, 31, 0.94);
}

.estate-strip[data-estate-tone="siliconsoil"] {
  --estate-bg:
    linear-gradient(135deg, rgba(29, 114, 92, 0.3), rgba(184, 107, 55, 0.18)),
    rgba(18, 45, 38, 0.94);
}

.estate-strip[data-estate-tone="bytebiosphere"] {
  --estate-bg:
    linear-gradient(135deg, rgba(35, 79, 128, 0.34), rgba(35, 132, 111, 0.22)),
    rgba(17, 32, 50, 0.94);
}

.estate-strip[data-estate-tone="silicalab"] {
  --estate-bg:
    linear-gradient(135deg, rgba(47, 108, 88, 0.34), rgba(39, 67, 59, 0.26)),
    rgba(18, 49, 41, 0.94);
  --estate-shadow: 0 18px 42px rgba(17, 42, 36, 0.14);
}

.estate-strip-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--estate-border);
  border-radius: 8px;
  background: var(--estate-bg);
  box-shadow: var(--estate-shadow);
}

.estate-copy {
  display: grid;
  gap: 3px;
}

.estate-copy span {
  color: var(--estate-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estate-copy strong {
  font-size: 14px;
  line-height: 1.3;
}

.estate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.estate-links a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--estate-border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: var(--estate-pill);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.estate-links a:hover,
.estate-links a:focus-visible {
  color: #ffffff;
  background: var(--estate-pill-hover);
}

@media (max-width: 900px) {
  .estate-strip,
  .estate-strip[data-estate-header="sticky"] {
    width: calc(100% - 24px);
  }

  .estate-strip {
    margin-top: 84px;
  }

  .estate-strip[data-estate-header="sticky"] {
    margin-top: 12px;
  }

  .estate-strip-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .estate-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .estate-links a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .estate-strip-inner {
    padding: 12px;
  }

  .estate-copy strong {
    font-size: 13px;
  }
}
