/* Nirogyam Clinic — blog pages (loaded after pages.css, blog templates only) */
/* ---------- Blog ---------- */

.container.narrow { width: min(760px, 100% - 32px); }

/* hub + "keep reading" cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 26px; text-decoration: none; color: inherit; height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #cfdcf3; }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.pc-tag, .mc-tag {
  align-self: start; background: var(--sky-soft); color: var(--navy); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.pc-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
.pc-meta b { color: var(--navy-2); font-weight: 700; }
.pc-meta b::before { content: "·"; margin-right: 10px; color: var(--line); }

/* post sidebar */
.meta-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm); }
.meta-card dl { margin: 18px 0 20px; display: grid; gap: 14px; }
.meta-card dt { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.meta-card dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.meta-card .btn { width: 100%; justify-content: center; }
.meta-card .btn svg { width: 20px; height: 20px; flex: none; }

/* post body */
.post-body .container > * + * { margin-top: clamp(28px, 4vw, 44px); }
.post-body .h2 { font-size: clamp(22px, 3vw, 29px); margin: 0 0 14px; }
.post-body .prose p { margin: 0 0 14px; }
.post-body .prose p:last-child { margin-bottom: 0; }
.post-body .plan-steps { grid-template-columns: 1fr; gap: 14px; }
.post-body .plan-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 22px 24px; }
.post-body .plan-steps .n { grid-row: span 2; margin-bottom: 0; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-list li {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.6;
}
.post-list li b { color: var(--ink); }

.callout {
  display: flex; gap: 16px; align-items: flex-start; background: var(--gold-soft);
  border: 1px solid #f0dda8; border-radius: 22px; padding: 24px 26px;
}
.callout .ic { flex: none; width: 26px; height: 26px; color: var(--gold); }
.callout .ic svg { width: 100%; height: 100%; }
.callout p { margin: 0; color: #6b5210; font-size: 15.5px; line-height: 1.65; }

.takeaways { background: var(--sky-soft); border: 1px solid #cfe7f8; border-radius: 24px; padding: 26px; }
.takeaways .h3 { margin: 0 0 14px; color: var(--navy); }
.takeaways .check-list { margin: 0; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card { padding: 22px; }
  .post-body .plan-steps li { grid-template-columns: 1fr; row-gap: 10px; }
  .post-body .plan-steps .n { grid-row: auto; }
  .callout { flex-direction: column; gap: 12px; padding: 22px; }
}

/* ---------- Blog: pillar card, figures, tables, exercises ---------- */

.pillar-card {
  display: flex; align-items: center; gap: 28px; text-decoration: none; color: inherit;
  background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: 28px; padding: clamp(26px, 4vw, 40px); margin-bottom: 34px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-card h2 { margin: 12px 0 10px; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; }
.pillar-card p { margin: 0 0 16px; color: rgba(255,255,255,.82); font-size: 16px; max-width: 70ch; }
.pillar-card .pc-tag { background: rgba(255,255,255,.16); color: #fff; }
.pillar-card .pc-meta { color: rgba(255,255,255,.72); }
.pillar-card .pc-meta b { color: var(--gold); }
.pillar-card .pc-meta b::before { color: rgba(255,255,255,.3); }
.pc-go { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); font-size: 24px; font-weight: 700; transition: transform .4s var(--ease); }
.pillar-card:hover .pc-go { transform: translateX(5px); }
.list-head { margin: 0 0 18px; color: var(--muted); }

/* figures: charts, photos, tables */
.chart, .post-table, .post-photo { margin: 0; }
.chart-title { margin: 0 0 14px; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.chart-svg { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.chart-svg svg { display: block; height: auto; }
.chart figcaption, .post-table figcaption, .post-photo figcaption {
  margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6;
}
figcaption .src { display: block; margin-top: 4px; font-size: 12.5px; color: #8491ad; }
/* clinic photos are portrait; cap them so one image can't swallow the column */
.post-photo img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 38%; border-radius: 20px; display: block; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.post-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.post-table th, .post-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-table thead th { background: var(--bg-alt); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.post-table tbody th { font-weight: 700; color: var(--ink); width: 23%; }
.post-table td { color: var(--muted); }
.post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 0; }

/* exercises */
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex-grid li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px 20px; }
.ex-n { position: absolute; top: -12px; left: 22px; width: 28px; height: 28px; border-radius: 9px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.ex-grid h3 { margin: 6px 0 8px; font-size: 17px; }
.ex-grid p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.ex-dose { display: inline-block; background: var(--sky-soft); color: var(--navy); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 800; }

/* sources */
.sources { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-alt); padding: 0 22px; }
.sources summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary i { width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); transition: transform .3s var(--ease); flex: none; }
.sources[open] summary i { transform: rotate(-135deg); }
.sources ol { margin: 0; padding: 0 0 20px 20px; display: grid; gap: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.sources a { color: var(--navy-2); }

@media (max-width: 860px) {
  .ex-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillar-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ex-grid { grid-template-columns: 1fr; }
  .chart-svg { padding: 14px 10px; border-radius: 16px; }
}

/* author bio + editorial standards (E-E-A-T blocks) */
.author-bio { display: flex; gap: 24px; align-items: flex-start; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.author-bio img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.author-bio .h3 { margin: 10px 0 4px; }
.author-bio .creds { margin: 0 0 12px; color: var(--navy-2); font-weight: 700; font-size: 14px; }
.author-bio p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.meta-card dd small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.meta-card dd a { color: var(--navy-2); }
.std-list { grid-template-columns: 1fr 1fr; gap: 14px; }
.std-list li { background: #fff; }
@media (max-width: 860px) { .std-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .author-bio { flex-direction: column; gap: 16px; }
  .author-bio img { width: 76px; height: 76px; }
}
