/* =========================================================
   char_v2.css — Doctor Profile (dp-*)
   Fix: works with base_v2 fixed header + base--full
   ========================================================= */

:root{
  --dp-container: 1180px;
  --dp-pad: 22px;

  --dp-text: #2a2623;
  --dp-muted: rgba(42,38,35,0.72);
  --dp-border: rgba(0,0,0,0.10);

  --dp-card: rgba(255,255,255,0.75);
  --dp-card-strong: rgba(255,255,255,0.88);

  --dp-accent: #c96f2d;
  --dp-accent-2: #e08b3f;

  --dp-shadow: 0 18px 40px rgba(0,0,0,0.12);
  --dp-shadow-soft: 0 10px 26px rgba(0,0,0,0.10);

  --dp-radius: 18px;
  --dp-radius-lg: 26px;
}

/* Basic reset (scoped) */
.dp,
.dp *{ box-sizing: border-box; }

.dp img{
  max-width: 100%;
  display: block;
}

/* Container */
.dp-container{
  width: min(var(--dp-container), calc(100% - 2 * var(--dp-pad)));
  margin: 0 auto;
}

/* =========================================================
   IMPORTANT FIX
   - base--full removes base-content top padding
   - header is fixed => we must add safe top padding ourselves
   ========================================================= */
.dp{
  /* If base_v2.css defines --base-headerH, use it; otherwise fallback 76px */
  padding-top: calc(var(--base-headerH, 76px) + 16px);
}

/* =========================================================
   HERO
   ========================================================= */
.dp-hero{
  position: relative;
  padding: 22px 0 28px;
}

.dp-hero::before{
  content:"";
  position:absolute;
  inset: -40px 0 0 0;
  z-index:0;
  background:
    radial-gradient(1100px 650px at 20% 10%, rgba(201,111,45,0.14), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(244,239,232,0.55), rgba(244,239,232,0.0));
  pointer-events:none;
}

.dp-heroGrid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.dp-heroLeft{
  padding: 18px 18px;
  border-radius: var(--dp-radius-lg);
  background: var(--dp-card);
  border: 1px solid var(--dp-border);
  box-shadow: var(--dp-shadow);
}

.dp-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(42,38,35,0.88);
  font-weight: 900;
  font-size: 0.92rem;
}

.dp-title{
  margin: 12px 0 10px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3.1rem);
  color: rgba(42,38,35,0.96);
}

.dp-lead{
  margin: 0 0 14px;
  color: rgba(42,38,35,0.78);
  line-height: 1.7;
  font-size: 1.02rem;
}

/* Quick facts */
.dp-quick{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 18px;
}

.dp-quickItem{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.dp-quickK{
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 0.92rem;
  color: rgba(42,38,35,0.92);
}

.dp-quickV{
  margin-top: 2px;
  color: rgba(42,38,35,0.72);
  font-weight: 800;
  font-size: 0.95rem;
}

/* Buttons */
.dp-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dp-btn--primary{
  background: var(--dp-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(201,111,45,0.22);
}
.dp-btn--primary:hover{
  background: var(--dp-accent-2);
  transform: translateY(-1px);
}

.dp-btn--ghost{
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.12);
  color: rgba(42,38,35,0.92);
}
.dp-btn--ghost:hover{
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.dp-btn--full{ width: 100%; }

/* Right photo card */
.dp-heroRight{
  position: relative;
  z-index: 1;
}

.dp-photoCard{
  border-radius: var(--dp-radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: var(--dp-shadow);
}

.dp-photo{
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.dp-photoMeta{
  padding: 14px 16px;
}

.dp-photoName{
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
  color: rgba(42,38,35,0.94);
}

.dp-photoNote{
  margin-top: 2px;
  color: rgba(42,38,35,0.72);
  font-weight: 800;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.dp-main{
  padding: 26px 0 70px;
}

.dp-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Cards */
.dp-card{
  border-radius: var(--dp-radius);
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  padding: 18px;
}

.dp-card--accent{
  border-color: rgba(201,111,45,0.26);
  background: rgba(201,111,45,0.10);
}

.dp-card--plain{
  background: rgba(255,255,255,0.78);
}

.dp-wide{
  grid-column: 1 / -1;
}

.dp-h2{
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(42,38,35,0.94);
}

.dp-h3{
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(42,38,35,0.92);
}

.dp-muted{
  margin: 0 0 14px;
  color: rgba(42,38,35,0.70);
  font-weight: 800;
}

.dp-text{
  margin: 0;
  color: rgba(42,38,35,0.82);
  line-height: 1.7;
}

/* Pills */
.dp-pillRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.dp-pill{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(42,38,35,0.92);
  font-weight: 900;
}

/* Divider */
.dp-divider{
  height: 1px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
  margin: 16px 0;
}

/* Tags */
.dp-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.dp-tag{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(42,38,35,0.86);
  font-weight: 900;
}

.dp-tag--soft{
  background: rgba(255,255,255,0.60);
  color: rgba(42,38,35,0.70);
}

/* Wide grid */
.dp-wideGrid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.dp-wideAction{
  display: flex;
  justify-content: flex-end;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px){
  .dp-heroGrid{ grid-template-columns: 1fr; }
  .dp-grid{ grid-template-columns: 1fr; }
  .dp-wideGrid{ grid-template-columns: 1fr; }
  .dp-wideAction{ justify-content: flex-start; }
  .dp-photo{ height: 320px; }
}

@media (max-width: 520px){
  .dp-quick{ grid-template-columns: 1fr; }
  .dp-actions .dp-btn{ width: 100%; }
}
