:root {
  --ink: #0b1723;
  --muted: #555f69;
  --line: #dce2e7;
  --paper: #fafcfe;
  --card: #ffffff;
  --accent: #3fa0fa;
  --accent-dark: #1187ee;
  --cta: #ff8d39;
  --cta-hover: #f87103;
  --primary-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --primary-soft-hover: color-mix(in srgb, var(--accent) 20%, transparent);
  --primary-border: color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-hover: #e3edf4;
  --gradient: linear-gradient(120deg, #3fa0fa, #87cdeb);
  --header: color-mix(in srgb, #fafcfe 95%, transparent);
  --footer: #ffffff;
  --hero: linear-gradient(165deg, rgba(63, 160, 250, 0.10), rgba(135, 205, 235, 0.28) 42%, #ffffff 78%);
  --shadow: 0 18px 40px rgba(11, 23, 35, 0.06);
  --radius: 0.75rem;
  --radius-btn: 6px;
  --max: 80rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, .brand-name, .font-display { font-family: Outfit, system-ui, sans-serif; line-height: 1.2; letter-spacing: -0.025em; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: #fff; padding: 0.4rem 0.7rem; z-index: 5;
}
.skip:focus { top: 0.5rem; }

.preview-bar {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center;
  padding: 0.45rem 6vw; background: #1c2430; color: #f4f7fb; font-size: 0.86rem;
}
.preview-bar a { color: #fff; }
.preview-bar [aria-current="page"] { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner, .footer-inner, .learn-hero, .learn-list, .post, .message {
  width: min(var(--max, 80rem), calc(100% - 2rem));
  margin-inline: auto;
}
.learn-list, .learn-hero, .post, .message { width: min(1080px, calc(100% - 2rem)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand {
  font-family: Outfit, system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; text-decoration: none;
  color: var(--ink); letter-spacing: -0.025em;
}
.nav-inline, .nav-more nav { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.nav-inline a, .nav-more a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-inline a[aria-current="page"], .nav-more a[aria-current="page"] { color: var(--accent); }
.nav-more { display: none; }
.nav-more summary { cursor: pointer; font-weight: 700; }
.nav-more nav { display: grid; gap: 0.55rem; padding: 0.8rem 0 0.2rem; }
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--cta, var(--accent)); color: #fff; border: 0; border-radius: var(--radius-btn, 6px);
  height: 2.75rem; padding: 0 1.5rem; font-size: 0.875rem; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cta, var(--accent)) 25%, transparent);
}
.button:hover { background: var(--cta-hover, var(--accent-dark)); color: #fff; }
.button-secondary {
  background: var(--primary-soft);
  color: var(--accent);
  border: 1px solid var(--primary-border);
  box-shadow: none;
  font-weight: 600;
  padding: 0 1rem;
}
.button-secondary:hover { background: var(--primary-soft-hover); color: var(--accent); }

.learn-hero { padding: 3.2rem 0 1.4rem; background: var(--hero); width: 100%; max-width: none; padding-inline: max(1rem, calc((100% - 1080px) / 2)); }
.learn-hero .lede, .message p { max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.learn-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0.2rem 0 0.6rem; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.learn-list { padding: 1.5rem 0 4rem; }
.featured-card, .post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.featured-card { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 1.6rem; }
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card-media img, .card-fallback { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--gradient); }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-body h2 { margin: 0.25rem 0 0.45rem; font-size: 1.35rem; }
.featured-card h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--accent); }
.excerpt { color: var(--muted); margin: 0 0 0.7rem; }
.meta, .note { color: var(--muted); font-size: 0.92rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.empty, .message { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; margin: 2rem auto; }

.post { padding: 2.4rem 0 4rem; max-width: 760px; }
.post h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 0.4rem; }
.hero-figure { margin: 1.2rem 0 0.4rem; }
.hero-figure img { border-radius: 16px; width: 100%; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2rem; font-size: 1.65rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0.9rem 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 1rem; color: var(--muted); }
.prose a { font-weight: 700; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eef3f8; padding: 0.1rem 0.3rem; border-radius: 4px; }
.prose pre { background: #f4f7fb; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; overflow: auto; }
.prose pre code { background: transparent; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; }
.prose img { border-radius: 12px; margin: 1rem 0; }
.end-cta { margin-top: 2.4rem; padding: 1.3rem 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.end-cta h2 { margin-top: 0; }

.site-footer { background: var(--footer); border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; }
.footer-name { font-family: Outfit, system-ui, sans-serif; font-weight: 700; margin-bottom: 0.2rem; }
.footer-inner p { margin: 0.2rem 0; color: var(--muted); }
.footer-links a { color: var(--ink); font-weight: 700; }

.text-card {
  background: linear-gradient(145deg, #2176d6 0%, #5aa3e0 48%, #87cdeb 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 240px;
}
.text-card a {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.25rem 1.2rem 1.15rem;
  color: #fff;
  text-decoration: none;
}
.text-card .eyebrow, .text-card .excerpt, .text-card .meta, .text-card h2 { color: #fff; }
.text-card .excerpt, .text-card .meta { color: rgba(255, 255, 255, 0.88); }
.text-card h2 { margin: 0; font-size: 1.35rem; }
.text-card-featured { margin-bottom: 1.6rem; min-height: 280px; }
.text-card-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 18ch; }
.post-hero {
  background: linear-gradient(145deg, #2176d6 0%, #5aa3e0 46%, #87cdeb 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.8rem 1.5rem 1.5rem;
  margin: 0.4rem 0 1.4rem;
}
.post-hero .eyebrow, .post-hero .eyebrow a, .post-hero h1, .post-hero .meta { color: #fff; }
.post-hero .meta { color: rgba(255, 255, 255, 0.88); }
.post-hero h1 { margin-top: 0.35rem; }
@media (max-width: 860px) {
  .nav-inline { display: none; }
  .nav-more { display: block; }
  .featured-card { grid-template-columns: 1fr; }
  .learn-hero { padding-top: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared GHL marketing chrome (header) for both sites; footers are per theme */
.chrome .brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: unset;
}
.chrome .brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: contain;
  flex: none;
}
.chrome .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.chrome .brand-accent { color: var(--accent); }
.chrome .header-inner {
  width: min(var(--max), calc(100% - 2rem));
  height: 85px;
  padding: 0;
  gap: 1rem;
}
@media (min-width: 640px) {
  .chrome .header-inner { width: min(var(--max), calc(100% - 3rem)); }
}
@media (min-width: 1024px) {
  .chrome .header-inner { width: min(var(--max), calc(100% - 4rem)); }
}
.chrome .nav-inline {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}
.chrome .nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.chrome .nav-link:hover {
  background: var(--accent-hover);
  color: var(--ink);
}
.chrome .nav-dropdown { position: relative; }
.chrome .nav-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.25rem);
  width: 16rem;
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(11, 23, 35, 0.12);
}
.chrome .nav-dropdown:hover .nav-dropdown-panel,
.chrome .nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.chrome .nav-dropdown-item {
  display: block;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.chrome .nav-dropdown-item-strong {
  font-weight: 600;
  color: var(--ink);
}
.chrome .nav-dropdown-item:hover {
  background: var(--paper);
  color: var(--ink);
}
.chrome .header-actions { display: flex; align-items: center; gap: 0.75rem; }
.chrome .button-quiz { display: none; }
.chrome .header-actions > .button-cta { display: none; }
.chrome .nav-more { display: block; }
.chrome .nav-more summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}
.chrome .nav-more summary::-webkit-details-marker { display: none; }
.chrome .nav-more summary:hover { background: var(--accent-hover); }
.chrome .nav-more nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 85px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  z-index: 40;
}
.chrome .nav-more nav a {
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.chrome .nav-more nav a:hover { background: var(--paper); }
.chrome .nav-more nav .button-cta {
  display: flex;
  margin-top: 0.5rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .chrome .header-actions > .button-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .chrome .nav-inline { display: flex; }
  .chrome .nav-more { display: none; }
}
@media (min-width: 1280px) {
  .chrome .button-quiz { display: inline-flex; }
}

.theme-lm .site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
}
.theme-lm .footer-inner { width: min(var(--max), calc(100% - 2rem)); }
@media (min-width: 640px) {
  .theme-lm .footer-inner { width: min(var(--max), calc(100% - 3rem)); }
}
@media (min-width: 1024px) {
  .theme-lm .footer-inner { width: min(var(--max), calc(100% - 4rem)); }
}
.theme-lm .footer-cta-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 5%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
  padding: 4rem 0;
}
.theme-lm .footer-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: center;
}
.theme-lm .footer-cta-inner h2 {
  margin: 0;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.theme-lm .footer-cta-inner p {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
}
.theme-lm .footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: none;
}
.theme-lm .footer-cta-actions .button { height: 3rem; }
@media (min-width: 768px) {
  .theme-lm .footer-cta-inner { flex-direction: row; text-align: left; }
}
.theme-lm .footer-main { padding: 4rem 0; }
.theme-lm .footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) {
  .theme-lm .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .theme-lm .footer-grid { grid-template-columns: 4fr 3fr 3fr 2fr; }
}
.theme-lm .footer-brand-col p,
.theme-lm .footer-col p,
.theme-lm .footer-col a,
.theme-lm .footer-col li {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.625;
}
.theme-lm .footer-brand-col p { margin: 1rem 0 0; }
.theme-lm .footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.theme-lm .footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.theme-lm .footer-col a { color: var(--muted); text-decoration: none; }
.theme-lm .footer-col a:hover { color: var(--ink); }
.theme-lm .footer-emphasis { color: var(--accent) !important; font-weight: 600; }
.theme-lm .footer-address,
.theme-lm .footer-phone {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.theme-lm .footer-address svg,
.theme-lm .footer-phone svg {
  flex: none;
  color: var(--accent);
  margin-top: 0.15rem;
}
.theme-lm .footer-phone { align-items: center; margin-top: 0.75rem; }
.theme-lm .footer-phone a { color: var(--ink); font-weight: 500; text-decoration: none; }
.theme-lm .footer-phone a:hover { color: var(--accent); }
.theme-lm .footer-hours { margin-top: 0.5rem; font-size: 0.75rem !important; }
.theme-lm .footer-legal {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.theme-lm .footer-legal p { margin: 0; color: var(--muted); }
.theme-lm .footer-links { display: flex; gap: 1.5rem; }
.theme-lm .footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.theme-lm .footer-links a:hover { color: var(--ink); }
@media (min-width: 640px) {
  .theme-lm .footer-legal { flex-direction: row; }
}

/* LM header: Resources/Company dropdowns + active Blog (matches GHL 2026-11-12) */
.chrome .nav-dropdown-panel-w-56 { width: 14rem; }
.chrome .nav-dropdown-panel-w-64 { width: 16rem; }
.chrome .nav-link-active { background: var(--accent-hover); color: var(--ink); }
.chrome .nav-dropdown-item[aria-current="page"] { color: var(--accent); }
.chrome .nav-more nav .nav-mobile-group { padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chrome .nav-mobile-label { margin: 0; padding: 0 0.75rem 0.25rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.chrome .nav-more nav a.nav-mobile-sub { padding-left: 1.5rem; font-weight: 500; color: color-mix(in srgb, var(--ink) 90%, transparent); }
.chrome .nav-more nav a.nav-mobile-sub[aria-current="page"] { color: var(--accent); font-weight: 600; }
.chrome .nav-mobile-cta { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.chrome .nav-more nav .nav-mobile-cta .button-cta { margin-top: 0; }

/* Categories: card/post links, index filter bar, archive pages */
.eyebrow a, .eyebrow .category-link { color: inherit; text-decoration: none; }
.eyebrow a:hover, .eyebrow .category-link:hover { text-decoration: underline; }
.eyebrow-sep { margin: 0 0.4em; opacity: 0.6; }
.text-card h2 a { color: inherit; text-decoration: none; }
.category-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem;
}
.category-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.category-chip:hover { border-color: var(--primary-border, var(--accent)); color: var(--accent); }
.category-chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.category-count { font-size: 0.78rem; font-weight: 700; opacity: 0.7; }
.post-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.post-categories > span { font-weight: 700; color: var(--muted); margin-right: 0.25rem; }
.category-picker { border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.75rem; display: grid; gap: 0.35rem; }
.category-picker legend { font-weight: 700; padding: 0 0.25rem; }
.text-card { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.25rem 1.2rem 1.15rem; }
.text-card a { display: inline; height: auto; padding: 0; }
.chrome .nav-more nav { align-items: stretch; text-align: left; }
.chrome .nav-more .icon-close { display: none; }
.chrome .nav-more[open] .icon-open { display: none; }
.chrome .nav-more[open] .icon-close { display: inline-flex; }
.chrome .nav-more summary span { display: inline-flex; }
.chrome .nav-more[open] .icon-close { display: inline-flex; }
.chrome .nav-more nav .nav-mobile-cta .button-cta { width: 100%; justify-content: center; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; }

/* ------------------------------------------------------------------
   Service Mavericks theme, matched to the live GHL site (servicemavericks.com, scraped 2026-11-12).
   Fonts: Outfit (display) + Manrope (body), same as LM. Primary oklch(72% .142 253), CTA oklch(71% .182 52).
   ------------------------------------------------------------------ */
.theme-sm {
  --ink: #0f1926;
  --muted: #4e5661;
  --line: #dae0e8;
  --paper: #ffffff;
  --card: #ffffff;
  --accent: #5fa8fb;
  --accent-dark: #2b86e6;
  --link: #0b6fc6;
  --cta: #f67903;
  --cta-hover: #df5f00;
  --accent-hover: color-mix(in srgb, #dbedff 60%, transparent);
  --header: #ffffff;
  --hero: linear-gradient(165deg, rgba(95, 168, 251, 0.10), rgba(0, 194, 255, 0.14) 42%, #ffffff 78%);
  --gradient: linear-gradient(120deg, #0077b6, #00c2ff);
  --radius-btn: 0.375rem;
}
.theme-sm .site-header { border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.theme-sm .prose a, .theme-sm .message a, .theme-sm .post-categories a:not(.category-chip) { color: var(--link); }
.theme-sm .prose a:hover { color: #08528f; }
.theme-sm .eyebrow { color: #0b6fc6; }
.theme-sm .category-chip:hover { color: var(--link); border-color: var(--accent); }
.theme-sm .category-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.theme-sm .text-card,
.theme-sm .post-hero { background: linear-gradient(145deg, #07132e 0%, #0a2353 45%, #0077b6 100%); }
.theme-sm .text-card .eyebrow,
.theme-sm .post-hero .eyebrow,
.theme-sm .post-hero .eyebrow a { color: #00c2ff; }
.theme-sm .button { font-size: 15px; font-weight: 600; height: 3rem; padding: 0 1.5rem; box-shadow: none; }
.theme-sm .header-actions > .button-cta { height: 3rem; }

/* SM logo */
.theme-sm .brand-svg { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.theme-sm .brand-svg svg { display: block; width: 235px; height: 40px; }
@media (max-width: 380px) { .theme-sm .site-header .brand-svg svg { width: 200px; height: 34px; } }

/* SM desktop nav: 17px medium links, rich two-column dropdowns */
.theme-sm .nav-link { font-size: 17px; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: 0.5rem; }
.theme-sm .nav-link svg { width: 1rem; height: 1rem; opacity: 0.7; }
.theme-sm .nav-dropdown-panel-rich {
  left: 50%; transform: translateX(-42%); top: 100%; width: 520px; padding: 0.75rem 0 0;
  background: transparent; border: 0; box-shadow: none;
}
.theme-sm .nav-rich-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 0.625rem;
  box-shadow: 0 25px 50px -12px rgba(15, 25, 38, 0.25);
}
.theme-sm .nav-rich-item {
  display: flex; flex-direction: column; gap: 0.15rem; border-radius: 0.75rem; padding: 0.75rem;
  text-decoration: none; color: var(--ink);
}
.theme-sm .nav-rich-item:hover, .theme-sm .nav-rich-item[aria-current="page"] { background: color-mix(in srgb, #dbedff 60%, transparent); }
.theme-sm .nav-rich-title { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.theme-sm .nav-rich-item[aria-current="page"] .nav-rich-title { color: var(--link); }
.theme-sm .nav-rich-desc { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* SM mobile menu: single-open accordion (details[name]) */
.theme-sm .nav-more > summary { width: 3rem; height: 3rem; border-radius: 0.375rem; }
.theme-sm .nav-more nav.nav-accordion { gap: 0; padding: 0.5rem 1rem 1.25rem; box-shadow: 0 20px 40px rgba(15, 25, 38, 0.12); max-height: calc(100vh - 85px); overflow-y: auto; }
.theme-sm .nav-acc-row { border-bottom: 1px solid var(--line); }
.theme-sm .nav-acc-toggle, .theme-sm .nav-more nav a.nav-acc-link {
  display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer;
  padding: 1.1rem 0.25rem; font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 0;
}
.theme-sm .nav-more .nav-acc-toggle { display: flex; justify-content: space-between; width: 100%; height: auto; border: 0; background: none; }
.theme-sm .nav-more .nav-acc-toggle:hover { background: none; color: var(--link); }
.theme-sm .nav-more nav a.nav-acc-link:hover { background: none; color: var(--link); }
.theme-sm .nav-acc-toggle::-webkit-details-marker { display: none; }
.theme-sm .nav-acc-toggle svg { transition: transform 0.15s ease; }
.theme-sm details[open] > .nav-acc-toggle svg { transform: rotate(180deg); }
.theme-sm .nav-acc-panel { display: flex; flex-direction: column; padding: 0 0 0.75rem 0.75rem; }
.theme-sm .nav-more nav a.nav-acc-sub { padding: 0.4rem 0.5rem; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.theme-sm .nav-more nav a.nav-acc-sub[aria-current="page"] { color: var(--link); font-weight: 600; }
.theme-sm .nav-more nav .nav-acc-cta { display: flex; width: 100%; margin-top: 1rem; justify-content: center; }

/* SM footer: navy CTA band + dark grid */
.theme-sm .sm-footer { background: #060c1c; color: #cbd5e1; border-top: 0; padding: 0; }
.theme-sm .sm-footer .footer-inner { width: min(var(--max), calc(100% - 2rem)); }
@media (min-width: 640px) { .theme-sm .sm-footer .footer-inner { width: min(var(--max), calc(100% - 3rem)); } }
@media (min-width: 1024px) { .theme-sm .sm-footer .footer-inner { width: min(var(--max), calc(100% - 4rem)); } }
.theme-sm .sm-footer-cta {
  position: relative; overflow: hidden; padding: 4.5rem 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(27, 111, 245, 0.20), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(0, 194, 255, 0.15), transparent 40%),
    linear-gradient(90deg, #07132e, #091b40, #0a2353);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-sm .sm-footer-cta-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .theme-sm .sm-footer-cta-inner { grid-template-columns: 1.1fr 1fr; } }
.theme-sm .sm-footer-cta h2 { margin: 0; display: flex; flex-direction: column; color: #fff; font-size: clamp(2.25rem, 5vw, 54px); font-weight: 800; line-height: 1.05; }
.theme-sm .sm-cyan { color: #00c2ff; }
.theme-sm .sm-footer-cta p { margin: 0; color: #cbd5e1; font-size: 1.1rem; max-width: 36rem; }
.theme-sm .sm-footer-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.theme-sm .sm-button-gradient {
  background: linear-gradient(90deg, #00b4d8, #0077b6); color: #fff; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; box-shadow: 0 0 24px rgba(0, 180, 216, 0.35); border-radius: 0.5rem;
}
.theme-sm .sm-button-gradient:hover { background: linear-gradient(90deg, #00c2ff, #0089cf); color: #fff; }
.theme-sm .sm-button-ghost { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0.5rem; }
.theme-sm .sm-button-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.theme-sm .sm-button-small { height: 2.5rem; font-size: 0.8rem; margin-top: 1.25rem; }
.theme-sm .sm-footer-main { padding: 4rem 0 2.5rem; }
.theme-sm .sm-footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .theme-sm .sm-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .theme-sm .sm-footer-grid { grid-template-columns: 5fr 3fr 2fr 2fr; } }
.theme-sm .sm-footer p { margin: 0.2rem 0; color: #cbd5e1; font-size: 0.875rem; line-height: 1.6; }
.theme-sm .sm-footer-tagline { margin-top: 1rem !important; max-width: 24rem; color: #94a3b8 !important; }
.theme-sm .sm-footer-contact span { color: #94a3b8; }
.theme-sm .sm-footer a { color: #cbd5e1; text-decoration: none; }
.theme-sm .sm-footer a:hover { color: #00c2ff; }
.theme-sm .sm-footer a.button { color: #fff; }
.theme-sm .sm-footer-col h3 { margin: 0 0 0.9rem; font-family: Manrope, system-ui, sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.theme-sm .sm-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.875rem; }
.theme-sm .sm-footer-strong { color: #fff !important; font-weight: 600; }
.theme-sm .sm-footer-legal { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .theme-sm .sm-footer-legal { flex-direction: row; } }
.theme-sm .sm-footer-legal p { font-size: 0.8rem; color: #94a3b8; }
.theme-sm .sm-footer-legal span { margin: 0 0.35rem; color: #475569; }
.theme-sm .sm-social { display: flex; gap: 0.6rem; }
.theme-sm .sm-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; }
.theme-sm .sm-social a:hover { border-color: #00c2ff; }

/* Related posts (both sites) */
.related-posts { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-posts h2 { font-size: 1.5rem; margin: 0 0 1.25rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden; background: var(--card, #fff); }
.related-card .card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related-card .card-body { padding: 0.9rem 1rem 1rem; }
.related-card .eyebrow { margin: 0 0 0.35rem; font-size: 0.72rem; }
.related-card .eyebrow a { text-decoration: none; color: inherit; }
.related-card h3 { font-size: 1rem; line-height: 1.35; margin: 0 0 0.5rem; }
.related-card h3 a { color: var(--ink); text-decoration: none; }
.related-card h3 a:hover { color: var(--link, var(--accent)); text-decoration: underline; }
.related-card .meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
