/*
 * Beth Ann Averill — post layout
 * Loaded only on posts built with the baa-* block layout.
 * Brand: coral #fd7568 / #e4695e, plum #3d2346, mauve #a8879d, yellow #f9c62b.
 */

/* ---------- Page chrome ---------- */
html { scroll-behavior: smooth; }
body.baa-layout .content-area { margin-top: 28px !important; }
body.baa-layout .entry-taxonomies { display: none !important; }
body.baa-layout .kadence-breadcrumbs { font-size: 14px; margin-bottom: 8px; }
body.baa-layout h1.entry-title { margin-bottom: 14px; }
body.baa-layout .entry-content h2[id] { scroll-margin-top: 170px; }
body.baa-layout #comments, body.baa-layout .baa-supplies { scroll-margin-top: 150px; }
body.baa-layout .entry-content img { -webkit-user-drag: none; }

/* Comments sit above the theme's "Similar Posts" carousel */
body.baa-layout .content-wrap { display: flex; flex-direction: column; }
body.baa-layout .content-wrap > * { order: 0; }
body.baa-layout .content-wrap > .entry-related { order: 2; }
body.baa-layout .content-wrap > #comments { align-self: stretch; width: 100%; box-sizing: border-box; margin-left: 0; margin-right: 0; }
body.baa-layout #wpdcom .wpd_main_comm_form textarea { min-height: 96px; }

/* Text-only steps and steps with more than one photo */
.entry-content .baa-step-solo { margin: 0 0 30px; }
.baa-step-solo h3 { margin: 0 0 8px !important; }
.baa-step-solo p { margin: 0 0 8px !important; }
.baa-step-photo .wp-block-image + .wp-block-image { margin-top: 10px !important; }

/* ---------- Disclosure + share buttons on one line ---------- */
.baa-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid #eee; }
.baa-meta .dpsp-share-text { font-size: 13px !important; font-weight: 400 !important; font-style: italic; color: #888 !important; margin: 0 !important; line-height: 1.4 !important; flex: 1 1 220px; }
.baa-meta .dpsp-content-wrapper { margin: 0 !important; flex: 0 0 330px; max-width: 330px; }

/* ---------- Intro: photo beside the opening paragraphs ---------- */
.entry-content .baa-intro { gap: 28px; margin: 0 0 20px; align-items: center; }
.baa-intro .wp-block-image { margin: 0 !important; }
.baa-intro .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.baa-intro .wp-block-column > p { margin: 0 0 12px; }
.baa-intro .wp-block-column > p:last-child { margin-bottom: 0; }

/* ---------- "Jump to" links ---------- */
.entry-content p.baa-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 28px; line-height: 1.2; }
.baa-jump strong { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.baa-jump a { font-size: 14px; font-weight: 600; line-height: 1.2; color: #333 !important; text-decoration: none !important; background: #f4f4f4 !important; background-image: none !important; border-radius: 999px; padding: 7px 14px; box-shadow: none !important; }
.baa-jump a:hover { background: #ebebeb !important; }

/* ---------- Supplies card ---------- */
.entry-content .baa-supplies { box-sizing: border-box; margin: 0 0 28px; padding: 12px 18px; background: #fff; border: 1px solid #ececec; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.baa-supplies > *, .baa-supplies > .wp-block-group__inner-container > * { margin-top: 0; }
.entry-content .baa-supply-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.baa-supply-list li { list-style: none !important; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 !important; padding: 11px 0 !important; border-bottom: 1px solid #f1f1f1; line-height: 1.3; font-size: 16px; color: #333; }
.baa-supply-list li::before, .baa-supply-list li::marker { content: none !important; }
.baa-supply-list li a { flex: none; display: inline-block; font-size: 12px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1 !important; padding: 7px 12px !important; border: 1px solid #dcdcdc; border-radius: 999px; color: #222 !important; background: #fff !important; background-image: none !important; box-shadow: none !important; text-decoration: none !important; }
.baa-supply-list li a:hover { background: #f6f6f6 !important; }
.baa-supply-list li a::after, .baa-done-actions a::after { content: none !important; display: none !important; }

/* "Love this craft?" box (inside the supplies card) */
.baa-ltc { background: #a8879d; padding: 10px; border-radius: 6px; margin: 6px 0 10px; }
.baa-ltc-inner { background: #fff; display: flex; align-items: center; gap: 24px; padding: 18px 24px; }
.baa-ltc-img { flex: 0 0 150px; width: 150px; aspect-ratio: 1/1; border: 2px solid #111 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden; background: #f6f6f6 !important; cursor: pointer; box-shadow: none !important; }
.baa-ltc-img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.baa-ltc-copy { flex: 1; min-width: 0; text-align: center; }
.baa-ltc-title { font-size: 24px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3d2346; line-height: 1.15; margin: 0 0 8px; }
.baa-ltc-text { font-size: 16px !important; color: #3d2346 !important; line-height: 1.4 !important; margin: 0 0 14px !important; }
.baa-ltc-buy { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.baa-ltc-price { font-size: 18px; font-weight: 800; color: #3d2346; }
.baa-ltc-btn { background: #f9c62b !important; color: #1d1d1d !important; border: 0 !important; border-radius: 4px !important; padding: 12px 24px !important; margin: 0 !important; min-height: 0 !important; font-family: inherit !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: .1em !important; text-transform: uppercase !important; line-height: 1 !important; box-shadow: none !important; cursor: pointer; }
.baa-ltc-btn:hover { background: #f0b90f !important; }
.baa-ltc-btn.is-done { background: #fff !important; color: #333 !important; box-shadow: inset 0 0 0 1px #ccc !important; }

/* ---------- Steps: photo beside instructions ---------- */
.entry-content .baa-step { gap: 24px; margin: 0 0 30px; align-items: center; }
.baa-step .wp-block-image { margin: 0 !important; }
.baa-step .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.baa-step-text > *:first-child { margin-top: 0 !important; }
.baa-step-text > *:last-child { margin-bottom: 0 !important; }
.baa-step-text h3 { margin: 0 0 8px !important; }
.baa-step-text p, .baa-step-text ul, .baa-step-text ol { margin: 0 0 8px !important; }

/* ---------- Product block ---------- */
.baa-product { box-sizing: border-box; display: flex; gap: 28px; align-items: center; max-width: 700px; margin: 28px auto; padding: 22px; background: #fff; border: 1px solid #ececec; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.06); text-align: left; color: #222; }
.baa-product * { box-sizing: border-box; }
.baa-product-gallery { flex: 0 0 290px; max-width: 290px; }
.baa-product-main { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: #f7f7f7; }
.baa-product-main img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; margin: 0; }
.baa-product-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px !important; height: 30px !important; border-radius: 50% !important; border: 0 !important; background: rgba(255,255,255,.92) !important; box-shadow: 0 1px 4px rgba(0,0,0,.25) !important; color: #111 !important; font-size: 18px !important; line-height: 1 !important; padding: 0 !important; margin: 0 !important; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 0 !important; min-width: 0 !important; opacity: .9; }
.baa-product-arrow:hover { opacity: 1; }
.baa-product-prev { left: 8px; } .baa-product-next { right: 8px; }
.baa-product-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.baa-product-thumbs::-webkit-scrollbar { display: none; }
.baa-product-thumbs button { flex: 0 0 50px; height: 50px; padding: 0 !important; margin: 0 !important; border: 2px solid transparent !important; border-radius: 8px !important; background: #f7f7f7 !important; box-shadow: none !important; cursor: pointer; overflow: hidden; opacity: .65; transition: opacity .15s; min-height: 0 !important; min-width: 0 !important; }
.baa-product-thumbs button:hover { opacity: 1; }
.baa-product-thumbs button.is-active { border-color: #222 !important; opacity: 1; }
.baa-product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.baa-product-info { flex: 1; min-width: 0; }
.baa-product-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #888; margin: 0 0 6px; line-height: 1.2; }
.baa-product-title { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; color: #222; }
.baa-product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.baa-product-tags span { font-size: 12px; font-weight: 600; line-height: 1.2; color: #555; background: #f3f3f3; border-radius: 999px; padding: 5px 10px; }
.baa-product-price { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: #222; line-height: 1.2; }
.baa-product-price s { color: #999; font-weight: 400; margin-right: 8px; font-size: 17px; }
.baa-product-btn { display: block; width: 100%; border: 1px solid transparent !important; border-radius: 8px !important; padding: 14px !important; margin: 0 !important; font-family: inherit !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: normal !important; text-transform: none !important; line-height: 1.2 !important; box-shadow: none !important; cursor: pointer; background: #fd7568 !important; color: #000 !important; }
.baa-product-btn:hover { background: #e4695e !important; }
.baa-product-btn.is-done { background: #fff !important; color: #333 !important; border-color: #ddd !important; }
.baa-product-btn.is-done:hover { background: #f6f6f6 !important; }
.baa-product-bundle { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #666; }
.baa-product-bundle[hidden] { display: none; }
.baa-product-bundle button { display: inline; background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; font-family: inherit !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: normal !important; text-transform: none !important; color: #222 !important; text-decoration: underline; cursor: pointer; min-height: 0 !important; min-width: 0 !important; line-height: inherit !important; }
.baa-buybutton-node { display: none !important; }

/* ---------- "All done!" card ---------- */
.entry-content .baa-done { margin: 34px 0 40px; padding: 28px 24px 26px; background: #fff7f5; border: 1px solid #fbe3df; border-radius: 18px; text-align: center; }
.baa-done > *, .baa-done > .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 0; }
.entry-content .baa-done-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e4695e; margin: 0 0 6px; }
.entry-content .baa-done-line { font-size: 22px !important; font-weight: 700; line-height: 1.3 !important; color: #222; margin: 0 !important; }
.baa-done .wp-block-image { margin: 18px auto 16px !important; max-width: 300px; }
.baa-done .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.entry-content .baa-done-sub { font-size: 16px; color: #555; margin: 0 auto 18px !important; max-width: 440px; line-height: 1.5; }
.baa-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.baa-done-actions a { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important; background-image: none !important; border-radius: 999px; padding: 11px 18px; box-shadow: none !important; transition: background .15s; }
.baa-done-actions a.baa-pin { background: #fd7568 !important; color: #000 !important; }
.baa-done-actions a.baa-pin:hover { background: #e4695e !important; }
.baa-done-actions a.baa-alt { background: #fff !important; color: #222 !important; border: 1px solid #f1cfc9; }
.baa-done-actions a.baa-alt:hover { background: #fff1ef !important; }
.baa-done-actions svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* Reader photos (approved comments with a photo) */
.baa-readers { margin: 22px 0 20px; padding-top: 20px; border-top: 1px dashed #f1cfc9; }
.baa-readers-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #888; margin: 0 0 12px; }
.baa-readers-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.baa-readers-strip { display: flex; gap: 10px; justify-content: center; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 4px; }
.baa-readers-strip::-webkit-scrollbar { display: none; }
.baa-readers.is-scroll .baa-readers-strip { justify-content: flex-start; }
.baa-readers-strip a { position: relative; display: block; flex: 0 0 calc(25% - 8px); scroll-snap-align: start; text-decoration: none !important; background-image: none !important; box-shadow: none !important; color: #777 !important; }
.baa-readers-strip img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; transition: transform .15s; }
.baa-readers-strip a:hover img { transform: scale(1.03); }
.baa-readers-strip .baa-by { display: block; font-size: 12px; margin-top: 5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.baa-rd-arrow { position: absolute; top: calc(50% - 30px); width: 34px; height: 34px; border-radius: 50%; border: 1px solid #f1cfc9 !important; background: #fff !important; color: #222 !important; font-size: 20px; line-height: 1; padding: 0 !important; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12) !important; z-index: 2; }
.baa-rd-arrow:hover { background: #fff1ef !important; }
.baa-rd-prev { left: -17px; } .baa-rd-next { right: -17px; }
.baa-readers.can-prev .baa-rd-prev, .baa-readers.can-next .baa-rd-next { display: flex; }

/* ---------- Compact "more crafts" grid (Spectra post grid) ---------- */
.entry-content .baa-related.uagb-post-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; margin: 18px 0 34px !important; }
.baa-related article.uagb-post__inner-wrap { position: relative; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 1px solid #f0e6e4; border-radius: 14px !important; overflow: hidden; box-shadow: none !important; transition: transform .15s, box-shadow .15s; text-align: left !important; }
.baa-related article.uagb-post__inner-wrap:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08) !important; }
.baa-related .uagb-post__image { margin: 0 !important; padding: 0 !important; }
.baa-related .uagb-post__image img { display: block; width: 100% !important; aspect-ratio: 1/1; object-fit: cover; border-radius: 0 !important; }
.baa-related .uagb-post__title { font-size: 15px !important; line-height: 1.3 !important; font-weight: 700 !important; margin: 0 !important; padding: 10px 12px 12px !important; }
.baa-related .uagb-post__title a { color: #222 !important; text-decoration: none !important; background-image: none !important; box-shadow: none !important; }
.baa-related .uagb-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.baa-related article:hover .uagb-post__title a { color: #e4695e !important; }
.baa-related .uagb-post-grid-byline, .baa-related .uagb-post__excerpt, .baa-related .uagb-post__cta, .baa-related .uagb-post-pagination-wrap { display: none !important; }

/* ---------- Phones / tablets ---------- */
@media (max-width: 781px) {
	.baa-intro .wp-block-image { max-width: 360px; margin: 0 auto !important; }
	.baa-step .baa-step-photo { order: 2; }
	.baa-step .wp-block-image img { max-width: 420px; margin: 0 auto; }
	.entry-content .baa-intro, .entry-content .baa-step { gap: 12px; }
}
@media (max-width: 640px) {
	body.baa-layout .content-area { margin-top: 16px !important; }
	.baa-meta .dpsp-content-wrapper { flex: 1 1 100%; max-width: none; }
	.entry-content .baa-supply-list { grid-template-columns: 1fr; }
	.entry-content .baa-supplies { padding: 6px 14px 10px; }
	.baa-ltc-inner { flex-direction: column; gap: 14px; padding: 16px; }
	.baa-ltc-img { flex: none; width: 170px; }
	.baa-ltc-title { font-size: 21px; }
	.baa-readers-strip a { flex-basis: calc(42% - 6px); }
	.baa-rd-arrow { display: none !important; }
	.entry-content .baa-done { padding: 22px 16px; }
	.entry-content .baa-done-line { font-size: 19px !important; }
	.baa-done-actions a { flex: 1 1 100%; justify-content: center; }
	.entry-content .baa-related.uagb-post-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
	.baa-related .uagb-post__title { font-size: 14px !important; padding: 8px 10px 10px !important; }
}
@media (max-width: 600px) {
	.baa-product { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
	.baa-product-gallery { flex: none; max-width: none; }
	.baa-product-title { font-size: 20px; }
}

/* ---------- [baa_related] — full tag grid ---------- */
.baa-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 14px; }
.baa-more-card { display: block; background: #fff; border: 1px solid #f0e6e4; border-radius: 14px; overflow: hidden; text-decoration: none !important; background-image: none !important; box-shadow: none !important; transition: transform .15s, box-shadow .15s; }
.baa-more-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08) !important; }
.baa-more-card img, .baa-more-noimg { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; margin: 0; background: #f6f1ef; }
.baa-more-title { display: block; padding: 10px 12px 12px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #222; }
.baa-more-card:hover .baa-more-title { color: #e4695e; }
.entry-content .baa-more-all { margin: 4px 0 34px; text-align: center; }
.baa-more-all a { display: inline-block; max-width: 100%; padding: 14px 30px; border-radius: 50px; background: #fbcc2f !important; background-image: none !important; color: #1e1f24 !important; font-size: 17px; font-weight: 700; line-height: 1.25; text-decoration: none !important; box-shadow: none; transition: background .15s; }
.baa-more-all a:hover, .baa-more-all a:focus { background: #f0bd16 !important; background-image: none !important; color: #1e1f24 !important; }
.baa-more-all a::after { display: none !important; }
@media (max-width: 640px) {
	.baa-more { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.baa-more-title { font-size: 14px; padding: 8px 10px 10px; }
}
