/* Phase 02X.2C — opt-in styles for published videos and vocabulary.
   Designer typography, 3-column cards, gallery and pagination remain unchanged. */
.body .qs-cms-video-block { margin: 22px 0 28px; max-width: 1100px; }
.body .qs-cms-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #202020; overflow: hidden; }
.body .qs-cms-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.body .qs-cms-video-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 14px; }
.body .qs-cms-video-links a { color: #416b82; text-decoration: underline; }
.body .qs-vocab-pronunciation { color: #607585; margin: 8px 0 13px; }
.body .qs-vocab-detail p { line-height: 1.7; }
@media print { .body .qs-cms-video-frame { display: none; } }

/* Phase 02X.2C.1 — only the video card/detail and infographic download controls. */
.body .qs-video-card-poster { object-fit: cover; width: 100%; }
.body .qs-video-card-tiktok-preview { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #101010; }
.body .qs-video-card-tiktok-preview iframe { width: 100%; height: 280%; position: absolute; top: -90%; left: 0; border: 0; pointer-events: none; }
.body .qs-video-card-preview-label { position: absolute; bottom: 5px; left: 8px; background: rgba(0,0,0,.75); color: white; padding: 4px 9px; font-size: .9rem; }
.content .body .info-body .qs-cms-video-centered { width: 100%; max-width: none; margin: 18px auto 32px; display: block; text-align: center; }
.content .body .info-body .qs-cms-video-centered .qs-video-heading { font-size: 1.25rem; color: #ae914b; margin: 20px auto 14px; }
.content .body .info-body .qs-cms-video-centered .qs-cms-video-landscape { width: min(100%, 1080px); aspect-ratio: 16 / 9; position: relative; margin: 0 auto 30px; background: #111; }
.content .body .info-body .qs-cms-video-centered .qs-cms-video-portrait { width: min(100%, 420px); aspect-ratio: 9 / 16; position: relative; margin: 0 auto 18px; background: #111; }
.content .body .info-body .qs-cms-video-centered iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content .body .info-body .qs-cms-video-centered .qs-cms-video-links { justify-content: center; }
.body .qs-infographic-download { margin: 18px auto 22px; text-align: center; }
.body .qs-download-image { display: inline-flex; align-items: center; border: 1px solid #b99b54; border-radius: 7px; padding: 10px 20px; color: #8f7133; text-decoration: none; background: #fff; }
.body .qs-download-image:hover, .body .qs-download-image:focus-visible { background: #f7f2e7; color: #84662e; }
@media (max-width: 640px) {
 .content .body .info-body .qs-cms-video-centered .qs-cms-video-landscape { width: 100%; }
 .content .body .info-body .qs-cms-video-centered .qs-cms-video-portrait { width: min(100%, 360px); }
}
@media print { .qs-infographic-download, .qs-cms-video-portrait { display: none !important; } }


/* Phase 02X.2C.2 — route-level CSS is emitted in App.razor AFTER HeadOutlet.
   Keep these rules opt-in: no effects on News/Crematory/other content detail pages. */
.content .body .info-body .qs-cms-video-centered {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 0;
    text-align: center;
    clear: both;
}
.content .body .info-body .qs-cms-video-centered .qs-video-heading {
    color: #af904d;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    margin: 28px auto 16px;
}
.content .body .info-body .qs-cms-video-centered .qs-cms-video-landscape {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    border-radius: 8px;
}
.content .body .info-body .qs-cms-video-centered .qs-cms-video-portrait {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    margin: 0 auto 22px;
    background: #101010;
    overflow: hidden;
    border-radius: 8px;
}
.content .body .info-body .qs-cms-video-centered iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
}
.content .body .info-body .qs-cms-video-centered iframe[hidden],
.content .body .info-body .qs-cms-video-centered [hidden] {
    display: none !important;
}
.content .body .info-body .qs-cms-video-centered .qs-cms-video-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
    margin: 14px auto 24px;
}
.content .body .info-body .qs-cms-video-centered .qs-cms-video-links a {
    color: #38677c;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.content .body .info-body .qs-cms-video-centered .qs-tiktok-consent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(145deg, #2c2b30, #101014);
    color: #fff;
}
.qs-tiktok-consent-inner { max-width: 330px; }
.qs-tiktok-logo { color: #fff; font-size: 1.75rem; font-weight: 700; }
.qs-tiktok-consent-inner > p { margin: 12px auto 22px; color: #f3f1f4; line-height: 1.6; }
.content .body .info-body .qs-cms-video-centered .qs-tiktok-load-button {
    appearance: none;
    border: 1px solid #c9aa68;
    color: #392e1a;
    background: #faf2df;
    border-radius: 999px;
    padding: 11px 20px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
}
.content .body .info-body .qs-cms-video-centered .qs-tiktok-load-button:hover,
.content .body .info-body .qs-cms-video-centered .qs-tiktok-load-button:focus-visible {
    background: #f5d992;
    outline-offset: 3px;
}
.content .body .info-body .qs-cms-video-centered .qs-tiktok-hint {
    font-size: .85rem;
    color: #ddd;
    margin: 14px auto 0;
}
/* Infographic button: positioned beneath the full-resolution image. */
.content .body .info-body .main-image .qs-infographic-download {
    text-align: center;
    margin: 0 auto 30px;
    padding: 24px 0 0;
}
.content .body .info-body .main-image .qs-download-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: auto;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid #bea064;
    border-radius: 999px;
    padding: 12px 23px;
    color: #826329;
    background: linear-gradient(180deg, #fffdf7, #f5eddf);
    box-shadow: 0 3px 12px rgba(114, 88, 39, .12);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.content .body .info-body .main-image .qs-download-image:hover,
.content .body .info-body .main-image .qs-download-image:focus-visible {
    background: #f7e7c2;
    color: #694f23;
    box-shadow: 0 5px 15px rgba(114,88,39,.22);
    text-decoration: none;
}
.content .body .info-body .main-image .qs-download-image svg { flex: none; }
@media (max-width: 640px) {
    .content .body .info-body .qs-cms-video-centered { margin-top: 16px; }
    .content .body .info-body .qs-cms-video-centered .qs-cms-video-portrait { max-width: 360px; }
    .content .body .info-body .qs-cms-video-centered .qs-video-heading { margin-top: 22px; }
    .content .body .info-body .main-image .qs-download-image { padding: 12px 16px; }
}
@media print {
    .content .body .info-body .qs-cms-video-centered .qs-tiktok-consent,
    .content .body .info-body .main-image .qs-infographic-download { display: none !important; }
}
