/* modern-archive.css
   Wrapper-only modernization for max-ehrlich.org
   Archival rule: content tables/text remain untouched. */

/* 1. ARCHIVE WRAPPER RESET */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0;
    padding: 0;
    /* Lighten the legacy mid-gray page surround while preserving the archive look */
    background-color: #F2F2F2;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #000;
}

a { color: #006666; }
a:visited { color: #990000; }
a:active { color: #996600; }

/* 2. PAGE CONTAINER */
.page {
    width: 100%;
}

/* 3. THE "TIGHT" HEADER (Fixes the white gap) */
.header-wrapper {
    background-color: #feefe0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}
.header-wrapper td, .header-wrapper th {
    padding: 0; /* Ensures no internal gaps in header */
    margin: 0;
}

/* 4. MAIN LAYOUT: sidebar + archive content */
.main-layout {
    width: 100%;
    border-collapse: collapse;
}

/* 5. THE "BRACKET-SAFE" SIDEBAR */
.sidebar {
    width: 150px !important;
    min-width: 150px;
    white-space: nowrap;
    vertical-align: top;
    padding: 10px 10px 20px 10px;
}
.sidebar a {
    display: block;
    text-decoration: none;
    color: #006666;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 13px;
    margin: 0;

    /* More generous vertical rhythm for readability */
    line-height: 1.55;
    padding: 5px 0 5px 40px; /* room for the chevron */

    /* Modern recreation of the legacy navigation affordance */
    position: relative;
}

/* Sidebar navigation chevron (image-based) */
.sidebar a{
    line-height: 1.75;
    padding: 6px 0 6px 46px; /* room for the chevron behind text */
    position: relative;
}

.sidebar a::before{
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 44px;
    height: 26px;
    transform: translateY(-50%);
    background-image: url('images/ui/chevron-right.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    opacity: 0.95;
    z-index: 0;
}

.sidebar a:hover::before{
    background-image: url('images/ui/chevron-up45.png');
}

.sidebar a span,
.sidebar a{
    position: relative;
    z-index: 1;
}

/* 6. THE IMMUTABLE CONTENT AREA */
.archive-content {
    vertical-align: top;
    padding: 0 20px 20px 20px;
    background-color: transparent;
}

/* Ensure original tables inside content don't break layout */
.archive-content table {
    border-collapse: separate; /* Keeps original spacing */
}

/* 7. CLEAN MEDIA EMBEDS */
iframe {
    display: block;
    margin: 20px auto;
    border: 3px double #006666;
    max-width: 100%;
}

/* 8. LEGACY SPACER SAFETY (wrapper only) */
.spacer, .top-gap, .fp-gap { display: none !important; }

/* =========================
   v5a FIX: remove legacy arrow thumbnails
   and place chevron BEHIND text
   ========================= */

/* Hide any legacy navigation images that appear in the sidebar */
.sidebar img { display: none !important; }

/* Make link padding independent of legacy image tables */
.sidebar a{
  padding: 8px 10px 8px 18px !important; /* comfortable spacing; no left icon gutter */
  line-height: 1.65 !important;
}

/* Chevron artwork sits behind the label */
.sidebar a::before{
  left: 6px !important;
  top: 50% !important;
  width: 170px !important;
  height: 70px !important;
  transform: translateY(-50%) !important;
  opacity: 0.28 !important; /* light green */
  z-index: 0 !important;
}

/* Keep text above the chevron */
.sidebar a,
.sidebar a span,
.sidebar a font,
.sidebar a b,
.sidebar a strong,
.sidebar a em,
.sidebar a i {
  z-index: 1 !important;
}

/* =========================
   v5a FIX: remove legacy arrow thumbnails
   and place chevron BEHIND the sidebar link text
   ========================= */

/* Hide any legacy navigation images that appear in the sidebar */
.sidebar img { display: none !important; }

/* Override prior sidebar link spacing so the chevron can sit under the words */
.sidebar a {
  padding: 10px 12px 10px 14px !important;
  line-height: 1.65 !important;
}

/* Chevron layer: larger and positioned under the text line */
.sidebar a::before {
  left: 6px !important;
  top: 50% !important;
  width: 150px !important;
  height: 60px !important;
  transform: translateY(-50%) !important;
  opacity: 0.30 !important; /* light green, behind text */
  z-index: 0 !important;
}

/* Ensure text stays above chevron */
.sidebar a { z-index: 1; }
.sidebar a span { z-index: 1; }

.press-row{display:flex;align-items:center;gap:10px}
.press-label{white-space:nowrap;font-size:13px}
