.btn {
    text-transform: none;
    box-sizing: border-box;
}

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus {
    color: var(--clean);
}

.trap-guide {
    max-width: 1040px;
    margin: 0 auto;
}

.trap-guide > section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
    gap: 1.15rem;
}

.article-header {
    margin-bottom: 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.eyebrow-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--royal);
    background: var(--brand-blue-100);
    border: 1px solid var(--brand-blue-200);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.article-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw + 0.5rem, 3.25rem);
    line-height: 1.15;
    color: var(--abyss);
}

.article-subtitle {
    margin: 0;
    max-width: 880px;
    font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.3rem);
    line-height: 1.6;
    color: var(--slate);
}

.article-meta-line {
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate);
    font-weight: 500;
}

.clinical-disclaimer {
    background: rgba(255, 255, 255, 0.84);
    border-left: 4px solid var(--brand-blue-500);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(18, 38, 72, 0.06);
}

.clinical-disclaimer p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--slate);
}

.mechanism-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.mechanism-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: 4px solid var(--brand-blue-500);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mechanism-card.card-collision {
    border-top-color: var(--brand-pink-300);
}

.mechanism-card.card-dopamine {
    border-top-color: var(--lilac);
}

.mechanism-card.card-loop {
    border-top-color: var(--royal);
}

.mechanism-stat-pill {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--brand-blue-50);
    color: var(--royal);
}

.mechanism-card.card-collision .mechanism-stat-pill {
    background: var(--brand-pink-100);
    color: var(--brand-pink-500);
}

.mechanism-card.card-dopamine .mechanism-stat-pill {
    background: var(--light-lavanda);
    color: var(--lilac);
}

.mechanism-card h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--abyss);
}

.mechanism-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.58;
    color: var(--slate);
}

.hero-cta-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-cta-copy {
    flex: 1 1 360px;
}

.hero-cta-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--abyss);
}

.hero-cta-copy .cta-subnote {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--slate);
}

.diagram-card {
    margin: 0.75rem 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.diagram-card svg {
    display: block;
    width: 100%;
    height: auto;
}

.diagram-caption {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rain);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--slate);
}

.protest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.protest-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.07);
    border-left: 4px solid var(--brand-pink-300);
}

.protest-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--abyss);
}

.protest-card p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--slate);
}

.avoidant-contrast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.contrast-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.65rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contrast-card.card-dismissive {
    border-top: 5px solid var(--royal);
}

.contrast-card.card-fearful {
    border-top: 5px solid var(--lilac);
}

.model-badge {
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

.card-dismissive .model-badge {
    background: var(--brand-blue-100);
    color: var(--royal);
}

.card-fearful .model-badge {
    background: var(--light-lavanda);
    color: var(--lilac);
}

.contrast-card h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--abyss);
}

.contrast-subtitle {
    margin: -0.35rem 0 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate);
}

.contrast-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contrast-points li {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rain);
    font-size: 0.96rem;
    line-height: 1.58;
    color: var(--slate);
}

.scenario-banner {
    background: var(--brand-blue-50);
    border: 1px solid var(--brand-blue-200);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
}

.scenario-banner p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--abyss);
}

.chat-contrast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.chat-panel {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(18, 38, 72, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
}

.chat-panel-header {
    padding: 1.15rem 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid var(--rain);
}

.chat-panel-protest .chat-panel-header {
    background: var(--brand-pink-100);
}

.chat-panel-secure .chat-panel-header {
    background: var(--brand-blue-50);
}

.chat-panel-header h3 {
    margin: 0;
    font-size: 1.12rem;
    color: var(--abyss);
}

.chat-status-tag {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.chat-panel-protest .chat-status-tag {
    background: var(--brand-pink-200);
    color: var(--brand-pink-500);
}

.chat-panel-secure .chat-status-tag {
    background: rgba(5, 183, 125, 0.15);
    color: #047852;
}

.chat-thread {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
    background: rgba(248, 250, 254, 0.7);
}

.chat-msg {
    max-width: 86%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chat-msg.incoming {
    align-self: flex-start;
}

.chat-msg.outgoing {
    align-self: flex-end;
}

.chat-time {
    font-size: 0.74rem;
    color: var(--slate);
    padding: 0 0.25rem;
}

.chat-msg.outgoing .chat-time {
    text-align: right;
}

.chat-bubble {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    font-size: 0.93rem;
    line-height: 1.5;
}

.chat-msg.incoming .chat-bubble {
    background: var(--clean);
    color: var(--abyss);
    border: 1px solid var(--cloud);
    border-bottom-left-radius: 4px;
}

.chat-panel-protest .chat-msg.outgoing .chat-bubble {
    background: var(--brand-pink-500);
    color: var(--clean);
    border-bottom-right-radius: 4px;
}

.chat-panel-secure .chat-msg.outgoing .chat-bubble {
    background: var(--royal);
    color: var(--clean);
    border-bottom-right-radius: 4px;
}

.chat-pause-note {
    align-self: center;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--royal);
    background: var(--brand-blue-100);
    border: 1px dashed var(--brand-blue-400);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin: 0.25rem 0;
}

.chat-panel-analysis {
    padding: 1.1rem 1.35rem;
    background: var(--clean);
    border-top: 1px solid var(--rain);
}

.chat-panel-analysis p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--slate);
}

.inline-cta-card,
.bottom-cta-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 245, 254, 0.95) 100%);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: 0 6px 24px rgba(18, 38, 72, 0.09);
    border: 1px solid var(--brand-blue-200);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bottom-cta-card {
    text-align: center;
    align-items: center;
    padding: 2.25rem 2rem;
}

.inline-cta-card h3,
.bottom-cta-card h2 {
    margin: 0;
    color: var(--abyss);
}

.inline-cta-card p,
.bottom-cta-card p {
    margin: 0;
    max-width: 760px;
    color: var(--slate);
}

.inline-cta-actions {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.protocol-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.protocol-step-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-blue-100);
    color: var(--royal);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--abyss);
}

.step-body p {
    margin: 0 0 0.7rem 0;
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--slate);
}

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

.script-example {
    background: var(--brand-blue-50);
    border-left: 3px solid var(--royal);
    border-radius: 0 10px 10px 0;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--abyss);
}

.sources-section {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.sources-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.sources-list {
    margin: 0;
    padding-left: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sources-list li {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--slate);
    overflow-wrap: anywhere;
}

.related-links .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .mechanism-cards-grid {
        grid-template-columns: 1fr;
    }

    .avoidant-contrast-grid,
    .chat-contrast-grid,
    .protest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .trap-guide > section {
        margin-top: 2.25rem;
        margin-bottom: 2.25rem;
    }

    .diagram-card,
    .contrast-card,
    .inline-cta-card,
    .bottom-cta-card,
    .sources-section {
        padding: 1.25rem;
    }

    .protocol-step-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .chat-msg {
        max-width: 92%;
    }

    .related-links .tools-grid {
        grid-template-columns: 1fr;
    }
}
