/* Coach Card prompt: a small card that slides in after the visitor has started reading.
   Desktop: bottom-right. Phones: a short sheet along the bottom edge. */
.cc-promo { position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: min(24rem, calc(100vw - 40px)); display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.1rem 1.1rem 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 22px 50px -18px rgba(23, 22, 20, .45); transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.cc-promo.is-in { transform: none; opacity: 1; }
.cc-promo[hidden] { display: none !important; }
.cc-promo img { width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 8px 10px rgba(23, 22, 20, .25)); }
.cc-promo .label { font-size: .7rem; }
.cc-promo h2 { font-size: 1.55rem; line-height: 1.05; margin-top: .25rem; }
.cc-promo p.cc-sub { font-size: .92rem; line-height: 1.4; color: var(--ink-soft); margin-top: .35rem; }
.cc-promo .cc-btns { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin-top: .75rem; }
.cc-promo .btn { padding: .55rem .95rem; font-size: .85rem; }
.cc-promo .cc-more { font-family: var(--f-ui); font-size: .82rem; }
.cc-close { position: absolute; top: .35rem; right: .45rem; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.cc-close:hover { color: var(--ink); background: var(--ground); }
@media (max-width: 560px) {
  .cc-promo { left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; grid-template-columns: 3.6rem minmax(0, 1fr); padding: .85rem max(16px, env(safe-area-inset-right, 0px)) calc(.9rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .cc-promo h2 { font-size: 1.3rem; }
  .cc-promo p.cc-sub { display: none; }
  .cc-promo .cc-btns { margin-top: .5rem; }
}
@media print { .cc-promo { display: none !important; } }
