/* America HQ — boomer-friendly patriotic newspaper style.
   Big type, high contrast, plain underlined links, no tricks. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f1ea;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.5;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  padding: 0 28px 30px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

a { color: #0b3d91; text-decoration: underline; }
a:hover { color: #b22234; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding-top: 18px; }
.flag-rule {
  height: 10px;
  background: repeating-linear-gradient(
    to right,
    #b22234 0, #b22234 60px,
    #ffffff 60px, #ffffff 120px,
    #0a3161 120px, #0a3161 180px
  );
  border: 1px solid #999;
  margin: 8px 0;
}
.logo {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 6px 0 0;
  color: #0a3161;
}
.logo a { color: #0a3161; text-decoration: none; }
.logo .hq, .footer-logo .hq { color: #b22234; }
.tagline {
  font-size: 24px; font-style: italic; margin: 2px 0;
  color: #333;
}
.dateline { font-size: 18px; color: #444; margin: 4px 0 10px; }

/* ---------- Nav: every item visible, plain text ---------- */
.topnav {
  background: #0a3161;
  padding: 12px 10px;
  text-align: center;
  margin: 14px 0 0;
}
.topnav a {
  color: #fff; text-decoration: none; font-weight: bold;
  font-size: 19px; padding: 6px 12px; display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
}
.topnav a:hover { text-decoration: underline; color: #ffd9de; }

/* ---------- Breaking ticker ---------- */
.ticker {
  background: #b22234; color: #fff;
  display: flex; align-items: center;
  overflow: hidden; margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
}
.ticker-label {
  background: #7d1624; color: #fff; font-weight: bold;
  padding: 10px 14px; font-size: 18px; letter-spacing: 1px;
  flex: 0 0 auto;
}
.ticker-track { overflow: hidden; white-space: nowrap; flex: 1 1 auto; }
.ticker-text {
  display: inline-block; padding-left: 100%;
  animation: ticker-scroll 90s linear infinite;
  font-size: 18px;
}
.ticker-text a { color: #fff; text-decoration: none; font-weight: bold; }
.ticker-text a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Top story block ---------- */
.top-block {
  display: grid; grid-template-columns: 2fr 1fr; gap: 28px;
  border-bottom: 3px double #0a3161; padding-bottom: 20px;
}
.top-story img, .side-story img {
  width: 100%; height: auto; display: block; border: 1px solid #999;
}
.top-story h1 {
  font-size: 44px; line-height: 1.15; margin: 12px 0 6px;
}
.top-story h1 a { color: #111; text-decoration: none; }
.top-story h1 a:hover { color: #b22234; text-decoration: underline; }
.side-story { margin-bottom: 22px; }
.side-story h2 { font-size: 26px; line-height: 1.25; margin: 8px 0 4px; }
.side-story h2 a { color: #111; text-decoration: none; }
.side-story h2 a:hover { color: #b22234; text-decoration: underline; }
.meta { font-size: 16px; color: #666; font-family: Arial, Helvetica, sans-serif; margin: 2px 0; }

/* ---------- Email signup ---------- */
.signup-box {
  background: #fdf6e3; border: 3px solid #0a3161;
  padding: 22px 26px; margin: 24px 0; text-align: center;
}
.signup-box h2 { font-size: 32px; margin: 0 0 6px; color: #0a3161; }
.signup-box p { font-size: 20px; margin: 0 0 14px; }
.signup-form input[type="email"] {
  font-size: 22px; padding: 12px 14px; width: 420px; max-width: 90%;
  border: 2px solid #0a3161; font-family: Arial, Helvetica, sans-serif;
}
.signup-form button {
  font-size: 22px; font-weight: bold; padding: 12px 22px;
  background: #b22234; color: #fff; border: 2px solid #7d1624;
  cursor: pointer; font-family: Arial, Helvetica, sans-serif;
}
.signup-form button:hover { background: #7d1624; }

/* ---------- Content + rail ---------- */
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.section-head {
  font-size: 30px; color: #0a3161;
  border-bottom: 3px solid #b22234; padding-bottom: 4px;
  margin: 26px 0 10px; text-transform: uppercase; letter-spacing: 1px;
}
.section-head.big { font-size: 36px; text-align: center; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
  padding: 9px 0; border-bottom: 1px dotted #bbb; font-size: 20px;
}
.link-list li a { font-weight: bold; }
.link-list .meta { display: block; }

.rail-box {
  border: 2px solid #0a3161; padding: 14px 16px; margin: 18px 0;
}
.rail-box h3 { margin: 0 0 8px; font-size: 24px; color: #0a3161; }
.rail-box .link-list li { font-size: 18px; }

/* ---------- HQ Network cards ---------- */
.network { margin-top: 34px; }
.network-intro { font-size: 21px; text-align: center; }
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px;
}
.card {
  border: 2px solid #0a3161; border-top: 8px solid #b22234;
  padding: 16px 18px; background: #fbfaf7;
}
.card h3 { font-size: 26px; margin: 0 0 6px; }
.card p { font-size: 19px; margin: 6px 0; }
.card .badge {
  background: #b22234; color: #fff; font-size: 14px; padding: 3px 8px;
  vertical-align: middle; font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
.card-links { font-family: Arial, Helvetica, sans-serif; font-size: 17px; }

/* ---------- Ad slots (fixed size, layout stays put) ---------- */
.ad-slot { text-align: center; margin: 18px auto; }
.ad-label {
  display: block; font-size: 12px; letter-spacing: 2px; color: #888;
  font-family: Arial, Helvetica, sans-serif; margin-bottom: 4px;
}
.ad-box {
  margin: 0 auto; background: #f0f0f0; border: 1px dashed #aaa;
  color: #777; display: flex; align-items: center; justify-content: center;
  font-family: Arial, Helvetica, sans-serif; font-size: 16px;
  max-width: 100%;
}
.ad-leaderboard { max-width: 728px; }
.ad-rect .ad-box { width: 300px; height: 250px; }

/* ---------- Simple pages (About / Privacy) ---------- */
.prose { max-width: 860px; margin: 0 auto; font-size: 20px; }
.prose h2 { color: #0a3161; font-size: 30px; border-bottom: 3px solid #b22234; padding-bottom: 4px; }
.prose h3 { color: #0a3161; font-size: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px double #0a3161; margin-top: 30px;
  padding-top: 16px; text-align: center;
}
.footer-logo { font-size: 40px; font-weight: 900; color: #0a3161; margin: 0; letter-spacing: 1px; }
.footer-tag { font-style: italic; font-size: 19px; margin: 2px 0 10px; }
.footer-nav { font-size: 19px; margin: 8px 0; font-family: Arial, Helvetica, sans-serif; }
.copyright, .updated { font-size: 16px; color: #555; }

/* ---------- Smaller screens: stack, keep type big ---------- */
@media (max-width: 900px) {
  .logo { font-size: 52px; }
  .top-block, .content-wrap, .two-col, .card-grid { grid-template-columns: 1fr; }
  .top-story h1 { font-size: 34px; }
  .container { padding: 0 14px 24px; }
}

/* ---------- Email capture: sticky bar ---------- */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #0a3161; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 14px;
  transform: translateY(-110%);
  transition: transform 0.25s ease-in-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  font-family: Arial, Helvetica, sans-serif;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-text { font-size: 20px; font-weight: bold; }
.sticky-form { display: flex; gap: 8px; }
.sticky-form input[type="email"] {
  font-size: 19px; padding: 9px 12px; width: 300px; max-width: 55vw;
  border: 2px solid #fff; font-family: Arial, Helvetica, sans-serif;
}
.sticky-form button {
  font-size: 19px; font-weight: bold; padding: 9px 18px;
  background: #b22234; color: #fff; border: 2px solid #7d1624; cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.sticky-form button:hover { background: #7d1624; }

/* ---------- Email capture: rail box, modules, popup ---------- */
.rail-signup {
  border: 3px solid #b22234; background: #fdf6e3;
  padding: 16px; text-align: center;
}
.rail-signup h3 { margin: 0 0 6px; font-size: 25px; color: #0a3161; }
.rail-signup p { font-size: 18px; margin: 0 0 12px; }
.rail-form input[type="email"] {
  font-size: 19px; padding: 10px; width: 100%;
  border: 2px solid #0a3161; margin-bottom: 10px;
  font-family: Arial, Helvetica, sans-serif;
}
.rail-form button {
  font-size: 20px; font-weight: bold; padding: 11px; width: 100%;
  background: #b22234; color: #fff; border: 2px solid #7d1624; cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.rail-form button:hover { background: #7d1624; }

.signup-module h2 { font-size: 28px; }
.card-cta { font-weight: bold; font-size: 18px; }
.signup-footer { margin-bottom: 6px; }

.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.popup-box {
  background: #fff; border: 4px solid #0a3161; max-width: 560px; width: 100%;
  padding: 34px 34px 26px; position: relative; text-align: center;
}
.popup-box h2 { font-size: 36px; color: #0a3161; margin: 0 0 10px; }
.popup-box p { font-size: 21px; }
.popup-box .signup-form input[type="email"] { width: 100%; margin-bottom: 12px; }
.popup-box .signup-form button { width: 100%; }
.popup-close {
  position: absolute; top: 2px; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 52px; line-height: 1; color: #b22234; font-weight: bold;
  padding: 6px 12px;
}
.popup-close:hover { color: #7d1624; }
.popup-fine { font-size: 16px; color: #555; }

@media (max-width: 900px) {
  .sticky-bar { flex-wrap: wrap; }
  .sticky-text { font-size: 18px; }
}

/* ---------- Print: clean black on white ---------- */
@media print {
  .topnav, .ticker, .ad-slot, .signup-box, .sticky-bar, .popup-overlay, .rail-signup { display: none; }
  body { background: #fff; font-size: 14pt; }
  .container { border: none; max-width: none; }
  a { color: #000; }
}

/* ---------- Latest From Our Pages + article pages ---------- */
.latest { margin-top: 10px; }
.wire-head { margin-top: 36px; }
.latest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px; margin: 14px 0 6px;
}
.article-card {
  border: 2px solid #0a3161; border-top: 8px solid #b22234;
  padding: 16px 18px; background: #fff;
}
.article-card h3 { font-size: 25px; line-height: 1.3; margin: 8px 0 4px; }
.article-card h3 a { color: #111; text-decoration: none; }
.article-card h3 a:hover { color: #b22234; text-decoration: underline; }
.page-tag {
  display: inline-block; background: #0a3161; color: #fff;
  font-family: Arial, Helvetica, sans-serif; font-weight: bold;
  font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px;
}
.latest-empty { font-size: 20px; text-align: center; }

.masthead-small { padding-top: 10px; }
.logo-small { font-size: 44px; font-weight: 900; letter-spacing: 1px; margin: 6px 0 0; }
.logo-small a { color: #0a3161; text-decoration: none; }
.logo-small .hq { color: #b22234; }

.story { max-width: 900px; margin: 0 auto; }
.page-tag-line { margin: 18px 0 6px; }
.story-headline { font-size: 42px; line-height: 1.2; margin: 6px 0 8px; color: #111; }
.byline {
  font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #444;
  border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 18px;
}
.video-wrap { margin: 0 auto 18px; max-width: 480px; }
.video-wrap video { width: 100%; height: auto; background: #000; display: block; }
.fb-embed-slot {
  border: 3px dashed #0a3161; background: #f4f6fb;
  padding: 14px 18px; margin: 0 auto 18px; max-width: 640px; text-align: center;
}
.fb-embed-note { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.story-body p { font-size: 22px; line-height: 1.55; margin: 0 0 18px; }
.story .signup-box { margin: 22px 0; }

.share-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  border-top: 3px solid #0a3161; border-bottom: 3px solid #0a3161;
  padding: 14px 0; margin: 10px 0 24px;
  font-family: Arial, Helvetica, sans-serif;
}
.share-label { font-size: 20px; font-weight: bold; }
.share-btn {
  font-size: 19px; font-weight: bold; padding: 10px 18px; cursor: pointer;
  background: #0a3161; color: #fff; border: 2px solid #0a3161;
  text-decoration: none; font-family: Arial, Helvetica, sans-serif;
}
.share-btn:hover { background: #b22234; border-color: #b22234; color: #fff; }

.more-stories { max-width: 1100px; margin: 0 auto; }

@media (max-width: 900px) {
  .story-headline { font-size: 33px; }
  .story-body p { font-size: 20px; }
}

@media print {
  .share-row, .video-wrap, .fb-embed-slot { display: none; }
}

/* ---------- Mission line (under the masthead tagline) ---------- */
.mission {
  font-size: 22px; font-weight: bold; color: #b22234;
  margin: 4px 0 2px; font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
}

/* ---------- Latest From Our Pages: article cards ---------- */
.latest { margin-bottom: 6px; }
.latest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 16px 0 8px;
}
.article-card {
  border: 2px solid #0a3161; border-top: 8px solid #b22234;
  background: #fbfaf7; padding: 0 0 12px; overflow: hidden;
}
.article-card img {
  width: 100%; height: 300px; object-fit: cover; object-position: center 20%;
  display: block; border-bottom: 1px solid #999;
}
.article-card .card-page {
  display: inline-block; background: #0a3161; color: #fff;
  font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; margin: 12px 16px 0;
}
.article-card h3 { font-size: 25px; line-height: 1.25; margin: 8px 16px 4px; }
.article-card h3 a { color: #111; text-decoration: none; }
.article-card h3 a:hover { color: #b22234; text-decoration: underline; }
.article-card .card-dek { font-size: 18px; margin: 4px 16px; }
.article-card .meta { margin: 4px 16px 0; }

/* ---------- Article pages ---------- */
.article-wrap { max-width: 880px; margin: 0 auto; }
.page-chip {
  display: inline-block; background: #0a3161; color: #fff;
  font-family: Arial, Helvetica, sans-serif; font-size: 17px; font-weight: bold;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; margin: 22px 0 10px;
}
.page-chip a { color: #fff; text-decoration: none; }
.page-chip a:hover { text-decoration: underline; }
.article-headline { font-size: 42px; line-height: 1.15; margin: 4px 0 8px; }
.byline {
  font-size: 18px; color: #555; font-family: Arial, Helvetica, sans-serif;
  border-bottom: 1px solid #ccc; padding-bottom: 10px; margin: 0 0 18px;
}
.article-video { margin: 0 0 8px; }
.article-video video {
  width: 100%; max-height: 78vh; background: #000; display: block;
  border: 2px solid #0a3161;
}
.source-line { font-size: 17px; font-family: Arial, Helvetica, sans-serif; margin: 8px 0 0; }
.article-body p { font-size: 21px; line-height: 1.6; margin: 0 0 16px; }
.article-body p:first-child { font-size: 23px; }
.follow-line { font-size: 20px; font-weight: bold; }
.related { margin-top: 10px; }
.related-list li { font-size: 20px; }

/* ---------- Pop-up: "No thanks" escape link ---------- */
.popup-nothanks { margin: 12px 0 0; font-size: 19px; }
.popup-nothanks a { color: #0b3d91; text-decoration: underline; font-weight: bold; }
.popup-nothanks a:hover { color: #b22234; }

@media (max-width: 900px) {
  .latest-grid { grid-template-columns: 1fr; }
  .article-card img { height: 240px; }
  .article-headline { font-size: 32px; }
  .mission { font-size: 19px; }
}

@media print {
  .article-video video { display: none; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
}
