/* Stellar Apps Hub — design system */
:root {
  --stellar-navy: #0B1F3A;
  --stellar-navy-2: #132A4A;
  --stellar-accent: #7EB6FF;
  --stellar-surface: #F7F9FC;
  --stellar-card: #ffffff;
  --stellar-text: #0F172A;
  --stellar-muted: #5B6B7C;
  --stellar-radius: 12px;
  --stellar-shadow: 0 25px 60px rgba(11, 31, 58, 0.35);
  --stellar-font-display: "Sora", system-ui, sans-serif;
  --stellar-font-body: "DM Sans", system-ui, sans-serif;
}

.stellar-site,
.stellar-site * {
  box-sizing: border-box;
}

.stellar-site {
  font-family: var(--stellar-font-body);
  color: var(--stellar-text);
  font-size: 18px;
  line-height: 1.55;
  background: var(--stellar-surface);
}

.stellar-site h1,
.stellar-site h2,
.stellar-site h3,
.stellar-chapter__title {
  font-family: var(--stellar-font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

.stellar-kicker {
  font-family: var(--stellar-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stellar-accent);
  margin: 0 0 0.75rem;
}

.stellar-kicker--dark {
  color: #3B6FA8;
}

/* Buttons */
.stellar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--stellar-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.stellar-btn--primary {
  background: var(--stellar-accent);
  color: var(--stellar-navy) !important;
}

.stellar-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 182, 255, 0.35);
}

.stellar-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.stellar-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stellar-btn--ghost-dark {
  background: transparent;
  color: var(--stellar-navy) !important;
  border-color: rgba(11, 31, 58, 0.2);
}

.stellar-btn--small {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.stellar-store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.stellar-text-link {
  color: #2F6FB5;
  font-weight: 600;
  text-decoration: none;
}

/* Hero */
.stellar-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--stellar-navy) 0%, var(--stellar-navy-2) 55%, #1a3a63 100%);
  color: #fff;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem 4rem;
}

.stellar-hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 55% 22%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 88% 35%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 85%, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.stellar-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.stellar-hero__title {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  color: #fff;
  max-width: 14ch;
}

.stellar-hero__lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.stellar-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stellar-hero__visual {
  display: flex;
  justify-content: center;
}

/* Phone frame */
.stellar-phone {
  width: min(280px, 70vw);
  filter: drop-shadow(var(--stellar-shadow));
}

.stellar-phone--landscape {
  width: min(420px, 88vw);
}

.stellar-phone--tilt {
  transform: rotate(6deg);
}

.stellar-phone--landscape.stellar-phone--tilt {
  transform: rotate(-8deg);
}

.stellar-phone--float {
  animation: stellar-float 7s ease-in-out infinite;
}

@keyframes stellar-float {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-6px) rotate(6deg); }
}

.stellar-phone--landscape.stellar-phone--float {
  animation-name: stellar-float-land;
}

@keyframes stellar-float-land {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-6px) rotate(-8deg); }
}

.stellar-phone__bezel {
  background: #0a0a0c;
  border-radius: 36px;
  padding: 10px;
  border: 2px solid #2a2a30;
}

.stellar-phone--landscape .stellar-phone__bezel {
  border-radius: 28px;
  padding: 8px;
}

.stellar-phone__notch {
  width: 34%;
  height: 10px;
  background: #0a0a0c;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 6px;
}

.stellar-phone--landscape .stellar-phone__notch {
  display: none;
}

.stellar-phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 19.5;
}

.stellar-phone--landscape .stellar-phone__screen {
  aspect-ratio: 19.5 / 9;
  border-radius: 18px;
}

.stellar-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stellar-phone-stack {
  position: relative;
  width: min(320px, 75vw);
  height: 560px;
}

.stellar-phone-stack .stellar-phone--back {
  position: absolute;
  right: 0;
  top: 40px;
  width: 78%;
  opacity: 0.9;
  transform: rotate(12deg);
  z-index: 1;
}

.stellar-phone-stack .stellar-phone--front {
  position: absolute;
  left: 0;
  top: 0;
  width: 86%;
  z-index: 2;
}

/* Chapters */
.stellar-showcase {
  background: var(--stellar-navy);
}

.stellar-chapter {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 1.5rem;
  background: linear-gradient(160deg, var(--stellar-navy) 0%, var(--stellar-navy-2) 100%);
}

.stellar-chapter__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--stellar-accent) 28%, transparent), transparent 55%),
    var(--stellar-atm, none) center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.stellar-chapter__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.stellar-chapter--reverse .stellar-chapter__inner {
  direction: rtl;
}

.stellar-chapter--reverse .stellar-chapter__inner > * {
  direction: ltr;
}

.stellar-chapter__title {
  font-size: clamp(2rem, 4vw, 3.75rem);
  color: #fff;
}

.stellar-chapter__story {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.stellar-chapter__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Trust */
.stellar-trust {
  background: #0a1830;
  color: rgba(255, 255, 255, 0.85);
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stellar-trust__inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.stellar-trust__dot {
  opacity: 0.5;
}

/* Light sections (default) */
.stellar-all-apps,
.stellar-why,
.stellar-single-story,
.stellar-single-body,
.stellar-faq,
.stellar-single-cta,
.stellar-single-shots {
  padding: 4.5rem 1.5rem;
  background: var(--stellar-surface);
}

/* Home + app pages: no white bands */
.stellar-site .stellar-all-apps,
.stellar-site .stellar-why,
.stellar-single .stellar-single-story,
.stellar-single .stellar-single-body,
.stellar-single .stellar-faq,
.stellar-single .stellar-single-cta,
.stellar-single .stellar-single-shots,
.stellar-single .stellar-all-apps {
  background: var(--stellar-navy);
  color: rgba(255, 255, 255, 0.9);
}

.stellar-site .stellar-all-apps .stellar-kicker--dark,
.stellar-site .stellar-why .stellar-kicker--dark,
.stellar-single .stellar-kicker--dark {
  color: var(--stellar-accent);
}

.stellar-site .stellar-all-apps h2,
.stellar-site .stellar-why h2,
.stellar-site .stellar-why__card h3,
.stellar-single .stellar-section-head h2,
.stellar-single .stellar-single-cta h2,
.stellar-single .stellar-card__title,
.stellar-single .stellar-faq__item summary {
  color: #fff;
}

.stellar-site .stellar-text-link {
  color: var(--stellar-accent);
}

.stellar-site .stellar-all-apps .stellar-card,
.stellar-site .stellar-why__card,
.stellar-single .stellar-faq__item,
.stellar-single .stellar-card {
  background: #173556;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stellar-site .stellar-all-apps .stellar-card__title,
.stellar-site .stellar-all-apps .stellar-card__tagline,
.stellar-site .stellar-why__card p,
.stellar-single .stellar-lead,
.stellar-single .stellar-faq__item p,
.stellar-single .stellar-legal-links,
.stellar-single .stellar-card__blurb,
.stellar-single .stellar-card__tagline {
  color: rgba(255, 255, 255, 0.78);
}

.stellar-site .stellar-all-apps .stellar-card__kicker,
.stellar-site .stellar-all-apps .stellar-card__blurb,
.stellar-single .stellar-card__kicker,
.stellar-single .stellar-text-link,
.stellar-single .stellar-legal-links a {
  color: var(--stellar-accent);
}

.stellar-site .stellar-all-apps .stellar-btn--ghost-dark,
.stellar-single .stellar-btn--ghost-dark {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.stellar-site .stellar-section-head h2 {
  color: #fff;
}

.stellar-section-head {
  width: min(1140px, 100%);
  margin: 0 auto 2rem;
}

.stellar-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.stellar-grid {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stellar-card {
  background: var(--stellar-card);
  border-radius: var(--stellar-radius);
  padding: 1.85rem 1.85rem 1.65rem;
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
}

.stellar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.1);
}

.stellar-card__link {
  text-decoration: none !important;
  color: inherit;
  flex: 1;
  display: block;
  padding-bottom: 0.25rem;
}

.stellar-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 1.15rem;
}

.stellar-card__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3B6FA8;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.stellar-card__title {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.stellar-card__tagline {
  color: var(--stellar-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.stellar-card__blurb {
  color: var(--stellar-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

.stellar-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.stellar-why__grid {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stellar-why__card {
  background: #fff;
  border-radius: var(--stellar-radius);
  padding: 1.85rem 1.7rem;
}

.stellar-why__card h3 {
  font-size: 1.2rem;
}

.stellar-why__card p {
  color: var(--stellar-muted);
  margin: 0;
  font-size: 1rem;
}

.stellar-contact-strip {
  background: linear-gradient(135deg, var(--stellar-navy), var(--stellar-navy-2));
  color: #fff;
  padding: 3.5rem 1.5rem;
}

.stellar-contact-strip__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stellar-contact-strip a {
  color: var(--stellar-accent);
}

.stellar-footer {
  background: #071526;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.95rem;
}

.stellar-footer__inner {
  width: min(1140px, 100%);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.stellar-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stellar-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.stellar-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stellar-footer li {
  margin: 0 0 0.4rem;
}

.stellar-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.stellar-footer a:hover {
  color: #fff;
}

.stellar-footer__legal {
  width: min(1140px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Single / archive */
.stellar-single-hero,
.stellar-archive-hero {
  background: linear-gradient(155deg, var(--stellar-navy), var(--stellar-navy-2));
  color: #fff;
  padding: 4.5rem 1.5rem;
}

.stellar-single-hero__inner,
.stellar-archive-hero__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.stellar-single-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.stellar-single-hero h1,
.stellar-archive-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #fff;
}

.stellar-single-hero__tagline {
  font-size: 1.25rem;
  color: var(--stellar-accent);
  font-weight: 600;
}

.stellar-single-hero__lede,
.stellar-archive-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 40ch;
}

.stellar-narrow {
  width: min(760px, 100%);
  margin: 0 auto;
}

.stellar-lead {
  font-size: 1.25rem;
  color: var(--stellar-muted);
}

.stellar-faq__item {
  background: #fff;
  border-radius: var(--stellar-radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 0.75rem;
}

.stellar-faq__item summary {
  font-weight: 650;
  font-family: var(--stellar-font-display);
  cursor: pointer;
}

.stellar-faq__item p {
  margin: 0.75rem 0 0;
  color: var(--stellar-muted);
}

.stellar-shot-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 1.5rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.stellar-shot-rail__item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.stellar-shot-rail .stellar-phone {
  width: 220px;
}

.stellar-legal-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--stellar-muted);
}

.stellar-legal-links a {
  color: #2F6FB5;
}

.stellar-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stellar-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide duplicate theme chrome on home when shortcode owns the page */
body.stellar-front .ast-plain-container .entry-header,
body.home .entry-header,
body.stellar-apps-hub .entry-header {
  display: none;
}

/*
 * Full-bleed + dark chrome (fixes white header + white side gutters).
 * Astra wraps page content in white/#page surfaces; our sections own their own bg.
 */
body.home,
body.stellar-front,
body.stellar-apps-hub,
body.single-stellar_app,
body.post-type-archive-stellar_app {
  background: var(--stellar-navy) !important;
}

body.home #page,
body.stellar-front #page,
body.stellar-apps-hub #page,
body.single-stellar_app #page,
body.post-type-archive-stellar_app #page,
body.home .site-content,
body.stellar-front .site-content,
body.stellar-apps-hub .site-content,
body.single-stellar_app .site-content,
body.post-type-archive-stellar_app .site-content,
body.home #content,
body.stellar-front #content,
body.stellar-apps-hub #content,
body.single-stellar_app #content,
body.post-type-archive-stellar_app #content,
body.home #primary,
body.stellar-front #primary,
body.stellar-apps-hub #primary,
body.single-stellar_app #primary,
body.post-type-archive-stellar_app #primary,
body.home .site-main,
body.stellar-front .site-main,
body.stellar-apps-hub .site-main,
body.single-stellar_app .site-main,
body.post-type-archive-stellar_app .site-main,
body.home article.page,
body.home article.post,
body.stellar-front article.page,
body.stellar-front article.post,
body.stellar-apps-hub article.page,
body.stellar-apps-hub article.post,
body.single-stellar_app article.page,
body.single-stellar_app article.post,
body.post-type-archive-stellar_app article.page,
body.post-type-archive-stellar_app article.post,
body.home .entry-content,
body.stellar-front .entry-content,
body.stellar-apps-hub .entry-content,
body.single-stellar_app .entry-content,
body.post-type-archive-stellar_app .entry-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.home .ast-container,
body.stellar-front .ast-container,
body.stellar-apps-hub .ast-container,
body.single-stellar_app .ast-container,
body.post-type-archive-stellar_app .ast-container,
body.home .ast-separate-container .ast-article-single,
body.stellar-front .ast-separate-container .ast-article-single,
body.stellar-apps-hub .ast-separate-container .ast-article-single {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

/* Keep header logo + nav inset — do NOT inherit the zeroed .ast-container padding */
#masthead .site-primary-header-wrap.ast-container,
#masthead .ast-container.site-primary-header-wrap,
#masthead .ast-mobile-header-wrap .ast-container,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar,
#masthead .ast-mobile-header-wrap .main-header-bar,
#masthead .ast-primary-header-bar.site-primary-header-wrap,
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar,
.ast-header-break-point #masthead .ast-mobile-header-wrap .main-header-bar,
.ast-header-break-point #masthead .ast-mobile-header-wrap .site-primary-header-wrap {
  max-width: 1240px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(2.5rem, 7vw, 4rem) !important;
  padding-right: clamp(2.5rem, 7vw, 4rem) !important;
  box-sizing: border-box !important;
}

#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

#masthead .custom-logo-link img,
#masthead .custom-logo {
  max-height: 48px;
  width: auto;
}

#masthead .site-branding,
#masthead .ast-site-identity {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Solid navy header sitewide — no white bar over dark heroes */
.ast-hfb-header .site-header,
#masthead,
#masthead .ast-main-header-wrap,
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-above-header-bar,
#masthead .ast-below-header-bar,
#masthead .ast-mobile-header-wrap,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
  background-color: var(--stellar-navy) !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .ast-builder-menu .menu-link,
#masthead .site-navigation a,
#masthead .ast-above-header .menu-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

#masthead .main-header-menu > .menu-item > .menu-link:hover,
#masthead .main-header-menu > .menu-item.current-menu-item > .menu-link,
#masthead .ast-builder-menu .menu-link:hover {
  color: var(--stellar-accent) !important;
}

#masthead .menu-toggle,
#masthead .ast-mobile-menu-trigger-minimal,
#masthead .ast-button-wrap .ast-mobile-menu-trigger-minimal {
  color: #fff !important;
}

#masthead .ast-mobile-svg,
#masthead .mobile-menu-toggle-icon .ast-mobile-svg {
  fill: #fff !important;
}

/* Dropdown panels */
#masthead .sub-menu,
#masthead .ast-desktop .main-header-menu .sub-menu {
  background-color: var(--stellar-navy-2) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

#masthead .sub-menu .menu-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile popup drawer */
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-content {
  background-color: var(--stellar-navy) !important;
}

.ast-mobile-popup-drawer .menu-link {
  color: #fff !important;
}

/* Astra footer is light/empty — stellar footer owns the bottom sitewide */
.site-footer {
  display: none !important;
}

/*
 * Blog / posts / press / contact / privacy — dark reading surface.
 * (Chrome overrides already kill the white Astra card.)
 */
body.single-post #primary,
body.page:not(.home) #primary,
body.blog #primary,
body.archive:not(.post-type-archive-stellar_app) #primary,
body.search #primary,
body.privacy-policy #primary {
  max-width: 46rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  float: none !important;
}

body.single-post .entry-header,
body.page:not(.home) .entry-header,
body.single-post .post-thumb,
body.single-post .ast-single-post-featured,
body.blog .ast-article-post {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

body.single-post .entry-title,
body.page:not(.home) .entry-title,
body.blog .entry-title,
body.archive:not(.post-type-archive-stellar_app) .entry-title,
body.search .entry-title {
  color: #fff !important;
  font-family: var(--stellar-font-display);
}

body.single-post .entry-meta,
body.single-post .entry-meta a,
body.blog .entry-meta,
body.blog .entry-meta a,
body.archive .entry-meta,
body.archive .entry-meta a {
  color: rgba(255, 255, 255, 0.55) !important;
}

body.single-post .entry-content,
body.page:not(.home) .entry-content,
body.blog .entry-content,
body.archive:not(.post-type-archive-stellar_app) .entry-content,
body.search .entry-content,
body.single-post .entry-content p,
body.page:not(.home) .entry-content p,
body.single-post .entry-content li,
body.page:not(.home) .entry-content li {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.single-post .entry-content,
body.page:not(.home) .entry-content {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.page:not(.home) .entry-content h2,
body.page:not(.home) .entry-content h3 {
  color: #fff !important;
  font-family: var(--stellar-font-display);
}

body.single-post .entry-content a,
body.page:not(.home) .entry-content a,
body.blog .entry-content a {
  color: var(--stellar-accent) !important;
}

body.single-post .post-thumb,
body.single-post .ast-single-post-featured,
body.blog .post-thumb {
  margin: 0 auto 1.75rem;
  text-align: center;
}

/* Icons as featured images stay modest; wide screenshots still fill the column */
body.single-post .post-thumb img,
body.single-post .ast-single-post-featured img,
body.single-post .wp-post-image,
body.blog .post-thumb img {
  border-radius: 16px;
  max-height: min(320px, 50vw);
  width: auto;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

body.single-post .entry-content img,
body.page:not(.home) .entry-content img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

body.single-post .entry-content figure.wp-block-image,
body.page:not(.home) .entry-content figure.wp-block-image,
body.single-post .entry-content .stellar-post-figure {
  margin: 1.75rem 0;
}

body.single-post .entry-content figcaption,
body.page:not(.home) .entry-content figcaption {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Contact form fields readable on navy */
body.page-id-61 input[type="text"],
body.page-id-61 input[type="email"],
body.page-id-61 input[type="tel"],
body.page-id-61 textarea,
body.page-id-61 select {
  background: #132A4A !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.blog .ast-article-post,
body.archive .ast-article-post {
  background: rgba(19, 42, 74, 0.55) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

body.blog .ast-article-post .entry-title a,
body.archive .ast-article-post .entry-title a {
  color: #fff !important;
}

.stellar-site {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  .stellar-hero__inner,
  .stellar-chapter__inner,
  .stellar-single-hero__inner,
  .stellar-why__grid,
  .stellar-footer__inner {
    grid-template-columns: 1fr;
  }

  .stellar-chapter--reverse .stellar-chapter__inner {
    direction: ltr;
  }

  .stellar-hero {
    min-height: auto;
    padding: 3.5rem 1.75rem 3rem;
    overflow: hidden;
  }

  .stellar-hero__inner,
  .stellar-chapter__inner,
  .stellar-section-head,
  .stellar-grid,
  .stellar-why__grid,
  .stellar-trust__inner {
    padding-left: 0;
    padding-right: 0;
    width: min(1140px, 100%);
    box-sizing: border-box;
  }

  .stellar-chapter {
    padding: 3.5rem 1.75rem;
    overflow: hidden;
  }

  .stellar-all-apps,
  .stellar-why {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .stellar-hero__visual {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .stellar-phone-stack {
    width: min(260px, 70vw);
    height: 420px;
    margin: 0 auto;
  }

  .stellar-phone,
  .stellar-phone--tilt,
  .stellar-phone--landscape {
    max-width: 100%;
  }

  .stellar-phone--landscape {
    width: min(88%, 300px);
    margin: 0 auto;
  }

  .stellar-phone--tilt {
    transform: rotate(3deg);
  }

  .stellar-phone--landscape.stellar-phone--tilt {
    transform: rotate(-3deg);
  }

  .stellar-chapter__visual {
    overflow: hidden;
    max-width: 100%;
  }

  .stellar-footer__cols {
    grid-template-columns: 1fr;
  }
}

/* Prevent horizontal page scroll from tilted phones */
.stellar-site,
.stellar-showcase,
.stellar-hero,
.stellar-chapter {
  overflow-x: clip;
}
