/* Win98 newspaper theme — layered on top of 98.css */

body {
  background: #008080; /* classic teal desktop */
  margin: 0;
  padding: 18px;
  font-family: "ms_sans_serif", Tahoma, sans-serif;
}

.desktop-window {
  max-width: 1000px;
  margin: 0 auto;
}

/* the printed "paper" area */
.window-body {
  background: #f4f1e8;
  padding: 18px 22px;
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 4px double #000;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.masthead-side {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12px;
  font-style: italic;
  white-space: nowrap;
  padding-bottom: 6px;
}
.masthead-center { text-align: center; flex: 1; }
.paper-name {
  font-family: "Old English Text MT", "UnifrakturCook", "Times New Roman", serif;
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #bbb;
}
.masthead-rule { border-top: 2px solid #000; margin: 6px 40px; }
.masthead-meta {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Headlines & body ---------- */
.lead-headline a, .article-headline {
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 900;
}
.lead-headline {
  font-size: 34px;
  line-height: 1.05;
  margin: 6px 0 4px;
  text-align: center;
}
.lead-headline a, .story-headline a { color: #000; text-decoration: none; }
.lead-headline a:hover, .story-headline a:hover { text-decoration: underline; }

.lead-story { text-align: justify; }
.lead-img {
  float: right;
  width: 240px;
  margin: 0 0 8px 14px;
  border: 1px solid #000;
  filter: grayscale(100%) contrast(1.1);
}
.lead-body, .story-body, .article-body {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
}
.byline {
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

.thick-rule { border: none; border-top: 3px solid #000; margin: 14px 0; }

/* ---------- Multi-column body ---------- */
.columns {
  column-count: 3;
  column-gap: 22px;
  column-rule: 1px solid #999;
}
@media (max-width: 760px) { .columns { column-count: 1; } }

.story {
  break-inside: avoid;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
}
.story-headline { font-size: 18px; line-height: 1.1; margin: 0 0 4px; }
.story-img {
  width: 100%;
  border: 1px solid #000;
  margin: 4px 0;
  filter: grayscale(100%) contrast(1.1);
}
.read-more {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 12px;
  color: #000080;
}

/* ---------- Single article ---------- */
.single-article { max-width: 720px; margin: 0 auto; }
.article-headline { font-size: 32px; line-height: 1.1; text-align: center; margin: 6px 0; }
.article-img {
  max-width: 100%;
  display: block;
  margin: 8px auto;
  border: 1px solid #000;
  filter: grayscale(100%) contrast(1.05);
}
.article-body p { margin: 0 0 12px; text-align: justify; }
.article-toolbar { margin-bottom: 10px; }


/* ---- Related Coverage ---- */
.related-coverage {
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid #c0c0c0;
  border-top: 2px solid #000080;
  border-bottom: 2px solid #000080;
  background: #f5f5f5;
}
.related-heading {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #000080;
  font-family: "Microsoft Sans Serif", sans-serif;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #c0c0c0;
}
.related-list li:last-child {
  border-bottom: none;
}
.related-list a {
  color: #0000cc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.related-list a:hover {
  text-decoration: underline;
  color: #cc0000;
}
.related-meta {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}
.source-box { margin: 18px 0; font-size: 12px; }
.source-text {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid #808080;
  padding: 8px;
  max-height: 240px;
  overflow: auto;
  font-family: "Courier New", monospace;
}

.no-news { padding: 40px; text-align: center; font-size: 14px; }
.paper-footer { margin-top: 16px; }

/* ===================== ENHANCED FRONT (v2) ===================== */

/* Win98 menu bar */
.menu-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #c0c0c0;
  padding: 2px 8px;
  border-bottom: 1px solid #808080;
  box-shadow: inset 0 1px 0 #fff;
  font-size: 12px;
}
.menu-bar span u { text-decoration: underline; }
.menu-bar > span { cursor: default; padding: 1px 4px; }
.menu-bar > span:hover:not(.menu-spacer):not(.menu-addr) { background: #000080; color: #fff; }
.menu-spacer { flex: 1; }
.menu-addr {
  background: #fff; border: 1px solid #808080; padding: 1px 6px;
  font-family: "Courier New", monospace; font-size: 11px; color: #000080;
}

/* Breaking-news ticker */
.ticker {
  display: flex; align-items: stretch;
  background: #000; color: #ffd; overflow: hidden;
  border-bottom: 2px solid #c0c0c0;
}
.ticker-tag {
  background: #b00; color: #fff; font-weight: bold; font-size: 11px;
  letter-spacing: 1px; padding: 4px 10px; white-space: nowrap;
  display: flex; align-items: center; animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .45; } }
.ticker-track { overflow: hidden; flex: 1; position: relative; }
.ticker-move {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 4px 0; animation: scroll-left 60s linear infinite;
}
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-item { font-family: "Times New Roman", serif; font-size: 13px; padding: 0 14px; }
.ticker-dot { color: #ff5; font-size: 10px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Masthead extras */
.masthead-toprule { font-size: 10px; letter-spacing: 4px; color: #000; margin-bottom: 2px; }
.masthead-weather { font-style: normal; font-size: 10px; color: #444; margin-top: 4px; }
.masthead-side-r { text-align: right; }
.masthead-side > div { line-height: 1.25; }

/* Kicker labels */
.kicker {
  display: inline-block; background: #b00; color: #fff;
  font-size: 11px; font-weight: bold; letter-spacing: 2px;
  padding: 2px 10px; margin: 0 auto 6px; text-align: center;
}
.lead-story { text-align: center; }
.lead-story .lead-body, .lead-story .read-more { text-align: justify; display: block; }

/* Drop cap on the lead */
.dropcap::first-letter {
  float: left; font-family: "Times New Roman", serif; font-weight: 900;
  font-size: 52px; line-height: 42px; padding: 4px 8px 0 0; color: #111;
}

/* Section divider */
.section-label { text-align: center; margin: 8px 0 14px; }
.section-label span {
  font-family: "Times New Roman", serif; font-weight: bold; letter-spacing: 3px;
  font-size: 13px; border-top: 2px solid #000; border-bottom: 2px solid #000;
  padding: 2px 16px;
}

/* Story kicker (source tag) */
.story-kicker {
  font-family: "ms_sans_serif", Tahoma, sans-serif; font-size: 9px;
  text-transform: uppercase; letter-spacing: 1px; color: #fff;
  background: #000080; display: inline-block; padding: 1px 6px; margin-bottom: 3px;
}
.byline-sm { text-align: left; font-size: 11px; margin: 2px 0 6px; }

/* Win98 start-bar footer */
.startbar {
  display: flex; align-items: center; gap: 6px;
  background: #c0c0c0; padding: 3px 4px;
  border-top: 2px solid #fff;
}
.start-btn { font-size: 13px; padding: 2px 8px; }
.startbar-task {
  flex: 1; font-size: 12px; padding: 3px 8px;
  border: 1px solid #808080; box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #fff;
  background: #c0c0c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.startbar-tray {
  display: flex; align-items: center; gap: 10px; font-size: 11px;
  padding: 3px 8px;
  border: 1px solid #808080; box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #fff;
}
.tray-clock { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .menu-addr { display: none; }
  .masthead { flex-direction: column; align-items: center; gap: 6px; }
  .masthead-side, .masthead-side-r { text-align: center; }
}

/* ---------- Subscribe / share banner ---------- */
.joinbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(#dfe8ff, #c0d0f0);
  border: 2px solid #000080;
  box-shadow: inset 1px 1px 0 #fff;
  padding: 8px 12px; margin-bottom: 14px;
}
.joinbar-msg { font-size: 13px; color: #00006b; }
.joinbar-icon { font-size: 18px; margin-right: 4px; }
.joinbar-sub { display: block; font-size: 11px; color: #333; margin-top: 2px; }
.joinbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.joinbtn {
  display: inline-block; text-decoration: none; color: #000;
  background: #c0c0c0; font-size: 12px; padding: 5px 12px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 2px 2px 0 #808080;
}
.joinbtn:hover { background: #d4d0c8; }
.joinbtn:active { box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080; }
.join-primary { background: #000080; color: #fff; font-weight: bold; }
.join-primary:hover { background: #0000b0; }
