/* Rich category descriptions (masterCategory.categoryDesc) – classes start with ba-cd- */
.ba-cd { max-width: 960px; margin: 0 auto; text-align: left; color: #2B1F26; font-size: 16px; line-height: 1.7; background: #FFFDFB; border-radius: 14px; padding: 34px 38px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
/* override the dark-section text colours of .common_repeat_ct_sec */
.common_repeat_ct_sec .ba-cd p, .common_repeat_ct_sec .ba-cd li, .common_repeat_ct_sec .ba-cd td, .common_repeat_ct_sec .ba-cd dd, .common_repeat_ct_sec .ba-cd summary, .common_repeat_ct_sec .ba-cd ul li span { color: #3E3138; font-size: 16px; font-weight: 400; }
.common_repeat_ct_sec .ba-cd b, .common_repeat_ct_sec .ba-cd strong { color: #2B1F26; font-weight: 600; }
.common_repeat_ct_sec .ba-cd h3 { display: block; color: var(--PColor, #513A47); font-size: 24px; font-weight: 500; margin: 36px 0 12px; }
.common_repeat_ct_sec .ba-cd .ba-cd-glance h3 { margin-top: 4px; font-size: 19px; }
.common_repeat_ct_sec .ba-cd a { font-size: inherit; color: var(--PColor, #513A47); }
.common_repeat_ct_sec .ba-cd ul.ba-cd-list { padding-left: 20px; }
.ba-cd p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }
.ba-cd h3 { font-size: 24px; font-weight: 500; color: var(--PColor, #513A47); margin: 36px 0 12px; line-height: 1.25; scroll-margin-top: 90px; }
.ba-cd a { color: var(--PColor, #513A47); text-decoration: underline; text-decoration-color: var(--SColor, #ff71a8); text-underline-offset: 3px; }
.ba-cd a:hover { color: var(--SColor, #ff71a8); }
.ba-cd-lead { font-size: 18px !important; }

/* at a glance */
.ba-cd-glance { background: #fff; border: 1px solid #EAD8D2; border-radius: 10px; padding: 20px 22px; margin: 22px 0; position: relative; overflow: hidden; }
.ba-cd-glance::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--PColor, #513A47) 0 10px, var(--SColor, #ff71a8) 10px 16px); }
.ba-cd-glance h3 { margin: 4px 0 12px; font-size: 19px; }
.ba-cd-glance dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.ba-cd-glance dt { font-size: 13px; text-transform: none; color: #7a6f75; font-weight: 400; }
.ba-cd-glance dd { margin: 2px 0 0; font-weight: 500; line-height: 1.45; }

/* table of contents */
.ba-cd-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ba-cd-toc a { padding: 6px 14px; border: 1px solid #EAD8D2; border-radius: 999px; background: #fff; font-size: 14px; text-decoration: none !important; }
.ba-cd-toc a:hover { border-color: var(--PColor, #513A47); }

/* steps */
.ba-cd-steps { counter-reset: s; list-style: none; margin: 0 0 16px; padding: 0; }
.ba-cd-steps li { counter-increment: s; position: relative; padding: 0 0 14px 48px; }
.ba-cd-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--PColor, #513A47); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.ba-cd-steps li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: #EAD8D2; }
.ba-cd-steps li:last-child::after { display: none; }

/* tables */
.ba-cd-tablewrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid #EAD8D2; border-radius: 10px; background: #fff; }
.ba-cd-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.ba-cd-table th, .ba-cd-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #F1E6E2; }
.ba-cd-table thead th { background: #FCE7E1; color: var(--PColor, #513A47); font-weight: 600; }
.ba-cd-table tbody th { font-weight: 600; color: var(--PColor, #513A47); background: #FFF8F5; }
.ba-cd-table tr:last-child td, .ba-cd-table tr:last-child th { border-bottom: 0; }
.ba-cd-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .1); }

/* lists */
.ba-cd-list { margin: 0 0 16px; padding-left: 20px; }
.ba-cd-list li { list-style: disc; margin-bottom: 6px; }
.ba-cd-note { background: #FFF8F5; border-left: 4px solid var(--SColor, #ff71a8); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 15px !important; }

/* faq */
.ba-cd-faq details { background: #fff; border: 1px solid #EAD8D2; border-radius: 10px; margin-bottom: 10px; }
.ba-cd-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 500; position: relative; }
.ba-cd-faq summary::-webkit-details-marker { display: none; }
.ba-cd-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--SColor, #ff71a8); }
.ba-cd-faq details[open] summary::after { content: "\2212"; }
.ba-cd-faq details > div { padding: 0 18px 4px; }

/* explore + help */
.ba-cd-explore p { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-cd-explore a { padding: 8px 16px; border-radius: 999px; background: var(--PColor, #513A47); color: #fff !important; text-decoration: none !important; font-size: 14.5px; }
.ba-cd-explore a:hover { background: var(--SColor, #ff71a8); }
.ba-cd-help { margin: 24px 0 0; padding: 18px 20px; border-radius: 10px; background: #FCE7E1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ba-cd-help p { margin: 0; }
.ba-cd-help a { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: #1F8F4E; color: #fff !important; text-decoration: none !important; font-weight: 500; }

.ba-cd a:focus-visible, .ba-cd summary:focus-visible { outline: 3px solid var(--SColor, #ff71a8); outline-offset: 2px; }

@media (max-width: 767px) {
    .ba-cd { padding: 22px 18px; border-radius: 10px; }
    .ba-cd-glance dl { grid-template-columns: 1fr 1fr; }
    .ba-cd h3 { font-size: 21px; }
}
@media (max-width: 420px) {
    .ba-cd-glance dl { grid-template-columns: 1fr; }
}
