:root {
    --ink: #162020;
    --ink-soft: #2d3b3c;
    --muted: #6b7678;
    --paper: #f7f3ec;
    --paper-2: #ece6da;
    --panel: #fffdf8;
    --line: #ded6c8;
    --sage: #55766a;
    --sage-dark: #263f39;
    --clay: #a85f4d;
    --copper: #c78955;
    --gold: #d0a44f;
    --plum: #4a3540;
    --danger: #a43c3c;
    --shadow-soft: 0 18px 45px rgba(22, 32, 32, .12);
    --shadow-card: 0 12px 26px rgba(22, 32, 32, .08);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .78), rgba(247, 243, 236, .96) 420px),
        var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0 0 .75rem;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    font-size: 4.7rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.22rem;
}

input,
select,
textarea,
button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem 2rem;
    background: rgba(255, 253, 248, .92);
    border-bottom: 1px solid rgba(222, 214, 200, .75);
    box-shadow: 0 10px 30px rgba(22, 32, 32, .07);
    backdrop-filter: blur(18px);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.brand {
    min-height: 2.75rem;
}

.brand span:last-child {
    display: grid;
    min-width: 0;
}

.brand strong,
.admin-brand strong {
    font-size: 1rem;
    letter-spacing: 0;
}

.brand small {
    max-width: 320px;
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(135deg, var(--sage-dark), var(--plum));
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    gap: .18rem;
    padding: .64rem;
    border: 1px solid rgba(222, 214, 200, .9);
    border-radius: 50%;
    color: var(--ink);
    background: #fffdf8;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .22rem;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: .25rem;
    border: 1px solid rgba(222, 214, 200, .72);
    border-radius: 999px;
    background: rgba(255, 253, 248, .74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.main-nav a {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .78rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .94rem;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
    border-color: rgba(38, 63, 57, .12);
    background: var(--sage-dark);
}

.main-nav a.is-active:hover,
.main-nav .nav-cta {
    color: #fff;
    background: var(--ink);
}

.main-nav .nav-cta:hover {
    background: var(--plum);
}

.site-review-notice {
    width: min(1180px, calc(100% - 2rem));
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .75rem auto 0;
    padding: .62rem .8rem;
    border: 1px solid rgba(208, 164, 79, .34);
    border-radius: 8px;
    color: #4c3a17;
    background:
        linear-gradient(135deg, rgba(255, 249, 232, .98), rgba(246, 235, 207, .94));
    box-shadow: var(--shadow-card);
}

.site-review-notice strong {
    flex: 0 0 auto;
    padding: .28rem .55rem;
    border-radius: 999px;
    color: #21170a;
    background: #e8bd78;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-review-notice span {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 800;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 0;
    overflow-x: auto;
    color: var(--muted);
    font-size: .86rem;
    white-space: nowrap;
    scrollbar-width: none;
}

.breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumbs a,
.breadcrumbs span {
    flex: 0 0 auto;
}

.breadcrumbs a {
    color: var(--sage-dark);
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: var(--clay);
}

.breadcrumbs a::after {
    content: "/";
    margin-left: .45rem;
    color: rgba(107, 118, 120, .58);
    font-weight: 500;
}

.hero {
    position: relative;
    min-height: 640px;
    display: grid;
    align-items: stretch;
    overflow: hidden;
    color: #fff;
    background: #111;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 18, 18, .84) 0%, rgba(10, 18, 18, .58) 43%, rgba(10, 18, 18, .12) 100%),
        linear-gradient(180deg, rgba(10, 18, 18, .05), rgba(10, 18, 18, .56)),
        url("../img/hero-transylvanian-cat.png") center center / cover no-repeat;
    transform: scale(1.02);
}

.hero-inner {
    position: relative;
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: end;
    padding: 6rem 0 4.5rem;
}

.hero-copy {
    max-width: 780px;
}

.hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, .88);
    font-size: 1.12rem;
}

.hero-actions,
.button-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.hero-status {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(13, 22, 22, .56);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.status-label {
    display: block;
    margin-bottom: .7rem;
    color: rgba(255, 255, 255, .68);
    font-size: .82rem;
    font-weight: 800;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.hero-stats a {
    min-height: 6.4rem;
    display: grid;
    align-content: end;
    padding: .8rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.hero-stats strong {
    font-size: 2.15rem;
    line-height: 1;
}

.hero-stats span {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .7rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
}

.btn:hover {
    border-color: var(--sage);
    transform: translateY(-1px);
}

.btn.primary {
    color: #fff;
    border-color: var(--sage-dark);
    background: var(--sage-dark);
}

.btn.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
}

.btn.danger {
    color: #fff;
    border-color: var(--danger);
    background: var(--danger);
}

.btn.small {
    min-height: 2.15rem;
    padding: .42rem .7rem;
    font-size: .88rem;
}

.btn.full {
    width: 100%;
}

.eyebrow {
    margin: 0 0 .55rem;
    color: var(--clay);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #e7bd78;
}

.section,
.page-intro,
.profile-layout,
.litter-profile,
.contact-layout,
.notice-panel {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.page-intro,
.litter-profile,
.notice-panel {
    padding: 5rem 0 2.25rem;
}

.page-intro {
    min-height: 320px;
    display: grid;
    align-content: end;
}

.page-intro p,
.litter-profile .lead,
.notice-panel p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.06rem;
}

.section-heading {
    margin-bottom: 1.4rem;
}

.collection-hero {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: end;
    margin: 1rem auto 0;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(222, 214, 200, .7);
    border-radius: 8px;
    color: #fff;
    background: #172121;
    box-shadow: var(--shadow-card);
}

.collection-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 31, 30, .92), rgba(18, 31, 30, .58) 52%, rgba(18, 31, 30, .16)),
        url("../img/hero-transylvanian-cat.png") center / cover no-repeat;
    transform: scale(1.02);
}

.show-collection-hero .collection-hero-media {
    background:
        linear-gradient(90deg, rgba(18, 31, 30, .92), rgba(18, 31, 30, .58) 52%, rgba(18, 31, 30, .16)),
        url("../img/show-awards-hero.jpg") center / cover no-repeat;
}

.collection-hero-copy,
.collection-stats {
    position: relative;
}

.collection-hero-copy {
    max-width: 760px;
    padding: 1rem;
}

.collection-hero-copy .eyebrow {
    color: #e8bd78;
}

.collection-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
}

.collection-stats {
    display: grid;
    gap: .7rem;
}

.collection-stats div {
    min-height: 6rem;
    display: grid;
    align-content: end;
    padding: .85rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(14px);
}

.collection-stats strong {
    font-size: 2.1rem;
    line-height: 1;
}

.collection-stats span {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 900;
}

.collection-grid {
    align-items: start;
}

.availability-layout {
    display: grid;
    gap: 1.25rem;
}

.kitten-filter-bar {
    position: sticky;
    top: 4.75rem;
    z-index: 8;
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, .92);
    box-shadow: var(--shadow-card);
    scrollbar-width: none;
}

.kitten-filter-bar::-webkit-scrollbar {
    display: none;
}

.kitten-filter-bar a {
    min-height: 2.35rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(85, 118, 106, .1);
    font-weight: 900;
}

.kitten-filter-bar a.active,
.kitten-filter-bar a:hover {
    color: #fff;
    background: var(--sage-dark);
}

.availability-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.availability-strip > div {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fffdf8, #eee7db);
    box-shadow: var(--shadow-card);
}

.availability-strip span {
    color: var(--copper);
    font-size: .82rem;
    font-weight: 900;
}

.availability-strip strong {
    font-size: 1.08rem;
}

.availability-strip p {
    color: var(--muted);
    font-size: .94rem;
}

.kitten-status-section {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    scroll-margin-top: 8rem;
}

.kitten-status-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(236, 230, 218, .78));
    box-shadow: var(--shadow-card);
}

.kitten-status-heading p {
    color: var(--muted);
}

.kitten-status-heading strong {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--sage-dark);
}

.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.text-link,
.card-link {
    color: var(--sage-dark);
    font-weight: 900;
}

.text-link:hover,
.card-link:hover {
    color: var(--clay);
}

.section-tabs {
    display: flex;
    gap: .35rem;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, .72);
}

.section-tabs a {
    padding: .48rem .75rem;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 800;
}

.section-tabs a:hover {
    color: #fff;
    background: var(--sage-dark);
}

.timeline-grid,
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.nursery-section {
    margin-top: -1.25rem;
}

.nursery-board {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1rem;
}

.nursery-board .litter-card:first-child {
    grid-row: span 2;
    min-height: 290px;
    align-items: end;
    background:
        linear-gradient(135deg, rgba(38, 63, 57, .96), rgba(74, 53, 64, .92));
    color: #fff;
}

.nursery-board .litter-card:first-child p,
.nursery-board .litter-card:first-child .litter-meta {
    color: rgba(255, 255, 255, .78);
}

.timeline-item,
.cat-card,
.litter-card,
.quality-grid > div,
.form-panel,
.contact-note,
.admin-panel,
.stat-card,
.install-panel,
.login-panel,
.adoption-steps > div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.timeline-item {
    position: relative;
    padding: 1.25rem;
}

.timeline-item p {
    color: var(--muted);
}

.status-dot {
    display: block;
    width: .7rem;
    height: .7rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--gold);
}

.breed-section {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
    gap: 3rem;
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.quality-grid > div {
    min-height: 210px;
    display: grid;
    align-content: space-between;
    padding: 1rem;
}

.quality-grid strong {
    display: block;
    font-size: 1.08rem;
}

.quality-grid p {
    color: var(--muted);
    font-size: .94rem;
}

.feature-index {
    color: var(--copper);
    font-size: .86rem;
    font-weight: 900;
}

.wiki-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.wiki-index {
    position: sticky;
    top: 5.25rem;
    display: grid;
    gap: .4rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, .94);
    box-shadow: var(--shadow-card);
}

.wiki-index span {
    color: var(--clay);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wiki-index a {
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    padding: .52rem .65rem;
    border-radius: 8px;
    color: var(--ink-soft);
    background: rgba(85, 118, 106, .08);
    font-weight: 900;
}

.wiki-index a:hover {
    color: #fff;
    background: var(--sage-dark);
}

.wiki-article {
    display: grid;
    gap: 1rem;
}

.wiki-block {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 7rem;
}

.wiki-block h2 {
    max-width: 760px;
}

.wiki-block p {
    max-width: 780px;
    color: var(--muted);
}

.wiki-lead {
    min-height: 340px;
    display: grid;
    align-content: end;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(18, 31, 30, .94), rgba(18, 31, 30, .62) 55%, rgba(168, 95, 77, .2)),
        url("../img/hero-transylvanian-cat.png") center / cover no-repeat;
}

.wiki-lead .eyebrow {
    color: #e8bd78;
}

.wiki-lead p {
    color: rgba(255, 255, 255, .84);
}

.fact-ribbon,
.wiki-note-list {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.fact-ribbon span,
.wiki-note-list span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .38rem .62rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
}

.fact-ribbon span {
    color: #221a10;
    background: #e8bd78;
}

.wiki-note-list span {
    color: var(--sage-dark);
    background: rgba(85, 118, 106, .12);
}

.wiki-timeline,
.trait-matrix,
.care-timeline,
.wiki-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.wiki-timeline > div,
.trait-matrix article,
.care-timeline article,
.wiki-faq-grid article,
.wiki-checklist > div {
    padding: 1rem;
    border: 1px solid rgba(222, 214, 200, .86);
    border-radius: 8px;
    background: linear-gradient(135deg, #fffdf8, #f0eadf);
}

.wiki-timeline span,
.care-timeline span {
    display: inline-flex;
    margin-bottom: .65rem;
    color: var(--copper);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wiki-timeline h3,
.trait-matrix h3,
.wiki-faq-grid h3 {
    font-size: 1.05rem;
}

.wiki-timeline p,
.trait-matrix p,
.care-timeline p,
.wiki-faq-grid p {
    margin-bottom: 0;
    font-size: .95rem;
}

.split-wiki {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
    gap: 1rem;
    align-items: center;
}

.trait-matrix.compact {
    grid-template-columns: 1fr 1fr;
}

.wiki-checklist {
    display: grid;
    gap: .65rem;
}

.wiki-checklist div {
    display: grid;
    gap: .2rem;
}

.wiki-checklist strong {
    color: var(--sage-dark);
}

.wiki-checklist span {
    color: var(--muted);
    font-size: .94rem;
    font-weight: 700;
}

.showcase-section {
    width: 100%;
    max-width: none;
    padding-inline: max(1rem, calc((100% - 1180px) / 2));
    background:
        linear-gradient(180deg, #172121, #223330);
    color: #fff;
}

.showcase-section .eyebrow {
    color: #e8bd78;
}

.showcase-section .text-link,
.showcase-section .card-link {
    color: #f1c576;
}

.showcase-section .cat-card {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}

.showcase-section .cat-card-body p {
    color: rgba(255, 255, 255, .74);
}

.featured-section {
    padding-top: 4rem;
}

.cat-card {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.cat-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d8ded7;
}

.cat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.cat-card:hover .cat-photo img {
    transform: scale(1.045);
}

.cat-photo span {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .38rem .62rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(22, 32, 32, .78);
    font-size: .78rem;
    font-weight: 900;
}

.cat-card-body {
    padding: 1rem;
}

.cat-card-body h3 a:hover {
    color: var(--sage-dark);
}

.cat-card-body p {
    color: var(--muted);
}

.cat-meta {
    margin: -.25rem 0 .6rem;
    color: var(--clay);
    font-size: .86rem;
    font-weight: 800;
}

.cat-litter-link {
    display: inline-flex;
    margin: 0 0 .55rem;
    color: var(--sage-dark);
    font-size: .84rem;
    font-weight: 900;
}

.cat-litter-link:hover {
    color: var(--clay);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .7rem 0 .85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: .25rem .55rem;
    border: 1px solid rgba(85, 118, 106, .22);
    border-radius: 999px;
    color: #284e43;
    background: rgba(85, 118, 106, .12);
    font-size: .78rem;
    font-weight: 900;
}

.litter-list {
    display: grid;
    gap: .9rem;
}

.litter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem;
    background-size: cover;
    background-position: center;
}

.litter-card.has-image {
    color: #fff;
}

.litter-card.has-image p,
.litter-card.has-image .litter-meta {
    color: rgba(255, 255, 255, .8);
}

.litter-card.has-image .litter-meta a,
.litter-card.has-image .litter-meta span {
    background: rgba(255, 255, 255, .14);
}

.litter-card.has-image .litter-meta a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .24);
}

.litter-card h2 {
    margin-top: .45rem;
    font-size: 1.55rem;
}

.litter-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.litter-status {
    display: inline-flex;
    padding: .28rem .58rem;
    border-radius: 999px;
    color: #fff;
    background: var(--clay);
    font-size: .76rem;
    font-weight: 900;
}

.status-expecting .litter-status {
    background: var(--gold);
    color: #2a241a;
}

.status-born .litter-status {
    background: var(--sage);
}

.litter-meta {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: .85rem;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.litter-meta span,
.litter-meta a {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    border-radius: 999px;
    color: inherit;
    background: rgba(22, 32, 32, .06);
}

.litter-meta a:hover {
    color: var(--sage-dark);
    background: rgba(85, 118, 106, .16);
}

.nursery-board .litter-card:first-child .litter-meta a,
.nursery-board .litter-card:first-child .litter-meta span {
    background: rgba(255, 255, 255, .12);
}

.nursery-board .litter-card:first-child .litter-meta a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.show-bench-grid,
.show-room-layout,
.upcoming-show-section,
.cat-show-section {
    display: grid;
    gap: 1rem;
}

.show-bench-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.award-strip,
.upcoming-strip,
.award-grid,
.show-event-grid {
    display: grid;
    gap: 1rem;
}

.award-strip,
.award-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upcoming-strip {
    grid-template-columns: 1fr;
}

.award-card,
.show-event-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.award-card:hover,
.show-event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.award-photo,
.show-event-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d8ded7;
}

.award-photo img,
.show-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.award-card:hover .award-photo img,
.show-event-card:hover .show-event-media img {
    transform: scale(1.04);
}

.award-photo span,
.show-event-media span {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    display: inline-flex;
    padding: .34rem .58rem;
    border-radius: 999px;
    color: #1f1a10;
    background: #e8bd78;
    font-size: .76rem;
    font-weight: 900;
}

.award-body,
.show-event-body {
    display: grid;
    gap: .55rem;
    padding: 1rem;
}

.award-body h3,
.show-event-body h3 {
    margin-bottom: 0;
}

.award-body p,
.show-event-body p {
    color: var(--muted);
}

.award-meta {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.award-meta span {
    display: inline-flex;
    padding: .25rem .5rem;
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(85, 118, 106, .12);
    font-size: .78rem;
    font-weight: 900;
}

.show-cat-chips {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.show-cat-chips a {
    display: inline-flex;
    padding: .32rem .58rem;
    border-radius: 999px;
    color: #fff;
    background: var(--sage-dark);
    font-size: .78rem;
    font-weight: 900;
}

.show-cat-chips a:hover {
    background: var(--clay);
}

.map-embed {
    overflow: hidden;
    border: 1px solid rgba(85, 118, 106, .18);
    border-radius: 8px;
    background: #eef0ea;
}

.map-embed iframe {
    width: 100%;
    height: 180px;
    display: block;
    border: 0;
}

.show-awards-mini {
    display: grid;
    gap: .4rem;
    margin-top: .15rem;
}

.show-awards-mini a {
    display: grid;
    gap: .1rem;
    padding: .65rem;
    border: 1px solid rgba(208, 164, 79, .34);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(232, 189, 120, .16);
}

.show-awards-mini strong {
    color: var(--clay);
    font-size: .82rem;
}

.show-awards-mini span {
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 800;
}

.show-room-lead {
    max-width: 760px;
}

.show-room-lead p {
    color: var(--muted);
}

.show-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.show-profile-hero {
    width: min(1180px, calc(100% - 2rem));
    min-height: 520px;
    display: grid;
    align-items: end;
    margin: 1rem auto 0;
    padding: 2rem;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background-color: var(--sage-dark);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow-soft);
}

.show-profile-hero > div {
    max-width: 780px;
}

.show-profile-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.show-profile-hero p {
    color: rgba(255, 255, 255, .82);
}

.show-profile-meta {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin: .4rem 0 1rem;
}

.show-profile-meta span {
    display: inline-flex;
    padding: .34rem .6rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 31, 30, .48);
    font-size: .82rem;
    font-weight: 900;
}

.show-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .65fr);
    gap: 1rem;
    align-items: stretch;
}

.show-story-panel,
.show-map-panel {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(239, 231, 216, .78));
    box-shadow: var(--shadow-card);
}

.show-story-panel::before,
.profile-copy::before {
    content: "";
    display: block;
    width: 4.5rem;
    height: .28rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--clay), var(--gold));
}

.show-story-panel p,
.show-map-panel p {
    color: var(--muted);
}

.show-story-panel h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.rich-copy {
    display: grid;
    gap: .85rem;
}

.rich-copy p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.rich-copy p:first-child {
    color: var(--ink);
    font-size: 1.06rem;
    font-weight: 700;
}

.show-story-copy {
    margin-top: .85rem;
    padding-top: .95rem;
    border-top: 1px solid rgba(222, 214, 200, .82);
}

.show-map-panel .map-embed iframe {
    height: 330px;
}

.show-gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: .75rem;
}

.show-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.show-gallery-grid img:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
}

.compact-award-grid,
.compact-show-grid {
    margin-bottom: 1rem;
}

.adoption-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 2rem;
    padding: 3.5rem 0;
    margin-bottom: 5rem;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(236, 230, 218, .9));
}

.adoption-copy {
    padding: 1rem;
}

.adoption-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.adoption-steps > div {
    padding: 1rem;
}

.adoption-steps span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #fff;
    background: var(--sage-dark);
    font-weight: 900;
}

.adoption-steps strong {
    display: block;
    margin-bottom: .35rem;
}

.adoption-steps p {
    color: var(--muted);
    font-size: .94rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 2.5rem;
    padding: 3.75rem 0;
    align-items: start;
}

.profile-masthead {
    width: min(1180px, calc(100% - 2rem));
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    padding: 4.5rem 0 1.5rem;
}

.profile-masthead h1 {
    margin-bottom: .35rem;
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.profile-gallery img:first-child {
    grid-column: 1 / -1;
}

.profile-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #d8ded7;
    box-shadow: var(--shadow-card);
}

.profile-copy {
    position: sticky;
    top: 6rem;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(222, 214, 200, .9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(239, 231, 216, .78));
    box-shadow: var(--shadow-card);
}

.profile-copy h2 {
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.profile-description {
    margin: .9rem 0 1.05rem;
    padding: 1rem;
    border: 1px solid rgba(222, 214, 200, .88);
    border-left: 4px solid var(--clay);
    border-radius: 8px;
    background: rgba(255, 253, 248, .74);
}

.profile-description.compact-copy {
    margin-top: .65rem;
}

.profile-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.entity-link {
    display: inline-flex;
    align-items: center;
    color: var(--sage-dark);
    font-weight: 900;
}

.entity-name {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-weight: 900;
}

.entity-link:hover {
    color: var(--clay);
}

.entity-link.light {
    color: #fff;
}

.entity-link.light:hover {
    color: #e8bd78;
}

.lineage-section {
    padding-top: 2rem;
}

.family-tree {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, .52fr);
    gap: 2.2rem;
    align-items: center;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(222, 214, 200, .9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(236, 230, 218, .82)),
        var(--panel);
    box-shadow: var(--shadow-soft);
}

.family-tree::before {
    content: "";
    position: absolute;
    inset: -20% -8% auto auto;
    width: 38%;
    height: 70%;
    background:
        radial-gradient(circle, rgba(208, 164, 79, .2), transparent 66%);
    pointer-events: none;
    z-index: 0;
}

.family-branches {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.family-branches::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2.2rem;
    width: 2.2rem;
    border-top: 2px solid rgba(85, 118, 106, .42);
}

.family-branch {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .62fr);
    gap: 2rem;
    align-items: center;
    min-height: 9.4rem;
}

.family-branch.no-ancestors {
    grid-template-columns: minmax(230px, .62fr);
    justify-content: end;
}

.family-branch.has-ancestors::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% - 230px - 2rem);
    right: calc(230px + 1rem);
    border-top: 2px solid rgba(85, 118, 106, .34);
}

.family-ancestors {
    position: relative;
    display: grid;
    gap: .55rem;
    padding: .9rem;
    border: 1px solid rgba(222, 214, 200, .92);
    border-radius: 8px;
    background: rgba(255, 253, 248, .86);
    box-shadow: var(--shadow-card);
}

.family-ancestors::after {
    content: "";
    position: absolute;
    top: 2.7rem;
    right: -.95rem;
    bottom: 2.7rem;
    border-right: 2px solid rgba(85, 118, 106, .34);
}

.family-line-label,
.lineage-family-card > span {
    color: var(--clay);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.family-parent,
.family-focus,
.lineage-family-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.family-parent {
    position: relative;
    min-height: 8.6rem;
    display: grid;
    align-content: end;
    gap: .35rem;
    overflow: hidden;
    padding: 1.05rem;
    background:
        linear-gradient(135deg, #fffdf8, #efe7d8);
    background-position: center;
    background-size: cover;
}

.family-parent::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 16%, rgba(85, 118, 106, .18), transparent 36%),
        linear-gradient(0deg, rgba(255, 253, 248, .96), rgba(255, 253, 248, .12));
    pointer-events: none;
}

.family-parent::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    border-top: 2px solid rgba(85, 118, 106, .38);
}

.family-parent > * {
    position: relative;
}

.family-parent span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.family-parent strong {
    font-size: 1.16rem;
    line-height: 1.1;
}

.family-parent small {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.tone-female {
    border-left: 4px solid var(--clay);
}

.tone-male {
    border-left: 4px solid var(--sage);
}

.family-focus {
    position: relative;
    z-index: 1;
    min-height: 16.75rem;
    display: grid;
    align-content: end;
    gap: .45rem;
    padding: 1.25rem;
    overflow: hidden;
    color: #fff;
    background-color: var(--sage-dark);
    background-position: center;
    background-size: cover;
}

.family-focus::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -2rem;
    width: 2rem;
    border-top: 2px solid rgba(85, 118, 106, .38);
}

.family-focus::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(9, 16, 16, .58), transparent 58%);
    pointer-events: none;
}

.family-focus > * {
    position: relative;
    z-index: 1;
}

.family-focus em {
    width: max-content;
    max-width: 100%;
    padding: .28rem .55rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 31, 30, .5);
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.family-focus span,
.family-focus small {
    color: rgba(255, 255, 255, .7);
    font-weight: 900;
    text-transform: uppercase;
}

.family-focus strong {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.lineage-chip {
    position: relative;
    display: grid;
    gap: .12rem;
    padding: .62rem;
    border: 1px solid rgba(222, 214, 200, .82);
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
}

.lineage-stack {
    display: grid;
    gap: .45rem;
}

.lineage-stack + .lineage-stack {
    margin-top: .45rem;
}

.lineage-children {
    display: grid;
    gap: .45rem;
    margin-left: .65rem;
    padding-left: .65rem;
    border-left: 2px solid rgba(85, 118, 106, .2);
}

.lineage-children .lineage-chip {
    background: rgba(255, 255, 255, .46);
}

.lineage-chip span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lineage-link,
.family-parent .entity-name,
.lineage-chip .entity-name {
    color: var(--sage-dark);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.lineage-link:hover {
    color: var(--clay);
}

.lineage-family-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1.1rem;
}

.lineage-family-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    height: 1.1rem;
    border-left: 2px solid rgba(85, 118, 106, .28);
}

.lineage-family-card {
    display: grid;
    gap: .65rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(236, 230, 218, .72));
}

.relationship-section {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.relationship-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(236, 230, 218, .78));
    box-shadow: var(--shadow-card);
}

.relationship-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.relationship-heading span {
    color: var(--clay);
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.relationship-heading strong {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #fff;
    background: var(--sage-dark);
}

.relationship-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-litter-list .litter-card {
    padding: .95rem;
}

.enhanced-litter-profile {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.25rem;
    align-items: end;
    margin-top: 1rem;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(222, 214, 200, .7);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(23, 33, 33, .95), rgba(38, 63, 57, .78)),
        url("../img/hero-transylvanian-cat.png") center / cover no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
}

.enhanced-litter-profile .eyebrow {
    color: #e8bd78;
}

.enhanced-litter-profile .lead,
.enhanced-litter-profile p {
    color: rgba(255, 255, 255, .82);
}

.litter-facts {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

.litter-facts div {
    border-color: rgba(255, 255, 255, .18);
}

.litter-facts dt {
    color: rgba(255, 255, 255, .62);
}

.litter-dashboard {
    display: grid;
    gap: 1rem;
}

.litter-stage {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, .74);
    box-shadow: var(--shadow-card);
}

.litter-stage-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.litter-stage-heading h2 {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.litter-stage-heading > span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: #fff;
    background: var(--sage-dark);
    font-weight: 900;
}

.litter-kittens-section {
    padding-top: 3rem;
}

.details-list {
    display: grid;
    gap: .6rem;
    margin: 1.25rem 0;
}

.details-list div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
}

.details-list.compact {
    max-width: 780px;
}

.details-list dt {
    color: var(--muted);
    font-weight: 800;
}

.details-list dd {
    margin: 0;
}

.profile-copy .details-list {
    gap: .55rem;
    margin-top: 1rem;
}

.profile-copy .details-list div {
    grid-template-columns: minmax(7.5rem, .42fr) minmax(0, 1fr);
    align-items: center;
    padding: .72rem .85rem;
    border: 1px solid rgba(222, 214, 200, .8);
    border-bottom: 1px solid rgba(222, 214, 200, .8);
    border-radius: 8px;
    background: rgba(255, 253, 248, .82);
}

.profile-copy .details-list dt {
    color: var(--sage-dark);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-copy .details-list dd {
    color: var(--ink-soft);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.inline-relations {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.inline-relations .entity-link,
.inline-relations .entity-name {
    padding: .24rem .52rem;
    border-radius: 999px;
    color: var(--sage-dark);
    background: rgba(85, 118, 106, .12);
    font-size: .86rem;
}

.inline-relations .entity-link:hover {
    color: #fff;
    background: var(--sage-dark);
}

.link-hub-section {
    padding-top: 0;
}

.link-hub {
    display: grid;
    gap: 1.2rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(245, 239, 228, .92));
    box-shadow: var(--shadow-card);
}

.link-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.link-hub-grid > div {
    display: grid;
    align-content: start;
    gap: .6rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid rgba(222, 214, 200, .78);
    border-radius: 8px;
    background: rgba(255, 253, 248, .75);
}

.link-hub-grid > div > span {
    color: var(--clay);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
    gap: 3rem;
    padding: 5rem 0;
}

.contact-copy {
    display: grid;
    align-content: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.form-panel {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.contact-note {
    display: inline-grid;
    gap: .25rem;
    margin-top: 1rem;
    padding: 1rem;
}

.contact-note span {
    color: var(--muted);
}

.direct-contact-layout {
    align-items: start;
}

.direct-contact-panel {
    display: grid;
    gap: .9rem;
}

.contact-action {
    display: grid;
    gap: .45rem;
    padding: 1.2rem;
    border: 1px solid rgba(20, 34, 33, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(31, 38, 36, .08);
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.contact-action:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 75, 67, .28);
    box-shadow: 0 26px 70px rgba(31, 38, 36, .13);
}

.contact-action span {
    color: var(--rust);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-action strong {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    overflow-wrap: anywhere;
}

.contact-action small {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.5;
}

.contact-action.whatsapp {
    background: linear-gradient(135deg, #153732, #275d51);
    color: #fff;
}

.contact-action.whatsapp span,
.contact-action.whatsapp small {
    color: rgba(255, 255, 255, .78);
}

.contact-detail-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.contact-detail-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-contact-cards {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.flash,
.alert {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.flash.success,
.alert.success {
    border-color: #bcd8c6;
    background: #edf8f0;
}

.flash.error,
.alert.error {
    border-color: #efc2c2;
    background: #fff0f0;
}

.alert.info {
    border-color: #c6d6e9;
    background: #eef5ff;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fffdf8;
}

.install-body,
.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        linear-gradient(rgba(247, 243, 236, .82), rgba(247, 243, 236, .92)),
        url("../img/hero-transylvanian-cat.png") center / cover no-repeat;
}

.install-shell {
    width: min(560px, 100%);
}

.install-panel,
.login-panel {
    width: min(560px, 100%);
    padding: 2rem;
}

form label {
    display: grid;
    gap: .35rem;
    color: var(--ink);
    font-weight: 800;
}

form label span {
    font-size: .9rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.65rem;
    padding: .65rem .75rem;
    border: 1px solid #cfc6b7;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(85, 118, 106, .2);
    border-color: var(--sage);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background:
        linear-gradient(180deg, #eef0ea, #f8f5ed);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-right: 1px solid var(--line);
    background: #fffdf8;
}

.admin-nav {
    display: grid;
    gap: .25rem;
}

.admin-nav a {
    padding: .72rem .8rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 800;
}

.admin-nav a:hover {
    color: #fff;
    background: var(--sage-dark);
}

.admin-main {
    min-width: 0;
    padding: 1.25rem;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-topbar h1 {
    font-size: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    padding: 1rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    color: var(--sage-dark);
    font-size: 2.2rem;
    line-height: 1;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.admin-panel {
    margin-bottom: 1rem;
    padding: 1rem;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-title h2 {
    margin: 0;
    font-size: 1.35rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: .75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

tbody tr:hover {
    background: rgba(85, 118, 106, .06);
}

.actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.actions form,
.button-row form {
    margin: 0;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.settings-intro-panel {
    background:
        linear-gradient(135deg, rgba(38, 63, 57, .94), rgba(74, 53, 64, .9));
    color: #fff;
}

.settings-intro-panel .muted,
.settings-intro-panel .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 1rem;
    align-items: start;
}

.settings-fields {
    display: grid;
    gap: 1rem;
}

.settings-preview-card {
    position: sticky;
    top: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.settings-preview-image {
    min-height: 230px;
    background-size: cover;
    background-position: center;
}

.settings-preview-copy {
    padding: 1rem;
}

.settings-preview-copy h3 {
    font-size: 1.55rem;
}

.settings-preview-copy p {
    color: var(--muted);
}

.page-hero-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-hero-admin-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow-card);
}

.page-hero-admin-preview {
    min-height: 170px;
    background-color: var(--sage-dark);
    background-position: center;
    background-size: cover;
}

.page-hero-admin-card > div:last-child {
    display: grid;
    gap: .65rem;
    padding: 1rem;
}

.page-hero-admin-card h3 {
    margin-bottom: 0;
}

.image-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.image-spec-grid div {
    min-height: 4.4rem;
    display: grid;
    align-content: center;
    gap: .15rem;
    padding: .75rem;
    border: 1px solid rgba(222, 214, 200, .85);
    border-radius: 8px;
    background: #fff;
}

.image-spec-grid strong {
    color: var(--sage-dark);
    font-size: .82rem;
}

.image-spec-grid span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.inline-check input {
    width: auto;
    min-height: auto;
}

.checkbox-row,
.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    margin-top: 1rem;
}

.checkbox-row label,
.tag-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
}

.checkbox-row input,
.tag-checkboxes input {
    width: auto;
    min-height: auto;
}

.upload-box {
    display: grid;
    gap: .55rem;
    padding: 1rem;
    border: 1px dashed #aa9e8e;
    border-radius: 8px;
    background: #faf7ef;
}

.compact-upload {
    min-height: 5rem;
    padding: .75rem;
}

.litter-hero-preview {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
}

.litter-hero-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.litter-hero-preview label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.litter-hero-preview input {
    width: auto;
    min-height: auto;
}

.photo-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-admin-card {
    display: grid;
    gap: .65rem;
}

.photo-admin-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 1120px) {
    h1 {
        font-size: 3.7rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-status {
        max-width: 620px;
    }

    .collection-hero,
    .enhanced-litter-profile,
    .show-bench-grid,
    .show-profile-grid,
    .nursery-board,
    .breed-section,
    .adoption-section {
        grid-template-columns: 1fr;
    }

    .award-strip,
    .award-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.05rem;
    }

    .site-header {
        align-items: center;
        flex-direction: row;
        padding: .62rem .85rem;
    }

    .nav-toggle {
        display: grid;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        top: 4.2rem;
        right: .85rem;
        left: .85rem;
        z-index: 19;
        width: auto;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
        padding: .75rem;
        border-radius: 8px;
        background: rgba(255, 253, 248, .98);
        box-shadow: 0 24px 60px rgba(22, 32, 32, .2);
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        min-width: 0;
        min-height: 3rem;
        padding: .6rem .7rem;
        border-color: var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: .95rem;
    }

    .main-nav .nav-cta {
        background: var(--ink);
    }

    .collection-stats,
    .settings-layout,
    .page-hero-admin-grid,
    .availability-strip,
    .contact-cards,
    .enhanced-litter-profile,
    .wiki-shell,
    .split-wiki,
    .trait-matrix.compact,
    .timeline-grid,
    .cat-grid,
    .award-strip,
    .award-grid,
    .show-event-grid,
    .show-gallery-grid,
    .quality-grid,
    .profile-layout,
    .family-tree,
    .family-branch,
    .lineage-family-grid,
    .link-hub-grid,
    .contact-layout,
    .adoption-steps {
        grid-template-columns: 1fr;
    }

    .profile-masthead {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 3rem;
    }

    .show-profile-hero {
        min-height: 420px;
    }

    .show-gallery-grid img:first-child {
        grid-row: auto;
        min-height: 0;
    }

    .litter-facts {
        max-width: none;
    }

    .profile-copy {
        position: static;
    }

    .family-tree {
        gap: 1rem;
        padding: .85rem;
    }

    .family-focus {
        order: -1;
    }

    .family-branch {
        gap: .7rem;
        min-height: auto;
    }

    .family-branch.no-ancestors {
        justify-content: stretch;
    }

    .family-branches::after,
    .family-branch.has-ancestors::before,
    .family-ancestors::after,
    .family-parent::after,
    .family-focus::before {
        display: none;
    }

    .family-focus {
        min-height: 14rem;
    }

    .wiki-index {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wiki-index span {
        grid-column: 1 / -1;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-stats,
    .image-spec-grid,
    .photo-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-preview-card {
        position: static;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.72rem;
    }

    .brand small {
        display: none;
    }

    .site-header {
        gap: .55rem;
        padding: .6rem .65rem .65rem;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-mark {
        width: 2.05rem;
        height: 2.05rem;
    }

    .brand strong {
        max-width: 230px;
        overflow: hidden;
        font-size: .95rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-nav {
        top: 4rem;
        right: .65rem;
        left: .65rem;
        grid-template-columns: 1fr 1fr;
        padding: .62rem;
    }

    .main-nav a {
        min-height: 2.9rem;
        padding: .54rem .52rem;
        font-size: .92rem;
    }

    .site-review-notice {
        width: min(100% - 1rem, 1180px);
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
        margin-top: .5rem;
        padding: .65rem;
    }

    .site-review-notice span {
        font-size: .84rem;
        line-height: 1.35;
    }

    .map-embed iframe {
        height: 145px;
    }

    .show-profile-hero {
        width: min(100% - 1rem, 1180px);
        min-height: 360px;
        padding: 1rem;
    }

    .show-profile-meta span {
        border-radius: 8px;
    }

    .show-map-panel .map-embed iframe {
        height: 240px;
    }

    .show-gallery-grid img,
    .show-gallery-grid img:first-child {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 0;
        object-fit: contain;
        background: #111817;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        width: min(100% - 1rem, 1180px);
        gap: 1rem;
        padding: 3.25rem 0 1.25rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-actions,
    .profile-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn,
    .profile-actions .btn,
    .form-panel .btn {
        width: 100%;
    }

    .hero-status {
        padding: .75rem;
    }

    .hero-stats {
        gap: .45rem;
    }

    .hero-stats a {
        min-height: 4.8rem;
        padding: .65rem;
    }

    .hero-stats strong {
        font-size: 1.55rem;
    }

    .collection-hero {
        width: min(100% - 1rem, 1180px);
        min-height: 430px;
        margin-top: .5rem;
        padding: .75rem;
    }

    .collection-hero-copy {
        padding: .75rem .35rem;
    }

    .collection-hero-copy p {
        font-size: .98rem;
    }

    .collection-stats {
        gap: .45rem;
    }

    .collection-stats div {
        min-height: 4.6rem;
        padding: .65rem;
    }

    .collection-stats strong {
        font-size: 1.55rem;
    }

    .litter-stage,
    .form-panel {
        padding: .85rem;
    }

    .availability-strip {
        gap: .6rem;
    }

    .wiki-index,
    .wiki-timeline,
    .trait-matrix,
    .care-timeline,
    .wiki-faq-grid {
        grid-template-columns: 1fr;
    }

    .wiki-index {
        padding: .65rem;
    }

    .wiki-index a {
        min-height: 2.65rem;
        justify-content: center;
    }

    .wiki-block {
        padding: .85rem;
    }

    .wiki-lead {
        min-height: 360px;
    }

    .fact-ribbon span,
    .wiki-note-list span {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }

    .availability-strip > div {
        padding: .85rem;
    }

    .kitten-filter-bar {
        top: 6.5rem;
        margin-inline: -.2rem;
    }

    .kitten-status-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: .85rem;
    }

    .relationship-panel {
        padding: .85rem;
    }

    .family-ancestors,
    .family-parent,
    .family-focus,
    .lineage-family-card {
        padding: .85rem;
    }

    .family-branches::after,
    .family-branch.has-ancestors::before,
    .family-ancestors::after,
    .family-parent::after,
    .family-focus::before {
        display: none;
    }

    .family-focus {
        min-height: 11rem;
    }

    .family-tree {
        width: calc(100% + .2rem);
        margin-inline: -.1rem;
        padding: .65rem;
    }

    .family-branches {
        gap: .7rem;
    }

    .family-parent {
        min-height: 7rem;
    }

    .family-ancestors {
        gap: .45rem;
    }

    .lineage-chip {
        padding: .58rem;
    }

    .lineage-children {
        margin-left: .45rem;
        padding-left: .55rem;
    }

    .relationship-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .relationship-heading strong {
        width: 2rem;
        height: 2rem;
    }

    .form-grid.two,
    .admin-stats,
    .image-spec-grid,
    .photo-admin-grid,
    .profile-gallery {
        grid-template-columns: 1fr;
    }

    .section,
    .page-intro,
    .profile-masthead,
    .litter-profile,
    .contact-layout {
        width: min(100% - 1rem, 1180px);
    }

    .section {
        padding: 3rem 0;
    }

    .showcase-section {
        padding-inline: .5rem;
    }

    .page-intro {
        min-height: 230px;
        padding-top: 3rem;
    }

    .nursery-section {
        margin-top: 0;
    }

    .nursery-board .litter-card:first-child {
        min-height: 230px;
    }

    .quality-grid > div {
        min-height: auto;
        gap: 1rem;
    }

    .cat-photo {
        aspect-ratio: 5 / 4;
    }

    .cat-card-body {
        padding: .9rem;
    }

    .cat-card-body h3 {
        font-size: 1.14rem;
    }

    .award-photo,
    .show-event-media {
        aspect-ratio: 5 / 4;
    }

    .award-body,
    .show-event-body {
        padding: .9rem;
    }

    .badge {
        min-height: 1.55rem;
        font-size: .74rem;
    }

    .litter-card,
    .row-heading,
    .panel-title,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .litter-card {
        gap: .85rem;
        padding: .95rem;
    }

    .litter-card .btn {
        width: 100%;
    }

    .litter-meta {
        gap: .35rem;
    }

    .litter-meta a,
    .litter-meta span {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }

    .litter-stage-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .enhanced-litter-profile {
        min-height: auto;
        padding: 1rem;
    }

    .litter-facts {
        padding: .85rem;
    }

    .profile-masthead {
        padding-top: 2.25rem;
        padding-bottom: .5rem;
    }

    .profile-gallery img:first-child,
    .profile-gallery img {
        aspect-ratio: 5 / 4;
    }

    .profile-copy {
        padding: .9rem;
    }

    .profile-description,
    .show-story-panel,
    .show-map-panel {
        padding: .85rem;
    }

    .profile-copy .details-list div {
        grid-template-columns: 1fr;
        gap: .25rem;
        padding: .75rem;
    }

    .rich-copy p,
    .rich-copy p:first-child {
        font-size: .98rem;
        line-height: 1.68;
    }

    .contact-layout {
        gap: 1.25rem;
        padding: 3rem 0;
    }

    .contact-note {
        margin-top: 0;
    }

    .adoption-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }

    .details-list div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 2.05rem;
    }

    h2 {
        font-size: 1.48rem;
    }

    .hero-inner {
        padding-top: 2.5rem;
    }

    .hero-stats,
    .collection-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats a,
    .collection-stats div {
        min-height: 4.2rem;
    }

    .cat-photo span {
        right: .55rem;
        bottom: .55rem;
    }

    .admin-main,
    .admin-sidebar {
        padding: .75rem;
    }
}
