/* Guide article styles for /guides/<slug>/ and the /guides/ index.
   Editorial long-form layout: a single narrow reading column, flowing prose,
   no content cards, no left-border accent bars (per project style rules).
   Brand palette matches drug-page.css so guides feel like one product. */

.guide-article {
    max-width: 760px;
    margin: 2rem auto 3.5rem;
    padding: 0 20px;
    color: #343a40;
    line-height: 1.7;
}

/* ---- Breadcrumb ---- */
.guide-breadcrumb {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}
.guide-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}
.guide-breadcrumb a:hover { color: #00ACD0; text-decoration: underline; }

/* ---- Header ---- */
.guide-head { margin-bottom: 2rem; }

.guide-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1864ab;
    margin: 0 0 0.75rem;
}
.guide-eyebrow a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(24, 100, 171, 0.4);
}
.guide-eyebrow a:hover { color: #1864ab; border-bottom-color: #1864ab; }

.guide-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.18;
    margin: 0 0 1rem;
}

.guide-dek {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #495057;
    font-weight: 400;
    margin: 0 0 1.25rem;
}

.guide-byline {
    font-size: 0.88rem;
    color: #6c757d;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f5;
}

/* ---- Table of contents ---- */
.guide-toc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    margin: 0 0 2.5rem;
}
.guide-toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #868e96;
    margin: 0 0 0.6rem;
}
.guide-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
}
.guide-toc li { position: relative; }
.guide-toc li + li::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 0.55em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ced4da;
}
.guide-toc a {
    font-size: 0.95rem;
    color: #00ACD0;
    text-decoration: none;
}
.guide-toc a:hover { text-decoration: underline; }

/* ---- Sibling cross-link ---- */
.guide-aside-link {
    font-size: 0.96rem;
    color: #6c757d;
    margin: 0 0 1.75rem;
}
.guide-aside-link a {
    color: #00ACD0;
    font-weight: 600;
    text-decoration: none;
}
.guide-aside-link a:hover { text-decoration: underline; }

/* ---- Section headings ---- */
.guide-article h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e9ecef;
    scroll-margin-top: 90px;
}
.guide-article h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: #343a40;
    margin: 1.9rem 0 0.6rem;
    scroll-margin-top: 90px;
}

/* ---- Prose ---- */
.guide-prose { font-size: 1.08rem; color: #343a40; }
.guide-prose p { margin: 0 0 1.2rem; }
.guide-prose strong { font-weight: 700; color: #212529; }
.guide-prose a {
    color: #00ACD0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 172, 208, 0.35);
}
.guide-prose a:hover { border-bottom-color: #00ACD0; }

.guide-prose ul, .guide-prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.guide-prose li { margin-bottom: 0.4rem; }

/* citation superscripts: small, no underline */
.guide-prose sup { line-height: 0; font-size: 0.7em; }
.guide-prose sup a {
    border-bottom: none;
    font-weight: 600;
    padding: 0 0.05em;
}
.guide-prose sup a:hover { text-decoration: underline; }

/* ---- Safety note (no fill-heavy card, no left bar) ---- */
.guide-note {
    font-size: 1.02rem;
    color: #495057;
    background: #fff8e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
}
.guide-note strong { color: #8a6d00; }
.guide-note p { margin: 0; }

/* ---- Stat figure ---- */
.guide-stat {
    text-align: center;
    margin: 2.25rem 0;
}
.guide-stat-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: #00ACD0;
    line-height: 1.1;
}
.guide-stat-label {
    display: block;
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

/* ---- Pull quote (no left bar) ---- */
.guide-pullquote {
    font-size: 1.45rem;
    line-height: 1.4;
    font-weight: 400;
    color: #1d6f80;
    text-align: center;
    max-width: 620px;
    margin: 2.5rem auto;
    padding: 0;
    border: none;
    position: relative;
}
.guide-pullquote::before {
    content: "\201C";
    display: block;
    font-size: 3rem;
    line-height: 0.5;
    color: #b9e4ed;
    margin-bottom: 0.6rem;
}

/* ---- Gene table (borderless, rounded) ---- */
.guide-gene-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 1.25rem 0 1.75rem;
    box-shadow: 0 0 0 1px #e9ecef;
}
.guide-gene-table th {
    text-align: left;
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #868e96;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
}
.guide-gene-table td {
    padding: 0.85rem 0.9rem;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: top;
    line-height: 1.55;
}
.guide-gene-table td p { margin: 0; }
.guide-gene-table tr:last-child td { border-bottom: none; }
.guide-gene-table th[scope="row"] {
    width: 9.5rem;
    background: white;
    border-bottom: 1px solid #f1f3f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1864ab;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}
.guide-gene-table th[scope="row"] a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ---- Numbered next-steps ---- */
.guide-steps {
    margin: 1rem 0 1.75rem;
    padding-left: 1.4rem;
}
.guide-steps li {
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
    padding-left: 0.3rem;
    line-height: 1.6;
}

/* ---- Related links (inline, no chips) ---- */
.guide-related { font-size: 1.05rem; margin: 0.5rem 0 1.5rem; }
.guide-related a {
    color: #00ACD0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 172, 208, 0.35);
}
.guide-related a:hover { border-bottom-color: #00ACD0; }

/* ---- References ---- */
.guide-refs {
    font-size: 0.92rem;
    color: #6c757d;
    line-height: 1.55;
    padding-left: 1.4rem;
    margin: 1rem 0 0;
}
.guide-refs li { margin-bottom: 0.6rem; scroll-margin-top: 90px; }
.guide-refs a {
    color: #00ACD0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 172, 208, 0.35);
    word-break: break-word;
}
.guide-refs a:hover { border-bottom-color: #00ACD0; }

/* ---- Disclaimer (no left bar) ---- */
.guide-disclaimer {
    font-size: 0.86rem;
    color: #868e96;
    line-height: 1.55;
    background: #fbfbfb;
    border: 1px solid #f1f3f5;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin: 2.5rem 0 0;
}
.guide-disclaimer strong { color: #6c757d; }

/* ---- Call to action (integrated panel) ---- */
.guide-cta {
    background: linear-gradient(135deg, #00ACD0 0%, #009688 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 3rem 0 1.5rem;
}
.guide-cta-text {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 auto 1.5rem;
    max-width: 560px;
}
.guide-cta-primary {
    display: inline-block;
    background: white;
    color: #008299;
    padding: 0.85rem 2rem;
    border-radius: 26px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin: 0 0.4rem 0.6rem;
}
.guide-cta-primary:hover {
    color: #008299;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.guide-cta-secondary {
    display: inline-block;
    color: white;
    padding: 0.85rem 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 0.4rem;
}
.guide-cta-secondary:hover { color: white; border-bottom-color: white; }

/* ---- Bottom nav ---- */
.guide-bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}
.guide-bottom-nav a {
    color: #6c757d;
    text-decoration: none;
}
.guide-bottom-nav a:hover { color: #00ACD0; }

/* ---- Guide index ---- */
.guide-index { max-width: 920px; margin: 2rem auto 3.5rem; padding: 0 20px; }
.guide-index-head { margin-bottom: 2.5rem; }
.guide-index-head h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.5rem;
}
.guide-index-head p { color: #6c757d; font-size: 1.05rem; margin: 0; }

.guide-index-group { margin-bottom: 2.75rem; }
.guide-index-group h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #343a40;
    margin: 0 0 1.1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e9ecef;
}
.guide-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.guide-index-card {
    display: block;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-index-card:hover {
    border-color: #00ACD0;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 172, 208, 0.12);
    text-decoration: none;
    color: inherit;
}
.guide-index-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
.guide-index-card p {
    font-size: 0.92rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}
.guide-index-card .guide-index-tag {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1864ab;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .guide-h1 { font-size: 1.85rem; }
    .guide-dek { font-size: 1.12rem; }
    .guide-article h2 { font-size: 1.4rem; }
    .guide-prose, .guide-steps li { font-size: 1.02rem; }
    .guide-stat-num { font-size: 2.3rem; }
    .guide-pullquote { font-size: 1.25rem; }
    .guide-gene-table { display: block; overflow-x: auto; }
    .guide-cta { padding: 2rem 1.25rem; }
    .guide-cta-text { font-size: 1.2rem; }
    .guide-cta-primary { display: block; margin: 0 0 0.6rem; }
}
