/* Publish With Crystal: shared components (one file, every page) */
.ticker { background: var(--ink); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tick 30s linear infinite; }
.ticker-track span { padding: 0.8rem 1.5rem; color: rgba(255,255,255,0.93); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }
.ticker-track span::before { content: "\2726"; color: var(--gold); margin-right: 3rem; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.shelf-wrap { margin: 0; }
.shelf {
      display: flex; align-items: flex-end; justify-content: center;
      padding: 0 0.6rem; position: relative;
    }
.shelf::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
      background: linear-gradient(to bottom, var(--gold) 0 2px, rgba(201,162,78,0.18) 2px, transparent);
    }
.shelf .book { width: 29%; max-width: 200px; margin: 0 -1.6%; box-shadow: 0 22px 40px -16px rgba(0,0,0,0.75), 0 8px 16px -10px rgba(0,0,0,0.6); }
.shelf .book:nth-child(1) { z-index: 1; transform: translateY(0); }
.shelf .book:nth-child(2) { z-index: 3; width: 32%; }
.shelf .book:nth-child(3) { z-index: 4; width: 33%; }
.shelf .book:nth-child(4) { z-index: 2; }
.shelf-wrap figcaption { margin-top: 1.9rem; text-align: center; color: rgba(255,255,255,0.8); font-size: 0.88rem; max-width: 30rem; margin-inline: auto; line-height: 1.5; }
.shelf-wrap figcaption b { color: var(--gold-soft); font-weight: 600; }
@keyframes shelfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.shelf .book { animation: shelfIn 0.7s ease both; }
.shelf .book:nth-child(2) { animation-delay: 0.08s; }
.shelf .book:nth-child(3) { animation-delay: 0.16s; }
.shelf .book:nth-child(4) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .shelf .book { animation: none; } }

/* publishing dropdown in the main nav */
.nav-pub { position: relative; }
.nav-pub-btn { font: inherit; font-size: 0.9rem; letter-spacing: 0.02em; background: none; border: 0; cursor: pointer; color: var(--text-on-ink); opacity: 0.85; padding: 0; display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-pub-btn::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-pub-btn:hover { opacity: 1; color: var(--gold-soft); }
.nav-pub-menu { display: none; position: absolute; top: calc(100% + 0.8rem); left: -1rem; min-width: 14rem; background: #131417; border: 1px solid rgba(201,162,78,0.35); border-radius: 4px; padding: 0.5rem 0; box-shadow: 0 20px 40px -18px rgba(0,0,0,0.7); z-index: 60; }
.nav-pub-menu a { display: block; padding: 0.6rem 1.1rem; white-space: nowrap; border-top: 0 !important; }
.nav-pub:hover .nav-pub-menu, .nav-pub:focus-within .nav-pub-menu, .nav-pub.open .nav-pub-menu { display: block; }
.nav-pub::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.9rem; }
@media (max-width: 720px) {
  .nav-pub { width: 100%; }
  .nav-pub-btn { display: block; width: 100%; text-align: left; padding: 0.85rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .nav-pub-btn::after { display: none; }
  .nav-pub-menu { display: block; position: static; border: 0; box-shadow: none; background: none; padding: 0 0 0.4rem 0.9rem; min-width: 0; }
  .nav-pub-menu a { padding: 0.55rem 0; font-size: 0.95rem; }
}

/* "We also publish" buttons */
.also-pub { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.also-pub h3 { font-family: var(--font-display); font-weight: 460; font-size: 1.6rem; color: var(--ink); margin: 0 0 0.3rem; }
.also-pub > p { color: var(--text-muted); margin: 0 0 1.3rem; }
.also-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .also-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .also-grid { grid-template-columns: repeat(4, 1fr); } }
.also-btn { display: flex; flex-direction: column; justify-content: space-between; min-height: 8.5rem; padding: 1.2rem 1.3rem; border-radius: 6px; text-decoration: none; color: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.also-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(0,0,0,0.6); }
.also-btn b { font-family: var(--font-display); font-weight: 460; font-size: 1.4rem; line-height: 1.15; }
.also-btn span { font-size: 0.9rem; opacity: 0.9; margin-top: 0.4rem; }
.also-btn i { font-style: normal; font-weight: 700; font-size: 0.85rem; margin-top: 0.8rem; }
.also-btn.a1 { background: #1f3a5f; } .also-btn.a2 { background: #6b2d4a; } .also-btn.a3 { background: #c2562b; } .also-btn.a4 { background: #2f6b5a; }

/* page hero with a visual on the right (book pages) */
.page-hero-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .page-hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

/* package cards restyled to match the homepage */
.tier-wide { border: 1px solid var(--line-dark) !important; box-shadow: 0 24px 50px -30px rgba(0,0,0,0.35) !important; background: #fbf8f1 !important; border-radius: 6px !important; }
.tier-wide.tw-flag { background: var(--ink) !important; border: 1px solid var(--gold) !important; color: var(--text-on-ink); }
.tier-wide.tw-flag .tier-name { color: #f2efe9 !important; }
.tier-wide.tw-flag .tier-tag, .tier-wide.tw-flag .price small { color: rgba(255,255,255,0.72) !important; }
.tier-wide.tw-flag .tw-list li { color: rgba(255,255,255,0.9); }
.tier-wide.tw-alt { background: #24493b !important; border: 1px solid #24493b !important; color: #eef3ee; }
.tier-wide.tw-alt .tier-name { color: #fff !important; }
.tier-wide.tw-alt .tier-tag, .tier-wide.tw-alt .price small { color: rgba(255,255,255,0.75) !important; }
.tier-wide.tw-alt .price { color: var(--gold-soft) !important; }
.tier-wide.tw-alt .tw-list li { color: rgba(255,255,255,0.9); }
.tier-wide.tw-alt .tw-list li::before { background: var(--gold-soft); }
.tier-wide.tw-alt .btn-gold { background: #fff; color: #24493b; border-color: #fff; }
.tier-wide.tw-flag a:not(.btn), .tier-wide.tw-alt a:not(.btn) { color: var(--gold-soft); }

/* links inside FAQ answers */
.faq .answer a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.shelf .book { position: relative; display: inline-block; max-width: 300px; border-radius: 2px 5px 5px 2px; box-shadow: 0 26px 50px -18px rgba(0,0,0,0.55), 0 10px 22px -12px rgba(0,0,0,0.4); }
.shelf .book img { display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px; }
.shelf .book::before { content:""; position:absolute; top:0; left:0; width: 11px; height:100%; background: linear-gradient(to right, rgba(0,0,0,0.30), rgba(0,0,0,0.05) 55%, rgba(255,255,255,0.13)); border-radius: 2px 0 0 2px; z-index:2; }
.home-covers { display:grid; gap: clamp(1.4rem,3vw,2.2rem); grid-template-columns: repeat(2,1fr); margin-top:2.6rem; align-items: start; justify-items: center; }

    /* conversation pop-up */
    .chat-modal { width: min(40rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-top: 4px solid var(--gold); border-radius: 6px; padding: 2rem 1.8rem 1.6rem; background: var(--paper); color: var(--text-dark); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }
    .chat-modal::backdrop { background: rgba(20,20,22,0.72); }
    .chat-x { position: absolute; top: 0.6rem; right: 0.8rem; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--ink); cursor: pointer; padding: 0.3rem 0.5rem; }
    .chat-k { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 700; color: #8a6a24; }
    .chat-modal h2 { font-family: var(--font-display); font-weight: 460; font-size: 1.9rem; color: var(--ink); margin: 0 0 0.6rem; }
    .chat-p { margin: 0 0 1rem; line-height: 1.6; }
    .chat-form { background: #fff; border: 1px solid var(--line-dark); border-radius: 4px; }
    .chat-form iframe { display: block; width: 100%; border: 0; }
    .chat-alt { margin: 1rem 0 0; font-size: 0.92rem; color: var(--text-muted); }
    .chat-alt a { color: var(--ink); font-weight: 700; }
    .go-btn { font: inherit; font-size: 0.95rem; font-weight: 700; margin-top: 0.9rem; padding: 0.7rem 1.1rem; border-radius: 3px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); cursor: pointer; }
    .go-btn:hover { background: var(--gold-soft); }
    .celeb-card .go { display: inline-block; margin-top: 0.4rem; }
