/* ===========================================================
   Medicross — blog index and article template
   Loaded after styles.css by blog.html and every blog-*.html.
   =========================================================== */

/* ---------- shared meta line ---------- */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.post-meta .dot { opacity: .45; }
.post-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand); font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.page-hero .post-meta { color: rgba(255, 255, 255, .8); }
.page-hero .post-meta a { color: #fff; font-weight: 600; }

/* ---------- index: the stacked feed ---------- */
.blog-feed { display: grid; gap: 30px; }
.post-card {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-media { position: relative; background: var(--bg-soft); }
.post-card-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.post-card-body { padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; }
.post-card-body h2 {
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25;
}
.post-card-body h2 a:hover { color: var(--brand); }
.post-card-body .excerpt { color: var(--muted); line-height: 1.75; }
/* the one-sentence answer an AI assistant can lift verbatim */
.post-card-answer {
  border-left: 3px solid var(--brand);
  padding: 2px 0 2px 14px; font-size: 14.5px; line-height: 1.7; color: var(--ink);
}
.post-card-answer strong { color: var(--brand); }
.post-card-more {
  margin-top: auto; align-self: start;
  font-weight: 800; font-size: 14.5px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 7px;
}
.post-card-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.post-card:hover .post-card-more svg { transform: translateX(3px); }

/* ---------- index: topic clusters ---------- */
.cluster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cluster {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
}
.cluster h3 { font-size: 18px; margin-bottom: 12px; }
.cluster ul { list-style: none; display: grid; gap: 2px; }
.cluster a {
  display: block; padding: 8px 0; font-size: 14.5px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.cluster li:last-child a { border-bottom: none; }
.cluster a:hover { color: var(--brand); }

/* ---------- article: the "Pe scurt" answer box ----------
   Both a reader's summary and the passage an answer engine is most
   likely to quote, so it leads with the answer and stays under 60 words. */
.tldr {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 14px; padding: 24px 26px; margin: 0 0 32px;
  box-shadow: var(--shadow-soft);
}
.tldr h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 10px;
}
.tldr p { font-size: 16.5px; line-height: 1.75; color: var(--ink); margin: 0; }

/* ---------- article: key-facts table ---------- */
.facts-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.facts-table caption {
  caption-side: top; text-align: left; font-size: 13px; color: var(--muted);
  padding-bottom: 10px;
}
.facts-table th, .facts-table td {
  padding: 13px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top;
}
.facts-table thead th {
  background: var(--bg-soft); font-weight: 800; font-size: 13.5px;
  letter-spacing: .03em; color: var(--navy);
}
.facts-table td { color: var(--muted); line-height: 1.7; }
.facts-table td strong { color: var(--navy); }
.facts-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-soft) 45%, #fff); }
/* wide tables scroll inside their own box instead of the page */
.table-scroll { overflow-x: auto; }

/* ---------- article: numbered recovery timeline ---------- */
.timeline { list-style: none; counter-reset: step; display: grid; gap: 4px; margin: 24px 0; }
.timeline li {
  counter-increment: step; position: relative;
  padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); color: var(--muted);
  line-height: 1.7;
}
.timeline li:last-child { border-bottom: none; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.timeline li strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* ---------- article: author + medical disclaimer ---------- */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; margin: 36px 0 0;
}
.author-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--navy), var(--navy-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Newsreader", serif; font-size: 22px;
}
.author-box h3 { font-size: 17px; margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.disclaimer {
  margin-top: 18px; padding: 18px 20px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.7; color: var(--muted);
}
.disclaimer strong { color: var(--navy); }

/* ---------- the contact form, on the index and on every post ---------- */
.blog-contact { background: var(--bg-soft); }
.blog-contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: start;
}
.blog-contact-copy h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin-bottom: 14px; }
.blog-contact-copy p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.blog-contact-copy .pack-list { margin-top: 6px; }
.blog-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-soft);
}
.blog-form-card h3 { font-size: 22px; margin-bottom: 6px; }
.blog-form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.blog-form-card .btn { width: 100%; justify-content: center; white-space: normal; }
.blog-form-card .note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1024px) {
  .blog-contact-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cluster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .post-card { grid-template-columns: minmax(0, 1fr); }
  .post-card-media img { min-height: 210px; max-height: 260px; }
  .post-card-body { padding: 26px 24px; }
}
@media (max-width: 640px) {
  .cluster-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-form-card { padding: 26px 20px; }
  .author-box { flex-direction: column; gap: 14px; }
  .timeline li { padding-left: 44px; }
  .timeline li::before { width: 28px; height: 28px; font-size: 13px; }
}
