/* ============================================================
   FedSmith — Single article (Phase 2a)
   Loaded only on is_singular('post'). Tokens come from theme.css.

   Scope (Phase 2a only):
     - article header: cat eyebrow, H1, excerpt, byline meta line
     - featured image (with optional placeholder/fallback)
     - article body typography (h2/h3/h4, p, a, blockquote, ul/ol, table, img)
     - article-footer-meta: tags row, See Also, copyright line
     - About the Author card

   Out of scope (added later):
     - Comments, share popover, more-in-category, print styles → Phase 2b
     - Inline Ezoic insertion → Phase 2c
   ============================================================ */

.article {
    padding: 24px 0 8px;
}

.article__cat {
    display: inline-block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin-bottom: 10px;
}
.article__cat a {
    color: inherit;
    text-decoration: none;
}
.article__cat a:hover {
    text-decoration: underline;
}
:root[data-theme="dark"] .article__cat {
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article__cat {
        color: var(--link);
    }
}

.article__title {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 2.625rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-heading);
    margin: 0 0 14px;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article__excerpt {
    font-family: "DM Sans", sans-serif;
    font-size: 1.1875rem;
    font-style: italic;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text-body);
    margin: 0 0 18px;
    max-width: 64ch;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

/* ============================================================
   Byline strip (top + bottom rule). Phase 2b will populate
   .article__actions on the right; for now only the byline shows.
   ============================================================ */
.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    min-width: 0;
}

.article__byline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.article__byline-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-deep-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    flex: 0 0 auto;
    overflow: hidden;
}
.article__byline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:root[data-theme="dark"] .article__byline-avatar {
    background: #5a6be8;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article__byline-avatar {
        background: #5a6be8;
    }
}
.article__byline-text {
    line-height: 1.4;
}
.article__byline-text strong {
    display: block;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.9375rem;
}
.article__byline-text strong a {
    color: inherit;
    text-decoration: none;
}
.article__byline-text strong a:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}
:root[data-theme="dark"] .article__byline-text strong a:hover {
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article__byline-text strong a:hover {
        color: var(--link);
    }
}
.article__byline-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.article__byline-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
}

/* ============================================================
   Featured image
   ============================================================ */
.article__featured {
    margin: 22px 0 6px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-light-navy);
    aspect-ratio: 16 / 9;
}
.article__featured img,
.article__featured svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article__caption {
    font-family: "DM Sans", sans-serif;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 8px 0 0;
    text-align: center;
}

/* ============================================================
   Article body — the the_content() output
   ============================================================ */
.article-body {
    font-family: "DM Sans", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text-body);
    max-width: 760px;
    margin: 24px 0 0;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.article-body > * + * {
    margin-top: 1.1em;
}
.article-body p {
    margin: 20px auto;
}

.article-body a {
    color: var(--brand-navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.article-body a:hover {
    color: var(--brand-deep-navy);
    text-decoration-thickness: 2px;
}
:root[data-theme="dark"] .article-body a {
    color: var(--link);
}
:root[data-theme="dark"] .article-body a:hover {
    color: var(--link-hover);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-body a {
        color: var(--link);
    }
    :root:not([data-theme]) .article-body a:hover {
        color: var(--link-hover);
    }
}

.article-body strong {
    color: var(--text-heading);
    font-weight: 700;
}
.article-body em {
    font-style: italic;
}

.article-body h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--text-heading);
    line-height: 1.2;
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    text-wrap: balance;
}
.article-body h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.4375rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}
.article-body h4 {
    font-family: "Outfit", sans-serif;
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.3em;
}

.article-body blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--brand-red);
    font-family: "Outfit", sans-serif;
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-heading);
    text-wrap: balance;
}
.article-body blockquote p {
    margin: 0;
}

.article-body ul,
.article-body ol {
    margin: auto 15px;
    padding-left: 1.4em;
}
.article-body ul li,
.article-body ol li {
    line-height: 1.45;
}
.article-body ul li::marker {
    color: var(--brand-navy);
}
.article-body ol li::marker {
    color: var(--brand-navy);
    font-weight: 700;
}
:root[data-theme="dark"] .article-body ul li::marker,
:root[data-theme="dark"] .article-body ol li::marker {
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-body ul li::marker,
    :root:not([data-theme]) .article-body ol li::marker {
        color: var(--link);
    }
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9375rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.article-body table th,
.article-body table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.article-body table thead th {
    background: var(--bg-sand);
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-heading);
    border-bottom: 2px solid var(--line);
}
:root[data-theme="dark"] .article-body table thead th {
    background: #181820;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-body table thead th {
        background: #181820;
    }
}
.article-body table tbody tr:nth-child(even) {
    background: var(--bg-alt-row);
}
.article-body table tbody tr:last-child td {
    border-bottom: 0;
}

.article-body img {
    border-radius: var(--r);
    margin: 1.4em auto;
}

/* Inline ad inside article body — Phase 2c will inject these via the_content. */
.article-body .ad-slot {
    margin: 28px 0;
}

/* ============================================================
   Article footer meta: tags + See Also + copyright
   ============================================================ */
.article-footer-meta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* Tags row */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.article-tags__label {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    flex: 0 0 auto;
}
.article-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.article-tag {
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-heading);
    background: var(--bg-sand);
    border: 1px solid var(--bg-sand-dark);
    border-radius: 999px;
    padding: 4px 14px;
    text-decoration: none;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}
.article-tag:hover {
    background: var(--bg-light-navy);
    border-color: var(--brand-navy);
    color: var(--brand-navy);
    text-decoration: none;
}
:root[data-theme="dark"] .article-tag {
    background: #1e1e1e;
    border-color: #333;
    color: var(--text-heading);
}
:root[data-theme="dark"] .article-tag:hover {
    background: var(--bg-dark-hover);
    border-color: var(--link);
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-tag {
        background: #1e1e1e;
        border-color: #333;
        color: var(--text-heading);
    }
    :root:not([data-theme]) .article-tag:hover {
        background: var(--bg-dark-hover);
        border-color: var(--link);
        color: var(--link);
    }
}

/* See Also block */
.see-also {
    margin-bottom: 28px;
    padding: 0 0 0 16px;
    border-left: 3px solid var(--brand-navy);
}
.see-also__heading {
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-heading);
    margin: 0 0 14px;
}
.see-also__list {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 1.2em;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.see-also__list li {
    line-height: 1.45;
}
.see-also__list li::marker {
    color: var(--brand-navy);
}
.see-also__list a {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brand-navy);
    text-decoration: none;
    transition: color 0.15s;
}
.see-also__list a:hover {
    color: var(--brand-deep-navy);
    text-decoration: underline;
}
:root[data-theme="dark"] .see-also__list a {
    color: var(--link);
}
:root[data-theme="dark"] .see-also__list a:hover {
    color: var(--link-hover);
}
:root[data-theme="dark"] .see-also__list li::marker {
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .see-also__list a {
        color: var(--link);
    }
    :root:not([data-theme]) .see-also__list a:hover {
        color: var(--link-hover);
    }
    :root:not([data-theme]) .see-also__list li::marker {
        color: var(--link);
    }
}

/* Copyright line */
.article-copyright {
    font-family: "DM Sans", sans-serif;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* ============================================================
   About the Author card
   ============================================================ */
.article-author-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    margin: 36px 0 0;
    background: var(--bg-sand);
    border-radius: var(--r-md);
    border: 1px solid var(--line-soft);
}
:root[data-theme="dark"] .article-author-card {
    background: #181820;
    border-color: var(--line);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-author-card {
        background: #181820;
        border-color: var(--line);
    }
}
.article-author-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-deep-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    overflow: hidden;
}
:root[data-theme="dark"] .article-author-card__avatar {
    background: #5a6be8;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-author-card__avatar {
        background: #5a6be8;
    }
}
.article-author-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-author-card__eyebrow {
    font-family: "DM Sans", sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}
.article-author-card h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 8px auto;
}
.article-author-card h3 a {
    color: inherit;
    text-decoration: none;
}
.article-author-card h3 a:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}
:root[data-theme="dark"] .article-author-card h3 a:hover {
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-author-card h3 a:hover {
        color: var(--link);
    }
}
.article-author-card p {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-body);
}
.article-author-card__more {
    display: inline-block;
    margin-top: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.article-author-card__more:hover {
    text-decoration: underline;
}
:root[data-theme="dark"] .article-author-card__more {
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-author-card__more {
        color: var(--link);
    }
}
.article-author-card .author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.article-author-card .author-socials a,
.article-author-card .author-socials button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--r);
    color: #fff;
    background: var(--brand-navy);
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.article-author-card .author-socials a:hover,
.article-author-card .author-socials button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}
.article-author-card .author-socials svg { width: 18px; height: 18px; fill: currentColor; }
.article-author-card .author-socials .social--email { background: var(--brand-red); }
.article-author-card .author-socials .social--web { background: var(--social-web); }
.article-author-card .author-socials .social--x { background: var(--social-x); }
.article-author-card .author-socials .social--facebook { background: var(--social-facebook); }
.article-author-card .author-socials .social--linkedin { background: var(--social-linkedin); }
:root[data-theme="dark"] .article-author-card .author-socials .social--x { background: #1E1E1E; border: 1px solid #333; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article-author-card .author-socials .social--x { background: #1E1E1E; border: 1px solid #333; }
}

/* ============================================================
   Article actions (Phase 2b): comments link, share popover, print
   Lives inside .article__meta to the right of the byline.
   ============================================================ */
.article__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.article__action {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--text-heading);
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
    text-decoration: none;
}
.article__action:hover {
    background: var(--bg-light-navy);
    border-color: var(--brand-navy);
    color: var(--brand-navy);
    text-decoration: none;
}
:root[data-theme="dark"] .article__action:hover {
    background: var(--bg-dark-hover);
    border-color: var(--link);
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .article__action:hover {
        background: var(--bg-dark-hover);
        border-color: var(--link);
        color: var(--link);
    }
}
.article__action svg {
    width: 18px;
    height: 18px;
}
.article__action .comment-count {
    margin-left: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-heading);
}
.article__action--comments {
    width: auto;
    padding: 0 12px;
    gap: 6px;
}
.article__action--comments .comment-count {
    margin-left: 0;
}

.article__action-share {
    position: relative;
}

.share-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    padding: 8px;
    min-width: 220px;
    display: none;
    z-index: 40;
}
.share-popover[data-open="true"] {
    display: block;
}
.share-popover__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.share-popover__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: transparent;
    border: 0;
    border-radius: var(--r);
    color: var(--text-heading);
    font-family: "DM Sans", sans-serif;
    font-size: 0.6875rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s;
}
.share-popover__btn:hover {
    background: var(--bg-light-navy);
    color: var(--brand-navy);
    text-decoration: none;
}
:root[data-theme="dark"] .share-popover__btn:hover {
    background: var(--bg-dark-hover);
    color: var(--link);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .share-popover__btn:hover {
        background: var(--bg-dark-hover);
        color: var(--link);
    }
}
.share-popover__btn svg {
    width: 22px;
    height: 22px;
}
.share-popover__btn--facebook svg {
    color: #1877f2;
}
.share-popover__btn--x svg {
    color: var(--text-heading);
}
.share-popover__btn--linkedin svg {
    color: #0a66c2;
}
.share-popover__btn--reddit svg {
    color: #ff4500;
}
.share-popover__btn--email svg {
    color: var(--brand-red);
}
.share-popover__btn--whatsapp svg {
    color: #25d366;
}
.share-popover__btn--copy svg {
    color: var(--text-muted);
}
.share-popover__btn--print svg {
    color: var(--text-muted);
}

/* ============================================================
   Comments section (Disqus embed wrapper, Phase 2b)
   The thread itself is rendered inside an iframe Disqus owns; theme CSS
   cannot reach into it. We only style the surrounding section heading
   so the embed sits under a heading consistent with the rest of the page.
   ============================================================ */
.comments-section {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.comments-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brand-navy);
    position: relative;
}
.comments-section__head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 64px;
    height: 3px;
    background: var(--brand-red);
}
.comments-section__head h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

#disqus_thread {
    min-height: 200px; /* Reserve vertical space so the layout doesn't jump when the iframe injects. */
}
.comments-section__noscript {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .article__title {
        font-size: 2.25rem;
    }
}

@media (max-width: 720px) {
    .article__title {
        font-size: 1.75rem;
        line-height: 1.15;
    }
    .article__excerpt {
        font-size: 1.0625rem;
    }
    .article-body {
        font-size: 1rem;
    }
    .article-body h2 {
        font-size: 1.5rem;
    }
    .article-body h3 {
        font-size: 1.25rem;
    }
    .article-body h4 {
        font-size: 1.0625rem;
    }
    .article-body blockquote {
        font-size: 1.125rem;
        padding-left: 16px;
    }
    .article-author-card {
        grid-template-columns: 64px 1fr;
        gap: 14px;
        padding: 16px;
    }
    .article-author-card__avatar {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
    }
    .article__meta {
        gap: 10px;
    }
    .article__byline {
        flex: 1 1 100%;
    }
    .article__actions {
        flex: 0 0 auto;
    }
    /* Long tables scroll horizontally rather than break the layout. */
    .article-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================================
   Print stylesheet (Phase 2b)
   Hide chrome, force light tokens, expand link URLs inline,
   protect tables/blockquotes/figures from page breaks, and
   append a centered source footer below the article.
   ============================================================ */
@media print {
    /* Force light treatment regardless of dark-mode toggle. */
    :root,
    :root[data-theme="dark"] {
        --bg-page: #ffffff;
        --bg-card: #ffffff;
        --bg-sand: #ffffff;
        --bg-sand-dark: #cccccc;
        --bg-federal-blue: #ffffff;
        --bg-light-navy: #ffffff;
        --bg-alt-row: #f5f5f5;
        --text-body: #000000;
        --text-muted: #444444;
        --text-heading: #000000;
        --line: #cccccc;
        --line-soft: #dddddd;
        --link: #0606ab;
        --link-hover: #0606ab;
    }

    @page {
        margin: 0.75in;
        size: letter;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        line-height: 1.45;
    }

    /* Hide all chrome (nav, sidebar, footer, ads, share, drawers, comments, Ezoic). */
    .announcement,
    .nav,
    .search-overlay,
    .drawer,
    .drawer-backdrop,
    .sidebar,
    .footer,
    .footer-bottom,
    .article__actions,
    .share-popover,
    .comments-section,
    .ad-slot,
    [data-fedsmith-ad],
    [id^="ezoic-pub-ad-placeholder"],
    [data-ezoic-role="privacy-policy"],
    ez-cookie-consent,
    #ez-cookie-dialog,
    .modal-backdrop {
        display: none !important;
    }

    /* Video embeds can't print — hide the iframe and show a short note instead. */
    .wp-block-embed.is-type-video .wp-block-embed__wrapper,
    .wp-block-embed-youtube .wp-block-embed__wrapper,
    .wp-block-embed-vimeo .wp-block-embed__wrapper,
    .wp-block-video video {
        display: none !important;
    }
    .wp-block-embed.is-type-video::after,
    .wp-block-embed-youtube::after,
    .wp-block-embed-vimeo::after,
    .wp-block-video::after {
        content: "[ Video \2014  view the full article online at FedSmith.com to watch ]";
        display: block;
        font-style: italic;
        font-size: 9.5pt;
        color: #555;
        text-align: center;
        padding: 6pt 0;
        border: 1px dashed #bbb;
    }

    /* Reset page offset (remove fixed-nav padding compensation). */
    .page {
        padding-top: 0 !important;
    }
    main.page {
        padding: 0 !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Single column. */
    .layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .main-col {
        width: 100% !important;
    }

    .article {
        padding: 0 !important;
    }

    .article__cat {
        color: #000 !important;
        font-size: 9pt;
        margin-bottom: 6pt;
    }
    .article__title {
        font-size: 22pt;
        line-height: 1.15;
        color: #000 !important;
        margin: 0 0 8pt;
    }
    .article__excerpt {
        font-size: 12pt;
        color: #222 !important;
        margin: 0 0 10pt;
    }
    .article__meta {
        border-top: 1px solid #999 !important;
        border-bottom: 1px solid #999 !important;
        color: #333 !important;
        padding: 6pt 0 !important;
        font-size: 9.5pt;
        page-break-after: avoid;
    }
    .article__byline-avatar {
        display: none !important;
    }
    .article__byline-text strong {
        color: #000 !important;
    }

    /* Featured image — keep but contain. */
    .article__featured {
        max-height: 3in;
        aspect-ratio: 16 / 9;
        margin: 12pt 0 6pt;
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
    .article__caption {
        color: #555 !important;
        font-size: 8.5pt;
    }

    /* Body. */
    .article-body {
        font-size: 11pt;
        line-height: 1.5;
        color: #000 !important;
        max-width: 100% !important;
        margin: 14pt 0 0 !important;
    }
    .article-body h2 {
        font-size: 15pt;
        color: #000 !important;
        page-break-after: avoid;
        margin-top: 18pt;
    }
    .article-body h3 {
        font-size: 13pt;
        color: #000 !important;
        page-break-after: avoid;
        margin-top: 14pt;
    }
    .article-body h4 {
        font-size: 11.5pt;
        color: #000 !important;
        page-break-after: avoid;
        margin-top: 12pt;
    }

    /* Links: dark text + URL appended in parens for absolute http(s) targets. */
    .article-body a {
        color: #000 !important;
        text-decoration: underline;
        word-wrap: break-word;
    }
    .article-body a[href^="http"]::after,
    .article-body a[href^="https"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
        word-break: break-all;
    }
    /* No URL appended for in-page anchors or mailto links. */
    .article-body a[href^="#"]::after,
    .article-body a[href^="mailto:"]::after {
        content: "";
    }

    .article-body blockquote {
        border-left: 3px solid #666 !important;
        color: #000 !important;
        font-size: 12pt;
        page-break-inside: avoid;
        margin: 12pt 0;
        padding-left: 12pt;
    }
    .article-body strong {
        color: #000 !important;
    }
    .article-body img,
    .article-body figure,
    .article-body table,
    .article__featured {
        page-break-inside: avoid;
    }
    .article-body table {
        background: #fff !important;
        border: 1px solid #999 !important;
        font-size: 10pt;
    }
    .article-body table thead th {
        background: #eee !important;
        color: #000 !important;
        border-bottom: 1.5px solid #555 !important;
    }
    .article-body table tbody tr:nth-child(even) {
        background: #f7f7f7 !important;
    }
    .article-body table th,
    .article-body table td {
        border-bottom: 1px solid #ddd !important;
        padding: 6pt 8pt;
    }
    .article-body ul li::marker,
    .article-body ol li::marker {
        color: #000 !important;
    }

    /* Footer-meta block (tags / see-also / copyright) tuned for print. */
    .article-footer-meta {
        border-top: 1px solid #999 !important;
        margin-top: 18pt;
        padding-top: 12pt;
    }
    .article-tag {
        background: #f0f0f0 !important;
        border-color: #999 !important;
        color: #000 !important;
        font-size: 9pt;
    }
    .see-also {
        border-left-color: #555 !important;
    }
    .see-also__heading {
        color: #000 !important;
    }
    .see-also__list a {
        color: #000 !important;
        text-decoration: underline;
    }
    .article-copyright {
        color: #555 !important;
        border-top-color: #999 !important;
        font-size: 8.5pt;
    }

    /* Author card. */
    .article-author-card {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-top: 18pt;
    }
    .article-author-card__avatar {
        background: #444 !important;
        color: #fff !important;
    }

    /* Source footer printed below the article (centered). The URL pulls
     from data-print-source so it stays accurate per post. Falls back to
     a static FedSmith credit if the attribute is missing. */
    .article::after {
        content: "Source: " attr(data-print-source) "  ·  Printed from FedSmith.com";
        display: block;
        margin-top: 18pt;
        padding-top: 8pt;
        border-top: 1px solid #999;
        font-family: "DM Sans", sans-serif;
        font-size: 8.5pt;
        color: #666;
        text-align: center;
    }
}
