/* A full list remains available at the foot of the homepage without JavaScript. */
.bha-references { color: #142b2c; background: #f0f6f4; }
.bha-dock-frame { max-width: 1400px; margin: 0 auto; padding: 36px var(--gutter, 22px); }
.bha-dock-heading h2 { font-size: 28px; }
.bha-reference-list { display: grid; grid-gap: 24px; }
.bha-dock-heading { margin-bottom: 20px; }
.bha-reference { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.bha-reference blockquote { margin: 0; }
.bha-reference blockquote p { color: #142b2c; font-size: 18px; line-height: 1.45; }
.bha-reference figcaption { margin-top: 5px; font-size: 14px; line-height: 1.4; color: #426063; }
.bha-reference figcaption strong { color: #183435; }
.bha-reference figcaption span::before { content: " · "; }
.bha-item-number { display: block; color: #496569; font-size: 12px; margin-bottom: 6px; }
.bha-reference-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bha-references [hidden] { display: none !important; }
body.bha-dock-enabled { padding-bottom: var(--bha-dock-space, 0px); }
html.bha-dock-enabled { scroll-padding-bottom: var(--bha-dock-space, 0px); }
body.bha-dock-enabled .cky-btn-revisit-wrapper.cky-revisit-bottom-left,
body.bha-dock-enabled .cky-btn-revisit-wrapper.cky-revisit-bottom-right { bottom: calc(var(--bha-dock-space, 0px) + 12px); }
.bha-references.is-ready {
    position: fixed; z-index: 35; bottom: 0; left: 0; right: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 3px solid #139aa1; background: #f3f9f7;
    box-shadow: 0 -4px 20px rgba(13, 34, 35, .13);
}
.bha-references.is-ready .bha-dock-frame {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "heading quote controls"; align-items: center;
    grid-gap: 20px; padding: 11px var(--gutter, 22px);
}
.bha-references.is-ready .bha-dock-heading { grid-area: heading; margin: 0; }
.bha-references.is-ready .bha-dock-heading h2 { font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.bha-references.is-ready .bha-fallback-summary, .bha-references.is-ready .bha-dock-slot .bha-item-number { display: none; }
.bha-dock-slot { grid-area: quote; min-width: 0; }
.bha-references.is-ready .bha-dock-slot { overflow: hidden; }
.bha-references.is-ready .bha-dock-slot .bha-reference-list { grid-gap: 0; isolation: isolate; }
.bha-references.is-ready .bha-dock-slot .bha-reference { grid-area: 1 / 1; align-self: center; width: 100%; }
.bha-dock-slot .bha-reference[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.bha-references.is-ready .bha-dock-slot blockquote p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; font-size: 16px; line-height: 1.26; max-height: 2.52em;
}
.bha-references.is-ready .bha-dock-slot figcaption {
    margin-top: 3px; font-size: 12px; line-height: 1.3;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.bha-dock-actions { grid-area: controls; display: flex; align-items: center; }
.bha-references button {
    display: inline-flex; align-items: center; justify-content: center;
    color: #153d3f; background: transparent; border: 1px solid transparent;
    border-radius: 3px; font: inherit; font-weight: 600; cursor: pointer;
}
.bha-dock-actions button { min-width: 34px; height: 36px; padding: 3px 5px; font-size: 19px; line-height: 1; }
.bha-references button:hover { background: #dcece9; }
.bha-references button:focus-visible, .bha-sheet-scroll:focus-visible { outline: 2px solid #006f76; outline-offset: 1px; }
.bha-dock-position { margin-right: 5px; color: #405c5e; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.bha-dock-actions .bha-read-all { height: 33px; margin: 0 3px; padding: 0 9px; background: #17494b; color: #fff; white-space: nowrap; font-size: 13px; }
.bha-dock-actions .bha-read-all:hover { background: #246467; }
.bha-play-icon { width: 12px; height: 12px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
[data-rotation][data-paused="true"] .bha-play-icon { width: 0; height: 0; border: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.bha-references.is-minimised { left: auto; right: 12px; border: 0; box-shadow: none; background: transparent; }
.bha-references .bha-show-references { min-height: 39px; padding: 6px 15px; background: #17494b; color: white; font-size: 14px; box-shadow: 0 -2px 8px #17353524; border-radius: 5px 5px 0 0; }
.bha-show-references span { margin-left: 8px; }
.bha-references .bha-show-references:hover { background: #246467; }
.bha-dock-slot .bha-enter-next { animation: bha-enter-next 420ms ease-in-out both; }
.bha-dock-slot .bha-exit-next { animation: bha-exit-next 420ms ease-in-out both; }
.bha-dock-slot .bha-enter-previous { animation: bha-enter-previous 420ms ease-in-out both; }
.bha-dock-slot .bha-exit-previous { animation: bha-exit-previous 420ms ease-in-out both; }
.bha-dock-slot .bha-reference.bha-exit-next, .bha-dock-slot .bha-reference.bha-exit-previous { visibility: visible; }
@keyframes bha-enter-next { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes bha-exit-next { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes bha-enter-previous { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes bha-exit-previous { from { transform: translateX(0); } to { transform: translateX(100%); } }
body.bha-reference-sheet-open { overflow: hidden; }
.bha-reference-sheet {
    color: #142b2c; position: fixed; z-index: 101; top: auto; bottom: 0; left: 0; right: 0;
    width: 92%; max-width: 850px; max-height: 86vh; margin: 0 auto; padding: 0;
    border: 0; border-top: 4px solid #139aa1; background: #fff; border-radius: 8px 8px 0 0;
}
.bha-reference-sheet::backdrop { background: rgba(10, 24, 25, .54); }
.bha-references.is-fallback-open { z-index: 200; }
.bha-dialog-scrim { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 24, 25, .54); }
.bha-sheet-inner { display: flex; flex-direction: column; max-height: 84vh; max-height: 84dvh; }
.bha-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 26px 15px; border-bottom: 1px solid #cddfdd; }
.bha-sheet-header h2 { font-size: 24px; }
.bha-sheet-header p { margin: 4px 0 0; font-size: 14px; color: #476265; }
.bha-sheet-header button { min-height: 40px; padding: 6px 12px; border-color: #83a4a4; }
.bha-sheet-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 18px 26px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.bha-sheet-scroll .bha-reference { padding-left: 15px; border-left: 3px solid #26979c; }
.bha-sheet-scroll .bha-reference-list { grid-gap: 28px; }
@media (max-width: 760px) {
    .bha-references.is-ready .bha-dock-frame { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "heading controls" "quote quote"; grid-column-gap: 4px; grid-row-gap: 2px; padding: 3px 12px 7px; }
    .bha-references.is-ready .bha-dock-heading h2 { font-size: 15px; }
    .bha-dock-actions button { min-width: 31px; height: 33px; }
    .bha-dock-actions .bha-read-all { min-height: 29px; height: 29px; padding: 0 8px; }
    .bha-references.is-ready .bha-dock-slot blockquote p { font-size: 14px; line-height: 1.25; max-height: 2.5em; }
    .bha-references.is-ready .bha-dock-slot figcaption { font-size: 11px; line-height: 1.25; margin-top: 2px; }
    .bha-sheet-header { padding: 15px; }
    .bha-sheet-header h2 { font-size: 21px; }
    .bha-sheet-scroll { padding: 16px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
    .bha-reference-sheet { width: 100%; }
}
@media (max-width: 350px) {
    .bha-references.is-ready .bha-dock-frame { padding-left: 7px; padding-right: 7px; }
    .bha-dock-actions button { min-width: 27px; padding: 2px; }
    .bha-dock-position { margin-right: 1px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .bha-dock-slot .bha-reference { animation: none; }
}

@media (orientation: landscape) and (min-width: 600px) and (max-height: 450px) {
    .bha-references.is-ready .bha-dock-frame {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "heading quote controls"; grid-gap: 10px; padding: 5px 12px;
    }
    .bha-references.is-ready .bha-dock-heading h2 { font-size: 15px; }
    .bha-references.is-ready .bha-dock-slot blockquote p { font-size: 14px; -webkit-line-clamp: 1; max-height: 1.26em; }
}
