/* Bookademy author profile. Scoped so the shared site shell stays untouched. */
.ba-author-page {
  --ba-ink:#102a2e;
  --ba-muted:#60777b;
  --ba-line:#d9e6e7;
  --ba-paper:#fff;
  --ba-soft:#f1f7f7;
  --ba-teal:#07535d;
  --ba-gold:#c18b31;
  --ba-gold-light:#f0c773;
  min-height:70vh;
  padding:18px 0 104px;
  color:var(--ba-ink);
  background:radial-gradient(circle at 8% 10%,rgba(17,123,133,.08),transparent 31rem),linear-gradient(180deg,#f8fbfb 0,#f2f7f7 52%,#f8fbfb 100%);
  font-family:"Yekan Bakh",Tahoma,Arial,sans-serif;
  overflow:hidden;
}
.ba-author-page *,
.ba-author-page *::before,
.ba-author-page *::after {box-sizing:border-box}
.ba-author-page a {color:inherit;text-decoration:none}
.ba-author-page svg {width:1.1em;height:1.1em;flex:0 0 auto}
.ba-author-container {width:min(calc(100% - 24px),1344px);margin-inline:auto}

.ba-author-breadcrumb {
  min-width:0;
  margin:2px 2px 14px;
  display:flex;
  align-items:center;
  gap:7px;
  color:#6d8285;
  font-size:12px;
  line-height:1.7;
  white-space:nowrap;
  overflow:hidden;
}
.ba-author-breadcrumb a {transition:color .2s ease}
.ba-author-breadcrumb a:hover {color:var(--ba-teal)}
.ba-author-breadcrumb svg {width:13px;height:13px;color:#9aadaf}
.ba-author-breadcrumb span {min-width:0;overflow:hidden;text-overflow:ellipsis}

.ba-author-hero {
  isolation:isolate;
  position:relative;
  padding:28px 18px 22px;
  display:grid;
  justify-items:center;
  gap:18px;
  color:#f6fbfb;
  background:radial-gradient(circle at 15% 12%,rgba(236,188,95,.19),transparent 18rem),radial-gradient(circle at 85% 105%,rgba(16,116,127,.42),transparent 30rem),linear-gradient(135deg,#021619 0%,#052e33 52%,#073f46 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(2,29,33,.15);
  overflow:hidden;
}
.ba-author-hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.46;
  background-image:linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:40px 40px;
  mask-image:linear-gradient(90deg,#000,transparent 78%);
}
.ba-brand-mark {position:absolute;width:98px;height:76px;display:block;pointer-events:none}
.ba-brand-mark i {
  position:absolute;
  width:19px;
  height:68px;
  display:block;
  background:linear-gradient(180deg,var(--ba-gold-light),#a86f1d);
  border-radius:5px;
  transform:rotate(46deg);
  box-shadow:0 7px 20px rgba(183,126,36,.2);
}
.ba-brand-mark i:first-child {top:0;left:22px}
.ba-brand-mark i:last-child {right:22px;bottom:0}
.ba-author-hero>.ba-brand-mark {top:-21px;left:-13px;opacity:.34;transform:scale(1.24)}
.ba-author-portrait {
  position:relative;
  width:144px;
  aspect-ratio:1;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.21);
  border-radius:50%;
  background:#0b4951;
  box-shadow:0 0 0 8px rgba(255,255,255,.055),0 20px 40px rgba(0,0,0,.24);
  overflow:hidden;
}
.ba-author-portrait::after {content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 -35px 45px rgba(1,24,28,.22);pointer-events:none}
.ba-author-portrait img {width:100%;height:100%;display:block;object-fit:cover;object-position:center top}
.ba-author-portrait>span {color:#fff0cc;font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:68px;font-weight:900;line-height:1}
.ba-author-hero-copy {width:100%;min-width:0;text-align:center}
.ba-author-kicker {display:inline-flex;align-items:center;gap:7px;color:var(--ba-gold-light);font-size:12px;font-weight:800}
.ba-author-kicker svg {width:16px;height:16px}
.ba-author-hero h1 {
  max-width:740px;
  margin:7px auto 0;
  color:#fff;
  font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;
  font-size:clamp(31px,10vw,46px);
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.025em;
}
.ba-author-role {margin-top:7px;display:block;color:#cce2e4;font-size:13px;font-weight:700}
.ba-author-hero-copy>p {max-width:710px;margin:13px auto 0;color:#d4e3e4;font-size:14px;font-weight:500;line-height:2}
.ba-author-stats {
  width:min(100%,540px);
  margin:20px auto 0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:15px;
  background:rgba(0,15,18,.36);
}
.ba-author-stats>span {min-width:0;min-height:64px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ba-author-stats>span+span {border-right:1px solid rgba(255,255,255,.1)}
.ba-author-stats b {color:#fff;font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:22px;font-weight:900;line-height:1.05}
.ba-author-stats small {margin-top:5px;color:#acc6c9;font-size:10px;font-weight:600;line-height:1.4}

.ba-author-main-grid {margin-top:16px;display:grid;gap:14px}
.ba-author-about,
.ba-author-facts,
.ba-author-quotes,
.ba-author-books {
  padding:20px 16px;
  border:1px solid var(--ba-line);
  border-radius:20px;
  background:var(--ba-paper);
  box-shadow:0 10px 32px rgba(17,64,69,.055);
}
.ba-section-heading {min-width:0;margin-bottom:17px;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:11px}
.ba-section-heading>span {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:14px;
  background:linear-gradient(135deg,#0a6973,#063e45);
  box-shadow:0 8px 19px rgba(6,74,82,.16);
}
.ba-section-heading>span svg {width:21px;height:21px}
.ba-section-heading>div {min-width:0}
.ba-section-heading small {display:block;color:var(--ba-gold);font-size:10px;font-weight:800;line-height:1.6}
.ba-section-heading h2 {margin:1px 0 0;color:var(--ba-ink);font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:clamp(21px,6vw,27px);font-weight:900;line-height:1.35}
.ba-author-biography,
.ba-author-empty-copy {color:#3e565a;font-size:14px;font-weight:500;line-height:2.15}
.ba-author-biography>:first-child {margin-top:0}
.ba-author-biography>:last-child {margin-bottom:0}
.ba-author-biography p {margin:0 0 14px}
.ba-author-biography h2,
.ba-author-biography h3 {margin:22px 0 9px;color:var(--ba-ink);font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-weight:900;line-height:1.5}
.ba-author-biography h2 {font-size:21px}
.ba-author-biography h3 {font-size:18px}
.ba-author-biography ul,
.ba-author-biography ol {margin:11px 0 17px;padding-right:20px}
.ba-author-biography li {margin:5px 0}
.ba-author-biography li::marker {color:var(--ba-gold)}
.ba-author-biography blockquote {margin:18px 0;padding:16px;color:#214348;border:0;border-right:4px solid var(--ba-gold);border-radius:13px;background:#f4f8f7}
.ba-author-biography a {color:var(--ba-teal);text-decoration:underline;text-decoration-color:rgba(7,83,93,.25);text-underline-offset:4px}
.ba-author-empty-copy {margin:0}

.ba-author-facts h2 {margin:0 0 13px;color:var(--ba-ink);font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:20px;font-weight:900}
.ba-author-facts dl,
.ba-author-facts dd {margin:0}
.ba-author-facts dl>div {padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e7eeee}
.ba-author-facts dt {display:inline-flex;align-items:center;gap:7px;color:#6d8083;font-size:12px;font-weight:650}
.ba-author-facts dt svg {width:16px;height:16px;color:var(--ba-teal)}
.ba-author-facts dd {color:#1e3a3e;font-size:12px;font-weight:800;text-align:left}
.ba-author-topics,
.ba-related-authors,
.ba-author-links {margin-top:17px}
.ba-author-topics>span,
.ba-related-authors>span {margin-bottom:9px;display:block;color:#647a7e;font-size:11px;font-weight:750}
.ba-author-topics>div {display:flex;flex-wrap:wrap;gap:6px}
.ba-author-topics small {padding:6px 9px;color:#225258;border:1px solid #d4e5e6;border-radius:8px;background:#eef6f6;font-size:10px;font-weight:700}
.ba-author-links {display:grid;gap:7px}
.ba-author-links a,
.ba-related-authors a {
  min-height:39px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:7px;
  color:#1f5359;
  border:1px solid #d7e5e6;
  border-radius:10px;
  background:#f7fafa;
  font-size:11px;
  font-weight:750;
  transition:border-color .2s ease,background-color .2s ease,color .2s ease;
}
.ba-author-links a:hover,
.ba-related-authors a:hover {color:#fff;border-color:var(--ba-teal);background:var(--ba-teal)}
.ba-related-authors a+a {margin-top:6px}
.ba-related-authors a svg {margin-right:auto}

.ba-author-quotes,
.ba-author-books {margin-top:16px}
.ba-quote-grid {display:grid;gap:10px}
.ba-quote-grid blockquote {position:relative;margin:0;padding:20px 17px 17px;border:1px solid #d8e6e6;border-radius:16px;background:linear-gradient(135deg,#f4f9f8,#edf5f5);overflow:hidden}
.ba-quote-grid blockquote>svg {position:absolute;top:12px;left:12px;width:44px;height:44px;color:rgba(193,139,49,.18);transform:rotate(180deg)}
.ba-quote-grid p {position:relative;z-index:1;margin:0;color:#24464a;font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:16px;font-weight:800;line-height:1.9}
.ba-quote-grid cite {margin-top:11px;display:block;color:#718589;font-size:11px;font-style:normal;font-weight:650}
.ba-section-heading--split>a {grid-column:1/-1;width:fit-content;display:inline-flex;align-items:center;gap:7px;color:var(--ba-teal);font-size:11px;font-weight:800}

.ba-book-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
.ba-book-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  border:1px solid #dbe7e8;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.ba-book-card:hover {border-color:#bcd3d5;box-shadow:0 13px 29px rgba(15,61,66,.11);transform:translateY(-3px)}
.ba-book-cover {position:relative;aspect-ratio:2/3;display:grid;place-items:center;background:linear-gradient(145deg,#e8f0f0,#d8e6e6);overflow:hidden}
.ba-book-cover>img {width:100%;height:100%;display:block;object-fit:cover;transition:transform .38s ease}
.ba-book-card:hover .ba-book-cover>img {transform:scale(1.025)}
.ba-book-cover>span:not(.ba-book-badges) {width:58px;height:58px;display:grid;place-items:center;color:#4c7479;border-radius:16px;background:#fff}
.ba-book-cover>span:not(.ba-book-badges) svg {width:30px;height:30px}
.ba-book-badges {position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:5px}
.ba-book-badges small {
  min-width:26px;
  height:26px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
  border-radius:8px;
  background:#07535d;
  box-shadow:0 5px 12px rgba(0,0,0,.17);
  font-family:Arial,sans-serif;
  font-size:8px;
  font-weight:800;
}
.ba-book-badges small.is-pro {color:#fff6df;background:linear-gradient(135deg,#7c5312,#c18b31)}
.ba-book-badges svg {width:13px;height:13px}
.ba-book-copy {min-width:0;flex:1;padding:11px 10px 10px;display:flex;flex-direction:column}
.ba-book-copy>small {color:var(--ba-gold);font-size:9px;font-weight:800}
.ba-book-copy h3 {margin:4px 0 0;color:var(--ba-ink);font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:14px;font-weight:900;line-height:1.55}
.ba-book-copy h3 a {display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.ba-book-copy>p {margin:7px 0 0;display:none;color:#687d80;font-size:11px;font-weight:500;line-height:1.8}
.ba-book-copy>div {min-width:0;margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.ba-book-copy>div>span,
.ba-book-copy>div>a {display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.ba-book-copy>div>span {min-width:0;color:#74878a;font-size:9px;font-weight:650}
.ba-book-copy>div>a {color:var(--ba-teal);font-size:9px;font-weight:850}
.ba-book-copy>div svg {width:12px;height:12px}

.ba-author-pagination {margin-top:24px}
.ba-author-pagination ul {margin:0;padding:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;list-style:none}
.ba-author-pagination .page-numbers {min-width:38px;height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;color:#426267;border:1px solid #d7e4e5;border-radius:10px;background:#fff;font-size:11px;font-weight:750}
.ba-author-pagination .current,
.ba-author-pagination a.page-numbers:hover {color:#fff;border-color:var(--ba-teal);background:var(--ba-teal)}
.ba-author-empty {min-height:230px;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #c8d9da;border-radius:16px;background:#f6f9f9}
.ba-author-empty>svg {width:42px;height:42px;color:#7c9b9f}
.ba-author-empty strong {margin-top:12px;color:var(--ba-ink);font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:18px;font-weight:900}
.ba-author-empty p {margin:6px 0 0;color:#6e8285;font-size:12px;line-height:1.8}

.ba-author-cta {
  isolation:isolate;
  position:relative;
  margin-top:16px;
  padding:23px 18px;
  display:grid;
  gap:16px;
  color:#fff;
  border-radius:20px;
  background:linear-gradient(125deg,#073f46,#021c20);
  overflow:hidden;
}
.ba-author-cta>.ba-brand-mark {top:-12px;left:-10px;z-index:-1;opacity:.19;transform:scale(1.7)}
.ba-author-cta small {color:var(--ba-gold-light);font-size:10px;font-weight:800}
.ba-author-cta h2 {margin:3px 0 0;color:#fff;font-family:Peyda,"Yekan Bakh",Tahoma,sans-serif;font-size:clamp(23px,7vw,30px);font-weight:900;line-height:1.35}
.ba-author-cta p {margin:7px 0 0;color:#c7dcde;font-size:12px;font-weight:500;line-height:1.9}
.ba-author-cta>a {min-height:48px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#102a2e;border:1px solid #f6d58e;border-radius:12px;background:linear-gradient(135deg,#f4cf83,#c99236);box-shadow:0 9px 20px rgba(181,124,33,.18);font-size:12px;font-weight:900}
.ba-author-page a:focus-visible {outline:3px solid rgba(214,160,67,.55);outline-offset:3px}

html.dark .ba-author-page,
html[data-theme="dark"] .ba-author-page {
  --ba-ink:#ecf6f6;
  --ba-muted:#9db1b4;
  --ba-line:#29454a;
  --ba-paper:#10272b;
  --ba-soft:#122b2f;
  color:#e8f2f3;
  background:radial-gradient(circle at 8% 10%,rgba(23,128,139,.1),transparent 31rem),linear-gradient(180deg,#07171a 0,#091d21 52%,#07171a 100%);
}
html.dark .ba-author-breadcrumb,
html[data-theme="dark"] .ba-author-breadcrumb {color:#9aafb2}
html.dark .ba-author-about,
html.dark .ba-author-facts,
html.dark .ba-author-quotes,
html.dark .ba-author-books,
html[data-theme="dark"] .ba-author-about,
html[data-theme="dark"] .ba-author-facts,
html[data-theme="dark"] .ba-author-quotes,
html[data-theme="dark"] .ba-author-books {box-shadow:0 12px 32px rgba(0,0,0,.14)}
html.dark .ba-author-biography,
html.dark .ba-author-empty-copy,
html[data-theme="dark"] .ba-author-biography,
html[data-theme="dark"] .ba-author-empty-copy {color:#bfd0d2}
html.dark .ba-author-biography blockquote,
html[data-theme="dark"] .ba-author-biography blockquote {color:#dbe8e9;background:#163237}
html.dark .ba-author-facts dl>div,
html[data-theme="dark"] .ba-author-facts dl>div {border-color:#2a464b}
html.dark .ba-author-facts dt,
html.dark .ba-author-facts dd,
html[data-theme="dark"] .ba-author-facts dt,
html[data-theme="dark"] .ba-author-facts dd {color:#b9cacc}
html.dark .ba-author-topics small,
html[data-theme="dark"] .ba-author-topics small {color:#c9dcde;border-color:#315157;background:#163439}
html.dark .ba-author-links a,
html.dark .ba-related-authors a,
html[data-theme="dark"] .ba-author-links a,
html[data-theme="dark"] .ba-related-authors a {color:#c9e1e3;border-color:#315057;background:#132d32}
html.dark .ba-quote-grid blockquote,
html[data-theme="dark"] .ba-quote-grid blockquote {border-color:#315057;background:linear-gradient(135deg,#163237,#11292d)}
html.dark .ba-quote-grid p,
html[data-theme="dark"] .ba-quote-grid p {color:#e2eeee}
html.dark .ba-book-card,
html[data-theme="dark"] .ba-book-card {border-color:#2b484d;background:#0d2327}
html.dark .ba-book-cover,
html[data-theme="dark"] .ba-book-cover {background:linear-gradient(145deg,#193338,#11282c)}
html.dark .ba-book-copy>p,
html.dark .ba-book-copy>div>span,
html[data-theme="dark"] .ba-book-copy>p,
html[data-theme="dark"] .ba-book-copy>div>span {color:#9db1b4}
html.dark .ba-book-copy>div>a,
html.dark .ba-section-heading--split>a,
html[data-theme="dark"] .ba-book-copy>div>a,
html[data-theme="dark"] .ba-section-heading--split>a {color:#7cc7cf}
html.dark .ba-author-pagination .page-numbers,
html[data-theme="dark"] .ba-author-pagination .page-numbers {color:#bfd1d3;border-color:#315057;background:#132b30}
html.dark .ba-author-pagination .current,
html.dark .ba-author-pagination a.page-numbers:hover,
html[data-theme="dark"] .ba-author-pagination .current,
html[data-theme="dark"] .ba-author-pagination a.page-numbers:hover {color:#fff;border-color:#147682;background:#147682}
html.dark .ba-author-empty,
html[data-theme="dark"] .ba-author-empty {border-color:#355158;background:#11292d}
html.dark .ba-author-empty p,
html[data-theme="dark"] .ba-author-empty p {color:#9fb3b5}

@media (min-width:560px) {
  .ba-author-page {padding-top:22px}
  .ba-author-container {width:min(calc(100% - 38px),1344px)}
  .ba-author-hero {padding:34px 30px 28px}
  .ba-author-portrait {width:168px}
  .ba-author-about,.ba-author-facts,.ba-author-quotes,.ba-author-books {padding:24px}
  .ba-book-grid {gap:18px 14px}
  .ba-book-copy {padding:14px 13px 12px}
  .ba-book-copy h3 {font-size:16px}
  .ba-book-copy>p {display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .ba-book-copy>div>span,.ba-book-copy>div>a {font-size:10px}
  .ba-author-cta {padding:28px 25px}
}
@media (min-width:768px) {
  .ba-author-page {padding-bottom:72px}
  .ba-author-hero {grid-template-columns:210px minmax(0,1fr);justify-items:stretch;align-items:center;gap:30px;padding:42px}
  .ba-author-portrait {width:200px}
  .ba-author-hero-copy {text-align:right}
  .ba-author-hero h1,.ba-author-hero-copy>p,.ba-author-stats {margin-right:0;margin-left:0}
  .ba-author-hero h1 {font-size:46px}
  .ba-author-hero-copy>p {font-size:15px}
  .ba-author-stats {max-width:520px}
  .ba-author-main-grid {grid-template-columns:minmax(0,1fr) 300px;align-items:start}
  .ba-quote-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ba-section-heading--split {grid-template-columns:44px minmax(0,1fr) auto}
  .ba-section-heading--split>a {grid-column:auto;align-self:center}
  .ba-book-grid {grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
  .ba-author-cta {grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:34px 38px}
  .ba-author-cta>a {min-width:190px}
}
@media (min-width:1100px) {
  .ba-author-page {padding-top:28px}
  .ba-author-breadcrumb {margin-bottom:18px;font-size:13px}
  .ba-author-hero {min-height:374px;grid-template-columns:270px minmax(0,1fr);gap:46px;padding:48px 58px;border-radius:30px}
  .ba-author-portrait {width:254px}
  .ba-author-hero h1 {font-size:56px}
  .ba-author-role {font-size:15px}
  .ba-author-hero-copy>p {max-width:760px;font-size:16px;line-height:2.05}
  .ba-author-stats {margin-top:23px}
  .ba-author-stats>span {min-height:74px}
  .ba-author-stats b {font-size:27px}
  .ba-author-stats small {font-size:11px}
  .ba-author-main-grid {margin-top:22px;grid-template-columns:minmax(0,1fr) 338px;gap:22px}
  .ba-author-about,.ba-author-facts,.ba-author-quotes,.ba-author-books {padding:29px;border-radius:24px}
  .ba-author-quotes,.ba-author-books,.ba-author-cta {margin-top:22px}
  .ba-author-biography,.ba-author-empty-copy {font-size:15px}
  .ba-book-grid {grid-template-columns:repeat(auto-fill,minmax(216px,244px));gap:22px 18px}
  .ba-book-card {border-radius:17px}
  .ba-book-copy h3 {font-size:17px}
}
@media (prefers-reduced-motion:reduce) {
  .ba-author-page *,
  .ba-author-page *::before,
  .ba-author-page *::after {scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
