/**
 * Lucky Puppy Animal Rescue
 * Breed Landing Pages Stylesheet (/breeds & /breeds/{slug})
 */

/* Reading Column Width */
.breed-guide-content {
    max-width: 70ch;
    line-height: 1.75;
    color: #262626;
    overflow-wrap: break-word;
    word-break: break-word;
}

.breed-guide-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 2rem;
}

.breed-guide-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #92400e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    scroll-margin-top: 2rem;
}

.breed-guide-content p {
    margin-bottom: 1.25rem;
}

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

.breed-guide-content li {
    margin-bottom: 0.35rem;
}

.breed-guide-content blockquote {
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    background-color: #fffbeb;
    color: #78350f;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.25rem;
}

/* Breed Hero & Directory Images */
.breed-hero-img,
.breed-card-img {
    object-fit: cover;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    height: auto;
}

.breed-hero-placeholder,
.breed-card-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

/* At a Glance <dl> Grid */
.breed-glance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
}

@media (max-width: 576px) {
    .breed-glance-grid {
        grid-template-columns: 1fr;
    }
}

.breed-glance-item dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.breed-glance-item dd {
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0;
}

/* Decorative Dot Meter */
.dot-meter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.dot-meter .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    display: inline-block;
    transition: background-color 0.15s ease-in-out;
}

.dot-meter .dot.filled {
    background-color: #b45309;
}

.meter-label {
    font-weight: 600;
    color: #374151;
}

/* Highlights List */
.breed-highlights-list {
    padding-left: 1.25rem;
}

.breed-highlights-list li {
    line-height: 1.5;
}

/* Sticky Table of Contents on Desktop */
.breed-toc-sidebar {
    top: 2rem;
    z-index: 10;
}

/* FAQ Details and Chevrons */
.breed-faq-item summary {
    list-style: none;
    outline: none;
}

.breed-faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    color: #b45309;
    transition: transform 0.2s ease-in-out;
}

details[open] .faq-chevron {
    transform: rotate(90deg);
}

/* Accessible Focus Rings */
.breed-directory-card a:focus-visible,
.breed-guide-content a:focus-visible,
.breed-faq-item summary:focus-visible,
.btn-primary-rescue:focus-visible,
.btn-outline-rescue:focus-visible {
    outline: 3px solid #b45309;
    outline-offset: 2px;
}

/* Cursor pointer on summary */
.cursor-pointer {
    cursor: pointer;
}

/* Card & Directory Buttons Wrapping Prevention */
.breed-directory-card .btn,
.card-rescue .btn,
.card .btn {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: balance;
}

.breed-directory-card .btn.btn-nowrap,
.breed-directory-card .btn[data-nowrap="true"],
.btn-nowrap,
.btn[data-nowrap="true"] {
    white-space: nowrap !important;
}

@media (max-width: 575.98px) {
    .breed-directory-card .btn,
    .card-rescue .btn,
    .card .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .faq-chevron,
    .dot-meter .dot {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .breed-toc-sidebar,
    .sticky-top,
    #available-puppies,
    .btn,
    nav {
        display: none !important;
    }

    .breed-guide-content {
        max-width: 100%;
        color: #000;
    }

    .card-rescue {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

