/* PlexMod 16: responsive shell; historical project contents stay intact. */
.pm-page {
  --pm-shell-width: 940px;
  --pm-gutter: clamp(8px, 2vw, 24px);
  --pm-accent: #990000;
  --pm-paper: #fff;
  --pm-ink: #202020;
  --pm-rule: #ddd;
  --pm-nav-font: 12px;
  color: var(--pm-ink);
}
.pm-page .pm-intro { max-width: var(--pm-shell-width); margin: 0 auto; padding: 6px var(--pm-gutter) 12px; box-sizing: border-box; text-align: center; font-size: 10px; color: #ddd; background: #333; }
.pm-shell { width: min(100%, var(--pm-shell-width)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--pm-paper); font: 12px/1.5 Verdana, Arial, Helvetica, sans-serif; }
.pm-header, .pm-brand { display: block; }
.pm-brand img { display: block; width: 100%; height: auto; }
.pm-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 0 12px 8px; gap: 2px 0; border-bottom: 1px solid var(--pm-rule); font-size: var(--pm-nav-font); }
.pm-nav a { display: block; padding: 7px 8px; color: #000; text-align: center; }
.pm-nav a:hover, .pm-nav a[aria-current="page"] { color: var(--pm-accent); text-decoration: underline; }
.pm-page a:focus-visible, .pm-page select:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pm-skip { position: absolute; z-index: 1; left: 8px; top: 8px; transform: translateY(-200%); padding: 10px; background: #fff; }
.pm-skip:focus { transform: none; }
#pm-content { min-width: 0; min-height: 371px; padding: 20px 0 14px; overflow-x: auto; overflow-wrap: anywhere; box-sizing: border-box; }
#pm-content img { max-width: 100%; }
#pm-content img:not([src$="/blank.gif"]) { height: auto; }
#pm-content select { max-width: 100%; }
#pm-content .plxmnews { float: none; max-width: 100%; }
.pm-error { padding: 0 var(--pm-gutter); }
.pm-footer { max-width: var(--pm-shell-width); margin: 0 auto; padding: 24px var(--pm-gutter); box-sizing: border-box; text-align: center; color: #ccc; font-size: 11px; line-height: 1.6; display: grid; gap: 8px; }
.pm-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.pm-footer a { color: #ddd; }
.pm-footer a:hover { color: #fff; text-decoration: underline; }
.pm-home { padding: 0 var(--pm-gutter); text-align: center; }
.pm-project-collage { position: relative; max-width: 684px; margin-inline: auto; }
.pm-project-collage > img { display: block; width: 100%; height: auto; }
.pm-project-hit { position: absolute; display: block; }
.pm-project-hit:hover, .pm-project-hit:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: -2px; }
.pm-home-credit { margin: 28px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; font-size: 10px; }
.pm-home-credit img { vertical-align: middle; }
/* Narrow screens: release historical presentation widths where practical.
   Remaining exceptionally wide tables can scroll within the content, never the entire page. */
@media (max-width: 760px) {
  .pm-nav { padding-inline: 6px; }
  .pm-nav a { padding: 10px 8px; }
  #pm-content { padding: 14px 8px; }
  #pm-content table[width] { max-width: 100%; }
  #pm-content :is(td, th)[width] { width: auto; }
  #pm-content > table > :is(tbody,thead,tfoot) > tr > td:first-child:is([width="64"],[width="65"],[width="16"]) { width: 8px; }
  #pm-content > table > :is(tbody,thead,tfoot) > tr > td:last-child:is([width="29"],[width="33"],[width="34"]) { width: 8px; }
  #pm-content .textartikel, #pm-content .newstext, #pm-content .news_text { font-size: 12px; line-height: 1.55; }
  #pm-content select { font-size: 12px; }
  /* The historical chapter navigation is one row with three cells. */
  #pm-content table[width="550"] { display: block; width: 100%; }
  #pm-content table[width="550"] > tbody { display: block; }
  #pm-content table[width="550"] > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
  #pm-content table[width="550"] > tbody > tr > td { display: block; min-width: 0; width: auto; }
  #pm-content table[width="550"] > tbody > tr > td:nth-child(2) { grid-row: 1; grid-column: 1 / -1; }
  #pm-content table[width="550"] select { width: 100%; padding: 6px 2px; box-sizing: border-box; }
}
.pm-project-hit-1 { left: 0.14620%; top: 0.13966%; width: 41.08187%; height: 56.00559%; }
.pm-project-hit-2 { left: 42.69006%; top: 0.13966%; width: 56.87135%; height: 41.34078%; }
.pm-project-hit-3 { left: 0.14620%; top: 57.54190%; width: 41.37427%; height: 41.62011%; }
.pm-project-hit-4 { left: 42.69006%; top: 42.31844%; width: 57.01754%; height: 56.42458%; }
.pm-static-top { height: 28px; }
.pm-static-message { padding: 0 var(--pm-gutter); text-align: center; }
@media (max-width: 760px) {
  .pm-standalone #pm-content > table > tbody > tr > td:first-child[width="42"] { width: 8px; }
  .pm-standalone #pm-content > table > tbody > tr > td:last-child[width="65"] { width: 8px; }
}

/* Patch 16b: keep the original 111 x 78 article previews. */
.pm-article-list { margin: 0 33px 0 65px; }
.pm-article-list h1 { margin: 0 0 36px; }
.pm-article-list ul { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.pm-article-list li { display: grid; grid-template-columns: 111px minmax(0, 1fr); align-items: center; gap: 6px; }
#pm-content .pm-article-list li > a img { display: block; width: 111px; height: auto; }
@media (max-width: 760px) {
  .pm-article-list { margin-inline: 8px; }
  .pm-article-list h1 { margin-bottom: 20px; }
}
