/* Kava Moon buy lines, shared by the content pages (2026-09-30). Loaded after common.css; pairs with scripts/buy.js.
   One quiet line after a section's case: that section's own proof and one gold button with the same label
   everywhere. A hairline sets it apart, so it reads as the next step, not an ad. */

.km-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
    margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(28, 25, 20, 0.12); text-align: left; }
.km-cta--narrow { max-width: 800px; }
.km-cta-line { flex: 1 1 22rem; margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--text-muted-light); }
.km-cta-line b { color: var(--text-on-light); font-weight: 600; }
.km-cta-line .km-gold { color: var(--gold-deep); font-weight: 600; }
.km-cta-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.km-cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: 8px;
    background: var(--gold); color: var(--bg-dark-warm); font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.25s ease; }
.km-cta-btn:hover { background: var(--gold-hover); color: var(--bg-dark-warm); }
.km-cta-alt { font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--gold-deep); background: none; border: 0; padding: 6px 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 0.2em; }
.km-cta-alt:hover { color: var(--text-on-light); }
.km-cta-btn:focus-visible, .km-cta-alt:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* a single button at the end of a card or column, and a one-line proof over a closing pair of buttons */
.km-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.km-close-line { margin: 0 auto 18px; font-size: 1rem; line-height: 1.55; color: rgba(245, 240, 232, 0.75); }

/* the responsible-use line, wherever effects are described (decisions.md, 2026-09-30) */
.km-care { max-width: 640px; margin: 36px auto 0; text-align: center; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted-light); }
.km-care b { color: var(--text-on-light); }
.km-care.km-on-dark { color: rgba(245, 240, 232, 0.72); }
.km-care.km-on-dark b { color: #F5F0E8; }

/* on dark grounds */
.km-on-dark .km-cta, .km-cta.km-on-dark { border-top-color: rgba(245, 240, 232, 0.14); }
.km-on-dark .km-cta-line { color: rgba(245, 240, 232, 0.72); }
.km-on-dark .km-cta-line b { color: #F5F0E8; }
.km-on-dark .km-cta-line .km-gold { color: var(--gold); }
.km-on-dark .km-cta-alt { color: var(--gold); }
.km-on-dark .km-cta-alt:hover { color: #F5F0E8; }

/* The phone bar: a slim pill with space around it (Baymard: a sticky add button should not run edge to edge).
   scripts/buy.js adds .km-bar and toggles .is-on; !important beats each page's older inline show-after-hero rule. */
.sticky-cta.km-bar { display: none !important; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 6px 6px 6px 18px;
    border: 1px solid rgba(196, 152, 42, 0.35); border-radius: 999px; background: rgba(28, 25, 20, 0.94); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65); }
.sticky-cta.km-bar .btn { border-radius: 999px; min-height: 46px; padding: 0 18px; border: 0; cursor: pointer; font-family: 'Cinzel', serif; }
.sticky-cta.km-bar .sticky-cta-info > span { color: #F5F0E8; }
.sticky-cta.km-bar .sticky-cta-info small { color: rgba(245, 240, 232, 0.7); }
@media (max-width: 768px) {
    .sticky-cta.km-bar.is-on { display: block !important; animation: km-bar-in 0.3s ease; }
    .km-cta { gap: 12px; margin-top: 32px; padding-top: 18px; }
    .km-cta-line { flex-basis: 100%; font-size: 0.95rem; }
    .km-cta-btn { min-height: 48px; padding: 0 20px; font-size: 0.8rem; letter-spacing: 1.5px; }
}
body.cart-open .sticky-cta.km-bar, body.menu-open .sticky-cta.km-bar { display: none !important; }
@keyframes km-bar-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta.km-bar.is-on { animation: none; } }
