/* ───────── Kanata Mews Pharmacy — shared blog styles ─────────
   Reuses the homepage design system (PharmaChoice blue + cool gray). */

:root {
  --bg: #E8EAED;
  --bg-2: #f4f5f7;
  --paper: #ffffff;
  --blue: #10609E;
  --blue-2: #0d4d7e;
  --blue-pale: #e2eef7;
  --blue-50: #f1f7fc;
  --red: #C8102E;
  --ink: #0f1f2e;
  --ink-2: #3f4d5e;
  --muted: #6f7c8b;
  --rule: #d6dae0;
  --rule-soft: #e3e6ea;
  --green: #1f9d6a;
  --shadow-sm: 0 1px 2px rgba(15,31,46,.05);
  --shadow: 0 8px 24px rgba(15,31,46,.07);
  --shadow-lg: 0 24px 48px rgba(15,31,46,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.serif { font-family: "Source Serif 4", Georgia, serif; }
.mono  { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; color: var(--blue); font-weight: 500;
}
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 780px; }

/* ───────── Top utility bar ───────── */
.topbar { background: var(--blue); color: #fff; font-size: 13px; }
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px; gap: 24px; flex-wrap: wrap;
}
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
}
.topbar .dot { width: 7px; height: 7px; border-radius: 999px; background: #6dde9e; box-shadow: 0 0 0 3px rgba(109,222,158,.22); }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; opacity: .85; }
.topbar .sep { opacity: .35; }

/* ───────── Header / Nav ───────── */
header.site {
  background: #fff; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px;
}
.brand img { height: 56px; width: auto; }
nav.primary { display: flex; gap: 6px; align-items: center; }
nav.primary a {
  text-decoration: none; color: var(--ink-2);
  font-size: 14.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
nav.primary a:hover { background: var(--blue-50); color: var(--blue); }
nav.primary a.active { color: var(--blue); }
.header-cta {
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 6px;
  text-decoration: none; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s ease;
}
.header-cta:hover { background: var(--blue-2); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; border: 1px solid transparent;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(16,96,158,.25); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(16,96,158,.3); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-50); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───────── Blog hero / header ───────── */
.blog-hero { padding: 56px 0 40px; background: var(--bg); }
.blog-hero h1 {
  font-weight: 800; font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -.022em; margin: 16px 0 16px; text-wrap: balance;
}
.blog-hero .lede { font-size: 18px; color: var(--ink-2); max-width: 640px; }

/* ───────── Breadcrumb ───────── */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* ───────── Post-card grid (index + homepage teaser) ───────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.post-card .thumb { aspect-ratio: 16/10; background: #cdd2d8; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); font-weight: 500;
}
.post-card h3 { font-weight: 800; font-size: 20px; line-height: 1.22; letter-spacing: -.01em; margin: 0; }
.post-card p { color: var(--ink-2); font-size: 14.5px; margin: 0; flex: 1; }
.post-card .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.post-card .meta .d { width: 4px; height: 4px; border-radius: 999px; background: var(--muted); }

/* ───────── Article ───────── */
.article-wrap { background: #fff; }
article.post { padding: 8px 0 64px; }
article.post .post-head { padding: 32px 0 28px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
article.post .cat {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); font-weight: 500;
}
article.post h1 {
  font-weight: 800; font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08; letter-spacing: -.022em; margin: 14px 0 18px; text-wrap: balance;
}
article.post .byline { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
article.post .byline .d { width: 4px; height: 4px; border-radius: 999px; background: var(--muted); }
article.post .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 28px; }
article.post h2 { font-weight: 800; font-size: 27px; line-height: 1.18; letter-spacing: -.015em; margin: 40px 0 14px; }
article.post h3 { font-weight: 700; font-size: 20px; margin: 28px 0 10px; letter-spacing: -.01em; }
article.post p { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; }
article.post ul, article.post ol { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; padding-left: 22px; }
article.post li { margin: 0 0 9px; }
article.post a { color: var(--blue); font-weight: 600; }
article.post strong { color: var(--ink); }
article.post .post-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin: 28px 0; }
article.post blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--blue);
  background: var(--blue-50); border-radius: 0 8px 8px 0;
  font-size: 18px; color: var(--ink); font-weight: 500;
}

/* Callout / CTA box inside articles */
.callout {
  background: linear-gradient(180deg, var(--blue) 0%, #0c4f80 100%);
  color: #fff; border-radius: 14px; padding: 32px 34px; margin: 40px 0;
}
.callout .eyebrow { color: #b3d6ee; }
.callout h3 { color: #fff; font-size: 24px; font-weight: 800; margin: 10px 0 8px; letter-spacing: -.015em; }
.callout p { color: rgba(255,255,255,.85); font-size: 16px; margin: 0 0 18px; }
.callout .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.callout .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.callout .btn-primary:hover { background: #eef5fb; }
.callout .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.callout .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Key facts box */
.factbox {
  border: 1px solid var(--rule); border-radius: 12px; padding: 24px 26px;
  background: var(--bg-2); margin: 28px 0;
}
.factbox h4 {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); font-weight: 500; margin: 0 0 14px;
}
.factbox ul { margin: 0; padding-left: 20px; font-size: 15.5px; }
.factbox li { margin-bottom: 8px; }

/* Related posts */
.related { border-top: 1px solid var(--rule); padding: 48px 0 8px; }
.related h2 { font-weight: 800; font-size: 26px; letter-spacing: -.015em; margin: 0 0 24px; }

/* ───────── FAQ block (articles) ───────── */
.post-faq { margin: 40px 0 8px; }
.post-faq h2 { margin-bottom: 8px; }
details.faq { border-bottom: 1px solid var(--rule); padding: 18px 0; }
details.faq > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-weight: 700; font-size: 17px; letter-spacing: -.01em;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq .plus {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--rule);
  display: grid; place-items: center; flex-shrink: 0; color: var(--ink); font-size: 17px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
details.faq[open] .plus { background: var(--blue); color: #fff; transform: rotate(45deg); border-color: var(--blue); }
details.faq .ans { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
details.faq .ans p { font-size: 16px; margin: 0 0 12px; }
details.faq .ans p:last-child { margin-bottom: 0; }

/* ───────── Section scaffold (homepage teaser reuse) ───────── */
section.block { padding: 96px 0; }

/* ───────── Footer ───────── */
footer.site { background: #0a1a2a; color: #cad3dc; padding: 64px 0 28px; }
footer.site .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12);
}
footer.site h5 {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 18px; color: rgba(255,255,255,.55); font-weight: 500;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 6px 0; font-size: 14.5px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; }
footer .brand-foot .logoimg { background: #fff; padding: 12px 16px; border-radius: 8px; display: inline-block; margin-bottom: 16px; }
footer .brand-foot .logoimg img { height: 44px; width: auto; }
footer .brand-foot p { color: rgba(202,211,220,.75); font-size: 14.5px; max-width: 320px; }
footer .legal {
  display: flex; justify-content: space-between; padding-top: 20px;
  font-size: 12.5px; color: rgba(202,211,220,.55); flex-wrap: wrap; gap: 16px;
}
footer .legal a { color: rgba(202,211,220,.75); }
footer .legal .links a { margin-left: 18px; }

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  nav.primary { display: none; }
  footer.site .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .post-grid { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 36px 0 28px; }
  section.block { padding: 56px 0; }
  .brand img { height: 44px; }
}
