/* Miss Rockaway Armada — k24 theme faithful recreation */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img { border: 0; }

body {
  font: 62.5% 'Lucida Grande', Verdana, Arial, sans-serif;
  color: #444;
  background: #660000;
  text-align: center;
}

/* ——— Page shell ——— */

#page {
  background: white;
  text-align: left;
  margin: 0 auto;
  padding: 20px 0 10px;
  max-width: 950px;
  border: 1px solid #ddd;
  border-top: none;
  position: relative;
  clear: both;
  min-height: 600px;
}

/* ——— Header ——— */

#header {
  height: 280px;
  background: url('/images/mississippibanner_72.jpg') no-repeat top left;
  background-color: #fff;
  position: relative;
  margin: 0;
}

h1 {
  display: none; /* site title is embedded in banner image */
}

/* ——— Navigation ——— */

ul.menu {
  list-style: none;
  position: absolute;
  bottom: 0;
  left: 181px;
  width: 90%;
  margin: 0;
  padding: 0;
}

ul.menu li {
  display: inline;
  margin: 0;
}

ul.menu li a {
  font: 1.3em Verdana, Helvetica, Arial, sans-serif;
  color: #000;
  text-decoration: none;
  padding: 5px 15px 6px;
  display: inline-block;
}

ul.menu li a:hover {
  background: #666;
  color: #eee;
  text-decoration: none;
}

ul.menu li.current_page_item a,
ul.menu li.current_page_item a:hover {
  color: #660000;
  background: lightgray;
  text-decoration: none;
}

/* ——— Content area ——— */

.content {
  padding: 0 20px;
  overflow: hidden;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  clear: both;
}

/* ——— Primary column ——— */

#primary {
  float: left;
  width: 500px;
  padding: 20px 0 10px;
  margin: 0 10px 0 30px;
  font-size: 1.4em;
  line-height: 1.6;
}

#primary a {
  color: #660000;
}

#primary a:hover {
  color: #333;
  text-decoration: underline;
}

/* Page title heading — nav tab highlighting shows current page, so hide the redundant h2 */
.page > h2,
.page-head h2 {
  display: none;
}

/* Entry content */
.entry-content, .entry {
  line-height: 1.8;
}

.entry-content p,
.entry p {
  margin-top: 0;
  margin-bottom: 1.5em !important;
}

.entry-content img,
.entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

.entry-content strong,
.entry strong {
  font-weight: bold;
}

.entry-content blockquote,
.entry blockquote {
  margin: 1em 2em;
  padding-left: 1em;
  border-left: 3px solid #ccc;
  color: #666;
}

.entry-content iframe {
  max-width: 100%;
}

/* Individual blog post */
h2.post-title {
  font-size: 2.4em;
  font-weight: normal;
  letter-spacing: -1px;
  margin: 10px 0 4px;
}

.post-meta {
  color: #999;
  font-size: 1.1em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.post-nav {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 1.2em;
}

/* Blog full-entry listing */
.blog-entry {
  padding: 16px 0 8px;
}

.blog-entry-title {
  font-size: 2em;
  font-weight: normal;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  line-height: 1.3;
}

.blog-entry-title a {
  color: #333;
  text-decoration: none;
}

.blog-entry-title a:hover {
  color: #660000;
  text-decoration: underline;
}

.blog-entry-date {
  font-size: 1.1em;
  color: #999;
  margin: 0 0 10px;
}

.blog-entry-content {
  line-height: 1.8;
  color: #444;
}

.blog-entry-content p {
  margin: 0 0 1em;
}

.blog-entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

.blog-entry-more {
  margin: 8px 0 0;
  font-size: 1.2em;
}

.blog-entry-more a {
  color: #660000;
  text-decoration: none;
}

.blog-entry-more a:hover {
  text-decoration: underline;
}

hr.post-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* Blog sort toggle */
.blog-controls {
  margin-bottom: 10px;
}

.blog-controls button {
  font: 1.1em Verdana, Helvetica, Arial, sans-serif;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 3px 10px 4px;
  cursor: pointer;
}

.blog-controls button:hover {
  background: #eee;
  color: #333;
}

/* Blog listing */
.blog-index h1 {
  font-size: 2em;
  font-weight: normal;
  margin-bottom: 15px;
  color: #444;
}

.blog-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-post-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.blog-post-list .post-title-link {
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.blog-post-list .post-title-link:hover {
  color: #660000;
  text-decoration: underline;
}

.blog-post-list .post-date {
  font-size: 1em;
  color: #999;
  margin-top: 2px;
}

/* ——— Sidebar ——— */

.secondary {
  float: right;
  width: 240px;
  font-size: 1.2em;
  line-height: 1.5;
  color: #666;
  padding: 20px 10px 10px;
  overflow: hidden;
}

.secondary h4 {
  font-size: 1.3em;
  font-weight: normal;
  padding: 0 0 4px;
  margin-bottom: 8px;
  position: relative;
  display: block;
}

.secondary div {
  margin: 20px 0 0;
  padding: 0;
  position: relative;
}

.secondary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  word-spacing: -1px;
}

.secondary ul li {
  padding: 3px 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary ul li a {
  color: #666;
  text-decoration: none;
}

.secondary ul li a:hover {
  color: #660000;
  text-decoration: underline;
}

/* ——— Footer ——— */

#footer {
  clear: both;
  padding: 16px 30px;
  font-size: 1.1em;
  color: #888;
  border-top: 1px solid #eee;
  margin-top: 20px;
  text-align: left;
}

#footer a {
  color: #888;
}

#footer a:hover {
  color: #660000;
}

/* ——— Stories iframe ——— */

.stories-wrapper iframe {
  width: 100%;
  height: 576px;
  border: none;
}

/* ——— Hamburger button (desktop: hidden) ——— */

.menu-toggle {
  display: none;
}

ul.menu li.mobile-only {
  display: none;
}

/* ——— Mobile ——— */

@media (max-width: 900px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #page {
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
    padding-top: 0;
    overflow-x: hidden;
  }

  #header {
    background-size: cover;
    background-position: 72% top;
    height: 160px;
  }

  /* Hamburger button — fixed so it's always viewport-relative */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 7px 11px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 200;
    color: #333;
  }

  .menu-toggle:hover {
    background: white;
  }

  /* Nav: hidden until opened */
  ul.menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    background: white;
    border-top: 3px solid #660000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    z-index: 150;
    padding: 50px 0 0;
  }

  ul.menu.menu-open {
    display: block;
  }

  ul.menu li {
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }

  ul.menu li a {
    display: block;
    padding: 14px 20px;
    font-size: 1.6em;
    color: #333;
  }

  ul.menu li a:hover {
    background: #f5f5f5;
    color: #660000;
  }

  ul.menu li.current_page_item a,
  ul.menu li.current_page_item a:hover {
    background: #f9f0f0;
    color: #660000;
  }

  /* Show Search link in mobile nav */
  ul.menu li.mobile-only {
    display: block;
  }

  /* Content */
  .content {
    padding: 0;
  }

  #primary {
    float: none;
    width: 100%;
    margin: 0;
    padding: 16px;
    font-size: 1.25em;
  }

  /* Hide sidebar entirely on mobile — search is in nav, other links are secondary */
  .secondary {
    display: none;
  }

  /* Blog titles */
  .blog-entry-title {
    font-size: 1.6em;
  }

  h2.post-title {
    font-size: 1.9em;
  }

  /* Images always scale */
  #primary img,
  .entry img,
  .entry-content img,
  .blog-entry-content img {
    max-width: 100%;
    height: auto;
  }
}
