/* Shared layout for evidence-based pregnancy guides added in September 2026. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #2f2530;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus { top: 12px; }

.medical-hero {
    background:
        linear-gradient(135deg, rgba(16, 18, 28, .30), rgba(16, 18, 28, .38)),
        linear-gradient(135deg, var(--hero-from, #6a4bb6), var(--hero-to, #a987df));
}

.medical-hero .blog-hero-emoji { animation: none; }

.medical-summary,
.medical-note,
.medical-urgent,
.medical-scope,
.medical-legal {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.75;
}

.medical-summary {
    border: 1px solid #cbdfee;
    background: #f0f8fc;
}

.medical-note {
    border: 1px solid #cfe2c6;
    background: #f4faf1;
}

.medical-urgent {
    border: 1px solid #e7b6ad;
    background: #fff2ee;
}

.medical-scope {
    border: 1px solid #e9d99e;
    background: #fff9e6;
}

.medical-legal {
    border: 1px solid #d8cbe6;
    background: #f8f4fb;
}

.medical-summary strong,
.medical-note strong,
.medical-urgent strong,
.medical-scope strong,
.medical-legal strong {
    display: block;
    margin-bottom: 6px;
}

.medical-toc {
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fffaf7;
}

.medical-toc strong { display: block; margin-bottom: 8px; }
.medical-toc a { display: inline-block; margin: 4px 14px 4px 0; }

.medical-grid,
.related-medical-grid,
.result-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.medical-card,
.related-medical-grid a,
.result-hub-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #eadde4;
    border-radius: 15px;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
}

.related-medical-grid a,
.result-hub-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.related-medical-grid a:hover,
.result-hub-card:hover {
    border-color: #cfacc0;
    box-shadow: 0 8px 22px rgba(68, 43, 60, .09);
    transform: translateY(-2px);
}

.medical-card h3,
.result-hub-card h2,
.result-hub-card h3 {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 1.08rem;
    line-height: 1.45;
}

.medical-card p,
.result-hub-card p,
.related-medical-grid a { margin: 0; line-height: 1.65; }
.result-hub-card span { display: block; margin-bottom: 8px; font-size: 1.55rem; }
.related-medical-grid a { font-weight: 700; }

.medical-table-wrap {
    max-width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid #eadde4;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
}

.medical-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    background: #fff;
}

.medical-table th,
.medical-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eee5e9;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.medical-table th { background: #fff5f8; color: #7d2e59; }
.medical-table tr:last-child td { border-bottom: 0; }

.medical-definition {
    margin: 18px 0;
    padding: 17px 19px;
    border-left: 4px solid #4a91ad;
    background: #f1f9fc;
}

.medical-definition strong { display: block; margin-bottom: 4px; }

.question-list li,
.source-list li,
.check-list li { margin: 9px 0; }
.source-list a { overflow-wrap: anywhere; }

.medical-faq details {
    margin: 12px 0;
    padding: 16px 18px;
    border: 1px solid #eadde4;
    border-radius: 14px;
    background: #fffaf7;
}

.medical-faq summary {
    cursor: pointer;
    color: #7d2e59;
    font-weight: 750;
    line-height: 1.55;
}

.medical-faq details p { margin: 12px 0 0; }

.review-stamp {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .96rem;
    line-height: 1.4;
}

.hub-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
}

.hub-intro img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
}

.hub-filter-note {
    margin: 16px 0 24px;
    color: #675b65;
}

.medical-content a:focus-visible,
.result-hub-card:focus-visible,
.related-medical-grid a:focus-visible {
    outline: 3px solid #6126a8;
    outline-offset: 3px;
}

@media (max-width: 680px) {
    .medical-grid,
    .related-medical-grid,
    .result-hub-grid { grid-template-columns: 1fr; }

    .medical-summary,
    .medical-note,
    .medical-urgent,
    .medical-scope,
    .medical-legal { padding: 17px 18px; }

    .hub-intro { grid-template-columns: 1fr; }
    .hub-intro img { width: 100%; height: auto; max-height: 260px; }
    .review-stamp { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
