/* === ODMIANY I ADAPTACJE DBT — PRZEGLĄD NAUKOWY STYLES === */
:root {
    --dbt-primary: var(--accent-gold, #947600);
    --dbt-primary-dark: #6e5800;
    --dbt-accent: #2b6cb0;
    --dbt-bg-soft: rgba(253, 252, 249, 0.7);
    --dbt-border: rgba(148, 118, 0, 0.15);
    --dbt-glass: rgba(255, 255, 255, 0.92);
    --tier-a: #2e7d32;
    --tier-b: #1976d2;
    --tier-c: #d97706;
    --tier-d: #64748b;
}

.modular-page.page--dbt-rodzaje .main-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Sekcje artykułu */
.dbt-review-section {
    margin-bottom: 70px;
    scroll-margin-top: 90px;
}

.block-header {
    text-align: left;
    max-width: 980px;
    margin: 0 0 35px;
}

.block-kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dbt-primary);
    margin-bottom: 8px;
}

.block-title {
    font-size: 2.2rem;
    color: var(--text-dark, #1a202c);
    line-height: 1.25;
    margin-bottom: 14px;
}

.block-lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Boxy informacyjne i wyróżnienia */
.callout-box {
    background: #ffffff;
    border-left: 4px solid var(--dbt-primary);
    padding: 24px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    margin: 30px 0;
    border-top: 1px solid var(--dbt-border);
    border-right: 1px solid var(--dbt-border);
    border-bottom: 1px solid var(--dbt-border);
}

.callout-box--warning {
    border-left-color: #c53030;
    background: #fffafa;
}

.callout-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dbt-primary);
    margin-bottom: 8px;
}

.callout-badge--warning {
    color: #c53030;
}

.callout-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #2d3748;
}

/* Karty modeli / Profile */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.model-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--dbt-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-margin-top: 90px;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    border-color: rgba(148, 118, 0, 0.35);
}

.model-card-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 14px;
}

.model-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-fidelity-full {
    background: #e6f4ea;
    color: #137333;
}

.badge-fidelity-distinct {
    background: #e8f0fe;
    color: #1a73e8;
}

.badge-fidelity-adjunct {
    background: #fef7e0;
    color: #b06000;
}

.badge-fidelity-skills {
    background: #f1f3f4;
    color: #3c4043;
}

.badge-fidelity-unconfirmed {
    background: #fce8e6;
    color: #c5221f;
}

.badge-evidence-meta {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-evidence-single {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-evidence-preliminary {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-tier-a {
    background: #e6f4ea;
    color: var(--tier-a);
    font-weight: 800;
}

.badge-tier-b {
    background: #e8f0fe;
    color: var(--tier-b);
    font-weight: 800;
}

.badge-tier-c {
    background: #fef7e0;
    color: var(--tier-c);
    font-weight: 800;
}

.badge-tier-d {
    background: #f1f3f4;
    color: var(--tier-d);
    font-weight: 800;
}

.model-card-title {
    font-size: 1.45rem;
    color: var(--text-dark, #1a202c);
    margin: 0 0 6px;
    line-height: 1.3;
}

.model-meta-info {
    font-size: 0.88rem;
    color: #718096;
    margin-bottom: 4px;
}

.model-details {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 18px;
}

.model-details strong {
    color: #2d3748;
}

.model-source-box {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #4a5568;
    border: 1px solid #edf2f7;
    margin-top: 14px;
}

.model-source-box a {
    color: var(--dbt-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Oś czasu adaptacji */
.dbt-timeline {
    position: relative;
    padding-left: 36px;
    border-left: 3px solid var(--dbt-primary);
    margin: 40px 0 60px;
}

.dbt-timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.dbt-timeline-item::before {
    content: "";
    position: absolute;
    left: -44px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--dbt-primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--dbt-primary);
}

.dbt-timeline-date {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dbt-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.dbt-timeline-title {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: var(--text-dark, #1a202c);
}

.dbt-timeline-desc {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Tabele porównawcze */
.table-responsive-wrapper {
    overflow-x: auto;
    margin: 30px 0 45px;
    border-radius: 10px;
    border: 1px solid var(--dbt-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
    background: #ffffff;
}

.styled-table th {
    background: #f7fafc;
    color: #2d3748;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.styled-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    vertical-align: top;
    line-height: 1.5;
}

.styled-table tbody tr:hover {
    background-color: #fcfcfc;
}

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

/* FAQ Accordion */
.faq-list {
    margin-top: 30px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--dbt-border);
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark, #1a202c);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #fcfaf6;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--dbt-primary);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #4a5568;
    border-top: 1px solid #f1f5f9;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Bibliografia APA 7 */
.biblio-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}

.biblio-item {
    padding: 12px 0 12px 30px;
    text-indent: -30px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333333;
}

.biblio-item a {
    color: var(--dbt-primary);
    word-break: break-all;
}

@media (max-width: 768px) {
    .block-title {
        font-size: 1.7rem;
    }
    .models-grid {
        grid-template-columns: 1fr;
    }
    .modular-page.page--dbt-rodzaje .main-content {
        padding: 0 15px 50px;
    }
}
