/* Shared alignment and original-logo presentation for native public pages.
   Load after the page-specific styles. Reading text and form fields retain
   their natural alignment; the existing split heroes and sky stay intact. */
.sj-refined {
  --focus-content-width: 1160px;
  --focus-editorial-width: 820px;
  --focus-logo-size: 64px;
}
.sj-refined :is(.container, .sj-nav) {
  max-width: var(--focus-content-width);
  margin-inline: auto;
}
.sj-refined :is(.sj-nav-brand, .footer-brand .brand) {
  gap: 12px;
  align-items: center;
}
.sj-refined :is(.sj-nav-brand img, .footer-brand .brand img) {
  box-sizing: border-box;
  width: var(--focus-logo-size) !important;
  height: var(--focus-logo-size) !important;
  flex: 0 0 var(--focus-logo-size) !important;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  padding: 3px;
  border: 1px solid #d1b58d;
  border-radius: 50%;
  background: #f8f4ed;
  box-shadow: 0 0 0 3px rgb(232 197 141 / 8%) !important;
}
.sj-refined :is(.sj-nav-name, .footer-brand .brand > span) {
  min-width: 0;
  text-align: left;
}
.sj-refined .sj-nav-name {
  line-height: 1.2;
}
.sj-refined .sj-nav-name small {
  line-height: 1.4;
}
/* Equal outside columns keep the primary navigation on the content axis. */
@media (min-width: 1100px) {
  .sj-refined .sj-nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
  }
  .sj-refined .sj-nav > .sj-nav-book { justify-self: end; }
  .sj-refined .sj-nav-links { gap: 4px !important; }
  .sj-refined .sj-nav-links a { padding-inline: 11px; }
}
/* Center the introduction once, rather than individually offsetting titles. */
.sj-refined :is(.page-intro, .section-heading, .sj-v3-heading,
  .sj-form-head, .sj-focus-intro-copy, .sj-focus-after) {
  text-align: center;
}
.sj-refined :is(.page-intro h1, .page-intro .intro-copy,
  .section-heading h2, .section-heading > p) {
  margin-inline: auto;
}
.sj-refined .page-intro h1 { max-width: 960px; }
.sj-refined .page-intro .intro-copy { max-width: 680px; }
.sj-refined .section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.sj-refined .section-heading > div { flex: initial; }
.sj-refined .section-heading h2 { max-width: var(--focus-editorial-width); }
.sj-refined .section-heading > p {
  max-width: 680px;
  margin-block: 0;
}
.sj-refined :is(.page-intro, .section-heading, .sj-v3-heading,
  .sj-form-head, .sj-focus-intro-copy, .sj-focus-after) > .eyebrow,
.sj-refined .section-heading > div > .eyebrow {
  justify-content: center;
}
.sj-refined .section-heading > .focus-button-row {
  justify-content: center;
  margin-block: 0;
}
/* One card rhythm across formats and books; bottom actions share a baseline. */
.sj-refined :is(.service-grid, .book-grid, .format-grid, .framework-grid) {
  align-items: stretch;
}
.sj-refined :is(.service-card, .book-card, .format-grid > article, .lens) {
  min-width: 0;
  text-align: center;
}
.sj-refined :is(.service-card, .book-card, .format-grid > article) {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sj-refined .service-card .card-top { justify-content: center; }
.sj-refined :is(.service-card, .book-card, .format-grid > article) > .focus-text-row {
  align-self: center;
  justify-content: center;
  margin-top: auto;
}
.sj-refined .book-card .book-meta { align-items: center; }
.sj-refined .lens > p { margin-inline: auto; }
.sj-refined .book-image {
  flex-shrink: 0;
  margin-inline: 0;
}
.sj-refined :is(.book-card, .service-card, .format-grid > article) h3 {
  overflow-wrap: anywhere;
}
/* Give each closing invitation the same centered composition. */
.sj-refined :is(.contact-band-inner, .bulk-inner) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}
.sj-refined :is(.contact-band-inner, .bulk-inner) > div {
  max-width: var(--focus-editorial-width);
  min-width: 0;
}
.sj-refined :is(.contact-band-inner, .bulk-inner) h2 {
  max-width: var(--focus-editorial-width);
  margin-inline: auto;
  margin-bottom: 0;
}
.sj-refined :is(.contact-band-inner, .bulk-inner) .eyebrow {
  justify-content: center;
}
.sj-refined :is(.contact-band-inner, .bulk-inner) > .focus-button-row {
  justify-content: center;
  margin-top: 0;
}
.sj-refined .bulk-inner h2 { margin-bottom: 20px; }
.sj-refined .bulk-inner .button { margin-top: 0; }
/* The footer reuses the original crest and has one consistent column rhythm. */
.sj-refined .footer-main { gap: clamp(28px, 4vw, 56px); }
.sj-refined .footer-brand { text-align: center; }
.sj-refined .footer-brand .brand { justify-content: center; }
.sj-refined .footer-brand .brand strong { font-size: 22px; }
.sj-refined .footer-brand > p { max-width: 34ch; margin-inline: auto; }
.sj-refined .footer-email { justify-content: center; }
.sj-refined .footer-links { align-items: center; text-align: center; }
.sj-refined .footer-updates { width: 100%; margin-inline: auto; }
.sj-refined .footer-updates > :is(h2, p) { text-align: center; }
.sj-refined .footer-bottom {
  justify-content: center;
  text-align: center;
}
.sj-refined .footer-bottom > div {
  justify-content: center;
  margin-left: 0;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .sj-refined :is(.service-grid, .book-grid) > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 1100px) {
  .sj-refined .sj-v3-proof-heading {
    justify-self: center;
    text-align: center;
    margin-inline: auto;
  }
  .sj-refined .sj-v3-proof-heading > .eyebrow {
    justify-content: center;
  }
  .sj-refined .sj-v3-proof-actions { justify-content: center; }
}
@media (max-width: 760px) {
  .sj-refined { --focus-logo-size: 56px; }
  .sj-refined .sj-nav-panel { left: 0; right: 0; margin-inline: auto; }
  .sj-refined :is(.page-intro, .section-heading) h1,
  .sj-refined .section-heading h2 { max-width: 100%; }
  .sj-refined :is(.section-heading, .contact-band-inner, .bulk-inner) { gap: 22px; }
  .sj-refined .footer-links { justify-items: center; }
  .sj-refined .footer-links h2 { justify-self: center; }
  .sj-refined .footer-bottom { align-items: center; }
  .sj-refined :is(.about-image, .about-page-image, .story-equation) {
    margin-inline: auto;
  }
  .sj-refined :is(.hero-copy, .sj-focus-headline, .v4-book-intro) {
    text-align: center;
  }
  .sj-refined :is(.hero-copy, .sj-focus-headline, .v4-book-intro) > .eyebrow {
    justify-content: center;
  }
  .sj-refined :is(.hero-actions, .hero-caption, .sj-focus-hero-ctas,
    .v4-hero-eyeline, .v4-book-hint, .sj-result-actions) {
    justify-content: center;
  }
  .sj-refined :is(.hero-description, .sj-focus-headline > p) {
    margin-inline: auto;
  }
}
@media (max-width: 359px) {
  .sj-refined { --focus-logo-size: 48px; }
  .sj-refined :is(.sj-nav-brand, .footer-brand .brand) { gap: 9px; }
  .sj-refined .footer-brand .brand strong { font-size: 20px; }
}
