/* Archive-only design. All selectors are scoped to its unique body ID. */
#labor-heritage-archive {
 --lha-green:#5D821D; --lha-lime:#94D82D; --lha-orange:#F7931E; --lha-brown:#603813;
 color:var(--lha-brown); background:#fff; font-size:1em; line-height:1.95; overflow-wrap:anywhere;
}
#labor-heritage-archive, #labor-heritage-archive * { box-sizing:border-box; }
#labor-heritage-archive p { margin:0 0 1em; padding:0; line-height:1.95; white-space:pre-wrap; float:none; }
#labor-heritage-archive a { color:var(--lha-brown); text-decoration:underline; text-decoration-color:var(--lha-green); text-underline-offset:.22em; }
#labor-heritage-archive a:hover { text-decoration-thickness:2px; text-decoration-color:var(--lha-orange); }
#labor-heritage-archive a:focus-visible, #labor-heritage-archive summary:focus-visible { outline:3px solid var(--lha-orange); outline-offset:4px; }
#labor-heritage-archive .lha-intro { position:relative; padding:1.6em 1.7em; margin:0 0 2em; background:#f7faef; border:1px solid #e0e9cd; border-top:5px solid var(--lha-green); border-radius:0 0 8px 8px; }
#labor-heritage-archive .lha-intro::before { content:""; position:absolute; top:-5px; left:0; width:24%; height:5px; background:var(--lha-lime); }
#labor-heritage-archive .lha-intro p:first-child { font-weight:bold; font-size:1.3em; color:var(--lha-brown); line-height:1.65; margin-bottom:.9em; }
#labor-heritage-archive .lha-intro p:last-child { margin-bottom:0; }
#labor-heritage-archive .lha-toc { display:block; position:static; width:auto; height:auto; padding:1.5em 1.7em; margin:0 0 3em; background:#fff; border:1px solid #e0e9cd; border-top:3px solid var(--lha-orange); border-radius:6px; box-shadow:0 3px 12px rgba(96,56,19,.04); }
#labor-heritage-archive .lha-toc h4 { margin:0 0 .6em; padding:0 0 0 .65em; border:0; border-left:5px solid var(--lha-lime); background:none; font-size:1.25em; color:var(--lha-brown); line-height:1.5; }
#labor-heritage-archive .lha-toc > p { font-size:.9em; }
#labor-heritage-archive details { margin:0; border-bottom:1px solid #e7e9dd; padding:0; }
#labor-heritage-archive details:last-child { border-bottom:0; }
#labor-heritage-archive summary { display:list-item; list-style:disclosure-closed; cursor:pointer; font-weight:bold; padding:.85em .5em; color:var(--lha-brown); border-radius:4px; }
#labor-heritage-archive details[open] > summary { list-style:disclosure-open; background:#f7faef; }
#labor-heritage-archive summary::marker { color:var(--lha-green); }
#labor-heritage-archive summary:hover { background:#f7faef; }
#labor-heritage-archive .lha-toc ul { display:block; list-style:none; margin:.6em 0 1em; padding:0 .5em; width:auto; }
#labor-heritage-archive .lha-toc li { display:block; float:none; width:auto; margin:0; padding:.35em 0; border:0; line-height:1.75; }
#labor-heritage-archive .lha-toc .lha-depth-2 { padding-left:1.25em; font-size:.94em; }
#labor-heritage-archive h4.lha-chapter { position:relative; margin:3em 0 1.6em; padding:.85em 1.1em; background:var(--lha-green); color:#fff; border:0; border-left:7px solid var(--lha-lime); border-radius:0 5px 5px 0; font-size:1.4em; line-height:1.6; letter-spacing:.04em; }
#labor-heritage-archive h5 { margin:2.6em 0 .5em; padding:.7em 0; border:0; border-bottom:2px solid var(--lha-green); background:none; color:var(--lha-brown); font-size:1.2em; line-height:1.7; }
#labor-heritage-archive h6 { margin:2.2em 0 .5em; padding:.7em .9em; border:0; border-left:4px solid var(--lha-orange); background:#fff8ef; color:var(--lha-brown); font-size:1.06em; line-height:1.7; }
#labor-heritage-archive [id] { scroll-margin-top:2em; }
#labor-heritage-archive .lha-back { display:block; margin:0 0 1.6em; text-align:right; font-size:.85em; }
#labor-heritage-archive .lha-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5em; margin:2em 0 3em; align-items:start; }
#labor-heritage-archive .lha-gallery figure { display:block; float:none; width:auto; min-width:0; margin:0; padding:.7em; border:1px solid #e5dfd5; border-bottom:3px solid var(--lha-lime); border-radius:5px; background:#fff; }
#labor-heritage-archive .lha-gallery a { display:block; background:#f8f6f1; border-radius:2px; overflow:hidden; }
#labor-heritage-archive .lha-gallery img { display:block; float:none; position:static; width:100%; max-width:100%; height:auto; max-height:440px; object-fit:contain; margin:0 auto; padding:0; }
#labor-heritage-archive .lha-gallery a:hover { outline:2px solid var(--lha-orange); outline-offset:2px; }
#labor-heritage-archive figcaption { padding:.8em .2em .2em; font-size:.88em; line-height:1.7; color:var(--lha-brown); }
/* Keep the document's original numbering and accessible list structure. */
#labor-heritage-archive .lha-list { display:block; float:none; width:auto; margin:1.1em 0 1.5em; padding:0 0 0 2.2em; list-style:none; }
#labor-heritage-archive .lha-list > li { display:list-item; float:none; position:relative; width:auto; margin:0 0 .85em; padding:0; border:0; background:none; line-height:1.95; white-space:pre-wrap; }
#labor-heritage-archive .lha-list-label {display:inline-block;margin-left:-2.2em;min-width:2.2em;white-space:pre-wrap;color:var(--lha-green);font-weight:bold;}
#labor-heritage-archive .lha-list-bullet > li > .lha-list-label { color:var(--lha-brown); }
#labor-heritage-archive .lha-list > li > .lha-list { margin:.75em 0 .4em; padding-left:1.7em; }
@media(max-width:600px) {
 #labor-heritage-archive .lha-gallery { grid-template-columns:1fr; gap:1.2em; }
 #labor-heritage-archive .lha-intro, #labor-heritage-archive .lha-toc { padding:1.1em; }
 #labor-heritage-archive .lha-intro p:first-child { font-size:1.15em; }
 #labor-heritage-archive h4.lha-chapter { font-size:1.2em; padding:.8em; }
 #labor-heritage-archive h5 { font-size:1.1em; }
}
@media print {
 #labor-heritage-archive .lha-toc, #labor-heritage-archive .lha-back { display:none; }
 #labor-heritage-archive .lha-gallery figure { break-inside:avoid; box-shadow:none; }
 #labor-heritage-archive h4, #labor-heritage-archive h5, #labor-heritage-archive h6 { break-after:avoid; }
 #labor-heritage-archive h4.lha-chapter { background:#fff; color:var(--lha-brown); border-bottom:2px solid var(--lha-green); }
}

/* ------------------------------------------------------------------
   sub.css compatibility overrides (archive body only).
   Two IDs intentionally outrank #contents .text selectors, including
   their mobile rules, without changing the surrounding site layout.
   ------------------------------------------------------------------ */
#contents #labor-heritage-archive h4,
#contents #labor-heritage-archive h5,
#contents #labor-heritage-archive h6 {
 text-align:left;
 clear:none;
}
/* Remove inherited Font Awesome arrows and the h6 bullet. */
#contents #labor-heritage-archive h4::before,
#contents #labor-heritage-archive h5::before,
#contents #labor-heritage-archive h6::before,
#contents #labor-heritage-archive ul > li::before,
#contents #labor-heritage-archive ol > li::before {
 content:none;
 display:none;
 counter-increment:none;
}
#contents #labor-heritage-archive p {
 margin:0 0 1em;
 text-indent:0;
}
#contents #labor-heritage-archive .lha-intro p:first-child { margin-bottom:.9em; }
#contents #labor-heritage-archive .lha-intro p:last-child { margin-bottom:0; }
/* Use the archive's original numbers instead of site-generated counters. */
#contents #labor-heritage-archive .lha-list {
 display:block;
 margin:1.1em 0 1.5em;
 padding:0 0 0 2.2em;
 list-style:none;
 counter-reset:none;
}
#contents #labor-heritage-archive .lha-list > li {
 display:list-item;
 margin: 0;
 padding:0;
 list-style:none;
 counter-increment:none;
}
#contents #labor-heritage-archive .lha-list > li > .lha-list {
 margin: 0;
 padding-left:1.7em;
}
/* sub.css turns ul li span into a block on narrow screens. */
#contents #labor-heritage-archive .lha-list-label {
 display:inline-block;
 margin:0 0 0 -2.2em;
 padding:0;
 min-width: 1.4em;
 background:none;
 border:0;
 border-radius:0;
 color:var(--lha-green);
 font-weight:bold;
}
#contents #labor-heritage-archive .lha-list-bullet > li > .lha-list-label,
#contents #labor-heritage-archive .lha-list-bullet > li > .lha-list-label:hover {
 color:var(--lha-brown);
}
#contents #labor-heritage-archive .lha-toc ul {
 display:block;
 margin:.6em 0 1em;
 padding:0 .5em;
 list-style:none;
}
#contents #labor-heritage-archive .lha-toc li {
 display:block;
 margin:0;
 padding:.35em 0;
 list-style:none;
}
#contents #labor-heritage-archive .lha-toc .lha-depth-2 { padding-left:1.25em; }
#contents #labor-heritage-archive .lha-gallery figure {
 width:auto;
 max-width:none;
 min-width:0;
 margin:0;
 padding:.7em;
 float:none;
}

/* Archive body typography. */
#contents #labor-heritage-archive {
 font-size:1.6rem;
 line-height:1.75;
}
#contents #labor-heritage-archive p,
#contents #labor-heritage-archive .lha-list > li {
 line-height:1.75;
}
@media (max-width:960px) {
 #contents #labor-heritage-archive { font-size:1.4rem; }
}

/* Archive body typography. */
#contents #labor-heritage-archive {
 font-size:1.6rem;
 line-height:1.75;
}
#contents #labor-heritage-archive p,
#contents #labor-heritage-archive .lha-list > li {
 font-size:inherit;
 line-height:1.75;
}
@media (max-width:960px) {
 #contents #labor-heritage-archive { font-size:1.4rem; }
}

/* Chapter 3: one list item per certificate number. */
#contents #labor-heritage-archive .lha-certificates {
 display:block;
 width:auto;
 margin:1.2em 0 2em;
 padding:0;
 list-style:none;
}
#contents #labor-heritage-archive .lha-certificates > .lha-certificate {
 display:list-item;
 float:none;
 width:auto;
 min-width:0;
 margin:0 0 1.5em;
 padding:1.1em 1.3em;
 list-style:none;
 border:1px solid #e0e9cd;
 border-left:4px solid var(--lha-green);
 border-radius:0 5px 5px 0;
 background:#fff;
 line-height:1.75;
}
#contents #labor-heritage-archive .lha-certificate > p {
 margin:0 0 .45em;
 line-height:1.75;
}
#contents #labor-heritage-archive .lha-certificate > .lha-certificate-number {
 margin:-1.1em -1.3em .9em;
 padding:.7em 1.3em;
 border-bottom:1px solid #e0e9cd;
 background:#f7faef;
 color:var(--lha-brown);
 font-weight:bold;
}
#contents #labor-heritage-archive .lha-certificate > p:last-child { margin-bottom:0; }
@media (max-width:600px) {
 #contents #labor-heritage-archive .lha-certificates > .lha-certificate { padding:.9em; }
 #contents #labor-heritage-archive .lha-certificate > .lha-certificate-number { margin:-.9em -.9em .8em; padding:.65em .9em; }
}
@media print {
 #contents #labor-heritage-archive .lha-certificate { break-inside:avoid; }
}

/* Compact list spacing; ignore formatting newlines in the HTML. */
#contents #labor-heritage-archive .lha-list > li {
  margin-bottom: .3em;
  white-space: normal;
  line-height: 1.75;
}