/*
 * Article / inner page — editorial layout based on Figma "Single resource
 * page" (node 11521:1527). Used by articles/show.blade.php and
 * what-is-mikvah.blade.php.
 *
 * Key features:
 *   .article           — white-bg page wrapper
 *   .article__head     — 864 px centered title block with breadcrumb,
 *                        H1, author/date, share icons
 *   .article__hero     — 864 px hero image directly below the head
 *   .article__body     — 864 px prose container with IvyJournal H3s,
 *                        Manrope body, pullquotes, lists
 *   .article__footer   — share + copyright notice
 *   .prose             — applies to raw HTML from the DB so legacy
 *                        article content (p, h2/h3/h4, ul/ol, blockquote,
 *                        img, etc.) picks up redesign typography.
 */

.redesign .article {
    background: var(--neutral-white);
    /* Tight top so the breadcrumb sits close to the nav (same white bg
     * means 80 px read as a giant empty gap). Bottom keeps the full
     * 112 px rhythm before Related Articles. */
    padding: 32px 0 112px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .redesign .article { padding: 24px 0 64px; }
}

.redesign .article__container {
    max-width: 864px;
    margin: 0 auto;
    padding-inline: 32px;
}

.redesign .article__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.redesign .article__breadcrumb a {
    color: var(--text-heading);
    text-decoration: none;
}

.redesign .article__breadcrumb a:hover { color: var(--brand-sea-green); }

.redesign .article__breadcrumb svg {
    width: 16px;
    height: 16px;
    color: var(--text-paragraph);
}

.redesign .article__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 48px;
    line-height: 1.2;
    color: var(--text-heading);
    margin: 0 0 32px;
}

.redesign .article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.redesign .article__byline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redesign .article__author {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-heading);
    margin: 0;
}

.redesign .article__date {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-heading);
    margin: 0;
}

.redesign .article__share {
    display: flex;
    gap: 8px;
}

.redesign .article__share a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 64px;
    background: var(--neutral-white);
    color: var(--text-heading);
    border: 0;                   /* Figma: no border on header variant */
    padding: 4px;
    transition: background-color var(--hover-dur) var(--hover-ease);
}

.redesign .article__share a:hover {
    background: var(--brand-offwhite-peach);
    color: var(--brand-sea-green);
}

.redesign .article__share svg {
    width: 24px;                 /* Figma spec — 24 px icon */
    height: 24px;
}

/* Peach variant — used on the bottom "Share this post" bar. */
.redesign .article__share--peach a {
    background: var(--brand-offwhite-peach);
}

.redesign .article__share--peach a:hover {
    background: var(--brand-peach);
}

.redesign .article__hero {
    max-width: 864px;
    margin: 0 auto 64px;
    padding-inline: 32px;
}

.redesign .article__hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bottom share bar — dividers above and below, 32 px vertical gap
 * between elements, "Share this post" label on left + 4 peach
 * share buttons on right. Below the second divider: author name
 * centered + copyright notice in paragraph color. */
.redesign .article__share-bar {
    max-width: 864px;
    margin: 64px auto 0;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.redesign .article__share-bar hr {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    border: 0;
    margin: 0;
}

.redesign .article__share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.redesign .article__share-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-heading);
    margin: 0;
    white-space: nowrap;
}

.redesign .article__byline-bottom {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-heading);
    margin: 0;
    text-align: center;
}

.redesign .article__copy {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-paragraph);
    text-align: center;
    margin: 0 auto;
    max-width: 864px;
    line-height: 1.5;
}

.redesign .article__copy a {
    color: var(--text-paragraph);
    text-decoration: underline;
}

/* Retained for the optional author bio block */
.redesign .article__footer {
    max-width: 864px;
    margin: 48px auto 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redesign .article__footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.redesign .article__footer-heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-heading);
    margin: 0;
}

/* ── Prose — styles the rich HTML body from the DB ───────────────── */
.redesign .prose {
    max-width: 864px;
    margin: 0 auto;
    padding-inline: 32px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-paragraph);
}

.redesign .prose > *:first-child { margin-top: 0; }
.redesign .prose > *:last-child  { margin-bottom: 0; }

/* Paragraph-ish blocks get a consistent 15 px bottom gap.
 * Specificity (0,1,1) to match typical legacy prose overrides. */
.redesign .prose div,
.redesign .prose p {
    margin-bottom: 15px;
}

.redesign .prose h2,
.redesign .prose h3,
.redesign .prose h4 {
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--text-heading);
    margin: 48px 0 24px;
}

/* Figma article headings: H2=40/1.2, H3=32/1.3, H4=24/1.4, H6=20/1.4.
 * Section-level "Introduction" / "Conclusion" are rendered as H2 in
 * Figma (40 px) — prose authors usually use H2 for top-level, so that
 * maps naturally. */
.redesign .prose h2 { font-size: 40px; line-height: 1.2; }
.redesign .prose h3 { font-size: 32px; line-height: 1.3; }
.redesign .prose h4 { font-size: 24px; line-height: 1.4; }
.redesign .prose h5 { font-size: 20px; line-height: 1.4; }
.redesign .prose h6 { font-size: 20px; line-height: 1.4; }

.redesign .prose a {
    color: var(--brand-sea-green);
    text-decoration: underline;
}

.redesign .prose a:hover { color: var(--brand-sea-green-darker); }

/* Pullquote — Figma: 2 px left border + 20 px right pad, 18 px Manrope
 * Regular in heading color (brown), no italic. */
.redesign .prose blockquote {
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    margin: 32px 0;
    padding: 0 20px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-heading);
    font-style: normal;
    font-weight: 400;
}

.redesign .prose ul,
.redesign .prose ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.redesign .prose li {
    margin-bottom: 12px;
}

.redesign .prose img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    display: block;
}

.redesign .prose strong { font-weight: 600; color: var(--text-heading); }
.redesign .prose em     { font-style: italic; }

/* Sub-item list inside an editorial article (currently used by the
 * "Top Resources" page to nest A / B / C under #4 — Checklists). The
 * wrapper is added in the DB body via the
 * `2026_04_26_213529_normalize_top_resources_article_html` migration.
 * We indent the children with a left margin so they read as nested
 * without changing their heading levels (still <h3> for parity with
 * the rest of the article). The peach left rule reinforces the
 * grouping visually. */
.redesign .prose .resource-sub-list {
    margin: 0 0 24px 32px;
    padding-left: 24px;
    border-left: 2px solid var(--brand-border-peach);
}

.redesign .prose .resource-sub-list > h3:first-child {
    margin-top: 0;
}

@media (max-width: 720px) {
    .redesign .prose .resource-sub-list {
        margin-left: 16px;
        padding-left: 16px;
    }
}

.redesign .prose hr {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 48px 0;
}

@media (max-width: 768px) {
    .redesign .article { padding: 48px 0 80px; }
    .redesign .article__title { font-size: 32px; }
    .redesign .article__container,
    .redesign .article__hero,
    .redesign .prose,
    .redesign .article__footer {
        padding-inline: 20px;
    }
    .redesign .prose h2 { font-size: 28px; }
    .redesign .prose h3 { font-size: 24px; }
    .redesign .prose h4 { font-size: 20px; }
}
