.atd-blog,
.atd-blog * {
  box-sizing: border-box;
}

.atd-blog-container {
  width: min(100% - 48px, 1220px);
  margin: 0 auto;
}

/* Hero: same purple family as Privacy Policy / Data Protection / Contact Us / Categories */
.atd-blog-hero {
  position: relative;
  z-index: 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #432482;
  padding: 200px 24px 64px;
  text-align: center;
}

.atd-blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media (min-width: 768px) {
  .atd-blog-hero::before {
    background-image: url("https://auctiontoday.trendinsiights.com/wp-content/uploads/2026/08/Documentation-Hero-Desktop.-Ver-scaled.png");
    background-size: 104% auto;
  }
}

@media (max-width: 767px) {
  .atd-blog-hero::before {
    background-image: url("https://auctiontoday.trendinsiights.com/wp-content/uploads/2026/08/Documentation-Hero-Mob.-Ver.png");
  }

  .atd-blog-hero {
    padding: 140px 20px 48px;
  }
}

.atd-blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.atd-blog-hero-title {
  margin: 0;
  color: #fff;
  font-family: var(--heading-font, "General Sans", sans-serif);
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.atd-blog-hero-subtitle {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--body-font, "Plus Jakarta Sans", sans-serif);
  font-size: 18px;
  line-height: 1.5;
}

/* Breadcrumbs */
.atd-blog-breadcrumbs {
  padding: 28px 0 0;
}

.atd-blog-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(31, 23, 64, 0.56);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
}

.atd-blog-breadcrumbs a {
  color: rgba(31, 23, 64, 0.56);
  text-decoration: none;
}

.atd-blog-breadcrumbs a:hover {
  color: #7130f0;
}

.atd-blog-breadcrumbs [aria-current="page"] {
  color: #1f1740;
  font-weight: 500;
}

/* Listing / archive grid */
.atd-blog-listing {
  padding: 56px 0 96px;
  background: #fff;
}

.atd-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.atd-blog-empty {
  padding: 60px 0;
  color: rgba(31, 23, 64, 0.6);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  text-align: center;
}

@media (max-width: 1100px) {
  .atd-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .atd-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.atd-blog-card {
  height: 100%;
}

.atd-blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(31, 23, 64, 0.1);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(31, 23, 64, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.atd-blog-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 48, 240, 0.28);
  box-shadow: 0 22px 44px rgba(31, 23, 64, 0.1);
}

.atd-blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f1ff;
}

.atd-blog-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atd-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.atd-blog-card-category {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #7130f0;
  background: #f5f1ff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.atd-blog-card-title {
  margin: 0 0 10px;
  color: #1f1740;
  font-family: "General Sans", sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.28;
}

.atd-blog-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: rgba(31, 23, 64, 0.66);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.atd-blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 23, 64, 0.08);
  color: rgba(31, 23, 64, 0.52);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
}

.atd-blog-card-read {
  color: #7130f0;
  font-weight: 600;
}

/* Pagination */
.atd-blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.atd-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atd-blog-pagination a,
.atd-blog-pagination span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #1f1740;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.atd-blog-pagination a {
  border: 1px solid rgba(31, 23, 64, 0.14);
}

.atd-blog-pagination a:hover {
  border-color: #7130f0;
  color: #7130f0;
}

.atd-blog-pagination .current {
  color: #fff;
  background: #7130f0;
}

/* Reading progress */
.atd-blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #7130f0, #a676ff);
  transition: width 120ms ease-out;
}

/* Single-post shell: the shared .atd-page rule sets overflow:hidden (dynamic-sections.css),
   which pins position:sticky descendants to that box instead of the real viewport and
   silently breaks the sticky TOC sidebar below. Scoped override, single-post only. */
.atd-blog-single.atd-page {
  overflow: visible;
}

/* TRUE root cause of the sticky-TOC failure: inc/layout.php's auction_today_render_site_header()
   prints its own inline <style id="auction-today-inner-page-fixes"> straight into <body> (after
   <head> has already closed) with "body:not(.home)" and "body:not(.home) main" rules that force
   overflow-x: hidden !important on <body> and <main> themselves, sitewide, on every inner page.
   Setting overflow-x to anything but visible makes the browser compute overflow-y as auto too
   (a real CSS coupling rule, not a typo) - so both <body> and <main> silently become scroll
   containers. position:sticky always resolves against the NEAREST ancestor scroll container, so
   the TOC was sticking (uselessly) against <body>/<main>'s own box instead of the real page
   viewport - not a range problem, not a grid/align-self problem, and invisible to anything scoped
   only to .atd-article-toc/.atd-article-toc-aside, which is why every earlier attempt here still
   failed. !important is required to beat that inline rule's own !important; the class-selector
   specificity here (2 classes) already outranks its "body:not(.home) main" (1 class + 2 types),
   so this wins on both counts. Scoped to this template only - overflow-x:hidden stays in place
   everywhere else on the site. */
body.single.single-post {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.atd-blog-single.atd-page {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Article hero: darker purple family for readability, distinct from the listing hero */
.atd-article-hero {
  position: relative;
  overflow: hidden;
  background-color: #21183f;
  background-image: radial-gradient(900px 520px at 78% 20%, rgba(113, 48, 240, 0.32), transparent 68%);
  padding: 176px 24px 64px;
  color: #fff;
  text-align: center;
}

/* Matches .atd-blog-container's own 1220px cap so hero content lines up exactly with the
   breadcrumb/article column directly below it, instead of using an unrelated narrower value. */
.atd-article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
}

.atd-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.atd-article-category-pill,
.atd-article-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Higher specificity than dynamic-sections.css's ".atd-page a { color: inherit }" (1 class +
   1 type there vs 1 class here), which was overriding this to white-on-white and rendering
   the main category pill as an invisible/empty capsule. */
.atd-article-hero a.atd-article-category-pill {
  color: #21183f;
  background: #fff;
}

.atd-article-tag-pill {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

/* max-width is intentionally set here (not left unset): home.css defines a bare, unscoped
   "h1 { max-width: 760px; font-size: clamp(4rem, 7vw, 7.5rem); ... }" rule meant for the
   homepage's .hero-copy h1, but since it targets every h1 on the site and this title never
   redeclared max-width, that 760px cap was silently winning the cascade (higher-specificity
   selectors here only override font-size/line-height/font-family, not the property they never
   set) and capping this h1 to 760px regardless of how wide .atd-article-hero-inner is. That is
   the actual reason widening the hero container alone never changed the wrapping. */
.atd-article-title {
  max-width: 100%;
  margin: 0;
  font-family: "General Sans", sans-serif;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
}

.atd-article-excerpt {
  max-width: 900px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  line-height: 1.5;
}

.atd-article-meta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.atd-article-meta-category {
  color: #fff;
}

.atd-article-meta-dot {
  color: rgba(255, 255, 255, 0.4);
}

/* Article body */
.atd-article-body-wrap {
  padding-bottom: 40px;
}

.atd-article-featured-image {
  margin: 32px 0 8px;
  overflow: hidden;
  border-radius: 16px;
}

.atd-article-featured-image-el {
  display: block;
  width: 100%;
  height: auto;
}

.atd-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 28%);
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}

.atd-article-content {
  max-width: 760px;
  color: #333;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  line-height: 1.75;
}

.atd-article-content h2 {
  margin: 48px 0 18px;
  color: #21183f;
  font-family: "General Sans", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
}

.atd-article-content h3 {
  margin: 36px 0 14px;
  color: #21183f;
  font-family: "General Sans", sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}

.atd-article-content h4 {
  margin: 28px 0 12px;
  color: #21183f;
  font-size: 19px;
  font-weight: 600;
}

.atd-article-content p {
  margin: 0 0 20px;
}

.atd-article-content ul,
.atd-article-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.atd-article-content li {
  margin-bottom: 8px;
}

.atd-article-content a {
  color: #7130f0;
  text-decoration: underline;
  word-break: break-word;
}

.atd-article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid #7130f0;
  color: #21183f;
  background: #f5f1ff;
  font-style: italic;
}

.atd-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.atd-article-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 16px;
}

.atd-article-content table th,
.atd-article-content table td {
  padding: 10px 14px;
  border: 1px solid rgba(31, 23, 64, 0.14);
  text-align: left;
}

/* Table of contents */
/* .atd-article-layout uses align-items: start so the (taller) content column is never
   stretched to a row height it doesn't need. Putting position:sticky AND align-self:stretch on
   the SAME grid item (as a first attempt did) is unreliable: some engines resolve the sticky
   "stuck" range against the item's pre-stretch/content size instead of its stretched box, so it
   still looks like it has almost no room to travel. The robust, standard pattern splits the two
   jobs across parent/child: .atd-article-toc-aside is a plain (non-positioned) grid item that
   stretches to the full row height (i.e. the height of .atd-article-content), acting purely as
   a tall scroll track; .atd-article-toc - its ordinary, naturally-sized child - is the actual
   sticky element, so it sticks against a definite, already-resolved tall containing block and
   releases naturally once that row ends, right before the author card / Related Posts. */
.atd-article-toc-aside {
  align-self: stretch;
  min-height: 100%;
}

.atd-article-toc {
  position: sticky;
  top: calc(32px + var(--wp-admin--admin-bar--height, 0px));
  padding: 20px;
  border: 1px solid rgba(31, 23, 64, 0.1);
  border-radius: 14px;
  background: #f5f1ff;
}

.atd-article-toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f1740;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: default;
}

.atd-article-toc-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(113, 48, 240, 0.14);
  color: #7130f0;
  font-size: 12px;
}

.atd-article-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.atd-toc-link {
  padding: 6px 8px;
  border-radius: 8px;
  color: rgba(31, 23, 64, 0.68);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.atd-toc-link--sub {
  margin-left: 14px;
  font-size: 13px;
}

.atd-toc-link:hover {
  color: #7130f0;
}

.atd-toc-link.is-active {
  color: #7130f0;
  background: rgba(113, 48, 240, 0.1);
  font-weight: 600;
}

/* Article footer / author card */
.atd-article-footer {
  max-width: 760px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(31, 23, 64, 0.1);
}

.atd-article-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.atd-article-author-avatar {
  border-radius: 50%;
}

.atd-article-author-label {
  display: block;
  color: rgba(31, 23, 64, 0.56);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
}

.atd-article-author-name {
  display: block;
  color: #1f1740;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* Related posts */
.atd-blog-related {
  padding: 72px 0 96px;
  background: #f5f1ff;
}

.atd-blog-related-title {
  margin: 0 0 8px;
  color: #1f1740;
  font-family: "General Sans", sans-serif;
  font-size: 32px;
  font-weight: 500;
}

.atd-blog-related .atd-blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .atd-blog-related .atd-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .atd-blog-related .atd-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive article layout + mobile TOC (collapsible above the article, not a sticky sidebar) */
@media (max-width: 980px) {
  .atd-article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .atd-article-toc-aside {
    align-self: auto;
    min-height: 0;
    order: -1;
  }

  .atd-article-toc {
    position: static;
    top: auto;
  }

  .atd-article-toc-nav {
    max-height: none;
    overflow-y: visible;
  }

  .atd-article-toc-summary {
    cursor: pointer;
  }

  .atd-article-toc:not([open]) .atd-article-toc-nav {
    display: none;
  }
}

@media (max-width: 767px) {
  .atd-article-hero {
    padding: 132px 20px 48px;
  }

  .atd-article-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .atd-article-content {
    font-size: 16px;
  }

  .atd-blog-container {
    width: min(100% - 32px, 1220px);
  }
}
