/* ===========================================================================
   Blog additions on top of the site's own assets/main.css.

   Deliberately small. Cards, buttons, headings, the page container and the
   eyebrow all come from main.css already - this only adds what the static site
   had no need for: article body typography, the pager and the draft banner.

   main.css is a compiled Tailwind build, so it contains only the classes the
   static pages already use. Check a class is in that file before using it:
   anything absent renders as nothing. (.wrap is not in it - the blog pages
   used to wrap themselves in it and ran edge to edge as a result; they use
   .container-page now, which is what the rest of the site uses.)

   Colours are taken from main.css's own palette (navy #070E22, the ink greys
   and the line tint) so nothing new is introduced.
   =========================================================================== */

.sh-article {
  max-width: 760px;
}

.sh-article-meta {
  margin: 10px 0 0;
  font-size: .92rem;
  color: #5B6676;
}

.sh-article-img {
  margin: 28px 0 0;
  border-radius: 16px;
  overflow: hidden;
}
.sh-article-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- article body ------------------------------------------------------ */
/* The editor produces plain h2/h3/p/ul/blockquote, so style those directly
   rather than adding classes the author would have to remember. */
.sh-prose {
  margin-top: 32px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: #3F4A5A;
}
.sh-prose > :first-child { margin-top: 0; }

.sh-prose h2 {
  margin: 38px 0 12px;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #070E22;
}
.sh-prose h3 {
  margin: 28px 0 10px;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #070E22;
}

.sh-prose p { margin: 0 0 18px; }
.sh-prose ul,
.sh-prose ol { margin: 0 0 18px; padding-left: 22px; }
.sh-prose li { margin-bottom: 8px; }

.sh-prose a { color: #1D4ED8; text-decoration: underline; }
.sh-prose a:hover { text-decoration: none; }

.sh-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 24px 0;
}

.sh-prose blockquote {
  margin: 26px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid #F46B17;
  color: #070E22;
  font-style: normal;
}

.sh-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: .95rem;
}
.sh-prose th,
.sh-prose td {
  border: 1px solid #E4E9F0;
  padding: 10px 12px;
  text-align: left;
}
.sh-prose th { background: #F7F9FC; font-weight: 600; color: #070E22; }

/* ---- pagination -------------------------------------------------------- */
.sh-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 44px;
}
.sh-pager a {
  font-weight: 600;
  color: #070E22;
  text-decoration: none;
}
.sh-pager a:hover { text-decoration: underline; }
.sh-pager .is-off { color: #AEB6C2; font-weight: 600; }
.sh-pager-count { font-size: .9rem; color: #5B6676; }

/* ---- draft banner ------------------------------------------------------ */
.sh-draft {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid #F3D5B0;
  border-radius: 10px;
  background: #FFF4E6;
  color: #8A4B12;
  font-weight: 600;
  font-size: .92rem;
}
