:root {
  --bs-navy: #0a1d33;
  --bs-navy-light: #17436f;
  --bs-blue: #1d649b;
  --bs-orange: #f47b20;
  --bs-green: #21834b;
  --bs-red: #b92f2f;
  --bs-ink: #1f2937;
  --bs-muted: #637386;
  --bs-line: #dbe4ec;
  --bs-bg: #f3f6f9;
}

/* Shared series navigation */
.bs-series-nav {
  position: relative;
  z-index: 30;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: #071725;
}

.bs-series-nav-inner {
  display: grid;
  width: min(1280px, calc(100% - 2rem));
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-inline: auto;
  padding: 0.65rem 0;
}

.bs-series-brand {
  min-width: max-content;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.05;
}

.bs-series-brand span,
.bs-series-brand strong {
  display: block;
}

.bs-series-brand span {
  color: #ffb77f;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bs-series-brand strong {
  margin-top: 0.18rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.bs-series-links {
  display: flex;
  gap: 0.4rem;
  padding-bottom: 0.08rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bs-series-link {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.65rem;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.bs-series-link span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #dce8f3;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.59rem;
  font-weight: 900;
}

.bs-series-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.bs-series-link.is-current {
  color: #fff;
  border-color: rgba(244, 123, 32, 0.45);
  background: rgba(244, 123, 32, 0.2);
}

.bs-series-link.is-current span {
  color: #fff;
  background: var(--bs-orange);
}

/* Shared article appearance. These rules intentionally load after each legacy
   article style block so every Build Series page uses the same visual system. */
:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) {
  min-height: 70vh;
  color: var(--bs-ink);
  background: var(--bs-bg);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-wrap {
  width: min(1180px, calc(100% - 2rem));
  max-width: none;
  margin-inline: auto;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #fff;
  border-bottom: 5px solid var(--bs-orange);
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(244, 123, 32, 0.2), transparent 29%),
    linear-gradient(110deg, #071725 0%, #0b2948 60%, #154c79 100%);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero::after {
  position: absolute;
  inset: 0 0 0 58%;
  content: '';
  opacity: 0.06;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-position: 0 0, 22px 22px;
  background-size: 44px 44px;
  transform: skewX(-12deg) scale(1.15);
}

/* The shared series bar replaces the older repeated button row. */
:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page) .cc-hero > .cc-wrap[style*="margin-bottom"] {
  display: none;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3.25rem, 7vw, 5.75rem) 0;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero-card {
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: #ffc697;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-eyebrow::before {
  width: 2rem;
  height: 3px;
  content: '';
  border-radius: 99px;
  background: var(--bs-orange);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 5.5vw, 4.75rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero p,
:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-lede {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 1rem;
  line-height: 1.65;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.79rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-btn-primary {
  color: #fff;
  background: var(--bs-orange);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-btn-primary:hover {
  color: #fff;
  background: #d96310;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-btn-blue {
  color: #fff;
  background: var(--bs-blue);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-card {
  padding: 1.2rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-card h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-list li + li {
  margin-top: 0.35rem;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.4rem;
  background: rgba(7, 23, 37, 0.24);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-list a:hover {
  color: #fff;
  border-color: rgba(79, 184, 237, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-list a:focus-visible {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  outline: 3px solid rgba(244, 123, 32, 0.85);
  outline-offset: 2px;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-toc {
  position: sticky;
  z-index: 20;
  top: 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--bs-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(10, 29, 51, 0.06);
  backdrop-filter: blur(9px);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-toc-scroll {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0;
  overflow-x: auto;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-toc a {
  flex: 0 0 auto;
  padding: 0.4rem 0.68rem;
  color: var(--bs-navy);
  border: 1px solid var(--bs-line);
  border-radius: 99px;
  background: #f5f8fa;
  font-size: 0.7rem;
  font-weight: 820;
  text-decoration: none;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-toc a:hover {
  color: #fff;
  border-color: var(--bs-navy);
  background: var(--bs-navy);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-section {
  padding: 3.4rem 0;
  border-top: 1px solid var(--bs-line);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-section:nth-of-type(even) {
  background: #fff;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-section-head {
  margin-bottom: 1.35rem;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-kicker {
  color: var(--bs-orange);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-section-head h2 {
  margin: 0.38rem 0 0;
  color: var(--bs-navy);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 950;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-section-head p {
  max-width: 780px;
  margin: 0.75rem 0 0;
  color: var(--bs-muted);
  line-height: 1.68;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) :is(.cc-grid-2, .cc-grid-3) {
  display: grid;
  gap: 1rem;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-card {
  padding: 1.25rem;
  color: var(--bs-ink);
  border: 1px solid var(--bs-line);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 5px 16px rgba(10, 29, 51, 0.045);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-card h3 {
  margin: 0;
  color: var(--bs-navy);
  font-size: 1.05rem;
  font-weight: 900;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-card p,
:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-card li {
  color: var(--bs-muted);
  line-height: 1.62;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-callout {
  border-left: 4px solid var(--bs-orange);
  background: #fff9f4;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-callout-blue {
  border-left: 4px solid var(--bs-blue);
  background: #f2f8fc;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-callout-success {
  border-left: 4px solid var(--bs-green);
  background: #f2faf5;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-callout-danger {
  border-left: 4px solid var(--bs-red);
  background: #fff5f5;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) :is(.cc-budget-table, .cc-check-table, .cc-level-table) {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--bs-line);
  border-radius: 0.85rem;
  background: #fff;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) :is(.cc-budget-table, .cc-check-table, .cc-level-table) th {
  padding: 0.85rem;
  color: #fff;
  background: var(--bs-navy);
  font-size: 0.75rem;
  text-align: left;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) :is(.cc-budget-table, .cc-check-table, .cc-level-table) td {
  padding: 0.85rem;
  color: #526174;
  border-top: 1px solid var(--bs-line);
  vertical-align: top;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-final-cta {
  margin: 3.5rem 0;
  padding: 2rem;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(120deg, var(--bs-navy), var(--bs-navy-light));
  box-shadow: 0 12px 30px rgba(10, 29, 51, 0.15);
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-final-cta h2 {
  margin: 0;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.03em;
}

:is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-final-cta p {
  color: rgba(255, 255, 255, 0.75);
}

/* New pages and the reorganized series hub */
.bs-page {
  min-height: 70vh;
  color: var(--bs-ink);
  background: var(--bs-bg);
}

.bs-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.bs-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-bottom: 5px solid var(--bs-orange);
  background:
    radial-gradient(circle at 82% 24%, rgba(244, 123, 32, 0.2), transparent 29%),
    linear-gradient(110deg, #071725 0%, #0b2948 60%, #154c79 100%);
}

.bs-hero::after {
  position: absolute;
  inset: 0 0 0 58%;
  content: '';
  opacity: 0.06;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-position: 0 0, 22px 22px;
  background-size: 44px 44px;
  transform: skewX(-12deg) scale(1.15);
}

.bs-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

.bs-eyebrow,
.bs-kicker {
  color: #ffc697;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bs-kicker {
  color: var(--bs-orange);
}

.bs-hero h1 {
  max-width: 820px;
  margin: 0.7rem 0 0;
  color: #fff;
  font-size: clamp(2.55rem, 6vw, 4.9rem);
  font-weight: 950;
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.bs-hero p {
  max-width: 730px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 1.03rem;
  line-height: 1.67;
}

.bs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.bs-btn {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.95rem;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.bs-btn:hover { color: #fff; text-decoration: none; }
.bs-btn-primary { background: var(--bs-orange); }
.bs-btn-primary:hover { background: #d96310; }
.bs-btn-secondary { background: var(--bs-blue); }
.bs-btn-ghost { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); }

.bs-hero-side {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
}

.bs-hero-side strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.bs-hero-side p {
  margin-top: 0.55rem;
  font-size: 0.84rem;
}

.bs-content {
  padding-bottom: 4rem;
}

.bs-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--bs-line);
}

.bs-section.is-white { background: #fff; }

.bs-section-head {
  margin-bottom: 1.35rem;
}

.bs-section-head h2 {
  margin: 0.4rem 0 0;
  color: var(--bs-navy);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 950;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.bs-section-head p {
  max-width: 790px;
  margin: 0.75rem 0 0;
  color: var(--bs-muted);
  line-height: 1.68;
}

.bs-grid-2,
.bs-grid-3,
.bs-grid-4 {
  display: grid;
  gap: 1rem;
}

.bs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bs-card {
  padding: 1.25rem;
  border: 1px solid var(--bs-line);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 5px 16px rgba(10, 29, 51, 0.045);
}

.bs-card h3 {
  margin: 0;
  color: var(--bs-navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.bs-card p,
.bs-card li {
  color: var(--bs-muted);
  line-height: 1.62;
}

.bs-card-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 0.8rem;
  place-items: center;
  color: #fff;
  border-radius: 0.55rem;
  background: var(--bs-navy);
  font-size: 0.8rem;
  font-weight: 950;
}

.bs-card-link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: var(--bs-blue);
  font-size: 0.79rem;
  font-weight: 850;
  text-decoration: none;
}

.bs-card-link:hover { color: var(--bs-orange); text-decoration: none; }

.bs-callout {
  padding: 1.35rem;
  border: 1px solid var(--bs-line);
  border-left: 4px solid var(--bs-orange);
  border-radius: 0.85rem;
  background: #fff9f4;
}

.bs-callout h3 { margin: 0; color: var(--bs-navy); font-weight: 900; }
.bs-callout p { margin: 0.6rem 0 0; color: var(--bs-muted); line-height: 1.65; }

.bs-faq { display: grid; gap: 0.7rem; }
.bs-faq details { border: 1px solid var(--bs-line); border-radius: 0.75rem; background: #fff; }
.bs-faq summary { padding: 1rem 1.1rem; color: var(--bs-navy); font-weight: 850; cursor: pointer; }
.bs-faq-answer { padding: 0 1.1rem 1rem; color: var(--bs-muted); line-height: 1.65; }

.bs-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 2rem;
  color: #fff;
  border-radius: 1rem;
  background: linear-gradient(120deg, var(--bs-navy), var(--bs-navy-light));
}

.bs-final h2 { margin: 0; color: #fff; font-weight: 950; letter-spacing: -0.03em; }
.bs-final p { margin: 0.7rem 0 0; color: rgba(255, 255, 255, 0.74); line-height: 1.65; }

@media (max-width: 980px) {
  .bs-series-nav-inner { grid-template-columns: 1fr; gap: 0.55rem; }
  .bs-series-brand { display: flex; gap: 0.45rem; align-items: baseline; padding: 0; border: 0; }
  .bs-series-brand span, .bs-series-brand strong { display: inline; }
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero-grid,
  .bs-hero-inner { grid-template-columns: 1fr; }
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-quick-card,
  .bs-hero-side { max-width: 680px; }
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-grid-3,
  .bs-grid-3,
  .bs-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .bs-series-nav-inner,
  .bs-wrap,
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-wrap {
    width: min(100% - 1rem, 1180px);
  }
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-grid-2,
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-grid-3,
  .bs-grid-2,
  .bs-grid-3,
  .bs-grid-4,
  .bs-final { grid-template-columns: 1fr; }
  .bs-actions, .bs-btn { width: 100%; }
  :is(.cc-budget-table, .cc-check-table, .cc-level-table) thead { display: none; }
  :is(.cc-budget-table, .cc-check-table, .cc-level-table) tr { display: block; padding: 0.55rem; border-top: 1px solid var(--bs-line); }
  :is(.cc-budget-table, .cc-check-table, .cc-level-table) td { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 0.65rem; padding: 0.45rem; border: 0; }
  :is(.cc-budget-table, .cc-check-table, .cc-level-table) td::before { content: attr(data-label); color: var(--bs-navy); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
}

@media print {
  .bs-series-nav, .cc-toc { display: none; }
  .bs-hero,
  :is(.cc-build-page, .cc-tips-page, .cc-pitfalls-page, .cc-tech-page, .cc-pit-page, .cc-basic-page) .cc-hero {
    color: #000;
    border-bottom: 2px solid #000;
    background: #fff;
  }
}