/* =========================
   Consolidated Themed Stylesheet
   ========================= */

/* Base / Body */
body {
  background-color: #FFF7F5; /* Light Cream */
  padding: 50px;
  font: 14px/1.5 "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color: #2D2D2D; /* Dark Charcoal */
  font-weight: 400;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #B22222; /* BrickRed accent */
  margin: 0 0 20px;
}
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: 28px; font-weight: 500; }
h2 { font-weight: 500; }
h3, h4, h5, h6 { font-weight: 500; }

/* Text blocks */
p, ul, ol, table, pre, dl { margin: 0 0 20px; color: #2D2D2D; }
small { font-size: 11px; }
strong { color: #2D2D2D; font-weight: 700; }

/* Links */
a { color: #E55B3C; text-decoration: none; }
a:hover { color: #D35C37; }
a small { font-size: 11px; color: #C76B6B; margin-top: -0.3em; display: block; }
a:hover small { color: #D35C37; }

/* Code */
code, pre {
  font-family: Monaco, Bitstream Vera Sans Mono, "Lucida Console", Terminal, Consolas,
               "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
}
code { color: #B22222; }
pre {
  padding: 8px 15px;
  background: #FFF7F5;
  border-radius: 5px;
  border: 1px solid #C76B6B;
  overflow-x: auto;
}

/* Blockquote */
blockquote {
  border-left: 4px solid #D35C37;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

/* Tables */
table { width: 100%; border-collapse: collapse; background: #FFF7F5; }
th, td { text-align: left; padding: 5px 10px; border-bottom: 1px solid #C76B6B; }
th { color: #B22222; font-weight: 700; }
dt { color: #B22222; font-weight: 700; }

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Hr */
hr { border: 0; background: #C76B6B; height: 1px; margin: 0 0 20px; opacity: 0.6; }

/* Layout wrapper */
.wrapper { width: 860px; margin: 0 auto; }

/* Header / Sidebar */
header {
  width: 270px;
  float: left;
  position: fixed;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* Header nav */
header ul {
  list-style: none;
  height: 40px;
  padding: 0;
  background: #FAE1DA;
  border-radius: 5px;
  border: 1px solid #E7A6A1;
  width: 270px;
}
header li {
  width: 89px;
  float: left;
  border-right: 1px solid #E7A6A1;
  height: 40px;
}
header ul li + li + li { border-right: none; width: 89px; }
header li:first-child a { border-radius: 5px 0 0 5px; }
header li:last-child a { border-radius: 0 5px 5px 0; }

header ul a {
  line-height: 1;
  font-size: 11px;
  color: #A55252;
  display: block;
  text-align: center;
  padding-top: 6px;
  height: 34px;
}
header ul a strong {
  font-size: 14px;
  display: block;
  color: #B22222;
}
header ul a:hover { color: #8F3E3E; }
header ul a:active { background-color: #F7D4CC; }

/* Main section */
section {
  width: 500px;
  float: right;
  padding-bottom: 50px;
}

/* Footer */
footer { width: 100%; float: none; position: static; margin-top: 20px; line-height: 1.2; text-align: left; color: #A55252; /* Muted rose footer text */ }

/* Top navigation bar */
.topnav { background-color: #B22222; margin-bottom: 20px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; /* or space-evenly */ gap: 0; }
.topnav a { /* evenly divide the bar into 4 equal tabs */ flex: 1 1 25%; display: flex; align-items: center; justify-content: center; color: #FDF2EF; text-decoration: none; font-size: 17px; padding: 14px 0; }
.topnav a:hover { background-color: #E55B3C; color: #ffffff; }
.topnav a.active { background-color: #8E1B1B; color: #ffffff; }

/* Responsive adaptations */
@media print, screen and (max-width: 960px) {
  .wrapper { width: auto; margin: 0; }
  header, section, footer { float: none; position: static; width: auto; }
  header { padding-right: 320px; }
  section {
    border: 1px solid #E7A6A1;
    border-width: 1px 0;
    padding: 20px 0;
    margin: 0 0 20px;
    background: #FFF7F5;
  }
  header a small { display: inline; }
  header ul { position: absolute; right: 50px; top: 52px; }
}

@media print, screen and (max-width: 720px) {
  body { word-wrap: break-word; padding: 20px; }
  .wrapper { width: auto; }
  header { padding: 0; }
  header ul, header p.view { position: static; }
  pre, code { word-wrap: normal; }
}

@media print, screen and (max-width: 480px) {
  body { padding: 15px; }
  header ul { width: 99%; }
  header li, header ul li + li + li { width: 33%; }
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #2D2D2D;
    background: #ffffff;
  }
}


/* Footer spacing tweaks */
footer { line-height: 1.2; }
footer p,
footer li { margin-bottom: 8px; }
footer p:last-child,
footer li:last-child { margin-bottom: 0; }
footer small { line-height: 1.1; color: #C76B6B; }
