/* ============================================================
   ATP Doctors — archive, single, author box
   Brand (matches theme common/base.css):
   green #046531 / dark #023f21 / soft #edf8f2, red accent #EC1C24,
   ink #173044, muted #657789, line #e3ebef, radius 10px,
   font "Be Vietnam Pro"
   ============================================================ */
.atp-doc-single, .atp-doc-archive, .atp-doc-authorbox {
  --doc-green: #046531;
  --doc-green-dark: #023f21;
  --doc-green-soft: #edf8f2;
  --doc-red: #EC1C24;
  --doc-red-soft: #fff2f3;
  --doc-ink: #173044;
  --doc-muted: #657789;
  --doc-line: #e3ebef;
  --doc-bg: #f6faf8;
  --doc-surface: #ffffff;
  --doc-shadow: 0 5px 18px rgba(14, 58, 82, 0.06);
  --doc-shadow-lg: 0 18px 50px rgba(14, 58, 82, 0.12);
  --doc-radius: 10px;
  --doc-grad: linear-gradient(135deg, #046531 0%, #023f21 100%);
  font-family: "Be Vietnam Pro", Inter, "Segoe UI", Arial, sans-serif;
  color: var(--doc-ink);
}
.atp-doc-single *, .atp-doc-archive *, .atp-doc-authorbox * { box-sizing: border-box; }
.atp-doc-single img, .atp-doc-archive img { max-width: 100%; display: block; }

/* ── buttons ── */
.atp-doc-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: none; line-height: 1.2; }
.atp-doc-btn--primary { background: var(--doc-grad); color: #fff; box-shadow: 0 8px 22px rgba(4, 101, 49, .26); }
.atp-doc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(4, 101, 49, .36); color: #fff; }
.atp-doc-btn--ghost { background: #fff; color: var(--doc-green); border: 1.5px solid var(--doc-line); }
.atp-doc-btn--ghost:hover { border-color: var(--doc-green); transform: translateY(-2px); color: var(--doc-green); }
.atp-doc-btn--block { width: 100%; justify-content: center; margin-bottom: 10px; }

.atp-doc-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--doc-red-soft); color: var(--doc-red); font-weight: 700; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; letter-spacing: .2px; }

/* ═════════════ ARCHIVE ═════════════ */
.atp-doc-arc-hero { background: radial-gradient(circle at 88% 12%, rgba(236,28,36,.06), transparent 32%), var(--doc-green-soft); padding: 64px 20px 48px; text-align: center; }
.atp-doc-arc-hero__wrap { max-width: 760px; margin: 0 auto; }
.atp-doc-arc-kicker { color: var(--doc-green); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13.5px; margin: 0 0 10px; }
.atp-doc-arc-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.18; margin: 0 0 16px; font-weight: 700; color: var(--doc-ink); }
.atp-doc-arc-sub { color: var(--doc-muted); font-size: 16.5px; line-height: 1.6; margin: 0; }

.atp-doc-feature { max-width: 1080px; margin: -28px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.atp-doc-feature__card { display: grid; grid-template-columns: 320px 1fr; gap: 36px; background: #fff; border: 1px solid var(--doc-line); border-radius: 18px; box-shadow: var(--doc-shadow-lg); padding: 30px; align-items: center; }
.atp-doc-feature__photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 5/7; background: var(--doc-green-soft); }
.atp-doc-feature__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.atp-doc-feature__ph, .atp-doc-hero__ph, .atp-doc-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 700; color: #fff; background: var(--doc-grad); }
.atp-doc-feature__role { color: var(--doc-muted); font-weight: 500; margin: 14px 0 4px; }
.atp-doc-feature__name { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; font-weight: 700; color: var(--doc-ink); }
.atp-doc-feature__spec { display: inline-block; background: var(--doc-green-soft); color: var(--doc-green); font-weight: 600; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; margin: 0 0 14px; }
.atp-doc-feature__bio { color: var(--doc-muted); line-height: 1.7; margin: 0 0 22px; }

.atp-doc-grid-wrap { max-width: 1180px; margin: 0 auto; padding: 54px 20px 80px; }
.atp-doc-grid-title { font-size: 23px; font-weight: 700; margin: 0 0 26px; color: var(--doc-ink); }
.atp-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.atp-doc-card { background: #fff; border: 1px solid var(--doc-line); border-radius: var(--doc-radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.atp-doc-card:hover { transform: translateY(-6px); box-shadow: var(--doc-shadow-lg); border-color: transparent; }
.atp-doc-card__photo { display: block; aspect-ratio: 5/7; overflow: hidden; background: var(--doc-green-soft); }
.atp-doc-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.atp-doc-card:hover .atp-doc-card__photo img { transform: scale(1.05); }
.atp-doc-card__ph { font-size: 44px; }
.atp-doc-card__body { padding: 18px; }
.atp-doc-card__tag { display: inline-block; background: var(--doc-green-soft); color: var(--doc-green); font-weight: 600; font-size: 12px; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.atp-doc-card__name { font-size: 16.5px; font-weight: 700; margin: 0 0 5px; line-height: 1.3; }
.atp-doc-card__name a { color: var(--doc-ink); text-decoration: none; }
.atp-doc-card__name a:hover { color: var(--doc-green); }
.atp-doc-card__role { color: var(--doc-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.atp-doc-card__link { color: var(--doc-green); font-weight: 600; font-size: 14px; text-decoration: none; }
.atp-doc-card__link:hover { text-decoration: underline; }

/* ═════════════ SINGLE ═════════════ */
.atp-doc-hero { background: radial-gradient(circle at 90% 10%, rgba(236,28,36,.05), transparent 30%), var(--doc-green-soft); padding: 26px 20px 54px; }
.atp-doc-hero__wrap, .atp-doc-hero__card, .atp-doc-body { max-width: 1180px; margin: 0 auto; }
.atp-doc-breadcrumb { font-size: 13.5px; color: var(--doc-muted); margin-bottom: 24px; }
.atp-doc-breadcrumb a { color: var(--doc-muted); text-decoration: none; }
.atp-doc-breadcrumb a:hover { color: var(--doc-green); }
.atp-doc-breadcrumb span { margin: 0 7px; opacity: .5; }
.atp-doc-hero__card { display: grid; grid-template-columns: 300px 1fr; gap: 40px; background: #fff; border: 1px solid var(--doc-line); border-radius: 18px; box-shadow: var(--doc-shadow-lg); padding: 32px; }
.atp-doc-hero__photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 5/7; background: var(--doc-green-soft); }
.atp-doc-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.atp-doc-hero__photo .atp-doc-badge { position: absolute; left: 12px; bottom: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.atp-doc-hero__info { align-self: center; }
.atp-doc-hero__role { color: var(--doc-muted); font-weight: 500; margin: 0 0 6px; }
.atp-doc-hero__name { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 0 0 20px; line-height: 1.15; color: var(--doc-ink); }
.atp-doc-hero__facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.atp-doc-hero__facts li { background: var(--doc-green-soft); border-radius: 12px; padding: 12px 18px; min-width: 160px; }
.atp-doc-hero__facts span { display: block; font-size: 12px; color: var(--doc-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.atp-doc-hero__facts strong { font-size: 15px; font-weight: 600; color: var(--doc-ink); }
.atp-doc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.atp-doc-body { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 54px 20px 80px; }
.atp-doc-bio { background: #fff; border: 1px solid var(--doc-line); border-radius: var(--doc-radius); padding: 30px; margin-bottom: 30px; }
.atp-doc-bio__title, .atp-doc-posts__title { font-size: 21px; font-weight: 700; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--doc-line); position: relative; color: var(--doc-ink); }
.atp-doc-bio__title::after, .atp-doc-posts__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--doc-grad); }
.atp-doc-bio__content { color: #36465e; line-height: 1.75; }
.atp-doc-bio__content h2, .atp-doc-bio__content h3 { color: var(--doc-ink); margin: 22px 0 10px; font-size: 18px; }
.atp-doc-bio__content ul { padding-left: 20px; }
.atp-doc-bio__content li { margin-bottom: 6px; }
.atp-doc-bio__content img { border-radius: 10px; margin: 16px 0; }

.atp-doc-posts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.atp-doc-postcard { background: #fff; border: 1px solid var(--doc-line); border-radius: var(--doc-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.atp-doc-postcard:hover { transform: translateY(-5px); box-shadow: var(--doc-shadow-lg); }
.atp-doc-postcard__thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--doc-green-soft); }
.atp-doc-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.atp-doc-postcard__ph { display: block; width: 100%; height: 100%; background: var(--doc-grad); opacity: .12; }
.atp-doc-postcard__body { padding: 16px 18px 20px; }
.atp-doc-postcard__body time { font-size: 12.5px; color: var(--doc-green); font-weight: 600; }
.atp-doc-postcard__body h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 6px 0 8px; }
.atp-doc-postcard__body h3 a { color: var(--doc-ink); text-decoration: none; }
.atp-doc-postcard__body h3 a:hover { color: var(--doc-green); }
.atp-doc-postcard__body p { color: var(--doc-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.atp-doc-empty { color: var(--doc-muted); background: var(--doc-green-soft); border-radius: 12px; padding: 28px; text-align: center; }

.atp-doc-pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.atp-doc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--doc-line); color: var(--doc-ink); text-decoration: none; font-weight: 600; }
.atp-doc-pagination .page-numbers.current { background: var(--doc-grad); color: #fff; border-color: transparent; }
.atp-doc-pagination .page-numbers:hover:not(.current) { border-color: var(--doc-green); color: var(--doc-green); }

.atp-doc-body__aside { align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.atp-doc-aside-card { background: #fff; border: 1px solid var(--doc-line); border-radius: var(--doc-radius); padding: 24px; }
.atp-doc-aside-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--doc-ink); }
.atp-doc-aside-card > p { color: var(--doc-muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.atp-doc-other-list { list-style: none; padding: 0; margin: 0 0 14px; }
.atp-doc-other-list li { border-top: 1px solid var(--doc-line); }
.atp-doc-other-list li:first-child { border-top: none; }
.atp-doc-other-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; }
.atp-doc-other-list img, .atp-doc-other-ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--doc-grad); }
.atp-doc-other-meta strong { display: block; font-size: 14.5px; color: var(--doc-ink); line-height: 1.3; }
.atp-doc-other-meta em { font-style: normal; font-size: 12.5px; color: var(--doc-muted); }
.atp-doc-other-list a:hover .atp-doc-other-meta strong { color: var(--doc-green); }
.atp-doc-aside-all { color: var(--doc-green); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ═════════════ AUTHOR BOX ═════════════ */
.atp-doc-authorbox { display: flex; gap: 20px; align-items: flex-start; background: var(--doc-green-soft); border: 1px solid var(--doc-line); border-radius: var(--doc-radius); padding: 24px; margin: 36px 0; }
.atp-doc-authorbox__media { flex-shrink: 0; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; }
.atp-doc-authorbox__media img { width: 100%; height: 100%; object-fit: cover; }
.atp-doc-authorbox__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: #fff; background: var(--doc-grad); }
.atp-doc-authorbox__eyebrow { display: block; font-size: 12px; color: var(--doc-green); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.atp-doc-authorbox__name { font-size: 19px; font-weight: 700; margin: 0 0 4px; line-height: 1.25; }
.atp-doc-authorbox__name a { color: var(--doc-ink); text-decoration: none; }
.atp-doc-authorbox__name a:hover { color: var(--doc-green); }
.atp-doc-authorbox__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 13.5px; color: var(--doc-muted); }
.atp-doc-authorbox__spec { color: var(--doc-green); font-weight: 600; }
.atp-doc-authorbox__bio { color: var(--doc-muted); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.atp-doc-authorbox__link { color: var(--doc-green); font-weight: 600; font-size: 14px; text-decoration: none; }
.atp-doc-authorbox__link:hover { text-decoration: underline; }

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 880px) {
  .atp-doc-feature__card, .atp-doc-hero__card { grid-template-columns: 1fr; gap: 24px; }
  .atp-doc-feature__photo, .atp-doc-hero__photo { max-width: 280px; margin: 0 auto; }
  .atp-doc-body { grid-template-columns: 1fr; }
  .atp-doc-body__aside { position: static; }
}
@media (max-width: 600px) {
  .atp-doc-authorbox { flex-direction: column; }
  .atp-doc-feature__card, .atp-doc-hero__card, .atp-doc-bio { padding: 22px; }
}
