/* ==========================================================
   THE MIR — themir.com
   Deliberately dated late-90s / old-Windows aesthetic.
   Beveled chrome, titlebar gradients, teal desktop background.
   ========================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #008080; /* classic Win95 desktop teal */
  background-image: repeating-linear-gradient(45deg, #008080 0, #008080 6px, #007878 6px, #007878 12px);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  color: #000;
}

.page {
  width: 980px;
  margin: 10px auto;
  background: #c0c0c0;
  border: 3px outset #fff;
  padding: 4px;
}

/* ---------- scrolling welcome strip ---------- */
.welcome-strip {
  background: #000080;
  border: 2px inset #808080;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 4px;
}
.welcome-strip span {
  display: inline-block;
  padding: 4px 0;
  color: #ffff00;
  font: bold 13px Verdana, Geneva, sans-serif;
  animation: mir-marquee 22s linear infinite;
}
@keyframes mir-marquee {
  0%   { transform: translateX(980px); }
  100% { transform: translateX(-100%); }
}

/* ---------- masthead ---------- */
.masthead {
  background: linear-gradient(180deg, #000080 0%, #4b0082 60%, #000060 100%);
  border: 2px outset #9090ff;
  text-align: center;
  padding: 18px 10px 12px 10px;
  margin-bottom: 4px;
}
.masthead h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  letter-spacing: 4px;
  color: #ffd700;
  text-shadow: 2px 2px 0 #000, 0 0 12px #ff8c00;
}
.masthead .tagline {
  margin: 6px 0 0 0;
  color: #ffffff;
  font: italic 15px Georgia, serif;
}
.masthead .est {
  color: #b0b0ff;
  font: 11px Verdana, sans-serif;
  margin-top: 4px;
}

/* ---------- layout ---------- */
.cols { display: table; width: 100%; table-layout: fixed; }
.sidebar { display: table-cell; width: 205px; vertical-align: top; padding-right: 4px; }
.main {
  display: table-cell;
  vertical-align: top;
  background: #ffffff;
  border: 2px inset #808080;
  padding: 14px 18px 20px 18px;
}

/* ---------- window-style boxes (Win98 titlebar look) ---------- */
.box {
  border: 2px outset #fff;
  background: #c0c0c0;
  margin-bottom: 8px;
}
.box .bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font: bold 11px Tahoma, Verdana, sans-serif;
  padding: 4px 6px;
  letter-spacing: 1px;
}
.box .inner { padding: 8px; font: 12px Verdana, sans-serif; }

/* ---------- sidebar nav ---------- */
.navbtn {
  display: block;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 6px 8px;
  margin: 0 0 3px 0;
  font: bold 12px Verdana, Geneva, sans-serif;
  color: #000080;
  text-decoration: none;
}
.navbtn:hover { background: #d4d0c8; color: #800000; }
.navbtn:active { border-style: inset; }
.navbtn.current {
  border-style: inset;
  background: #ffffcc;
  color: #800000;
}
.navbtn .nb-icon { margin-right: 5px; }

/* ---------- NEW! badge ---------- */
.new-badge {
  background: #ff0000;
  color: #ffff00;
  font: bold 9px Verdana, sans-serif;
  padding: 1px 4px;
  margin-left: 4px;
  animation: mir-blink 1.1s step-start infinite;
}
@keyframes mir-blink { 50% { visibility: hidden; } }

/* ---------- email opt-in panels ---------- */
.optin { border: 3px outset #fff; background: #c0c0c0; margin: 14px 0; }
.optin .bar {
  background: linear-gradient(90deg, #800000, #ff4500);
  color: #ffff00;
  font: bold 12px Tahoma, Verdana, sans-serif;
  padding: 5px 8px;
  letter-spacing: 1px;
}
.optin .inner {
  background: #ffffcc;
  border-top: 1px solid #808080;
  padding: 10px;
  font: 12px Verdana, sans-serif;
}
.optin label { font-weight: bold; }
.optin input[type="email"], .optin input[type="text"] {
  border: 2px inset #808080;
  background: #fff;
  font: 13px "Courier New", monospace;
  padding: 4px;
  width: 100%;
  margin: 5px 0;
}
.optin .fineprint { color: #606060; font-size: 10px; margin-top: 6px; }
.optin-success {
  background: #ccffcc;
  border: 2px inset #008000;
  color: #006000;
  font: bold 12px Verdana, sans-serif;
  padding: 12px;
  text-align: center;
}
.optin-wide { margin: 22px 0; }
.optin-wide .inner { text-align: center; }
.optin-wide input[type="email"] {
  width: 320px;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- buttons ---------- */
.btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  font: bold 12px Verdana, sans-serif;
  color: #000080;
  padding: 5px 14px;
  cursor: pointer;
}
.btn:active { border-style: inset; }
.btn-go {
  background: #ff0000;
  color: #ffff00;
  border: 3px outset #ff8080;
  font: bold 13px Verdana, sans-serif;
  padding: 6px 18px;
  cursor: pointer;
}
.btn-go:hover { background: #dd0000; }
.btn-go:active { border-style: inset; }

/* ---------- headings ---------- */
.main h2 {
  background: #000080;
  color: #ffff00;
  font-family: Georgia, serif;
  font-size: 20px;
  padding: 5px 10px;
  border: 2px outset #8080ff;
  margin: 22px 0 10px 0;
}
.main h2:first-child { margin-top: 0; }
.main h3 {
  color: #800000;
  font-family: Georgia, serif;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 2px;
}
.main p { line-height: 1.55; }

/* per-section accent colors — set class on <body> */
body.sec-shop .main h2, body.sec-shop .box .bar { background: linear-gradient(90deg, #4b0082, #9932cc); }
body.sec-quotes .main h2 { background: linear-gradient(90deg, #006060, #00a0a0); color: #fff; }
body.sec-stories .main h2 { background: linear-gradient(90deg, #800000, #c04000); color: #ffffcc; }
body.sec-practices .main h2 { background: linear-gradient(90deg, #005000, #308030); color: #ffffcc; }
body.sec-news .main h2 { background: linear-gradient(90deg, #b8860b, #daa520); color: #000080; }

/* ---------- decorative rules ---------- */
hr.fancy {
  border: none;
  border-top: 3px double #800080;
  margin: 18px 0;
}
hr.groove { border: 2px groove #c0c0c0; margin: 16px 0; }

/* ---------- quote styling ---------- */
.bigquote {
  background: #ffffcc;
  border: 2px inset #b8a000;
  padding: 12px 18px;
  font: italic 17px Georgia, serif;
  color: #503000;
  margin: 12px 0;
}
.bigquote .attrib {
  display: block;
  text-align: right;
  font: bold 12px Verdana, sans-serif;
  font-style: normal;
  color: #000080;
  margin-top: 6px;
}
ul.quotelist { padding-left: 24px; }
ul.quotelist li { margin-bottom: 10px; line-height: 1.5; }
ul.quotelist li .attrib { color: #000080; font: bold 12px Verdana, sans-serif; }

/* ---------- data tables ---------- */
table.datatable { border-collapse: collapse; width: 100%; font: 13px Verdana, sans-serif; }
table.datatable th {
  background: #000080;
  color: #ffff00;
  border: 1px solid #404040;
  padding: 5px 8px;
  text-align: left;
}
table.datatable td { border: 1px solid #808080; padding: 5px 8px; background: #f4f4f4; }
table.datatable tr:nth-child(even) td { background: #e8e8ff; }

/* ---------- product cards ---------- */
.productgrid { text-align: center; }
.productcard {
  display: inline-block;
  vertical-align: top;
  width: 220px;
  border: 2px outset #fff;
  background: #f0f0e8;
  margin: 6px;
  padding: 8px;
  text-align: center;
  font: 12px Verdana, sans-serif;
}
.productcard img { width: 100%; height: 160px; object-fit: cover; border: 2px inset #808080; }
.productcard .pname { font: bold 13px Verdana, sans-serif; color: #4b0082; margin: 6px 0 2px 0; }
.productcard .price { color: #b00000; font-weight: bold; font-size: 14px; }
.productimg {
  border: 3px inset #808080;
  max-width: 100%;
}
.imgrow { text-align: center; }
.imgrow img { border: 3px inset #808080; max-width: 45%; margin: 4px; vertical-align: top; }
img.floatright { float: right; margin: 0 0 10px 14px; border: 3px inset #808080; max-width: 300px; }
img.floatleft { float: left; margin: 0 14px 10px 0; border: 3px inset #808080; max-width: 300px; }
.clear { clear: both; }

/* ---------- visitor counter ---------- */
.counter {
  background: #000;
  color: #00ff00;
  font: bold 15px "Courier New", monospace;
  letter-spacing: 3px;
  padding: 3px 8px;
  border: 2px inset #808080;
  display: inline-block;
}

/* ---------- comic sans accents (sparingly, but present) ---------- */
.funhead {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #ff00ff;
  text-shadow: 1px 1px 0 #800080;
}

/* ---------- footer ---------- */
.footer {
  background: #000080;
  border: 2px outset #6060c0;
  color: #fff;
  font: 11px Verdana, sans-serif;
  text-align: center;
  padding: 10px;
  margin-top: 4px;
}
.footer a { color: #ffff00; }
.footer .bestviewed { color: #9090d0; margin-top: 8px; }
.footer-optin {
  background: #ffffcc;
  border: 3px outset #fff;
  color: #000;
  padding: 10px;
  margin-bottom: 8px;
  font: 12px Verdana, sans-serif;
}
.footer-optin input[type="email"] {
  border: 2px inset #808080;
  font: 13px "Courier New", monospace;
  padding: 4px;
  width: 260px;
  vertical-align: middle;
}

/* ---------- windows-style alert (JS errors) ---------- */
.win-alert {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  background: #c0c0c0;
  border: 3px outset #fff;
  z-index: 1000;
  font: 12px Tahoma, Verdana, sans-serif;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}
.win-alert .bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  padding: 4px 6px;
}
.win-alert .inner { padding: 16px 12px; text-align: center; }
.win-alert .btnrow { text-align: center; padding-bottom: 12px; }

/* ---------- breadcrumb / small text ---------- */
.crumbs { font: 11px Verdana, sans-serif; color: #404040; margin-bottom: 10px; }
.crumbs a { color: #000080; }
.small { font: 11px Verdana, sans-serif; color: #404040; }

/* ---------- issue archive entries ---------- */
.issue-entry {
  border: 2px outset #fff;
  background: #f8f8f0;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.issue-entry .idate { font: bold 11px Verdana, sans-serif; color: #806000; }

/* ---------- minimal mobile mercy (still looks retro) ---------- */
@media (max-width: 1010px) {
  .page { width: auto; margin: 4px; }
  .cols, .sidebar, .main { display: block; width: auto; }
  .sidebar { padding: 0 0 6px 0; }
  .optin-wide input[type="email"], .footer-optin input[type="email"] { width: 90%; }
  .productcard { width: 44%; }
  img.floatright, img.floatleft { float: none; display: block; margin: 8px auto; }
}
