/* ===== Blog article — editorial layout (scoped to .bd-*) ===== */
.bd-main { background: #faf8f2; }
.bd-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .bd-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .bd-wrap { padding: 0 48px; } }

/* reading progress */
.bd-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, #bc8c3f, #e8bd55); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---- cover (image only) ---- */
.bd-hero { position: relative; height: clamp(300px, 30vw, 420px); overflow: hidden; background: #1f1610; }
.bd-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.bd-hero::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(180deg, rgba(20,15,11,.45), rgba(20,15,11,0)); pointer-events: none; }

/* ---- title block (below the cover) ---- */
.bd-head { padding: clamp(26px,3.4vw,40px) 0 0; background: #faf8f2; }
.bd-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; color: #9a8a73; }
.bd-crumbs a { color: #7a6a52; } .bd-crumbs a:hover { color: #bc8c3f; }
.bd-crumbs span[aria-hidden] { color: #d2bb8c; }
.bd-chip { display: inline-block; margin: 0 0 14px; padding: 7px 15px; border-radius: 999px; background: #bc8c3f; color: #fff; font-size: 11px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1 !important; }
.bd-head h1 { max-width: 30ch; margin: 0 0 16px; color: #2a1c13 !important; }
.bd-byline { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 18px 0 0; border-top: 1px solid #e6dcc7; }
.bd-byline li { display: inline-flex; align-items: center; gap: 9px; font-size: 13px !important; color: #6f675c; }
.bd-byline i { color: #bc8c3f; font-size: 12px; }

/* ---- layout ---- */
.bd-body { padding: clamp(24px,3vw,36px) 0 clamp(44px,6vw,80px); }
.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px,5vw,80px); align-items: start; }
.bd-article { min-width: 0; max-width: 760px; }

/* share row */
.bd-share { display: flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 0 0 22px; border-bottom: 1px solid #e6dcc7; }
.bd-share span { margin-right: 6px; font-size: 11px !important; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8a7767; }
.bd-share a, .bd-share button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dccaa0; background: #fff; color: #7a5a26; font-size: 14px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.bd-share a:hover, .bd-share button:hover { background: #bc8c3f; border-color: #bc8c3f; color: #fff; transform: translateY(-2px); }
.bd-share button.is-done { background: #4a3a2f; border-color: #4a3a2f; color: #fff; }

/* prose */
.bd-prose p { margin: 0 0 1.25em; font-size: 16px !important; line-height: 1.85 !important; color: #4f443a; }
.bd-prose p.bd-lead { font-size: 18px !important; line-height: 1.75 !important; color: #2f2620; }
.bd-prose :is(h2, h3) { margin: 2em 0 .6em; padding-top: 1.3em; border-top: 1px solid #e6dcc7; color: #2a1c13 !important; }
.bd-prose :is(h2, h3) small { display: block; margin: 0 0 8px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 17px !important; letter-spacing: .06em; color: #bc8c3f; }
.bd-prose a { color: #8a5a22; border-bottom: 1px solid rgba(188,140,63,.5); }

/* pull quote */
.bd-quote { position: relative; margin: 2.2em 0; padding: 30px 34px 30px 40px; border: 0; border-left: 3px solid #bc8c3f; border-radius: 0 16px 16px 0; background: linear-gradient(90deg, #f6ecd4, rgba(246,236,212,0)); }
.bd-quote::before { content: '\201C'; position: absolute; top: -4px; left: 12px; font-family: 'Playfair Display', Georgia, serif; font-size: 72px; line-height: 1; color: rgba(188,140,63,.45); }
.bd-quote p { margin: 0 !important; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 20px !important; line-height: 1.55 !important; color: #3a2d22 !important; }

/* stats */
.bd-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 2em 0; padding: 0; border-top: 1px solid #d9c8a3; border-bottom: 1px solid #d9c8a3; }
.bd-stats li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px; text-align: center; }
.bd-stats li + li { border-left: 1px solid #e6d9b9; }
.bd-stats strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: clamp(28px,3vw,38px) !important; line-height: 1 !important; color: #bc8c3f; }
.bd-stats span { font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; color: #7a7267; }

/* gallery */
.bd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0 2.2em; }
.bd-gallery figure { margin: 0; }
.bd-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 24px 40px -30px rgba(42,31,23,.6); }
.bd-gallery figcaption { margin-top: 10px; font-size: 13px !important; font-style: italic; color: #8a7767; }

/* tips */
.bd-tips { list-style: none; display: grid; gap: 12px; margin: 0 0 2em; padding: 0; }
.bd-tips li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid #ece2cb; border-radius: 14px; font-size: 16px !important; line-height: 1.7 !important; color: #4f443a; }
.bd-tips i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: #f4ead2; color: #a8782f; font-size: 11px; }

/* tags + author */
.bd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 2.4em 0 0; }
.bd-tags a { padding: 8px 16px; border-radius: 999px; border: 1px solid #dccaa0; background: #fff; font-size: 12.5px !important; color: #7a5a26; transition: background .25s, color .25s, border-color .25s; }
.bd-tags a:hover { background: #bc8c3f; border-color: #bc8c3f; color: #fff; }
.bd-author { display: flex; align-items: center; gap: 20px; margin-top: 2.2em; padding: 24px 26px; background: #f3efe2; border-radius: 18px; }
.bd-author-av { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #312721; color: #e8bd55; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; }
.bd-author > div { flex: 1; min-width: 0; }
.bd-author strong { display: block; margin-bottom: 3px; font-size: 15px; color: #2a1c13; }
.bd-author p { margin: 0 !important; font-size: 14px !important; line-height: 1.65 !important; color: #6f675c !important; }
.bd-author-link { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #4a3a2f; border-bottom: 1px solid #bc8c3f; padding-bottom: 4px; }

/* ---- aside ---- */
.bd-aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.bd-aside-label { margin: 0 0 14px !important; font-size: 11px !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #bc8c3f !important; }
.bd-toc { padding: 24px 24px 20px; background: #fff; border: 1px solid #ece2cb; border-radius: 18px; }
.bd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.bd-toc li { counter-increment: toc; }
.bd-toc li + li { border-top: 1px solid #f0e8d6; }
.bd-toc a { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; font-size: 14px !important; line-height: 1.4 !important; color: #5f5247; transition: color .2s, padding .2s; }
.bd-toc a::before { content: counter(toc, decimal-leading-zero); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 13px; color: #bc8c3f; }
.bd-toc a:hover, .bd-toc a.is-on { color: #2a1c13; padding-left: 4px; }
.bd-toc a.is-on { font-weight: 600; }
.bd-plan { padding: 24px; border-radius: 18px; background: #312721; color: #f6f1e8; }
.bd-plan .bd-aside-label { color: #e8bd55 !important; }
.bd-plan p:not(.bd-aside-label) { margin: 0 0 18px; font-size: 14px !important; line-height: 1.7 !important; color: rgba(246,241,232,.78); }
.bd-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: #e8bd55; color: #1b1410; font-size: 11.5px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, transform .25s; }
.bd-btn:hover { background: #f3d078; transform: translateY(-2px); }
.bd-btn--line { margin-top: 10px; background: transparent; border: 1px solid rgba(232,189,85,.55); color: #e8bd55; }
.bd-btn--line:hover { background: rgba(232,189,85,.14); }

/* ---- related ---- */
.bd-related { padding: clamp(40px,5.5vw,72px) 0 clamp(48px,6vw,84px); background: #f3efe2; border-top: 1px solid #e6dfcc; }
.bd-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px,3vw,34px); }
.bd-related-head .section-label { margin: 0 0 4px; color: #bc8c3f; }
.bd-related-head h2 { margin: 0; color: #2a1c13 !important; }
.bd-all { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 11.5px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #4a3a2f; border-bottom: 1px solid #bc8c3f; padding-bottom: 5px; }
.bd-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px,2.2vw,30px); }
.bd-card { overflow: hidden; background: #fff; border: 1px solid #ebe3d3; border-radius: 18px; box-shadow: 0 18px 30px -26px rgba(49,39,33,.5); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.bd-card:hover { transform: translateY(-5px); box-shadow: 0 30px 44px -28px rgba(49,39,33,.55); }
.bd-card-img { display: block; aspect-ratio: 3/2; overflow: hidden; }
.bd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.bd-card:hover .bd-card-img img { transform: scale(1.06); }
.bd-card-body { padding: 20px 22px 24px; }
.bd-card-meta { margin: 0 0 10px; font-size: 11px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a57131; }
.bd-card-meta span { opacity: .55; }
.bd-card h3 { margin: 0; color: #2a1c13 !important; }
.bd-card h3 a { background: linear-gradient(#bc8c3f,#bc8c3f) 0 100%/0 1px no-repeat; transition: background-size .45s; }
.bd-card h3 a:hover { background-size: 100% 1px; }

/* ---- responsive ---- */
@media (max-width: 1023px) {
  .bd-layout { grid-template-columns: 1fr; }
  .bd-aside { position: static; grid-template-columns: 1fr 1fr; }
  .bd-article { max-width: none; }
}
@media (max-width: 767px) {
  .bd-aside { grid-template-columns: 1fr; }
  .bd-prose p { font-size: 16px !important; } .bd-prose p.bd-lead { font-size: 18px !important; }
  .bd-quote { padding: 24px 22px 24px 28px; } .bd-quote p { font-size: 19px !important; }
  .bd-gallery { grid-template-columns: 1fr; }
  .bd-author { flex-wrap: wrap; } .bd-author-link { margin-left: 78px; }
  .bd-related-grid { grid-template-columns: 1fr; }
  .bd-related-head { flex-direction: column; align-items: flex-start; }
  .bd-stats span { font-size: 10px !important; letter-spacing: .1em; }
}

/* key takeaways */
.bd-takeaways { margin: 1.8em 0 .4em; padding: 22px 26px; background: #fff; border: 1px solid #ece2cb; border-left: 3px solid #bc8c3f; border-radius: 0 16px 16px 0; }
.bd-takeaways .bd-aside-label { margin-bottom: 12px !important; }
.bd-takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bd-takeaways li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px !important; line-height: 1.6 !important; color: #4f443a; }
.bd-takeaways i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #f4ead2; color: #a8782f; font-size: 9px; }
@media (max-width: 767px) { .bd-prose p { font-size: 15.5px !important; } .bd-prose p.bd-lead { font-size: 17px !important; } }

/* justified reading text */
.bd-prose p, .bd-takeaways li, .bd-tips li > span, .bd-author p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.bd-prose p.bd-lead { text-align: justify; }
.bd-quote p { text-align: left; hyphens: none; }
.bd-quote p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Bigger cover photo, a full-width title and a tighter article/sidebar grid (no dead space beside the text) */
.bd-hero { height: clamp(380px, 44vw, 600px); }
.bd-hero > img { object-position: 50% 45%; }
.bd-wrap { max-width: 1400px; }
@media (min-width: 1024px) { .bd-wrap { padding: 0 40px; } }
html body .bd-head h1:not(#_):not(#_) { max-width: none; }
.bd-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
@media (max-width: 1100px) { .bd-layout { gap: 36px; } }
.bd-article { max-width: none; }

/* Stories written in the admin editor: lists, sub-headings, tables and pictures */
.bd-prose ul, .bd-prose ol { margin: 0 0 1.4em; padding-left: 1.4em; color: #4f443a; }
.bd-prose ul { list-style: disc; } .bd-prose ol { list-style: decimal; }
.bd-prose li { margin: 0 0 .55em; font-size: 16px !important; line-height: 1.8 !important; }
.bd-prose li::marker { color: #bc8c3f; }
.bd-prose h3 { margin: 1.6em 0 .5em; padding-top: 0; border-top: 0; }
.bd-prose h4 { margin: 1.4em 0 .4em; color: #2a1c13; font-family: 'Playfair Display', Georgia, serif; }
.bd-prose strong, .bd-prose b { color: #2a1c13; font-weight: 600; }
.bd-prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 16px; }
.bd-prose table { display: block; width: 100%; max-width: 100%; margin: 1.6em 0; overflow-x: auto; border-collapse: collapse; font-size: 15px; -webkit-overflow-scrolling: touch; }
.bd-prose th, .bd-prose td { min-width: 8rem; padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #e6dcc7; line-height: 1.6; color: #4f443a; }
.bd-prose th { background: #f3efe2; color: #2a1c13; font-weight: 600; white-space: nowrap; }
.bd-prose td p, .bd-prose th p { margin: 0; text-align: left; }
.bd-prose :is(td, th) { font-size: 15px !important; }
