/* ============================================================
   ADM Blog — article typography
   Everything the WordPress editor outputs lands inside
   .blog-content, so every element is styled here to match the
   main site.

   Tokens (from the site's style.css):
     navy #14294a · blue #2f6fb0 · blue-dark #1c4c80 · gold #c9aa70
     cream #fbf7f1 · tan #e7e0d3 · text #24313f · muted #4b5a68
   Fonts: Playfair Display (headings) · Work Sans (body)
   ============================================================ */

.blog-content {
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #4b5a68;
}

.blog-content > *:first-child {
  margin-top: 0;
}

.blog-content > *:last-child {
  margin-bottom: 0;
}


/* ── Headings ────────────────────────────────────────────────── */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  color: #14294a;
  margin: 0 0 16px;
}

.blog-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 1.18;
  font-weight: 600;
  margin-top: 52px;
}

.blog-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  line-height: 1.22;
  font-weight: 600;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid #e7e0d3;
}

.blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  line-height: 1.26;
  font-weight: 600;
  margin-top: 38px;
}

.blog-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 600;
  margin-top: 32px;
}

.blog-content h5 {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  margin-top: 28px;
}

.blog-content h6 {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #2f6fb0;
  margin-top: 28px;
}

/* First heading after the lead shouldn't carry a rule */
.blog-content > h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}


/* ── Paragraphs ──────────────────────────────────────────────── */
.blog-content p {
  margin: 0 0 22px;
}

/* Apply the "Lead" style in the editor, or use has-large-font-size */
.blog-content__lead,
.blog-content p.is-style-lead,
.blog-content p.has-large-font-size {
  font-size: 19px;
  line-height: 1.75;
  color: #24313f;
  padding-left: 20px;
  border-left: 3px solid #c9aa70;
  margin-bottom: 30px;
}


/* ── Inline ──────────────────────────────────────────────────── */
.blog-content a {
  color: #2f6fb0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #b3cde6;
  transition: color 0.16s, text-decoration-color 0.16s;
}

.blog-content a:hover {
  color: #1c4c80;
  text-decoration-color: #1c4c80;
}

.blog-content strong,
.blog-content b {
  font-weight: 600;
  color: #24313f;
}

.blog-content em,
.blog-content i {
  font-style: italic;
}

.blog-content small {
  font-size: 13.5px;
  color: #7f93aa;
}

.blog-content mark {
  background: #fdf3dd;
  color: #24313f;
  padding: 1px 4px;
  border-radius: 3px;
}

.blog-content abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

.blog-content sub,
.blog-content sup {
  font-size: 75%;
  line-height: 0;
}

.blog-content del { color: #9aa9b8; }
.blog-content ins { background: #eaf4ea; text-decoration: none; }


/* ── Lists ───────────────────────────────────────────────────── */
.blog-content ul,
.blog-content ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.blog-content li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.75;
}

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

/* Bulleted — checkmark, matching the site's service pages */
.blog-content ul > li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: #2f6fb0;
  font-weight: 700;
  font-size: 14px;
}

/* Numbered — navy counter discs */
.blog-content ol {
  counter-reset: blog-ol;
}

.blog-content ol > li {
  counter-increment: blog-ol;
  padding-left: 42px;
}

.blog-content ol > li::before {
  content: counter(blog-ol);
  position: absolute;
  left: 0;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #14294a;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nested */
.blog-content li > ul,
.blog-content li > ol {
  margin: 12px 0 0;
}

.blog-content li > ul > li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9aa70;
  top: 12px;
}

.blog-content li > ol {
  counter-reset: blog-ol-nested;
}

.blog-content li > ol > li {
  counter-increment: blog-ol-nested;
}

.blog-content li > ol > li::before {
  content: counter(blog-ol-nested);
  background: #2f6fb0;
  width: 22px;
  height: 22px;
  font-size: 11.5px;
}

/* Definition lists */
.blog-content dl { margin: 0 0 24px; }
.blog-content dt { font-weight: 600; color: #14294a; margin-top: 16px; }
.blog-content dd { margin: 4px 0 0; padding-left: 18px; border-left: 2px solid #e7e0d3; }


/* ── Blockquote ──────────────────────────────────────────────── */
.blog-content blockquote,
.blog-content .wp-block-quote {
  margin: 34px 0;
  padding: 30px 32px;
  background: #fff;
  border-left: 4px solid #c9aa70;
  border-radius: 0 16px 16px 0;
}

.blog-content blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.55;
  font-style: italic;
  color: #14294a;
  margin: 0;
}

.blog-content blockquote p + p { margin-top: 14px; }

.blog-content blockquote cite,
.blog-content blockquote .wp-block-quote__citation,
.blog-content .wp-block-quote cite {
  display: block;
  margin-top: 16px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7f93aa;
}

.blog-content .wp-block-pullquote {
  margin: 36px 0;
  padding: 34px 32px;
  background: #14294a;
  border: 0;
  border-radius: 18px;
  text-align: center;
}

.blog-content .wp-block-pullquote p { color: #fff; font-size: 22px; }
.blog-content .wp-block-pullquote cite { color: #9dc0e8; }


/* ── Media ───────────────────────────────────────────────────── */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.blog-content figure {
  margin: 34px 0;
}

.blog-content figcaption,
.blog-content .wp-caption-text,
.blog-content .wp-element-caption {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7f93aa;
  text-align: center;
}

.blog-content iframe,
.blog-content video,
.blog-content embed,
.blog-content object {
  max-width: 100%;
  border-radius: 16px;
  display: block;
  margin: 30px 0;
}

.blog-content .wp-block-embed__wrapper { position: relative; }

/* Alignment classes */
.blog-content .aligncenter { margin-left: auto; margin-right: auto; }

.blog-content .alignleft {
  float: left;
  margin: 6px 28px 20px 0;
  max-width: 50%;
}

.blog-content .alignright {
  float: right;
  margin: 6px 0 20px 28px;
  max-width: 50%;
}

.blog-content .alignwide,
.blog-content .alignfull { margin-left: 0; margin-right: 0; }

.blog-content .wp-block-image { margin: 34px 0; }
.blog-content .wp-block-image img { border-radius: 16px; }

.blog-content .wp-block-gallery { margin: 34px 0; }


/* ── Tables ──────────────────────────────────────────────────── */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 14px;
  overflow: hidden;
}

.blog-content thead th {
  background: #14294a;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
}

.blog-content tbody td,
.blog-content tbody th {
  padding: 14px 18px;
  border-top: 1px solid #eee8de;
  color: #4b5a68;
  line-height: 1.65;
  text-align: left;
}

.blog-content tbody tr:nth-child(even) td { background: #fdfbf8; }

.blog-content .wp-block-table { margin: 30px 0; overflow-x: auto; }
.blog-content .wp-block-table table { margin: 0; }
.blog-content .wp-block-table figcaption { text-align: center; }

/* Wrapper added by blog.js so wide tables scroll instead of overflowing */
.blog-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
}

.blog-table-scroll table { margin: 0; min-width: 520px; }


/* ── Code ────────────────────────────────────────────────────── */
.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  background: #eef2f6;
  color: #14294a;
  padding: 2px 7px;
  border-radius: 5px;
}

.blog-content pre {
  background: #14294a;
  color: #dbe6f3;
  padding: 22px 24px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 28px 0;
  line-height: 1.7;
}

.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 13.5px;
}

.blog-content kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #fff;
  border: 1px solid #d7dfe7;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
}


/* ── Separators ──────────────────────────────────────────────── */
.blog-content hr,
.blog-content .wp-block-separator {
  border: 0;
  height: 1px;
  background: #e7e0d3;
  margin: 40px 0;
}


/* ── Buttons placed in content ───────────────────────────────── */
.blog-content .wp-block-button__link {
  display: inline-block;
  background: #2f6fb0;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s;
}

.blog-content .wp-block-button__link:hover { background: #1c4c80; color: #fff; }


/* ── Utility ─────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── Responsive ──────────────────────────────────────────────── */
@media only screen and (max-width: 991px) {
  .blog-content h1 { font-size: 34px; }
  .blog-content h2 { font-size: 28px; margin-top: 40px; padding-top: 26px; }
  .blog-content h3 { font-size: 23px; }
}

@media only screen and (max-width: 767px) {
  .blog-content { font-size: 16px; line-height: 1.8; }
  .blog-content__lead,
  .blog-content p.has-large-font-size { font-size: 17.5px; padding-left: 16px; }
  .blog-content h1 { font-size: 29px; }
  .blog-content h2 { font-size: 25px; margin-top: 34px; padding-top: 24px; }
  .blog-content h3 { font-size: 21px; margin-top: 30px; }
  .blog-content h4 { font-size: 18.5px; }
  .blog-content blockquote { padding: 24px 22px; margin: 28px 0; }
  .blog-content blockquote p { font-size: 18px; }
  .blog-content pre { padding: 18px; }

  /* Floats stack on phones */
  .blog-content .alignleft,
  .blog-content .alignright {
    float: none;
    margin: 24px 0;
    max-width: 100%;
  }
}

@media only screen and (max-width: 575px) {
  .blog-content li { padding-left: 26px; }
  .blog-content ol > li { padding-left: 38px; }
}
