/* ===== Content pages: LeBitGo, Q&A, Privacy, Catalog, 404, search =====
   Measurements taken from the old Elementor/Astra pages. Astra drops the root font
   size to 85.5% at <=768px, which is why body copy becomes 13.68px on phones. */

.ct-page { font-size: 15px; line-height: 1.857; color: var(--gray); }

/* Elementor boxed section: 1140px container + 10px column padding = 1120px content */
.ct-box { max-width: 1180px; margin: 0 auto; padding-left: 30px; padding-right: 30px; }

.ct-title { padding-top: 110px; padding-bottom: 110px; }
.ct-title h1 {
    padding: 0 100px;
    color: var(--gray);
    font-size: 70px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.ct-body { padding-top: 10px; padding-bottom: 10px; }

.ct-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Q&A ---------- */
.ct-figure { text-align: center; }
.ct-figure img { display: inline-block; height: auto; }

/* ---------- Privacy ---------- */
.ct-privacy h3 {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}
.ct-privacy .ct-text { margin-bottom: 20px; }
.ct-privacy .ct-text:last-child { margin-bottom: 0; }

/* ---------- LeBitGo (Kickstarter description styles carried over by the old page) ---------- */
.ct-video { aspect-ratio: 16 / 9; margin-bottom: 20px; background: #000; }
.ct-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.ct-lebitgo { font-size: 18px; line-height: 1.8; letter-spacing: .5px; }
.ct-lebitgo h3 {
    color: var(--gray);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}
.ct-lebitgo img {
    display: inline;
    height: auto;
    vertical-align: middle;
}

/* ---------- 404 + search (Astra archive layout) ---------- */
.ct-wide { max-width: 1280px; margin: 0 auto; padding-left: 55px; padding-right: 55px; }
.ct-primary { margin: 60px 0; }
.ct-404 { padding: 80px 100px; text-align: center; }
.ct-404-head { margin-bottom: 1.5em; }
.ct-404 h1 {
    color: var(--teal);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}
.ct-404-sub {
    color: var(--gray);
    font-size: 1.5em;
    font-weight: 700;
}
.ct-404 .ct-search { margin-top: 2em; }

.ct-search { position: relative; display: inline-block; width: 370px; max-width: 100%; vertical-align: top; }
.ct-search input {
    width: 100%;
    padding: 16px 45px 16px 15px;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    background: #fafafa;
    color: #666;
    font: inherit;
    font-size: 1em;
    line-height: normal;
    outline: none;
}
.ct-search input:focus { border-color: var(--teal); }
.ct-search button {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 45px;
    border: 0;
    background: transparent;
    color: #808285;
    cursor: pointer;
}
.ct-search button svg { display: block; margin: 0 auto; }

.ct-archive-head { padding: 75px 100px 50px; background: #eee; }
.ct-archive-head h1 {
    color: var(--teal);
    font-size: 40px;
    font-weight: 300;
    line-height: 1.2;
}
.ct-result { padding: 80px 100px; border-bottom: 1px solid #eee; }
.ct-result:last-child { border-bottom: 0; }
.ct-result img { width: 480px; max-width: 100%; height: auto; margin-bottom: 23px; }
.ct-result h2 {
    margin-bottom: 6px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
}
.ct-result h2 a { color: var(--teal); }
.ct-result h2 a:hover { color: var(--navy); }
.ct-search.has-text-btn { display: inline-flex; width: auto; margin-top: 2px; }
.ct-search.has-text-btn input { width: 207px; padding: 11px; }
.ct-search.has-text-btn button {
    position: static;
    width: auto;
    padding: 0 15px;
    background: var(--teal);
    color: #fff;
    font: inherit;
}
.ct-search.has-text-btn button:hover { background: var(--teal-dark); }

/* ---------- Catalog: old 3D FlipBook look, pre-rendered page images ---------- */
.ct-catalog {
    padding: 20px 0 10px;
    background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)),
                url("../../img/content/catalog-bg.8e9539bbe08b.jpg") center / cover no-repeat;
}
.book {
    --page-h: min(717px, calc(100vh - 183px));
    --zoom: 1;
    position: relative;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #777;
    outline: none;
}
.book [hidden] { display: none !important; }
.book:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)),
                #fff url("../../img/content/catalog-bg.8e9539bbe08b.jpg") center / cover no-repeat;
}
.book-stage { position: relative; }
.book-view {
    display: flex;
    height: calc(var(--page-h) + 44px);
    padding: 22px 0;
    overflow: hidden;
}
.book.is-zoomed .book-view { overflow: auto; cursor: grab; }
.book.is-zoomed .book-view.is-dragging { cursor: grabbing; }
.book-spread {
    position: relative;
    display: flex;
    flex: none;
    margin: auto;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, .28);
    cursor: pointer;
    user-select: none;
}
.book.is-zoomed .book-spread { cursor: inherit; }
.book-page {
    display: block;
    width: auto;
    max-width: none;
    height: calc(var(--page-h) * var(--zoom));
    aspect-ratio: var(--page-ratio);
    background: #fff;
    -webkit-user-drag: none;
}
/* spine shading across the fold */
.book-spread.is-two::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 8%;
    transform: translateX(-50%);
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, .12) 48%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .12) 52%, transparent);
    pointer-events: none;
    z-index: 2;
}
.book-spread.is-fading { animation: book-fade .3s ease; }
@keyframes book-fade { from { opacity: .4; } to { opacity: 1; } }

.book-leaf {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    z-index: 3;
    transform-style: preserve-3d;
    animation: .65s ease-in-out both;
}
.book-leaf.is-next { left: 50%; transform-origin: left center; animation-name: book-turn-next; }
.book-leaf.is-prev { left: 0; transform-origin: right center; animation-name: book-turn-prev; }
.book-leaf img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    background: #fff;
    backface-visibility: hidden;
    box-shadow: 0 0 14px rgba(0, 0, 0, .18);
}
.book-leaf .book-leaf-back { transform: rotateY(180deg); }
@keyframes book-turn-next {
    from { transform: perspective(2600px) rotateY(0deg); }
    to { transform: perspective(2600px) rotateY(-180deg); }
}
@keyframes book-turn-prev {
    from { transform: perspective(2600px) rotateY(0deg); }
    to { transform: perspective(2600px) rotateY(180deg); }
}

/* big side arrows (fa-angle-left/right, 52px, #ccc) */
.book-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 19px;
    height: 52px;
    margin-top: -26px;
    padding: 0;
    border: 0;
    background: none;
    color: #ccc;
    cursor: pointer;
    transition: color .2s;
}
.book-arrow:hover { color: #999; }
.book-arrow:disabled { visibility: hidden; }
.book-arrow svg { display: block; width: 19px; height: 52px; }
.book-arrow-prev { left: 20px; }
.book-arrow-next { right: 20px; }

.book-bar { display: flex; justify-content: center; padding: 20px 0 10px; }
.book:not(.is-ready) .book-bar { visibility: hidden; }
.book-toolbar {
    display: flex;
    align-items: center;
    padding: 3px;
    border-radius: 4px;
    background: #f8f8f8;
    box-shadow: 0 0 5px rgba(200, 200, 200, .75);
}
.book-toolbar > button,
.book-more {
    display: block;
    width: 33px;
    height: 34px;
    padding: 10px;
    border: 0;
    background: none;
    color: #777;
    cursor: pointer;
}
.book-toolbar > button:hover:not(:disabled),
.book-more:hover { color: #333; }
.book-toolbar > button:disabled { opacity: .7; cursor: default; }
.book-toolbar svg { display: block; width: 14px; height: 14px; margin: 0 auto; }
.book-pages { display: flex; padding: 0 10px; }
.book-pages input,
.book-pages .book-page-total {
    width: 41px;
    height: 21px;
    padding: 3px 0;
    border: 0;
    background: rgba(232, 232, 232, .6);
    color: #000;
    font: 13.3333px Arial, sans-serif;
    line-height: 15px;
    text-align: center;
}
.book-pages input { border-radius: 3px 0 0 3px; outline: none; }
.book-pages input:focus { background: rgba(210, 210, 210, .8); }
.book-pages .book-page-total { width: 40px; border-left: 1px solid rgba(255, 255, 255, .7); border-radius: 0 3px 3px 0; }

.book-more-wrap { position: relative; }
.book-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 3px);
    z-index: 5;
    width: 160px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 3px 3px 3px rgba(200, 200, 200, .5);
    list-style: none;
}
.book-menu button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 5px 10px;
    border: 0;
    background: none;
    color: #000;
    font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 16px;
    text-align: left;
    cursor: pointer;
}
.book-menu button:hover:not(:disabled),
.book-menu button.is-active { background: #e8e8e8; }
.book-menu button:disabled { opacity: .7; cursor: default; }
.book-menu svg { flex: none; width: 14px; height: 14px; margin: 0; color: #555; }
.book-menu .book-menu-divider { height: 1px; background: #ddd; }

@media (max-width: 1180px) {
    .ct-wide { padding-left: 35px; padding-right: 35px; }
}
@media (max-width: 768px) {
    .ct-page { font-size: 13.68px; }
    .ct-wide { padding-left: 7.4px; padding-right: 7.4px; }
    .ct-primary { margin: 0; padding: 1.5em 0; }
    .ct-404 { padding: 1.5em 1em; }
    .ct-archive-head { padding: 2.5em 1em 1.5em; }
    .ct-result { padding: 2.5em 1em; }
    .book-tb-step { display: none !important; }
}
@media (max-width: 767px) {
    .ct-box { padding-left: 17.4px; padding-right: 17.4px; }
    .ct-catalog .ct-box { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 544px) {
    .ct-title h1 { font-size: 33px; }
    .ct-privacy h3 { font-size: 20px; }
    .ct-lebitgo h3 { font-size: 20px; }
    .ct-archive-head h1 { font-size: 30px; }
    .ct-result h2 { font-size: 24px; }
}
