.btn {
    text-transform: none;
    white-space: normal;
    line-height: 1.35;
    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);
}

.rocd-article {
    max-width: 980px;
    margin: 0 auto;
}

.rocd-article > header.article-header {
    margin-bottom: 2.25rem;
}

.eyebrow-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--royal);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--brand-blue-200);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
}

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

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

.clinical-safety-disclaimer {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--brand-pink-200);
    border-left: 5px solid var(--brand-pink-500);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
}

.clinical-safety-disclaimer p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--abyss);
}

.clinical-safety-disclaimer p + p {
    margin-top: 0.65rem;
}

.clinical-safety-disclaimer a {
    font-weight: 600;
    color: var(--brand-pink-500);
    text-decoration: underline;
}

.clinical-safety-disclaimer a:hover {
    color: var(--abyss);
}

.tldr-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--brand-blue-500);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.07);
}

.tldr-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--royal);
    margin: 0 0 0.65rem;
}

.tldr-list {
    margin: 0;
    padding-left: 1.25rem;
}

.tldr-list li {
    font-size: 0.98rem;
    line-height: 1.58;
    margin: 0.45rem 0;
    color: var(--abyss-80);
}

.rocd-widget-section {
    margin-top: 1.5rem;
    margin-bottom: 2.75rem;
}

.rocd-widget-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 8px 30px rgba(18, 38, 72, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.widget-header {
    margin-bottom: 1.25rem;
}

.widget-header h2 {
    font-size: clamp(1.45rem, 2.6vw + 0.5rem, 2.15rem);
    margin: 0 0 0.5rem;
}

.widget-header p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--slate);
}

.dimensions-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-dimension {
    background: var(--clean);
    border: 1px solid var(--brand-blue-100);
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

.check-dimension.is-safety-row {
    background: #fff9fc;
    border-color: var(--brand-pink-200);
}

.dim-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.dim-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--abyss);
    margin: 0;
}

.dim-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    background: var(--brand-blue-50);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.check-dimension.is-safety-row .dim-tag {
    color: var(--brand-pink-500);
    background: var(--brand-pink-100);
}

.segmented-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.segmented-options.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.seg-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.3rem;
    width: 100%;
    background-color: #f8faff;
    color: var(--abyss);
    border: 1.5px solid var(--cloud);
    border-radius: 11px;
    padding: 0.8rem 0.9rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.42;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.seg-btn:hover {
    background-color: var(--brand-blue-50);
    border-color: var(--brand-blue-400);
    color: var(--abyss);
    transform: none;
}

.seg-btn:focus-visible {
    outline: 3px solid rgba(79, 138, 223, 0.35);
    outline-offset: 2px;
}

.seg-btn-kicker {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate);
}

.seg-btn[aria-checked="true"] {
    background-color: var(--brand-blue-50);
    border-color: var(--royal);
    box-shadow: 0 0 0 2px rgba(34, 94, 173, 0.15);
}

.seg-btn[aria-checked="true"] .seg-btn-kicker {
    color: var(--royal);
}

.seg-btn[data-val="unsafe"][aria-checked="true"] {
    background-color: var(--brand-pink-100);
    border-color: var(--brand-pink-500);
    box-shadow: 0 0 0 2px rgba(194, 74, 125, 0.22);
}

.seg-btn[data-val="unsafe"][aria-checked="true"] .seg-btn-kicker {
    color: var(--brand-pink-500);
}

.reflection-output {
    margin-top: 1.5rem;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    background: var(--brand-blue-50);
    border: 1.5px solid var(--brand-blue-200);
    border-left: 5px solid var(--royal);
}

.reflection-output.is-loop {
    background: #faf6ff;
    border-color: #dfd0f5;
    border-left-color: var(--lilac);
}

.reflection-output.is-mixed {
    background: #f5f9ff;
    border-color: var(--brand-blue-200);
    border-left-color: var(--royal);
}

.reflection-output.is-gut {
    background: #f2fbf8;
    border-color: #bce8d8;
    border-left-color: var(--mint);
}

.reflection-output.is-safety-override {
    background: #fff0f6;
    border: 2px solid var(--brand-pink-500);
    border-left: 7px solid var(--brand-pink-500);
    box-shadow: 0 6px 24px rgba(194, 74, 125, 0.16);
}

.reflection-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--abyss);
    margin-bottom: 0.6rem;
}

.reflection-output.is-safety-override .reflection-badge {
    background: var(--brand-pink-500);
    color: var(--clean);
}

.reflection-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--abyss);
    margin: 0 0 0.6rem;
}

.reflection-summary {
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--abyss-80);
    margin: 0 0 0.85rem;
}

.reflection-points {
    margin: 0 0 1.1rem;
    padding-left: 1.25rem;
}

.reflection-points li {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--abyss);
    margin: 0.4rem 0;
}

.reflection-points a {
    font-weight: 700;
    color: var(--brand-pink-500);
    text-decoration: underline;
}

.widget-cta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.widget-cta-note {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--slate);
    margin: 0;
}

.content-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    margin: 0.75rem 0;
}

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

.clinical-card h3 {
    font-size: 1.18rem;
    margin: 0 0 0.55rem;
    color: var(--abyss);
}

.clinical-card p {
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.6;
}

.clinical-card ul {
    margin: 0.65rem 0 0;
    padding-left: 1.2rem;
}

.clinical-card li {
    font-size: 0.95rem;
    margin: 0.35rem 0;
}

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

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

.diagram-caption {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--slate);
    margin-top: 0.85rem;
    text-align: center;
}

.table-wrapper {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    margin: 0.75rem 0;
    background: rgba(255, 255, 255, 0.9);
}

.clinical-table {
    min-width: 640px;
    border-radius: 16px;
    overflow: hidden;
}

.clinical-table thead th {
    background: var(--brand-blue-100);
    color: var(--abyss);
    font-size: 0.93rem;
    padding: 0.95rem 1rem;
}

.clinical-table td {
    font-size: 0.94rem;
    line-height: 1.55;
    padding: 0.9rem 1rem;
    color: var(--abyss-80);
}

.clinical-table td strong {
    color: var(--abyss);
}

.cta-callout-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--brand-pink-200);
    border-left: 5px solid var(--brand-pink-300);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 24px rgba(18, 38, 72, 0.09);
}

.cta-callout-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    color: var(--abyss);
}

.cta-callout-card p {
    font-size: 0.99rem;
    margin: 0 0 1rem;
    color: var(--slate);
}

.protocol-steps {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.protocol-steps li {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--royal);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

.partner-script-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--brand-blue-200);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 0.75rem 0;
}

.partner-script-box blockquote {
    margin: 0.6rem 0 0;
    background: var(--brand-blue-50);
    border-left: 4px solid var(--royal);
    padding: 1rem 1.2rem;
    border-radius: 0 10px 10px 0;
    color: var(--abyss);
    font-size: 0.98rem;
    line-height: 1.6;
}

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

.sources-section h2 {
    font-size: clamp(1.4rem, 2.4vw + 0.5rem, 2rem);
    margin: 0 0 0.5rem;
}

.sources-list {
    margin: 0.5rem 0 0;
    padding-left: 1.35rem;
}

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

@media (max-width: 768px) {
    .segmented-options,
    .segmented-options.two-col {
        grid-template-columns: 1fr;
    }

    .rocd-widget-card,
    .clinical-safety-disclaimer,
    .tldr-box,
    .reflection-output,
    .diagram-card,
    .cta-callout-card,
    .sources-section {
        padding: 1.15rem 1.1rem;
    }

    .check-dimension {
        padding: 0.9rem 0.95rem;
    }

    .widget-cta-row .btn,
    .cta-callout-card .btn {
        box-sizing: border-box;
    }
}
