/* LayerEight Solutions site - modern visual layer (loads after Bootstrap + legacy styles). Typography & layout only. */

:root,
[data-bs-theme="light"] {
  --bs-primary: #10546e;
  --bs-primary-rgb: 16, 84, 110;
  --bs-link-color: #0d6f8c;
  --bs-link-hover-color: #0a5a72;
  --bs-link-color-rgb: 13, 111, 140;
  --bs-link-hover-color-rgb: 10, 90, 114;
  --site-bg: #f1f5f9;
  --site-surface: #ffffff;
  --site-text: #0f172a;
  --site-text-muted: #475569;
  /* Dark bands (hero-style CTAs): use with light text only */
  --site-ink: #0f172a;
  --site-ink-foreground: #f8fafc;
  --site-ink-foreground-muted: rgba(248, 250, 252, 0.88);
  --site-nav-bg: rgba(15, 23, 42, 0.55);
  --site-nav-bg-solid: rgba(15, 23, 42, 0.94);
  --site-nav-border: rgba(255, 255, 255, 0.08);
  --site-radius: 1rem;
  --site-radius-lg: 1.25rem;
  --site-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.2);
  --site-shadow-sm: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.site-root {
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  color: var(--site-text);
  background-color: var(--site-bg);
  -webkit-font-smoothing: antialiased;
}

/* Light marketing pages - primary teal tint; dashboard layouts override via html:has(.dash-shell). */
body.site-root:not(:has(.dash-shell)):not(:has(.login-page)) ::selection {
  background-color: rgba(16, 84, 110, 0.22);
  color: var(--site-text);
}

body.site-root:not(:has(.dash-shell)):not(:has(.login-page)) ::-moz-selection {
  background-color: rgba(16, 84, 110, 0.22);
  color: var(--site-text);
}

.site-root h1,
.site-root h2,
.site-root h3,
.site-root h4,
.site-root .section-heading {
  font-family: "Montserrat", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* -- Nav -- */
.site-root #mainNav.site-nav {
  background: var(--site-nav-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--site-nav-border);
  box-shadow: none;
  min-height: 4.5rem;
  align-items: center;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.site-root #mainNav.site-nav.navbar-shrink {
  background: var(--site-nav-bg-solid) !important;
  box-shadow: var(--site-shadow-sm);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.site-root #mainNav.site-nav .nav-link {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-root #mainNav.site-nav .nav-link:not(.btn):hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.site-root #mainNav.site-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
}

.site-root #mainNav.site-nav .nav-link.btn-secondary {
  border-radius: 999px;
  padding: 0.45rem 1.35rem !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.site-root #mainNav.site-nav .nav-link.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* -- Hero -- */
.site-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-top: 6rem;
  padding-bottom: 4.5rem;
  background-size: cover !important;
  background-position: center !important;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    125deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(16, 84, 110, 0.5) 42%,
    rgba(15, 23, 42, 0.82) 100%
  );
}

.site-hero > .container {
  position: relative;
  z-index: 1;
}

.site-hero .intro-text {
  border: none !important;
  max-width: 52rem;
}

.site-hero .intro-lead-in span {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f8fafc !important;
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.35);
  border: none !important;
}

.site-hero .intro-heading:empty {
  display: none;
}

/* Inner / legal hero (privacy, etc.) */
.site-hero--inner {
  min-height: auto;
  padding-top: 7rem;
  padding-bottom: 3rem;
  align-items: flex-end;
}

.site-legal-title {
  display: inline-block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #f8fafc !important;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  border: none !important;
}

/* -- Sections -- */
.site-section {
  position: relative;
}

.site-services {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--site-bg);
}

.site-services .section-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--site-text);
  margin-bottom: 1rem;
}

.site-services .section-subheading {
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: var(--site-text-muted) !important;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.site-services .service-card {
  background: var(--site-surface);
  border-radius: var(--site-radius-lg);
  padding: 2.25rem 1.75rem;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--site-shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .site-services .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow);
  }
}

.site-services .service-card .fa-stack {
  margin-bottom: 0.25rem;
}

.site-services .service-card h4.section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.5rem !important;
}

.site-services .service-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--site-text-muted) !important;
}

.site-services .service-card p span {
  color: inherit !important;
}

.site-about {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--site-surface);
}

.site-about h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  color: var(--site-text);
}

.site-about .lead {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--site-text-muted) !important;
  font-weight: 400;
}

.site-contact {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  /* Solid base so headings never sit on a muddy mid-tone; ::before adds the tint. */
  background-color: #0f172a;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
}

.site-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9) 0%, rgba(16, 84, 110, 0.75) 100%);
}

.site-contact > .container {
  position: relative;
  z-index: 1;
}

.site-contact .section-heading {
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #f8fafc !important;
}

/* Same slot as .site-page-section .section-subheading, but readable on the dark contact band */
.site-contact .section-subheading {
  color: rgba(248, 250, 252, 0.9) !important;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 400;
}

.site-contact .site-contact-lead {
  color: rgba(248, 250, 252, 0.92) !important;
  font-size: 1.2rem !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-contact-form {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--site-radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.site-contact-form .form-control,
.site-contact-form .form-select,
.site-contact-form textarea.form-control {
  border-radius: 0.65rem;
  border: 1px solid #94a3b8;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Placeholders: strong contrast on white (WCAG-friendly) */
.site-contact-form .form-control::placeholder,
.site-contact-form textarea.form-control::placeholder {
  color: #334155 !important;
  opacity: 1 !important;
}

.site-contact-form .form-control::-webkit-input-placeholder,
.site-contact-form textarea.form-control::-webkit-input-placeholder {
  color: #334155 !important;
}

.site-contact-form .form-control::-moz-placeholder,
.site-contact-form textarea.form-control::-moz-placeholder {
  color: #334155 !important;
  opacity: 1;
}

.site-contact-form .form-control:-ms-input-placeholder,
.site-contact-form textarea.form-control:-ms-input-placeholder {
  color: #334155 !important;
}

.site-contact-form .form-select {
  /* Keep selected / option text dark (Bootstrap can mute empty selects) */
  color: #0f172a !important;
}

.site-contact-form .form-select option {
  color: #0f172a;
  background-color: #fff;
}

.site-contact-form .form-control:focus,
.site-contact-form .form-select:focus,
.site-contact-form textarea.form-control:focus {
  border-color: #10546e;
  box-shadow: 0 0 0 0.2rem rgba(16, 84, 110, 0.2);
  color: #0f172a !important;
}

.site-contact-form .btn-primary {
  border-radius: 999px;
  padding: 0.75rem 2.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff !important;
  background-color: #10546e !important;
  border-color: #10546e !important;
  --bs-btn-bg: #10546e;
  --bs-btn-border-color: #10546e;
  --bs-btn-hover-bg: #0c4a5f;
  --bs-btn-hover-border-color: #0c4a5f;
  --bs-btn-active-bg: #0a3f52;
  --bs-btn-active-border-color: #0a3f52;
}

.site-contact-form .btn-primary:hover,
.site-contact-form .btn-primary:focus-visible {
  background-color: #0c4a5f !important;
  border-color: #0c4a5f !important;
  color: #fff !important;
}

.site-contact-form .form-check-label a {
  color: var(--bs-primary);
  font-weight: 600;
}

.site-contact-form .site-contact-check {
  color: var(--site-text-muted) !important;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* -- Legal page body -- */
.site-legal {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 5.5rem);
  background: var(--site-bg);
}

.site-legal .container {
  max-width: 48rem;
}

.site-legal h2 {
  font-weight: 700;
  color: var(--site-text);
  margin-bottom: 1.5rem;
}

.site-legal h2 sup {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--site-text-muted);
  letter-spacing: 0;
}

.site-legal .legal-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--site-text-muted);
}

.site-legal .legal-body strong {
  color: var(--site-text);
  font-weight: 700;
}

/* -- Booking / Cal section -- */
.site-booking {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 5rem);
  background: var(--site-bg);
}

.site-booking .cal-shell {
  background: var(--site-surface);
  border-radius: var(--site-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--site-shadow-sm);
  padding: 1rem;
  min-height: 620px;
}

/* -- Footer (unified layout; LayerEight Solutions marketing = dark slate theme) -- */
.site-footer.site-footer--layereight {
  background: linear-gradient(180deg, #0f172a 0%, #070b14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0;
}

.site-footer.site-footer--layereight .container {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.site-footer.site-footer--layereight .footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer.site-footer--layereight .footer-grid {
    grid-template-columns: minmax(min(100%, 220px), 1.35fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-items: start;
    column-gap: clamp(1.25rem, 3vw, 2rem);
  }

  .site-footer.site-footer--layereight .footer-section {
    width: 100%;
    text-align: left;
  }
}

.site-footer.site-footer--layereight .footer-brand {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 992px) {
  .site-footer.site-footer--layereight .footer-brand {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

.site-footer.site-footer--layereight .footer-brand-logo-link {
  display: block;
  margin-bottom: 1rem;
  line-height: 0;
  overflow: visible;
}

.site-footer.site-footer--layereight .footer-brand-logo {
  display: block;
  height: auto;
  width: min(100%, 220px);
  max-height: 52px;
  object-fit: contain;
  object-position: left top;
}

@media (max-width: 991px) {
  .site-footer.site-footer--layereight .footer-brand-logo {
    margin-left: auto;
    margin-right: auto;
    object-position: center top;
  }
}

.site-footer.site-footer--layereight .footer-brand p {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.6);
  line-height: 1.5;
  margin: 0 0 0.25rem;
}

.site-footer.site-footer--layereight .footer-heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(248, 250, 252, 0.45);
  margin: 0 0 1rem;
  font-weight: 600;
}

.site-footer.site-footer--layereight .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer.site-footer--layereight .footer-link {
  font-size: 0.9375rem;
  color: rgba(248, 250, 252, 0.88) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.15s ease;
}

.site-footer.site-footer--layereight .footer-link:hover {
  color: #fff !important;
}

.site-footer.site-footer--layereight .footer-cta {
  margin-top: 0.35rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.site-footer.site-footer--layereight .affirming-badge-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-footer.site-footer--layereight .affirming-badge-img {
    height: 56px;
  }
}

@media (min-width: 992px) {
  .site-footer.site-footer--layereight .affirming-badge-img {
    margin-left: 0;
    margin-right: 0;
  }
}

.site-footer.site-footer--layereight .footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer.site-footer--layereight .footer-copyright {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.35);
  margin: 0;
  max-width: 52rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .site-footer.site-footer--layereight .footer-section {
    text-align: center;
  }

  .site-footer.site-footer--layereight .footer-links {
    align-items: center;
  }

  .site-footer.site-footer--layereight .footer-cta {
    align-self: center;
  }
}

/* -- Buttons (global primary alignment) -- */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #0c4a5f;
  --bs-btn-hover-border-color: #0c4a5f;
  --bs-btn-active-bg: #0a3f52;
  --bs-btn-active-border-color: #0a3f52;
}

/* -- Readable accents (icons, badges, utilities on light backgrounds) -- */
.site-root .text-primary {
  color: rgb(var(--bs-primary-rgb)) !important;
}

.site-root .text-warning {
  color: #b45309 !important;
}

/* -- Marketing home + inner pages (hero, sections, CTA) -- */
.site-root .site-hero h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f8fafc !important;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 1rem;
}

.site-root .site-hero .hero-sub {
  display: block;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.92) !important;
  font-weight: 400;
}

.site-root .site-hero .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.site-root .site-hero .btn-hero-primary {
  color: #fff !important;
  background: var(--bs-primary) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.site-root .site-hero .btn-hero-primary:hover {
  color: #fff !important;
  background: #0c4a5f !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-1px);
}

.site-root .site-who-strip {
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  background: #e2e8f0;
  color: var(--site-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Light strip: never use Bootstrap text-white* here — contrast fails. These win over .text-white !important. */
.site-root .site-who-strip h2 {
  color: var(--site-text) !important;
}

.site-root .site-who-strip p {
  color: var(--site-text-muted) !important;
}

.site-root .site-who-strip strong {
  color: var(--site-text) !important;
  font-weight: 700;
}

/* Bottom CTA: dark band so headings + .btn-light meet contrast (section was previously unstyled). */
.site-root .site-cta-banner {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--site-ink) 0%, #10546e 55%, #0c4a5f 100%);
  color: var(--site-ink-foreground);
}

.site-root .site-cta-banner h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--site-ink-foreground) !important;
  margin-bottom: 1rem;
}

.site-root .site-cta-banner p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  color: var(--site-ink-foreground-muted) !important;
}

.site-root .site-cta-banner .btn-light {
  font-weight: 700;
  color: var(--site-ink) !important;
  background-color: #f8fafc !important;
  border-color: rgba(248, 250, 252, 0.95) !important;
}

.site-root .site-cta-banner .btn-light:hover {
  background-color: #fff !important;
  color: var(--site-ink) !important;
}

/* “Why LayerEight Solutions?” - explicit section styles so the full heading never clips or wraps oddly */
.site-root .site-why-strip {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--site-bg);
  color: var(--site-text);
}

.site-root .site-why-strip h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--site-text);
  margin: 0 auto 2rem;
  max-width: min(100%, 40rem);
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
  hyphens: manual;
  padding-inline: clamp(0.25rem, 2vw, 1rem);
  line-height: 1.2;
}

.site-root .site-why-strip .why-item h4 {
  font-weight: 700;
  color: var(--site-text);
  margin-bottom: 0.75rem;
}

.site-root .site-why-strip .why-item p {
  color: var(--site-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.site-root .site-page-section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.site-root .site-page-section--white {
  background: var(--site-surface);
}

.site-root .site-page-section--gray {
  background: var(--site-bg);
}

.site-root .site-page-section .section-heading {
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--site-text) !important;
  margin-bottom: 0.75rem;
}

.site-root .site-page-section .section-subheading {
  color: var(--site-text-muted) !important;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.site-root .site-page-section .section-body {
  color: var(--site-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.site-root .site-page-section .section-body p {
  margin-bottom: 1rem;
}

/* Guide articles: less padding than generic sections; read as one article, not stacked cards */
.site-root .site-guide-article.site-page-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

/* No “card” gap between wrappers - rhythm comes from heading + paragraph margins only */
.site-root .site-guide-article.site-page-section .section-body > .site-guide-section {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Subheads feel like bold prose lines, not panel titles */
.site-root .site-guide-article .site-guide-section-title {
  margin-top: 0;
  margin-bottom: 0.3rem;
  padding-top: 0;
  font-size: 1.08em;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--site-text);
  font-weight: 700;
}

/* One body line between sections (matches .section-body 1.05rem × 1.75 line-height) */
.site-root .site-guide-article .section-body > .site-guide-section:not(:first-child) .site-guide-section-title {
  margin-top: calc(1.05rem * 1.75);
}

.site-root .site-guide-article .section-body > .site-guide-section:first-child .site-guide-section-title {
  margin-top: 0;
}

/* Paragraph stack: compact, and always override generic .section-body p { 1rem } */
.site-root .site-guide-article.site-page-section .section-body .site-guide-section p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.site-root .site-guide-article.site-page-section .section-body .site-guide-section p:last-child {
  margin-bottom: 0;
}

.site-root .site-guide-article .site-guide-section a:not(.btn) {
  color: var(--bs-link-color);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  word-break: break-word;
}

.site-root .site-guide-article .site-guide-section a:not(.btn):hover {
  color: var(--bs-link-hover-color);
}

.site-root .site-offer-card {
  background: var(--site-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--site-radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--site-shadow-sm);
  height: 100%;
}

.site-root .site-offer-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--site-text);
  margin: 0.5rem 0 0.75rem;
}

.site-root .site-offer-card p {
  font-size: 0.98rem;
  color: var(--site-text-muted);
  margin: 0;
  line-height: 1.6;
}

.site-root .offer-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--bs-primary-rgb)) !important;
}

/* Mobile (≤768px, matches dashboard shell): clip horizontal overflow; respect safe area */
@media (max-width: 768px) {
  .site-root {
    overflow-x: clip;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
}
