/* ===========================
   Pinterest Modern Details — Light
   =========================== */

.animal-page {
    margin-top: -40px;
}


/* HERO */

.animal-hero {
    padding: 22px 16px 18px;
}

.animal-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.animal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.animal-breadcrumb {
    font-size: 13px;
    color: rgba(15, 23, 42, .60);
    display: flex;
    gap: 10px;
    align-items: center;
}

header {
    all: unset;
    display: block;
}

.animal-link {
    color: rgba(15, 23, 42, .88);
    text-decoration: none;
    font-weight: 700;
}

.animal-link:hover {
    text-decoration: underline;
}

.animal-sep {
    opacity: .6;
}

.animal-current {
    font-weight: 800;
    color: rgba(15, 23, 42, .85);
}

.animal-next:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.animal-next-label {
    font-weight: 850;
    font-size: 13px;
}

.animal-next-arrow {
    font-size: 18px;
}

.animal-titleRow {
    margin-top: 12px;
    color: black;
    text-align: center;
}

.animal-title {
    margin: 0;
    letter-spacing: -0.04em;
    font-weight: 950;
    text-transform: uppercase;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.03;
}

.animal-chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    display: block;
}


/* Chips */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: rgba(15, 23, 42, .86);
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 10px 26px rgba(2, 6, 23, .06);
}

.chip-solid {
    background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(16, 185, 129, .10));
    border-color: rgba(99, 102, 241, .18);
    font-weight: 900;
}


/* Highlight important */

.animal-highlight {
    margin: 12px 0 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 63, 94, .12), rgba(99, 102, 241, .08));
    border: 1px solid rgba(244, 63, 94, .16);
    box-shadow: 0 18px 60px rgba(2, 6, 23, .08);
    max-width: 860px;
}

.animal-highlight-badge {
    flex: 0 0 auto;
    font-weight: 950;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(244, 63, 94, .14);
    border: 1px solid rgba(244, 63, 94, .18);
    color: rgba(15, 23, 42, .88);
}

.animal-highlight-text {
    color: rgba(15, 23, 42, .90);
    line-height: 1.5;
}


/* CTA */

.animal-ctaCol {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(2, 6, 23, .18);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-ghost {
    background: rgba(255, 255, 255, .85);
    color: rgba(15, 23, 42, .92);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 40px rgba(2, 6, 23, .08);
}

.btn-ghost:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btn-arrow {
    font-size: 18px;
}

.w {
    width: 100%;
}


/* Layout */

.animal-wrap {
    padding: 18px 16px 50px;
}

.animal-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 980px) {
    .animal-grid {
        grid-template-columns: 360px 1fr;
    }
}

.card {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 22px 70px rgba(2, 6, 23, .08);
    margin-bottom: 20px;
}

.card-head {
    padding: 14px 16px 10px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.card-sub {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(15, 23, 42, .58);
}

.divider {
    height: 1px;
    background: rgba(15, 23, 42, .08);
    margin: 14px 16px;
}


/* Sticky sidebar */

.card-sticky {
    position: sticky;
    top: 110px;
}


/* KV */

.kv {
    padding: 0 16px 8px;
    display: grid;
    gap: 8px;
}

.kv-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(15, 23, 42, .08);
}

.k {
    color: rgba(15, 23, 42, .55);
    font-size: 12px;
}

.v {
    font-weight: 950;
    text-align: right;
    color: rgba(15, 23, 42, .92);
}


/* Compat */

.compat {
    padding: 0 16px 16px;
    display: grid;
    gap: 10px;
}

.compat-item {
    border-radius: 18px;
    padding: 12px 12px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(15, 23, 42, .08);
}

.compat-k {
    font-size: 12px;
    color: rgba(15, 23, 42, .55);
}

.compat-v {
    margin-top: 6px;
    font-weight: 950;
    letter-spacing: -0.01em;
}


/* CTA box */

.ctaBox {
    margin: 0 16px 16px;
    border-radius: 20px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(16, 185, 129, .10));
    border: 1px solid rgba(99, 102, 241, .14);
    display: grid;
    gap: 10px;
}

.ctaTitle {
    font-weight: 950;
    letter-spacing: -0.02em;
}

.ctaText {
    margin: 0;
    color: rgba(15, 23, 42, .70);
    line-height: 1.5;
}


/* WYSIWYG */

.wysiwyg {
    padding: 0 16px 16px;
    color: rgba(15, 23, 42, .90);
    line-height: 1.75;
}

.wysiwyg p {
    margin: 10px 0;
}


/* Masonry */

.masonry {
    padding: 0 14px 14px;
    column-count: 1;
    column-gap: 12px;
}

@media (min-width: 560px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry {
        column-count: 3;
    }
}

.tile {
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    border: 0;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    position: relative;
    transform: translateY(0);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.tile:hover {
    transform: translateY(-4px);
    filter: brightness(1.02);
    box-shadow: 0 18px 50px rgba(2, 6, 23, .12);
}

.tile img {
    width: 100%;
    height: auto;
    display: block;
}

.tileOverlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 70%);
    opacity: 0;
    transition: opacity .18s ease;
}

.tile:hover .tileOverlay {
    opacity: 1;
}

.tileHint {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.empty-inline {
    padding: 0 16px 16px;
    color: rgba(15, 23, 42, .65);
}


/* Lightbox */

.lb {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .60);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.lb-inner {
    position: relative;
    max-width: 980px;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 40px 120px rgba(2, 6, 23, .35);
}

.lb-img {
    width: 100%;
    height: auto;
    display: block;
}

.lb-btn {
    position: absolute;
    top: 10px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .85);
    color: rgba(15, 23, 42, .92);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lb-close {
    right: 10px;
}

.lb-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
}

.lb-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
}

.lb-meta {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(15, 23, 42, .10);
    backdrop-filter: blur(10px);
}

.lb-name {
    font-weight: 950;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, .92);
}

.lb-count {
    color: rgba(15, 23, 42, .60);
    font-size: 12px;
}