/**
 * Release Page Styles
 *
 * This CSS file is used by static release pages.
 * Upload to S3: css/release-styles.css
 */

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

body {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Top Navigation Styles */
.top-navigation {
  background-color: rgb(0, 0, 51);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 6px 0;
}

.top-navigation .nav-container {
  max-width: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 15px;
}

.top-navigation a {
  color: #fff;
  text-decoration: none;
  font-family: "PT Sans", sans-serif;
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
}

.nav-separator {
  color: #e45c1e;
  font-size: 14px;
}

.top-navigation a:hover {
  text-decoration: underline;
}

/* Header Styles */
.masthead {
  background-color: rgb(47, 75, 122);
  padding: 15px 0;
}

.masthead .container {
  text-align: left;
}

.masthead img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0;
}

.date-header {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #eee;
}

/* Main Content */
main {
  flex: 1;
  padding: 30px 0;
}

/* Article Styles */
.article-meta {
  font-family: "PT Sans", sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.article-meta span {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-meta .date {
  color: #666;
}

.article-meta .category {
  color: rgb(228, 92, 30);
  font-weight: 600;
}

.article-meta .separator {
  color: #999;
  margin: 0 8px;
}

article h1 {
  font-size: 32px;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-align: left;
}

/* Ensure any HTML elements inside h1 inherit the h1 styling */
article h1 * {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

article h2 {
  font-size: 18px;
  color: #000;
  margin: 25px 0 15px;
  font-weight: bold;
}

article p {
  margin-bottom: 15px;
  font-size: 16px;
  font-family: "PT Sans", sans-serif;
  line-height: 1.6;
}

/* Ensure all content in article uses PT Sans */
.article-content {
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.article-content p {
  margin-bottom: 15px;
  font-size: 16px;
  font-family: "PT Sans", sans-serif;
}

/* List Styles */
.article-content ul,
.article-content ol {
  margin: 15px 0;
  padding-left: 30px;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin: 8px 0;
}

/* Image Styles */
.story-image {
  text-align: center;
  margin: 25px 0;
}

.story-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.story-image-caption {
  font-size: 11px;
  color: #777;
  text-align: left;
  margin-top: 8px;
  padding-top: 8px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 8px;
  font-family: Arial, sans-serif;
}

/* Enhanced Figure and Figcaption Styles */
figure {
  text-align: center;
  margin: 25px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Side-aligned image style */
figure.image-style-side {
  float: right;
  max-width: 300px;
  width: 50%;
  margin: 0 0 15px 20px;
  text-align: center;
}

figure.image-style-side img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

figure img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

figcaption {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 0;
  padding: 8px 15px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  font-family: "PT Sans", sans-serif;
  font-style: italic;
  line-height: 1.4;
}

/* Images within article content should also respect max-width */
.article-content img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Support for images wrapped in paragraphs */
.article-content p img {
  margin: 20px auto;
}

/* Remove bottom margin from images with captions */
.article-content figure img {
  margin: 0;
}

/* Links */
a {
  color: #900;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background-color: rgb(0, 0, 51);
  border-top: 2px solid #e45c1e;
  margin-top: 50px;
  padding: 30px 0;
  color: #fff;
}

.footer-content {
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  display: inline-block;
  margin: 0 15px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.7em;
  color: #ccc;
  margin-top: 20px;
}

/* Contact Section */
.contact-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.contact-section h3 {
  font-size: 14px;
  color: #000;
  margin-bottom: 10px;
  font-weight: bold;
}

.contact-section p,
.contact-content {
  font-size: 16px;
  font-family: "PT Sans", sans-serif;
  line-height: 1.6;
}

.contact-content p {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .top-navigation .nav-container {
    padding-left: 10px;
  }

  .top-navigation a {
    font-size: 14px;
    padding: 0 8px;
  }

  .masthead img {
    max-width: 200px;
  }

  article h1 {
    font-size: 26px;
  }

  article h2 {
    font-size: 16px;
  }

  .story-image img {
    max-width: 100%;
  }

  figure {
    margin: 20px 0;
    max-width: 100%;
  }

  figure img {
    max-width: 100%;
  }

  figcaption {
    font-size: 11px;
    padding: 6px 10px;
    margin-top: 0;
  }

  .article-content img {
    max-width: 100%;
  }

  figure.image-style-side {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .top-navigation .nav-container {
    padding-left: 8px;
  }

  .top-navigation a {
    font-size: 13px;
    padding: 0 6px;
  }

  article h1 {
    font-size: 22px;
  }
}
