:root {
  --bg: #fbfcff;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.72);
  --muted-strong: rgba(11, 18, 32, 0.82);
  --line: rgba(11, 18, 32, 0.12);
  --accent: #5b5cff;
  --accent-soft: rgba(91, 92, 255, 0.14);
  --slate: rgba(11, 18, 32, 0.06);
  --shadow: 0 30px 90px rgba(10, 18, 32, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(91, 92, 255, 0.18), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(43, 228, 167, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
.page-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.rail {
  position: sticky;
  top: 0;
  z-index: 10;
  align-self: start;
  min-height: auto;
  padding: 16px 18px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 46px; height: 46px; }
.rail-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.rail-nav a, .rail-card, .hero-panel, .card, .feature-panel, .list-stack article, .case-card, .insight-grid article, .trust-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.rail-nav a {
  padding: 10px 12px;
  color: rgba(11, 18, 32, 0.86);
  background: rgba(11, 18, 32, 0.06);
  border-radius: 12px;
}
.rail-nav a:hover, .rail-nav a:focus-visible { outline: none; border-color: rgba(91,92,255,0.32); box-shadow: 0 0 0 4px rgba(91,92,255,0.12); color: var(--text); }
.rail-card {
  display: none;
  margin-top: 14px;
  padding: 16px 18px;
}
.content { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 60px; }
.hero, .split-layout, .trust-section {
  display: grid;
  gap: 18px;
  align-items: start;
}
.hero {
  /* Single column: avoids empty half-column beside hero on wide viewports */
  grid-template-columns: 1fr;
  align-items: start;
}
.hero-copy,
.hero-panel {
  align-self: start;
  min-width: 0;
}
.hero-copy, .hero-panel { padding: 30px; }
.hero-copy {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, rgba(91, 92, 255, 0.06));
  border: 1px solid rgba(11, 18, 32, 0.10);
  box-shadow: var(--shadow);
}
.eyebrow, .section-tag, .card-tag, .case-label {
  display: inline-flex; width: fit-content; padding: 7px 11px; border-radius: 999px;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow, .card-tag, .case-label, .section-tag { background: var(--accent-soft); color: #3438a8; }
.eyebrow.muted { background: var(--slate); color: var(--muted-strong); }
.rail-card .eyebrow.muted {
  background: rgba(11, 18, 32, 0.08);
  color: #121622;
  border: 1px solid rgba(11, 18, 32, 0.14);
}
.eyebrow.soft { background: rgba(24, 33, 44, 0.08); color: var(--muted-strong); }
.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.hero p, .meta-line, .rail-card p, .card p, .feature-panel p, .list-stack p, .case-card p, .insight-grid p, .trust-card p { color: var(--muted); line-height: 1.8; }
.hero-panel, .feature-panel, .insight-grid article { overflow: hidden; }
.hero-panel img, .feature-panel img, .insight-grid img {
  width: 100%; display: block; border-radius: 24px; object-fit: cover; background: #f2ebe3;
}
.article-cover {
  width: 100%; display: block; margin: 16px 0 0; border-radius: 24px; border: 1px solid rgba(24, 33, 44, 0.08);
  aspect-ratio: 16 / 10; object-fit: cover; background: #f2ebe3;
}
.hero-panel img, .feature-panel img { margin-bottom: 18px; border: 1px solid rgba(24, 33, 44, 0.08); }
.hero-panel img { aspect-ratio: 4 / 3; }
.feature-panel img { aspect-ratio: 16 / 10; }
.insight-grid img { aspect-ratio: 16 / 11; margin-bottom: 16px; border: 1px solid rgba(24, 33, 44, 0.08); }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }
.stats div { padding: 14px; border-radius: 18px; background: rgba(169, 93, 53, 0.08); }
.stats strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.section { margin-top: 28px; }
.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
}
.feature-band h2, .section-head h2, .feature-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.18;
  font-family: Georgia, "Times New Roman", serif;
}
.card-grid, .case-grid, .insight-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .feature-panel, .list-stack article, .case-card, .insight-grid article, .trust-card { padding: 0; }
a.card-hit,
a.feature-panel-hit,
a.stack-hit,
a.case-hit,
a.trust-hit {
  display: block;
  min-height: 0;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}
a.card-hit:hover h3,
a.card-hit:focus-visible h3,
a.feature-panel-hit:hover h2,
a.feature-panel-hit:focus-visible h2,
a.stack-hit:hover strong,
a.stack-hit:focus-visible strong,
a.case-hit:hover h3,
a.case-hit:focus-visible h3,
a.trust-hit:hover .eyebrow,
a.trust-hit:focus-visible .eyebrow {
  text-decoration: underline;
  text-decoration-color: rgba(91, 92, 255, 0.45);
  text-underline-offset: 3px;
}
a.band-hit {
  display: block;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}
a.band-hit:hover h2,
a.band-hit:focus-visible h2 {
  text-decoration: underline;
  text-decoration-color: rgba(91, 92, 255, 0.45);
  text-underline-offset: 3px;
}
a.hero-panel-hit {
  display: block;
  margin: -30px;
  padding: 30px;
  color: inherit;
  text-decoration: none;
}
a.hero-panel-hit:hover strong,
a.hero-panel-hit:focus-visible strong {
  text-decoration: underline;
  text-decoration-color: rgba(91, 92, 255, 0.45);
  text-underline-offset: 3px;
}
.rail-card-hit {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card h3, .case-card h3 { margin: 14px 0 10px; font-family: Georgia, "Times New Roman", serif; }
.split-layout {
  /* Stack so long playbook column does not leave a short-column gap */
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-panel { border-radius: 20px; background: linear-gradient(180deg, rgba(11,18,32,0.03) 0%, rgba(91,92,255,0.08) 100%); }
.list-stack { display: grid; gap: 16px; }
.case-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.insight-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.trust-section { grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 36px; }
.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: start;
}
.page-links a {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.72);
  text-align: center; color: var(--muted);
}
.subpage-body {
  margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--text);
  background: linear-gradient(180deg, #faf7f3 0%, var(--bg) 100%);
}
.subpage-shell { width: min(940px, calc(100% - 24px)); margin: 0 auto; padding: 24px 0 56px; }
.subpage-header, .subpage-main, .subpage-aside, .page-links a {
  box-shadow: 0 18px 44px rgba(38, 40, 47, 0.06);
}
.subpage-header, .subpage-main, .subpage-aside {
  border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,0.82);
}
.subpage-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; margin-bottom: 18px; }
.subpage-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.subpage-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(11, 18, 32, 0.78);
}
.subpage-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.subpage-main, .subpage-aside { padding: 24px; }
.subpage-main h1, .subpage-main h2 { font-family: Georgia, "Times New Roman", serif; }
.subpage-main h1 { margin: 8px 0 10px; font-size: clamp(1.75rem, 3.1vw, 2.85rem); line-height: 1.12; }
.subpage-main h2 { margin: 24px 0 10px; font-size: 1.55rem; }
.subpage-main p, .subpage-main li, .subpage-aside p { color: var(--muted); line-height: 1.85; }
.subpage-main ul { padding-left: 20px; }
.article-hero {
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.article-hero .eyebrow {
  background: rgba(67, 76, 160, 0.12);
  color: #2a3178;
  border: 1px solid rgba(67, 76, 160, 0.28);
}
.breadcrumb,
.article-meta {
  color: var(--muted-strong);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: .92rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 0; font-size: .92rem;
}
.author-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f3f5fc;
  color: var(--text);
}
.author-box .author-role,
.author-box p {
  color: rgba(11, 18, 32, 0.78);
}
.site-footer {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f3f5fc;
  line-height: 1.75;
  color: var(--text);
}
.site-footer a {
  color: #2f3b8a;
}
.site-footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.related-links a {
  flex: 1 1 160px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}
.related-links a:hover {
  border-color: rgba(91, 92, 255, 0.35);
  color: #2f3b8a;
}
.subpage-nav a.is-here {
  border-color: rgba(91, 92, 255, 0.45);
  color: var(--text);
  background: rgba(91, 92, 255, 0.1);
}
.insight-mosaic {
  display: grid;
  gap: 18px;
  /* 1 lead + 3 tiles: 3 columns prevents orphan empty cell in row 2 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.insight-tile {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-height: 0;
}
.insight-tile.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: start;
}
a.insight-hit {
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}
.insight-tile.lead .insight-hit {
  flex-direction: row;
  align-items: start;
}
.insight-tile.lead .insight-hit img {
  width: min(48%, 520px);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.insight-tile:not(.lead) .insight-hit img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.insight-hit:hover h3,
.insight-hit:focus-visible h3 {
  text-decoration: underline;
  text-decoration-color: rgba(91, 92, 255, 0.45);
  text-underline-offset: 3px;
}
.insight-tile .tile-body {
  padding: 16px 18px 18px;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.insight-tile.lead .tile-body {
  padding: 22px 24px;
}
.tile-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-variant-numeric: tabular-nums;
}
.insight-tile h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.28;
  font-family: Georgia, "Times New Roman", serif;
}
.insight-tile p {
  margin: 0;
  font-size: 0.95rem;
}
.insight-more {
  margin-top: 14px;
  text-align: right;
}
.insight-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.library-shell {
  padding-bottom: 72px;
}
.library-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
}
.library-grid {
  display: grid;
  gap: 18px;
}
.library-card {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}
.library-card-media img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.library-card-meta {
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.library-card-body h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.library-card-body p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.library-card-body p.library-excerpt {
  line-height: 1.72;
  margin-bottom: 12px;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-detail .article-deck {
  font-size: 1.08rem;
}
.article-figure {
  margin: 0;
}
.author-role {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.prose-flow {
  max-width: 56rem;
}
.prose-flow h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.35em;
}
.prose-flow h2:first-child {
  margin-top: 0;
}
.prose-flow p {
  margin: 0 0 1.1em;
  max-width: 46rem;
}
@media (min-width: 1081px) {
  .rail-card {
    display: block;
  }
}
@media (max-width: 1080px) {
  .page-shell { grid-template-columns: 1fr; }
  .rail { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-card {
    display: block;
  }
}
@media (max-width: 820px) {
  .content, .rail { padding: 22px 18px; }
  .hero, .feature-band, .card-grid, .split-layout, .case-grid, .insight-grid, .insight-mosaic, .trust-section, .page-links, .subpage-layout, .insight-tile.lead, .library-card { grid-template-columns: 1fr; }
  .insight-tile.lead {
    grid-column: auto;
    flex-direction: column;
  }
  .insight-tile.lead .insight-hit {
    flex-direction: column;
  }
  .insight-tile.lead .insight-hit img {
    width: 100%;
  }
  .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.95rem; }
  .subpage-header { display: grid; }
}

/* --- Article detail: SignalSpring “briefing dossier” (distinct from other consulting sites) --- */
.detail-pattern--signalspring .subpage-shell {
  width: min(1080px, calc(100% - 24px));
}
.detail-pattern--signalspring .subpage-main {
  border-left: 4px solid rgba(91, 92, 255, 0.55);
  padding-left: 28px;
  border-radius: 8px 28px 28px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 245, 252, 0.55) 100%);
}
.detail-pattern--signalspring .article-hero {
  border-bottom: 0;
  padding: 18px 20px 20px;
  margin: 0 -8px 18px -12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(91, 92, 255, 0.07), transparent 42%),
    repeating-linear-gradient(-12deg, rgba(11, 18, 32, 0.03) 0 1px, transparent 1px 14px);
}
.detail-pattern--signalspring .breadcrumb {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.detail-pattern--signalspring .subpage-main h1 {
  font-family: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.02em;
}
.detail-pattern--signalspring .subpage-main h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(24, 33, 44, 0.08);
  padding-bottom: 0.35rem;
}
.detail-pattern--signalspring .author-box {
  border-radius: 12px;
  border-left: 4px solid rgba(91, 92, 255, 0.35);
  background: #fff;
}
.detail-pattern--signalspring .subpage-aside {
  border-radius: 18px;
  align-self: start;
}
@media (min-width: 900px) {
  .detail-pattern--signalspring .subpage-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 22px;
    align-items: start;
  }
  .detail-pattern--signalspring .subpage-aside {
    position: sticky;
    top: 16px;
  }
}
@media (max-width: 820px) {
  .detail-pattern--signalspring .subpage-main {
    border-left-width: 3px;
    padding-left: 18px;
    margin: 0;
    border-radius: 22px;
  }
  .detail-pattern--signalspring .article-hero {
    margin: 0 0 14px;
  }
}

.detail-pattern--signalspring .detail-rail-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(11, 18, 32, 0.82);
  background: rgba(91, 92, 255, 0.08);
  border: 1px solid rgba(91, 92, 255, 0.18);
}
.detail-pattern--signalspring .detail-rail-note strong {
  color: #2a3178;
}
