/* Iowa Accident Claim Calculator — shared article styles */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1a2b3c;
  background: #f7f9fc;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2a4f75;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #1b3a5b;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1b3a5b;
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(27, 58, 91, 0.15);
}

.site-header a {
  color: #fff;
  text-decoration: none;
}

.site-header a:hover {
  color: #c9a24b;
}

.wordmark {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-phone a {
  color: #c9a24b;
}

.header-phone a:hover {
  color: #e0bc6a;
}

/* ── Layout ── */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8125rem;
  color: #5a6b7d;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.breadcrumb a {
  color: #5a6b7d;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #1b3a5b;
  text-decoration: underline;
}

.breadcrumb span[aria-current] {
  color: #1a2b3c;
}

/* ── Article typography ── */
.article h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1b3a5b;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.article .lead {
  font-size: 1.125rem;
  color: #5a6b7d;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.article h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1b3a5b;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

.article h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2a4f75;
  margin: 1.5rem 0 0.5rem;
}

.article p {
  margin: 0 0 1.125rem;
}

.article ul,
.article ol {
  margin: 0 0 1.125rem;
  padding-left: 1.5rem;
}

.article li {
  margin-bottom: 0.4rem;
}

.article li:last-child {
  margin-bottom: 0;
}

.article strong {
  font-weight: 600;
  color: #1b3a5b;
}

/* ── Tables ── */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9375rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d8e0ea;
}

.article th,
.article td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #d8e0ea;
}

.article th {
  background: #1b3a5b;
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article tr:last-child td {
  border-bottom: none;
}

.article tr:nth-child(even) td {
  background: #f0f4f8;
}

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, #1b3a5b 0%, #2a4f75 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cta-box p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background: #c9a24b;
  color: #1b3a5b;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: #e0bc6a;
  color: #1b3a5b;
  transform: translateY(-1px);
}

/* ── Related articles ── */
.related {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #d8e0ea;
}

.related h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1b3a5b;
  margin: 0 0 0.75rem;
}

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

.related li {
  margin-bottom: 0.5rem;
}

.related a {
  font-weight: 500;
}

/* ── Footer ── */
.site-footer {
  background: #1b3a5b;
  color: rgba(255, 255, 255, 0.75);
  padding: 1.5rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer a {
  color: #c9a24b;
  text-decoration: none;
}

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

.site-footer .disclaimer {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Hub page ── */
.hub h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1b3a5b;
  margin: 0 0 0.75rem;
}

.hub .lead {
  font-size: 1.125rem;
  color: #5a6b7d;
  margin: 0 0 2rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  border-color: #c9a24b;
  box-shadow: 0 4px 16px rgba(27, 58, 91, 0.08);
}

.article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1b3a5b;
  margin: 0 0 0.35rem;
}

.article-card p {
  font-size: 0.9375rem;
  color: #5a6b7d;
  margin: 0;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .wordmark {
    font-size: 1.05rem;
  }

  .article h1,
  .hub h1 {
    font-size: 2rem;
  }

  .page-wrap {
    padding: 2rem 1.5rem 3.5rem;
  }
}

@media (max-width: 360px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .header-phone {
    font-size: 0.8125rem;
  }
}