MediaWiki:Print.css: Difference between revisions

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


/* --- 1) Font face (print-safe) --- */
/* 1) Font face */
@font-face {
@font-face {
   font-family: 'HALColant-TextRegular';
   font-family: 'HALColant-TextRegular';
Line 14: Line 15:
}
}


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


/* --- 3) Base print visibility & typography --- */
/* 3) Base visibility & typography */
.print-only { display: block !important; } /* ensure print layout is visible */
.print-only { display: block !important; }


html, body {
html, body {
Line 24: Line 25:
   padding: 0;
   padding: 0;
   font-family: 'HALColant-TextRegular', Georgia, "Times New Roman", serif;
   font-family: 'HALColant-TextRegular', Georgia, "Times New Roman", serif;
   color: #111;
   color: #292828 !important;
  background: #fff !important;
}
}


/* Use your preferred ink color */
/* 4) Page & narrow column
body { color: #292828 !important; }
      A4 portrait; 12mm outer margin.
      Content column = 93mm centered.
*/
@page { size: A4 portrait; margin: 12mm; }


/* --- 4) Page size and margins --- */
.entry-wrapper.print-a4-narrow {
@page {
  box-sizing: border-box;
   size: A5 portrait;
  width: 93mm;                /* ~half A4 minus gutter */
   margin: 2.5mm;           /* outer paper margin */
   margin: 0 auto;             /* center on page */
   padding: 3mm;               /* small inner padding */
 
}
}
 
.entry-wrapper {
/* Inner breathing room for the print block */
   border: 1px solid;
.entry-wrapper.print-a5 {
   padding: 10px 10px;
   width: 100%;
   position: relative;
   box-sizing: border-box;
   padding: 2.5mm;           /* inner content padding */
}
}
 
/* 5) Titles & people (COMPACT) */
/* --- 5) Titles & people --- */
.article-title {
.article-title {
   font-size: 22px;
   font-size: 16px;
   line-height: 24px;
   line-height: 18px;
   letter-spacing: 0.8px;
   letter-spacing: 0.5px;
   text-align: center;
   text-align: center;
  color: #292828 !important;
   margin: 0;
   margin: 0;
}
}
.article-people {
.article-people {
   font-size: 22px;
   font-size: 14px;
   line-height: 28px;
   line-height: 18px;
   letter-spacing: 0.8px;
   letter-spacing: 0.4px;
   text-align: center;
   text-align: center;
   text-decoration: underline;
   text-decoration: underline;
  color: #292828 !important;
   margin: 0;
   margin: 0;
   padding-top: 15px;
   padding-top: 6px;
}
.article-people a { text-decoration: underline; color: #292828 !important; }
 
/* === Hairline rules via pseudo-element (Blink) === */
.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 */
  }


.article-people a {
  html, body {
  text-decoration: underline;
    margin: 0 !important;
  color: #292828 !important;
    padding: 0 !important;
  }
}
}


/* --- 6) Hairline rule under entry number --- */
 
/* 7) Entry number row */
.article-entry-number {
.article-entry-number {
   font-size: 16px;
   font-size: 12px;
   line-height: 23px;
   line-height: 16px;
  letter-spacing: 0;
   margin: 0;
   margin: 0;
  padding-bottom: 4px;
  border-bottom: none;
  /* draw a crisp hairline using a background gradient */
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;  /* ~hairline */
}
}


/* --- 7) Link row ([PDF⤴] [WEB⤴]) centered with hairline --- */
/* 8) Centered link row ([PDF⤴] [WEB⤴]) */
.link-pdf {
.link-pdf {
   text-align: center;
   text-align: center;
   color: #292828 !important;
   color: #292828 !important;
   text-decoration: none;
   text-decoration: none;
   margin: 4px 0 0 0;
   margin: 2px 0 0 0;
   padding: 0 0 0 0;
   padding-top: 0;
  border-bottom: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;
}
}
 
.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 107: Line 173:
}
}


/* --- 8) Type line with hairline --- */
/* 9) Type line */
.article-type {
.article-type {
   font-size: 16px;
   font-size: 12px;
   line-height: 1;
   line-height: 1.1;
  letter-spacing: 0;
   margin: 0;
   margin: 0;
   padding: 7px 0;
   padding-top: 4px;
  color: #292828 !important;
  border-bottom: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;
}
.article-type a {
  text-decoration: none;
  display: inline-block;
   color: #292828 !important;
   color: #292828 !important;
}
}
.article-type a { text-decoration: none; color: #292828 !important; }


/* --- 9) Metadata grid (no margins/paddings; hairline under block) --- */
/* 10) Metadata grid (COMPACT) */
.article-metadata,
.article-metadata,
.article-metadata * {
.article-metadata * {
Line 134: Line 190:
   background: none;
   background: none;
}
}
.article-metadata {
.article-metadata {
   display: grid;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   grid-template-columns: repeat(3, 1fr);
   gap: 2mm;
   gap: 1.5mm;
   padding: 11px 0 7px 0;
   padding-top: 6px;
   line-height: 1 !important;
   line-height: 1.05 !important;
 
  border-bottom: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;
}
}
.article-metadata-label {
.article-metadata-label {
   font-size: 13px;
   font-size: 9px;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.3px;
   letter-spacing: 0.3px;
}
}
.article-metadata-value {
.article-metadata-value {
   font-size: 15px;
   font-size: 11px;
   text-transform: capitalize;
   text-transform: capitalize;
}
}
Line 164: Line 211:
}
}


/* Remove any accidental gap before images */
/* 11) Images (shorter to favor text) */
.article-metadata + .article-images {
.article-metadata + .article-images { margin-top: 0 !important; padding-top: 0 !important; }
  margin-top: 0 !important;
.article-images { margin: 0 !important; padding-top: 0 !important; }
  padding-top: 0 !important;
}
 
/* --- 10) Images & caption (no gaps; hairline under block) --- */
.article-images {
  margin: 0 !important;
  padding: 0 !important;
 
  border-bottom: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;
}
 
.article-images .image-container {
.article-images .image-container {
   display: inline-flex;
   display: inline-flex;
   flex-direction: column; /* stack image then caption */
   flex-direction: column;
   align-items: flex-start; /* left-align image & caption */
   align-items: flex-start;
   margin: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   padding: 0 !important;
}
}
.article-images .image-container img,
.article-images .image-container img,
.image-container img {
.image-container img {
   display: block;
   display: block;
   max-height: 85mm;       /* cap instead of forcing height to reduce jumps */
   max-height: 60mm;   /* was 85mm */
   height: auto;
   height: auto;
   width: auto;
   width: auto;
Line 202: Line 233:
   line-height: 0;
   line-height: 0;
}
}
.caption-image1 {
.caption-image1 {
   margin: 0 !important;
   margin: 0 !important;
   padding: 0 0 11px 0 !important; /* small breathing room under caption */
   padding: 0 !important;
   line-height: 1 !important;
   line-height: 1.1 !important;
   font-size: 9pt;
   font-size: 8px;     /* smaller captions */
   color: #555;
   color: #555;
   text-align: left;
   text-align: left;
   width: 100%;
   width: 100%;
}
}
.caption-image1:empty { display: none; }


/* Kill user-agent margins in Vector paragraphs that sneak in */
/* 12) Labels & bodies (COMPACT) */
.vector-body p { margin: 0 !important; padding: 0 !important; }
 
/* --- 11) Section labels & bodies --- */
.article-label-description,
.article-label-description,
.article-label-reflection,
.article-label-reflection,
Line 223: Line 251:
.article-label-modification-date {
.article-label-modification-date {
   text-transform: uppercase;
   text-transform: uppercase;
   margin: 11px 0 0 0 !important;
   margin: 6px 0 0 0 !important;
   padding: 0 !important;
   padding: 0 !important;
   text-indent: 35px;
   text-indent: 20px;
   line-height: 1;
   line-height: 1.05;
   font-size: 14px;
   font-size: 10px;
   letter-spacing: 0.5px;
   letter-spacing: 0.4px;
 
   break-after: avoid; page-break-after: avoid;
  /* prevent a break RIGHT AFTER the label (no orphan label) */
}
   break-after: avoid;
.article-metadata + .article-label-description,
  page-break-after: avoid;
.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-description,
.article-reflection,
.article-reflection,
Line 240: Line 272:
.article-quote,
.article-quote,
.article-mod-line {
.article-mod-line {
   text-indent: 35px;
   text-indent: 20px;
   line-height: 1.3;
   line-height: 1.15;   /* tighter */
   font-size: 20px;
   font-size: 11.5px;    /* down from 20px */
   letter-spacing: 0.8px;
   letter-spacing: 0.4px;
   margin-top: 0 !important;
   margin-top: 0 !important;
   padding: 0 0 11px 0 !important;
   padding-top: 0 !important;
 
  /* let long content flow normally; avoid hard blocking */
  page-break-inside: auto;
  break-inside: auto;
 
  /* draw hairline below each section body */
  border-bottom: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5px;
}
}
/* Don’t allow a break BEFORE the first block following each label */
.article-label-description + .article-description,
.article-label-description + .article-description,
.article-label-reflection + .article-reflection,
.article-label-reflection + .article-reflection,
Line 265: Line 284:
.article-label-quote + .article-quote,
.article-label-quote + .article-quote,
.article-label-modification-date + .article-modification-date {
.article-label-modification-date + .article-modification-date {
   break-before: avoid;
   break-before: avoid; page-break-before: avoid;
  page-break-before: avoid;
}
 
/* 13) Quote (COMPACT) */
.article-quote {
  font-size: 13px;
  line-height: 1.2;
  font-style: italic;
}
 
/* 14) Mod line */
.article-mod-line {
  white-space: nowrap;
  color: grey;
  line-height: 1.05;
  font-size: 10px;
  letter-spacing: 0.3px;
  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; }


/* Gentle control on widows/orphans globally */
/* 15) Vector resets */
#article-content { orphans: 2; widows: 2; }
.vector-body p { margin: 0 !important; padding: 0 !important; }


/* --- 12) Link handling for print --- */
/* 16) Links */
a[href]:after { content: none !important; } /* no raw URL echo */
a[href]:after { content: none !important; }
.article-external-reference a {
.article-external-reference a {
   word-break: break-word;
   word-break: break-word;
Line 279: Line 318:
   text-decoration: none;
   text-decoration: none;
   color: #292828 !important;
   color: #292828 !important;
   font-size: 17px;
   font-size: 11px;   /* smaller */
   line-height: 1;
   line-height: 1.15;
   letter-spacing: 0;
   letter-spacing: 0;
}
}


.article-quote {
/* 17) Page control */
  font-size: 26px;
#article-content { orphans: 2; widows: 2; }
  line-height: 1;
 
   letter-spacing: 1.2px;
/* 18) Prevent bad splits */
   font-style: italic;
#article-title,
  margin-bottom: 7px!important;
.article-title-link,
   padding-bottom: 7px!important;
.article-metadata,
.article-images { break-inside: avoid; page-break-inside: avoid; }
 
/* === Chrome/Blink-specific print overrides === */
@media print and (-webkit-min-device-pixel-ratio:0) {
  .article-label-description,
  .article-label-reflection,
  .article-label-external-reference,
  .article-label-quote,
  .article-label-modification-date {
    break-after: auto !important;
    page-break-after: auto !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: auto !important;
    page-break-before: auto !important;
   }
 
  .article-description p,
  .article-reflection p,
  .article-external-reference p,
  .article-quote p {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
}


.article-mod-line{
/* === FORCE narrow column on print (robust) === */
   margin-top: 0!important;
@media print {
  padding-top: 0!important;
  /* 1) Make sure the column itself is 93mm and centered */
  white-space:nowrap;
  .entry-wrapper.print-a4-narrow,
  color:grey;
  .print-only.entry-wrapper,
  line-height:1;
   .print-only .entry-wrapper {
   font-size:14px;
    width: 93mm !important;
  letter-spacing:0.5px;
    max-width: 93mm !important;
  margin:0; padding:0;
    margin-left: auto !important;
  text-indent:35px;
    margin-right: auto !important;
}
    box-sizing: border-box !important;
.article-mod-line > span{
   }
  display:inline;
 
   margin:0; padding:0;
  /* 2) If the wrapper class isn't present, fall back to constraining .print-only itself */
}
  .print-only {
.article-mod-line > span + span{ margin-left:6px; }
    width: 93mm !important;
    max-width: 93mm !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
 
  /* 3) Prevent descendants from stretching the width */
  .print-only *,
  .entry-wrapper.print-a4-narrow * {
    max-width: 100% !important;
   }
 
  /* Common stretchers — make them auto width within the column */
  .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;
  }


.article-modification-date {
  /* Images never force the layout wider */
  font-size:15px;
  .print-only img {
  letter-spacing:0.5px;
    width: auto !important;
  margin:0; padding:0;
    max-width: 100% !important;
    height: auto !important;
  }
}
}

Latest revision as of 14:01, 28 August 2025

/* ===========================
   Softwear — A4 Narrow Print
   One-column ~half-A4 width
   (compact typography)
   =========================== */

/* 1) 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;
}

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

/* 3) Base visibility & typography */
.print-only { display: block !important; }

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

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

.entry-wrapper.print-a4-narrow {
  box-sizing: border-box;
  width: 93mm;                 /* ~half A4 minus gutter */
  margin: 0 auto;              /* center on page */
  padding: 3mm;                /* small inner padding */
  
}
.entry-wrapper {
  border: 1px solid;
  padding: 10px 10px;
  position: relative;
}
/* 5) Titles & people (COMPACT) */
.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; }

/* === Hairline rules via pseudo-element (Blink) === */
.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;
  }
}


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

/* 8) Centered link row ([PDF⤴] [WEB⤴]) */
.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;
}

/* 9) 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; }

/* 10) 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;
}

/* 11) 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;   /* was 85mm */
  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;     /* smaller captions */
  color: #555;
  text-align: left;
  width: 100%;
}
.caption-image1:empty { display: none; }

/* 12) 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: 10px;
  letter-spacing: 0.4px;
  break-after: avoid; page-break-after: avoid;
}
.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,
.article-mod-line {
  text-indent: 20px;
  line-height: 1.15;   /* tighter */
  font-size: 11.5px;     /* down from 20px */
  letter-spacing: 0.4px;
  margin-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) */
.article-quote {
  font-size: 13px;
  line-height: 1.2;
  font-style: italic;
}

/* 14) Mod line */
.article-mod-line {
  white-space: nowrap;
  color: grey;
  line-height: 1.05;
  font-size: 10px;
  letter-spacing: 0.3px;
  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 {
  word-break: break-word;
  overflow-wrap: anywhere;
  text-decoration: none;
  color: #292828 !important;
  font-size: 11px;   /* smaller */
  line-height: 1.15;
  letter-spacing: 0;
}

/* 17) Page control */
#article-content { orphans: 2; widows: 2; }

/* 18) Prevent bad splits */
#article-title,
.article-title-link,
.article-metadata,
.article-images { break-inside: avoid; page-break-inside: avoid; }

/* === Chrome/Blink-specific print overrides === */
@media print and (-webkit-min-device-pixel-ratio:0) {
  .article-label-description,
  .article-label-reflection,
  .article-label-external-reference,
  .article-label-quote,
  .article-label-modification-date {
    break-after: auto !important;
    page-break-after: auto !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: auto !important;
    page-break-before: auto !important;
  }

  .article-description p,
  .article-reflection p,
  .article-external-reference p,
  .article-quote p {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* === FORCE narrow column on print (robust) === */
@media print {
  /* 1) Make sure the column itself is 93mm and centered */
  .entry-wrapper.print-a4-narrow,
  .print-only.entry-wrapper,
  .print-only .entry-wrapper {
    width: 93mm !important;
    max-width: 93mm !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* 2) If the wrapper class isn't present, fall back to constraining .print-only itself */
  .print-only {
    width: 93mm !important;
    max-width: 93mm !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* 3) Prevent descendants from stretching the width */
  .print-only *,
  .entry-wrapper.print-a4-narrow * {
    max-width: 100% !important;
  }

  /* Common stretchers — make them auto width within the column */
  .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;
  }

  /* Images never force the layout wider */
  .print-only img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
}