/*
 * kd-header 0.17.0/0.17.1: foldable topics + "Read more" on listing pages
 * (js/kd-collapse.js). EVERY hiding rule starts html.kdh-acc, which the script
 * adds only after it has built the buttons, so without the script all text
 * shows as before.
 *
 * 0.17.1 (Shannon 11/16: "brand the collapsable items you made to match the
 * homepage's"): values copied from kd-popular-types' homepage "Questions about
 * KD Machinery" (.kdx-card / .kdx-q / .kdx-a): rows split by 1px #e6e9ed
 * lines, question 17px semibold #1c1c1c (blue on hover), a 30px light-blue
 * circle with a blue chevron that flips when open, answer 15px/1.65 #444, and
 * the card's 4px KD-blue top edge. Inside the dark category description (an
 * FAQ can sit there on parent pages) the text stays light, never #1c1c1c.
 */
/* the three cards get the homepage card's blue top edge */
body.kdh-dark-list :is(.kd-notes, .kd-faq, .kd-harvest):not(.pre-footer-category-description *) { border-top: 4px solid #32adfb !important; border-radius: 10px !important; padding: 30px 34px !important; }
@media (max-width: 767px) { body.kdh-dark-list :is(.kd-notes, .kd-faq, .kd-harvest):not(.pre-footer-category-description *) { padding: 22px 18px !important; } }

html.kdh-acc .kdh-acc__item { border-bottom: 1px solid #e6e9ed; margin: 0 !important; padding: 0 !important; list-style: none; }
html.kdh-acc .kdh-acc__item:first-of-type { border-top: 1px solid #e6e9ed; }
html.kdh-acc .kdh-acc__item > h3 { margin: 0 !important; padding: 0 !important; font-size: inherit !important; }
html.kdh-acc .kdh-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 16px 4px; background: none; border: 0; border-radius: 0; box-shadow: none; color: #1c1c1c; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: normal; text-align: left; text-transform: none; cursor: pointer; }
html.kdh-acc .kdh-acc__btn strong { font-weight: 600; }
html.kdh-acc .kdh-acc__btn::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #eef8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2332adfb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / 14px; transition: transform .2s; }
html.kdh-acc .kdh-acc__item.is-open > .kdh-acc__btn::after,
html.kdh-acc .kdh-acc__item.is-open > h3 > .kdh-acc__btn::after { transform: rotate(180deg); }
html.kdh-acc .kdh-acc__btn:hover { color: #1a8fd8; }
html.kdh-acc .kdh-acc__btn:focus-visible { color: #1a8fd8; outline: 2px solid #32adfb; outline-offset: 2px; }
html.kdh-acc .kdh-acc__body { display: none; padding: 0 48px 18px 4px; font-size: 15px; line-height: 1.65; color: #444; }
html.kdh-acc .kdh-acc__body p { margin: 0 0 10px !important; font-size: 15px !important; line-height: 1.65 !important; color: #444 !important; }
html.kdh-acc .kdh-acc__item.is-open > .kdh-acc__body { display: block; }
html.kdh-acc .kdh-acc__body > p:last-child { margin-bottom: 0 !important; }
html.kdh-acc .kd-harvest ul { margin: 0 !important; padding: 0 !important; }
@media (max-width: 767px) { html.kdh-acc .kdh-acc__btn { font-size: 16px; } html.kdh-acc .kdh-acc__body { padding-right: 4px; } }

/* on the dark page (inside the category description): light text, faint lines */
.pre-footer-category-description .kdh-acc__item { border-color: rgba(255,255,255,.14) !important; }
html.kdh-acc .pre-footer-category-description .kdh-acc__btn { color: #fff; }
html.kdh-acc .pre-footer-category-description .kdh-acc__btn:hover { color: #7fcbff; }
html.kdh-acc .pre-footer-category-description .kdh-acc__body,
html.kdh-acc .pre-footer-category-description .kdh-acc__body p { color: rgba(255,255,255,.8) !important; }
html.kdh-acc .pre-footer-category-description .kdh-acc__btn::after { background-color: rgba(50,173,251,.16); }

/* Read more on the long category description */
html.kdh-acc .kdh-more:not(.is-open) { max-height: var(--kdh-fold, 220px); overflow: hidden; position: relative; }
html.kdh-acc .kdh-more:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; background: linear-gradient(rgba(27,29,33,0), #1b1d21); }
body:not(.kdh-dark-list) .kdh-more:not(.is-open)::after { background: linear-gradient(rgba(255,255,255,0), #fff); }
/* the homepage's "More about KD Machinery" button: blue outline, rounded */
html.kdh-acc .kdh-more__btn { display: block; margin: 12px auto 34px; padding: 10px 18px; background: transparent; color: #7fcbff; border: 1px solid #32adfb; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
html.kdh-acc .kdh-more__btn:hover, html.kdh-acc .kdh-more__btn:focus-visible { background: rgba(50,173,251,.12); color: #fff; }
body:not(.kdh-dark-list) .kdh-more__btn { color: #1a8fd8; }
