/* ==============================================
   THE OPEN QUESTION — Shared Design System
   Hiturn Media Group
   ============================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: #1c1c1e;
  background: #ffffff;
}

/* ---- Shared container ---- */
.container {
  width: 100%;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 960px) { .container { max-width: 960px; margin: 0 auto; } }

/* ---- Typography ---- */
h1 { font-size: 28px; font-weight: 700; color: #1F3864; margin: 0 0 8px; line-height: 1.25; }
h2 { font-size: 22px; font-weight: 700; color: #1F3864; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 40px; margin-bottom: 8px; }
h3 { font-size: 18px; font-weight: 700; color: #1F3864; margin-top: 28px; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid #cccccc; }
h4 { font-size: 16px; font-weight: 700; color: #1c1c1e; margin-top: 20px; margin-bottom: 4px; }
p  { margin-bottom: 16px; }

a { color: #1F3864; text-decoration: underline; }
a:hover, a:focus { color: #2c54a0; }
*:focus { outline: 2px solid #2c54a0; outline-offset: 2px; }

/* ---- Site header ---- */
/* Mobile first: on phones the logo sits above the menu and the bar scrolls away; from 640px it is one sticky row */
.site-header {
  background: #1F3864;
  padding: 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
@media (min-width: 640px) {
  .site-header { position: sticky; top: 0; }
  .site-header .container { flex-wrap: nowrap; height: 56px; padding-top: 0; padding-bottom: 0; }
}
.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.site-logo span {
  color: #f0b429;
}
.site-logo:hover, .site-logo:focus { color: #ffffff; text-decoration: none; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.site-nav a {
  color: #c8d6f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav a:focus { background: rgba(255,255,255,0.12); color: #ffffff; }
.site-nav a.active { color: #ffffff; background: rgba(255,255,255,0.15); }
.site-nav .nav-cta {
  background: #f0b429;
  color: #1F3864;
  border-radius: 4px;
  padding: 6px 14px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus { background: #e0a41a; color: #1F3864; }

/* ---- Article question callout ---- */
.question-box {
  border-left: 4px solid #d97706;
  background: #fffbf0;
  padding: 18px 20px;
  margin: 28px 0 24px;
  border-radius: 0 4px 4px 0;
}
.question-box .q-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d97706;
  margin-bottom: 8px;
}
.question-box p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
  font-style: italic;
  line-height: 1.5;
}

/* ---- Scripture blockquote ---- */
blockquote {
  border-left: 4px solid #1F3864;
  background: #f2f2f2;
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #1c1c1e;
}
blockquote p { margin: 0 0 8px; }
blockquote .ref {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: #1F3864;
  margin-top: 4px;
}

/* ---- Note / callout box ---- */
.note-box {
  border-left: 4px solid #d97706;
  background: #fffbf0;
  padding: 12px 16px;
  margin: 20px 0;
}

/* ---- Answer summary box ---- */
.answer-box {
  border: 1px solid #cccccc;
  border-left: 4px solid #1F3864;
  background: #f9f9fb;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.answer-box .a-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1F3864;
  margin-bottom: 8px;
}
.answer-box p { margin: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: #1F3864; color: #ffffff; }
thead th { padding: 10px 14px; font-weight: 700; letter-spacing: 0.04em; text-align: left; }
tbody tr:nth-child(odd)  { background: #ffffff; }
tbody tr:nth-child(even) { background: #f2f2f2; }
tbody td { padding: 10px 14px; border: 1px solid #cccccc; }
tbody td.lc { background: #f2f2f2; font-weight: 700; }

/* ---- Category tags ---- */
.tag {
  display: inline-block;
  background: #e8eef8;
  color: #1F3864;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 3px;
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 4px;
}
.tag:hover, .tag:focus { background: #1F3864; color: #ffffff; text-decoration: none; }

/* ---- Article cards (answers hub + home) ---- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid #cccccc;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: #1c1c1e;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 16px rgba(31,56,100,0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #1c1c1e;
}
.card-top {
  background: #1F3864;
  padding: 16px 18px;
}
.card-top .tag {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  margin-bottom: 10px;
  display: inline-block;
}
.card-question {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}
.card-body {
  padding: 14px 18px;
  flex: 1;
  background: #fff;
}
.card-excerpt {
  font-size: 13px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.55;
}
.card-read {
  font-size: 13px;
  font-weight: 700;
  color: #1F3864;
  text-decoration: underline;
}

/* ---- Featured article card (home page) ---- */
.featured-card {
  border: 2px solid #1F3864;
  border-radius: 6px;
  overflow: hidden;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 700px) {
  .featured-card { flex-direction: row; }
}
.featured-card-left {
  background: #1F3864;
  padding: 28px 24px;
  flex: 0 0 auto;
}
@media (min-width: 700px) { .featured-card-left { width: 44%; } }
.featured-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0b429;
  margin-bottom: 12px;
}
.featured-question {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}
@media (min-width: 700px) { .featured-question { font-size: 22px; } }
.featured-card-right {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card-right .tag { align-self: flex-start; }
.featured-excerpt {
  font-size: 15px;
  color: #1c1c1e;
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn {
  display: inline-block;
  background: #1F3864;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.btn:hover, .btn:focus { background: #2c54a0; color: #ffffff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #1F3864;
  border: 2px solid #1F3864;
}
.btn-outline:hover, .btn-outline:focus { background: #1F3864; color: #ffffff; }
.btn-amber {
  background: #f0b429;
  color: #1F3864;
}
.btn-amber:hover, .btn-amber:focus { background: #e0a41a; color: #1F3864; }

/* ---- Hero / page header ---- */
.page-hero {
  background: linear-gradient(135deg, #1F3864 0%, #2c54a0 100%);
  padding: 52px 0 44px;
  text-align: center;
}
.page-hero h1 { color: #ffffff; font-size: 32px; margin-bottom: 12px; }
@media (min-width: 640px) { .page-hero h1 { font-size: 38px; } }
.page-hero p { color: #c8d6f0; font-size: 17px; margin: 0 auto; max-width: 600px; }

/* ---- Submit section ---- */
.submit-section {
  background: #f2f2f2;
  border-top: 3px solid #1F3864;
  padding: 40px 0;
  text-align: center;
}
.submit-section h2 { margin-top: 0; text-align: center; }
.submit-section p { max-width: 520px; margin: 0 auto 24px; color: #555; }

/* ---- Article page layout ---- */
.article-wrap {
  padding: 32px 0 60px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-title-block {
  margin-bottom: 0;
  padding: 32px 0 0;
}
.article-title-block h1 {
  font-size: 26px;
  margin-bottom: 16px;
}
@media (min-width: 640px) { .article-title-block h1 { font-size: 30px; } }
.title-rule { border: none; border-top: 2px solid #1F3864; margin: 0 0 0; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 13px;
  color: #777;
  padding: 14px 0 0;
}
.breadcrumb a { color: #1F3864; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ---- Back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1F3864;
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { color: #2c54a0; text-decoration: underline; }

/* ---- Response / Tally section ---- */
.response-section {
  background: #f2f2f2;
  border-top: 3px solid #1F3864;
  padding: 36px 0 48px;
  margin-top: 48px;
}
.response-section h2 { margin-top: 0; }
.response-section p { color: #555; max-width: 560px; margin-bottom: 20px; }
.tally-placeholder {
  border: 2px dashed #cccccc;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
  background: #ffffff;
}
.tally-placeholder strong { display: block; color: #1F3864; font-size: 15px; margin-bottom: 6px; }

/* ---- "There's more" signposts (home page) ---- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.section-head h2 { margin: 0; }
.see-all { font-size: 14px; font-weight: 700; color: #1F3864; white-space: nowrap; }
.more-questions { text-align: center; margin: 8px 0 48px; }
.more-questions p { color: #555; font-size: 14px; margin: 0 0 12px; }
.more-questions .btn { min-height: 44px; padding: 12px 24px; }

/* ---- Section divider ---- */
.section-divider {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 40px 0;
}

/* ---- Footer ---- */
.site-footer {
  background: #1F3864;
  color: #c8d6f0;
  padding: 32px 0;
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: #f0b429; }
.site-footer a:hover { color: #ffffff; }
.site-footer .footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.site-footer .footer-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
}

/* ---- Utility ---- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .response-section, .submit-section { display: none; }
  body { color: #1c1c1e; }
  a { color: #1c1c1e; }
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
