/**
 * CustomNameTrace — design tokens & components aligned to mocks/worksheet26–27.html
 */
:root {
    --cnt-primary: #7c4dff;
    --cnt-primary-dark: #6200ea;
    --cnt-primary-soft: #6c3dec;
    --cnt-text: #2d3436;
    --cnt-text-muted: #636e72;
    --cnt-border: #eee;
    --cnt-light-bg: #f8f9fc;
    --cnt-page-bg: hsl(40 33% 98% / 0.5);
    --cnt-gradient-cta: linear-gradient(135deg, #7c4dff 0%, #00d2ff 100%);
    --cnt-gradient-btn: linear-gradient(135deg, #7c4dff 0%, #6c3dec 100%);

    /* Bootstrap 5.3 — align primary, links, and focus rings with brand purple (default theme is blue) */
    --bs-blue: var(--cnt-primary);
    --bs-primary: var(--cnt-primary);
    --bs-primary-rgb: 124, 77, 255;
    --bs-link-color: var(--cnt-primary);
    --bs-link-color-rgb: 124, 77, 255;
    --bs-link-hover-color: var(--cnt-primary-dark);
    --bs-link-hover-color-rgb: 98, 0, 234;
    --bs-focus-ring-color: rgba(124, 77, 255, 0.32);
    --bs-primary-bg-subtle: #ede7ff;
    --bs-primary-border-subtle: #c4b5fd;
    --bs-primary-text-emphasis: #4527a0;

    /* Centered SEO column (guide + matching FAQ below) */
    --cnt-seo-stack-max-width: min(70rem, 100%);
}

[data-bs-theme='light'] {
    --bs-primary: var(--cnt-primary);
    --bs-primary-rgb: 124, 77, 255;
    --bs-link-color: var(--cnt-primary);
    --bs-link-hover-color: var(--cnt-primary-dark);
    --bs-focus-ring-color: rgba(124, 77, 255, 0.32);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--cnt-text);
    background-color: var(--cnt-page-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(124, 77, 255, 0.18);
}

/* Bootstrap compiled rules still hardcode blue in places — override to purple */
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--cnt-primary);
    --bs-dropdown-link-active-color: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--cnt-primary);
    --bs-btn-border-color: var(--cnt-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cnt-primary-dark);
    --bs-btn-hover-border-color: #5600d4;
    --bs-btn-focus-shadow-rgb: 124, 77, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5600d4;
    --bs-btn-active-border-color: #4b00ba;
    --bs-btn-disabled-bg: var(--cnt-primary);
    --bs-btn-disabled-border-color: var(--cnt-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--cnt-primary);
    --bs-btn-border-color: var(--cnt-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cnt-primary);
    --bs-btn-hover-border-color: var(--cnt-primary);
    --bs-btn-focus-shadow-rgb: 124, 77, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--cnt-primary-dark);
    --bs-btn-active-border-color: var(--cnt-primary-dark);
    --bs-btn-disabled-color: var(--cnt-primary);
    --bs-btn-disabled-border-color: var(--cnt-primary);
}

.nav-link:focus-visible {
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.cnt-navbar .nav-link:focus,
.cnt-navbar .dropdown-toggle:focus {
    outline: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(124, 77, 255, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(124, 77, 255, 0.22);
}

.form-check-input:focus {
    border-color: rgba(124, 77, 255, 0.65);
    box-shadow: 0 0 0 0.25rem rgba(124, 77, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(124, 77, 255, 0.28);
}

.accordion {
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(124, 77, 255, 0.22);
}

.text-brand-purple {
    color: var(--cnt-primary) !important;
}

/* —— Navbar (mock worksheet27) —— */
.cnt-navbar {
    background: #fff;
    border-bottom: 1px solid var(--cnt-border);
}

.cnt-navbar .dropdown-menu {
    border: none;
    border-top: 4px solid var(--cnt-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
}

.cnt-nav-discovery-menu {
    min-width: 18rem;
}

.cnt-nav-discovery-menu__label {
    padding: 0.45rem 1rem 0.3rem;
    color: #7c3aed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cnt-nav-discovery-menu .dropdown-item {
    font-weight: 600;
    color: #1f2937;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.cnt-nav-discovery-menu .dropdown-item:hover {
    color: var(--cnt-primary);
    background: rgba(124, 77, 255, 0.06);
}

.cnt-menu-column-grid--mega {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.cnt-menu-discovery-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cnt-menu-link-card {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(124, 77, 255, 0.12);
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.035), rgba(255, 255, 255, 0.98));
    text-decoration: none;
    color: #1f2937 !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cnt-menu-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 77, 255, 0.28);
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.08), rgba(255, 255, 255, 1));
    color: var(--cnt-primary) !important;
}

.cnt-menu-link-card strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.28rem;
    letter-spacing: -0.015em;
}

.cnt-menu-link-card span {
    display: block;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.5;
}

.cnt-menu-link-card--feature {
    border-color: rgba(124, 77, 255, 0.3);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(255, 255, 255, 0.98));
}

@media (min-width: 992px) {
    .cnt-navbar .navbar-nav .nav-item.dropdown {
        position: static;
    }

    .cnt-navbar .navbar-nav .dropdown-menu {
        width: 100vw;
        left: 0 !important;
        right: 0 !important;
    }

    .cnt-menu-column-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1140px;
        margin: 0 auto;
    }

    .cnt-navbar .navbar-nav .nav-item.dropdown.cnt-navbar-dropdown--compact {
        position: relative;
    }

    .cnt-navbar .navbar-nav .nav-item.dropdown.cnt-navbar-dropdown--compact .dropdown-menu {
        width: auto;
        min-width: 15rem;
        left: 0 !important;
        right: auto !important;
        padding: 0.65rem 0;
        border-radius: 12px;
    }

    .cnt-navbar .navbar-nav > .nav-item.dropdown.cnt-nav-item--active > .nav-link.dropdown-toggle {
        background: none !important;
        border: none !important;
        border-radius: 0;
        box-shadow: inset 0 -3px 0 0 var(--cnt-primary);
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-right: 0;
    }
}

.cnt-navbar .nav-item.cnt-nav-item--active > .nav-link.dropdown-toggle {
    color: var(--cnt-primary) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.cnt-navbar .nav-item.cnt-nav-item--active > .nav-link.dropdown-toggle:hover,
.cnt-navbar .nav-item.cnt-nav-item--active > .nav-link.dropdown-toggle:focus {
    color: var(--cnt-primary-dark) !important;
}

.cnt-navbar .cnt-nav-custom-name-menu.dropdown-menu {
    min-width: 18.75rem;
    max-width: min(24rem, 94vw);
}

.cnt-navbar .cnt-nav-custom-name-menu .dropdown-item {
    font-weight: 600;
    font-size: 0.93rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.cnt-navbar .cnt-nav-custom-name-menu .dropdown-item--feature {
    display: block;
    font-weight: 800;
    color: var(--cnt-primary);
    background: transparent;
    border: 0;
    margin: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cnt-navbar .cnt-nav-custom-name-menu .dropdown-item--feature:hover,
.cnt-navbar .cnt-nav-custom-name-menu .dropdown-item--feature:focus {
    color: var(--cnt-primary-dark);
    background: transparent;
}

.cnt-navbar .cnt-nav-custom-name-menu .dropdown-item:active {
    background-color: rgba(124, 77, 255, 0.12);
    color: var(--cnt-primary-dark);
}

.cnt-navbar .cnt-nav-custom-name-menu .dropdown-header {
    letter-spacing: 0.08em;
    color: var(--cnt-primary);
}

.cnt-category-label {
    display: block;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--cnt-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.cnt-menu-column-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cnt-menu-column-grid ul li {
    margin-bottom: 8px;
}

.cnt-menu-column-grid ul li a {
    color: var(--cnt-text-muted) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.cnt-menu-column-grid ul li a:hover {
    color: var(--cnt-primary) !important;
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .cnt-navbar .navbar-collapse {
        padding: 1rem 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    .cnt-menu-column-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cnt-menu-column-grid--mega {
        grid-template-columns: 1fr;
    }

    .cnt-navbar .dropdown-menu {
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        margin: 0.5rem 0;
        border-radius: 8px;
        width: 100% !important;
    }
}

/* Primary button (mock .btn-signup) */
.btn-cnt-primary {
    background: var(--cnt-gradient-btn);
    color: #fff !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.25);
}

.btn-cnt-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.4);
}

.btn-cnt-outline {
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid #dee2e6;
}

.btn-cnt-outline:hover {
    border-color: var(--cnt-primary);
    color: var(--cnt-primary);
}

.btn-cnt-math-new {
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid var(--cnt-primary);
    color: var(--cnt-primary);
    background-color: transparent;
    padding: 0.5rem 1.1rem;
}

.btn-cnt-math-new:hover,
.btn-cnt-math-new:focus {
    background-color: #3b1b91;
    border-color: #3b1b91;
    color: #fff;
}

/* Hero (mock worksheet27) */
.cnt-hero {
    padding: 80px 0 60px;
    background: radial-gradient(circle at top right, #f3f0ff, #ffffff);
    text-align: center;
}

.cnt-hero-title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--cnt-text);
}

.cnt-search-wrap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cnt-search-input {
    width: 100%;
    padding: 20px 160px 20px 30px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 1.1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    outline: none;
}

.cnt-search-input:focus {
    border-color: var(--cnt-primary);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15), 0 15px 40px rgba(0, 0, 0, 0.06);
}

.cnt-search-submit {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 20px;
    padding: 10px 25px;
}

@media (max-width: 576px) {
    .cnt-search-input {
        padding-right: 30px;
        padding-bottom: 70px;
    }

    .cnt-search-submit {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 10px;
        width: calc(100% - 20px);
    }
}

/* Static content pages (About, Contact, FAQ, legal) */
.cnt-hero--static {
    text-align: left;
    padding-bottom: 48px;
}

.cnt-hero--static .cnt-hero-title {
    text-align: left;
}

/* Coloring pages landing */
.cnt-hero--coloring {
    padding: 54px 0 34px;
}

.cnt-coloring-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: var(--cnt-primary);
    margin-bottom: 14px;
    font-size: 0.8rem;
}

.cnt-coloring-form-wrap {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 77, 255, 0.12);
    border-radius: 28px;
    padding: 20px 20px 22px;
    box-shadow: 0 24px 60px rgba(33, 37, 41, 0.08);
}

.cnt-coloring-form {
    max-width: 680px;
    margin: 0 auto;
}

.cnt-coloring-builder-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0 4px 8px;
}

.cnt-coloring-builder-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--cnt-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cnt-coloring-builder-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.8vw, 1.95rem);
    line-height: 1.02;
    font-weight: 900;
    color: #141c31;
    max-width: none;
    white-space: nowrap;
}

.cnt-coloring-builder-copy {
    max-width: 40ch;
    color: #667085;
    font-size: 0.94rem;
    line-height: 1.48;
}

.cnt-coloring-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cnt-coloring-name-stack {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    padding: 14px 14px 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(124, 77, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.cnt-coloring-label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5e6d89;
    margin-bottom: 10px;
}

.cnt-coloring-input {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #d8def0;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 0.98rem;
    box-shadow: none;
}

.cnt-coloring-name-stack .cnt-coloring-input {
    min-height: 58px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.cnt-coloring-name-stack .cnt-coloring-input::placeholder {
    color: #98a2b3;
    font-weight: 400;
    opacity: 1;
}

.cnt-coloring-input:focus {
    border-color: rgba(124, 77, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.12);
}

.cnt-coloring-name-note {
    margin-top: 8px;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.cnt-coloring-settings-card {
    padding: 12px 14px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e4e8f5;
}

.cnt-coloring-builder-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.cnt-coloring-builder-note {
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 34ch;
}

.cnt-coloring-builder-actions .btn-cnt-primary {
    min-width: min(100%, 360px);
    font-size: 1.05rem;
    justify-content: center;
}

.cnt-coloring-secondary-grid {
    max-width: 1080px;
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cnt-coloring-secondary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e7e7f2;
    box-shadow: 0 16px 32px rgba(31, 41, 55, 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cnt-coloring-secondary-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 77, 255, 0.22);
    box-shadow: 0 20px 36px rgba(31, 41, 55, 0.1);
    color: inherit;
}

.cnt-coloring-secondary-card__eyebrow {
    color: var(--cnt-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cnt-coloring-secondary-card__title {
    color: #161f33;
    font-size: 1.02rem;
    line-height: 1.2;
}

.cnt-coloring-secondary-card__copy {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cnt-coloring-card {
    display: block;
    background: #fff;
    border: 1px solid #ececf6;
    border-radius: 22px;
    overflow: hidden;
    color: inherit;
    height: 100%;
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cnt-coloring-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(31, 41, 55, 0.12);
    border-color: rgba(124, 77, 255, 0.24);
    color: inherit;
}

.cnt-coloring-card__image-wrap {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.04), rgba(255, 255, 255, 0.9));
}

.cnt-coloring-card__image {
    width: 100%;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

.cnt-coloring-card__fallback {
    width: 180px;
    height: 180px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.14), rgba(124, 77, 255, 0.04));
    color: #3b1b91;
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: -0.04em;
    box-shadow: inset 0 0 0 1px rgba(124, 77, 255, 0.08);
}

.cnt-coloring-card__body {
    padding: 18px 18px 20px;
}

.cnt-coloring-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cnt-primary);
}

.cnt-coloring-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #161f33;
    margin-bottom: 8px;
}

.cnt-coloring-card__copy {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 991px) {
    .cnt-coloring-builder-intro {
        gap: 12px;
    }

    .cnt-coloring-form-grid {
        grid-template-columns: 1fr;
    }

    .cnt-coloring-secondary-grid {
        grid-template-columns: 1fr;
    }
}

/* Section headers (mock) */
.cnt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.cnt-section-header h2 {
    font-weight: 800;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin: 0;
}

.cnt-view-all {
    color: var(--cnt-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.cnt-view-all:hover {
    text-decoration: underline;
}

/* Category SEO / long-form blocks */
.cnt-seo-prose {
    color: var(--cnt-text);
    font-size: 1.02rem;
    line-height: 1.7;
}

.cnt-seo-prose a,
.cnt-seo-intro a {
    color: var(--cnt-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cnt-seo-prose a:hover,
.cnt-seo-intro a:hover {
    color: var(--cnt-primary-dark);
}

/* SEO long-form blocks — same card shell as worksheet .cnt-ntp-seo-guide */
.cnt-seo-guide-layout {
    width: 100%;
    max-width: var(--cnt-seo-stack-max-width);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0.25rem;
}

.cnt-seo-guide-layout > * + * {
    margin-top: 40px;
}

/* Intro sits under hero: span full container, not the narrow SEO article column */
.cnt-seo-intro .cnt-seo-guide-layout {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.cnt-seo-guide-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    margin-top: 40px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 10px 28px rgba(15, 23, 42, 0.07),
        0 24px 64px rgba(15, 23, 42, 0.06);
    padding: 1.45rem 1.35rem;
}

.cnt-seo-guide-layout > .cnt-seo-guide-card:first-child,
.cnt-seo-guide-card:first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    .cnt-seo-guide-card {
        padding: 1.75rem 1.85rem;
    }
}

.cnt-ntp-seo-guide .cnt-ntp-seo-doc-header,
.cnt-ntp-seo-guide .cnt-ntp-seo-part,
.cnt-ntp-seo-guide .cnt-ntp-seo-recent-nav,
.cnt-ntp-seo-guide .cnt-ntp-seo-faq-section {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 10px 28px rgba(15, 23, 42, 0.07),
        0 24px 64px rgba(15, 23, 42, 0.06);
    padding: 1.45rem 1.35rem;
}

@media (min-width: 768px) {
    .cnt-ntp-seo-guide .cnt-ntp-seo-doc-header,
    .cnt-ntp-seo-guide .cnt-ntp-seo-part,
    .cnt-ntp-seo-guide .cnt-ntp-seo-recent-nav,
    .cnt-ntp-seo-guide .cnt-ntp-seo-faq-section {
        padding: 1.75rem 1.85rem;
    }
}

.cnt-seo-guide-card.cnt-seo-prose,
.cnt-seo-guide-layout > .cnt-seo-guide-card.cnt-seo-prose {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.78;
}

.dossier-section {
    position: relative;
}

.dossier-title {
    margin: 0 0 1rem;
    font-size: 1.45rem;
    line-height: 1.18;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.dossier-subtitle {
    margin: 1.1rem 0 0.6rem;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
    color: #4338ca;
}

.dossier-text {
    margin: 0 0 1rem;
    color: #334155;
    font-size: 1.04rem;
    line-height: 1.78;
}

.dossier-text:last-child {
    margin-bottom: 0;
}

.dossier-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.9rem;
}

.dossier-list-item {
    color: #334155;
    line-height: 1.72;
}

.dossier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.table-header {
    background: #f5f3ff;
    color: #312e81;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.table-cell {
    padding: 0.95rem 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.55;
    vertical-align: top;
}

.cnt-ntp-seo-guide .cnt-ntp-seo-section.cnt-seo-prose {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.78;
}

.cnt-seo-guide-card .cnt-seo-prose__p,
.cnt-ntp-seo-guide .cnt-seo-prose__p {
    color: #334155;
    line-height: 1.78;
}

.cnt-seo-guide-card.cnt-seo-prose a,
.cnt-ntp-seo-guide .cnt-seo-prose a {
    font-weight: 700;
}

.cnt-seo-guide-card .h3,
.cnt-seo-guide-card h2.h3,
.cnt-seo-guide-card h2 {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cnt-seo-guide-card > h2:first-child,
.cnt-seo-guide-card > h3:first-child {
    margin-top: 0;
}

.cnt-ntp-seo-section.cnt-seo-prose .cnt-seo-prose__p:last-child {
    margin-bottom: 0 !important;
}

.cnt-seo-section .cnt-seo-link-list,
.cnt-seo-guide-card .cnt-seo-link-list {
    padding-left: 1.1rem;
    margin: 0;
}

.cnt-seo-section .cnt-seo-link-list li,
.cnt-seo-guide-card .cnt-seo-link-list li {
    margin-bottom: 0.55rem;
}

.cnt-seo-section .cnt-seo-link-list a,
.cnt-seo-guide-card .cnt-seo-link-list a {
    color: var(--cnt-primary);
    font-weight: 600;
    text-decoration: none;
}

.cnt-seo-section .cnt-seo-link-list a:hover,
.cnt-seo-guide-card .cnt-seo-link-list a:hover {
    text-decoration: underline;
}

.cnt-seo-spotlight-link {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cnt-seo-spotlight-link:hover {
    border-color: var(--cnt-primary) !important;
    box-shadow: 0 4px 18px rgba(124, 77, 255, 0.12);
}

.cnt-faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cnt-text);
}

.cnt-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--cnt-primary-dark);
    background-color: rgba(124, 77, 255, 0.06);
}

.cnt-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(124, 77, 255, 0.22);
    border-color: rgba(124, 77, 255, 0.35);
}

.cnt-faq-accordion .accordion-body {
    color: var(--cnt-text-muted);
    line-height: 1.65;
}

.cnt-faq-accordion .accordion-body a {
    color: var(--cnt-primary);
    font-weight: 600;
}

/* Worksheet / name cards (mock .ws-card) */
.cnt-ws-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.cnt-ws-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--cnt-primary);
    color: inherit;
}

.cnt-ws-img-wrap {
    padding: 12px;
    background: #fdfdfd;
    position: relative;
}

.cnt-ws-img-wrap img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

/* Inline worksheet SVG (same card as hub preview; uses page Raleway Dots) */
.cnt-ws-img-wrap svg.cnt-ws-preview-thumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    aspect-ratio: 360 / 320;
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
    shape-rendering: geometricPrecision;
}

.cnt-ws-img-wrap svg.cnt-ws-preview-thumb :is(line, circle, ellipse) {
    vector-effect: non-scaling-stroke;
}

.cnt-ws-info {
    padding: 15px;
}

.cnt-ws-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnt-ws-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--cnt-text-muted);
}

.cnt-ws-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.cnt-alpha-hero {
    padding: 72px 0 42px;
    background:
        radial-gradient(circle at top right, rgba(124, 77, 255, 0.14), transparent 26rem),
        linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.cnt-alpha-hero__eyebrow {
    color: var(--cnt-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cnt-alpha-hero__title {
    max-width: 12ch;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #111827;
    margin-bottom: 16px;
}

.cnt-alpha-hero__copy {
    max-width: 760px;
    color: #5b6474;
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.cnt-alpha-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cnt-alpha-grid-section {
    padding: 10px 0 56px;
}

.cnt-learning-hub-hero .container,
.cnt-learning-hub-with-aside.container,
.cnt-learning-hub-container {
    max-width: 1360px;
}

.cnt-learning-hub-hero .cnt-alpha-hero__title {
    max-width: 22ch;
}

.cnt-learning-hub-hero .cnt-alpha-hero__copy {
    max-width: 980px;
}

.cnt-alpha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.cnt-alpha-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.cnt-alpha-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 77, 255, 0.42);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.11);
    color: inherit;
}

.cnt-alpha-card__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, #faf8ff 0%, #f3f6fb 100%);
}

.cnt-alpha-card__pair {
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #111827;
}

.cnt-alpha-card__art {
    height: 110px;
    border-radius: 22px;
    border: 2px dashed #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cnt-alpha-card__art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) contrast(1.08);
}

.cnt-alpha-card__fallback {
    font-size: 3rem;
    font-weight: 900;
    color: #334155;
}

.cnt-alpha-card__body {
    padding: 16px 18px 18px;
}

.cnt-alpha-card__label {
    font-size: 1.02rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 5px;
}

.cnt-alpha-card__meta {
    font-size: 0.84rem;
    color: #667085;
}

.cnt-alpha-card__art--text {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.cnt-alpha-card--math .cnt-alpha-card__pair {
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c3aed;
}

.cnt-alpha-card--math .cnt-alpha-card__hero {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    padding: 16px 16px 14px;
}

.cnt-alpha-card--math .cnt-alpha-card__pair {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.16em;
    text-align: center;
}

.cnt-alpha-card--math .cnt-alpha-card__art {
    height: auto;
    min-height: 112px;
    border-radius: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.cnt-alpha-card--math .cnt-alpha-card__art--text {
    padding: 14px 16px;
    gap: 8px;
}

.cnt-alpha-card--math .cnt-alpha-card__body {
    padding: 16px 18px 18px;
}

.cnt-alpha-card--math .cnt-alpha-card__label {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.55;
    color: #1f2937;
    margin-bottom: 8px;
}

.cnt-alpha-card--math .cnt-alpha-card__meta {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    color: #64748b;
}

.cnt-category-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.cnt-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 77, 255, 0.34);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
    color: inherit;
}

.cnt-category-card__hero {
    padding: 18px 20px 12px;
    background: linear-gradient(180deg, #faf8ff 0%, #f3f6fb 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cnt-category-card__eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c3aed;
}

.cnt-category-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #fff;
    border: 2px dashed #d8ddea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 900;
    color: #111827;
    flex: 0 0 auto;
}

.cnt-category-card__body {
    padding: 18px 20px 20px;
    text-align: left;
}

.cnt-category-card__label {
    font-size: 1.08rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.cnt-category-card__meta {
    font-size: 0.86rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
}

.cnt-category-card__copy {
    color: #596273;
    font-size: 0.96rem;
    line-height: 1.65;
}

.cnt-math-card__eyebrow {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c3aed;
}

.cnt-math-card__title {
    font-size: 0.98rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.cnt-badge-new {
    background: #1dd1a1;
    color: #fff;
}

.cnt-badge-popular {
    background: #ff9f43;
    color: #fff;
}

.cnt-badge-free {
    background: var(--cnt-primary);
    color: #fff;
}

/* Preview image (mock worksheet26) */
.cnt-worksheet-preview {
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    object-fit: contain;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 360 / 320;
    height: auto;
}

/* Badges row */
.cnt-badge-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cnt-bg-soft-identity {
    background-color: rgba(124, 77, 255, 0.1) !important;
    color: var(--cnt-primary) !important;
}

.cnt-bg-soft-grade {
    background-color: rgba(0, 184, 148, 0.1) !important;
    color: #00b894 !important;
}

.cnt-bg-soft-trending {
    background-color: rgba(255, 118, 117, 0.1) !important;
}

/* Skill tags */
.cnt-skill-tag,
.cnt-skill-badge {
    background: #f1f2f6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin: 0 5px 10px 0;
}

/* Breadcrumb */
.cnt-breadcrumb-shell {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cnt-breadcrumb--global .breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}

.cnt-breadcrumb .breadcrumb {
    font-size: 0.85rem;
}

.cnt-breadcrumb .breadcrumb-item a {
    color: #b2bec3;
    text-decoration: none;
}

.cnt-breadcrumb .breadcrumb-item a:hover {
    color: var(--cnt-primary);
}

/* Feature cards */
.cnt-feature-card {
    border: none;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.cnt-feature-icon {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--cnt-primary);
}

/* Steps */
.cnt-step-circle {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

/* CTA banner (mock) */
.cnt-cta-banner {
    background: var(--cnt-gradient-cta);
    border-radius: 24px;
    padding: 80px 40px;
    color: #fff;
    text-align: center;
    margin: 60px 0;
}

.cnt-cta-banner .btn-download-lg {
    background: #fff;
    color: var(--cnt-primary);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 12px;
    border: none;
}

.cnt-cta-banner-alt {
    background: linear-gradient(135deg, #7c4dff 0%, #6c3dec 100%);
    border-radius: 30px;
    padding: 80px 40px;
    color: #fff;
    text-align: center;
    margin: 80px 0;
}

/* SEO block */
.cnt-seo-section {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid var(--cnt-border);
}

.cnt-seo-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--cnt-text);
}

.cnt-seo-section p,
.cnt-seo-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cnt-text-muted);
}

/* Accordion */
.cnt-accordion .accordion-button:not(.collapsed) {
    background-color: #f3f0ff;
    color: var(--cnt-primary);
    box-shadow: none;
}

.cnt-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(124, 77, 255, 0.1);
}

/* Swiper */
.cnt-swiper {
    padding: 20px 5px 40px;
    overflow: hidden;
}

.cnt-swiper .swiper-button-next,
.cnt-swiper .swiper-button-prev {
    color: var(--cnt-primary);
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.cnt-swiper .swiper-button-next:after,
.cnt-swiper .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: 900;
}

.cnt-swiper .swiper-pagination-bullet-active {
    background: var(--cnt-primary) !important;
    width: 24px;
    border-radius: 5px;
}

.cnt-home-category-swiper .swiper-slide {
    height: auto;
}

.cnt-home-letter-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 14px 10px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    color: #111827;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cnt-home-letter-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 77, 255, 0.45);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    color: inherit;
}

.cnt-home-letter-tile__glyph {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #7c3aed;
}

.cnt-home-letter-tile__count {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

/* Footer */
.cnt-footer {
    background: #fff;
    padding: 80px 0 40px;
    border-top: 1px solid var(--cnt-border);
    font-size: 0.9rem;
}

.cnt-footer h6 {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cnt-footer a.text-muted:hover {
    color: var(--cnt-primary) !important;
    padding-left: 4px;
    transition: 0.2s ease;
}

.fw-800 {
    font-weight: 800;
}

/* Main content area */
.cnt-main {
    min-height: 40vh;
}

.cnt-hero-section-pdp {
    padding: 40px 0;
}

/* Name PDP hub: caregiver-first, low visual noise */
.cnt-name-hub {
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 38%);
    border-radius: 0 0 1.25rem 1.25rem;
    margin-bottom: 0.5rem;
}

.cnt-name-hub-title {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cnt-name-hub-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.55;
    max-width: 36rem;
}

.cnt-name-hub-meta {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 36rem;
}

.cnt-name-hub-caption {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 22rem;
}

.cnt-name-hub-figure .cnt-worksheet-preview {
    max-width: min(100%, 340px);
}

.cnt-name-hub-grid-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 40rem;
}

.cnt-hub-preview-cta .btn {
    max-width: 22rem;
    margin-inline: auto;
}

.cnt-variation-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cnt-variation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

.cnt-variation-thumb {
    padding: 10px 10px 6px;
    background: linear-gradient(180deg, #faf8ff 0%, #f5f0ff 100%);
    border-bottom: 1px solid #ece8f4;
}

.cnt-variation-thumb svg.cnt-ws-preview-thumb {
    width: 100%;
    height: auto;
    max-height: 148px;
    display: block;
    margin-inline: auto;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    aspect-ratio: 360 / 320;
    shape-rendering: geometricPrecision;
}

/* Thumbnail SVG contract: app/Support/WorksheetPreviewSvg.php (+ stroke tokens); CSS keeps strokes from vanishing when scaled */
.cnt-variation-thumb svg.cnt-ws-preview-thumb :is(line, circle, ellipse) {
    vector-effect: non-scaling-stroke;
}

.cnt-variation-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.22);
}

/* Standalone download CTA button (also nested under .cnt-cta-banner) */
.btn-download-lg {
    background: #fff;
    color: var(--cnt-primary) !important;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 12px;
    border: none;
}

.btn-download-lg:hover {
    color: var(--cnt-primary-dark) !important;
    filter: brightness(0.98);
}

.cnt-alpha-tracing-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cnt-alpha-tracing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
    border-color: rgba(124, 58, 237, 0.24);
}

.cnt-alpha-tracing-card__preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 1.15rem 1.15rem 0.25rem;
}

.cnt-alpha-tracing-card__pair {
    min-height: 132px;
    border-radius: 22px;
    background: linear-gradient(180deg, #eff3f8 0%, #e8eef7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-family: "Nunito", "Inter", sans-serif;
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cnt-alpha-tracing-card__image-wrap {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
}

.cnt-alpha-tracing-card__image {
    width: 100%;
    max-width: 120px;
    max-height: 108px;
    object-fit: contain;
}

.cnt-alpha-tracing-card__caption {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    text-transform: lowercase;
}

.cnt-alpha-tracing-card__body {
    padding: 1rem 1.15rem 1.2rem;
}

.cnt-alpha-tracing-card__eyebrow {
    display: inline-flex;
    color: #7c3aed;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.cnt-alpha-tracing-card__title {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.cnt-alpha-tracing-card__copy {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cnt-category-hub-card__empty-preview {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed rgba(148, 163, 184, 0.45);
}

.cnt-mini-spotlight {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 100%;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cnt-mini-spotlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    border-color: rgba(124, 58, 237, 0.24);
}

.cnt-mini-spotlight__kicker {
    color: #7c3aed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cnt-mini-spotlight__title {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.cnt-mini-spotlight__meta {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cnt-mini-theme-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1.15rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cnt-mini-theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(124, 58, 237, 0.24);
}

.cnt-mini-theme-card__eyebrow {
    color: #7c3aed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cnt-mini-theme-card__title {
    color: #111827;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.cnt-mini-theme-card__copy {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cnt-mega-discovery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.cnt-mega-discovery__item {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cnt-mega-discovery__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    border-color: rgba(124, 58, 237, 0.24);
}

.cnt-mega-discovery__label {
    color: #111827;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
}

.cnt-mega-discovery__meta {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.4;
}

.cnt-hub-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cnt-hub-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(124, 58, 237, 0.06);
    color: #5b21b6;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cnt-hub-chip:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.28);
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .cnt-family-guide-sidebar {
        position: sticky;
        top: 5.5rem;
    }
}

.cnt-family-guide-card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a:hover .cnt-family-guide-card {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 12px 32px rgba(15, 23, 42, 0.1),
        0 28px 72px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
