/* ==========================================================================
   By Jillian Rose — Single Post
   Only loaded on single blog posts (is_singular('post')), never
   site-wide. Reuses existing design-system tokens throughout.
   ========================================================================== */

.single-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border: 1px dashed var(--color-border-interactive);
  border-radius: var(--radius);
}
.single-photo-placeholder .icon { width: 32px; height: 32px; color: var(--color-text-secondary); }

/* Real signature graphics (attachments #1465/1466/1467) replacing the
   3 sidebar card headings ("About the Author", "Popular Posts", "Let's
   stay in touch.") — the previous Great Vibes text approach is gone
   entirely, along with the .single-script/.single-script-center/
   .single-script-sidebar classes that served it (no other element uses
   them; "Hey, I'm Jillian" uses .eyebrow, the sign-off is already an
   image). Sized by a shared target HEIGHT rather than a shared width,
   since the three files have different real cropped aspect ratios —
   one width would have made them render at inconsistent heights.
   Height bumped once more, 46px -> 50px, per a further "just a tad
   larger" follow-up. Still a shared height (not a shared width), since
   the three files' real aspect ratios genuinely differ. Centered to
   match the cards' existing text-align:center. */
.single-sidebar-heading-img {
  display: block;
  height: 50px;
  width: auto;
  margin: 0 auto var(--space-1);
}
.single-sidebar-heading-touch { height: 50px; } /* aspect 4.506 -> ~225px wide */
.single-sidebar-heading-popular { height: 50px; } /* aspect 4.853 -> ~243px wide */

.single-author-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-decoration: none;
}
.single-author-link:hover { color: var(--color-text); }

/* ---- Breadcrumb ---- */
.single-breadcrumb {
  padding: var(--space-3) 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.single-breadcrumb a { color: var(--color-accent-dark); text-decoration: none; }
.single-breadcrumb a:hover { color: var(--color-text); }
.single-breadcrumb .sep { margin: 0 6px; color: var(--color-text-secondary); }

/* ---- Layout: main + sidebar ---- */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-6);
}

/* ---- Header / meta / intro ---- */
.single-post-title { margin: 0 0 var(--space-2); }
.single-post-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-3);
}
.single-post-meta .dot { margin: 0 8px; color: var(--color-border-interactive); }
.single-post-intro { font-size: 15px; color: var(--color-text-secondary); margin: 0 0 var(--space-4); }

/* ---- Featured image ---- */
.single-post-featured-img { margin-bottom: var(--space-4); }
.single-post-featured-img img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ---- Affiliate disclosure bubble (bjr_affiliate_disclosure_bubble() in
   functions.php) — rendered automatically on every single post, right
   after the featured image, before the body. Styled to match the
   Privacy Policy "Changes to This Privacy Policy" card: rounded
   corners, thin dusty-rose border, light mauve/blush fill (same
   rgba() derivations of --color-accent/#B68A93 used there, not new
   colors), leaf-outline accent on the left. No script-text graphic
   here, per explicit instruction — just the leaf, border, and
   background. Sits inside .single-post-main (the article column, not
   the full page width including sidebar), same as the header/featured
   image above it. ---- */
.bjr-affiliate-bubble {
  position: relative;
  border: 1px solid rgba(182,138,147,.45);
  border-radius: 10px;
  background: rgba(182,138,147,.07);
  padding: var(--space-2) var(--space-3) var(--space-2) 130px;
  margin: 0 0 var(--space-4);
}
/* Same leaf graphic/technique as the Privacy Policy card (attachment
   #1489): height:100% of the bubble's own height, width:auto so its
   real aspect ratio sets the width — self-scales to whatever height
   this shorter bubble ends up being, rather than a fixed size tuned for
   a taller box. */
.bjr-affiliate-bubble-leaf {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
}
.bjr-affiliate-bubble-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}
.bjr-affiliate-bubble-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}
@media (max-width: 680px) {
  .bjr-affiliate-bubble { padding-left: 90px; }
  .bjr-affiliate-bubble-leaf { height: auto; width: 60px; }
}

/* ---- Body + sticky share column ---- */
.single-post-body-wrap {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: 0 var(--space-3);
}
.single-share-icons {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 44px;
  flex-shrink: 0;
}
.single-share-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 6px;
}
.single-share-icons a,
.single-share-icons .single-share-copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0; /* .single-share-copy is a real <button>, which the site-wide
    .btn/button base rule gives padding:13px 25px — at this fixed 36px
    box (box-sizing:border-box), that padding alone exceeds the box
    width and collapses the content area to nothing, which is why the
    icon rendered as an empty box. Explicit 0 here defeats that. */
  gap: 0; /* same global rule also sets gap:10px, irrelevant with one
    visible child but zeroed for cleanliness */
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.single-share-icons a:hover,
.single-share-icons .single-share-copy:hover {
  color: var(--color-white);
  background: var(--color-button-fill);
  border-color: var(--color-button-fill);
}
.single-share-icons .icon { width: 16px; height: 16px; }
/* Pinterest's path is a full circular badge filling almost its entire
   24x24 viewBox edge-to-edge, unlike Facebook's slim "f" glyph (which has
   generous padding within its own 24x24 box) — at the same nominal 16px
   icon size, Pinterest reads visibly heavier/larger than its siblings.
   Sized down specifically to compensate and match their apparent weight. */
.single-share-pinterest .icon { width: 13px; height: 13px; }

/* Visible copy-link confirmation — aria-live so it's genuinely announced
   to screen readers too, not just a silent aria-label swap (which was
   the original bug: the click handler ran, but nothing was ever visible
   or actually announced). */
.single-share-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-text);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.single-share-tooltip.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.single-post-content { flex: 1; min-width: 0; }
.single-post-content h2, .single-post-content h3 { margin-top: var(--space-4); }
.single-post-content p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.2em;
  font-weight: 500;
  float: left;
  line-height: .85;
  padding: 4px 8px 0 0;
  color: var(--color-accent-dark);
}

/* Pull-quote: any <blockquote> the author adds in the editor renders this
   way automatically — real per-post content, not hardcoded text. Small
   heart icon via a fixed-color background-image data URI (matches
   --color-accent's hex) since ::before content can't pull a CSS var into
   an embedded SVG's fill. */
.single-post-content blockquote {
  text-align: center;
  background: var(--color-bg-secondary);
  border: none;
  padding: var(--space-4);
  border-radius: var(--radius);
  margin: var(--space-5) 0;
  font-family: var(--font-script);
  font-style: normal;
  font-size: 24px;
  color: var(--color-accent-dark);
}
.single-post-content blockquote::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto var(--space-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B68A93'%3E%3Cpath d='M12 21s-6.7-4.35-9.3-8.2C.8 10.1 1.4 6.6 4.4 5c2.3-1.2 5-.4 7.6 2.3C14.6 4.6 17.3 3.8 19.6 5c3 1.6 3.6 5.1 1.7 7.8C18.7 16.65 12 21 12 21z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.single-post-content blockquote p { margin: 0; }

/* Real signature image (attachment #1460), replacing the script-font
   text — same spot, sized by width on its real cropped ~3.54:1 aspect. */
.single-post-signoff {
  display: block;
  width: 190px;
  height: auto;
  margin: var(--space-4) 0 0;
}

/* ---- Author card (main column) — the site's single, consolidated
   "About the Author" block (the sidebar's own copy of this was removed;
   its real photo/heading graphic/bio text now live here instead). Real
   photo (attachment #1517), object-fit:cover + border-radius matching
   the rest of the site's photo treatment (.card-thumb, category photos,
   etc.), not the dashed-border placeholder used elsewhere on this
   template for content that doesn't exist yet. ---- */
.single-author-card {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-top: var(--space-5);
}
.single-author-photo {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  object-fit: cover;
  /* Real photo (attachment #1517) is a tall portrait with her head in
     the upper third — a centered crop cut off the top of her head.
     Shifted the focal point up (low Y%) so the square crop keeps the
     full head in frame with room to breathe above it, instead of
     cropping equally top/bottom. */
  object-position: center 15%;
  border-radius: var(--radius);
  display: block;
}
/* Same shared-height-not-shared-width heading-graphic treatment as the
   sidebar cards (.single-sidebar-heading-img) — reusing the real
   "About the Author" graphic (attachment #1465) that used to live in
   the now-removed sidebar box, just left-aligned here (not centered)
   to match this card's own left-aligned text column. */
.single-author-heading-img {
  display: block;
  height: 42px;
  width: auto;
  margin: 0 0 var(--space-1);
}
.single-author-text p { font-size: 14px; color: var(--color-text-secondary); margin: 0 0 var(--space-1); }

/* ---- Prev/next nav ---- */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5); /* was --space-4 — more room above, on top of the border below, so it reads as its own section rather than blending into the author card */
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.single-post-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.single-post-nav-next { justify-content: flex-end; text-align: right; }
.single-post-nav-thumb { width: 84px; height: 84px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; } /* was 56px — too small to carry visual weight next to the title */
.single-post-nav-text { display: flex; flex-direction: column; gap: 2px; }
.single-post-nav-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.single-post-nav-title { font-family: var(--font-serif); font-size: 15px; }
.single-post-nav-link:hover .single-post-nav-title { color: var(--color-accent-dark); }

/* ---- Sidebar ---- */
.single-post-sidebar { display: flex; flex-direction: column; gap: var(--space-4); }
.single-sidebar-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.single-sidebar-card p { font-size: 13.5px; color: var(--color-text-secondary); }

.single-popular-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.single-popular-list li { text-align: left; }
.single-popular-list a { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); }
.single-popular-thumb { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.single-popular-list a span { font-family: var(--font-serif); font-size: 14px; line-height: 1.3; }
.single-popular-list a:hover span { color: var(--color-accent-dark); }

.single-sidebar-form { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); text-align: left; }
.single-sidebar-form .field { margin-bottom: 0; }
.single-sidebar-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 4px;
}
.single-sidebar-form button { width: 100%; justify-content: center; }
.single-sidebar-fineprint { font-size: 11px; margin: var(--space-1) 0 var(--space-3); }
/* Real photo (attachment #1535), replacing the dashed-border placeholder
   this class used to size for — object-fit:cover + border-radius so it
   reads as a real photo, not a stretched/plain rectangle. Same box
   footprint (100% wide, 140px tall) as before. */
.single-sidebar-photo-wide {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-top: var(--space-1);
}

@media (max-width: 900px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-body-wrap { padding: 0; }
  .single-share-icons { position: static; flex-direction: row; width: auto; margin-bottom: var(--space-3); }
  .single-share-label { display: none; }
  .single-author-card { flex-direction: column; text-align: center; }
  .single-author-heading-img { margin: 0 auto var(--space-1); }
  .single-post-nav { grid-template-columns: 1fr; }
  .single-post-nav-next { justify-content: flex-start; text-align: left; }
}
