/* ══════════════════════════════════════════════════
   BLOG STYLES — Mattingly Ott
   Scoped to .blog-* classes only. Loaded ONLY by files
   inside /blog/. Cannot affect any existing page.
   ══════════════════════════════════════════════════ */

/* ---------- Listing page ---------- */

.blog-list {
  padding: 0 48px 96px;
  max-width: 900px;
}

.blog-list-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--light);
}

.blog-list-item:last-child { border-bottom: none; }

.blog-list-date {
  font-family: var(--bold-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--section-blue);
  display: block;
  margin-bottom: 12px;
}

.blog-list-item h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.blog-list-item h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.blog-list-item h2 a:hover { color: var(--cyan); }

.blog-list-excerpt {
  font-size: 16px;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 16px;
}

.blog-read-more {
  font-family: var(--bold-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease;
}

.blog-read-more:hover { color: var(--cyan); }

/* ---------- Article page ---------- */

.blog-article {
  padding: 0 48px 96px;
  max-width: 720px;
}

.blog-article > * { max-width: 100%; }

.blog-article p {
  font-size: 17px;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 24px;
}

.blog-article h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
}

.blog-article h3 {
  font-family: var(--bold-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 24px 22px;
  padding: 0;
}

.blog-article li {
  font-size: 17px;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 10px;
}

.blog-article a {
  color: var(--section-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article a:hover { color: var(--marine); }

.blog-article blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
}

.blog-article blockquote p {
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0;
}

.blog-article img {
  width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
}

.blog-byline {
  font-size: 14px;
  color: var(--gray);
  font-weight: 300;
  margin-top: 16px;
}

.blog-back {
  display: inline-block;
  margin-top: 56px;
  font-family: var(--bold-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-decoration: none;
}

.blog-back:hover { color: var(--cyan); }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .blog-list,
  .blog-article { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
  .blog-list,
  .blog-article { padding-left: 20px; padding-right: 20px; padding-bottom: 64px; }
  .blog-list-item { padding: 28px 0; }
  .blog-article p,
  .blog-article li { font-size: 16px; }
}

/* ---------- Newsletter topic list ---------- */

.nl-topics-label {
  font-family: var(--bold-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--section-blue);
  margin-bottom: 14px;
}

.nl-topics {
  margin: 0 0 8px 0 !important;
  padding: 0 0 28px 20px;
  border-bottom: 1px solid var(--light);
}

.nl-topics li {
  font-family: var(--bold-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 4px;
}

.blog-article h2 + h3 { margin-top: 14px; }

/* ---------- Newsletter sign-off banners ---------- */

.nl-signoff {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--light);
}

.nl-signoff-label {
  font-family: var(--bold-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.nl-signoff img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 8px;
}


/* ══════════════════════════════════════════════════
   2026 REFRESH — appended block, September 2026.
   Layout only, driven entirely by CSS. The markup in
   blog/index.html is unchanged, so the weekly workflow
   (paste a new .blog-list-item at the top) still works
   exactly as before. Delete this block to revert.
   ══════════════════════════════════════════════════ */

.blog-list {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

/* The newest post always spans the full width — no markup needed,
   the first item in the list is by definition the newest. */
.blog-list-item:first-of-type { grid-column: 1 / -1; }

.blog-list-item,
.blog-list-item:last-child {
  padding: 30px 32px 28px;
  background: #ffffff;
  border: 1px solid rgba(10,30,63,0.12);
  border-bottom: 1px solid rgba(10,30,63,0.12);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10,30,63,0.05), 0 10px 26px -14px rgba(10,30,63,0.20);
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
  position: relative;
  overflow: hidden;
}

.blog-list-item::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--azure);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.26s ease;
}

.blog-list-item:hover {
  border-color: rgba(10,30,63,0.30);
  box-shadow: 0 1px 2px rgba(10,30,63,0.07), 0 20px 44px -20px rgba(10,30,63,0.32);
}

.blog-list-item:hover::before { transform: scaleX(1); }

/* Featured entry gets more presence than the ones below it */
.blog-list-item:first-of-type { padding: 44px 44px 40px; }
.blog-list-item:first-of-type h2 { font-size: clamp(30px, 4vw, 44px); }
.blog-list-item:first-of-type .blog-list-excerpt { font-size: 17px; max-width: 720px; }

/* Secondary entries sit tighter */
.blog-list-item:not(:first-of-type) h2 { font-size: clamp(22px, 2.4vw, 27px); }
.blog-list-item:not(:first-of-type) .blog-list-excerpt { font-size: 15px; margin-bottom: 14px; }

@media (max-width: 860px) {
  .blog-list { grid-template-columns: 1fr; gap: 16px; padding-top: 36px; }
  .blog-list-item,
  .blog-list-item:first-of-type { padding: 26px 24px 24px; }
  .blog-list-item:first-of-type h2 { font-size: clamp(26px, 6vw, 32px); }
}


/* ══════════════════════════════════════════════════
   ARTICLES — appended September 2026.
   "Article" tag on listing cards + tables inside posts.
   ══════════════════════════════════════════════════ */

.blog-list-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px 2px;
  border: 1px solid var(--azure);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--azure);
  vertical-align: 1px;
}

.blog-article ol ul { margin-top: 10px; margin-bottom: 0; }

.blog-table-wrap {
  margin: 8px 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(10,30,63,0.12);
  border-radius: 8px;
}

.blog-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.blog-table th,
.blog-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(10,30,63,0.10);
  color: var(--ink);
  font-weight: 300;
}

.blog-table thead th {
  background: var(--navy);
  color: #ffffff;
  font-family: var(--bold-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-table tbody th {
  font-weight: 600;
  color: var(--navy);
}

.blog-table tbody tr:nth-child(even) { background: rgba(216,230,244,0.35); }
.blog-table tbody tr:last-child th,
.blog-table tbody tr:last-child td { border-bottom: none; }
