/*
 * Herald Print Stylesheet
 * Applied only when a user prints an article page (media="print").
 * Goal: clean, readable, ink-efficient output — no ads, no UI chrome.
 */

/* ── Reset & page setup ─────────────────────────────────────────── */
@page {
    margin: 1.8cm 1.5cm;
    size: letter portrait;
}

*,
*::before,
*::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000 !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ── Hide everything that should not print ──────────────────────── */

/* Site header & footer */
header.bg-black,
.footer-main,
.footer-bottom,
.navbar,
.mobile-menu-collapse,
.navbar-toggler,
#mobileMenu {
    display: none !important;
}

/* Ads — all flavours */
.herald-ad,
.herald-ad--leaderboard,
.herald-ad--rail,
.herald-ad--site-masthead,
[id^="div-gpt-ad-"],
[class*="advertisement"],
[aria-label="Advertisement"] {
    display: none !important;
}

/* Social share bars (desktop fixed sidebar + mobile bar) */
.share-fixed,
.share-mobile,
.share-button-container,
#shareArticleButton,
.share-btn {
    display: none !important;
}

/* Audio widgets — Everlit */
#everlit-auto-audio-widget,
#everlit-audio-embed-container,
[id*="everlit"],
[class*="everlit"] {
    display: none !important;
}

/* Comments & Disqus */
.article-comments,
#disqus_thread,
#disqus_recommendations,
.disqus-request-user-inform-block {
    display: none !important;
}

/* Paywall elements */
.paywall-login-button,
[id="paywall-header-link"],
.btn-subscribe,
.btn-login {
    display: none !important;
}

/* Related tags — all tag pill/label patterns */
.btn-light.rounded-pill,
.article-tags,
.tag-list,
[class*="tag-pill"],
[class*="article-tag"],
.related-tags,
.post-tags {
    display: none !important;
}

/* Related articles section at bottom of article */
section.bg-light,
.related-articles,
.more-articles {
    display: none !important;
}

/* Wonderchat widget */
#wonderchat-seo-wrapper,
[id*="wonderchat"],
[class*="wonderchat"] {
    display: none !important;
}

/* Banner image above header */
.w-100[alt="Banner"] {
    display: none !important;
}

/* Search bar */
#herald-search-bar,
.herald-search-toggle {
    display: none !important;
}

/* Breaking news tickers, sticky bars */
.breaking-bar,
.ticker-wrap,
.sticky-top {
    display: none !important;
}

/* Forms injected from Naviga */
.herald-form-card {
    display: none !important;
}

/* ── Layout — strip Bootstrap grid for print ────────────────────── */
.container,
.container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.row {
    display: block !important;
}

.col,
[class^="col-"],
[class*=" col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
}

/* Article body — full width, no sidebar gutter */
article.container {
    padding: 0 !important;
    max-width: 100% !important;
}

.article-body,
.article-body-container,
.article-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11pt !important;
    line-height: 1.65 !important;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 22pt !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #000 !important;
    margin-bottom: 0.4em !important;
    page-break-after: avoid;
}

h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #000 !important;
    page-break-after: avoid;
}

/* Subtitle / dek */
.text-secondary.fs-5.serif-font {
    font-size: 13pt !important;
    color: #333 !important;
    font-style: italic;
    margin-bottom: 1em !important;
}

/* Byline / dateline block */
.border-top.border-bottom.border-secondary-subtle {
    border-color: #ccc !important;
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
    margin-bottom: 1em !important;
}

.border-top.border-bottom .fw-semibold {
    font-size: 10pt !important;
}

.border-top.border-bottom .small {
    font-size: 9pt !important;
    color: #555 !important;
}

/* Author photo — keep small and inline */
.rounded-circle[style*="width:48px"] {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
}

/* Article body text */
.article-content p {
    orphans: 3;
    widows: 3;
    margin-bottom: 0.85em !important;
}

/* Pull quotes / blockquotes */
blockquote,
.article-content blockquote {
    border-left: 3px solid #333;
    margin: 1em 0 1em 1.5em;
    padding-left: 1em;
    font-style: italic;
    color: #222;
}

/* All images — always proportionate, never fixed height */
img,
.article-content img,
figure img,
.card-img-fixed,
.wp-post-image,
img.attachment-full,
img.size-full {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;         /* overrides any fixed height set by card-img-fixed */
    min-height: 0 !important;        /* overrides any min-height */
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    page-break-inside: avoid;
}

/* Featured image — cap at a sensible print height */
.article-featured-image img,
.article-featured-image .card-img-fixed {
    max-height: 4in !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 0.5em !important;
}

figure {
    page-break-inside: avoid;
    margin: 1em 0 !important;
}

figcaption,
.article-content figcaption {
    font-size: 8.5pt !important;
    color: #555 !important;
    font-style: italic;
    margin-top: 0.3em;
}

/* Category label above headline */
a[style*="color:#DC2626"] {
    color: #000 !important;
    font-size: 9pt !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Links ──────────────────────────────────────────────────────── */
a {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Print the URL after links in article body so readers can follow them */
.article-content a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
    word-break: break-all;
}

/* But not for anchor-only or javascript: links */
.article-content a[href^="#"]::after,
.article-content a[href^="javascript:"]::after {
    content: "" !important;
}

/* ── Print masthead — show publication name at top ──────────────── */
body::before {
    content: "Durango Herald — durangoherald.com";
    display: block;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 10pt;
    font-weight: bold;
    color: #000;
    border-bottom: 1pt solid #000;
    padding-bottom: 6pt;
    margin-bottom: 16pt;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Page breaks ────────────────────────────────────────────────── */
h1, h2, h3 {
    page-break-after: avoid;
}

p, li, blockquote {
    page-break-inside: avoid;
}

img, figure, table {
    page-break-inside: avoid;
}
