.design-code-support-page {
    box-sizing: border-box;
}

.design-code-support-page .pt-120 {
    padding-top: 0;
}

/* ── Wrap ──────────────────────────────────────────────────────────────────── */
.cc-wrap {
    padding: 56px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.cc-hero {
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cc-hero.visible {
    opacity: 1;
    transform: translateY(0);
}
.cc-hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-md);
}
.cc-hero-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--red);
    display: block;
}
.cc-hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 800;
    color: #0d0d0d;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.cc-hero-desc {
    font-size: 1rem;
    color: var(--color-black);
    max-width: 600px;
    line-height: 1.7;
    margin: 0;
}

/* ── Stats ─────────────────────────────────────────────────────────────────── */
.cc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.cc-stat {
    background: #111214;
    padding: 24px 28px;
    border-top: 3px solid var(--red);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s;
}
.cc-stat.visible {
    opacity: 1;
    transform: translateY(0);
}
.cc-stat:hover {
    box-shadow: 0 4px 24px rgba(225, 27, 34, 0.15);
}
.cc-stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}
.cc-stat-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--white);
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.cc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 28px;
    overflow-x: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.cc-tabs.visible {
    opacity: 1;
    transform: translateY(0);
}
.cc-tab {
    padding: 13px 24px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-black);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.cc-tab:hover {
    color: #0d0d0d;
}
.cc-tab.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ── Panels ────────────────────────────────────────────────────────────────── */
.cc-panel {
    display: none;
}
.cc-panel.active {
    display: block;
    animation: cc-fade-up 0.35s ease forwards;
}
@keyframes cc-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Intro ─────────────────────────────────────────────────────────────────── */
.cc-intro {
    background: #fff;
    border-left: 3px solid var(--red);
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--color-black);
    line-height: 1.7;
}
.cc-intro strong {
    font-weight: 600;
    color: #0d0d0d;
}

/* ── Group header ──────────────────────────────────────────────────────────── */
.cc-group-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 14px;
}
.cc-group-hd:first-of-type {
    margin-top: 0;
}
.cc-group-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
}
.cc-group-line {
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.cc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    align-items: stretch;
}
.cc-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-top: 2px solid #ebebeb;
    padding: 16px 18px;
    transition: border-top-color 0.2s, box-shadow 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(14px);
    display: flex;
    flex-direction: column;
}
.cc-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.cc-card:hover {
    border-top-color: var(--red);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}
.cc-card-name {
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 700;
    color: #0d0d0d;
    margin: 0 0 12px;
    line-height: 1.4;
}
.cc-card-note {
    font-size: 0.74rem;
    color: var(--color-black);
    margin: 10px 0 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    line-height: 1.5;
}

/* ── Pills ─────────────────────────────────────────────────────────────────── */
.cc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: flex-start;
    margin-top: auto;
}
/* Cards without a "+more" toggle (pills are the last element): keep pills
   directly under the title instead of bottom-anchoring them, which left an
   ugly gap on low-pill cards (e.g. Soil load calculations, Retrofitting). */
.cc-pills:last-child {
    margin-top: 0;
}
.cc-pill {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 6px 10px;
    width: calc(50% - 3px);
    text-align: center;
    background: #111214;
    color: var(--white);
    border-radius: 2px;
    display: inline-block;
    box-sizing: border-box;
}

/* ── More toggle ───────────────────────────────────────────────────────────── */
.cc-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--red);
    cursor: pointer;
    padding: 5px 0;
    margin-top: 8px;
    background: none;
    border: none;
    transition: opacity 0.15s;
    width: 100%;
    line-height: 1;
}
.cc-more-toggle:hover {
    opacity: 0.7;
}
.cc-more-toggle svg {
    transition: transform 0.25s;
    flex-shrink: 0;
}
.cc-more-toggle.open svg {
    transform: rotate(180deg);
}
.cc-more-count {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--red);
}

/* ── Expanded pills ────────────────────────────────────────────────────────── */
.cc-pills-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
.cc-pills-extra.open {
    max-height: 500px;
    opacity: 1;
}

/* ── Pills wrapper ─────────────────────────────────────────────────────────── */
.cc-pills-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .cc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .cc-wrap {
        padding: 32px 20px;
    }
}
@media (max-width: 480px) {
    .cc-stats {
        grid-template-columns: 1fr;
    }
}
