/* =========================================================
   MediFier CMS additions to the site stylesheet
   ========================================================= */

/* Spam trap field on forms: invisible to people, filled in by bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Draft preview ribbon */
.mf-preview-bar { position: sticky; top: 0; z-index: 200; background: #f7a541; color: #1d1d1d; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.mf-preview-bar a { color: inherit; text-decoration: underline; margin-left: 8px; }

/* ---------- Rich text ---------- */
.prose { max-width: 820px; margin-left: auto; margin-right: auto; }
.section > .prose { padding-top: 10px; padding-bottom: 10px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.6em 0 .55em; }
.prose h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.6em auto; height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--teal); background: var(--sky-1); border-radius: 0 12px 12px 0; font-size: 19px; color: var(--navy); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--sky-1); color: var(--navy); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- Blog ---------- */
.post-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -10px 0 44px; }
.post-cats a { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; }
.post-cats a:hover, .post-cats a.is-on { border-color: var(--blue); color: #fff; background: var(--blue); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 26px 50px rgba(0, 46, 67, .16); }
.post-card-media { aspect-ratio: 16 / 9; background: var(--sky-2); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--teal), var(--blue)); opacity: .55; }
.post-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body h3 { font-size: 1.2rem; line-height: 1.35; margin: 0; }
.post-card-body p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.post-meta { font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; font-size: 16px; font-weight: 600; }
.post-hero { padding-bottom: 50px; }
.post-hero h1 { max-width: 900px; }
.post-back { display: inline-block; margin-top: 40px; font-size: 15px; font-weight: 600; }
.post-hero .eyebrow { margin-top: 18px; color: var(--blue); }
.post-hero h1 { margin-top: 6px; }
.post-cover { max-width: 1040px; margin-top: -10px; margin-bottom: 50px; }
.post-cover img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-card); }
.post-content { padding-bottom: 40px; }
.post-cta { max-width: 820px; margin: 0 auto 90px; display: flex; gap: 30px; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; border-radius: 20px; padding: 34px 38px; }
.post-cta h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.post-cta p { margin: 0; color: #c3d4dc; font-size: 16px; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose p, .prose li { font-size: 17px; }
  .post-cta { padding: 28px 24px; }
}
