/* ============================================================
   Audacem Blogs — stylesheet
   All classes prefixed with "ab-" to avoid Dawn theme conflicts.

   CRITICAL: Dawn sets html { font-size: 62.5% } so 1rem = 10px.
   All sizes here are in PX to be independent of that base setting.
   Values match Dawn's own scale: body=15px, h1=30/40px,
   h2=20/24px, h3=17/18px, caption=10px uppercase.

   Colors/fonts use Dawn CSS custom properties so the blog
   automatically reflects whatever theme settings the merchant uses.
   ============================================================ */

/* ─── Common: section wrapper ────────────────────────────────── */
/*
  .ab-main sits INSIDE .page-width (injected by _proxy.ts).
  .page-width already provides max-width + horizontal padding.
  We only add vertical padding to match Dawn's section rhythm.
*/
.ab-main {
  padding-top: 27px;    /* 0.75 × 36px — Dawn's mobile section padding */
  padding-bottom: 27px;
  font-family: var(--font-body-family, sans-serif);
  font-style: var(--font-body-style, normal);
  font-weight: var(--font-body-weight, 400);
}

@media screen and (min-width: 750px) {
  .ab-main {
    padding-top: 36px;    /* Dawn blog section default padding_top */
    padding-bottom: 36px;
  }
}

/* ─── Shared: back / breadcrumb link ─────────────────────────── */
/* Matches Dawn's .link style */
.ab-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  margin-bottom: 24px;
  transition: color 150ms ease, text-decoration-thickness 100ms ease;
}

.ab-back-link:hover {
  color: rgb(var(--color-foreground, 18, 18, 18));
  text-decoration-thickness: 2px;
}

.ab-empty {
  font-size: 15px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
}

/* ─── Meta row: category badge + read time ───────────────────── */
.ab-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* color and border-color set inline — dynamic per post */
.ab-category {
  font-size: 10px;            /* Dawn caption-with-letter-spacing: 1rem = 10px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;     /* Dawn caption-with-letter-spacing */
  border-radius: var(--badge-corner-radius, 4px);
  padding: 3px 10px;
  border-width: 1px;
  border-style: solid;
  line-height: 1;
}

.ab-read-time {
  font-size: 13px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  letter-spacing: 0.4px;
}

/* ─────────────────────────────────────────────────────────────── */
/* BLOG LIST PAGE                                                   */
/* ─────────────────────────────────────────────────────────────── */

/* Page header: "Audacem Blogs" title + "Authors →" link */
.ab-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

/* h1 mirrors Dawn's .title--primary style */
.ab-page-title {
  font-size: 30px;           /* Dawn h1 mobile: calc(scale * 3rem) = 30px */
  font-family: var(--font-heading-family, sans-serif);
  font-style: var(--font-heading-style, normal);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  word-break: break-word;
  margin: 0;
}

@media screen and (min-width: 750px) {
  .ab-page-title { font-size: 40px; } /* Dawn h1 desktop: scale * 4rem = 40px */
}

/* "Authors →" — Dawn .link style */
.ab-authors-link {
  font-size: 14px;
  color: rgba(var(--color-link, 18, 18, 18), var(--alpha-link, 0.85));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 100ms ease;
  white-space: nowrap;
}

.ab-authors-link:hover {
  color: rgb(var(--color-link, 18, 18, 18));
  text-decoration-thickness: 2px;
}

/* ── 2-column responsive grid — mirrors Dawn's blog-articles grid */
.ab-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media screen and (min-width: 750px) {
  .ab-blog-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;   /* ~Dawn's --grid-desktop-horizontal-spacing */
    row-gap: 48px;
  }
}

/* Article card */
.ab-post-card {
  display: flex;
  flex-direction: column;
}

/*
  Image wrapper with fixed height matching Dawn's "medium" image height:
    mobile  : 22rem = 220px   (article-card__image--medium on mobile)
    tablet  : 21.9rem ≈ 219px
    desktop : 30.7rem ≈ 307px
*/
.ab-card-image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--border-radius, 0px);
  margin-bottom: 16px;
  background-color: rgba(var(--color-foreground, 18, 18, 18), 0.06);
  height: 220px;
}

@media screen and (min-width: 750px) {
  .ab-card-image-link { height: 219px; }
}

@media screen and (min-width: 990px) {
  .ab-card-image-link { height: 307px; }
}

.ab-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-long, 500ms) ease;
}

/* Dawn's media--hover-effect scale on desktop */
@media screen and (min-width: 990px) {
  .ab-post-card:hover .ab-card-image {
    transform: scale(1.03);
  }
}

/* Card body: text info below the image */
.ab-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/*
  Card title: Dawn uses card__heading.h2 on blog cards.
  h2 mobile = calc(scale * 2rem) = 20px
  h2 desktop = calc(scale * 2.4rem) = 24px
*/
.ab-card-heading {
  margin: 0 0 6px;
  font-size: 20px;
  font-family: var(--font-heading-family, sans-serif);
  font-style: var(--font-heading-style, normal);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  word-break: break-word;
}

@media screen and (min-width: 750px) {
  .ab-card-heading { font-size: 24px; }
}

.ab-card-title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ab-post-card:hover .ab-card-title-link,
.ab-post-card:hover .ab-card-heading {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Date on card: Dawn's article-card__footer — font-size 1.4rem = 14px */
.ab-card-date {
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.65);
  margin: 4px 0 0;
}

/* Excerpt: Dawn's article-card__excerpt — body size 15px */
.ab-card-excerpt {
  font-size: 15px;
  line-height: calc(1 + 0.8 / var(--font-body-scale, 1));
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
  margin: 12px 0 0;
}

/* Author line */
.ab-card-authors {
  font-size: 13px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  margin: 10px 0 0;
  padding-top: 10px;
  margin-top: auto;
}

/* ─────────────────────────────────────────────────────────────── */
/* SINGLE POST PAGE                                                 */
/* ─────────────────────────────────────────────────────────────── */

/*
  Hero image: no border-radius, no height cap (like Dawn's adapt mode).
  Sits outside the narrow content wrapper, inside .page-width.
  Dawn's medium hero heights: 220px mobile / 440px tablet / 550px desktop.
*/
.ab-hero-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0; /* Dawn hero is edge-to-edge within its container */
}

@media screen and (min-width: 750px) {
  .ab-hero-image { height: 440px; }
}

@media screen and (min-width: 990px) {
  .ab-hero-image { height: 550px; }
}

/*
  Narrow article wrapper — mirrors Dawn's .page-width--narrow.
  Dawn: max-width 72.6rem at 62.5% base = 726px.
*/
.ab-article-narrow {
  max-width: 726px;
  margin: 0 auto;
}

/*
  Article header block.
  Dawn: margin-top 4.4rem = 44px (mobile), 5rem = 50px (tablet).
  margin-bottom 2rem = 20px.
*/
.ab-article-header {
  margin-top: 44px;
  margin-bottom: 20px;
  line-height: 1;
}

@media screen and (min-width: 750px) {
  .ab-article-header { margin-top: 50px; }
}

.ab-post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/*
  Article h1. Dawn: .article-template__title uses h1 defaults.
  h1 mobile = 3rem = 30px; desktop = 4rem = 40px.
*/
.ab-post-heading {
  font-size: 30px;
  font-family: var(--font-heading-family, sans-serif);
  font-style: var(--font-heading-style, normal);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  word-break: break-word;
  margin: 0 0 10px;
}

@media screen and (min-width: 750px) {
  .ab-post-heading { font-size: 40px; }
}

/*
  Date. Dawn uses .circle-divider.caption-with-letter-spacing:
  font-size 1rem = 10px, uppercase, letter-spacing 1.3px.
*/
.ab-post-date {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
  margin: 0 0 20px;
}

/* Authors row below the title */
.ab-authors-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  align-items: center;
}

.ab-author-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.ab-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.ab-author-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
}

.ab-author-link:hover .ab-author-name {
  color: rgb(var(--color-foreground, 18, 18, 18));
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
  Lead / excerpt paragraph.
  Dawn doesn't have this natively — we use 18px italic, slightly
  larger than body, to create a visual summary block.
*/
.ab-lead {
  font-size: 18px;
  font-style: italic;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
  line-height: calc(1 + 0.8 / var(--font-body-scale, 1));
  margin-bottom: 30px;
}

/*
  Article content wrapper.
  Dawn: .article-template__content margin-top 3rem = 30px;
  margin-bottom 3rem = 30px.
*/
.ab-article-content {
  margin-bottom: 30px;
}

.ab-section { margin-bottom: 30px; }

/*
  Section heading (h2 wysiwygBlock title).
  Dawn: h2 mobile = 20px, desktop = 24px.
*/
.ab-section-title {
  font-size: 20px;
  font-family: var(--font-heading-family, sans-serif);
  font-style: var(--font-heading-style, normal);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  word-break: break-word;
  margin: 0 0 12px;
}

@media screen and (min-width: 750px) {
  .ab-section-title { font-size: 24px; }
}

/*
  PortableText body content — mirrors Dawn's .rte class.
  Dawn body text: 1.5rem = 15px.
*/
.ab-body-content {
  font-size: 15px;
  line-height: calc(1 + 0.8 / var(--font-body-scale, 1));
  color: rgba(var(--color-foreground, 18, 18, 18), 0.85);
}

.ab-body-content p {
  font-size: 15px;
  line-height: calc(1 + 0.8 / var(--font-body-scale, 1));
  color: rgba(var(--color-foreground, 18, 18, 18), 0.85);
  margin: 0 0 15px;
}

/* Headings within body match Dawn's h1–h6 scale */
.ab-body-content h1 {
  font-size: 30px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  margin: 30px 0 12px;
  color: rgb(var(--color-foreground, 18, 18, 18));
}

.ab-body-content h2 {
  font-size: 20px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  margin: 25px 0 10px;
  color: rgb(var(--color-foreground, 18, 18, 18));
}

@media screen and (min-width: 750px) {
  .ab-body-content h1 { font-size: 40px; }
  .ab-body-content h2 { font-size: 24px; }
}

.ab-body-content h3 {
  font-size: 17px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  margin: 20px 0 8px;
  color: rgb(var(--color-foreground, 18, 18, 18));
}

@media screen and (min-width: 750px) {
  .ab-body-content h3 { font-size: 18px; }
}

.ab-body-content h4 {
  font-size: 15px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  margin: 18px 0 8px;
  color: rgb(var(--color-foreground, 18, 18, 18));
}

.ab-body-content h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 15px 0 6px;
  color: rgb(var(--color-foreground, 18, 18, 18));
}

.ab-body-content h6 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 600;
  margin: 15px 0 6px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
}

/* Blockquote — matches Dawn's .rte blockquote */
.ab-body-content blockquote {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  border-left: 2px solid rgba(var(--color-foreground, 18, 18, 18), 0.2);
  padding: 5px 15px;
  margin: 20px 0;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
}

.ab-body-content ul,
.ab-body-content ol {
  padding-left: 20px;
  margin: 0 0 15px;
  list-style-position: inside;
}

.ab-body-content li {
  margin-bottom: 5px;
  font-size: 15px;
  line-height: calc(1 + 0.8 / var(--font-body-scale, 1));
  list-style: inherit;
}

/* Links — matches Dawn's .rte a  */
.ab-body-content a {
  color: rgba(var(--color-link, 18, 18, 18), var(--alpha-link, 0.85));
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 100ms ease;
}

.ab-body-content a:hover {
  color: rgb(var(--color-link, 18, 18, 18));
  text-decoration-thickness: 2px;
}

.ab-body-content code {
  background: rgba(var(--color-foreground, 18, 18, 18), 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

.ab-body-content strong {
  font-weight: var(--font-body-weight-bold, 700);
}

/* Images inside body — matches Dawn's .rte img */
.ab-body-content img {
  height: auto;
  max-width: 100%;
  border: var(--media-border-width, 0px) solid rgba(var(--color-foreground, 18, 18, 18), var(--media-border-opacity, 0));
  border-radius: var(--media-radius, 0px);
}

/* Inline images inserted via Sanity portable text */
.ab-body-image-wrapper {
  margin: 24px 0;
}

.ab-body-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--media-radius, 0px);
}

/* Responsive YouTube embed (16:9) */
.ab-youtube-embed {
  margin: 24px 0;
}

.ab-youtube-embed__inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--media-radius, 0px);
  background: #000;
}

.ab-youtube-embed__inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ab-youtube-caption {
  font-size: 13px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  text-align: center;
  margin: 8px 0 0;
}

/* Tags section */
.ab-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
}

.ab-tags-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  margin-bottom: 10px;
}

.ab-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tags styled like Dawn's .badge */
.ab-tag {
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
  background: transparent;
  border: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  border-radius: var(--badge-corner-radius, 4px);
  padding: 5px 13px 6px;
}

/*
  Bottom back link — mirrors Dawn's .article-template__back.
  Dawn: text-align center, margin-bottom 3.2rem = 32px.
  Link: font-size 1.8rem = 18px, flex, justify-content center.
*/
.ab-article-back {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 32px;
}

.ab-back-link-bottom {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  text-decoration: none;
  color: rgb(var(--color-link, 18, 18, 18));
  font-family: var(--font-body-family, sans-serif);
  transition: text-decoration 100ms ease;
}

.ab-back-link-bottom:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Arrow icon container (rotated like Dawn's .icon-wrap) */
.ab-arrow-icon {
  display: inline-flex;
  align-items: center;
  transform: rotate(180deg);
  margin-right: 4px;
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────── */
/* AUTHORS LIST PAGE                                               */
/* ─────────────────────────────────────────────────────────────── */

/* 2-column grid on tablet+ to match the blog list grid */
.ab-authors-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media screen and (min-width: 750px) {
  .ab-authors-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Author card: styled like a Dawn .content-container */
.ab-author-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  border: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  border-radius: var(--border-radius, 0px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ab-author-card-link:hover {
  border-color: rgba(var(--color-foreground, 18, 18, 18), 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ab-author-card-link:hover .ab-author-card-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ab-author-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Author name: h3 level (Dawn h3 = 17/18px) */
.ab-author-card-name {
  font-size: 17px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  margin: 0;
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
}

@media screen and (min-width: 750px) {
  .ab-author-card-name { font-size: 18px; }
}

.ab-author-card-email {
  font-size: 13px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  margin: 4px 0 0;
}

/* ─────────────────────────────────────────────────────────────── */
/* AUTHOR DETAIL PAGE                                              */
/* ─────────────────────────────────────────────────────────────── */

.ab-author-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.ab-author-avatar-xl {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Author bio name: h1 level */
.ab-author-bio-name {
  font-size: 30px;
  font-family: var(--font-heading-family, sans-serif);
  font-style: var(--font-heading-style, normal);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  margin: 0;
  word-break: break-word;
}

@media screen and (min-width: 750px) {
  .ab-author-bio-name { font-size: 40px; }
}

.ab-author-bio-email {
  font-size: 14px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  margin: 6px 0 0;
}

/* "Posts by …" heading: h3 level */
.ab-author-posts-heading {
  font-size: 17px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  padding-bottom: 12px;
}

@media screen and (min-width: 750px) {
  .ab-author-posts-heading { font-size: 18px; }
}

.ab-author-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ab-author-post-item {
  border-bottom: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  padding-bottom: 20px;
}

/* Post title in author detail: h3 level */
.ab-author-post-title {
  font-size: 17px;
  font-family: var(--font-heading-family, sans-serif);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale, 1)));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
}

@media screen and (min-width: 750px) {
  .ab-author-post-title { font-size: 20px; }
}

.ab-author-post-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Post date in author detail: caption style */
.ab-date {
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.65);
  margin: 4px 0 0;
}

.ab-author-post-description {
  font-size: 15px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.7);
  margin: 8px 0 0;
  line-height: calc(1 + 0.8 / var(--font-body-scale, 1));
}

/* ─────────────────────────────────────────────────────────────── */
/* BLOG LIST — PAGINATION                                           */
/* ─────────────────────────────────────────────────────────────── */

.ab-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  flex-wrap: wrap;
}

/*
  Pagination buttons match Dawn's .button style:
  background = --color-button, text = --color-button-text,
  border-radius = --buttons-radius, letters uppercase.
*/
.ab-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-family: var(--font-body-family, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--color-button-text, 255, 255, 255));
  background-color: rgb(var(--color-button, 18, 18, 18));
  border: var(--buttons-border-width, 1px) solid
    rgba(var(--color-button-border, 18, 18, 18), var(--alpha-button-border, 1));
  border-radius: var(--buttons-radius, 0px);
  padding: 14px 28px;
  text-decoration: none;
  transition: opacity 200ms ease;
  line-height: 1;
}

.ab-pagination-btn:hover {
  opacity: 0.75;
  color: rgb(var(--color-button-text, 255, 255, 255));
  text-decoration: none;
}

/* "Page N of M" — centered between buttons */
.ab-pagination-info {
  font-size: 14px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.65);
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────── */
/* SINGLE POST — PREV / NEXT SIBLING NAVIGATION                    */
/* ─────────────────────────────────────────────────────────────── */

/*
  Two-column grid: prev on the left, next on the right.
  Sits inside .ab-article-narrow, above .ab-article-back.
*/
.ab-post-sibling-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
}

/* Card-style sibling link — border + subtle shadow on hover */
.ab-sibling-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 16px;
  border: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  border-radius: var(--border-radius, 0px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ab-sibling-link:hover {
  border-color: rgba(var(--color-foreground, 18, 18, 18), 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

/* "Next" card is right-aligned */
.ab-sibling-link--next {
  text-align: right;
}

/* Label: "← Previous post" / "Next post →" — Dawn caption style */
.ab-sibling-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
  margin: 0 0 8px;
  line-height: 1;
}

/* Post title inside sibling card — clamp to 2 lines */
.ab-sibling-title {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-heading-family, sans-serif);
  color: rgb(var(--color-foreground, 18, 18, 18));
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.ab-sibling-link:hover .ab-sibling-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────── */
/* SHARE BAR                                                        */
/* Previous Article | Share [FB] [TW] [PIN] | Next Article         */
/* ─────────────────────────────────────────────────────────────── */

.ab-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  padding: 16px 0;
  border-top: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  border-bottom: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
}

.ab-share-bar__nav {
  font-size: 1.3rem;
  font-family: var(--font-body-family, sans-serif);
  color: rgb(var(--color-foreground, 18, 18, 18));
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
}

.ab-share-bar__nav--prev { text-align: left; }
.ab-share-bar__nav--next { text-align: right; }
.ab-share-bar__nav--empty { pointer-events: none; }

.ab-share-bar__nav:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ab-share-bar__icons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ab-share-bar__label {
  font-size: 1.3rem;
  font-family: var(--font-body-family, sans-serif);
  color: rgba(var(--color-foreground, 18, 18, 18), 0.55);
}

.ab-share-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--color-foreground, 18, 18, 18));
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.ab-share-bar__icon:hover {
  opacity: 0.6;
}

.ab-share-bar__icon svg {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
}

@media screen and (max-width: 749px) {
  .ab-share-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .ab-share-bar__nav {
    flex: 0 0 auto;
    font-size: 1.2rem;
  }

  .ab-share-bar__nav--prev { order: 1; }
  .ab-share-bar__icons     { order: 2; flex: 0 0 100%; justify-content: center; }
  .ab-share-bar__nav--next { order: 3; }
}

/* ─────────────────────────────────────────────────────────────── */
/* RELATED ARTICLES                                                 */
/* Sits outside .ab-article-narrow — full page-width, 3-col grid.  */
/* ─────────────────────────────────────────────────────────────── */

.ab-related {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
}

/* Section heading: h2 level (Dawn h2 = 20/24px) */
.ab-related-heading {
  font-size: 20px;
  font-family: var(--font-heading-family, sans-serif);
  font-style: var(--font-heading-style, normal);
  font-weight: var(--font-heading-weight, 700);
  color: rgb(var(--color-foreground, 18, 18, 18));
  letter-spacing: calc(var(--font-heading-scale, 1) * 0.6px);
  margin: 0 0 24px;
}

@media screen and (min-width: 750px) {
  .ab-related-heading { font-size: 24px; }
}

/* 1-col on mobile → 3-col on tablet+ (one per related post) */
.ab-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media screen and (min-width: 750px) {
  .ab-related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/*
 * Override card image height inside the related grid.
 * 3 cards per row means narrower columns → shorter images.
 * Mobile stays the same (1-col, full width).
 */
.ab-related-grid .ab-card-image-link {
  height: 200px;
}

@media screen and (min-width: 750px) {
  .ab-related-grid .ab-card-image-link {
    height: 160px;
  }
}

@media screen and (min-width: 990px) {
  .ab-related-grid .ab-card-image-link {
    height: 200px;
  }
}

/* ─────────────────────────────────────────────────────────────── */
/* NEWSLETTER BANNER                                                */
/* Full-width dark bar: text left, email form right.               */
/*                                                                 */
/* Uses official Dawn theme classes for the form:                  */
/*   newsletter-form, field, field__input, field__label,           */
/*   newsletter-form__button, field__button, svg-wrapper           */
/* color-scheme-3 + gradient (Dawn) = black bg / white text        */
/* (scheme-3 in client theme: background #000, text #fff)          */
/*                                                                 */
/* Custom CSS here is ONLY for the side-by-side layout wrapper     */
/* that Dawn doesn't provide natively.                             */
/* ─────────────────────────────────────────────────────────────── */

/* Full-width dark strip — colour comes from color-scheme-3 +
   gradient Dawn classes (no manual colour needed here). */
.ab-nl {
  padding: 28px 0;
}

/* Side-by-side layout inside the page-width constraint */
.ab-nl__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Left: heading text — inherits white colour from color-scheme-3 */
.ab-nl__heading {
  flex: 1;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Right: constrain form width and override Dawn's centering
   (newsletter-form centres itself at ≥750px, we need left-align) */
.ab-nl-form {
  flex: 0 0 auto;
  width: min(420px, 100%);
  align-items: flex-start !important;
  margin: 0 !important;
}

.ab-nl-form .newsletter-form__field-wrapper,
.ab-nl-form .newsletter-form__field-wrapper .field {
  max-width: none;
  width: 100%;
}

/* Mobile: stack vertically */
@media screen and (max-width: 749px) {
  .ab-nl__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .ab-nl-form {
    width: 100%;
  }
}

/* ── CTA Block ────────────────────────────────────────────── */
.ab-cta {
  margin: 48px 0;
  padding: 40px;
  background: rgba(var(--color-foreground, 18, 18, 18), 0.04);
  border-radius: 8px;
  text-align: center;
}

.ab-cta__title {
  margin: 0 0 12px;
  font-size: 2.2rem;
}

.ab-cta__description {
  margin: 0 0 24px;
  font-size: 1.5rem;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
}

.ab-cta__btn {
  display: inline-flex;
}

/* ── FAQ Block ────────────────────────────────────────────── */
.ab-faq-list {
  margin-top: 16px;
}

.ab-faq-item {
  border-top: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  padding: 16px 0;
}

.ab-faq-item:last-child {
  border-bottom: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
}

.ab-faq-question {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.ab-faq-answer {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(var(--color-foreground, 18, 18, 18), 0.75);
}

/* ── Shopify Product Widget ───────────────────────────────── */
.ab-product-widget {
  margin: 48px 0;
  padding: 32px;
  border: 1px solid rgba(var(--color-foreground, 18, 18, 18), 0.08);
  border-radius: 8px;
}
.ab-product-widget__media {
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}
.ab-product-widget__media .ab-product-widget__img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 4px;
}
.ab-product-widget .product__info-container {
  max-width: 100%;
}
.ab-product-widget .product__info-wrapper {
  max-width: 100%;
}
.ab-product-widget .product-form__input--pill legend.form__label {
  text-align: left;
}
