/* Individual group pages: orient first, then register. Directory styles stay shared. */
.sg-detail-page { --sg-detail-ink: #072952; --sg-detail-line: #dce3ec; }
.sg-detail-page .sg-hero { padding: 1.25rem 0 2.5rem; background: #072952; color: #fff; }
.sg-detail-page .breadcrumbs, .sg-detail-page .breadcrumbs a { color: #d8e3ef; }
.sg-detail-page .sg-hero-row { flex-wrap: nowrap; align-items: center; gap: 3rem; padding-top: 1.5rem; }
.sg-detail-page .sg-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; max-width: 22ch; letter-spacing: -.035em; }
.sg-detail-page .sg-hero .sg-kicker { color: #ff9fc8; }
.sg-welcome-copy { max-width: 46rem; }
.sg-welcome-lead { max-width: 49ch; margin: 1rem 0; font-size: 1.12rem; line-height: 1.6; color: #e2eaf4; }
.sg-detail-page .sg-hero-facts { color: #fff; font-size: .94rem; }
.sg-welcome-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.sg-welcome-actions > a:not(.button) { color: #fff; display: inline-flex; align-items: center; min-height: 44px; gap: .75rem; text-underline-offset: .3em; }
.sg-welcome-host { flex: 0 0 170px; display: grid; justify-items: center; gap: 1rem; text-align: center; color: #d8e3ef; text-decoration: none; font-size: .85rem; }
.sg-welcome-host img { width: 144px; height: 144px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; transition: transform 180ms ease; }
.sg-welcome-host:hover img { transform: translateY(-3px); }
.sg-welcome-host strong { display: block; margin-top: .35rem; font-size: 1rem; color: #fff; }
.sg-detail-page .sg-body { padding: 2.5rem 0; }
.sg-detail-page .sg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: clamp(2rem, 4vw, 4rem); }
.sg-detail-page .sg-main, .sg-detail-page .sg-aside { min-width: 0; width: 100%; }
.sg-detail-page #join, .sg-detail-page #visit, .sg-detail-page #your-host { scroll-margin-top: 8rem; }
.sg-detail-page .sg-main h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
.sg-detail-page .sg-main .sg-visit-title { font-size: clamp(1.7rem, 2.6vw, 2.25rem); max-width: 26ch; margin-bottom: 1.5rem; }
.sg-detail-page .sg-next { padding: 1.25rem 0 1.25rem 1.25rem; border: 0; border-left: 3px solid #d50058; border-radius: 0; background: #f8f4f7; margin-bottom: 1.5rem; }
.sg-detail-page .sg-next h2 { font-size: 1.65rem; }
.sg-detail-page .sg-next p { font-size: 1rem; line-height: 1.6; padding-right: 1rem; }
.sg-detail-page .sg-fact-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 2rem; }
.sg-detail-page .sg-fact { padding: 1.1rem 0; border: 0; border-bottom: 1px solid var(--sg-detail-line); border-radius: 0; }
.sg-detail-page .sg-fact h2 { font-size: .78rem; letter-spacing: .07em; margin: 0 0 .5rem; }
.sg-detail-page .sg-fact p { font-size: 1rem; font-weight: 500; line-height: 1.6; }
.sg-directions { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; font-weight: 700; }
.sg-detail-page .sg-routine-list { counter-reset: visit-step; gap: 0; }
.sg-detail-page .sg-routine-list li { counter-increment: visit-step; grid-template-columns: 1.75rem 1fr; gap: .2rem .75rem; padding: 1rem 0; background: none; border-radius: 0; border-bottom: 1px solid var(--sg-detail-line); }
.sg-detail-page .sg-routine-list li::before { content: counter(visit-step, decimal-leading-zero); grid-row: span 2; color: #b9004d; font-size: .85rem; font-weight: 800; }
.sg-detail-page .sg-routine-list span { grid-column: 2; font-size: .95rem; line-height: 1.55; }
.sg-detail-page .sg-host { padding: 1.5rem 0; margin: 1rem 0; border-bottom: 1px solid var(--sg-detail-line); }
.sg-detail-page .sg-host img { flex-shrink: 0; width: 64px; height: 64px; }
.sg-detail-page .sg-host h2 { font-size: 1.15rem; }
.sg-detail-page .sg-host p { font-size: .96rem; line-height: 1.65; }
.sg-detail-page .sg-host-co { margin: .25rem 0 .75rem; }
.sg-detail-page .sg-later li { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; border: 0; border-bottom: 1px solid var(--sg-detail-line); border-radius: 0; padding: .75rem 0; }
.sg-detail-page .sg-later li > span { grid-row: 2; font-size: .94rem; color: #52647b; }
.sg-detail-page .sg-later a { min-height: 44px; display: inline-flex; align-items: center; justify-content: end; }
.sg-detail-page .sg-register-card { position: static; padding: 1.75rem; border: 1px solid var(--sg-detail-line); border-top: 4px solid #d50058; border-radius: 14px; box-shadow: none; background: #f8fafc; }
.sg-detail-page .sg-register-card h2 { font-size: 1.6rem; }
.sg-detail-page .sg-form { margin-top: 1.5rem; }
.sg-detail-page .sg-form fieldset { min-width: 0; border: 0; padding: 0; margin: 1.5rem 0 0; border-radius: 0; background: none; }
.sg-detail-page .sg-form legend { font-size: 1rem; font-weight: 800; color: var(--sg-detail-ink); padding: 0 0 .75rem; }
.sg-detail-page .sg-form label { margin-bottom: 1rem; }
.sg-detail-page .sg-form input:not([type=checkbox]), .sg-detail-page .sg-form select { min-height: 48px; }
.sg-detail-page .sg-form :is(input, select, textarea):focus-visible { outline: 3px solid #ffd36a; outline-offset: 2px; border-color: #072952; }
.sg-detail-page .sg-check { min-height: 44px; align-items: flex-start; }
.sg-detail-page .sg-check input[type=checkbox] { appearance: auto; padding: 0; flex: 0 0 20px; height: 20px; accent-color: #bc0052; }
.sg-detail-page .sg-carer-choice { padding: .85rem; background: #fff; border: 1px solid var(--sg-detail-line); border-radius: 8px; }
.sg-detail-page .sg-carer-choice small, .sg-detail-page .sg-fieldset-help { font-size: .85rem; }
.sg-detail-page .sg-more { margin-top: 1.25rem; border: 0; border-top: 1px solid var(--sg-detail-line); border-bottom: 1px solid var(--sg-detail-line); border-radius: 0; padding: 0; }
.sg-detail-page .sg-more summary { min-height: 48px; }
.sg-detail-page .sg-fineprint { font-size: .82rem; line-height: 1.6; }
.sg-detail-page .sg-aside-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.sg-detail-page .sg-aside-links a { display: inline-flex; align-items: center; min-height: 44px; }
.sg-detail-page .sg-poster { border: 0; border-bottom: 1px solid var(--sg-detail-line); border-radius: 0; }
.sg-detail-page .sg-poster summary { padding-left: 0; }
@media (max-width: 900px) {
  .sg-detail-page .sg-layout { grid-template-columns: 1fr; }
  .sg-detail-page .sg-hero-row { gap: 1.5rem; }
  .sg-welcome-host { flex-basis: 130px; }
  .sg-welcome-host img { width: 110px; height: 110px; }
  .sg-detail-page .sg-hero-register { width: auto; }
}
@media (max-width: 600px) {
  .sg-detail-page .sg-hero { padding-bottom: 1.75rem; }
  .sg-detail-page .sg-hero-row { display: block; padding-top: .75rem; }
  .sg-welcome-host { display: none; } /* The host portrait and biography remain in the visit details. */
  .sg-welcome-lead { font-size: 1rem; }
  .sg-detail-page .sg-hero-facts { font-size: .88rem; }
  .sg-welcome-actions { gap: .75rem 1.25rem; }
  .sg-detail-page .sg-body { padding: 1.75rem 0; }
  .sg-detail-page .sg-register-card { padding: 1.25rem; }
  .sg-detail-page .sg-host { display: block; }
  .sg-detail-page .sg-host img { margin-bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-welcome-host img { transition: none; }
}
