/**
 * Lucky Puppy Animal Rescue
 * Custom Pages & Core Content Typography (/assets/css/pages.css)
 * Loaded only on CMS pages.
 */

.page-reading-column {
    max-width: var(--page-content-max, 56rem);
    margin-left: 0;
    margin-right: auto;
    width: 100%;
}

.page-body-content {
    line-height: 1.75;
    font-size: 1.0625rem;
    color: #334155;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.page-body-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.page-body-content h3 {
    font-size: 1.3125rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.page-body-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-body-content p {
    margin-bottom: 1.25rem;
}

.page-body-content ul,
.page-body-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.page-body-content li {
    margin-bottom: 0.5rem;
}

.page-body-content a {
    color: #b45309;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.page-body-content a:hover {
    color: #78350f;
}

.page-body-content blockquote {
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background-color: #fefce8;
    color: #78350f;
    font-style: italic;
    border-radius: 0 0.375rem 0.375rem 0;
}

.page-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.page-body-content figure {
    margin: 1.75rem 0;
    max-width: 100%;
}

.page-body-content figcaption {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    text-align: center;
}

.page-body-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.page-hero-wrapper {
    max-width: var(--page-content-max, 56rem);
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 2rem;
    width: 100%;
}

.page-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.page-effective-date {
    font-size: 0.9375rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* FAQ Accordion <details> styling */
.faq-accordion {
    max-width: var(--page-content-max, 56rem);
    margin-left: 0;
    margin-right: auto;
    margin-top: 2rem;
    width: 100%;
}

@media (max-width: 991.98px) {
    .page-reading-column,
    .page-hero-wrapper,
    .faq-accordion {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.875rem;
    overflow: hidden;
    transition: border-color 0.15s ease-in-out;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #b45309;
    border-bottom: 2px solid #b45309;
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    transform: rotate(-135deg);
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid #f1f5f9;
}

.faq-answer {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
    white-space: pre-line;
}

/* Admin Preview Banner */
.page-preview-ribbon {
    background-color: #b45309;
    color: #ffffff;
    text-align: center;
    padding: 0.625rem 1rem;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1060;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

