MediaWiki:Print.css: Difference between revisions

From softwear.directory
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===========================
/* ===========================
   Softwear — A4 Narrow Print
   Softwear — A4 Narrow Print (compact, cleaned)
  One-column ~half-A4 width
  (compact typography)
   =========================== */
   =========================== */


/* 1 Font face */
/* Visibility of the print-only block (Common.css hides it on screen) */
.print-only {
  display: block !important;
}
 
/* Font face */
@font-face {
@font-face {
   font-family: 'HALColant-TextRegular';
   font-family: "HALColant-TextRegular";
   src: url('/fonts/HALColant-TextRegular.woff2?v=20250820') format('woff2'),
   src: url("/fonts/HALColant-TextRegular.woff2?v=20250820") format("woff2"),
      url('/fonts/HALColant-TextRegular.woff?v=20250820') format('woff');
    url("/fonts/HALColant-TextRegular.woff?v=20250820") format("woff");
   font-weight: normal;
   font-weight: normal;
   font-style: normal;
   font-style: normal;
Line 15: Line 18:
}
}


/* 2 Print color fidelity */
/* Print color fidelity */
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
* {
 
  -webkit-print-color-adjust: exact;
/* 3 Base visibility & typography */
  print-color-adjust: exact;
.print-only { display: block !important; }
}


html, body {
/* Base typography */
html,
body {
   margin: 0;
   margin: 0;
   padding: 0;
   padding: 0;
   font-family: 'HALColant-TextRegular', Georgia, "Times New Roman", serif;
   font-family: "HALColant-TextRegular", Georgia, "Times New Roman", serif;
   color: #292828 !important;
   color: #292828 !important;
   background: #fff !important;
   background: #fff !important;
}
}


/* 4 Page & narrow column
/* Page & column */
      A4 portrait; 12mm outer margin.
@page {
      Content column = 93mm centered.
  size: A4 portrait;
*/
  margin: 12mm;
@page { size: A4 portrait; margin: 12mm; }
}


.entry-wrapper.print-a4-narrow {
.entry-wrapper.print-a4-narrow {
   box-sizing: border-box;
   box-sizing: border-box;
   width: 93mm;                
   width: 93mm;
   margin: 0 auto;            
   margin: 0 auto;
   padding: 3mm;              
   padding: 3mm;
 
}
}


/* 5 Titles & people (COMPACT) */
/* Titles & people */
.article-title {
.article-title {
   font-size: 16px;
   font-size: 16px;
Line 60: Line 64:
   padding-top: 6px;
   padding-top: 6px;
}
}
.article-people a { text-decoration: underline; color: #292828 !important; }
.article-people a {
 
   text-decoration: underline;
/* === Hairline rules via pseudo-element (Blink) === */
   color: #292828 !important;
.article-entry-number,
.link-pdf,
.article-type,
.article-metadata,
.article-images,
.article-description,
.article-reflection,
.article-external-reference,
.article-quote,
.article-mod-line {
  position: relative;
  padding-bottom: 6px;
  border-bottom: none !important;
}
 
.article-entry-number::after,
.link-pdf::after,
.article-type::after,
.article-metadata::after,
.article-images::after,
.article-description::after,
.article-reflection::after,
.article-external-reference::after,
.article-quote::after,
.article-mod-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #292828;
  transform: scaleY(0.5);
  transform-origin: 50% 100%;
}
 
.link-pdf a {
   text-decoration: none!important;
}
/* === Firefox fallback: real thin border === */
@-moz-document url-prefix() {
   .article-entry-number::after,
  .link-pdf::after,
  .article-type::after,
  .article-metadata::after,
  .article-images::after,
  .article-description::after,
  .article-reflection::after,
  .article-external-reference::after,
  .article-quote::after,
  .article-mod-line::after {
    content: none !important;
  }
 
  .article-entry-number,
  .link-pdf,
  .article-type,
  .article-metadata,
  .article-images,
  .article-description,
  .article-reflection,
  .article-external-reference,
  .article-quote,
  .article-mod-line {
    border-bottom: 0.5pt solid #292828 !important;
  }
 
  #article-content > :last-child { border-bottom: 0 !important; }
 
  /* Add top spacer so first element isn't flush */
  .entry-wrapper.print-a4-narrow::before,
  .entry-wrapper.print-a5::before,
  .print-only::before {
    content: "";
    display: block;
    height: 6mm; /* match your @page top margin */
  }
 
  html, body {
    margin: 0 !important;
    padding: 0 !important;
  }
}
}


 
/* Entry number row */
/* 7 Entry number row */
.article-entry-number {
.article-entry-number {
   font-size: 12px;
   font-size: 12px;
Line 153: Line 76:
}
}


/* 8 Centered link row ([PDF⤴] [WEB⤴]) */
/* Centered link row */
.link-pdf {
.link-pdf {
   text-align: center;
   text-align: center;
Line 161: Line 84:
   padding-top: 0;
   padding-top: 0;
}
}
.link-pdf a, .link-pdf p {
.link-pdf a,
.link-pdf p {
   display: inline-block;
   display: inline-block;
   text-decoration: none;
   text-decoration: none;
Line 169: Line 93:
}
}


/* 9 Type line */
/* Type line */
.article-type {
.article-type {
   font-size: 12px;
   font-size: 12px;
Line 177: Line 101:
   color: #292828 !important;
   color: #292828 !important;
}
}
.article-type a { text-decoration: none; color: #292828 !important; }
.article-type a {
  text-decoration: none;
  color: #292828 !important;
}


/* 10 Metadata grid (COMPACT) */
/* Metadata grid (compact) */
.article-metadata,
.article-metadata,
.article-metadata * {
.article-metadata * {
Line 186: Line 113:
   background: none;
   background: none;
}
}
.article-metadata {
.article-metadata {
   display: grid;
   display: grid;
Line 207: Line 135:
}
}


/* 11 Images (shorter to favor text) */
/* Images (shorter to favor text) */
.article-metadata + .article-images { margin-top: 0 !important; padding-top: 0 !important; }
.article-metadata + .article-images {
.article-images { margin: 0 !important; padding-top: 0 !important; }
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.article-images {
  margin: 0 !important;
  padding-top: 0 !important;
}
.article-images .image-container {
.article-images .image-container {
   display: inline-flex;
   display: inline-flex;
Line 220: Line 154:
.image-container img {
.image-container img {
   display: block;
   display: block;
   max-height: 60mm;   /* was 85mm */
   max-height: 60mm;
   height: auto;
   height: auto;
   width: auto;
   width: auto;
Line 233: Line 167:
   padding: 0 !important;
   padding: 0 !important;
   line-height: 1.1 !important;
   line-height: 1.1 !important;
   font-size: 8px;     /* smaller captions */
   font-size: 8px;
   color: #555;
   color: #555;
   text-align: left;
   text-align: left;
   width: 100%;
   width: 100%;
}
}
.caption-image1:empty { display: none; }
.caption-image1:empty {
  display: none;
}


/* 12 Labels & bodies (COMPACT) */
/* Labels & bodies (compact) */
.article-label-description,
.article-label-description,
.article-label-reflection,
.article-label-reflection,
Line 251: Line 187:
   text-indent: 20px;
   text-indent: 20px;
   line-height: 1.05;
   line-height: 1.05;
   font-size: 10px;
   font-size: 9.5px;
   letter-spacing: 0.4px;
   letter-spacing: 0.4px;
  break-after: avoid; page-break-after: avoid;
}
}
.article-metadata + .article-label-description,
.article-metadata + .article-label-description,
Line 263: Line 198:
   margin-top: 6px !important;
   margin-top: 6px !important;
}
}
.article-description,
.article-description,
.article-reflection,
.article-reflection,
.article-external-reference,
.article-external-reference,
.article-quote,
.article-quote {
.article-mod-line {
   text-indent: 20px;
   text-indent: 20px;
   line-height: 1.15;   /* tighter */
   line-height: 1.15;
   font-size: 11.5px;     /* down from 20px */
   font-size: 11px;
   letter-spacing: 0.4px;
   letter-spacing: 0.4px;
   margin-top: 0 !important;
   margin-top: 0 !important;
   padding-top: 0 !important;
   padding-top: 0 !important;
}
.article-label-description + .article-description,
.article-label-reflection + .article-reflection,
.article-label-external-reference + .article-external-reference,
.article-label-quote + .article-quote,
.article-label-modification-date + .article-modification-date {
  break-before: avoid; page-break-before: avoid;
}
}


/* 13 Quote (COMPACT) */
/* Quote */
.article-quote {
.article-quote {
   font-size: 13px;
   font-size: 13px;
Line 290: Line 218:
}
}


/* 14 Mod line */
/* Resets */
.article-mod-line {
.vector-body p {
   white-space: nowrap;
   margin: 0 !important;
  color: grey;
   padding: 0 !important;
  line-height: 1.05;
}
  font-size: 10px;
a[href]:after {
  letter-spacing: 0.3px;
   content: none !important;
   margin: 5px 0 0 0 !important;
   padding-top: 0 !important;
}
}
.article-mod-line > span { display: inline; margin: 0; padding: 0; }
.article-mod-line > span + span { margin-left: 4px; }
.article-modification-date { font-size: 11px; letter-spacing: 0.3px; }
/* 15 Vector resets */
.vector-body p { margin: 0 !important; padding: 0 !important; }
/* 16 Links */
a[href]:after { content: none !important; }
.article-external-reference a {
.article-external-reference a {
   word-break: break-word;
   word-break: break-word;
Line 314: Line 231:
   text-decoration: none;
   text-decoration: none;
   color: #292828 !important;
   color: #292828 !important;
   font-size: 11px;   /* smaller */
   font-size: 11px;
   line-height: 1.15;
   line-height: 1.15;
   letter-spacing: 0;
   letter-spacing: 0;
}
}


/* 17 Page control */
/* Basic split control */
#article-content { orphans: 2; widows: 2; }
#article-content {
 
  orphans: 2;
/* 18 Prevent bad splits */
  widows: 2;
}
#article-title,
#article-title,
.article-title-link,
.article-title-link,
.article-metadata,
.article-metadata,
.article-images { break-inside: avoid; page-break-inside: avoid; }
.article-images {
  break-inside: avoid;
  page-break-inside: avoid;
}


/* === Chrome/Blink-specific print overrides === */
/* Column enforcement & border toggle (print.css is print-only, so no wrappers needed) */
@media print and (-webkit-min-device-pixel-ratio:0) {
.entry-wrapper.print-a4-narrow,
   .article-label-description,
.print-only.entry-wrapper,
   .article-label-reflection,
.print-only .entry-wrapper,
   .article-label-external-reference,
.print-only {
  .article-label-quote,
  width: 93mm !important;
  .article-label-modification-date {
  max-width: 93mm !important;
    break-after: auto !important;
  margin-left: auto !important;
    page-break-after: auto !important;
  margin-right: auto !important;
   }
  box-sizing: border-box !important;
}
.print-only *,
.entry-wrapper.print-a4-narrow * {
   max-width: 100% !important;
}
.print-only .mw-body,
.print-only .vector-body,
.print-only .content,
.print-only .list-container,
.print-only table {
   width: auto !important;
  max-width: 100% !important;
}
.print-only img {
  width: auto !important;
  max-width: 100% !important;
   height: auto !important;
}
 
/* Default WITH border */
html:not(.print-no-border) .print-only .entry-wrapper,
html:not(.print-no-border) .entry-wrapper.print-a4-narrow,
html:not(.print-no-border) .entry-wrapper.print-a5 {
  border: 0.5pt solid #292828 !important;
  background-clip: padding-box;
  padding: 3mm;
}
/* NO border */
html.print-no-border .print-only .entry-wrapper,
html.print-no-border .entry-wrapper.print-a4-narrow,
html.print-no-border .entry-wrapper.print-a5 {
  border: 0 !important;
   padding: 0 !important;
}


  .article-label-description + .article-description,
/* Section rules: ONE consistent line under rows/bodies (no ::after tricks) */
  .article-label-reflection + .article-reflection,
.article-entry-number,
  .article-label-external-reference + .article-external-reference,
.link-pdf,
   .article-label-quote + .article-quote,
.article-type,
  .article-label-modification-date + .article-modification-date {
.article-metadata,
    break-before: auto !important;
.article-images,
    page-break-before: auto !important;
.article-description,
  }
.article-reflection,
.article-external-reference,
.article-quote,
.article-mod-line {
  border-bottom: 0.5pt solid #292828 !important;
   padding-bottom: 6px !important;
}
/* Labels show no line (avoids doubles) */
.article-label-description,
.article-label-reflection,
.article-label-external-reference,
.article-label-quote,
.article-label-modification-date {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* Don’t draw a line under the last item */
#article-content > :last-child {
  border-bottom: 0 !important;
}


  .article-description p,
/* Paragraph fragmentation to avoid big gaps */
  .article-reflection p,
.article-description p,
  .article-external-reference p,
.article-reflection p,
  .article-quote p {
.article-external-reference p,
    page-break-inside: avoid;
.article-quote p {
    break-inside: avoid;
  break-inside: auto !important;
   }
  page-break-inside: auto !important;
  orphans: 2 !important;
  widows: 2 !important;
   margin: 0 0 1.2mm !important;
}
.article-description p:last-child,
.article-reflection p:last-child,
.article-external-reference p:last-child,
.article-quote p:last-child {
  margin-bottom: 0 !important;
}
}


@media print {
/* Entry page: unblock pagination + hide UI */
  /* WITH border (when <html> does NOT have .print-no-border) */
html,
  html:not(.print-no-border) .print-only .entry-wrapper,
body,
  html:not(.print-no-border) .entry-wrapper.print-a4-narrow,
#show-article-wrapper-entry,
  html:not(.print-no-border) .entry-wrapper.print-a5 {
#show-article,
    /* 0.5pt prints more reliably than 1px */
#article-content,
    border: 1px solid #000 !important;
#content,
    /* Redundant hairline so Blink/PDF can't drop it */
.mw-body,
    outline: 1px solid #000 !important;           /* does not affect layout */
.vector-body,
    box-sizing: border-box !important;
#mw-content-text {
    background-clip: padding-box;
  display: block !important;
    /* keep your preferred inset; use the value you like */
  overflow: visible !important;
    padding: 3mm;
  contain: none !important;
  }
  max-height: none !important;
}
#article-content > * {
  break-inside: auto !important;
  page-break-inside: auto !important;
}
#print-chooser,
#print-options {
  display: none !important;
}


  /* NO border when <html> has .print-no-border */
/* 22) Firefox: real thin borders (kept simple; still consistent with 0.5pt) */
   html.print-no-border .print-only .entry-wrapper,
@-moz-document url-prefix() {
  html.print-no-border .entry-wrapper.print-a4-narrow,
   @media print {
  html.print-no-border .entry-wrapper.print-a5 {
    .article-entry-number,
    border: 0 !important;
    .link-pdf,
     outline: 0 !important;
    .article-type,
     box-shadow: none !important;
    .article-metadata,
     padding: 0 !important; /* optional */
    .article-images,
    .article-description,
    .article-reflection,
    .article-external-reference,
    .article-quote,
    .article-mod-line {
      border-bottom: 0.5pt solid #292828 !important;
     }
    #article-content > :last-child {
      border-bottom: 0 !important;
     }
    .entry-wrapper {
      margin-top: 20px;
     }
   }
   }
}
}


/* === FORCE narrow column on print (robust) === */
/* --- Mod line: force one single unbroken line --- */
@media print {
.article-mod-line {
   /* 1 Make sure the column itself is 93mm and centered */
   /* be its own inline box, but narrow as content */
   .entry-wrapper.print-a4-narrow,
   display: inline-block !important;
  .print-only.entry-wrapper,
  white-space: nowrap !important;
  .print-only .entry-wrapper {
  text-indent: 20px;
    width: 93mm !important;
 
    max-width: 93mm !important;
  /* kill spacing artifacts from wiki newlines between spans */
    margin-left: auto !important;
  font-size: 0 !important;
    margin-right: auto !important;
  letter-spacing: 0 !important;
    box-sizing: border-box !important;
  }


   /* 2 If the wrapper class isn't present, fall back to constraining .print-only itself */
   /* keep your tone */
   .print-only {
   color: grey;
    width: 93mm !important;
  line-height: 1.05;
    max-width: 93mm !important;
  margin: 5px 0 0 0 !important;
    margin-left: auto !important;
  padding: 0 !important;
    margin-right: auto !important;
}
    box-sizing: border-box !important;
  }


  /* 3 Prevent descendants from stretching the width */
/* every child is a pure inline; no blocks, no inline-blocks */
  .print-only *,
.article-mod-line > *,
  .entry-wrapper.print-a4-narrow * {
.article-mod-line span,
    max-width: 100% !important;
.article-mod-line .article-label-modification-date,
   }
.article-mod-line .article-modification-date {
  display: inline !important;
  white-space: nowrap !important;
  margin: 0 !important;
   padding: 0 !important;


   /* Common stretchers — make them auto width within the column */
   /* restore actual text styling (container is font-size:0) */
   .print-only .mw-body,
   font-size: 10px !important;
  .print-only .vector-body,
  letter-spacing: 0.3px !important;
  .print-only .content,
}
  .print-only .list-container,
  .print-only table {
    width: auto !important;
    max-width: 100% !important;
  }


  /* Images never force the layout wider */
/* the date a touch larger + tiny spaces around it */
  .print-only img {
.article-mod-line .article-modification-date {
    width: auto !important;
  font-size: 11px !important;
    max-width: 100% !important;
  margin: 0 .25ch !important;
    height: auto !important;
  }
}
}
/* absolutely forbid rogue breaks */
.article-mod-line br { display: none !important; }
/* neutralize any legacy “span + span { margin-left }” rule */
.article-mod-line > span + span { margin-left: 0 !important; }

Latest revision as of 17:05, 2 September 2025

/* ===========================
   Softwear — A4 Narrow Print (compact, cleaned)
   =========================== */

/* Visibility of the print-only block (Common.css hides it on screen) */
.print-only {
  display: block !important;
}

/* Font face */
@font-face {
  font-family: "HALColant-TextRegular";
  src: url("/fonts/HALColant-TextRegular.woff2?v=20250820") format("woff2"),
    url("/fonts/HALColant-TextRegular.woff?v=20250820") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Print color fidelity */
* {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Base typography */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "HALColant-TextRegular", Georgia, "Times New Roman", serif;
  color: #292828 !important;
  background: #fff !important;
}

/* Page & column */
@page {
  size: A4 portrait;
  margin: 12mm;
}

.entry-wrapper.print-a4-narrow {
  box-sizing: border-box;
  width: 93mm;
  margin: 0 auto;
  padding: 3mm;
}

/* Titles & people */
.article-title {
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}
.article-people {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.4px;
  text-align: center;
  text-decoration: underline;
  margin: 0;
  padding-top: 6px;
}
.article-people a {
  text-decoration: underline;
  color: #292828 !important;
}

/* Entry number row */
.article-entry-number {
  font-size: 12px;
  line-height: 16px;
  margin: 0;
}

/* Centered link row */
.link-pdf {
  text-align: center;
  color: #292828 !important;
  text-decoration: none;
  margin: 2px 0 0 0;
  padding-top: 0;
}
.link-pdf a,
.link-pdf p {
  display: inline-block;
  text-decoration: none;
  color: #292828 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Type line */
.article-type {
  font-size: 12px;
  line-height: 1.1;
  margin: 0;
  padding-top: 4px;
  color: #292828 !important;
}
.article-type a {
  text-decoration: none;
  color: #292828 !important;
}

/* Metadata grid (compact) */
.article-metadata,
.article-metadata * {
  margin: 0 !important;
  border: none;
  background: none;
}

.article-metadata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5mm;
  padding-top: 6px;
  line-height: 1.05 !important;
}
.article-metadata-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.article-metadata-value {
  font-size: 11px;
  text-transform: capitalize;
}
.article-metadata-value a {
  color: #292828 !important;
  text-decoration: none;
}

/* Images (shorter to favor text) */
.article-metadata + .article-images {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.article-images {
  margin: 0 !important;
  padding-top: 0 !important;
}
.article-images .image-container {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0 !important;
}
.article-images .image-container img,
.image-container img {
  display: block;
  max-height: 60mm;
  height: auto;
  width: auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  line-height: 0;
}
.caption-image1 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
  font-size: 8px;
  color: #555;
  text-align: left;
  width: 100%;
}
.caption-image1:empty {
  display: none;
}

/* Labels & bodies (compact) */
.article-label-description,
.article-label-reflection,
.article-label-external-reference,
.article-label-quote,
.article-label-modification-date {
  text-transform: uppercase;
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  text-indent: 20px;
  line-height: 1.05;
  font-size: 9.5px;
  letter-spacing: 0.4px;
}
.article-metadata + .article-label-description,
.article-images + .article-label-description,
.article-description + .article-label-reflection,
.article-reflection + .article-label-external-reference,
.article-external-reference + .article-label-quote,
.article-quote + .article-label-modification-date {
  margin-top: 6px !important;
}

.article-description,
.article-reflection,
.article-external-reference,
.article-quote {
  text-indent: 20px;
  line-height: 1.15;
  font-size: 11px;
  letter-spacing: 0.4px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Quote */
.article-quote {
  font-size: 13px;
  line-height: 1.2;
  font-style: italic;
}

/* Resets */
.vector-body p {
  margin: 0 !important;
  padding: 0 !important;
}
a[href]:after {
  content: none !important;
}
.article-external-reference a {
  word-break: break-word;
  overflow-wrap: anywhere;
  text-decoration: none;
  color: #292828 !important;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0;
}

/* Basic split control */
#article-content {
  orphans: 2;
  widows: 2;
}
#article-title,
.article-title-link,
.article-metadata,
.article-images {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Column enforcement & border toggle (print.css is print-only, so no wrappers needed) */
.entry-wrapper.print-a4-narrow,
.print-only.entry-wrapper,
.print-only .entry-wrapper,
.print-only {
  width: 93mm !important;
  max-width: 93mm !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
.print-only *,
.entry-wrapper.print-a4-narrow * {
  max-width: 100% !important;
}
.print-only .mw-body,
.print-only .vector-body,
.print-only .content,
.print-only .list-container,
.print-only table {
  width: auto !important;
  max-width: 100% !important;
}
.print-only img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Default WITH border */
html:not(.print-no-border) .print-only .entry-wrapper,
html:not(.print-no-border) .entry-wrapper.print-a4-narrow,
html:not(.print-no-border) .entry-wrapper.print-a5 {
  border: 0.5pt solid #292828 !important;
  background-clip: padding-box;
  padding: 3mm;
}
/* NO border */
html.print-no-border .print-only .entry-wrapper,
html.print-no-border .entry-wrapper.print-a4-narrow,
html.print-no-border .entry-wrapper.print-a5 {
  border: 0 !important;
  padding: 0 !important;
}

/* Section rules: ONE consistent line under rows/bodies (no ::after tricks) */
.article-entry-number,
.link-pdf,
.article-type,
.article-metadata,
.article-images,
.article-description,
.article-reflection,
.article-external-reference,
.article-quote,
.article-mod-line {
  border-bottom: 0.5pt solid #292828 !important;
  padding-bottom: 6px !important;
}
/* Labels show no line (avoids doubles) */
.article-label-description,
.article-label-reflection,
.article-label-external-reference,
.article-label-quote,
.article-label-modification-date {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* Don’t draw a line under the last item */
#article-content > :last-child {
  border-bottom: 0 !important;
}

/* Paragraph fragmentation to avoid big gaps */
.article-description p,
.article-reflection p,
.article-external-reference p,
.article-quote p {
  break-inside: auto !important;
  page-break-inside: auto !important;
  orphans: 2 !important;
  widows: 2 !important;
  margin: 0 0 1.2mm !important;
}
.article-description p:last-child,
.article-reflection p:last-child,
.article-external-reference p:last-child,
.article-quote p:last-child {
  margin-bottom: 0 !important;
}

/* Entry page: unblock pagination + hide UI */
html,
body,
#show-article-wrapper-entry,
#show-article,
#article-content,
#content,
.mw-body,
.vector-body,
#mw-content-text {
  display: block !important;
  overflow: visible !important;
  contain: none !important;
  max-height: none !important;
}
#article-content > * {
  break-inside: auto !important;
  page-break-inside: auto !important;
}
#print-chooser,
#print-options {
  display: none !important;
}

/* 22) Firefox: real thin borders (kept simple; still consistent with 0.5pt) */
@-moz-document url-prefix() {
  @media print {
    .article-entry-number,
    .link-pdf,
    .article-type,
    .article-metadata,
    .article-images,
    .article-description,
    .article-reflection,
    .article-external-reference,
    .article-quote,
    .article-mod-line {
      border-bottom: 0.5pt solid #292828 !important;
    }
    #article-content > :last-child {
      border-bottom: 0 !important;
    }
    .entry-wrapper {
      margin-top: 20px;
    }
  }
}

/* --- Mod line: force one single unbroken line --- */
.article-mod-line {
  /* be its own inline box, but narrow as content */
  display: inline-block !important;
  white-space: nowrap !important;
  text-indent: 20px;

  /* kill spacing artifacts from wiki newlines between spans */
  font-size: 0 !important;
  letter-spacing: 0 !important;

  /* keep your tone */
  color: grey;
  line-height: 1.05;
  margin: 5px 0 0 0 !important;
  padding: 0 !important;
}

/* every child is a pure inline; no blocks, no inline-blocks */
.article-mod-line > *,
.article-mod-line span,
.article-mod-line .article-label-modification-date,
.article-mod-line .article-modification-date {
  display: inline !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;

  /* restore actual text styling (container is font-size:0) */
  font-size: 10px !important;
  letter-spacing: 0.3px !important;
}

/* the date a touch larger + tiny spaces around it */
.article-mod-line .article-modification-date {
  font-size: 11px !important;
  margin: 0 .25ch !important;
}

/* absolutely forbid rogue breaks */
.article-mod-line br { display: none !important; }

/* neutralize any legacy “span + span { margin-left }” rule */
.article-mod-line > span + span { margin-left: 0 !important; }