/* brand.css — global override layer (loaded after page CSS on every page).
   GREEN identity: dark-green base + faint game-image background layer, no pink/purple.
   Pink/cyan accents were hue-rotated to green in the cloned CSS; gold stays as the secondary. */

:root {
  --bg: #08140d !important;          /* dark green base (was navy/plum) */
  --bg-soft: #0c1f14 !important;
  --panel: #143524 !important;       /* lighter green panels (淡绿) */
  --panel-2: #1a4029 !important;
  --panel-3: #225033 !important;
  --line: rgba(39, 208, 122, .20) !important;  /* green hairlines */
  --navy-deep: #050f0a !important;
  --navy-soft: #0c1f14 !important;
}

/* page body: solid dark-green base + a soft green glow (no screenshot here) */
body {
  background:
    radial-gradient(circle at 12% -4%, rgba(39, 208, 122, .14), transparent 34%),
    radial-gradient(circle at 90% 4%, rgba(150, 220, 90, .10), transparent 30%),
    linear-gradient(180deg, #0b1a11, #08140d 46%, #060f0a) !important;
}

/* whole-page wrapper carries the faint game-image background layer behind all content */
.page-shell,
.home-guide-page,
.site-info-page {
  background:
    linear-gradient(180deg, rgba(8, 20, 13, .86), rgba(7, 16, 10, .93) 60%, rgba(6, 14, 9, .97)),
    url('/evomon/official/banner-16x9.jpg') center top / cover fixed,
    var(--bg) !important;
}

/* homepage background: the 5 docs PNGs montaged into a cycling tile, repeated to fill the page,
   under a green veil that keeps text readable. (Overrides the generic .page-shell rule above.) */
/* NOTE: cloned org-css targets these with `.class[data-astro-cid]` (0,2,0) + !important,
   so our overrides use 2 classes (0,2,0) and win by later source order. */
.page-shell.home-template-page {
  background-color: var(--bg) !important;
  background-image:
    linear-gradient(180deg, rgba(8, 20, 13, .95), rgba(7, 16, 10, .965) 55%, rgba(6, 14, 9, .98)),
    url('/home-bg-tile.jpg') !important;
  background-position: center, top center !important;
  background-size: cover, 1400px auto !important;
  background-repeat: no-repeat, repeat !important;
  background-attachment: scroll, scroll !important;
}
/* let the montage show through the hero + main (their own dark fills covered it) */
.page-shell.home-template-page .home-template-main,
.page-shell.home-template-page .home-hero { background: transparent !important; }
.page-shell.home-template-page .home-template-main:before { display: none !important; }

/* heroes: homepage only — sub-page heroes get a solid surface below */
.home-hero:before,
.home-guide-page .home-hero:before {
  background-image:
    radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(16, 48, 30, .58), rgba(8, 22, 14, .42)) !important;
  background-size: 22px 22px, cover !important;
  opacity: 1 !important;
}

/* ---- responsive width: widen on large screens, keep mobile safe ---- */
@media (min-width: 1440px) {
  .home-template-layout { width: min(1500px, calc(100% - 56px)) !important; }
  .site-nav { max-width: 1560px !important; }
  .article-layout,
  .article-hero > *,
  .home-template-main,
  .home-bottom-cta { max-width: none !important; }
}

/* never let anything cause horizontal scroll on small screens */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---- homepage video section ---- */
.evm-videos {
  width: min(1220px, calc(100% - 40px));
  margin: 8px auto 36px;
}
@media (min-width: 1440px) { .evm-videos { width: min(1500px, calc(100% - 56px)); } }
.evm-videos h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 0 0 6px;
  color: var(--text, #eafff2);
}
.evm-videos .evm-sub { color: var(--muted, #a7d8bf); margin: 0 0 16px; font-size: .95rem; }
.evm-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.evm-video-card {
  background: var(--panel, #0e2417);
  border: 1px solid var(--line, rgba(39,208,122,.2));
  border-radius: 14px;
  overflow: hidden;
}
.evm-video-embed { position: relative; aspect-ratio: 16 / 9; background: #04100a; }
.evm-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.evm-video-title {
  display: block;
  padding: 10px 12px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #eafff2);
  text-decoration: none;
  line-height: 1.35;
}
.evm-video-title:hover { color: var(--cyan, #27d07a); }
@media (max-width: 380px) { .evm-video-grid { grid-template-columns: 1fr; } }

/* ---- typography upgrade: prettier fonts + larger sizes + more breathing room ---- */
html { font-size: 17.5px !important; }
body, input, button, select, textarea {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
  line-height: 1.72 !important;
}
h1, h2, h3, h4, h5, h6, .brand-text strong {
  font-family: 'Baloo 2', 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: .2px;
  line-height: 1.18 !important;
}

/* more generous spacing */
.home-section, section[class*="home-"] { margin-top: 2.1rem !important; }
.home-template-layout { gap: 42px !important; }
.article-section, .article-card { margin-bottom: 1.4rem !important; }

/* wide screens: keep a comfortable width with real side gutters so the montage shows */
@media (min-width: 1440px) {
  .home-template-layout { width: min(1340px, calc(100% - 90px)) !important; }
  .site-nav { max-width: 1440px !important; }
}

/* ---- single-column homepage: Guide Map + Active Codes moved into the content column ---- */
.home-template-layout { display: block !important; }
.home-template-primary { width: 100% !important; max-width: none !important; }

/* relocated sidebar blocks become full-width sections */
.home-template-primary .home-sidebar-block {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 2rem 0 0 !important;
}
/* Active Codes → responsive card grid */
.home-template-primary .home-sidebar-watch-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 12px !important;
}
/* Guide Map → responsive multi-column grid of section groups */
.home-template-primary .home-sidebar-nav.wiki-navigation-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 10px 18px !important;
  align-items: start !important;
}
/* the relocated "Play on Roblox" card: center, modest width */
.home-template-primary .home-sidebar-game-card {
  display: block !important;
  max-width: 460px !important;
  margin: 2rem auto 0 !important;
}

/* ---- all content blocks → translucent army-green (text stays opaque; montage shows through).
   Site-wide via .page-shell prefix (0,2,0) to beat cloned `.class[data-astro-cid]`+!important.
   We set background-color (rgba), NOT opacity, so text/contents remain fully opaque. ---- */
.page-shell [class*="card"],
.page-shell [class*="panel"],
.page-shell [class*="-block"],
.page-shell .home-template-video,
.page-shell .home-intro-grid > *,
.page-shell .wiki-navigation-group,
.page-shell .home-bottom-cta,
.page-shell .article-card,
.page-shell .detail-panel,
.page-shell .monster-card,
.page-shell .tc-summary {
  background-image: none !important;
  background-color: rgba(60, 86, 46, 0.42) !important;
  border-color: rgba(120, 165, 92, 0.22) !important;
}

/* Final army-green surface lock.
   Some cloned bundles carry scoped selectors with !important. These late, high-specificity
   rules keep every former navy shell/card/header surface on the same green primary. */
:root {
  --bg: #0b2619 !important;
  --bg-soft: #0c1f14 !important;
  --panel: #143524 !important;
  --panel-2: #1a4029 !important;
  --panel-3: #225033 !important;
  --line: rgba(120, 165, 92, .28) !important;
  --navy-deep: #07170f !important;
  --navy-soft: #0f2b1b !important;
  --cyan-soft: rgba(39, 208, 122, .14) !important;
}

html,
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(39, 208, 122, .17), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(120, 165, 92, .14), transparent 28%),
    linear-gradient(180deg, #123d27, #0b2619 50%, #07170f) !important;
}

.page-shell.page-shell,
.home-guide-page.home-guide-page,
.site-info-page.site-info-page,
.page-shell.home-template-page,
.page-shell .home-template-main,
.page-shell .home-hero {
  background-color: #0b2619 !important;
  background-image:
    linear-gradient(180deg, rgba(11, 38, 25, .90), rgba(8, 28, 18, .94) 58%, rgba(7, 23, 15, .98)),
    var(--evm-bg-image, url('/home-bg-tile.jpg')) !important;
  background-position: center, top center !important;
  background-size: cover, 1400px auto !important;
  background-repeat: no-repeat, repeat !important;
}

.site-header.site-header,
.site-footer.site-footer {
  border-color: rgba(120, 165, 92, .30) !important;
  background:
    linear-gradient(180deg, rgba(10, 34, 22, .97), rgba(7, 23, 15, .95)),
    #0b2619 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42) !important;
}

.nav-dropdown.nav-dropdown,
.primary-dropdown.primary-dropdown,
.action-dropdown.action-dropdown,
.language-dropdown.language-dropdown,
.more-wikis-dropdown.more-wikis-dropdown,
.nav-submenu.nav-submenu {
  border-color: rgba(120, 165, 92, .34) !important;
  background:
    linear-gradient(180deg, rgba(20, 53, 36, .98), rgba(10, 34, 22, .98)),
    #143524 !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .42) !important;
}

.page-shell.page-shell [class*="card"],
.page-shell.page-shell [class*="panel"],
.page-shell.page-shell [class*="-block"],
.page-shell.page-shell .home-template-video,
.page-shell.page-shell .home-intro-grid > *,
.page-shell.page-shell .home-fact-grid.home-fact-grid,
.page-shell.page-shell .home-fact-grid.home-fact-grid article,
.page-shell.page-shell .wiki-navigation-group,
.page-shell.page-shell .home-bottom-cta,
.page-shell.page-shell .home-update-more,
.page-shell.page-shell .question-grid.question-grid article,
.page-shell.page-shell .question-grid.question-grid a,
.page-shell.page-shell .guide-table-shell,
.page-shell.page-shell .detail-item,
.page-shell.page-shell .faq-item,
.page-shell.page-shell .back-to-top {
  border-color: rgba(120, 165, 92, .30) !important;
  background:
    linear-gradient(180deg, rgba(26, 64, 41, .88), rgba(12, 31, 20, .92)),
    #143524 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .06) !important;
}

.page-shell.page-shell [class*="card"]:hover,
.page-shell.page-shell [class*="panel"]:hover,
.page-shell.page-shell [class*="-block"]:hover,
.page-shell.page-shell .question-grid.question-grid article:hover,
.page-shell.page-shell .question-grid.question-grid a:hover {
  border-color: rgba(39, 208, 122, .50) !important;
  background:
    linear-gradient(180deg, rgba(34, 80, 51, .92), rgba(15, 43, 27, .96)),
    #1a4029 !important;
}

.button.secondary,
.copy-button.secondary,
.page-shell .nav-link,
.page-shell .language-button,
.page-shell .more-wikis-button {
  border-color: rgba(120, 165, 92, .34) !important;
  background: rgba(12, 31, 20, .84) !important;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.primary-dropdown .nav-dropdown-link:hover,
.primary-dropdown .nav-dropdown-link:focus-visible,
.language-dropdown a[aria-current="true"] {
  background: rgba(39, 208, 122, .14) !important;
}

.page-shell.page-shell.home-template-page.home-template-page .home-what-section.home-what-section .home-fact-grid.home-fact-grid article,
.page-shell.page-shell.home-template-page.home-template-page .home-panel.home-panel,
.page-shell.page-shell.home-template-page.home-template-page .home-sidebar-block.home-sidebar-block,
.page-shell.page-shell.home-template-page.home-template-page .home-bottom-cta.home-bottom-cta,
.page-shell.page-shell.home-template-page.home-template-page .route-card.route-card,
.page-shell.page-shell.home-template-page.home-template-page .checkpoint-panel.checkpoint-panel,
.page-shell.page-shell.home-template-page.home-template-page .table-card.table-card,
.page-shell.page-shell.home-template-page.home-template-page .pillar-card.pillar-card,
.page-shell.page-shell.home-template-page.home-template-page .question-grid.question-grid article,
.page-shell.page-shell.home-template-page.home-template-page .question-grid.question-grid a,
.page-shell.page-shell.home-template-page.home-template-page .shortcut-card.shortcut-card,
.page-shell.page-shell.home-template-page.home-template-page .wiki-navigation-group.wiki-navigation-group {
  border-color: rgba(120, 165, 92, .30) !important;
  background:
    linear-gradient(180deg, rgba(26, 64, 41, .88), rgba(12, 31, 20, .92)),
    #143524 !important;
}

/* Shared page polish: article heroes, sibling navs, and bottom funnels.
   Use `.page-shell section.article-hero` to beat page-scoped `.codes-hero[data-astro-cid]` rules. */
.page-shell section.article-hero,
.page-shell section[class*="-detail-hero"],
.page-shell .site-info-hero,
.page-shell .article-hero,
.page-shell [class*="-detail-hero"],
.page-shell.page-shell [class*="-detail-hero"],
.page-shell.page-shell .article-hero {
  position: relative !important;
  isolation: isolate !important;
  width: min(1220px, calc(100% - 40px)) !important;
  margin: 24px auto 34px !important;
  padding: clamp(24px, 4vw, 52px) !important;
  border: 1px solid rgba(120, 165, 92, .30) !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background-color: #143524 !important;
  background-image: none !important;
  background:
    linear-gradient(180deg, #1a4029 0%, #143524 55%, #0f2b1b 100%) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .07) !important;
}

.page-shell .article-hero::before,
.page-shell [class*="-detail-hero"]::before,
.page-shell.page-shell .article-hero::before,
.page-shell.page-shell [class*="-detail-hero"]::before {
  display: none !important;
  content: none !important;
}

.page-shell .article-hero [class*="-block"],
.page-shell [class*="-detail-hero"] [class*="-block"],
.page-shell.page-shell .article-hero [class*="-block"],
.page-shell.page-shell [class*="-detail-hero"] [class*="-block"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page-shell .article-hero .article-title-block,
.page-shell [class*="-detail-hero"] .article-title-block,
.page-shell.page-shell .article-hero .article-title-block,
.page-shell.page-shell [class*="-detail-hero"] .article-title-block {
  max-width: 980px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-shell .article-hero .breadcrumbs,
.page-shell [class*="-detail-hero"] .breadcrumbs,
.page-shell.page-shell .article-hero .breadcrumbs,
.page-shell.page-shell [class*="-detail-hero"] .breadcrumbs {
  margin-bottom: clamp(14px, 2.2vw, 24px) !important;
}

.page-shell .article-hero .article-meta,
.page-shell [class*="-detail-hero"] .article-meta,
.page-shell.page-shell .article-hero .article-meta,
.page-shell.page-shell [class*="-detail-hero"] .article-meta {
  gap: 10px !important;
  margin-top: clamp(18px, 2.5vw, 28px) !important;
}

.page-shell .codes-hero-stats > div,
.page-shell .section-index-hero-stats > div,
.page-shell.page-shell .codes-hero-stats > div,
.page-shell.page-shell .section-index-hero-stats > div {
  padding: 18px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(120, 165, 92, .24) !important;
  background-color: #143524 !important;
  background:
    linear-gradient(180deg, #1a4029 0%, #143524 55%, #0f2b1b 100%) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .06) !important;
}

/* Match quick-guide panels: solid content cards under the hero on sub-pages. */
.page-shell .quick-guide,
.page-shell .article-section,
.page-shell .content-group,
.page-shell.page-shell .quick-guide {
  background-color: #143524 !important;
  background:
    linear-gradient(180deg, #1a4029 0%, #143524 55%, #0f2b1b 100%) !important;
  border: 1px solid rgba(120, 165, 92, .30) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .06) !important;
}

/* These three are card-ified above but the cloned base CSS only gives them
   partial padding (.content-group: 24px 0 0; .article-section: 10px 0 0), so
   their content sits flush against the new card border. Give every panel a
   consistent inner padding. .quick-guide already ships 24px and is excluded. */
.page-shell .article-section,
.page-shell .content-group,
.page-shell.page-shell .article-section,
.page-shell.page-shell .content-group {
  padding: clamp(20px, 3vw, 28px) !important;
}

.page-shell.page-shell .home-sidebar-watch-card {
  padding: 16px 18px !important;
  border-radius: 18px !important;
}

.page-shell.page-shell .home-sidebar-watch-list {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.page-shell.page-shell .home-sidebar-watch-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 32px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(120, 165, 92, .24) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(26, 64, 41, .88), rgba(12, 31, 20, .92)),
    #143524 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .05) !important;
}

.page-shell.page-shell .home-sidebar-watch-row + .home-sidebar-watch-row {
  border-top: 0 !important;
}

.page-shell.page-shell .home-sidebar-watch-arrow[data-copied="true"] .home-sidebar-watch-copy-icon {
  display: none !important;
}

.page-shell.page-shell .home-sidebar-watch-arrow[data-copied="true"] .home-sidebar-watch-check-icon {
  display: block !important;
}

.page-shell.page-shell [class*="sibling-nav"] {
  padding: 20px !important;
  border-radius: 22px !important;
  border-color: rgba(120, 165, 92, .30) !important;
  background:
    linear-gradient(180deg, rgba(26, 64, 41, .82), rgba(12, 31, 20, .90)),
    #143524 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .06) !important;
}

.engine-funnel-region {
  width: min(1220px, calc(100% - 40px)) !important;
  max-width: 1220px !important;
  margin: 2.5rem auto !important;
  padding: 0 !important;
}

.engine-funnel-region .engine-funnel,
.page-shell.page-shell .bottom-cta,
.page-shell.page-shell .home-bottom-cta {
  padding: clamp(24px, 3.4vw, 44px) !important;
  border-radius: 26px !important;
  border-color: rgba(120, 165, 92, .32) !important;
  background:
    linear-gradient(180deg, rgba(26, 64, 41, .82), rgba(12, 31, 20, .92)),
    #143524 !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .30), inset 0 1px rgba(255, 255, 255, .07) !important;
}

.engine-funnel-region .engine-funnel__form {
  gap: 10px !important;
}

.engine-funnel-region .engine-funnel__form input,
.engine-funnel-region .engine-funnel__form button {
  min-height: 44px !important;
  border-radius: 12px !important;
}

/* Homepage first screen: text left, lazy video right. */
.page-shell.page-shell.home-template-page .home-template-hero {
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr) !important;
  align-items: center !important;
  align-content: center !important;
  column-gap: clamp(40px, 4.6vw, 72px) !important;
  row-gap: 14px !important;
  box-sizing: border-box !important;
  min-height: calc(100svh - var(--site-header-height, 86px) - 18px) !important;
  margin-top: clamp(10px, 1.3vw, 18px) !important;
  padding: clamp(24px, 4vw, 58px) 0 clamp(20px, 3.4vw, 46px) !important;
  text-align: left !important;
}

.page-shell.page-shell.home-template-page .home-template-title-row,
.page-shell.page-shell.home-template-page .home-template-hero > h1,
.page-shell.page-shell.home-template-page .home-template-lead,
.page-shell.page-shell.home-template-page .home-template-pills,
.page-shell.page-shell.home-template-page .home-template-ctas {
  grid-column: 1 !important;
  max-width: 680px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.page-shell.page-shell.home-template-page .home-template-title-row {
  justify-content: flex-start !important;
  margin: 0 !important;
}

.page-shell.page-shell.home-template-page .home-template-hero > h1 {
  margin: 0 !important;
  font-size: clamp(3rem, 5.25vw, 5.15rem) !important;
  line-height: .94 !important;
}

.page-shell.page-shell.home-template-page .home-template-lead {
  margin: 4px 0 0 !important;
  font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
  line-height: 1.55 !important;
}

.page-shell.page-shell.home-template-page .home-template-pills,
.page-shell.page-shell.home-template-page .home-template-ctas {
  justify-content: flex-start !important;
}

.page-shell.page-shell.home-template-page .home-template-pills {
  gap: 7px !important;
  margin-top: 8px !important;
}

.page-shell.page-shell.home-template-page .home-template-ctas {
  gap: 10px !important;
  margin-top: 10px !important;
}

.page-shell.page-shell.home-template-page .home-template-video {
  grid-column: 2 !important;
  grid-row: 1 / span 5 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: stretch !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .40), inset 0 1px rgba(255, 255, 255, .08) !important;
}

@media (min-width: 1440px) {
  .page-shell.page-shell.home-template-page .home-template-hero {
    grid-template-columns: minmax(560px, .9fr) minmax(620px, 1.1fr) !important;
    row-gap: 12px !important;
    padding-top: clamp(22px, 3.2vw, 48px) !important;
    padding-bottom: clamp(18px, 2.6vw, 38px) !important;
  }

  .page-shell.page-shell.home-template-page .home-template-title-row,
  .page-shell.page-shell.home-template-page .home-template-hero > h1,
  .page-shell.page-shell.home-template-page .home-template-lead,
  .page-shell.page-shell.home-template-page .home-template-pills,
  .page-shell.page-shell.home-template-page .home-template-ctas {
    max-width: 720px !important;
  }
}

.page-shell.page-shell.home-template-page .home-template-video .home-video-trigger {
  min-height: 100% !important;
}

.home-template-video .home-video-autoplay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: #07170f;
}

.home-template-video.is-autoplaying .home-video-trigger {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .page-shell.page-shell.home-template-page .home-template-hero {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    text-align: center !important;
  }

  .page-shell.page-shell.home-template-page .home-template-title-row,
  .page-shell.page-shell.home-template-page .home-template-hero > h1,
  .page-shell.page-shell.home-template-page .home-template-lead,
  .page-shell.page-shell.home-template-page .home-template-pills,
  .page-shell.page-shell.home-template-page .home-template-ctas,
  .page-shell.page-shell.home-template-page .home-template-video {
    grid-column: 1 !important;
    grid-row: auto !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-shell.page-shell.home-template-page .home-template-title-row,
  .page-shell.page-shell.home-template-page .home-template-pills,
  .page-shell.page-shell.home-template-page .home-template-ctas {
    justify-content: center !important;
  }
}

@media (max-width: 760px) {
  .page-shell .article-hero,
  .page-shell [class*="-detail-hero"],
  .page-shell.page-shell [class*="-detail-hero"],
  .page-shell.page-shell .article-hero,
  .engine-funnel-region {
    width: min(100% - 28px, 1220px) !important;
  }

  .page-shell .article-hero,
  .page-shell [class*="-detail-hero"],
  .page-shell.page-shell [class*="-detail-hero"],
  .page-shell.page-shell .article-hero,
  .engine-funnel-region .engine-funnel,
  .page-shell.page-shell .bottom-cta,
  .page-shell .bottom-cta,
  .page-shell.page-shell .home-bottom-cta,
  .page-shell .home-bottom-cta {
    border-radius: 20px !important;
    padding: 22px !important;
  }
}

/* Late lock: page bundles ship semi-transparent [data-astro-cid] hero backgrounds. */
.page-shell section.article-hero,
.page-shell section[class*="-detail-hero"],
.page-shell section[class*="-hero"]:not(.home-hero):not(.hero-section):not(.home-template-hero) {
  background-color: #143524 !important;
  background-image: none !important;
  background: linear-gradient(180deg, #1a4029 0%, #143524 55%, #0f2b1b 100%) !important;
}

/* ---- homepage hero: keep it transparent so the montage shows through (the section is
   `.home-template-hero`, not `.home-hero`; its greened gradient box was covering the bg). ---- */
.page-shell.page-shell.home-template-page .home-template-hero,
.page-shell.page-shell.home-template-page .home-template-hero::before,
.page-shell.page-shell.home-template-page .home-template-hero::after {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
