/* ============================================================
   RACK2CLOUD: MASTER CSS — r2c-master.css
   Version: 1.0 — 2026-03-22
   Location: /wp-content/themes/kadence-child/r2c-master.css
   Loaded via: wp_enqueue_style in functions.php
   DO NOT edit via WP Customizer — edit this file directly
   ============================================================ */

/* --- 1. UTILITIES & SCROLLING TEXT --- */
#kt-scroll-up { cursor: pointer; }

.kadence-scrolling-text-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.kadence-scrolling-text-track {
    display: inline-block;
    animation: marquee-text-scroll 30s linear infinite;
    padding-left: 100%;
}

.kadence-scrolling-text-container:hover .kadence-scrolling-text-track {
    animation-play-state: paused;
}

.scroll-item {
    display: inline-block;
    margin-right: 50px;
    vertical-align: middle;
}

@keyframes marquee-text-scroll {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* --- 2. STATUS DOTS & CARDS --- */
.r2c-status-dot {
    height: 8px;
    width: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.r2c-workbench-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #334155 !important;
}
.r2c-workbench-card:hover {
    border-color: #0ea5e9 !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.r2c-hidden { display: none !important; }

/* --- 3. SURGICAL BLACK-OUTS (Landing Pages) --- */
.page-id-2087 #main,
.page-id-2087 .site-content,
.page-id-2087 .content-area,
.page-id-2087 article,
.page-id-2087 .entry-content {
    background-color: #000000 !important;
    border: none !important;
}

.page, .page #page, .page #main, .page .site-content, .page .content-area {
    background-color: #000000 !important;
}

.page-id-2664 .entry-header {
    display: none !important;
}

.page .entry-header {
    background: transparent !important;
    padding-top: 20px;
}

.page .entry-title, .page .entry-meta, .page .entry-meta a {
    color: #ffffff !important;
}

/* --- 4. DETERMINISTIC GRID LOGIC --- */
.deterministic-grid, .deterministic-grid ul {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media only screen and (min-width: 769px) {
    .deterministic-grid, .deterministic-grid ul {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.deterministic-grid li, .deterministic-grid .wp-block-post {
    background: #000000 !important;
    border: 1px solid #1e293b !important;
    border-bottom: 4px solid #38bdf8 !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 30px !important;
    overflow: hidden !important;
}

.deterministic-grid li > *, .deterministic-grid .wp-block-post > * {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.deterministic-grid h2, .deterministic-grid .wp-block-latest-posts__post-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
}

.deterministic-grid h2 a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.deterministic-grid .wp-block-latest-posts__post-author,
.deterministic-grid .wp-block-latest-posts__post-author a,
.deterministic-grid .wp-block-latest-posts__post-date {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.deterministic-grid .wp-block-latest-posts__post-author {
    font-size: 0 !important;
}

.deterministic-grid .wp-block-latest-posts__post-author a {
    font-size: 13px !important;
    visibility: visible !important;
}

.deterministic-grid .wp-block-latest-posts__post-author a::before {
    content: "By: ";
    font-weight: 700 !important;
    color: #94a3b8 !important;
}

.deterministic-grid .wp-block-latest-posts__post-excerpt {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-top: 15px !important;
}

/* --- 5. R2C PATHS & CODE BLOCKS --- */
.r2c-paths-section {
    padding: 40px 0 80px 0;
    border-top: 1px solid #1e293b;
    font-family: 'Inter', sans-serif;
}
.r2c-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}
.r2c-path-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease;
}
.r2c-path-card:hover {
    transform: translateY(-5px);
    border-color: #334155;
}
.r2c-path-card h3 {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 0 15px 0 !important;
    min-height: 45px;
}

/* Code blocks */
pre, code {
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #d4d4d4;
    background-color: #1e1e1e;
    border-radius: 4px;
}

pre {
    display: block;
    white-space: pre;
    overflow-x: auto;
    word-wrap: normal;
    padding: 1.2em;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid #2dd4bf;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

code {
    padding: 2px 6px !important;
    margin: 0 2px;
    font-size: 0.9em;
    white-space: normal;
    display: inline;
    vertical-align: baseline;
    line-height: 1.4;
}

pre code {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    white-space: pre !important;
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 768px) {
    pre {
        font-size: 12px;
        padding: 1em;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
}

/* --- 6. TERMINAL POST CARDS --- */
.kb-posts-grid-post {
    background: #0f172a !important;
    border: 1px solid #1e293b;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 0 !important;
    overflow: hidden;
}

.kb-posts-grid-post:hover {
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.15);
}

.kb-posts-grid-post .kadence-post-categories a {
    background: rgba(45, 212, 191, 0.1);
    color: #2dd4bf !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.kb-posts-grid-post .entry-title a {
    color: #f8fafc !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.kb-posts-grid-post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #1e293b;
    transition: background 0.3s ease;
}

.kb-posts-grid-post:hover::before {
    background: #f97316;
}

/* --- 7. BUTTON SYSTEM --- */
.r2c-btn {
    display: inline-block !important;
    width: auto !important;
    background: #0b0f19 !important;
    border: 1px solid #38bdf8 !important;
    color: #38bdf8 !important;
    padding: 15px 35px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
    margin-top: 5px;
}

.r2c-btn:hover {
    background: #0b0f19 !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
    transform: translateY(-2px);
}

.r2c-btn-full {
    display: block !important;
    width: 100% !important;
    background: #0b0f19 !important;
    border: 1px solid #38bdf8 !important;
    color: #38bdf8 !important;
    padding: 14px 20px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none !important;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.r2c-btn-full:hover {
    background: #0b0f19 !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6) !important;
    transform: translateY(-2px);
}

.r2c-btn-secondary {
    display: inline-block !important;
    background: transparent !important;
    border: 1px solid #64748b !important;
    color: #94a3b8 !important;
    padding: 15px 35px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.r2c-btn-secondary:hover {
    background: #0b0f19 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

.r2c-link {
    color: #38bdf8 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
}

.r2c-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-left: 5px;
    font-family: 'Inter', sans-serif !important;
}

input[type="submit"], button[type="submit"], .wpforms-submit {
    width: 100% !important;
    background: #0b0f19 !important;
    border: 1px solid #38bdf8 !important;
    color: #38bdf8 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

input[type="submit"]:hover, .wpforms-submit:hover {
    color: #ffffff !important;
    background: #0b0f19 !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-2px) !important;
}

/* --- 8. TARGETED LINK STYLING --- */
.r2c-footer-grid a {
    color: #38bdf8 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.r2c-footer-grid a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

.entry-content a:not(.r2c-btn):not(.r2c-btn-full):not(.r2c-btn-secondary):not(.wp-block-button__link):not(.r2c-link):not(.r2c-resource-card) {
    color: #38bdf8 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.entry-content a:not(.r2c-btn):not(.r2c-btn-full):not(.r2c-btn-secondary):not(.wp-block-button__link):not(.r2c-link):not(.r2c-resource-card):hover {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* --- 9. KILL KADENCE INVISIBLE BUTTON OVERLAP ON DESKTOP --- */
@media screen and (min-width: 1025px) {
    .dropdown-nav-special-toggle {
        pointer-events: none !important;
    }

    li.menu-item-has-children > a {
        position: relative !important;
        z-index: 999 !important;
        pointer-events: auto !important;
    }
}

/* --- 10. MOBILE RENDERING OVERRIDES --- */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

@media (max-width: 768px) {
    figure.wp-block-table,
    .wp-block-table,
    figure.wp-block-table table {
        overflow-x: hidden !important;
        display: table !important;
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed !important;
    }

    figure.wp-block-table th,
    figure.wp-block-table td {
        font-size: 0.75rem !important;
        padding: 8px 4px !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        -webkit-hyphens: auto !important;
        hyphens: auto !important;
    }
}

/* --- 11. CATEGORY PILL RESTYLE --- */
.category-links.term-links a {
    display: inline-block !important;
    background: rgba(56, 189, 248, 0.08) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.category-links.term-links a:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* --- 12. FIX HEADER TOP SPACING --- */
.content-vertical-padding-show .content-container {
    padding-top: 0 !important;
}

/* --- 13. RACK2CLOUD HEADER BANNER --- */
.r2c-header-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    text-align: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    margin: 10px 0 !important;
    width: 100% !important;
}

.r2c-header-banner .banner-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.r2c-header-banner strong {
    color: #f8fafc !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
}

.r2c-header-banner em {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-style: normal !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
}

.r2c-header-banner .banner-content br { display: none !important; }

.r2c-header-banner .divider {
    display: none !important;
    color: #475569 !important;
    margin: 0 12px !important;
}

.r2c-header-banner p {
    margin: 0 !important;
    padding: 0 !important;
}

.r2c-header-banner .btn,
.r2c-header-banner .r2c-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 36px !important;
    padding: 0 16px !important;
    line-height: 0 !important;
    text-align: center !important;
}

@media (min-width: 768px) {
    .r2c-header-banner {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 8px 20px !important;
        text-align: left !important;
        min-height: 52px !important;
    }
    .r2c-header-banner .banner-content { flex-direction: row !important; }
    .r2c-header-banner .divider { display: inline-block !important; }
    .r2c-header-banner .btn,
    .r2c-header-banner .r2c-btn {
        display: inline-flex !important;
        width: auto !important;
    }
}

/* --- 14. OVERRIDE KADENCE ARCHIVE GRAY --- */
body.search-results .site,
body.search-results .site-content,
body.search-results .content-bg,
body.search-results .content-container {
    background-color: #000000 !important;
}

body.search-results .archive-title,
body.search-results .entry-title a,
body.search-results .entry-summary,
body.search-results p {
    color: #f8fafc !important;
}

header#masthead,
.site-header-wrap,
.site-header-inner-wrap,
.site-header-row,
.site-header-row-container-inner,
.kadence-sticky-header,
.kadence-sticky-header.item-is-fixed {
    background-color: #000000 !important;
    background-image: none !important;
}

/* --- 15. ARCHITECT'S BRIEF WIDGET --- */
.ab-wrap {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    padding: 0;
    margin: 32px 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.ab-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    gap: 12px;
}

.ab-trigger:hover { background: rgba(56, 189, 248, 0.04); }

.ab-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ab-eyebrow {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #38bdf8;
    white-space: nowrap;
}

.ab-tagline {
    font-size: 0.82rem;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 480px) { .ab-tagline { display: none; } }

.ab-chevron {
    color: #38bdf8;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ab-wrap.is-open .ab-chevron { transform: rotate(180deg); }

.ab-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid #1e293b;
}

.ab-wrap.is-open .ab-body { display: block; }

.ab-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #475569;
}

.ab-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #1e293b;
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: ab-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes ab-spin { to { transform: rotate(360deg); } }

.ab-fields {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ab-field {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px;
    align-items: start;
}

@media (max-width: 600px) {
    .ab-field {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

.ab-field-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #475569;
    padding-top: 2px;
    white-space: nowrap;
}

.ab-field-value {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.ab-verdict {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
    border-radius: 4px;
}

.ab-verdict-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ef4444;
    margin-bottom: 6px;
}

.ab-verdict-text {
    font-size: 0.88rem;
    color: #f8fafc;
    line-height: 1.6;
    font-style: italic;
}

.ab-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 16. ARCHITECT'S VERDICT SECTION --- */
.r2c-verdict {
    border-left: 3px solid #38bdf8;
    padding-left: 20px;
    margin: 32px 0;
}

.r2c-verdict--ai             { border-left-color: #ef4444; }
.r2c-verdict--data-protection { border-left-color: #22c55e; }
.r2c-verdict--virtualization  { border-left-color: #38bdf8; }
.r2c-verdict--cloud           { border-left-color: #a78bfa; }
.r2c-verdict--infra           { border-left-color: #f59e0b; }

.r2c-verdict h2 {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #38bdf8 !important;
    margin-bottom: 12px !important;
}

.r2c-verdict--ai h2             { color: #ef4444 !important; }
.r2c-verdict--data-protection h2 { color: #22c55e !important; }
.r2c-verdict--virtualization h2  { color: #38bdf8 !important; }
.r2c-verdict--cloud h2           { color: #a78bfa !important; }
.r2c-verdict--infra h2           { color: #f59e0b !important; }

.r2c-verdict p {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
}

/* --- 17. PILLAR-COLORED TABLES --- */
.r2c-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    margin: 24px 0;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    overflow: hidden;
}

.r2c-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 16px;
    text-align: left;
    background: #0a101f;
    color: #38bdf8;
    border-bottom: 1px solid #1e293b;
}

.r2c-table td {
    padding: 10px 16px;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
    line-height: 1.5;
    vertical-align: top;
}

.r2c-table tr:last-child td { border-bottom: none; }
.r2c-table tr:nth-child(even) td { background: #0a101f; }
.r2c-table tr:hover td { background: rgba(56, 189, 248, 0.03); }

.r2c-table--ai th                { color: #ef4444; border-bottom-color: rgba(239,68,68,0.3); }
.r2c-table--data-protection th   { color: #22c55e; border-bottom-color: rgba(34,197,94,0.3); }
.r2c-table--virtualization th    { color: #38bdf8; border-bottom-color: rgba(56,189,248,0.3); }
.r2c-table--cloud th             { color: #a78bfa; border-bottom-color: rgba(167,139,250,0.3); }
.r2c-table--infra th             { color: #f59e0b; border-bottom-color: rgba(245,158,11,0.3); }

.r2c-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.r2c-table-wrap .r2c-table {
    margin: 0;
    min-width: 500px;
}

/* --- 18. CASCADE COST TRACE BLOCK --- */
.tc-wrap {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 16px 20px;
    width: 100%;
    box-sizing: border-box;
}

.tc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) { .tc-grid { grid-template-columns: 1fr; } }

.tc-col {
    background: #0a101f;
    border: 1px solid #1e293b;
    border-radius: 4px;
    padding: 14px 16px;
}

.tc-label {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #38bdf8;
    margin-bottom: 10px;
}

.tc-label.warn { color: #f97316; }

.tc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #1e293b;
    font-size: 0.78rem;
    gap: 8px;
}

.tc-row:last-of-type { border-bottom: none; }
.tc-step { color: #475569; min-width: 28px; flex-shrink: 0; }
.tc-desc { color: #94a3b8; flex: 1; }
.tc-cost { color: #f8fafc; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.tc-cost.add { color: #f97316; }
.tc-divider { border: none; border-top: 1px solid #334155; margin: 8px 0; }

.tc-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0 0;
}

.tc-total-label { color: #64748b; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.tc-total-val { font-size: 0.9rem; font-weight: 900; white-space: nowrap; }
.tc-total-val.clean { color: #38bdf8; }
.tc-total-val.real  { color: #ef4444; }

.tc-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 7px;
    vertical-align: middle;
}

.badge-clean { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-real  { background: rgba(239, 68, 68, 0.1);  color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.tc-section-gap { margin-top: 14px; }

.tc-note {
    font-size: 0.68rem;
    color: #475569;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #1e293b;
    line-height: 1.6;
}

/* --- 19. RESOURCE CARDS --- */
.r2c-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.r2c-resource-card {
    display: block;
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-radius: 6px !important;
    padding: 16px 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    color: inherit !important;
}

.r2c-resource-card:hover {
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px -4px rgba(56, 189, 248, 0.15);
    text-decoration: none !important;
}

.r2c-resource-card__type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.r2c-resource-card__type--internal { color: #38bdf8; }
.r2c-resource-card__type--external { color: #475569; }

.r2c-resource-card__title {
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.r2c-resource-card__desc {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
    margin-top: 6px;
}

.r2c-resource-card--text {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 16px 18px;
    color: #94a3b8;
    font-size: 0.88rem;
}
