/* Peaky Claws — public site styles */

:root {
    --cream-50:  #f9f7f3;
    --cream-100: #f1ece2;
    --cream-200: #e3dccd;
    --tan-400:   #c1ad8a;
    --brown-500: #8d7b68;
    --brown-700: #5a4d40;
    --brown-900: #2b2520;
    --gold:      #c89b4a;
    --gold-dark: #a87d33;
    --text:      #2b2520;
    --text-soft: #5a4d40;
    --shadow-sm: 0 2px 8px rgba(43, 37, 32, 0.06);
    --shadow-md: 0 8px 24px rgba(43, 37, 32, 0.10);
    --shadow-lg: 0 16px 48px rgba(43, 37, 32, 0.18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--brown-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-bottom: 0.5em; }

p { color: var(--text-soft); margin-bottom: 1em; }

a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brown-900); }

img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-alt {
    background: var(--cream-100);
}

.section-dark {
    background: var(--brown-900);
    color: var(--cream-50);
}
.section-dark h2, .section-dark h3 { color: var(--cream-50); }
.section-dark p { color: var(--cream-200); }

.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.section-dark .eyebrow { color: var(--tan-400); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(249, 247, 243, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-200);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brown-900);
    letter-spacing: 0.01em;
}

.site-logo .logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cream-100);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2.2vw, 2rem);
}

.site-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.site-nav a:hover, .site-nav a.is-active {
    color: var(--brown-900);
    border-bottom-color: var(--gold);
}

.nav-cta {
    background: var(--brown-900);
    color: var(--cream-50) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 999px;
    border: none !important;
}
.nav-cta:hover { background: var(--gold-dark); border: none !important; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brown-900);
    cursor: pointer;
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream-50);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 1px solid var(--cream-200);
        gap: 0;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 0.8rem 1rem; border-bottom: 1px solid var(--cream-200); }
    .site-nav a:last-child { border-bottom: none; }
    .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 8rem);
    background:
        radial-gradient(ellipse at top right, rgba(200, 155, 74, 0.15), transparent 60%),
        linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
    margin-bottom: 1.2rem;
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-image {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--tan-400), var(--brown-700));
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-image-fallback {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: var(--cream-50);
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    opacity: 0.3;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--brown-900);
    color: var(--cream-50);
}
.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--cream-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--brown-900);
    border-color: var(--brown-900);
}
.btn-secondary:hover {
    background: var(--brown-900);
    color: var(--cream-50);
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Cards / Grids ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1.2rem, 3vw, 2rem);
}

.kitten-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.kitten-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.kitten-card .photo {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--cream-200), var(--tan-400));
    overflow: hidden;
    position: relative;
}
.kitten-card .photo img {
    width: 100%; height: 100%; object-fit: cover;
}
.kitten-card .photo-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: white; opacity: 0.55;
    font-family: 'Playfair Display', serif; font-size: 3.5rem;
}

.status-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(43, 37, 32, 0.85);
    color: var(--cream-50);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.status-badge.available { background: #2a6f3f; }
.status-badge.reserved  { background: #a87d33; }
.status-badge.rehomed   { background: #3b6ea5; }
.status-badge.sold      { background: #3b6ea5; }
.status-badge.retired   { background: var(--brown-700); }

.kitten-card .info { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.kitten-card h3 { margin-bottom: 0.25rem; }
.kitten-card .meta {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.4rem;
}
.kitten-card .meta-line { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; font-size: 0.85rem; color: var(--text-soft); }
.kitten-card .meta-line span strong { color: var(--brown-900); font-weight: 600; }

.kitten-card .card-cta {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
}

/* ---------- 3 Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    counter-reset: step;
}
.step {
    text-align: center;
    position: relative;
}
.step-img {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
    background: var(--cream-200);
}
.step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
    line-height: 1;
}
.step h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-900); margin-bottom: 0.6rem; }

/* ---------- Feature row ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
    .feature-row.reverse > :first-child { order: 0; }
}
.feature-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--cream-200), var(--tan-400));
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.testimonial {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial::before {
    content: "“";
    position: absolute;
    top: 0.4rem; left: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--cream-200);
    line-height: 1;
}
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 1rem; position: relative; }
.testimonial .author { font-weight: 600; color: var(--brown-900); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brown-900);
    color: var(--cream-200);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.site-footer h4 { color: var(--cream-50); font-family: 'Inter', sans-serif; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.site-footer a { color: var(--cream-200); }
.site-footer a:hover { color: var(--gold); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.92rem; }

.footer-brand p { color: var(--cream-200); font-size: 0.92rem; max-width: 22rem; }

.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--brown-700);
    display: grid; place-items: center;
    color: var(--cream-50);
    transition: all 0.2s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--brown-900); }

.footer-bottom {
    border-top: 1px solid var(--brown-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--cream-200);
    opacity: 0.75;
}

/* ---------- Contact / forms ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
    background: white;
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--brown-900); margin-bottom: 0.3rem; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--cream-50);
    color: var(--text);
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
}

.contact-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; margin-top: 1rem; }
.contact-info dt { font-weight: 600; color: var(--brown-900); }
.contact-info dd { color: var(--text-soft); white-space: pre-line; }

/* ---------- Misc ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-soft);
}
.empty-state h3 { color: var(--brown-900); margin-bottom: 0.5rem; }

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-soft);
}

.page-header {
    background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.page-header p { max-width: 38rem; margin: 0 auto; }

/* ---------- Litter groupings on kittens.html ---------- */
.litter-group + .litter-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.litter-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--cream-200);
}
.litter-group-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-dark);
}

/* ---------- Cat detail page ---------- */
.cat-hero {
    background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.back-link {
    display: inline-block;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.cat-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
@media (max-width: 820px) { .cat-hero-grid { grid-template-columns: 1fr; } }
.cat-hero-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--cream-200), var(--tan-400));
}
.cat-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero-photo .photo-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    color: white; font-family: 'Playfair Display', serif; font-size: 6rem; opacity: 0.5;
}

/* Cat facts — friendly rounded typography (Quicksand), large and readable */
.cat-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem 1.8rem;
    margin-top: 1.8rem;
}
.cat-facts dt {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: center;
}
.cat-facts dd {
    font-family: 'Quicksand', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brown-900);
    align-self: center;
    line-height: 1.3;
}
.cat-facts dd a { color: var(--gold-dark); }
.cat-facts .muted {
    color: var(--text-soft);
    font-size: 0.78em;
    font-weight: 500;
}

.cat-notes {
    margin-top: 1.5rem;
    padding: 1.2rem 1.4rem;
    background: var(--cream-100);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--text);
}

/* Gallery */
.gallery {
    display: grid;
    /* ~120px min → about 7 thumbnails per row at the 1000px max width */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.7rem;
    max-width: 1000px;
    margin: 0 auto;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--cream-200);
    border: 2px solid rgba(43, 37, 32, 0.14);
    cursor: pointer;
    transition: border-color 0.8s ease;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}
/* Darkening overlay that fades in on hover */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(43, 37, 32, 0);
    transition: background 0.8s ease;
    pointer-events: none;
}
.gallery-item:hover { border-color: var(--gold); }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-item:hover::after { background: rgba(43, 37, 32, 0.35); }
.cat-hero-photo-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }

/* Special-feature chips (polydactyl / blue-eyed) */
.feature-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.feature-poly { background: #f6e6cf; color: #8a5a1c; }
.feature-blue { background: #d9ebf7; color: #1d5a82; }
.cat-facts .feature-chips { margin-top: 0; }
.cat-facts .feature-chip { font-family: 'Quicksand', 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; }

/* Litter parent cards (sire / dam with photo) */
.litter-parents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.parent-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.parent-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.parent-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cream-200);
}
.parent-photo-placeholder {
    display: grid;
    place-items: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--tan-400), var(--brown-500));
}
.parent-meta { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.parent-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
}
.parent-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--brown-900);
    overflow-wrap: anywhere;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(43, 37, 32, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}
.lb-stage {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
#lb-img {
    max-width: min(94vw, 1200px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--cream-200);
}
.lb-close {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1.4rem);
    right: clamp(0.5rem, 2vw, 1.4rem);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(249, 247, 243, 0.12);
    color: var(--cream-50);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lb-close:hover { background: rgba(249, 247, 243, 0.25); }
.lb-nav {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(249, 247, 243, 0.12);
    color: var(--cream-50);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lb-nav:hover { background: rgba(249, 247, 243, 0.25); }
@media (max-width: 600px) {
    .lb-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(249, 247, 243, 0.18);
    }
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
}

/* Pedigree */
.pedigree {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.8rem, 2vw, 1.5rem);
    overflow-x: auto;
}
@media (max-width: 820px) {
    .pedigree { grid-template-columns: 1fr; }
    .ped-group { max-height: none !important; }
}
.ped-col-head {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 1rem;
}
.ped-group {
    display: grid;
    gap: 0.75rem;
    height: 100%;
}
.ped-group-2 { grid-template-rows: repeat(2, 1fr); }
.ped-group-4 { grid-template-rows: repeat(4, 1fr); }
.ped-group-8 { grid-template-rows: repeat(8, 1fr); }

.ped-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: white;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.25;
    min-height: 56px;
    transition: all 0.2s;
    text-decoration: none;
    overflow: hidden;
}
a.ped-cell:hover {
    border-color: var(--gold);
    transform: translateX(2px);
}
.ped-cell img, .ped-photo-placeholder {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: linear-gradient(135deg, var(--cream-200), var(--tan-400));
}
.ped-photo-placeholder {
    display: grid; place-items: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}
.ped-name {
    font-weight: 500;
    color: var(--brown-900);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ped-empty {
    border-style: dashed;
    background: transparent;
    box-shadow: none;
}
.ped-unknown {
    color: var(--text-soft);
    font-style: italic;
    margin-left: 0.4rem;
}

/* Group-8 needs smaller cells to fit */
.ped-group-8 .ped-cell { font-size: 0.75rem; min-height: 48px; padding: 0.4rem 0.5rem; }
.ped-group-8 .ped-cell img, .ped-group-8 .ped-photo-placeholder { width: 32px; height: 32px; font-size: 0.95rem; }
