/* ==========================================================================
   Little Punks - archive stylesheet
   A static recreation of the 2009 view.php layout. Measurements are taken
   from the original lp.css and the Layout/*.gif sprite sizes, so the desktop
   view is pixel-identical to what ran on bochez.com. Everything below the
   1060px breakpoint is new: the original was fixed-width and unusable on a
   phone.
   ========================================================================== */

:root {
  --lp-cream: #f4f3eb;
  --lp-blue: #6699cc;
  --lp-ink: #1b1b1f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--lp-cream);
  font-family: Geneva, Verdana, Arial, sans-serif;
  color: #000;
}

img { border: 0; }

/* --------------------------------------------------------------------------
   Memorial bar - the one piece of 2026 on the page
   -------------------------------------------------------------------------- */
.memorial-bar {
  background: var(--lp-ink);
  color: #d8d8de;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  letter-spacing: 0.01em;
}
.memorial-bar a { color: #fff; text-decoration: none; border-bottom: 1px solid #555; }
.memorial-bar a:hover { border-bottom-color: #fff; }
.memorial-bar .mb-sep { color: #55555f; }
.memorial-bar .mb-note { color: #8b8b95; }

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
#wrapper {
  position: relative;
  width: 1028px;
  margin: 0 auto;
}

#header {
  width: 1024px;
  height: 167px;
  background-image: url('Layout/newweb_01.gif');
  background-repeat: no-repeat;
  background-position: left top;
}
#header h1 {
  /* the wordmark lives in the gif; keep a real heading for a11y + SEO */
  margin: 0;
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Top navigation strip - 260 + 99 + 102 + 102 + 102 + 100 + 259 = 1024
   Hover states swap newweb2_0N.gif -> newweb_0N.gif, as the original did with
   inline onmouseover handlers.
   -------------------------------------------------------------------------- */
#links {
  width: 1024px;
  height: 54px;
  display: flex;
  align-items: flex-start;
}
.cap {
  height: 54px;
  background-repeat: no-repeat;
  flex: 0 0 auto;
}
.cap-left  { width: 260px; background-image: url('Layout/newweb_02.gif'); }
.cap-right { width: 259px; background-image: url('Layout/newweb_08.gif'); flex: 1 1 auto; }

.navbtn {
  display: block;
  height: 54px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: left top;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}
.navbtn.is-disabled { cursor: default; opacity: 0.55; }

#links .nb-first  { width: 99px;  background-image: url('Layout/newweb2_03.gif'); }
#links .nb-prev   { width: 102px; background-image: url('Layout/newweb2_04.gif'); }
#links .nb-random { width: 102px; background-image: url('Layout/newweb2_05.gif'); }
#links .nb-next   { width: 102px; background-image: url('Layout/newweb2_06.gif'); }
#links .nb-last   { width: 100px; background-image: url('Layout/newweb2_07.gif'); }

#links .nb-first:hover:not(.is-disabled)  { background-image: url('Layout/newweb_03.gif'); }
#links .nb-prev:hover:not(.is-disabled)   { background-image: url('Layout/newweb_04.gif'); }
#links .nb-random:hover:not(.is-disabled) { background-image: url('Layout/newweb_05.gif'); }
#links .nb-next:hover:not(.is-disabled)   { background-image: url('Layout/newweb_06.gif'); }
#links .nb-last:hover:not(.is-disabled)   { background-image: url('Layout/newweb_07.gif'); }

/* --------------------------------------------------------------------------
   Content columns: news 259 + comic 510 + nav 259 = 1028
   -------------------------------------------------------------------------- */
#content { display: flex; align-items: flex-start; width: 1028px; }

/* ---- news panel ---- */
#news {
  flex: 0 0 259px;
  width: 259px;
  height: 547px;
  background-image: url('Layout/newweb_09.gif');
  background-repeat: no-repeat;
  background-position: left top;
  position: relative;
}
#words {
  position: absolute;
  left: 22px;
  top: 58px;
  width: 216px;
  height: 442px;
  display: flex;
  flex-direction: column;
}
#newsinclude {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}
#ad { flex: 0 0 auto; padding-top: 8px; text-align: center; }
#ad img { width: 210px; height: 210px; display: block; margin: 0 auto; }

.dates {
  font-family: Geneva, Arial, sans-serif;
  font-size: 15px;
  color: var(--lp-blue);
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}
.newstext {
  font-family: Geneva, Arial, sans-serif;
  font-weight: bold;
  font-size: 10px;
  line-height: 1.55;
  color: #000;
}
.newstext hr { border: 0; border-top: 1px solid #b9b7ab; margin: 10px 0 0; }

/* ---- comic column ---- */
#comic {
  flex: 0 0 510px;
  width: 510px;
  background-color: #fff;
  padding-top: 8px;
  text-align: center;
}
#comic-stage { min-height: 200px; }
#comic-stage img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.comic-title {
  font-family: Geneva, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #6b6b6b;
  padding: 6px 10px 10px;
  text-align: center;
}
.comic-title strong { color: #000; font-size: 13px; }

/* ---- Flash / Ruffle ---- */
.flash-stage {
  margin: 0 auto;
  background: #000;
  width: 480px;
  max-width: 100%;
}
.flash-stage ruffle-player,
.flash-stage ruffle-embed { display: block; width: 100%; }

.flash-fallback {
  width: 480px;
  max-width: 100%;
  margin: 0 auto;
  border: 2px dashed #c9c6b6;
  background: #faf9f2;
  padding: 28px 24px;
  text-align: center;
  font-family: Geneva, Arial, sans-serif;
  color: #4a4a4a;
}
.flash-fallback .ff-mark { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.flash-fallback h2 { font-size: 15px; margin: 0 0 10px; color: #000; }
.flash-fallback p { font-size: 11px; line-height: 1.7; margin: 0 0 8px; }
.flash-fallback .ff-quiet { color: #8a8a8a; font-size: 10px; }

/* ---- bottom nav (505px of buttons inside the 510px column) ---- */
#bottomlinks {
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
  background-color: var(--lp-cream);
}
#bottomlinks .nb-first  { width: 99px;  background-image: url('Layout/first.gif'); }
#bottomlinks .nb-prev   { width: 102px; background-image: url('Layout/previous.gif'); }
#bottomlinks .nb-random { width: 102px; background-image: url('Layout/random.gif'); }
#bottomlinks .nb-next   { width: 102px; background-image: url('Layout/next.gif'); }
#bottomlinks .nb-last   { width: 100px; background-image: url('Layout/newest.gif'); }

#bottomlinks .nb-first:hover:not(.is-disabled)  { background-image: url('Layout/firstover.gif'); }
#bottomlinks .nb-prev:hover:not(.is-disabled)   { background-image: url('Layout/previousover.gif'); }
#bottomlinks .nb-random:hover:not(.is-disabled) { background-image: url('Layout/randomover.gif'); }
#bottomlinks .nb-next:hover:not(.is-disabled)   { background-image: url('Layout/nextover.gif'); }
#bottomlinks .nb-last:hover:not(.is-disabled)   { background-image: url('Layout/newestover.gif'); }

#footer {
  background-color: var(--lp-cream);
  padding: 12px 0 24px;
  text-align: center;
  font-family: Geneva, Arial, sans-serif;
  font-size: 11px;
  color: #000;
}
#footer hr { border: 0; border-top: 1px solid #ccc9bb; margin: 0 0 10px; }

/* --------------------------------------------------------------------------
   Right column - replaces flashnav.swf, which was the entire original nav and
   is no longer reachable (its links pointed at bochez.com).
   -------------------------------------------------------------------------- */
#nav { flex: 0 0 259px; width: 259px; padding-left: 0; }

.panel {
  background: #eae8de;
  border: 1px solid #cfccbe;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.panel-title {
  font-family: Geneva, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #8f8d80;
  padding: 6px 10px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.35);
}
.archive-list {
  position: relative; /* offsetParent for the current-item scroll maths */
  max-height: 430px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.archive-list li { margin: 0; }
.archive-list a {
  display: block;
  padding: 3px 10px;
  font-family: Geneva, Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
}
.archive-list a:hover { background: #dcd9cb; color: #000; }
.archive-list a.current { background: var(--lp-blue); color: #fff; }
.archive-list .a-num { color: #9a978a; display: inline-block; min-width: 22px; }
.archive-list a.current .a-num { color: #dce8f5; }
.archive-list .a-flash { color: #b26a00; font-weight: bold; }
.archive-list a.current .a-flash { color: #ffe0a8; }

.panel-body { padding: 10px; }
.panel-body select {
  font-size: 12px;
  color: #069;
  font-family: Verdana, Geneva, sans-serif;
  background-color: #fff;
  width: 100%;
  margin-bottom: 8px;
}
.panel-body p {
  font-family: Geneva, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.6;
  color: #55534a;
  margin: 0 0 8px;
}
.panel-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Responsive - everything from here down is new work.
   Below 1060px the three columns stack, comic first.
   -------------------------------------------------------------------------- */
@media (max-width: 1059px) {
  #wrapper { width: 100%; max-width: 560px; padding: 0 12px; }

  #header {
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 167;
    background-size: contain;
    background-position: center top;
  }

  #links { width: 100%; height: auto; justify-content: center; }
  #links .cap { display: none; }
  #links .navbtn { flex: 1 1 0; min-width: 0; background-size: contain; height: 44px; }

  #content { flex-direction: column; width: 100%; }

  #comic {
    order: 1;
    flex: 1 1 auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  #bottomlinks { flex-wrap: nowrap; }
  #bottomlinks .navbtn { flex: 1 1 0; min-width: 0; background-size: contain; height: 44px; }

  #news {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    background-image: none;
    background: #eae8de;
    border: 1px solid #cfccbe;
    border-radius: 10px;
    margin-top: 16px;
    padding: 12px 14px;
  }
  #words {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
  }
  #news::before {
    content: 'News';
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #6b6a60;
    margin-bottom: 8px;
  }
  #newsinclude { overflow: visible; padding-right: 0; }
  .newstext { font-size: 12px; }

  #nav { order: 3; flex: 1 1 auto; width: 100%; margin-top: 16px; }
  .archive-list { max-height: 320px; }
  .archive-list a { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 420px) {
  #links .navbtn, #bottomlinks .navbtn { height: 34px; }
  .memorial-bar { font-size: 11px; }
}
