/* GENERATED by .claude/design/pages-build/mk_cc_new.py from the live incolour/childcare.php <style> blocks (layer pgpage, scoped to <main>), then the CF2 re-skin cc_pg.css (layer pg). Do not edit: rerun the script. */
@layer pgpage {

	main {
		/* Primary Colors */
		--primary-color: #005F6E;        /* Teal - main brand color */
		--secondary-color: #6e0f31;      /* Burgundy - accent color */
		--accent-color: #ED8B00;         /* Orange - highlights */
		--accent-color-dark: #C57300;    /* Darker orange - for gradients */
		--success-color: #1ABC9C;        /* Turquoise - positive/success */
		--success-color-dark: #16A085;   /* Darker turquoise - for gradients */
		--dark-color: #1A171B;           /* Dark - text/headers */

		/* Neutral Colors */
		--neutral-1: #999967;            /* Olive grey */
		--neutral-2: #CCCCCC;            /* Light grey */
		--neutral-3: #CCCC9A;            /* Beige grey */

		/* Dark Navy Theme (from indexLanding.html) */
		--dark-navy-1: #0a0f1a;          /* Deepest navy */
		--dark-navy-2: #141c2e;          /* Mid navy */
		--dark-navy-3: #1a2540;          /* Lighter navy */
	}


	@keyframes drawLine {
		0% {
			stroke-dashoffset: 2500;
			opacity: 0;
		}
		10% {
			opacity: 1;
		}
		100% {
			stroke-dashoffset: 0;
			opacity: 1;
		}
	}

	@keyframes pulse {
		0% { transform: scale(0.5); opacity: 0.8; }
		100% { transform: scale(2); opacity: 0; }
	}


  main {
    --lg-ink: #0a1628;
    --ink-light: #334155;
    --ink-muted: #64748b;
    --ink-faint: #94a3b8;
    --surface: #ffffff;
    --surface-warm: #faf9f7;
    --surface-cool: #f1f5f9;
    --surface-dark: #0f1d32;
    --accent: #005F6E;
    --accent-light: #0891b2;
    --accent-vivid: #06b6d4;
    --signal: #ED8B00;
    --signal-light: #f59e0b;
    --success: #059669;
    --danger: #dc2626;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  }

  @keyframes hiwFadeIn { from { opacity: 0; } to { opacity: 1; } }

  @keyframes hiwSlideIn { from { opacity: 0; transform: translate(-50%,-48%); } to { opacity: 1; transform: translate(-50%,-50%); } }


  /* Fade-in for infra grid */
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }


  /* Fade-in animation */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes ccSpin { to { transform: rotate(360deg); } }

          @keyframes ccGuideBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@scope (main) {


	/* Reserve specific height for navbar on desktop to prevent shift when menu loads */
	@media (min-width: 992px) {
		.topNav-navbar {
			min-height: 80px;
		}
		#navbarNavDropdown {
			min-height: 40px;
		}
	}


	/* Staggered animation delays for each line */
	.fl1 { animation-delay: 0s; }

	.fl2 { animation-delay: 0.15s; }

	.fl3 { animation-delay: 0.3s; }

	.fl4 { animation-delay: 0.45s; }

	.fl5 { animation-delay: 0.6s; }

	.fl6 { animation-delay: 0.75s; }

	.fl7 { animation-delay: 0.9s; }

	.fl8 { animation-delay: 1.05s; }

	.fl9 { animation-delay: 1.2s; }

	.fl10 { animation-delay: 1.35s; }

	.fl11 { animation-delay: 1.5s; }

	.fl12 { animation-delay: 1.65s; }

	.fl13 { animation-delay: 1.8s; }

	.fl14 { animation-delay: 1.95s; }

	.fl15 { animation-delay: 2.1s; }

	.fl16 { animation-delay: 2.25s; }

	.fl17 { animation-delay: 2.4s; }

	.fl18 { animation-delay: 2.55s; }

	.fl19 { animation-delay: 2.7s; }

	.fl20 { animation-delay: 2.85s; }

	.fl21 { animation-delay: 3s; }


	/* Secondary fan delays - starts after primary completes (~5s) */
	.fs1 { animation-delay: 5s; }

	.fs2 { animation-delay: 5.12s; }

	.fs3 { animation-delay: 5.24s; }

	.fs4 { animation-delay: 5.36s; }

	.fs5 { animation-delay: 5.48s; }

	.fs6 { animation-delay: 5.6s; }

	.fs7 { animation-delay: 5.72s; }

	.fs8 { animation-delay: 5.84s; }

	.fs9 { animation-delay: 5.96s; }

	.fs10 { animation-delay: 6.08s; }

	.fs11 { animation-delay: 6.2s; }

	.fs12 { animation-delay: 6.32s; }

	.fs13 { animation-delay: 6.44s; }

	.fs14 { animation-delay: 6.56s; }

	.fs15 { animation-delay: 6.68s; }

	.fs16 { animation-delay: 6.8s; }


	/* Mobile Adjustments */
	@media (max-width: 768px) {
		/* Prevent horizontal overflow - only on html to not interfere with scroll */
		html {
			overflow-x: hidden;
		}

		/* Ensure smooth scrolling on iOS */
		body {
			-webkit-overflow-scrolling: touch;
		}

		/* Fix scroll-to-top button positioning on mobile */
		.scroll-to-top {
			right: 1rem;
			width: 44px;
			height: 44px;
		}

		/* Content section fits neatly */
		#content,
		.content-wrap,
		.container {
			max-width: 98vw;
			margin: 0 auto;
		}

		.eco-hero {
			padding: 2rem 0 1.75rem;
		}

		.eco-hero-title-row {
			flex-direction: column;
			align-items: flex-start;
			gap: 0.75rem;
		}

		.eco-hero-meta {
			flex-direction: column;
			align-items: flex-start;
			gap: 0.5rem;
		}
	}


	@media (max-width: 991px) {
		.topNav-navbar {
			min-height: 70px;
		}
		#navbarNavDropdown { position: fixed; top: 85px; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100vh - 85px); max-height: calc(100vh - 85px); background: white; z-index: 1040; display: none; overflow-y: auto; overflow-x: hidden; padding: 0; margin: 0; border: none; transform: none; transition: none; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
		#navbarNavDropdown.show { display: block; }
		body.dark-mode #navbarNavDropdown { background: #1a1a1a; }
		#navbarNavDropdown .navbar-nav { flex-direction: column; width: 100%; margin: 0; padding: 0; }
		#navbarNavDropdown .nav-item { width: 100%; margin: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
		body.dark-mode #navbarNavDropdown .nav-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
		#navbarNavDropdown .nav-link { padding: 18px 20px; font-size: 17px; color: var(--text-color, #333); display: flex; justify-content: space-between; align-items: center; text-decoration: none; background: transparent; border: none; width: 100%; text-align: left; cursor: pointer; }
		#navbarNavDropdown .nav-link:hover, #navbarNavDropdown .nav-link:focus { background-color: rgba(237, 139, 0, 0.08); outline: none; }
		#navbarNavDropdown .dropdown-toggle::after { content: '+'; border: none; font-size: 24px; font-weight: 300; color: #999; margin-left: auto; transition: transform 0.3s ease; width: auto; height: auto; vertical-align: unset; }
		#navbarNavDropdown .dropdown.show .dropdown-toggle::after { content: '−'; transform: none; }
		#navbarNavDropdown .dropdown-menu { position: static; float: none; width: 100%; margin: 0; padding: 0; border: none; border-radius: 0; background: rgba(0, 0, 0, 0.02); box-shadow: none; transform: none; display: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; top: auto; left: auto; right: auto; bottom: auto; }
		body.dark-mode #navbarNavDropdown .dropdown-menu { background: rgba(255, 255, 255, 0.02); }
		#navbarNavDropdown .dropdown.show .dropdown-menu { display: block; max-height: 500px; transition: max-height 0.3s ease-in; }
		#navbarNavDropdown .dropdown-item { padding: 14px 20px 14px 40px; font-size: 16px; color: var(--text-color, #666); border-bottom: 1px solid rgba(0, 0, 0, 0.05); background: transparent; border-radius: 0; white-space: normal; word-wrap: break-word; }
		body.dark-mode #navbarNavDropdown .dropdown-item { color: #ccc; border-bottom-color: rgba(255, 255, 255, 0.05); }
		#navbarNavDropdown .dropdown-item:last-child { border-bottom: none; }
		#navbarNavDropdown .dropdown-item:hover, #navbarNavDropdown .dropdown-item:focus { background-color: rgba(237, 139, 0, 0.1); color: var(--text-color, #333); }
		#navbarNavDropdown .dropdown-menu[data-bs-popper] { position: static; inset: unset; transform: none; }
		body.mobile-menu-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
		#navbarNavDropdown .topNav-search-icon { margin: 20px; width: calc(100% - 40px); justify-content: center; background: var(--accent-color); color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; }
		#navbarNavDropdown, #navbarNavDropdown * { -webkit-transform: none; -moz-transform: none; -ms-transform: none; -o-transform: none; }
	}

	#content {
		visibility: visible;
		opacity: 1;
	}


  * { box-sizing: border-box; }


  h1, h2, h3, h4, h5 {
    font-family: var(--f);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }



  /* ============================================
     SECTION STYLES
     ============================================ */
  .section {
    padding: 3.5rem 0;
  }


  .section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
  }


  .section-label {
    font-family: var(--f);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }


  .section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }


  .section-intro {
    font-size: 1.05rem;
    color: var(--ink-light);
    max-width: 720px;
    line-height: 1.7;
  }


  /* ============================================
     DATA CARDS
     ============================================ */
  .data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }


  .data-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
  }


  .data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }


  .data-card-title {
    font-family: var(--f);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
  }


  .data-card-value {
    font-family: var(--f);
    font-size: 2rem;
    font-weight: 500;
    color: var(--lg-ink);
    line-height: 1;
  }


  .data-card-change {
    font-family: var(--f);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
  }


  .data-card-change.positive {
    color: var(--success);
    background: rgba(5,150,105,0.08);
  }


  .data-card-change.negative {
    color: var(--danger);
    background: rgba(220,38,38,0.08);
  }


  /* ============================================
     CHART AREA
     ============================================ */
  .chart-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 420px;
  }


  .chart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
  }


  .chart-tab {
    font-family: var(--f);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-muted);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
  }


  .chart-tab:hover {
    color: var(--lg-ink);
  }


  .chart-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  .chart-tab i {
    font-size: 0.7rem;
    opacity: 0.7;
  }

  .chart-tab.active i {
    opacity: 1;
  }


  /* ============================================
     COMMENTARY BLOCK
     ============================================ */
  .commentary {
    background: var(--surface-warm);
    border-left: 3px solid var(--accent);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
  }


  .commentary p {
    margin: 0 0 0.75rem;
    color: var(--ink-light);
    font-size: 0.95rem;
  }


  .commentary p:last-child { margin-bottom: 0; }


  .commentary-label {
    font-family: var(--f);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .commentary-label::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f0eb'; /* fa-lightbulb */
    font-size: 0.72rem;
  }


  /* ============================================
     TABLES
     ============================================ */
  .table-wrapper {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1rem 0;
  }


  .table-wrapper table {
    width: 100%;
    font-size: 0.85rem;
    margin: 0;
    border-collapse: collapse;
  }


  .table-wrapper th {
    background: var(--surface-cool);
    font-family: var(--f);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
  }


  .table-wrapper th:hover {
    color: var(--accent);
  }


  .table-wrapper td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-variant-numeric: tabular-nums;
  }


  .table-wrapper tr:last-child td {
    border-bottom: none;
  }


  .table-wrapper tr:hover td {
    background: rgba(0,95,110,0.03);
  }


  .table-wrapper .linkReg,
  .table-wrapper .linkS4,
  .table-wrapper .linkS3 {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
  }


  .table-wrapper .linkReg:hover,
  .table-wrapper .linkS4:hover,
  .table-wrapper .linkS3:hover {
    color: var(--signal);
    text-decoration: underline;
  }


  /* ============================================
     REGION SECTIONS
     ============================================ */
  .region-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
  }


  .region-header h3 {
    font-size: 1.75rem;
    margin: 0;
  }


  .region-badge {
    font-family: var(--f);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }


  /* ============================================
     FAQ ACCORDION
     ============================================ */
  .faq-section {
    margin: 2rem 0;
  }


  .faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--surface-cool);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--f);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lg-ink);
    transition: background 0.15s;
  }


  .faq-toggle:hover {
    background: var(--surface-warm);
  }


  .faq-toggle .faq-icon {
    font-size: 0.85rem;
    color: var(--ink-muted);
    transition: transform 0.25s ease;
  }


  .faq-toggle.open .faq-icon {
    transform: rotate(180deg);
  }


  .faq-body {
    display: none;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 0.9rem;
  }


  .faq-body p { margin-bottom: 1rem; }

  .faq-body p:last-child { margin-bottom: 0; }

  .faq-body strong { color: var(--lg-ink); }


  /* ============================================
     CTA / SEARCH  — Find & Assess a Centre
     ============================================ */
  .cta-block {
    background: linear-gradient(135deg, #0b1a2e 0%, #132f4c 55%, #0d3b4f 100%);
    border-radius: var(--radius-lg);
    padding: 4rem 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
  }

  .cta-block::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 65%);
    pointer-events: none;
  }

  .cta-block::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237,139,0,0.08), transparent 65%);
    pointer-events: none;
  }

  .cta-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    max-width: 600px;
    background-image: url('/images/analysis_target_cc.webp');
    background-size: cover;
    background-position: center left;
    mask-image: linear-gradient(to right, transparent 0%, black 60%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60%);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
  }

  .cta-content-inner {
    position: relative;
    z-index: 1;
  }


  /* ── title row ── */
  .cta-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .cta-title-row h3 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
  }

  .cta-title-row .cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(6,182,212,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-vivid);
    flex-shrink: 0;
  }

  .cta-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    margin: 0 0 2.5rem 0;
    max-width: 550px;
    line-height: 1.5;
  }


  /* ── horizontal steps ── */
  .cta-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.5rem;
    max-width: 540px;
  }

  .cta-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    text-align: center;
  }

  .cta-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 1px;
    background: rgba(255,255,255,0.15);
  }

  .cta-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
  }

  .cta-step:hover .cta-step-num {
    background: rgba(6,182,212,0.2);
    border-color: var(--accent-vivid);
    color: #fff;
  }

  .cta-step-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    line-height: 1.35;
  }


  /* ── "how it works" link ── */
  .cta-how-link {
    display: inline;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.25s ease;
    margin-bottom: 2rem;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-family: var(--f);
  }

  .cta-how-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  .cta-how-link i { font-size: 0.8rem; }


  /* ── search toggle ── */
  .search-mode-toggle {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.85rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px;
    gap: 2px;
  }

  .smt-btn {
    padding: 0.6rem 1.6rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-family: var(--f);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.2px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .smt-btn i {
    font-size: 0.82rem;
    transition: color 0.2s;
  }

  .smt-btn:not(.active):hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.05);
  }

  .smt-btn.active {
    background: rgba(6,182,212,0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(6,182,212,0.3);
  }

  .smt-btn.active i { color: var(--accent-vivid); }


  /* ── search bar ── */
  .cta-search {
    display: flex;
    max-width: 550px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }

  .cta-search input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--f);
    outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--lg-ink);
  }

  .cta-search input::placeholder { color: #94a3b8; }

  .cta-search input:focus { background: #fff; }

  .cta-search button {
    background: var(--signal);
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--f);
    transition: all 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .cta-search button:hover { background: #d97706; }


  /* ── how-it-works modal ── */
  #hiw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: hiwFadeIn 0.25s ease;
  }

  #hiw-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 94%;
    max-width: 620px;
    max-height: 88vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow: hidden;
    animation: hiwSlideIn 0.3s ease;
  }


  .hiw-header {
    background: linear-gradient(135deg, #0b1a2e 0%, #132f4c 100%);
    padding: 1.75rem 2rem 1.5rem;
    position: relative;
  }

  .hiw-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
  }

  .hiw-header p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    margin: 0;
  }

  .hiw-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .hiw-close:hover { background: rgba(255,255,255,0.2); color: #fff; }


  .hiw-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    max-height: calc(88vh - 100px);
  }

  .hiw-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hiw-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
  }

  .hiw-step:not(:last-child) { border-bottom: 1px solid #f1f5f9; }

  .hiw-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .hiw-step-icon.step-search { background: rgba(6,182,212,0.1); color: #06b6d4; }

  .hiw-step-icon.step-select { background: rgba(237,139,0,0.1); color: #ED8B00; }

  .hiw-step-icon.step-analyse { background: rgba(16,185,129,0.1); color: #10b981; }

  .hiw-step-icon.step-report { background: rgba(139,92,246,0.1); color: #8b5cf6; }

  .hiw-step-content { flex: 1; }

  .hiw-step-content h5 {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--lg-ink);
    margin: 0 0 0.2rem;
  }

  .hiw-step-content p {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.55;
  }

  .hiw-step-num {
    position: absolute;
    top: 1rem;
    left: -0.3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface-cool);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .hiw-tip {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--accent-vivid);
    font-size: 0.82rem;
    color: var(--ink-light);
    line-height: 1.55;
  }

  .hiw-tip strong { color: var(--lg-ink); }


  /* ── Page Guide Modal ── */
  #cg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.55);
    backdrop-filter: blur(6px);
    z-index: 9998;
    animation: hiwFadeIn 0.25s ease;
  }

  #cg-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 94%;
    max-width: 740px;
    max-height: 90vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    z-index: 9999;
    overflow: hidden;
    animation: hiwSlideIn 0.3s ease;
  }

  .cg-header {
    background: linear-gradient(135deg, #0b1a2e 0%, #0f2744 50%, #1a3a5c 100%);
    padding: 1.6rem 2rem 1.3rem;
    position: relative;
  }

  .cg-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
  }

  .cg-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin: 0;
  }

  .cg-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.55);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
  }

  .cg-close:hover { background: rgba(255,255,255,0.18); color: #fff; }


  .cg-body {
    padding: 1.25rem 1.75rem 1.75rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
  }


  /* Section label */
  .cg-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.6rem;
    padding-top: 0.6rem;
  }

  .cg-section-label:first-child { padding-top: 0; }


  /* Guide card */
  .cg-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    background: #f8fafc;
    border-radius: 11px;
    border: 1px solid #edf0f4;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .cg-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

  .cg-card:last-child { margin-bottom: 0; }


  .cg-card-num {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
  }

  .cg-num-teal    { background: linear-gradient(135deg, #005F6E, #00899e); }

  .cg-num-orange  { background: linear-gradient(135deg, #ED8B00, #f5a623); }

  .cg-num-green   { background: linear-gradient(135deg, #059669, #10b981); }

  .cg-num-purple  { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

  .cg-num-rose    { background: linear-gradient(135deg, #6e0f31, #9b1b4e); }

  .cg-num-blue    { background: linear-gradient(135deg, #2563eb, #3b82f6); }


  .cg-card-body { flex: 1; min-width: 0; }

  .cg-card-body h5 {
    font-size: 0.84rem;
    font-weight: 650;
    color: #1A171B;
    margin: 0 0 0.2rem;
  }

  .cg-card-body p {
    font-size: 0.76rem;
    color: #5f6b7a;
    margin: 0;
    line-height: 1.5;
  }


  .cg-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 5px;
    vertical-align: middle;
  }

  .cg-badge-pro  { background: rgba(237,139,0,0.1); color: #d97706; }

  .cg-badge-free { background: rgba(16,185,129,0.1); color: #059669; }

  .cg-badge-toggle { background: rgba(0,95,110,0.1); color: #005F6E; }


  /* Tip in page guide */
  .cg-tip {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0,95,110,0.04), rgba(237,139,0,0.04));
    border-radius: 10px;
    border-left: 3px solid var(--primary-color, #005F6E);
    font-size: 0.76rem;
    color: #4b5563;
    line-height: 1.55;
  }

  .cg-tip strong { color: #1A171B; }


  /* Page guide button in hero */
  .cg-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: 0.01em;
  }

  .cg-launch-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
  }

  .cg-launch-btn i { font-size: 0.8rem; }


  /* Centre result cards */
  #cc-search-modal .badge-school {
    background: rgba(37,99,235,0.15);
    color: #60a5fa;
    border: 1px solid rgba(37,99,235,0.3);
  }

  #cc-search-modal .badge-cc {
    background: rgba(237,139,0,0.15);
    color: var(--signal);
    border: 1px solid rgba(237,139,0,0.3);
  }

  #cc-search-modal .centre-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 6px;
  }

  #cc-search-modal .centre-meta i {
    margin-right: 3px;
    font-size: 0.7rem;
  }

  #cc-search-modal .s-btn-catchment {
    background: linear-gradient(135deg, #6e0f31 0%, #8b1a3d 100%);
    color: #fff;
  }

  #cc-search-modal .s-btn-catchment:hover {
    background: linear-gradient(135deg, #8b1a3d 0%, #a32050 100%);
    box-shadow: 0 2px 10px rgba(110,15,49,0.35);
  }

  #cc-search-modal .s-btn-map {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
  }

  #cc-search-modal .s-btn-map:hover {
    background: #4b5563;
    color: #fff;
  }


  /* ============================================
     MAP
     ============================================ */
  #mapDataRow {
    display: none;
  }

  #mapDataRow[style*="display: block"],
  #mapDataRow[style*="display:block"] {
    display: flex;
    flex-wrap: wrap;
  }


  #map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }


  #loadMapMsg {
    background: var(--surface-cool);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--ink-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 2rem;
    text-align: center;
    cursor: default;
  }


  /* ============================================
     SA4 SIDEBAR PANEL
     ============================================ */
  #sa4SecText {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sa4-panel {
    background: var(--surface-cool);
    border-radius: var(--radius-lg);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }

  .sa4-panel.sa4-panel--active { display: flex; }

  .sa4-panel-header {
    background: var(--surface-dark);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sa4-panel-header .sa4-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .sa4-panel-header h4 {
    font-family: var(--f);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.25;
    color: #fff;
  }

  .sa4-panel-header .sa4-region-tag {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--accent-vivid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .sa4-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    overflow-y: auto;
  }

  .sa4-stat {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    transition: background 0.15s;
  }

  .sa4-stat:hover { background: #fff; }

  .sa4-stat:hover .sa4-stat-icon { transform: scale(1.08); }

  .sa4-stat:nth-child(even) { border-right: none; }

  .sa4-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #fff;
  }

  .sa4-stat-icon.ic-centres { background: #005F6E; }

  .sa4-stat-icon.ic-places { background: #0891b2; }

  .sa4-stat-icon.ic-avg { background: #0ea5e9; }

  .sa4-stat-icon.ic-pop { background: #7c3aed; }

  .sa4-stat-icon.ic-ratio { background: #dc2626; }

  .sa4-stat-icon.ic-fee { background: #059669; }

  .sa4-stat-icon.ic-income { background: #d97706; }

  .sa4-stat-icon.ic-birth { background: #ec4899; }

  .sa4-stat-icon.ic-school { background: #6366f1; }

  .sa4-stat-icon.ic-dist { background: #64748b; }

  .sa4-stat-icon.ic-unemp { background: #ea580c; }

  .sa4-stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .sa4-stat-val {
    font-family: var(--f);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lg-ink);
    line-height: 1.2;
    white-space: nowrap;
  }

  .sa4-stat-label {
    font-size: 0.62rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .sa4-panel-sub {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: #fff;
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .sa4-panel-sub select {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--ink-light);
  }

  #areaType { width: auto; min-width: 82px; flex-shrink: 0; }

  #areaDropdown { flex: 1; min-width: 0; }

  @media (max-width: 768px) {
    .sa4-stats-grid { grid-template-columns: 1fr 1fr; }
    .sa4-stat { padding: 10px 10px; gap: 8px; }
    .sa4-stat-val { font-size: 0.8rem; }
  }


  /* ============================================
     INFRASTRUCTURE PROJECT CARDS
     ============================================ */
  .infra-scroll-row { position: relative; }

  .infra-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
  }

  .infra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    border-color: var(--accent);
  }

  .infra-card-img {
    height: 145px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  }

  .infra-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(0,0,0,0.35));
    pointer-events: none;
  }

  .infra-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .infra-card:hover .infra-card-img img { transform: scale(1.05); }

  .infra-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .infra-card-badge.stage-construction { background: #059669; }

  .infra-card-badge.stage-approved { background: #2563eb; }

  .infra-card-badge.stage-proposed { background: #7c3aed; }

  .infra-card-badge.stage-planning { background: #d97706; }

  .infra-card-badge.stage-assessment { background: #ea580c; }

  .infra-card-badge.stage-completed { background: #64748b; }

  .infra-card-val {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    backdrop-filter: blur(4px);
  }

  .infra-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .infra-card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lg-ink);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
  }

  .infra-card:hover .infra-card-name { color: var(--accent); }

  .infra-card-meta {
    font-size: 0.68rem;
    color: var(--ink-muted);
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .infra-card-meta span { white-space: nowrap; }

  .infra-card-cat {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--surface-cool);
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
  }

  #infraGrid .swiper-wrapper { align-items: stretch; }

  #infraGrid .swiper-slide { width: 250px; height: auto; }

  #infraGrid .swiper-button-prev,
  #infraGrid .swiper-button-next {
    color: #fff;
    background: var(--accent);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    top: 35%;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  #infraGrid .swiper-button-prev:hover,
  #infraGrid .swiper-button-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  }

  #infraGrid .swiper-button-prev::after,
  #infraGrid .swiper-button-next::after { font-size: 14px; font-weight: 700; }

  #infraGrid .swiper-pagination { position: relative; margin-top: 12px; }

  #infraGrid .swiper-pagination-bullet { width: 8px; height: 8px; opacity: 0.35; transition: opacity 0.2s, transform 0.2s; }

  #infraGrid .swiper-pagination-bullet-active { background: var(--accent); opacity: 1; transform: scale(1.2); }

  #infraGrid { animation: fadeSlideUp 0.4s ease-out; }


  /* Stat value unit suffix styling */
  .sa4-stat-val .unit { font-size: 0.72rem; font-weight: 500; opacity: 0.7; }


  /* Stats panel subtle inner glow on the grid background */
  .sa4-stats-grid { background: linear-gradient(180deg, #f9fafb 0%, #fff 100%); }


  /* Improved left arrow visibility */
  #infraGrid .swiper-button-prev { left: 4px; }

  #infraGrid .swiper-button-next { right: 4px; }


  @media (max-width: 768px) {
    #infraGrid .swiper-slide { width: 190px; }
    .infra-card-img { height: 90px; }
    .sa4-panel-header { padding: 12px 14px; }
    .sa4-panel-header h4 { font-size: 0.85rem; }
  }


  /* (Footer styles are above with company standard section) */

  /* ============================================
     UTILITIES
     ============================================ */
  .mono { font-family: var(--f); }

  .text-accent { color: var(--accent); }

  .text-signal { color: var(--signal); }

  .text-muted-custom { color: var(--ink-muted); }

  .bg-cool { background: var(--surface-cool); }


  .step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
  }


  .step-item {
    text-align: center;
    padding: 1.5rem 1rem;
  }


  .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }


  .step-item h5 {
    font-family: var(--f);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }


  .step-item p {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin: 0;
  }


  .btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
  }


  .btn-accent:hover { background: var(--accent-light); color: white; }


  .btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
  }


  .btn-outline-accent:hover {
    background: var(--accent);
    color: white;
  }


  .reveal-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
  }


  .reveal-link:hover { color: var(--signal); }


  /* Shuffler navigation */
  .shuffler-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.25rem;
  }


  .shuffler-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
  }


  .shuffler-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,95,110,0.05);
  }


  .shuffler-dots {
    display: flex;
    gap: 6px;
    margin: 0 0.5rem;
  }


  .shuffler-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s;
  }


  .shuffler-dot.active {
    background: var(--accent);
  }


  /* ============================================
     NQS RATINGS BAR
     ============================================ */
  .ratings-block {
    margin: 1.5rem 0;
  }


  .ratings-label {
    font-family: var(--f);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
  }


  .ratings-bar {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--border-light);
  }


  .ratings-bar-seg {
    height: 100%;
    transition: width 0.6s ease;
  }


  .ratings-bar-seg:first-child {
    border-radius: 5px 0 0 5px;
  }


  .ratings-bar-seg:last-child {
    border-radius: 0 5px 5px 0;
  }


  .ratings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--ink-muted);
  }


  .ratings-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--f);
  }


  .ratings-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
  }


  .ratings-legend-pct {
    font-family: var(--f);
    font-weight: 500;
    color: var(--ink-light);
  }


  /* Data source note */
  .data-note {
    font-family: var(--f);
    font-size: 0.75rem;
    color: var(--ink-faint);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
  }


  /* ============================================
     TOGGLE SWITCHES (shared)
     ============================================ */
  .toggle-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.8rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
  }

  .switch-group {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .switch-label {
    font-family: var(--f);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary, #64748b);
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s;
  }

  .switch-label.active {
    color: var(--text);
  }

  /* The track */
  .switch-track {
    position: relative;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
  }

  .switch-track.on {
    background: var(--accent);
  }

  /* The thumb */
  .switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    transition: transform 0.25s ease;
  }

  .switch-track.on::after {
    transform: translateX(18px);
  }

  /* hover */
  .switch-track:hover {
    box-shadow: 0 0 0 3px rgba(0,95,110,0.12);
  }


  /* Geo-level toggle (Metro/Regional) for national charts */
  .geo-toggle {
    display: none;
    justify-content: center;
    gap: 0;
    margin: 0 0 0.75rem;
  }

  .geo-toggle.visible { display: flex; }

  #unempViewToggle.visible { justify-content: flex-end; }

  .geo-toggle-btn {
    font-family: var(--f);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 1rem;
    border: 1.5px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
  }

  .geo-toggle-btn:first-child { border-radius: 5px 0 0 5px; border-right: 0.75px solid #3b82f6; }

  .geo-toggle-btn:last-child { border-radius: 0 5px 5px 0; border-left: 0.75px solid #3b82f6; }

  .geo-toggle-btn.active { background: #3b82f6; color: #fff; }

  .geo-toggle-btn:hover:not(.active) { background: rgba(59,130,246,0.08); }


  /* CSV DOWNLOAD BUTTON */
  .csv-download-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--f);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border: 1.5px solid var(--accent); border-radius: var(--radius);
    background: transparent; color: var(--accent);
    cursor: pointer; text-transform: uppercase; transition: all 0.15s;
    float: right; margin: 0 0 0.4rem 0;
  }

  .csv-download-btn:hover { background: var(--accent); color: #fff; }

  .csv-download-btn svg { width: 12px; height: 12px; fill: currentColor; }


  /* Column header tooltip (JS-positioned, appended to body) */
  #colTooltip {
    position: fixed;
    background: var(--lg-ink);
    color: #fff;
    font-family: var(--f);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    max-width: 250px;
    padding: 7px 11px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  }

  #colTooltip.show { opacity: 1; }


  /* ============================================
     SA3 DRILL-DOWN — EXPAND COLUMN
     ============================================ */
  .expand-col {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    text-align: center;
    padding: 0;
    vertical-align: middle;
  }

  .expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--f);
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    user-select: none;
  }

  .expand-icon:hover {
    background: var(--accent-light);
    transform: scale(1.1);
  }

  .expand-icon.open {
    background: var(--signal);
  }

  .sa3-detail-row > td {
    padding: 0;
    border-bottom: none;
  }

  .sa3-detail-row .sa3-inner {
    padding: 0.25rem 0.5rem 0.75rem 2rem;
    background: var(--surface-cool);
    border-left: 3px solid var(--accent-light);
  }

  .sa3-detail-row .table-wrapper {
    border: none;
    margin: 0;
  }

  .sa3-detail-row table {
    font-size: 0.8rem;
    min-width: 600px;
  }

  .sa3-detail-row th {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }

  .sa3-detail-row td {
    padding: 0.45rem 0.75rem;
  }

  /* SA3 pro-gate styling */
  .sa3-pro-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #d97706;
    background: rgba(217,119,6,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
  }

  .sa3-pro-tag:hover { background: rgba(217,119,6,0.15); }

  .sa3-pro-banner {
    padding: 0.65rem 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, rgba(217,119,6,0.06), rgba(6,182,212,0.06));
    border: 1px solid rgba(217,119,6,0.12);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .sa3-pro-banner i { color: #d97706; }

  .sa3-pro-link {
    color: var(--accent-vivid);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
  }

  .sa3-lite { min-width: auto; }

  .sa3-lite th, .sa3-lite td { font-size: 0.78rem; }


  /* X-SCROLL for all table wrappers */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table {
    min-width: 700px;
  }


  /* ============================================
     RESPONSIVE
     ============================================ */
  @media (max-width: 768px) {
    .toggle-bar { gap: 1rem; }
    .switch-label { font-size: 0.72rem; }
    .eco-hero { padding: 2rem 0 1.75rem; }
    .eco-hero-title-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .eco-hero-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .step-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .chart-container { padding: 1rem; overflow-x: auto; min-height: 350px; }
    .chart-container > div { min-width: 480px; }
    .cta-block { padding: 2rem 1.5rem; }
    .cta-steps { gap: 0.25rem; }
    .cta-step:not(:last-child)::after { display: none; }
    .cta-search { flex-direction: column; border-radius: 0 0 var(--radius) var(--radius); }
    .cta-search button { padding: 0.85rem; }
    .hiw-body { padding: 1.25rem 1.25rem 1.5rem; }
    #hiw-modal { width: 96%; }
    #cg-modal { width: 96%; max-width: 96%; }
    .cg-body { padding: 1rem 1.25rem 1.5rem; }
    .section { padding: 2rem 0; }
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  }


  .fade-up {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
  }


  .fade-up-d1 { animation-delay: 0.1s; }

  .fade-up-d2 { animation-delay: 0.2s; }

  .fade-up-d3 { animation-delay: 0.3s; }

  .fade-up-d4 { animation-delay: 0.4s; }


  /* ============================================
     SEARCH RESULTS MODAL
     ============================================ */
  #cc-search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 92%;
    max-width: 900px;
    max-height: 80vh;
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
  }

  #cc-search-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  #cc-search-modal .sm-header {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #cc-search-modal .sm-header h4 {
    margin: 0;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
  }

  #cc-search-modal .sm-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
  }

  #cc-search-modal .sm-close:hover { color: #fff; }


  #cc-search-modal .sm-body {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(80vh - 60px);
  }

  #cc-search-modal .sm-body .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin: -15px -20px 15px -20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 95, 110, 0.1);
  }

  #cc-search-modal .results-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-vivid);
    font-weight: 500;
  }

  #cc-search-modal .results-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
  }

  #cc-search-modal .result-card {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
  }

  #cc-search-modal .result-card:hover {
    background: rgba(6, 182, 212, 0.08);
  }

  #cc-search-modal .result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  #cc-search-modal .result-location {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
  }

  #cc-search-modal .result-location:hover { color: var(--accent-vivid); }

  #cc-search-modal .result-location-state {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-left: 8px;
  }

  #cc-search-modal .result-type-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    cursor: help;
  }

  #cc-search-modal .badge-sa2 {
    background: rgba(110, 15, 49, 0.2);
    color: #c9426a;
    border: 1px solid rgba(110, 15, 49, 0.4);
  }

  #cc-search-modal .badge-sal,
  #cc-search-modal .badge-ssc {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-vivid);
    border: 1px solid rgba(6, 182, 212, 0.3);
  }

  #cc-search-modal .badge-address {
    background: rgba(237, 139, 0, 0.15);
    color: var(--signal);
    border: 1px solid rgba(237, 139, 0, 0.3);
  }

  #cc-search-modal .result-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.1rem;
  }

  #cc-search-modal .s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    white-space: nowrap;
    min-height: 32px;
  }

  #cc-search-modal .s-btn i { font-size: 0.7rem; }

  #cc-search-modal .s-btn-view {
    background: #f0fdfa;
    color: #005F6E;
    border-color: #99f6e4;
  }

  #cc-search-modal .s-btn-view:hover {
    background: #005F6E;
    color: #fff;
    border-color: #005F6E;
    box-shadow: 0 2px 8px rgba(0, 95, 110, 0.3);
  }

  #cc-search-modal .s-btn-report {
    background: #fff7ed;
    color: #b45309;
    border-color: #fed7aa;
  }

  #cc-search-modal .s-btn-report:hover {
    background: #ED8B00;
    color: #fff;
    border-color: #ED8B00;
  }

  #cc-search-modal .s-btn-childcare {
    background: #fdf2f8;
    color: #9d174d;
    border-color: #fbcfe8;
  }

  #cc-search-modal .s-btn-childcare:hover {
    background: #db2777;
    color: #fff;
    border-color: #db2777;
  }

  #cc-search-modal .s-btn-custom {
    background: linear-gradient(135deg, #005F6E 0%, #00838f 100%);
    color: #fff;
  }

  #cc-search-modal .s-btn-custom:hover {
    background: linear-gradient(135deg, #00838f 0%, #1ABC9C 100%);
    box-shadow: 0 2px 10px rgba(0, 95, 110, 0.35);
  }

  #cc-search-modal .s-btn-disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
  }

  #cc-search-modal .search-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
  }

  #cc-search-modal .search-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-vivid);
    border-radius: 50%;
    animation: ccSpin 0.8s linear infinite;
    margin: 0 auto 12px;
  }

  #cc-search-modal .search-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
  }

  #cc-search-modal .search-empty-state i {
    font-size: 32px;
    color: var(--accent-vivid);
    margin-bottom: 12px;
    display: block;
  }

  #cc-search-modal .search-empty-state h3 {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
  }

  #cc-search-modal .search-empty-state p {
    font-size: 13px;
    margin: 0;
  }

  #cc-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  #cc-search-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }


/* ── Child Care Map Popups (targetSearch style) ── */
.cc-popup.mapboxgl-popup {
    max-width: 340px;
}

.cc-popup .mapboxgl-popup-content {
    width: 340px;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    font-family: var(--f);
    overflow: hidden;
}

.cc-popup .mapboxgl-popup-close-button {
    font-size: 18px;
    color: #fff;
    right: 6px;
    top: 4px;
    z-index: 2;
}

.cc-popup-header {
    background: linear-gradient(135deg, #005F6E 0%, #14799f 100%);
    padding: 12px 14px 10px;
}

.cc-popup-header h5 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.cc-popup-header h5 a { color: #fff; text-decoration: none; }

.cc-popup-header h5 a:hover { text-decoration: underline; }

.cc-popup-header h5 a.cc-area-name { color: #ED8B00; cursor: pointer; }

.cc-popup-header h5 a.cc-area-name:hover { color: #f5a623; text-decoration: underline; }

.cc-popup-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cc-popup-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.cc-popup-links a:hover { opacity: 0.85; }

.cc-link-draw    { background: #ED8B00; color: #fff; }

.cc-link-draw3k  { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.cc-link-area    { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.cc-popup-btns .cc-btn-catchment { background: #6e0f31; border-color: #6e0f31; }


/* SA2 area popup – 4 even buttons */
.cc-popup-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

.cc-popup-btns .cc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    transition: background 0.15s;
    cursor: pointer;
}

.cc-popup-btns .cc-btn:hover { background: rgba(255,255,255,0.3); }

.cc-popup-btns .cc-btn i { font-size: 0.68rem; }


.cc-popup-body { padding: 10px 14px 6px; }

.cc-popup-stats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-popup-stats li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-size: 0.8rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.cc-popup-stats li:last-child { border-bottom: none; }

.cc-popup-stats .cc-stat-label { color: #666; font-weight: 400; white-space: nowrap; margin-right: 12px; }

.cc-popup-stats .cc-stat-value { font-weight: 600; color: #005F6E; text-align: right; }

.cc-popup-stats li.cc-stat-addr-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.cc-popup-stats li.cc-stat-addr-row .cc-stat-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
    text-align: left;
}


/* Childcare marker circles on map */
.ccMarker {
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  line-height: 1;
}

.ccMarker span { display: none; }

.ccMarker::before {
  content: '\f1ae';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
}


/* Hide stats carousel at drill-down level */
#carouselContainer { display: none; }

  

          /* ===== Childcare walkthrough launcher card (opens modalVideoGuides.php) ===== */
          .cc-guide-card {
            position: relative;
            display: block;
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: linear-gradient(165deg, #0f2536 0%, #0a1628 100%);
            border: 1px solid rgba(26,188,156,0.22);
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            text-decoration: none;
            transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
          }

          .cc-guide-card:hover,
          .cc-guide-card:focus-visible {
            transform: translateY(-4px);
            border-color: rgba(26,188,156,0.5);
            box-shadow: 0 22px 55px rgba(10,22,40,0.30);
            outline: none;
          }

          .cc-guide-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
            background: linear-gradient(90deg, transparent, #1ABC9C, #ED8B00, transparent); opacity: .9;
          }

          .cc-guide-media {
            position: relative;
            aspect-ratio: 16 / 9;
            background-color: #05080f;
            background-size: cover;
            background-position: center;
          }

          .cc-guide-media::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(10,22,40,0) 28%, rgba(10,22,40,0.88) 100%);
          }

          .cc-guide-play {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
            z-index: 2; width: 58px; height: 58px; border-radius: 50%;
            background: rgba(26,188,156,0.95);
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 8px rgba(26,188,156,0.18);
            transition: transform .3s ease, box-shadow .3s ease;
          }

          .cc-guide-card:hover .cc-guide-play,
          .cc-guide-card:focus-visible .cc-guide-play {
            transform: translate(-50%,-50%) scale(1.1);
            box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 0 12px rgba(26,188,156,0.22);
          }

          .cc-guide-play i { color: #fff; font-size: 20px; margin-left: 3px; }

          .cc-guide-badge {
            position: absolute; top: 12px; left: 12px; z-index: 2;
            display: inline-flex; align-items: center; gap: 6px;
            font-family: var(--f); font-size: 10px; font-weight: 600;
            letter-spacing: .12em; text-transform: uppercase; color: #1ABC9C;
            background: rgba(26,188,156,0.14); border: 1px solid rgba(26,188,156,0.35);
            padding: 5px 10px; border-radius: 30px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
          }

          .cc-guide-badge .cc-dot {
            width: 6px; height: 6px; border-radius: 50%; background: #ED8B00;
            box-shadow: 0 0 8px #ED8B00; animation: ccGuideBlink 1.6s ease-in-out infinite;
          }

          .cc-guide-duration {
            position: absolute; bottom: 10px; right: 10px; z-index: 2;
            background: rgba(0,0,0,0.72); color: #fff;
            font-family: var(--f); font-size: 11px; font-weight: 500;
            padding: 3px 8px; border-radius: 5px; letter-spacing: .5px;
          }

          .cc-guide-body { padding: 15px 18px 18px; position: relative; z-index: 2; }

          .cc-guide-eyebrow {
            font-family: var(--f); font-size: 10px; font-weight: 500;
            letter-spacing: .15em; text-transform: uppercase; color: #1ABC9C; margin-bottom: 6px;
          }

          .cc-guide-title {
            font-family: var(--f); font-size: 1.05rem; font-weight: 600;
            color: #fff; margin: 0 0 5px; line-height: 1.25; letter-spacing: -0.01em;
          }

          .cc-guide-desc { font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.62); margin: 0 0 14px; }

          .cc-guide-cta {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--f); font-size: 0.82rem; font-weight: 600;
            color: #fff; background: linear-gradient(135deg, #1ABC9C, #16A085);
            padding: 9px 16px; border-radius: 8px;
            transition: gap .25s ease, filter .25s ease;
          }

          .cc-guide-card:hover .cc-guide-cta,
          .cc-guide-card:focus-visible .cc-guide-cta { gap: 12px; filter: brightness(1.08); }

          .cc-guide-cta i { font-size: 13px; }

          @media (prefers-reduced-motion: reduce) {
            .cc-guide-card, .cc-guide-play, .cc-guide-cta { transition: none; }
            .cc-guide-badge .cc-dot { animation: none; }
          }

          /* Section-header layout: grid with named areas so the card can sit full-height
             beside [heading -> FAQ] on desktop, but reorder to heading -> card -> FAQ on mobile
             (keeps the walkthrough launcher near the top on small screens). */
          .cc-header-grid {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-areas: "head" "card" "faq";
            gap: 1.5rem;
            align-items: start;
          }

          .cc-ga-head { grid-area: head; }

          .cc-ga-card { grid-area: card; }

          .cc-ga-faq  { grid-area: faq; }

          #natFaqSlot .faq-section { margin: 0; }

          @media (min-width: 992px) {
            .cc-header-grid {
              grid-template-columns: 2fr 1fr;
              grid-template-areas: "head card" "faq card";
              column-gap: 2rem;
              row-gap: 1.25rem;
            }
            /* Cap the opened FAQ so the left column balances the card height
               (the General FAQ is long; without this it dwarfs the card). Mobile stays fully expanded. */
            #natFaqSlot .faq-body { max-height: 232px; overflow-y: auto; }
            #natFaqSlot .faq-body::-webkit-scrollbar { width: 8px; }
            #natFaqSlot .faq-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
            #natFaqSlot .faq-body::-webkit-scrollbar-track { background: transparent; }
          }

        

      .cc-readguide {
        position:relative; display:flex; align-items:center; gap:10px; width:100%;
        margin-top:14px; padding:14px 15px; border-radius:12px; text-decoration:none;
        background:linear-gradient(165deg,#0f2536 0%,#0a1628 100%);
        border:1px solid rgba(26,188,156,0.22);
        box-shadow:0 12px 40px rgba(10,22,40,0.18);
        transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
      }

      .cc-readguide:hover, .cc-readguide:focus-visible {
        transform:translateY(-3px); border-color:rgba(26,188,156,0.5);
        box-shadow:0 20px 50px rgba(10,22,40,0.28); outline:none; text-decoration:none;
      }

      .cc-readguide::before {
        content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:12px 12px 0 0;
        background:linear-gradient(90deg,transparent,#1ABC9C,#ED8B00,transparent); opacity:.9;
      }

      .cc-readguide-icon {
        flex:0 0 auto; width:34px; height:34px; border-radius:9px;
        display:flex; align-items:center; justify-content:center;
        background:rgba(26,188,156,0.14); border:1px solid rgba(26,188,156,0.35);
      }

      .cc-readguide-icon i { color:#1ABC9C; font-size:14px; }

      .cc-readguide-copy { display:flex; flex-direction:column; min-width:0; }

      .cc-readguide-eyebrow {
        font-family: var(--f); font-size:10px; font-weight:700;
        letter-spacing:.15em; text-transform:uppercase; color:#1ABC9C; margin-bottom:3px;
      }

      .cc-readguide-title {
        font-family: var(--f); font-size:.88rem; font-weight:700; color:#fff; line-height:1.3;
      }

      .cc-readguide-meta {
        font-family: var(--f); font-size:.72rem; color:rgba(255,255,255,0.55); margin-top:3px;
      }

      .cc-readguide-go { margin-left:auto; color:#ED8B00; font-size:13px; transition:transform .25s ease; }

      .cc-readguide:hover .cc-readguide-go { transform:translateX(3px); }

      @media (prefers-reduced-motion: reduce) {
        .cc-readguide, .cc-readguide-go { transition:none; }
        .cc-readguide:hover { transform:none; }
      }
}
}
@layer pg {
@scope (main) {
.eco-hero-badge,
.region-badge,
.search-mode-toggle,
.smt-btn { border-radius: var(--r-1); }
}
}
@layer pg {
html[data-theme="dark"] main .cta-search input:focus { background: var(--surface); }
html[data-theme="dark"] main #hiw-modal { background: var(--surface); }
html[data-theme="dark"] main .hiw-step-icon.step-report { color: #cbb6fb; }
html[data-theme="dark"] main .hiw-tip { background: var(--alt); }
html[data-theme="dark"] main #cg-modal { background: var(--surface); }
html[data-theme="dark"] main .cg-card { background: var(--alt); }
html[data-theme="dark"] main .cg-card:hover { border-color: var(--hair); }
html[data-theme="dark"] main .cg-card-body h5 { color: #989798; }
html[data-theme="dark"] main .cg-card-body p { color: #b7bcc3; }
html[data-theme="dark"] main .cg-badge-toggle { color: #8cb7be; }
html[data-theme="dark"] main .cg-tip { color: #aeb3b9; }
html[data-theme="dark"] main .cg-tip strong { color: #989798; }
html[data-theme="dark"] main .sa4-stat:hover { background: var(--surface); }
html[data-theme="dark"] main .sa4-panel-sub { background: var(--surface); }
html[data-theme="dark"] main .infra-card { background: var(--surface); }
html[data-theme="dark"] main #cc-search-modal .badge-sa2 { color: #e7aabc; }
html[data-theme="dark"] main #cc-search-modal .s-btn-view { color: #8cb7be; }
html[data-theme="dark"] main #cc-search-modal .s-btn-report { color: #ddb290; }
html[data-theme="dark"] main #cc-search-modal .s-btn-childcare { color: #d397af; }
html[data-theme="dark"] main #cc-search-modal .s-btn-disabled { background: var(--alt); border-color: var(--hair); }
html[data-theme="dark"] main .cc-popup-stats li { color: #a3a3a3; }
html[data-theme="dark"] main .cc-popup-stats .cc-stat-label { color: #bababa; }
html[data-theme="dark"] main .cc-popup-stats .cc-stat-value { color: #8cb7be; }
html[data-theme="dark"] main .cc-popup-stats li.cc-stat-addr-row .cc-stat-value { color: #ababab; }
}

/* cc_pg.css: the CF2 re-skin of the Child Care Benchmarks page. Layer pg = above the page's own legacy CSS (layer pgpage, same file). CF2 token roles only. */
@layer pg {
  main {
    --font-sans: var(--f); --font-mono: var(--f);
    --radius: var(--r-1); --radius-lg: var(--r-2);
    --lg-ink: var(--navy-9);   /* the page's own text variable (renamed from --ink) */
  }
  .pg-cc-hero .pg-fan { opacity: .5; }
  .pg-chip-badge { text-transform: uppercase; letter-spacing: .08em; font-weight: var(--w-strong); color: var(--white); }
  .cg-launch-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-block-size: 2.75rem; padding: 0 var(--s-4); border: 1px solid var(--hair); border-radius: var(--r-1); background: transparent; color: var(--white); font: inherit; font-size: var(--t-sm); font-weight: var(--w-strong); cursor: pointer; }
  .cg-launch-btn:hover { background: rgb(255 255 255 / .1); border-color: var(--orange); }
  /* Font Awesome loads after first paint: reserve each glyph's width */
  .fas, .far, .fab { display: inline-block; min-inline-size: 1em; font-style: normal; }
}

/* ---- contrast, targets, focus ---- */
@layer pg {
  /* teal links on white were 2.4:1: the AA teal role */
  main :is(.linkReg, .linkS4) { color: var(--teal-2) !important; }   /* inline style written by the app script */
  main .switch-label { color: var(--fg-3); }
  main .switch-label.active { color: var(--fg); }
  main :is(.data-note, #loadMapMsg, .shuffler-nav, .commentary-label) { color: var(--fg-3); }
  main table th { color: color-mix(in srgb, var(--navy-9) 72%, white); }
  /* navy text on the orange primary */
  main .cta-search button[type="submit"], main .cta-search button { color: var(--navy-9); }
  main :is(.section-label, .csv-download-btn, .chart-tab.active) { color: var(--teal-2); }
  main .csv-download-btn { border-color: currentColor; }
  main .csv-download-btn:hover { background: var(--teal-2); color: var(--white); }

  /* 44px targets */
  main .switch-group { min-block-size: 2.75rem; }
  main :is(.geo-toggle-btn, .chart-tab, .csv-download-btn, .smt-btn, .cta-how-link, .faq-toggle, .cta-search button, .cta-search input, .sm-close, .cg-close, .hiw-close, .shuffler-btn) { min-block-size: 2.75rem; }
  main :is(.shuffler-btn, .sm-close, .cg-close, .hiw-close) { min-inline-size: 2.75rem; }
  main .switch-label { display: inline-flex; align-items: center; min-block-size: 2.75rem; cursor: pointer; }
  main .expand-icon { position: relative; }
  main .expand-icon::after { content: ""; position: absolute; inset: -12px; }

  /* focus */
  main :is(a, button, input, select, [tabindex], .switch-track):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  @layer pg { main *, main *::before, main *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; scroll-behavior: auto; } }
}
@media (forced-colors: active) {
  @layer pg { main :is(button, .geo-toggle-btn, .chart-tab) { border: 1px solid ButtonText; } main :is([aria-selected="true"], .active) { outline: 2px solid Highlight; } }
}

/* ---- dark theme: the legacy page's own colour variables follow the theme; chart cards and data tables stay light cards (as on the benchmark pages) ---- */
@layer pg {
  html[data-theme="dark"] main {
    --lg-ink: var(--fg); --ink-light: var(--fg-2); --ink-muted: var(--fg-3); --ink-faint: var(--fg-3);
    --surface: var(--alt); --surface-warm: var(--alt); --surface-cool: var(--alt);
    --accent: var(--teal-2); --border: var(--hair); --border-light: var(--hair);
  }
  html[data-theme="dark"] main :is(.chart-container, table, .apexcharts-menu, .infra-card, #cc-search-modal .sm-body) {
    color-scheme: light; --lk: color-mix(in srgb, var(--teal) 72%, var(--navy-9));
    --lg-ink: var(--navy-9); --ink-light: color-mix(in srgb, var(--navy-9) 82%, white); --ink-muted: color-mix(in srgb, var(--navy-9) 68%, white); --ink-faint: color-mix(in srgb, var(--navy-9) 60%, white);
    --surface: var(--white); --surface-warm: var(--cream); --surface-cool: var(--cream);
    --accent: var(--lk); --border: var(--hair-2); --border-light: var(--cream);
  }
  html[data-theme="dark"] main :is(.chart-container, table) :is(a, .linkReg, .linkS4) { color: var(--lk) !important; }
}

@layer pg {
  /* dark theme: the badge takes the light teal, so its text is navy */
  html[data-theme="dark"] main :is(.region-badge, .csv-download-btn:hover) { color: var(--navy-9); }
}

/* ---- phone: wide tables say they scroll, fade at the right edge, and keep the region name in view ---- */
@layer pg {
  .pg-swipe { margin: 0 0 var(--s-1); font-size: var(--t-xs); font-weight: var(--w-strong); letter-spacing: .04em; color: var(--fg-3); text-align: end; }
}
@property --pg-edge { syntax: '<length>'; inherits: false; initial-value: 40px; }
@keyframes pgEdgeOff { to { --pg-edge: 0px; } }
@layer pg {
  /* a table that scrolls sideways fades at its right edge, and the fade lifts when it is scrolled to the end */
  main [data-pg-swipe] { mask-image: linear-gradient(to right, #000 calc(100% - var(--pg-edge)), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--pg-edge)), transparent); }
  @supports (animation-timeline: scroll(self inline)) {
    main [data-pg-swipe] { animation: pgEdgeOff linear both; animation-timeline: scroll(self inline); animation-range: calc(100% - 2rem) 100%; }
  }
  /* the region name column keeps a readable width (it wrapped to four lines) */
  main table td:is(.linkReg, .linkS4) { inline-size: 12.5rem; min-inline-size: 12.5rem; max-inline-size: 12.5rem; }   /* desktop: names on one line; the phone rule below narrows it */
  /* the switch: the control itself is 44px tall (the visible track is the middle 22px, square like the rest of CF2) */
  main .switch-track { box-sizing: border-box; block-size: 2.75rem; padding-block: 11px; background-clip: content-box; border-radius: var(--r-1); }
  main .switch-track::after { top: 13px; border-radius: var(--r-1); }
  main .switch-track:hover { box-shadow: none; outline: 2px solid color-mix(in srgb, var(--teal) 35%, transparent); outline-offset: -9px; }
  main .expand-col, main td:has(> .expand-icon) { min-inline-size: 2.75rem; }
  main :is(#areaType, #areaDropdown, #infraCatSelect) { min-block-size: 2.75rem !important; }   /* inline-styled select on the infrastructure header */
}
@media (max-width: 40rem) {
  @layer pg {
    .pg-cc-hero { padding-block: var(--s-3) var(--s-4); }
    .pg-cc-hero .pg-meta { margin-block-start: var(--s-3); gap: var(--s-2); }
    /* the two switches: one tidy row each, left aligned, instead of two ragged right-aligned rows */
    main .toggle-bar { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 0; margin-block-start: var(--s-2); }
    main .switch-label { font-size: var(--t-sm); }
    /* Infrastructure Projects: the header row wraps, the category select takes the full width (it ran 120px past the screen on the live page too) */
    main #infraSection .region-header { flex-wrap: wrap; gap: var(--s-2); }
    main #infraSection .region-header > div { inline-size: 100%; }
    main #infraCatSelect { inline-size: 100%; max-inline-size: 100%; font-size: var(--t-sm) !important; }
  }
}

@layer pg {
  /* inline-styled count badge: square like the rest */
  main #infraCount { border-radius: var(--r-1) !important; }
}

@layer pg {
  /* 44px controls: the switch, the "+" expander (the visible square stays 22px, drawn inside the 44px control), the first-column cells, the carousel arrows */
  main .switch-track { inline-size: 2.75rem; }
  main .switch-track.on::after { transform: translateX(22px); }
  main .expand-icon { box-sizing: border-box; inline-size: 2.75rem; block-size: 2.75rem; padding: 11px; background-clip: content-box; border-radius: var(--r-1); }
  main .expand-icon::after { display: none; }
  main td:is(.linkReg, .linkS4) { min-block-size: 2.75rem; }
  main :is(.swiper-button-prev, .swiper-button-next) { inline-size: 2.75rem; block-size: 2.75rem; }
}

@layer pg {
  /* the carousel dots are a position display (sixteen 8px dots cannot be 44px targets): the arrows are the controls */
  main #infraGrid .swiper-pagination-bullet { pointer-events: none; }
}
@media (max-width: 40rem) {
  @layer pg {
    /* Find and assess: the intro copy sat on bright city lights; a navy scrim behind the text */
    main .cta-block .cta-image-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--navy-9) 55%, transparent), color-mix(in srgb, var(--navy-9) 82%, transparent)); }
  }
}

/* ---- review: Sol (24 Oct) ---- */
@layer pg {
  /* the switches are focusable now: native-button reset on the visible square track */
  main .switch-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  /* search-result actions: 44px, may wrap; report hover navy on orange (white was 2.5:1) */
  main #cc-search-modal .s-btn { min-block-size: 2.75rem; flex-wrap: wrap; }
  main #cc-search-modal .s-btn-report:hover { color: var(--navy-9); }
  /* square corners: the dialogs, their close buttons, the carousel arrows and the shuffler */
  main :is(#cg-modal, #hiw-modal, #cc-search-modal) { border-radius: var(--r-2); }
  main :is(#cc-search-modal .s-btn, #cc-search-modal .badge, .cg-close, .hiw-close, .sm-close, .shuffler-btn, .swiper-button-prev, .swiper-button-next, .cg-card-num, .hiw-step-icon) { border-radius: var(--r-1); }
}
@layer pg {
    /* the search-result buttons keep their pale fills on the light card: text and fill are set as pairs */
  html[data-theme="dark"] main #cc-search-modal .s-btn-view { background: color-mix(in srgb, var(--mint) 12%, white); color: var(--lk); }
  html[data-theme="dark"] main #cc-search-modal .s-btn-report { background: color-mix(in srgb, var(--orange) 12%, white); color: color-mix(in srgb, var(--orange) 55%, var(--navy-9)); }
  html[data-theme="dark"] main #cc-search-modal .s-btn-childcare { background: color-mix(in srgb, var(--burgundy) 8%, white); color: color-mix(in srgb, var(--burgundy) 85%, var(--navy-9)); }
  html[data-theme="dark"] main #cc-search-modal .s-btn-view:hover { background: var(--lk); color: var(--white); }
  html[data-theme="dark"] main #cc-search-modal .s-btn-report:hover { background: var(--orange); color: var(--navy-9); }
  html[data-theme="dark"] main #cc-search-modal .s-btn-childcare:hover { background: var(--burgundy); color: var(--white); }
}
@media (max-width: 40rem) {
  @layer pg {
    /* less air between the switches and the first heading */
    main .toggle-bar { margin-block-end: 0; }
    main #ccOverview { padding-block-start: var(--s-4); }
  }
}

/* ---- review: Haiku round 4 ---- */
@layer pg {
  main a.result-location { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
  main td:is(.linkReg, .linkS4) { height: 2.8rem; }   /* min-height does not apply to table cells */
  main :is(#cc-search-modal .sm-close, .cg-close, .hiw-close) { inline-size: 2.75rem; block-size: 2.75rem; }
  main :is(.hiw-header, .cg-header, #cc-search-modal .sm-header) { padding-inline-end: 3.5rem; }
}

/* ---- review: Opus (24 Oct, round 1) ---- */
@layer pg {
  /* the right-edge fade lets the card go transparent: on the light cards of the dark theme that showed the dark page as a smear, so there the hint text alone says it scrolls */
  html[data-theme="dark"] main [data-pg-swipe] { mask-image: none; -webkit-mask-image: none; animation: none; }
  /* square corners on the rest of the page's cards, badges and panels */
  main :is(.cta-block, .cc-guide-card, .cc-readguide, .sa4-panel, .infra-card, .cg-card, .cg-tip, #map, .modal2025) { border-radius: var(--r-2) !important; }
  main :is(.cta-icon, .cc-guide-badge, .cc-guide-duration, .cc-guide-cta, .cc-readguide-icon, .sa4-icon, .sa4-stat-icon, .infra-card-badge, .infra-card-val, .cg-badge, .form-select, #infraCatSelect, #areaType, #areaDropdown) { border-radius: var(--r-1) !important; }
  /* less air between the sections (3.5rem above and below was a 140px band on desktop) */
  main .section { padding-block: 2.5rem; }
}

@media (max-width: 40rem) {
  @layer pg {
    /* denser cells so the name and two number columns share a phone screen (the 44px expander keeps its full hit area) */
    main table :is(th, td) { padding-inline: .5rem; }
    main table :is(td.expand-col, th:first-child) { padding-inline: 0; }
    main table td:is(.linkReg, .linkS4) { inline-size: 8rem; min-inline-size: 8rem; max-inline-size: 8rem; }
  }
}

/* ---- the legacy rules that relied on !important (the converter strips it: inside layers an earlier layer's !important would beat these) ---- */
@layer pg {
  /* the map and the SA4 panel side by side (the app script sets display:block inline on the row) */
  main #mapDataRow[style*="display: block"], main #mapDataRow[style*="display:block"] { display: flex !important; flex-wrap: wrap; }
  main .sa4-panel.sa4-panel--active { display: flex !important; }
  main .text-accent { color: var(--accent) !important; }
  main .text-signal { color: var(--signal) !important; }
  main td.expand-col { padding: 0 !important; }
  main .sa3-detail-row > td { padding: 0 !important; border-bottom: none !important; }
  main .sa3-detail-row td { padding: .45rem .75rem !important; }
  main .sa3-lite { min-width: auto !important; }
  main .cc-popup.mapboxgl-popup { max-width: 340px !important; }
  main :is(.cc-link-draw3k, .cc-link-area, .cc-popup-btns .cc-btn) { color: var(--white) !important; }
  main .cc-link-draw { color: var(--navy-9) !important; }   /* on its orange fill (white was 2.5:1) */
  main #carouselContainer { display: none !important; }
}
