/**
 * UP6 Print Stylesheet
 *
 * Strips all chrome and renders the article body cleanly for print.
 * Loaded with media="print" — zero impact on screen rendering.
 *
 * @package UP6
 * @since   2.5.59
 */

/* =============================================================
   PAGE SETUP
   ============================================================= */

@page {
  margin: 2cm 2.5cm 2.8cm; /* extra bottom margin for the fixed footer */
}

/* "Dicetak dari UP6 Suara Semasa" — fixed footer on every printed page */
body::after {
  content: "Dicetak dari UP6 Suara Semasa  ·  up6.org";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: Georgia, serif;
  font-size: 7.5pt;
  color: #888 !important;
  border-top: 0.5pt solid #ddd;
  padding-top: 5pt;
  text-align: center;
  letter-spacing: 0.08em;
}

/* =============================================================
   GLOBAL RESET
   ============================================================= */

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

body {
  color: #111 !important;
  font-family: Georgia, 'Source Serif 4', serif;
  font-size: 11pt;
  line-height: 1.6;
}

/* =============================================================
   STRIP CHROME
   Anything that is not article content is hidden.
   ============================================================= */

.site-header,
.header-brand-row,
.header-nav-row,
.mobile-nav-overlay,
#secondary,
.site-footer,
.footer-bar,
.related-news,
.comments-area,
.entry-reading-time,
.breadcrumb,
.entry-tags a:hover,
.view-all,
.back-to-top {
  display: none !important;
}

/* =============================================================
   LAYOUT — single column, full width
   ============================================================= */

.site-content-inner {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.content-area-wrap {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.site-main {
  width: 100% !important;
  max-width: 100% !important;
}

/* =============================================================
   MASTHEAD LINE
   Site name + URL printed above the article as attribution.
   ============================================================= */

.site-main::before {
  content: "UP6 Suara Semasa  ·  up6.org";
  display: block;
  font-family: Georgia, serif;
  font-size: 8pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #444 !important;
  border-bottom: 2pt solid #C0392B;
  padding-bottom: 6pt;
  margin-bottom: 18pt;
}

/* =============================================================
   BREADCRUMB — stripped to plain text
   ============================================================= */

.breadcrumb {
  display: flex !important;
  font-size: 7.5pt;
  color: #666 !important;
  margin-bottom: 10pt;
  gap: 0.3em;
}

.breadcrumb a {
  color: #444 !important;
  text-decoration: none !important;
}

.breadcrumb-sep {
  color: #C0392B !important;
}

/* =============================================================
   ARTICLE HEADER
   ============================================================= */

.entry-header {
  margin-bottom: 14pt;
}

.entry-badges {
  margin-bottom: 6pt;
}

.entry-category-badge {
  font-family: Georgia, serif;
  font-size: 7.5pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #C0392B !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.entry-title {
  font-family: Georgia, 'Source Serif 4', serif;
  font-size: 22pt;
  font-weight: bold;
  line-height: 1.15;
  color: #111 !important;
  margin: 0 0 10pt;
  page-break-after: avoid;
}

.entry-excerpt {
  font-family: Georgia, serif;
  font-size: 11.5pt;
  line-height: 1.65;
  color: #333 !important;
  border-left: 3pt solid #C0392B !important;
  padding-left: 10pt;
  margin-bottom: 10pt;
  font-style: italic;
  page-break-inside: avoid;
}

/* =============================================================
   BYLINE
   ============================================================= */

.entry-meta-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 6pt 0;
  border-top: 0.5pt solid #ccc !important;
  border-bottom: 0.5pt solid #ccc !important;
  margin-bottom: 14pt;
  page-break-inside: avoid;
}

.entry-author-avatar {
  display: none !important;
}

.entry-author-info {
  gap: 0 !important;
}

.entry-author-name {
  font-family: Georgia, serif;
  font-size: 8.5pt;
  font-weight: bold;
  color: #222 !important;
  display: inline !important;
}

.entry-author-name::after {
  content: "  ·  ";
  color: #999;
  font-weight: normal;
}

.entry-date {
  font-family: Georgia, serif;
  font-size: 8.5pt;
  color: #555 !important;
  display: inline !important;
}

.entry-reading-time {
  display: none !important;
}

/* =============================================================
   FEATURED IMAGE
   ============================================================= */

.entry-thumbnail {
  margin-bottom: 14pt;
  border-radius: 0 !important;
  overflow: visible !important;
  page-break-inside: avoid;
}

.entry-thumbnail img {
  width: 100% !important;
  max-height: 280pt !important;
  object-fit: cover;
  display: block;
}

/* =============================================================
   BODY CONTENT
   ============================================================= */

.entry-content {
  font-family: Georgia, 'Source Serif 4', serif;
  font-size: 11pt;
  line-height: 1.7;
  color: #111 !important;
}

.entry-content p {
  margin-bottom: 9pt;
  orphans: 3;
  widows: 3;
}

.entry-content h2 {
  font-family: Georgia, serif;
  font-size: 14pt;
  font-weight: bold;
  color: #111 !important;
  margin: 16pt 0 6pt;
  page-break-after: avoid;
}

.entry-content h3 {
  font-family: Georgia, serif;
  font-size: 12pt;
  font-weight: bold;
  color: #111 !important;
  margin: 12pt 0 5pt;
  page-break-after: avoid;
}

.entry-content blockquote {
  border-left: 3pt solid #C0392B !important;
  padding: 6pt 10pt;
  margin: 12pt 0;
  background: transparent !important;
  font-style: italic;
  color: #333 !important;
  page-break-inside: avoid;
}

.entry-content img {
  max-width: 100%;
  border-radius: 0 !important;
  page-break-inside: avoid;
}

/* Suppress inline URL expansion in body links */
.entry-content a::after {
  content: none !important;
}

.entry-content a {
  color: #111 !important;
  text-decoration: underline;
}

/* =============================================================
   TOPIC TAGS
   ============================================================= */

.entry-tags {
  border-top: 0.5pt solid #ccc !important;
  padding-top: 8pt;
  margin-top: 10pt;
  gap: 4pt;
}

.entry-tags-label {
  font-size: 7pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #555 !important;
}

.entry-tags a {
  font-size: 7pt;
  color: #444 !important;
  border: 0.5pt solid #bbb !important;
  padding: 1pt 5pt;
  border-radius: 0 !important;
  text-decoration: none !important;
}

/* =============================================================
   SOURCE URL
   Appended automatically below the article body.
   Reads the canonical URL from data-permalink on <article>.
   ============================================================= */

.single article[data-permalink]::after {
  content: "Sumber: " attr(data-permalink);
  display: block;
  font-family: Georgia, serif;
  font-size: 8pt;
  color: #666 !important;
  border-top: 0.5pt solid #ccc;
  padding-top: 8pt;
  margin-top: 14pt;
  word-break: break-all;
}
