/* Lone Star Post, shared stylesheet
   Colors: navy #0A1A3D, red #BF1E2D, gold #C9A227, off-white #FAF7F2
   Type: Georgia serif headlines, system sans body. Mobile first. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FAF7F2;
  color: #1c2434;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img, svg { max-width: 100%; }

a { color: #0A1A3D; text-decoration: none; }
a:hover { color: #BF1E2D; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Masthead ---------- */

.masthead {
  background: #0A1A3D;
  color: #ffffff;
  border-bottom: 4px solid #BF1E2D;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark { flex: 0 0 auto; line-height: 0; }

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

@media (min-width: 720px) {
  .brand-logo { width: 64px; height: 64px; }
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.05;
  margin: 0;
}

.brand-name a { color: #ffffff; }
.brand-name a:hover { color: #ffffff; }

.tagline {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #d9c98a;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}

.masthead-date {
  margin-left: auto;
  text-align: right;
  font-size: 0.85rem;
  color: #b9c2d8;
  display: none;
}

@media (min-width: 720px) {
  .masthead-date { display: block; }
  .brand-name { font-size: 2.6rem; }
}

/* ---------- Category nav ---------- */

.catnav {
  background: #07122b;
  border-bottom: 2px solid #C9A227;
}

.catnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.catnav li a {
  display: block;
  padding: 11px 14px;
  color: #eef1f8;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catnav li a:hover { background: #BF1E2D; color: #ffffff; }

/* ---------- Cover hero banner ---------- */

.cover-hero { line-height: 0; background: #0A1A3D; }

.cover-hero img { width: 100%; height: auto; display: block; }

/* ---------- Breaking ticker ---------- */

.ticker {
  background: #BF1E2D;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #8f1622;
}

.ticker-inner {
  display: inline-block;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-label {
  display: inline-block;
  background: #ffffff;
  color: #BF1E2D;
  padding: 1px 8px;
  margin: 0 12px 0 16px;
  border-radius: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/* ---------- Headings and section titles ---------- */

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 34px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #0A1A3D;
  color: #0A1A3D;
}

.section-title .accent { color: #BF1E2D; }

/* ---------- Placeholder image blocks ---------- */

.ph-img {
  background: #d8d5cf;
  background-image: linear-gradient(135deg, #d8d5cf 0%, #c4c1ba 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1px solid #bdbab2;
}

.ph-img svg { opacity: 0.55; }

.ph-img.tall { min-height: 300px; }

.ph-caption {
  font-size: 0.82rem;
  color: #5a6274;
  margin: 6px 0 0;
  font-style: italic;
}

/* ---------- Lead story ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}

@media (min-width: 860px) {
  .lead-grid { grid-template-columns: 2fr 1fr; }
}

.lead-story .ph-img { min-height: 320px; }

.lead-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.15;
  margin: 16px 0 10px;
  color: #0A1A3D;
}

@media (min-width: 720px) {
  .lead-headline { font-size: 2.6rem; }
}

.lead-dek { font-size: 1.08rem; color: #3c465c; margin: 0 0 12px; }

.side-list {
  background: #ffffff;
  border: 1px solid #ddd8cc;
  border-top: 4px solid #C9A227;
  padding: 18px 20px;
  align-self: start;
}

.side-list h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: #0A1A3D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.side-list ul { list-style: none; margin: 0; padding: 0; }

.side-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eceadf;
}

.side-list li:last-child { border-bottom: none; }

.side-list a { font-weight: 600; font-size: 0.98rem; }

/* ---------- Story cards grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 6px 0 10px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: #ffffff;
  border: 1px solid #ddd8cc;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .ph-img { min-height: 150px; border: none; border-bottom: 1px solid #ddd8cc; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }

.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0;
  color: #0A1A3D;
}

.card p { margin: 0; font-size: 0.96rem; color: #3c465c; }

.card .meta, .lead-story .meta, .story-meta {
  font-size: 0.82rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag {
  display: inline-block;
  background: #0A1A3D;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  align-self: flex-start;
}

.tag.red { background: #BF1E2D; }
.tag.gold { background: #C9A227; color: #0A1A3D; }

/* ---------- Story page ---------- */

.story { max-width: 760px; margin: 0 auto; }

.story h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.18;
  color: #0A1A3D;
  margin: 26px 0 10px;
}

@media (min-width: 720px) {
  .story h1 { font-size: 2.7rem; }
}

.story .standfirst {
  font-size: 1.15rem;
  color: #3c465c;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 16px;
}

.byline {
  border-top: 1px solid #ddd8cc;
  border-bottom: 1px solid #ddd8cc;
  padding: 10px 0;
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: #4a5468;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.byline strong { color: #0A1A3D; text-transform: uppercase; letter-spacing: 0.04em; }

.story-body p { margin: 0 0 18px; font-size: 1.05rem; }

.source-line {
  border-top: 2px solid #0A1A3D;
  padding-top: 12px;
  margin-top: 28px;
  font-size: 0.92rem;
  color: #4a5468;
}

.source-line strong { color: #0A1A3D; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 22px 0 6px;
}

.share-row span { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: #0A1A3D; }

.share-row a {
  border: 1px solid #0A1A3D;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

.share-row a:hover { background: #0A1A3D; color: #ffffff; }

/* ---------- Related stories ---------- */

.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 10px;
}

@media (min-width: 720px) {
  .related { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- About and simple pages ---------- */

.page-body { max-width: 820px; margin: 0 auto; }

.page-body h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  color: #0A1A3D;
  margin: 30px 0 14px;
  line-height: 1.2;
}

.page-body h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  color: #0A1A3D;
  margin: 28px 0 8px;
}

.page-body p { margin: 0 0 16px; }

.page-body ul { margin: 0 0 16px; padding-left: 22px; }
.page-body li { margin-bottom: 6px; }

.notice-box {
  background: #ffffff;
  border: 1px solid #ddd8cc;
  border-left: 5px solid #BF1E2D;
  padding: 16px 20px;
  margin: 22px 0;
}

.notice-box p { margin: 0; }

/* ---------- Category page ---------- */

.category-head {
  margin: 30px 0 6px;
  border-bottom: 3px solid #BF1E2D;
  padding-bottom: 10px;
}

.category-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  color: #0A1A3D;
  margin: 0;
}

.category-head p { color: #3c465c; margin: 8px 0 4px; }

.list-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd8cc;
}

@media (min-width: 720px) {
  .list-row { grid-template-columns: 240px 1fr; }
  .list-row .ph-img { min-height: 140px; }
}

.list-row h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  margin: 6px 0;
  color: #0A1A3D;
}

.list-row p { margin: 0; color: #3c465c; font-size: 0.98rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0A1A3D;
  color: #cdd5e6;
  margin-top: 48px;
  border-top: 4px solid #BF1E2D;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 34px 0 10px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.site-footer p { font-size: 0.94rem; margin: 0 0 12px; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: #cdd5e6; font-size: 0.94rem; }
.site-footer a:hover { color: #C9A227; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand .brand-name { font-size: 1.5rem; }

.footer-sign {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #d9c98a;
  padding: 16px 0 4px;
  border-top: 1px solid #22335e;
  margin-top: 14px;
}

.footer-base {
  text-align: center;
  font-size: 0.82rem;
  color: #8d99b5;
  padding: 8px 0 26px;
}
