@charset "UTF-8";
/* ============================================================
   porges-modern.css — contemporary look for the legacy pages
   Same palette as the new home pages (red #ff3333, black #0a0a0a).
   Loaded LAST; every rule is scoped under `html body.pm` so it
   only affects pages that opt in with <body class="pm">, and so it
   outranks the older !important rules.
   ============================================================ */

html body.pm {
  --red: #ff3333;
  --red-dark: #d92626;
  --black: #0a0a0a;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #e4e1dc;
  --paper: #ffffff;
  --bg: #0a0a0a;
  background: var(--bg) !important;
  margin: 0 !important;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
html body.pm,
html body.pm td, html body.pm th, html body.pm p, html body.pm div,
html body.pm span, html body.pm li, html body.pm blockquote,
html body.pm font, html body.pm a, html body.pm strong, html body.pm b {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
}
html body.pm b, html body.pm strong { font-weight: 700 !important; }
html body.pm a { color: var(--red-dark) !important; text-decoration: none; }
html body.pm a:hover { text-decoration: underline; }
html body.pm p { margin: 0 0 1em; }
html body.pm h2, html body.pm h2 span, html body.pm h3, html body.pm h3 span {
  font-size: 22px !important; line-height: 1.3 !important; color: var(--red) !important;
}
html body.pm blockquote {
  border-left: 4px solid var(--red) !important;
  background: #faf7f3;
  margin: 1.2em 0 !important;
  padding: 12px 18px !important;
}

/* ---------- Page frame (legacy outer table) ---------- */
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 !important; /* collé à gauche : plus de colonne noire */
  float: none !important;
  height: 100vh !important; /* au moins la hauteur de l'écran : colonnes prolongées */
  background: transparent !important;
  border-collapse: collapse !important;
}

/* Top bar: original red band (with its dark-red rule) and black corner */
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child > td {
  height: 52px !important;
}
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child > td[bgcolor="#000000"] {
  background: var(--black) !important;
}
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child > td:is([height],[bgcolor="#ff3333" i]):not([bgcolor="#000000"]) {
  position: relative;
  background-color: var(--red) !important;
  background-image: url("Images/LigneH990033.gif") !important;
  background-repeat: repeat-x !important;
}
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child > td:is([height],[bgcolor="#ff3333" i]):not([bgcolor="#000000"]):not(:has(a))::before {
  content: "PORGES FAMILIES  \00B7  OVER FOUR CENTURIES OF FAMILY HISTORY";
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
  color: #fff; font: 700 12px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 2.5px; white-space: nowrap;
}

/* Edge cells: keep the thin dark-red left edge, drop the right one */
html body.pm td[bgcolor="#990033"][width="6"] {
  background-color: #990033 !important;
  width: 6px !important; padding: 0 !important; font-size: 0 !important;
}
html body.pm td[bgcolor="#990033"][rowspan] { display: none !important; }

/* Sidebar navigation */
html body.pm td[background*="coin.gif"][bgcolor="#FF3333"],
html body.pm td[background*="coin.gif"][bgcolor="#ff3333"] {
  background-color: var(--red) !important;
  background-image: url("Images/coin.gif") !important;
  background-repeat: repeat-y !important;
  background-position: right top !important;
  width: 150px !important; min-width: 150px !important; max-width: 150px !important;
  padding: 0 !important;
  vertical-align: top !important;
}
html body.pm .side-nav {
  position: sticky; top: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 18px 0 !important;
  text-align: left !important;
}
html body.pm .side-nav div { margin: 0 !important; }
html body.pm .side-nav a {
  display: block !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase;
  line-height: 1.2 !important;
  padding: 11px 22px !important;
  margin: 0 !important;
  border-left: 3px solid transparent;
  text-decoration: none !important;
}
html body.pm .side-nav a:hover {
  background: var(--black) !important;
  border-left-color: #fff;
  color: #fff !important;
}

/* Main content cell: white paper */
html body.pm td[bgcolor="#CCFFFF"], html body.pm td[bgcolor="#ccffff"],
html body.pm table[bgcolor="#ccffff"], html body.pm table[bgcolor="#CCFFFF"] {
  background: var(--paper) !important;
}
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:nth-child(2) > td[bgcolor="#CCFFFF"],
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:nth-child(2) > td[bgcolor="#ccffff"] {
  padding: 28px 44px 60px !important;
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Page title ---------- */
html body.pm .typewriter-wrapper {
  border-top: 4px solid var(--black) !important;
  border-bottom: 4px solid var(--black) !important;
  padding: 12px 6px !important;
}
html body.pm .typewriter,
html body.pm .typewriter-wrapper p,
html body.pm #page-title, html body.pm #page-title-1, html body.pm #page-title-2 {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  color: var(--red) !important;
  line-height: 1.2 !important;
}

/* ---------- In-page menus (grey boxes) ---------- */
html body.pm tr[bgcolor="#cccccc"],
html body.pm tr[bgcolor="#CCCCCC"] { background: transparent !important; }
html body.pm table[bgcolor="#FF9999"], html body.pm table[bgcolor="#ff9999"] {
  background: transparent !important;
}
html body.pm tr[bgcolor="#cccccc"] > td,
html body.pm tr[bgcolor="#CCCCCC"] > td {
  background: var(--black) !important;
  border-left: 5px solid var(--red) !important;
  padding: 10px 14px !important;
}
html body.pm tr[bgcolor="#cccccc"] > td:hover,
html body.pm tr[bgcolor="#CCCCCC"] > td:hover { background: var(--red) !important; }
html body.pm tr[bgcolor="#cccccc"] a, html body.pm tr[bgcolor="#cccccc"] b,
html body.pm tr[bgcolor="#CCCCCC"] a, html body.pm tr[bgcolor="#CCCCCC"] b {
  color: #fff !important;
}

/* ---------- Data tables (border="1") ---------- */
html body.pm table[border="1"] {
  border-collapse: collapse !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  margin: 10px auto 24px !important;
}
html body.pm table[border="1"] td, html body.pm table[border="1"] th {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 8px 10px !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}
html body.pm :is(table[border="1"] > tbody > tr:first-child > td, table[border="1"] > tr:first-child > td):not(:has(p ~ p, br ~ br, table, img)):not([background]),
html body.pm table[border="1"] th {
  background: var(--black) !important;
  font-weight: 700 !important;
  position: sticky; top: 0;
}
html body.pm :is(table[border="1"] > tbody > tr:first-child > td, table[border="1"] > tr:first-child > td):not(:has(p ~ p, br ~ br, table, img)):not([background]),
html body.pm :is(table[border="1"] > tbody > tr:first-child > td, table[border="1"] > tr:first-child > td):not(:has(p ~ p, br ~ br, table, img)):not([background]) *,
html body.pm table[border="1"] th, html body.pm table[border="1"] th * {
  color: #fff !important;
}
html body.pm table[border="1"] > tbody > tr:nth-child(even):not([bgcolor]) > td:not([background]) { background: #faf8f5 !important; }
html body.pm table[border="1"] > tbody > tr:not([bgcolor]):hover > td:not([background]) { background: #ffe3e3 !important; }

/* Section headings used by some pages */
html body.pm .secthead {
  background: transparent !important;
  border-bottom: 3px solid var(--black) !important;
  text-align: left !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--red) !important;
  padding: 6px 0 8px !important;
  margin: 36px 0 18px !important;
}
html body.pm table[border="1"] td *, html body.pm table[border="1"] th * {
  font-size: 13.5px !important; line-height: 1.45 !important;
}

/* ---------- Images ---------- */
html body.pm hr { max-width: 100% !important; border: 0 !important; border-top: 1px solid var(--line) !important; }
html body.pm img { border-radius: 2px; }

/* ---------- Layout variants ---------- */
/* Any table cell holding the side menu = red sidebar with zigzag */
html body.pm td:has(.side-nav) {
  background-color: var(--red) !important;
  background-image: url("Images/coin.gif") !important;
  background-repeat: repeat-y !important;
  background-position: right top !important;
  width: 150px !important; min-width: 150px !important; max-width: 150px !important;
  padding: 0 !important; vertical-align: top !important;
}
html body.pm td:has(.side-nav) > div { text-align: left !important; }
/* Thin dark-red edge cells carrying coin.gif */
html body.pm td[bgcolor="#990033"][background*="coin.gif"] {
  background-image: none !important; background-color: #990033 !important;
  width: 6px !important; padding: 0 !important;
}
/* Pages whose own CSS paints the content turquoise */
html body.pm .content, html body.pm .content-inner,
html body.pm td[bgcolor="#CCFFFF"] *[bgcolor="#CCFFFF"],
html body.pm td[bgcolor="#ccffff"] *[bgcolor="#ccffff"] { background-color: var(--paper) !important; }
html body.pm[bgcolor] { background-color: var(--bg) !important; }

/* Grid-based variant (.page-shell) */
html body.pm .page-shell { max-width: 1240px; margin: 0; background: var(--paper); }
html body.pm .layout { grid-template-columns: 6px 150px minmax(0,1fr) 0 !important; }
html body.pm .topbar { grid-template-columns: 156px 1fr 0 !important; min-height: 52px !important; }
html body.pm .rail-right, html body.pm .topbar-right { display: none !important; }
html body.pm .rail-left { background: #990033 !important; }
html body.pm .sidebar {
  background: var(--red) url("Images/coin.gif") repeat-y right top !important;
  padding: 18px 0 !important;
}
html body.pm :is(.topbar-center,.topbar-middle) { position: relative; background-color: var(--red) !important; }
html body.pm :is(.topbar-center,.topbar-middle):not(:has(a))::before {
  content: "PORGES FAMILIES  \00B7  OVER FOUR CENTURIES OF FAMILY HISTORY";
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
  color: #fff; font: 700 12px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 2.5px; white-space: nowrap;
}
html body.pm .content { padding: 28px 44px 60px !important; }

/* Menu cards: every element inside in white */
html body.pm tr[bgcolor="#cccccc"] > td *, html body.pm tr[bgcolor="#CCCCCC"] > td * { color: #fff !important; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  html body.pm td[background*="coin.gif"][bgcolor="#FF3333"],
  html body.pm td[background*="coin.gif"][bgcolor="#ff3333"] {
    width: 100% !important; max-width: none !important; min-width: 0 !important;
    background-image: none !important;
  }
  html body.pm .side-nav {
    position: static;
    display: flex !important; flex-wrap: wrap; justify-content: center;
    padding: 6px 4px !important;
  }
  html body.pm .side-nav a {
    padding: 8px 10px !important; font-size: 11.5px !important; border-left: 0;
  }
  html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:nth-child(2) > td[bgcolor="#CCFFFF"],
  html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:nth-child(2) > td[bgcolor="#ccffff"] {
    padding: 18px 16px 40px !important;
  }
  html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child > td:is([height],[bgcolor="#ff3333" i]):not([bgcolor="#000000"]):not(:has(a))::before {
    left: 16px; font-size: 10px; letter-spacing: 1.5px;
  }
}
@media (max-width: 768px) {
  html body.pm .typewriter, html body.pm .typewriter-wrapper p,
  html body.pm #page-title { font-size: 26px !important; }
  html body.pm, html body.pm td, html body.pm p, html body.pm div,
  html body.pm span, html body.pm li, html body.pm a, html body.pm b,
  html body.pm strong, html body.pm font { font-size: 15px !important; }
  /* Layout tables inside the content flow as simple blocks on phones */
  html body.pm td[bgcolor] table:not([border="1"]),
  html body.pm td[bgcolor] table:not([border="1"]) > tbody,
  html body.pm td[bgcolor] table:not([border="1"]) > tbody > tr,
  html body.pm td[bgcolor] table:not([border="1"]) > tbody > tr > td {
    display: block !important; width: 100% !important; max-width: 100% !important;
    box-sizing: border-box !important; float: none !important; height: auto !important;
  }
  html body.pm iframe, html body.pm video { max-width: 100% !important; }
  html body.pm td:has(.side-nav) { width: 100% !important; max-width: none !important; min-width: 0 !important; background-image: none !important; }
  html body.pm .layout, html body.pm .topbar { grid-template-columns: 1fr !important; }
  html body.pm .rail-left, html body.pm .topbar-left { display: none !important; }
  html body.pm .sidebar { background-image: none !important; padding: 6px 4px !important; }
  html body.pm .content { padding: 18px 16px 40px !important; }
  html body.pm .typewriter, html body.pm .typewriter-wrapper p {
    white-space: normal !important; animation: none !important; width: auto !important;
    border-right: 0 !important;
  }
  html body.pm td[width] { max-width: 100% !important; }
  html body.pm table[border="1"] {
    display: block !important; overflow-x: auto; max-width: 100% !important; width: 100% !important;
  }
}

/* Links placed in the red top band (chapter menus) */
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child a,
html :is(body.pm, body.pm > .main-wrapper) > table:first-of-type > tbody > tr:first-child a *,
html body.pm .topbar-center a { color: #fff !important; font-weight: 700 !important; font-size: 13px !important; }

/* Long grey content blocks (several lines) stay light instead of black */
html body.pm tr[bgcolor="#cccccc"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)),
html body.pm tr[bgcolor="#CCCCCC"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)) {
  background: #f6f3ef !important;
}
html body.pm tr[bgcolor="#cccccc"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)):hover,
html body.pm tr[bgcolor="#CCCCCC"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)):hover { background: #f6f3ef !important; }
html body.pm tr[bgcolor="#cccccc"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)) *,
html body.pm tr[bgcolor="#CCCCCC"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)) * { color: var(--ink) !important; }
html body.pm tr[bgcolor="#cccccc"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)) a,
html body.pm tr[bgcolor="#CCCCCC"] > td:is(:has(br ~ br), :has(p ~ p), :has(table)) a { color: var(--red-dark) !important; }

/* "Back to top" buttons: black with white text, red on hover */
html body.pm a.back-to-top, html body.pm .go-top, html body.pm .go-top-modern {
  background: var(--black) !important; border-radius: 20px !important;
}
html body.pm a.back-to-top, html body.pm a.back-to-top *,
html body.pm .go-top, html body.pm .go-top *, html body.pm .go-top-modern, html body.pm .go-top-modern * {
  color: #fff !important; text-decoration: none !important;
}
html body.pm a.back-to-top:hover, html body.pm .go-top:hover, html body.pm .go-top-modern:hover { background: var(--red) !important; }


/* Arbres familiaux dans un <th> (ex. AdolfPorges) : le texte des blockquote reste lisible sur fond clair */
html body.pm table[border="1"] th blockquote,
html body.pm table[border="1"] th blockquote *:not(a) { color: #1a1a1a !important; }
html body.pm table[border="1"] th blockquote a { color: var(--red) !important; }
