/* ============================================================
   LawTech AI — RYI page additions
   Modular structure from NAA reference; visual system from conf_summit.
   Relies on components.css for section / nav / form / card patterns.
   ============================================================ */

html.ConfSummit .ryi-site-header .nav-brand-logo {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

html.ConfSummit .ryi-landing + .footer .footer-brand-logo,
html.ConfSummit body:has(.ryi-landing) .footer-brand-logo {
  height: auto;
  max-height: 120px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
}

html.ConfSummit .ryi-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1100;
  padding: 12px 16px;
  background: var(--cyan);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
}

html.ConfSummit .ryi-skip-link:focus {
  left: 8px;
}

html.ConfSummit body:has(.ryi-landing) {
  background: var(--ink);
}

html.ConfSummit .ryi-landing {
  background: var(--ink);
  color: var(--fg);
}

html.ConfSummit .ryi-landing #about,
html.ConfSummit .ryi-landing #why-attend,
html.ConfSummit .ryi-landing #highlights,
html.ConfSummit .ryi-landing #register,
html.ConfSummit .ryi-landing #top {
  scroll-margin-top: 96px;
}

/* Hero — same homepage .hero layout; RYI logo + copy only */
html.ConfSummit .ryi-landing .hero.ryi-hero {
  position: relative;
}

html.ConfSummit .ryi-hero .hero-title-img {
  margin-bottom: 20px;
}

html.ConfSummit .ryi-hero .ryi-hero-kicker {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  max-width: 640px;
  margin-bottom: 12px;
}

html.ConfSummit .ryi-hero .hero-subtitle {
  margin-bottom: 20px;
  max-width: 620px;
}

/* Overview copy width */
html.ConfSummit .ryi-overview-copy {
  max-width: 760px;
}

html.ConfSummit .ryi-overview-copy p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.1em;
}

html.ConfSummit .ryi-overview-copy p:first-child {
  color: var(--fg);
  font-size: 1.15rem;
}

html.ConfSummit .ryi-overview-closing {
  max-width: 720px;
  margin-top: 2rem;
}

/* Benefits — support 4-up while matching Lawtech cards */
html.ConfSummit .ryi-benefits-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.ConfSummit .ryi-benefits-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.ConfSummit .ryi-benefit-number {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(21, 184, 255, 0.18), rgba(6, 65, 141, 0.22));
}

/* Gallery */
html.ConfSummit .ryi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

html.ConfSummit .ryi-gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

html.ConfSummit .ryi-gallery-card img,
html.ConfSummit .ryi-gallery-card .ryi-gallery-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

html.ConfSummit .ryi-gallery-card figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

html.ConfSummit .ryi-gallery-captions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--faint);
}

/* Form layout — intro + Lawtech form wrap */
html.ConfSummit .ryi-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

html.ConfSummit .ryi-form-intro {
  text-align: center;
}

html.ConfSummit .ryi-form-intro .section-label {
  justify-content: center;
}

html.ConfSummit .ryi-form-intro .section-title {
  margin-left: auto;
  margin-right: auto;
}

html.ConfSummit .ryi-form-lede {
  max-width: 620px;
  margin: 0 auto;
}

html.ConfSummit .ryi-form-lede p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1em;
}

html.ConfSummit .ryi-form-lede p:first-child {
  color: var(--fg);
  font-size: 1.15rem;
}

html.ConfSummit .ryi-form-highlights {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

html.ConfSummit .ryi-form-note {
  margin-top: 1rem !important;
}

html.ConfSummit .ryi-landing .contact-form-wrap {
  width: 100%;
}

@media (min-width: 960px) {
  html.ConfSummit .ryi-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    max-width: 1100px;
    align-items: start;
    gap: 3.5rem;
  }

  html.ConfSummit .ryi-form-intro {
    text-align: left;
  }

  html.ConfSummit .ryi-form-intro .section-label {
    justify-content: flex-start;
  }

  html.ConfSummit .ryi-form-intro .section-title {
    margin-left: 0;
    margin-right: 0;
  }

  html.ConfSummit .ryi-form-lede {
    margin: 0;
  }
}

@media (max-width: 1099px) {
  html.ConfSummit .ryi-benefits-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  html.ConfSummit .ryi-benefits-grid--4,
  html.ConfSummit .ryi-benefits-grid--2,
  html.ConfSummit .ryi-gallery-grid {
    grid-template-columns: 1fr;
  }

  html.ConfSummit .ryi-hero-actions {
    flex-direction: column;
  }

  html.ConfSummit .ryi-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
