/* dr-v2-content.css — المدونة (/blog، Stitch _22) وقارئ المقال (/blog/{id}، Stitch _23) بواجهة v2. تحت .drv2 فقط.
   المرجع docs/design/DESIGN.md: بلا ظلال ولا ضباب ولا تدرّجات؛ بطاقات 16px، أزرار 10px، رقائق 8px، لمسات ≥44px. ?v=1 */

.drv2 .ct-page { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.drv2 .ct-page--sticky { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
.drv2 .ct-util { display: flex; align-items: center; gap: 8px; }
.drv2 .ct-util__title { flex: 1; font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; }
.drv2 .ct-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--chip); color: var(--ink); cursor: pointer; font: inherit; }
.drv2 .ct-crumbs { display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); scrollbar-width: none; }
.drv2 .ct-crumbs::-webkit-scrollbar { display: none; }
.drv2 .ct-crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.drv2 .ct-crumbs [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.drv2 .ct-h1 { margin: 0; font-size: var(--fs-headline-lg); line-height: var(--lh-headline-lg); font-weight: 700; overflow-wrap: anywhere; }
.drv2 .ct-h2 { margin: 0; font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; }
.drv2 .ct-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drv2 .ct-more { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-label-md); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.drv2 .ct-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.drv2 .ct-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 9999px; background: var(--chip); color: var(--ink); font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); font-weight: 600; }
.drv2 a.ct-tag { min-height: 28px; }
.drv2 .ct-meta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--muted); }
.drv2 .ct-hero { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r-card); background: var(--chip); }
.drv2 .ct-body { font-size: var(--fs-body-lg); line-height: 1.9; }
.drv2 .ct-body > :first-child { margin-top: 0; }
.drv2 .ct-body > :last-child { margin-bottom: 0; }

/* دعوة الحجز داخل المقال */
.drv2 .ct-cta { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-card); background: var(--chip); }
.drv2 .ct-cta__ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--ink); }
.drv2 .ct-cta h2 { margin: 0; font-size: var(--fs-label-lg); line-height: var(--lh-label-lg); font-weight: 700; }
.drv2 .ct-cta p { margin: 0; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--ink-2); }
.drv2 .ct-cta .v2-btn { grid-column: 1 / -1; }
.drv2 .ct-share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drv2 .ct-msg { margin: 0; font-size: var(--fs-label-sm); color: var(--ink-2); }
.drv2 .ct-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--r-12); background: var(--chip); }
.drv2 .ct-note__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--ink); }
.drv2 .ct-note strong { display: block; font-size: var(--fs-label-md); font-weight: 600; }
.drv2 .ct-note span { display: block; font-size: var(--fs-label-sm); line-height: var(--lh-label-sm); color: var(--ink-2); }

/* عنصر مقال (صورة مصغّرة + نص) */
.drv2 .ct-item { display: flex; align-items: flex-start; gap: 12px; }
.drv2 .ct-item img { flex: none; width: 80px; height: 80px; border-radius: var(--r-12); object-fit: cover; background: var(--chip); }
.drv2 .ct-item__txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.drv2 .ct-item strong, .drv2 .ct-item h3 { margin: 0; font-size: var(--fs-label-lg); line-height: var(--lh-label-lg); font-weight: 600; overflow-wrap: anywhere; }
.drv2 .ct-item__sub { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.drv2 .ct-post { display: grid; gap: 12px; }
.drv2 .ct-post__book { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border-top: 1px solid var(--border); font-size: var(--fs-label-md); font-weight: 600; color: var(--ink); }
.drv2 .ct-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.drv2 .ct-chips .v2-chip { flex: none; height: 44px; }

/* صفحة التخصص */
.drv2 .ct-cathead { display: flex; align-items: center; gap: 12px; }
.drv2 .ct-cathead__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-12); background: var(--chip); color: var(--ink); }
.drv2 .ct-chipcount { margin-inline-start: 6px; padding: 0 6px; border-radius: 9999px; background: var(--card); color: var(--ink-2); font-size: var(--fs-caption); font-weight: 600; }
.drv2 .v2-chip.is-selected .ct-chipcount { color: var(--ink); }

/* المقال الأبرز */
.drv2 .ct-feature { display: grid; gap: 12px; padding: 0 0 16px; overflow: hidden; }
.drv2 .ct-feature > .v2-btn { width: auto; margin: 0 16px; }
.drv2 .ct-feature__link { display: grid; gap: 12px; }
.drv2 .ct-feature img { display: block; width: 100%; height: 180px; object-fit: cover; background: var(--chip); }
.drv2 .ct-feature__body { display: grid; gap: 6px; padding: 0 16px; }
.drv2 .ct-feature h2 { margin: 0; font-size: var(--fs-headline-md); line-height: var(--lh-headline-md); font-weight: 600; overflow-wrap: anywhere; }

/* دعوة الأطباء */
.drv2 .ct-join { display: grid; gap: 8px; padding: 20px 16px; border-radius: var(--r-card); background: var(--ink); color: #fff; }
.drv2 .ct-join h2 { margin: 0; font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; color: #fff; }
.drv2 .ct-join p { margin: 0 0 4px; font-size: var(--fs-label-md); line-height: var(--lh-label-md); color: #E9ECF6; }
.drv2 .ct-join .v2-btn { border-color: #fff; }

/* شريط الحجز المثبّت في المقال */
.drv2 .ct-sticky { position: fixed; inset-inline: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 55; background: var(--card); border-top: 1px solid var(--border); padding: 10px var(--gutter); }
.drv2 .ct-sticky__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 528px; margin: 0 auto; }
.drv2 .ct-sticky__txt { min-width: 0; display: grid; }
.drv2 .ct-sticky__txt small { font-size: var(--fs-caption); color: var(--muted); }
.drv2 .ct-sticky__txt b { font-size: var(--fs-label-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drv2 .ct-sticky .v2-btn { flex: none; max-width: 66%; padding: 4px 14px; line-height: 1.4; }

@media (min-width: 768px) {
  .drv2 .ct-sticky { bottom: 0; }
  .drv2 .ct-page { padding-bottom: 32px; }
  .drv2 .ct-page--sticky { padding-bottom: 110px; }
  .drv2 .ct-share { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
