/*
Theme Name:     CDR Report Guide Astra Child
Theme URI:      https://cdrreportguide.com
Template:       astra
Author:         CDR Report Guide
Author URI:     https://cdrreportguide.com
Description:    Astra child theme for CDR Report Guide. Includes custom single post template (V1 Editorial design), brand colors, and editorial typography.
Version:        2.0.0
License:        GNU General Public License v2 or later
Text Domain:    cdr-astra-child
*/

/* ============================================================
   CDR REPORT GUIDE — Astra Child Theme
   Single Post Template Styles (V1 Editorial)
   ============================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================================
   GLOBAL — Apply only on single post pages
   Wrapped in body.single-post to avoid bleeding into other pages
   ============================================================ */

body.single-post {
  font-family: 'Work Sans', sans-serif;
  color: #0A0A0A;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hide Astra's default single post template parts */
body.single-post .entry-header,
body.single-post .ast-single-post-order,
body.single-post .post-thumb-img-content,
body.single-post .ast-blog-featured-section,
body.single-post .entry-meta,
body.single-post .ast-author-details,
body.single-post .ast-author-box,
body.single-post .post-navigation,
body.single-post .nav-links,
body.single-post #comments,
body.single-post .comments-area,
body.single-post .ast-archive-description {
  display: none !important;
}

/* Remove Astra's default content wrapper padding + force full width */
body.single-post #page,
body.single-post .site,
body.single-post .site-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
body.single-post .ast-container,
body.single-post #content > .ast-container,
body.single-post .site-content > .ast-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
body.single-post #primary,
body.single-post .content-area,
body.single-post .ast-article-single,
body.single-post .ast-article-post,
body.single-post #main,
body.single-post .site-main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
body.single-post #secondary,
body.single-post .widget-area {
  display: none !important;
}
body.single-post article.post,
body.single-post .ast-article-post {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
}
body.single-post .entry-content,
body.single-post .ast-article-single .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
/* Astra's "no sidebar" / "default sidebar" layout classes */
body.single-post.ast-no-sidebar .ast-container,
body.single-post.ast-right-sidebar .ast-container,
body.single-post.ast-left-sidebar .ast-container {
  max-width: none !important;
  display: block !important;
}

/* ============================================================
   ARTICLE WRAPPER
   ============================================================ */
.cdr-article-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* Breadcrumb */
.cdr-breadcrumb {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
}
.cdr-breadcrumb a { color: #A00028; text-decoration: none; }
.cdr-breadcrumb a:hover { text-decoration: underline; }
.cdr-breadcrumb .sep { color: #B5B5B5; margin: 0 8px; }
.cdr-breadcrumb .current { color: #555; }

/* Article header */
.cdr-article-header {
  max-width: 880px;
  margin: 0 auto 40px;
  text-align: center;
}
.cdr-article-category {
  display: inline-block;
  background: rgba(160,0,40,0.08);
  color: #A00028;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  text-decoration: none;
}
.cdr-article-h1 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 46px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.8px !important;
  color: #0A0A0A !important;
  margin-bottom: 24px !important;
  text-align: center !important;
}
.cdr-article-deck {
  font-family: 'Work Sans', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: #555;
  max-width: 720px;
  margin: 0 auto 32px;
}
.cdr-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #666;
}
.cdr-article-author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cdr-article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A00028 0%, #d4304e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.cdr-article-author-meta strong { color: #0A0A0A; font-weight: 600; }
.cdr-article-author-bio-small {
  color: #999;
  font-size: 13px;
}
.cdr-meta-sep {
  width: 4px;
  height: 4px;
  background: #B5B5B5;
  border-radius: 50%;
}

/* Featured image banner */
.cdr-featured-banner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 56px;
  aspect-ratio: 21 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #F0EEEA;
}
.cdr-featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   3-COLUMN LAYOUT
   ============================================================ */
.cdr-article-grid {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) 300px !important;
  gap: 48px !important;
  align-items: start !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}
.cdr-article-grid > .cdr-toc-sidebar {
  grid-column: 1 !important;
  min-width: 0 !important;
}
.cdr-article-grid > .cdr-article-content {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.cdr-article-grid > .cdr-right-sidebar {
  grid-column: 3 !important;
  min-width: 0 !important;
}

/* ============================================================
   LEFT SIDEBAR — TOC + Share
   ============================================================ */
.cdr-toc-sidebar {
  position: sticky;
  top: 100px;
}
.cdr-toc-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #A00028;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ECE9E3;
}
.cdr-toc-list { list-style: none; padding: 0; margin: 0; }
.cdr-toc-list li { margin-bottom: 4px; }
.cdr-toc-list a {
  display: block;
  padding: 8px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #555;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.15s ease;
  text-decoration: none;
}
.cdr-toc-list a:hover {
  color: #A00028;
  background: rgba(160,0,40,0.04);
  border-left-color: #A00028;
}
.cdr-toc-list a.active {
  color: #A00028;
  border-left-color: #A00028;
  font-weight: 600;
  background: rgba(160,0,40,0.05);
}

/* Share rail */
.cdr-share-rail {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ECE9E3;
}
.cdr-share-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}
.cdr-share-icons {
  display: flex;
  gap: 10px;
}
.cdr-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F8F6F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 600;
}
.cdr-share-btn:hover {
  background: #A00028;
  color: #FFFFFF;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   MIDDLE CONTENT
   ============================================================ */
.cdr-article-content {
  width: 100%;
  min-width: 0;
}
.cdr-article-content > p:first-of-type::first-letter {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 64px;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: #A00028;
}
.cdr-article-content p {
  font-family: 'Work Sans', sans-serif;
  font-size: 17.5px;
  line-height: 1.75;
  color: #2A2A2A;
  margin-bottom: 24px;
}
.cdr-article-content h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: #0A0A0A;
  margin: 56px 0 20px;
  scroll-margin-top: 100px;
}
.cdr-article-content h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: #0A0A0A;
  margin: 36px 0 14px;
}
.cdr-article-content a {
  color: #A00028;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cdr-article-content a:hover { color: #7d001f; }
.cdr-article-content strong { color: #0A0A0A; font-weight: 600; }
.cdr-article-content ul,
.cdr-article-content ol {
  padding-left: 22px;
  margin-bottom: 24px;
}
.cdr-article-content li {
  font-size: 17.5px;
  line-height: 1.7;
  color: #2A2A2A;
  margin-bottom: 10px;
}
.cdr-article-content ul li::marker { color: #A00028; }
.cdr-article-content blockquote {
  border-left: 4px solid #A00028;
  background: #FAF8F4;
  padding: 24px 32px;
  margin: 36px 0;
  border-radius: 0 12px 12px 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: #0A0A0A;
}
.cdr-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 32px 0;
  display: block;
}
.cdr-article-content figure { margin: 32px 0; }
.cdr-article-content figcaption {
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  color: #999;
  margin-top: 12px;
  font-style: italic;
}

/* Inline CTA — drop this HTML into your post body when needed */
.cdr-inline-cta {
  background: linear-gradient(135deg, #A00028 0%, #7d001f 100%);
  color: #FFFFFF;
  padding: 32px 36px;
  border-radius: 14px;
  margin: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.cdr-inline-cta-content h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
  color: #FFFFFF !important;
}
.cdr-inline-cta-content p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 15px !important;
  margin: 0 !important;
}
.cdr-inline-cta-btn {
  background: #FFFFFF;
  color: #A00028 !important;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}
.cdr-inline-cta-btn:hover { transform: translateY(-2px); }

/* ============================================================
   RIGHT SIDEBAR — Service CTA + Recovery cross-sell
   ============================================================ */
.cdr-right-sidebar {
  position: sticky;
  top: 100px;
  width: 100%;
  min-width: 0;
}

.cdr-sidebar-card {
  background: linear-gradient(135deg, #A00028 0%, #7d001f 100%);
  border: 1px solid rgba(160,0,40,0.50);
  border-radius: 14px;
  padding: 28px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(160,0,40,0.18);
  color: #FFFFFF;
}
.cdr-sidebar-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.cdr-sidebar-card > * { position: relative; z-index: 1; }
.cdr-sidebar-card .eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  display: block;
}
.cdr-sidebar-card h3 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  color: #FFFFFF !important;
  margin-bottom: 10px !important;
}
.cdr-sidebar-card .price {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.1;
}
.cdr-sidebar-card .price small {
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}
.cdr-sidebar-card .delivery {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
}
.cdr-sidebar-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.cdr-sidebar-card ul.features li {
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.cdr-sidebar-card ul.features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00C2A8;
  font-weight: 700;
  font-size: 14px;
}
.cdr-sidebar-card .btn-primary {
  display: block;
  background: #FFFFFF;
  color: #A00028 !important;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}
.cdr-sidebar-card .btn-primary:hover {
  transform: translateY(-2px);
  background: #FAF8F4;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.cdr-sidebar-card .note {
  font-size: 11.5px;
  color: rgba(255,255,255,0.60);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}

.cdr-sidebar-card-secondary {
  background: #FFFFFF;
  border: 1px solid #ECE9E3;
  color: #2A2A2A;
  box-shadow: none;
  padding: 24px 24px;
}
.cdr-sidebar-card-secondary::before { display: none; }
.cdr-sidebar-card-secondary h3 {
  color: #0A0A0A !important;
  font-size: 16px !important;
  margin-bottom: 8px !important;
}
.cdr-sidebar-card-secondary p {
  color: #2A2A2A;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.cdr-sidebar-card-secondary a {
  color: #A00028 !important;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.cdr-sidebar-card-secondary a:hover { text-decoration: underline; }

/* ============================================================
   AUTHOR BIO BLOCK
   ============================================================ */
.cdr-author-bio-section {
  max-width: 1100px;
  margin: 80px auto 0;
}
.cdr-author-bio-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: start;
  padding: 40px 44px;
  background: linear-gradient(135deg, #FAF8F4 0%, #FFFFFF 100%);
  border: 1px solid #ECE9E3;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.cdr-author-bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #A00028 0%, #00C2A8 100%);
}
.cdr-author-bio-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A00028 0%, #d4304e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -1px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(160,0,40,0.18);
  border: 4px solid #FFFFFF;
  overflow: hidden;
}
.cdr-author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cdr-author-bio-content { flex: 1; }
.cdr-author-bio-eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #A00028;
  margin-bottom: 10px;
}
.cdr-author-bio-name {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  line-height: 1.2 !important;
  color: #0A0A0A !important;
  margin: 0 0 6px !important;
}
.cdr-author-bio-role {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}
.cdr-author-bio-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: #2A2A2A;
  margin-bottom: 24px;
  max-width: 700px;
}
.cdr-author-bio-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid #ECE9E3;
  border-bottom: 1px solid #ECE9E3;
  margin-bottom: 22px;
}
.cdr-author-bio-stat strong {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #A00028;
  line-height: 1.1;
  display: block;
  margin-bottom: 2px;
}
.cdr-author-bio-stat span {
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  color: #777;
}
.cdr-author-bio-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cdr-author-bio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #ECE9E3;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #2A2A2A !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.cdr-author-bio-link:hover {
  border-color: #A00028;
  color: #A00028 !important;
  background: #FAF8F4;
  transform: translateY(-1px);
}

/* ============================================================
   RECOMMENDED ARTICLES
   ============================================================ */
.cdr-related-section {
  max-width: 1100px;
  margin: 80px auto 0;
  padding-top: 56px;
  border-top: 1px solid #ECE9E3;
}
.cdr-related-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #0A0A0A;
  margin-bottom: 32px;
  text-align: center;
}
.cdr-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cdr-related-card {
  background: #FFFFFF;
  border: 1px solid #ECE9E3;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: block;
}
.cdr-related-card:hover {
  border-color: #A00028;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(160,0,40,0.08);
}
.cdr-related-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #F0EEEA;
}
.cdr-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cdr-related-card-body { padding: 20px 22px 22px; }
.cdr-related-card-cat {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A00028;
  margin-bottom: 10px;
}
.cdr-related-card h3 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  color: #0A0A0A !important;
  margin: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .cdr-article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cdr-toc-sidebar,
  .cdr-right-sidebar {
    position: static;
  }
  .cdr-toc-sidebar { display: none; }
  .cdr-article-h1 { font-size: 34px !important; }
  .cdr-article-content { max-width: 100%; }
  .cdr-related-grid { grid-template-columns: 1fr; }
  .cdr-author-bio-card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 24px;
    text-align: center;
  }
  .cdr-author-bio-avatar {
    width: 88px;
    height: 88px;
    font-size: 32px;
    margin: 0 auto;
  }
  .cdr-author-bio-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .cdr-author-bio-text { max-width: none; text-align: left; }
  .cdr-author-bio-links { justify-content: center; }
}

@media (max-width: 720px) {
  .cdr-article-wrap { padding: 32px 20px 64px; }
  .cdr-article-h1 { font-size: 28px !important; }
  .cdr-article-deck { font-size: 17px; }
  .cdr-article-content h2 { font-size: 24px; }
  .cdr-article-content h3 { font-size: 19px; }
  .cdr-article-content p,
  .cdr-article-content li { font-size: 16.5px; }
  .cdr-inline-cta {
    grid-template-columns: 1fr;
    padding: 24px 24px;
  }
}


/* ============================================================
   AUTHOR ARCHIVE PAGE (author.php)
   URL: /author/{username}/
   All rules use body.author + !important to win specificity vs Astra
   ============================================================ */

/* Strip Astra wrappers on author pages */
body.author #page,
body.author .site,
body.author .site-content,
body.author .ast-container,
body.author #content > .ast-container,
body.author .site-content > .ast-container,
body.author #primary,
body.author .content-area,
body.author #main,
body.author .site-main,
body.author .entry-content,
body.author article,
body.author article.post,
body.author .ast-article-single,
body.author .ast-article-post,
body.author .ast-archive-description,
body.author .page-header,
body.author .ast-page-header-title-wrap {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.author #secondary,
body.author .widget-area,
body.author .ast-author-box,
body.author .ast-archive-title,
body.author .ast-page-header,
body.author .ast-author-details {
  display: none !important;
}

/* === Wrapper === */
body.author .cdr-author-page {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 48px 32px 80px !important;
  background: transparent !important;
}

/* === Breadcrumb === */
body.author .cdr-breadcrumb {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: #999 !important;
  margin-bottom: 24px !important;
}
body.author .cdr-breadcrumb a { color: #A00028 !important; text-decoration: none !important; }
body.author .cdr-breadcrumb .sep { color: #B5B5B5 !important; margin: 0 8px !important; }
body.author .cdr-breadcrumb .current { color: #555 !important; }

/* === Hero card === */
body.author .cdr-author-hero {
  margin: 32px 0 56px !important;
}
body.author .cdr-author-hero-inner {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) !important;
  gap: 48px !important;
  align-items: start !important;
  padding: 48px 52px !important;
  background: linear-gradient(135deg, #FAF8F4 0%, #FFFFFF 100%) !important;
  border: 1px solid #ECE9E3 !important;
  border-radius: 18px !important;
  position: relative !important;
  overflow: hidden !important;
}
body.author .cdr-author-hero-inner::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 6px !important;
  height: 100% !important;
  background: linear-gradient(180deg, #A00028 0%, #00C2A8 100%) !important;
  display: block !important;
}

/* Avatar */
body.author .cdr-author-hero-avatar {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #A00028 0%, #d4304e 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 56px !important;
  letter-spacing: -1px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 12px 32px rgba(160,0,40,0.18) !important;
  border: 5px solid #FFFFFF !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.author .cdr-author-hero-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  max-width: none !important;
}

/* Content side */
body.author .cdr-author-hero-content {
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.author .cdr-author-hero-eyebrow {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #A00028 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
body.author .cdr-author-hero-name {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 40px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.6px !important;
  color: #0A0A0A !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  text-align: left !important;
}
body.author .cdr-author-hero-role {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 15.5px !important;
  color: #555 !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
}
body.author .cdr-author-hero-bio {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  color: #2A2A2A !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  max-width: 760px !important;
}

/* Stats */
body.author .cdr-author-hero-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content)) !important;
  gap: 36px !important;
  padding: 22px 0 !important;
  border-top: 1px solid #ECE9E3 !important;
  border-bottom: 1px solid #ECE9E3 !important;
  margin: 0 0 26px !important;
  list-style: none !important;
}
body.author .cdr-author-hero-stat {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.author .cdr-author-hero-stat strong {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  color: #A00028 !important;
  line-height: 1.1 !important;
  display: block !important;
  margin-bottom: 4px !important;
}
body.author .cdr-author-hero-stat span {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 13px !important;
  color: #777 !important;
  display: block !important;
}

/* Action buttons */
body.author .cdr-author-hero-links {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.author .cdr-author-hero-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 11px 18px !important;
  background: #FFFFFF !important;
  border: 1px solid #ECE9E3 !important;
  border-radius: 8px !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #2A2A2A !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
body.author .cdr-author-hero-link:hover {
  border-color: #A00028 !important;
  color: #A00028 !important;
  background: #FAF8F4 !important;
  transform: translateY(-1px) !important;
}
body.author .cdr-author-hero-link svg { flex-shrink: 0 !important; }

/* === Articles section === */
body.author .cdr-author-posts {
  margin: 0 !important;
  padding: 0 !important;
}
body.author .cdr-author-posts-title,
body.author h2.cdr-author-posts-title {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: 1.3 !important;
  color: #0A0A0A !important;
  margin: 0 0 32px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid #ECE9E3 !important;
  text-align: left !important;
  letter-spacing: -0.3px !important;
}

/* Article cards grid */
body.author .cdr-author-posts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.author .cdr-author-post-card {
  background: #FFFFFF !important;
  border: 1px solid #ECE9E3 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: block !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
}
body.author .cdr-author-post-card:hover {
  border-color: #A00028 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 22px rgba(160,0,40,0.08) !important;
}
body.author .cdr-author-post-img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #F0EEEA !important;
  display: block !important;
}
body.author .cdr-author-post-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  max-width: none !important;
}
body.author .cdr-author-post-body {
  padding: 22px 24px 24px !important;
}
body.author .cdr-author-post-cat {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #A00028 !important;
  margin: 0 0 10px !important;
}
body.author .cdr-author-post-title,
body.author h3.cdr-author-post-title {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  color: #0A0A0A !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
body.author .cdr-author-post-excerpt {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #555 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.author .cdr-author-post-meta {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 12.5px !important;
  color: #999 !important;
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.author .cdr-author-post-meta-sep { color: #CCC !important; }

/* Pagination */
body.author .cdr-author-pagination {
  margin: 48px 0 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.author .cdr-author-pagination .page-numbers {
  display: inline-block !important;
  padding: 10px 16px !important;
  border: 1px solid #ECE9E3 !important;
  border-radius: 8px !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #555 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  background: #FFFFFF !important;
}
body.author .cdr-author-pagination .page-numbers:hover,
body.author .cdr-author-pagination .page-numbers.current {
  border-color: #A00028 !important;
  color: #FFFFFF !important;
  background: #A00028 !important;
}
body.author .cdr-author-no-posts {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 16px !important;
  color: #777 !important;
  text-align: center !important;
  padding: 48px 0 !important;
}

@media (max-width: 1000px) {
  body.author .cdr-author-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
  body.author .cdr-author-page { padding: 32px 20px 64px !important; }
  body.author .cdr-author-hero-inner {
    grid-template-columns: 1fr !important;
    padding: 32px 28px !important;
    gap: 24px !important;
    text-align: center !important;
  }
  body.author .cdr-author-hero-avatar {
    width: 120px !important;
    height: 120px !important;
    font-size: 42px !important;
    margin: 0 auto !important;
  }
  body.author .cdr-author-hero-name { font-size: 30px !important; text-align: center !important; }
  body.author .cdr-author-hero-bio { text-align: left !important; }
  body.author .cdr-author-hero-links { justify-content: center !important; }
  body.author .cdr-author-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    text-align: center !important;
  }
  body.author .cdr-author-posts-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   ASTRA "SEPARATE CONTAINER" OVERRIDES
   Astra's Customizer setting ast-separate-container wraps every
   content section in a boxed white card with padding + shadow.
   We strip that on author + single posts so our designs render
   without competing wrapper styles.
   ============================================================ */
body.ast-separate-container.single-post #content,
body.ast-separate-container.author #content,
body.ast-separate-container.single-post #content > .ast-container,
body.ast-separate-container.author #content > .ast-container,
body.ast-separate-container.single-post .ast-container,
body.ast-separate-container.author .ast-container {
  background: transparent !important;
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
body.ast-separate-container.single-post .ast-article-single,
body.ast-separate-container.author .ast-article-single,
body.ast-separate-container.single-post .ast-article-post,
body.ast-separate-container.author .ast-article-post,
body.ast-separate-container.single-post article.post,
body.ast-separate-container.author article.post {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.ast-separate-container.author #main,
body.ast-separate-container.single-post #main {
  padding: 0 !important;
  background: transparent !important;
}
body.author .ast-pagination,
body.author .nav-links { display: none !important; }

/* ============================================================
   AVATAR LAYERING (JS onerror fallback approach)
   Both .cdr-avatar-initials span + .cdr-avatar-img exist in DOM.
   JS hides whichever isn't needed based on whether Gravatar 404s.
   ============================================================ */
body .cdr-author-hero-avatar,
body .cdr-author-bio-avatar {
  position: relative !important;
}
body .cdr-avatar-initials {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font: inherit !important;
  color: inherit !important;
}
body .cdr-avatar-img {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  max-width: none !important;
}
