/* ==========================================================
   BOLSAdeal Shared Page Sheet
   components/page-sheet/page-sheet.css
   ========================================================== */

.bd-page-sheet-overlay{
    position:fixed;
    inset:0;
    z-index:9998;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:opacity .22s ease,visibility .22s ease;
}

.bd-page-sheet-overlay.open{
    opacity:1;
    visibility:visible;
}

.bd-page-sheet{
    width:100%;
    max-width:700px;
    max-height:92dvh;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    border-radius:22px 22px 0 0;
    transform:translateY(100%);
    transition:transform .24s ease;
    box-shadow:0 -10px 35px rgba(0,0,0,.18);
}

.bd-page-sheet-overlay.open .bd-page-sheet{
    transform:translateY(0);
}

.bd-page-sheet-handle-wrap{
    display:flex;
    justify-content:center;
    padding:10px 0 4px;
}

.bd-page-sheet-handle{
    width:54px;
    height:5px;
    border-radius:999px;
    background:#cfd4da;
}

.bd-page-sheet-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 18px;
    border-bottom:1px solid #eceff3;
    background:#fff;
}

.bd-page-sheet-heading{
    min-width:0;
    flex:1;
}

.bd-page-sheet-title{
    margin:0;
    font-size:22px;
    font-weight:800;
    line-height:1.2;
    color:#111827;
}

.bd-page-sheet-subtitle{
    margin:4px 0 0;
    font-size:13px;
    color:#6b7280;
}

.bd-page-sheet-close{
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    cursor:pointer;
    background:#f3f4f6;
    color:#111827;
    font-size:20px;
    line-height:1;
}

.bd-page-sheet-close:hover{
    background:#e5e7eb;
}

.bd-page-sheet-body{
    flex:1;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding:0 18px 18px;
}

.bd-page-sheet-content{
    color:#1f2937;
    line-height:1.75;
    font-size:15px;
}

.bd-page-sheet-content h1,
.bd-page-sheet-content h2,
.bd-page-sheet-content h3{
    margin:0 0 14px;
    color:#111827;
}

.bd-page-sheet-content p{
    margin:0 0 16px;
}

.bd-page-sheet-content ul,
.bd-page-sheet-content ol{
    margin:0 0 18px 22px;
}

.bd-page-sheet-content img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:14px;
    margin:18px 0;
}

.bd-page-sheet-loading,
.bd-page-sheet-error{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    min-height:220px;
    text-align:center;
    color:#6b7280;
}

.bd-page-sheet-spinner{
    width:34px;
    height:34px;
    border:3px solid #eceff3;
    border-top-color:#ef3340;
    border-radius:50%;
    animation:bd-page-spin .8s linear infinite;
}

.bd-page-sheet-retry{
    padding:11px 18px;
    border:0;
    border-radius:10px;
    background:#ef3340;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

@keyframes bd-page-spin{
    to{transform:rotate(360deg);}
}

@media (max-width:600px){
    .bd-page-sheet{
        max-width:100%;
        border-radius:20px 20px 0 0;
    }

    .bd-page-sheet-header{
        padding:12px 14px;
    }

    .bd-page-sheet-title{
        font-size:20px;
    }

    .bd-page-sheet-body{
        padding:14px;
    }
}

.bd-page-sheet-loading[hidden],
.bd-page-sheet-error[hidden],
.bd-page-sheet-content[hidden],
.bd-page-sheet-subtitle[hidden] {
    display: none !important;
}
.bd-page-sheet-content {
    font-size: 18px;
    line-height: 1.9;
    color: #2b3037;
}

.bd-page-sheet-content h1 {
    margin: 0 0 24px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    color: #17191d;
}

.bd-page-sheet-content h2 {
    margin: 30px 0 14px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
    color: #17191d;
}

.bd-page-sheet-content h3 {
    margin: 24px 0 12px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.bd-page-sheet-content p {
    margin: 0 0 22px;
}

.bd-page-sheet-content p:last-child {
    margin-bottom: 0;
}

.bd-page-sheet-content ul,
.bd-page-sheet-content ol {
    margin: 0 0 22px 24px;
}

.bd-page-sheet-content li {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .bd-page-sheet-content {
        font-size: 17px;
        line-height: 1.85;
    }

    .bd-page-sheet-content h1 {
        font-size: 30px;
    }

    .bd-page-sheet-content h2 {
        font-size: 24px;
    }
}

/* Headline Photo */

.bd-page-sheet-headline-photo{
    margin:0 0 18px;
    padding:0;
    overflow:hidden;

    border-radius:18px;

    background:#f5f5f5;

    box-shadow:
        0 6px 18px rgba(0,0,0,.08);
}

.bd-page-sheet-headline-photo img{
    display:block;

    width:100%;
    height:auto;

    object-fit:cover;

    border:0;
}