/* DCCC Home + navigation standard — responsive animated Home, 2026-09-09 */

/* Keep desktop navigation readable and preserve dropdown controls. */
.nav-direct,
.nav-item > a {
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0;
}
.nav-item > button {
  width: 24px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-left: 1px;
  padding: 0;
  font-size: 0 !important;
  color: #111;
}
.nav-item > button::after { content: '▾'; font-size: 14px; line-height: 1; }
.nav-item.open > button::after { content: '▴'; }
.nav-dropdown strong { font-size: 13px; }
.nav-dropdown span { font-size: 11px; }
.mobile-group summary,
.mobile-direct { font-size: 14px; }
.mobile-group > a { font-size: 12px; }

.home-route-active .home-approved-main {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Main Home cards: consistent premium proportions, four columns on large screens. */
.home-route-active .home-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-route-active .home-action-card {
  min-width: 0;
  overflow: hidden;
  display: block;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-route-active .home-action-card:hover,
.home-route-active .home-action-card:focus-visible {
  transform: translateY(-2px);
  border-color: #e0b100;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  outline: none;
}
.home-route-active .home-action-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ececec;
}
.home-route-active .home-action-body {
  min-height: 92px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 20px;
  align-items: center;
  gap: 9px;
  padding: 12px 11px 13px;
}
.home-route-active .home-action-icon { width: 33px; height: 33px; }
.home-route-active .home-action-icon svg { display: block; width: 100%; height: 100%; }
.home-route-active .home-action-copy { min-width: 0; display: grid; gap: 4px; }
.home-route-active .home-action-copy strong { font-size: 13px; line-height: 1.12; font-weight: 900; }
.home-route-active .home-action-copy small { color: #5c5c5c; font-size: 10px; line-height: 1.28; }
.home-route-active .home-action-arrow { align-self: end; padding-bottom: 2px; font-size: 20px; line-height: 1; }

/* Shared Home image carousel: stable geometry, fade-only motion and touch swipe. */
.home-route-active .home-image-carousel { position: relative; overflow: hidden; isolation: isolate; }
.home-route-active .home-image-carousel-track,
.home-route-active .home-image-carousel-slide,
.home-route-active .home-image-carousel-slide canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-route-active .home-image-carousel-track { z-index: 1; }
.home-route-active .home-image-carousel-slide {
  opacity: 0;
  transition: opacity .65s ease;
  background: #e9eaec;
}
.home-route-active .home-image-carousel-slide.active { opacity: 1; }
.home-route-active .home-image-carousel-slide canvas { display: block; object-fit: cover; }
.home-route-active .home-image-carousel-controls {
  position: absolute;
  z-index: 4;
  left: 8px;
  right: 8px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.home-route-active .home-image-carousel-dot,
.home-route-active .home-image-carousel-arrow {
  pointer-events: auto;
  cursor: pointer;
}
.home-route-active .home-image-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: rgba(0,0,0,.24);
  box-shadow: 0 1px 5px rgba(0,0,0,.24);
}
.home-route-active .home-image-carousel-dot.active { background: #f5b400; border-color: #f5b400; }
.home-route-active .home-image-carousel-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 23px;
  line-height: 1;
}

/* Explore DCCC remains lighter than the image cards. */
.home-route-active .home-quick-section { margin-top: 24px; }
.home-route-active .home-quick-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}
.home-route-active .home-quick-title span { color: #8a6b00; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.home-route-active .home-quick-title strong { font-size: 18px; line-height: 1; }
.home-route-active .home-quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.home-route-active .home-quick-card {
  min-width: 0;
  min-height: 102px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 20px;
  align-items: center;
  gap: 9px;
  padding: 14px 12px;
  border: 1px solid #e3e3e3;
  border-radius: 11px;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-route-active .home-quick-card:hover,
.home-route-active .home-quick-card:focus-visible {
  transform: translateY(-2px);
  border-color: #e0b100;
  box-shadow: 0 9px 22px rgba(0,0,0,.08);
  outline: none;
}
.home-route-active .home-quick-icon { width: 34px; height: 34px; }
.home-route-active .home-quick-icon svg { width: 100%; height: 100%; display: block; }
.home-route-active .home-quick-copy { min-width: 0; display: grid; gap: 4px; }
.home-route-active .home-quick-copy strong { font-size: 13px; line-height: 1.15; }
.home-route-active .home-quick-copy small { color: #666; font-size: 9.5px; line-height: 1.3; }
.home-route-active .home-quick-arrow { font-size: 20px; line-height: 1; }

/* The media enhancer wraps the icon/copy/arrow in one body. Size those wrappers,
   not the old three direct children, and keep SVGs inside their icon boxes. */
body.home-route-active #app .home-quick-card-has-media {
  grid-template-columns: minmax(84px, 36%) minmax(0, 1fr);
  padding: 0;
  gap: 0;
  overflow: hidden;
}
body.home-route-active #app .home-quick-photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 128px;
  overflow: hidden;
}
body.home-route-active #app .home-quick-photo canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.home-route-active #app .home-quick-body {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  min-width: 0;
}
body.home-route-active #app .home-quick-icon {
  display: block;
  width: 34px;
  height: 34px;
}
body.home-route-active #app .home-quick-icon svg {
  width: 34px;
  height: 34px;
}
body.home-route-active #app .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.home-route-active #app .home-quick-copy small { font-size: 14px; }
@media (max-width: 650px) {
  body.home-route-active #app .home-quick-grid { grid-template-columns: 1fr; }
}

.home-route-active .home-strength-grid { margin-top: 24px; }

/* Bottom CTA now includes the requested three-image animated visual. */
.home-route-active .home-main-cta {
  min-height: 236px;
  margin-top: 28px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: linear-gradient(115deg,#101010,#1c1c1c);
}
.home-route-active .home-main-cta-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px clamp(22px,3.5vw,48px);
}
.home-route-active .home-main-cta-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 5px;
  background: #f5b400;
  color: #111;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.home-route-active .home-main-cta-media {
  position: relative;
  min-width: 0;
  min-height: 236px;
  background: #232323;
}
.home-route-active .home-main-cta-media::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16,16,16,.72), transparent 34%);
}
.home-route-active .home-main-cta-media .home-image-carousel-controls { justify-content: flex-end; }

body.home-route-active #app .home-main-cta-copy > span { color: #d71920; }
body.home-route-active #app .home-main-cta-copy h2 { color: #fff; }
body.home-route-active #app .home-main-cta + .home-main-cta { margin-top: 20px; }

/* The Home footer follows the CTA immediately; no artificial white spacer. */
.home-route-active .app > .site-footer { margin-top: 0 !important; }
.home-route-active .site-footer { margin-top: 0 !important; }

/* Keep the official company name visible with the animated logo on Home. */
.home-route-active .brand-copy { display: grid !important; min-width: 0; }

@media (min-width: 901px) and (max-width: 1220px) {
  .nav-direct,
  .nav-item > a { font-size: 12px !important; padding: 0 2px; }
  .nav-item > button { width: 18px; }
  .nav-item > button::after { font-size: 12px; }
  .desktop-nav { gap: 1px !important; }
  .home-route-active .home-action-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .home-route-active .home-quick-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .home-route-active .home-main-cta { grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); }
}

@media (max-width: 900px) {
  .home-route-active .home-approved-main { padding-top: 12px; }
  .home-route-active .home-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .home-route-active .home-action-body { min-height: 88px; grid-template-columns: 34px minmax(0,1fr) 18px; }
  .home-route-active .home-action-copy strong { font-size: 13px; }
  .home-route-active .home-action-copy small { font-size: 10px; }
  .home-route-active .home-quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .home-route-active .home-quick-card { min-height: 96px; padding: 12px 10px; }
  .home-route-active .home-main-cta { grid-template-columns: 1fr; }
  .home-route-active .home-main-cta-media { min-height: 220px; }
  .home-route-active .home-main-cta-media::after { background: linear-gradient(180deg, rgba(16,16,16,.5), transparent 34%); }
}

@media (max-width: 760px) {
  .home-route-active .site-brand { min-width: 0; gap: 7px; }
  .home-route-active .brand-copy { display: grid !important; max-width: 145px; }
  .home-route-active .brand-copy strong { display: none; }
  .home-route-active .brand-copy small {
    display: block !important;
    max-width: 145px;
    margin-top: 0;
    white-space: normal;
    color: #555;
    font-size: 7.5px;
    font-weight: 700;
    line-height: 1.12;
  }
  .home-route-active .hero-slider { height: 330px; }
  .home-route-active .hero-copy { width: min(520px, 78vw); margin-left: 24px; }
  .home-route-active .hero-copy h1 { font-size: clamp(35px, 10vw, 54px); }
  .home-route-active .hero-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .home-route-active .home-action-grid { gap: 8px; }
  .home-route-active .home-action-body { min-height: 82px; padding: 9px 8px 10px; grid-template-columns: 30px minmax(0,1fr) 16px; gap: 6px; }
  .home-route-active .home-action-icon { width: 28px; height: 28px; }
  .home-route-active .home-action-copy strong { font-size: 12px; }
  .home-route-active .home-action-copy small { font-size: 9px; }
  .home-route-active .home-action-arrow { font-size: 18px; }
  .home-route-active .home-main-cta-copy { padding: 24px 18px; }
  .home-route-active .home-main-cta-media { min-height: 190px; }
}

@media (max-width: 390px) {
  .home-route-active .home-action-grid,
  .home-route-active .home-quick-grid { grid-template-columns: 1fr; }
  .home-route-active .brand-copy { max-width: 118px; }
  .home-route-active .brand-copy small { max-width: 118px; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-route-active .home-image-carousel-slide,
  .home-route-active .home-action-card,
  .home-route-active .home-quick-card { transition: none !important; }
}

/* Home hero uses the same carousel engine as Home cards and CTA. */
.home-route-active .home-v2-hero { position: relative; }
.home-route-active .home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #161616;
}
.home-route-active .home-hero-media .home-image-carousel-controls {
  left: 50%;
  right: auto;
  bottom: 18px;
  transform: translateX(-50%);
  width: auto;
  gap: 8px;
}
.home-route-active .home-hero-media .home-image-carousel-arrow {
  width: 38px;
  height: 38px;
  font-size: 28px;
  background: rgba(0,0,0,.42);
}
.home-route-active .home-hero-media .home-image-carousel-dot { width: 9px; height: 9px; }


@keyframes dcccHomeVisitorTickerRoll {
  from { transform: translateY(0); }
  to { transform: translateY(var(--home-visitor-ticker-distance, 0px)); }
}
/* DCCC homepage global visitor banner — scoped to the replaced Better Tomorrow CTA only. */
.home-route-active .home-main-cta-visitor-stats {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: stretch;
  min-height: 280px;
  background: linear-gradient(118deg,#101010 0%,#202020 58%,#161616 100%);
  color: #fff;
}
.home-route-active .home-main-cta-visitor-stats .home-visitor-intro {
  padding: 26px clamp(20px,3vw,38px);
  justify-content: center;
}
.home-route-active .home-main-cta-visitor-stats .home-visitor-intro > span {
  color: #f5b400;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.home-route-active .home-main-cta-visitor-stats .home-visitor-intro h2 {
  color: #fff;
  margin: 10px 0 9px;
  font-size: clamp(22px,2.5vw,34px);
  line-height: 1.12;
}
.home-route-active .home-main-cta-visitor-stats .home-visitor-intro p {
  color: #d1d5db;
  margin: 0;
  max-width: 560px;
  font-size: 12px;
  line-height: 1.55;
}
.home-route-active .home-visitor-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}
.home-route-active .home-visitor-metric {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px 11px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}
.home-route-active .home-visitor-metric small {
  color: #bdc3ca;
  font-size: 10px;
  line-height: 1.2;
}
.home-route-active .home-visitor-metric strong {
  color: #f5b400;
  font-size: clamp(20px,2.2vw,28px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.home-route-active .home-visitor-definition {
  display: block;
  max-width: 550px;
  margin-top: 12px;
  color: #aeb4bc;
  font-size: 9px;
  line-height: 1.45;
}
.home-route-active .home-visitor-board {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px clamp(18px,2.8vw,34px);
  border-left: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.025);
}
.home-route-active .home-visitor-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.home-route-active .home-visitor-board-heading > span {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}
.home-route-active .home-visitor-board-heading small {
  color: #aeb4bc;
  font-size: 9px;
  white-space: nowrap;
}
.home-route-active .home-visitor-country-window {
  height: 82px;
  overflow: hidden;
  min-width: 0;
}
.home-route-active .home-visitor-country-track {
  display: flex;
  flex-direction: column;
  transition: transform .65s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}
.home-route-active .home-visitor-country-row {
  min-height: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.2fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(245,180,0,.27);
  border-radius: 9px;
  background: rgba(0,0,0,.23);
}
.home-route-active .home-visitor-country-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-route-active .home-visitor-flag { font-size: 27px; flex: 0 0 auto; line-height: 1; }
.home-route-active .home-visitor-country-name {
  min-width: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.home-route-active .home-visitor-country-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  min-width: 0;
}
.home-route-active .home-visitor-country-count {
  display: grid;
  gap: 5px;
  text-align: center;
  min-width: 0;
}
.home-route-active .home-visitor-country-count small {
  color: #aeb4bc;
  font-size: 8px;
  line-height: 1.1;
}
.home-route-active .home-visitor-country-count strong {
  color: #f5b400;
  font-size: 15px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.home-route-active .home-visitor-country-empty {
  grid-template-columns: 36px minmax(0,1fr);
  color: #c5c9ce;
}
.home-route-active .home-visitor-ticker-caption {
  margin-top: 12px;
  color: #989fa8;
  font-size: 9px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .home-route-active .home-main-cta-visitor-stats { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .home-route-active .home-main-cta-visitor-stats .home-visitor-intro { padding: 22px 18px; }
  .home-route-active .home-main-cta-visitor-stats .home-visitor-board { padding: 20px 16px; }
  .home-route-active .home-visitor-country-row { grid-template-columns: minmax(0,1fr); gap: 8px; height: 92px; min-height: 92px; flex-basis: 92px; }
  .home-route-active .home-visitor-country-window { height: 92px; }
  .home-route-active .home-visitor-country-identity { gap: 8px; }
  .home-route-active .home-visitor-flag { font-size: 21px; }
  .home-route-active .home-visitor-country-metrics { gap: 3px; }
  .home-route-active .home-visitor-country-count strong { font-size: 13px; }
}
@media (max-width: 650px) {
  .home-route-active .home-main-cta-visitor-stats { grid-template-columns: minmax(0,1fr); }
  .home-route-active .home-main-cta-visitor-stats .home-visitor-intro { padding: 24px 20px 18px; }
  .home-route-active .home-main-cta-visitor-stats .home-visitor-board { padding: 18px 20px 22px; border-left: 0; border-top: 1px solid rgba(255,255,255,.11); }
  .home-route-active .home-visitor-metrics { gap: 6px; margin-top: 16px; }
  .home-route-active .home-visitor-metric { padding: 10px 8px; }
  .home-route-active .home-visitor-metric small { font-size: 9px; }
  .home-route-active .home-visitor-metric strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-route-active .home-visitor-country-track { transition: none; animation: none !important; }
}