/* 民眾疾病衛教頁專屬樣式：保留白底，只讓上方識別色變淡 */
body.public-page header {
    background: #e0f2fe;
    color: #1e3a8a;
}

body.public-page header span {
    color: #1e3a8a;
}

body.public-page .top-nav a.active {
    background: #dbeafe;
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.featured-section {
    margin: 16px 0 22px;
}

.featured-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 20px 16px;
    scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

.featured-card {
    flex: 0 0 auto;
    width: min(36vw, 150px);
    scroll-snap-align: start;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    text-align: left;
    color: #1f2937;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.14);
}

.featured-card-img {
    display: block;
    width: 100%;
    height: 25vh;
    object-fit: contain;
    object-position: top center;
    background: #f8fafc;
}

.featured-card-title {
    padding: 10px 12px 12px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.featured-empty {
    flex: 0 0 calc(100% - 40px);
    border-radius: 12px;
    background: #ffffff;
    padding: 18px 16px;
    color: #64748b;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.1);
}

@media (min-width: 720px) {
    .featured-carousel {
        padding-left: 28px;
        padding-right: 28px;
    }

    .featured-card {
        width: min(18vw, 180px);
    }
}
/* === 我的最愛拖曳排序 === */


.drag-grip {
    position: absolute;
    top: 8px;
    right: 10px;
    color: #c0392b;
    font-size: 0.95rem;
    opacity: 0.7;
}

.fav-dragging {
    user-select: none;
}

.fav-drag-ghost {
    position: fixed !important;
    z-index: 99999 !important;
    width: 42vw;
    max-width: 210px;

    background-color: #ffffff !important;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    border: 2px solid #3498db !important;

    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.95 !important;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.sortable-fav {
    position: relative;
    touch-action: pan-y;
    /* 👇 必須補上這三行，徹底封印手機的原生選取行為 👇 */
    -webkit-touch-callout: none; 
    -webkit-user-select: none;   
    user-select: none;
}

