/*
 * Print Stylesheet — Saada Theme
 * Hides non-essential UI, ensures readable black-on-white output.
 *
 * @package Saada
 */

/* ── Hide navigation, footer, interactive elements ── */
.sfd-header-root,
.sfd-top-stripe,
.sfn-nav,
.sfn-spacer,
.sfn-mobile,
.sfd-footer,
.sfb-pagination,
.sfd-arc-pagination,
.sfd-src-pagination,
.sfd-wa-banner,
.sfbs-share,
.sfbs-related,
.sfbs-comments,
.sfd-404-search-form,
.sfd-404-actions,
.sfd-search-form-wrap,
.sfd-src-empty-form,
.comment-respond {
  display: none !important;
}

/* ── Base page setup ── */
@page {
  margin: 2cm;
}

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

/* ── Links: show URL after anchor text ── */
a[href]::after {
  content: ' (' attr(href) ')';
  font-size: .75em;
  color: #555;
  word-break: break-all;
}
a[href^="#"]::after,
a[href^="javascript:"]::after {
  content: '';
}

/* ── Images: constrain and preserve ── */
img {
  max-width: 100% !important;
  height: auto !important;
  page-break-inside: avoid;
}

/* ── Headings: avoid breaking after ── */
h1, h2, h3, h4, h5, h6 {
  page-break-after: avoid;
  color: #000 !important;
  font-family: Georgia, serif !important;
}

/* ── Post/page content ── */
.sfd-post-content,
.sfd-page-content {
  font-size: 11pt !important;
  line-height: 1.7 !important;
  color: #000 !important;
}

/* ── Single post hero: keep title, suppress decorative elements ── */
.sfbs-hero {
  background: #fff !important;
  padding: 0 0 16pt !important;
  border-bottom: 1pt solid #000;
  margin-bottom: 16pt;
}
.sfbs-hero-arc,
.sfbs-hero-stripe,
.sfbs-hero-badge { display: none !important; }
.sfbs-hero-title {
  color: #000 !important;
  font-size: 20pt !important;
  font-family: Georgia, serif !important;
}
.sfbs-meta { color: #555 !important; }

/* ── Blog / archive cards: linearise ── */
.sfb-grid,
.sfd-archive-grid,
.sfd-search-grid {
  display: block !important;
}
.sfb-card,
.sfd-arc-card,
.sfd-src-card {
  page-break-inside: avoid;
  margin-bottom: 16pt;
  border: 1pt solid #ccc !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ── Colours: strip backgrounds ── */
.sfb-section,
.sfbs-content-section,
.sfd-page-section,
.sfd-search-section {
  background: #fff !important;
}

/* ── Tables ── */
table { border-collapse: collapse; width: 100%; }
th, td { border: 1pt solid #999; padding: 4pt 8pt; }
th { background: #eee !important; }

/* ── RTL support: preserve Arabic direction in print ── */
[dir="rtl"],
.sfd-post-content[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
