/* ==========================================================================
   /css/the-sites.css
   Page-specific styling for /the-sites.html
   ========================================================================== */

body[data-page="the-sites"] .main-grid {
  gap: 18px;
}

body[data-page="the-sites"] .sites-hero {
  margin-bottom: 20px;
}

body[data-page="the-sites"] .hero-grid {
  align-items: stretch;
}

body[data-page="the-sites"] .sites-hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body[data-page="the-sites"] .sites-hero h1 > span:last-child {
  display: block;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body[data-page="the-sites"] .hero-copy {
  max-width: 67ch;
}

body[data-page="the-sites"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body[data-page="the-sites"] .hero-actions .cta-pill {
  min-width: 0;
  flex: 0 0 auto;
}

body[data-page="the-sites"] .hero-actions .hero-sites-pill .hero-pill-word,
body[data-page="the-sites"] .hero-actions .hero-sites-pill .hero-pill-dot {
  display: inline-block;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: middle;
}

body[data-page="the-sites"] .hero-actions .hero-sites-pill .hero-pill-word {
  color: var(--gold);
}

body[data-page="the-sites"] .hero-actions .hero-sites-pill .hero-pill-dot {
  color: #ffffff;
  margin: 0 0.02em;
}

body[data-page="the-sites"] .section-card,
body[data-page="the-sites"] .footer-card {
  scroll-margin-top: 108px;
}

body[data-page="the-sites"] .section-head {
  margin-bottom: 20px;
}

body[data-page="the-sites"] .sites-grid-3,
body[data-page="the-sites"] .entry-grid {
  align-items: stretch;
}

body[data-page="the-sites"] .sites-grid-3 .index-card,
body[data-page="the-sites"] .entry-grid .entry-card,
body[data-page="the-sites"] .hero-panel .index-card,
body[data-page="the-sites"] .hero-panel .quote-card {
  height: 100%;
}

body[data-page="the-sites"] .hero-panel .index-card,
body[data-page="the-sites"] .hero-panel .quote-card {
  display: flex;
  flex-direction: column;
}

body[data-page="the-sites"] .hero-panel .index-card .index-label,
body[data-page="the-sites"] .hero-panel .quote-card .quote-label {
  margin-bottom: 10px;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: none !important;
  color: var(--soft) !important;
}

body[data-page="the-sites"] .hero-panel .index-card {
  overflow: hidden;
}

body[data-page="the-sites"] .hero-panel .mini-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
}

body[data-page="the-sites"] .hero-panel .mini-pills .mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 0 18px;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
}

body[data-page="the-sites"] .hero-panel .mini-pills .mini-pill:nth-child(1),
body[data-page="the-sites"] .hero-panel .mini-pills .mini-pill:nth-child(2),
body[data-page="the-sites"] .hero-panel .mini-pills .mini-pill:nth-child(3),
body[data-page="the-sites"] .hero-panel .mini-pills .mini-pill:nth-child(4) {
  grid-column: auto;
  justify-self: stretch;
  border-color: rgba(201, 162, 39, 0.72);
}

body[data-page="the-sites"] .entry-note-lines {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

body[data-page="the-sites"] .entry-note-text {
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

body[data-page="the-sites"] .site-sequence {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="the-sites"] .site-sequence-card {
  position: relative;
  min-height: 220px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-page="the-sites"] .site-sequence-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  opacity: 0.95;
}

body[data-page="the-sites"] .phase-1-site::before {
  background: var(--phase-1);
}

body[data-page="the-sites"] .phase-2-site::before {
  background: var(--phase-2-readable);
}

body[data-page="the-sites"] .phase-3-site::before {
  background: var(--phase-3-readable);
}

body[data-page="the-sites"] .phase-4-site::before {
  background: var(--phase-4-readable);
}

body[data-page="the-sites"] .phase-5-site::before {
  background: var(--phase-5);
}

body[data-page="the-sites"] .site-sequence-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

body[data-page="the-sites"] .site-phase-tag,
body[data-page="the-sites"] .site-order-number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="the-sites"] .site-order-number {
  color: var(--soft);
}

body[data-page="the-sites"] .site-sequence-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  word-break: break-word;
}

body[data-page="the-sites"] .site-role-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

/* Site.Roles card accents */
body[data-page="the-sites"] #site-roles .entry-grid .entry-card {
  position: relative;
  overflow: hidden;
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  width: auto;
  border-radius: 22px 22px 0 0;
  opacity: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card[data-phase="1"]::before {
  background: linear-gradient(
    90deg,
    rgba(99, 131, 114, 0.2),
    var(--phase-1),
    rgba(99, 131, 114, 0.2)
  );
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card[data-phase="2"]::before {
  background: linear-gradient(
    90deg,
    rgba(156, 45, 18, 0.2),
    var(--phase-2-readable),
    rgba(156, 45, 18, 0.2)
  );
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card[data-phase="3"]::before {
  background: linear-gradient(
    90deg,
    rgba(61, 86, 119, 0.2),
    var(--phase-3-readable),
    rgba(61, 86, 119, 0.2)
  );
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card[data-phase="4"]::before {
  background: linear-gradient(
    90deg,
    rgba(73, 29, 139, 0.2),
    var(--phase-4-readable),
    rgba(73, 29, 139, 0.2)
  );
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card[data-phase="5"]::before {
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.2),
    var(--phase-5),
    rgba(201, 162, 39, 0.2)
  );
}

body[data-page="the-sites"] #site-roles .entry-grid .entry-card:last-child::before {
  background: linear-gradient(
    90deg,
    #ff5e5e 0%,
    #ff9a3c 16%,
    #f2df9b 32%,
    #7ed6a1 50%,
    #7d9fcb 68%,
    #b48cff 84%,
    #ff7fd4 100%
  );
}

/* Live.Destinations section */
body[data-page="the-sites"] #live-destinations .live-sites-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

body[data-page="the-sites"] #live-destinations .live-site-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body[data-page="the-sites"] #live-destinations .live-site-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  opacity: 0.95;
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-1 {
  color: #b8d1c3;
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-1::before {
  background: var(--phase-1);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-2 {
  color: var(--phase-2-readable);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-2::before {
  background: var(--phase-2-readable);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-3 {
  color: var(--phase-3-readable);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-3::before {
  background: var(--phase-3-readable);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-4 {
  color: var(--phase-4-readable);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-4::before {
  background: var(--phase-4-readable);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-5 {
  color: #f2df9b;
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-5::before {
  background: var(--phase-5);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-1:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 131, 114, 0.52);
  box-shadow: 0 0 0 1px rgba(99, 131, 114, 0.25), 0 0 26px rgba(99, 131, 114, 0.18);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-2:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 45, 18, 0.5);
  box-shadow: 0 0 0 1px rgba(217, 106, 75, 0.25), 0 0 26px rgba(217, 106, 75, 0.18);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-3:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 86, 119, 0.5);
  box-shadow: 0 0 0 1px rgba(125, 159, 203, 0.25), 0 0 26px rgba(125, 159, 203, 0.18);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-4:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 29, 139, 0.5);
  box-shadow: 0 0 0 1px rgba(180, 140, 255, 0.25), 0 0 26px rgba(180, 140, 255, 0.18);
}

body[data-page="the-sites"] #live-destinations .live-site-card.phase-5:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.58);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25), 0 0 26px rgba(201, 162, 39, 0.18);
}

body[data-page="the-sites"] .footer-label .gold-dot,
body[data-page="the-sites"] .spine-nav .gold-dot,
body[data-page="the-sites"] #live-destinations .live-site-card .gold-dot {
  display: inline-block;
  margin-inline: 0.14em;
}

body[data-page="the-sites"] .footer-card .footer-label .gold-dot {
  margin-inline: 0 !important;
}

body[data-page="the-sites"] .footer-card .spine-nav .phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  list-style: none;
  white-space: nowrap;
}

body[data-page="the-sites"] .footer-card .spine-nav .phase-chip::before,
body[data-page="the-sites"] .footer-card .spine-nav .phase-chip::after,
body[data-page="the-sites"] .footer-card .spine-nav .phase-chip::marker {
  content: none !important;
  display: none !important;
}

body[data-page="the-sites"] .footer-card .spine-nav .phase-chip .chip-bullet {
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
  margin-right: 0.5rem;
  flex: 0 0 auto;
}

body[data-page="the-sites"] .footer-card .spine-nav .phase-chip .chip-word,
body[data-page="the-sites"] .footer-card .spine-nav .phase-chip .chip-dot {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

body[data-page="the-sites"] .footer-card .spine-nav .phase-chip .chip-word {
  letter-spacing: 0.14em;
  color: currentColor;
}

body[data-page="the-sites"] .footer-card .spine-nav .phase-chip .chip-dot {
  color: #ffffff;
  letter-spacing: 0;
  margin: 0 0.18em;
  padding: 0;
}

body[data-page="the-sites"] .entry-card p:last-of-type,
body[data-page="the-sites"] .index-card p:last-of-type {
  margin-bottom: 0;
}

body[data-page="the-sites"] .footer-card {
  margin-top: 20px;
}

@media (max-width: 1120px) {
  body[data-page="the-sites"] .hero-grid,
  body[data-page="the-sites"] .sites-grid-3,
  body[data-page="the-sites"] .entry-grid,
  body[data-page="the-sites"] .site-sequence {
    align-items: stretch;
  }

  body[data-page="the-sites"] .site-sequence {
    grid-template-columns: 1fr;
  }

  body[data-page="the-sites"] #live-destinations .live-sites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-page="the-sites"] .sites-hero {
    margin-bottom: 18px;
  }

  body[data-page="the-sites"] .sites-hero h1 > span:last-child {
    white-space: normal;
  }

  body[data-page="the-sites"] .hero-actions {
    align-items: stretch;
  }

  body[data-page="the-sites"] .hero-actions .cta-pill {
    width: 100%;
    min-width: 0;
  }

  body[data-page="the-sites"] .hero-panel .mini-pills {
    grid-template-columns: 1fr;
  }

  body[data-page="the-sites"] .site-sequence-card {
    min-height: 0;
  }

  body[data-page="the-sites"] #live-destinations .live-sites-grid {
    grid-template-columns: 1fr;
  }
}