body.ec-site .ec-blog .blog-article {
    max-width: 76rem;
    padding-inline: clamp(.75rem, 2.8vw, 2.5rem);
}
.ec-reading-book {
    min-width: 0;
    max-width: 100%;
    margin-block: 1.5rem;
    padding: clamp(.55rem, 1.5vw, .9rem);
    background: #56222a;
    border: 1px solid #743847;
    border-radius: 14px;
    box-shadow: 0 12px 25px #32141b24;
}
.ec-reading-text {
    padding: clamp(1.15rem, 3vw, 2.1rem);
    background: #fff9ed;
    border-radius: 6px;
    color: #36221e;
    font: 1.08rem/1.78 "Fraunces", Georgia, serif;
    overflow-wrap: anywhere;
}
.ec-reading-text p { margin: 0 0 1em; }
.ec-reading-text p:last-child { margin-bottom: 0; }
.ec-reading-book-ready .ec-reading-text {
    position: relative;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    height: 21rem;
    perspective: 1200px;
    box-shadow: 0 3px #dec8ab, 0 5px #f4e6d2;
}
.ec-reading-leaf {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: clamp(1rem, 2.7vw, 2.1rem);
    background: linear-gradient(90deg, #fff9ed 92%, #e9d7bc);
    border-radius: 6px;
    transform-origin: right;
    animation: ec-reading-turn .28s ease-out both;
}
.ec-reading-leaf.ec-reading-measure {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    animation: none;
    transform: none;
    pointer-events: none;
}
.ec-reading-toolbar { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.ec-reading-toolbar[hidden] { display: none; }
.ec-reading-book:fullscreen,
.ec-reading-book.ec-reading-expanded {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.ec-reading-book.ec-reading-expanded { position: fixed; inset: 0; width: auto; height: auto; z-index: 10000; }
.ec-reading-lock { overflow: hidden; }
.ec-reading-book:is(:fullscreen, .ec-reading-expanded) > :is(.ec-reading-text, .ec-reading-controls, .ec-reading-toolbar) {
    width: min(100%, 76rem);
    box-sizing: border-box;
}
.ec-reading-book:is(:fullscreen, .ec-reading-expanded) .ec-reading-text {
    flex: 0 1 auto;
    min-height: 0;
    height: min(70dvh, 43rem);
    font-size: clamp(1.05rem, 2.45vmin, 1.52rem);
    line-height: 1.72;
}
.ec-reading-book:is(:fullscreen, .ec-reading-expanded) .ec-reading-controls { flex: 0 0 auto; }
.ec-reading-book:is(:fullscreen, .ec-reading-expanded) .ec-reading-leaf:not(.ec-reading-measure) {
    align-content: center;
}
.ec-reading-leaf:focus-visible { outline: 2px solid #9b633e; outline-offset: -4px; }
.ec-reading-leaf:nth-child(even) {
    background: linear-gradient(90deg, #e9d7bc, #fff9ed 8%);
    transform-origin: left;
}
.ec-reading-leaf[hidden], .ec-reading-controls[hidden] { display: none; }
.ec-reading-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem;
    margin: .95rem .15rem .15rem;
    color: #fff5e4;
    font-size: .85rem;
}
body.ec-site :is(.ec-reading-controls, .ec-reading-toolbar) > button.ec-reading-button {
    min-height: 48px;
    min-width: 0;
    padding: .55rem clamp(.45rem, 2vw, 1.15rem);
    border-radius: 999px;
    border: 2px solid #edc375;
    background: #ffe2a2;
    color: #331018 !important;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    opacity: 1;
}
body.ec-site .ec-reading-controls > button.ec-reading-button:disabled {
    background: #f1e6d7;
    color: #604c45 !important;
    border-color: #beab96;
    opacity: 1;
    cursor: default;
}
.ec-reading-controls [data-reading-status] { text-align: center; }
.ec-reading-controls [data-reading-prev] { justify-self: start; }
.ec-reading-controls [data-reading-next] { justify-self: end; }
.ec-reading-button:focus-visible { outline: 2px solid #ffcf74; outline-offset: 3px; }
@keyframes ec-reading-turn {
    from { transform: rotateY(-14deg); opacity: .75; }
    to { transform: rotateY(0); opacity: 1; }
}
@media (max-width: 720px) {
    .ec-reading-book-ready .ec-reading-text {
        grid-template-columns: minmax(0, 1fr);
        height: 22rem;
    }
    .ec-reading-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-reading-controls [data-reading-status] { grid-column: 1 / -1; grid-row: 1; }
    .ec-reading-controls > button.ec-reading-button { justify-self: stretch; }
}
@media (max-height: 420px) {
    .ec-reading-book:is(:fullscreen, .ec-reading-expanded) { padding: .4rem; }
    .ec-reading-book:is(:fullscreen, .ec-reading-expanded) .ec-reading-leaf { padding: .55rem .8rem; }
    .ec-reading-book:is(:fullscreen, .ec-reading-expanded) .ec-reading-controls { margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ec-reading-leaf { animation: none; }
}
