:root {
    --navy-950: #042342;
    --navy-900: #073b72;
    --navy-800: #0b4d8f;
    --navy-700: #1163ad;
    --blue-600: #1674c7;
    --blue-500: #2487d8;
    --blue-200: #b9dcf6;
    --blue-100: #dceefa;
    --blue-50: #f1f8fd;
    --ink: #102a43;
    --text: #30465d;
    --muted: #647b91;
    --line: #d9e5ef;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --surface-blue: #edf6fc;
    --success: #2a7c65;
    --warning: #9a6317;
    --danger: #a83b3b;
    --shadow-sm: 0 6px 20px rgba(17, 53, 82, 0.08);
    --shadow-md: 0 18px 50px rgba(17, 53, 82, 0.12);
    --shadow-lg: 0 28px 80px rgba(17, 53, 82, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1240px;
    --reading: 780px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img,
svg,
video,
canvas,
iframe,
model-viewer {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--navy-800);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--blue-600);
}

p {
    margin: 0 0 1.25rem;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 760;
    letter-spacing: -0.025em;
    line-height: 1.18;
    text-wrap: balance;
}

h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.35rem, 5vw, 4.75rem);
}

h2 {
    margin: 3.3rem 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
}

h3 {
    margin: 2.2rem 0 0.7rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

h4 {
    margin: 1.7rem 0 0.6rem;
    font-size: 1.08rem;
}

ul,
ol {
    margin: 0 0 1.4rem;
    padding-left: 1.35rem;
}

li + li {
    margin-top: 0.45rem;
}

:focus-visible {
    outline: 3px solid rgba(36, 135, 216, 0.45);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 10000;
    left: 16px;
    top: 12px;
    transform: translateY(-140%);
    background: var(--ink);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
}

.narrow-container {
    width: min(calc(100% - 36px), 900px);
    margin-inline: auto;
}

.section {
    padding: clamp(64px, 8vw, 112px) 0;
}

.section-tight {
    padding: clamp(42px, 6vw, 72px) 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-blue {
    background: linear-gradient(180deg, var(--blue-50), #ffffff);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--navy-800);
    font-size: 0.82rem;
    font-weight: 780;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 22px;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: var(--blue-500);
}

.lede {
    max-width: 760px;
    color: var(--text);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.65;
}

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

.text-center {
    text-align: center;
}

.text-center .lede {
    margin-inline: auto;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 720;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    box-shadow: 0 10px 28px rgba(7, 59, 114, 0.23);
}

.button-primary:hover {
    color: white;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
    box-shadow: 0 14px 34px rgba(7, 59, 114, 0.28);
}

.button-secondary {
    color: var(--navy-900);
    background: white;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    color: var(--navy-800);
    border-color: var(--blue-200);
}

.button-ghost {
    color: var(--navy-900);
    background: transparent;
    border-color: var(--blue-200);
}

.button-small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 0.92rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(217, 229, 239, 0.86);
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: grid;
    width: min(calc(100% - 32px), 1420px);
    min-height: 78px;
    margin-inline: auto;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 42px;
    height: 42px;
    color: var(--navy-800);
    flex: 0 0 auto;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-tagline {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.025em;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 34px);
}

.primary-nav a {
    position: relative;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    border-radius: 999px;
    background: var(--blue-500);
    transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy-900);
    background: white;
    text-decoration: none;
}

.header-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--ink);
}

.site-main {
    min-height: 55vh;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 140px) 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(185, 220, 246, 0.75), transparent 32%),
        linear-gradient(135deg, #f9fcff 0%, #eef7fd 48%, #ffffff 100%);
}

.hero::after {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 480px;
    height: 480px;
    content: "";
    transform: translateY(-50%);
    border: 1px solid rgba(36, 135, 216, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(36, 135, 216, 0.035), 0 0 0 140px rgba(36, 135, 216, 0.02);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
}

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

.hero-copy .lede {
    margin-bottom: 28px;
}

.hero-visual {
    position: relative;
}

.hero-visual-card {
    overflow: hidden;
    border: 1px solid rgba(185, 220, 246, 0.85);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-lg);
}

.hero-visual-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-badge {
    position: absolute;
    right: -16px;
    bottom: 24px;
    max-width: 245px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 650;
}

.trust-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    display: grid;
    min-height: 132px;
    padding: 24px 34px;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 16px;
}

.trust-item + .trust-item {
    border-left: 1px solid var(--line);
}

.trust-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--navy-800);
    background: var(--blue-50);
}

.trust-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.trust-item h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.trust-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.card h3 {
    margin-top: 0;
}

.card p:last-child {
    margin-bottom: 0;
}

.card-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 15px;
    color: var(--navy-800);
    background: var(--blue-50);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.feature-panel {
    display: grid;
    padding: clamp(24px, 4vw, 48px);
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
}

.feature-panel img {
    width: 100%;
    border-radius: 20px;
}

.breed-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.breed-card {
    display: flex;
    min-height: 122px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: white;
    box-shadow: 0 4px 16px rgba(17, 53, 82, 0.05);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.breed-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-200);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.breed-card span:first-child {
    font-weight: 740;
}

.breed-card span:last-child {
    color: var(--blue-600);
    font-size: 0.88rem;
    font-weight: 680;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.87rem;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

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

.page-hero {
    padding: clamp(58px, 8vw, 96px) 0 46px;
    background: linear-gradient(180deg, var(--blue-50), white);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.page-hero .lede {
    margin-bottom: 0;
}

.article-shell {
    padding: 42px 0 100px;
}

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 60px;
    align-items: start;
}

.article-content {
    min-width: 0;
    max-width: var(--reading);
}

.article-content h2 {
    padding-top: 0.3rem;
    border-top: 1px solid transparent;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p,
.article-content li {
    font-size: 1.035rem;
}

.article-content .note,
.note {
    margin: 0 0 34px;
    padding: 18px 20px;
    border: 1px solid #d4e7f5;
    border-left: 4px solid var(--blue-500);
    border-radius: 12px;
    color: #294a64;
    background: var(--blue-50);
}

.article-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.sidebar-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.sidebar-card p:last-child {
    margin-bottom: 0;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li + li {
    margin-top: 0;
}

.sidebar-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--text);
    font-size: 0.87rem;
    text-decoration: none;
}

.sidebar-nav a:hover {
    color: var(--navy-800);
    background: var(--blue-50);
}

.article-cta {
    color: white;
    border-color: transparent;
    background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.article-cta h2,
.article-cta h3,
.article-cta p {
    color: white;
}

.article-cta p {
    opacity: 0.82;
}

.article-cta .button {
    width: 100%;
    color: var(--navy-900);
    background: white;
}

.source-list {
    margin-top: 50px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.source-list h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.source-list li {
    font-size: 0.9rem;
}

.site-footer {
    color: #dfeaf4;
    background: var(--navy-950);
}

.footer-inner {
    display: grid;
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
    padding: 70px 0 48px;
    grid-template-columns: 1.25fr 0.7fr 0.7fr 1.2fr;
    gap: 50px;
}

.site-footer .brand {
    color: white;
}

.site-footer .brand-mark {
    color: #7fc4f2;
}

.site-footer .brand-tagline,
.site-footer p {
    color: #abc1d4;
}

.footer-brand p {
    max-width: 380px;
    margin-top: 18px;
    font-size: 0.91rem;
}

.footer-heading {
    margin: 0 0 16px;
    color: white;
    font-size: 0.98rem;
    letter-spacing: 0;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0;
}

.footer-links a {
    color: #c7d8e7;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-disclosure p {
    font-size: 0.85rem;
    line-height: 1.65;
}

.footer-bottom {
    display: flex;
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
    padding: 22px 0 30px;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
}

/* Interactive Breed Health Explorer */
.explorer-page {
    background: #f5f8fb;
}

.explorer-intro {
    padding: 44px 0 24px;
}

.explorer-intro h1 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
}

.explorer-frame {
    width: min(calc(100% - 28px), 1500px);
    margin: 0 auto 70px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #edf2f6;
    box-shadow: var(--shadow-lg);
}

.explorer-app {
    display: grid;
    min-height: 760px;
    grid-template-columns: 285px minmax(0, 1fr) 340px;
    gap: 14px;
}

.explorer-panel {
    min-width: 0;
    border: 1px solid rgba(212, 224, 234, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 26px rgba(17, 53, 82, 0.07);
}

.breed-picker-panel,
.health-panel {
    padding: 18px;
}

.explorer-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

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

.panel-kicker {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.breed-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.breed-search-wrap svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
}

.breed-search {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px 9px 40px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: white;
}

.breed-list {
    max-height: 623px;
    margin: 0;
    padding: 0 4px 0 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7d7e5 transparent;
}

.breed-list li + li {
    margin-top: 4px;
}

.breed-option {
    display: grid;
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.breed-option:hover {
    background: var(--surface-soft);
}

.breed-option.is-active {
    border-color: #c8e1f4;
    background: var(--blue-50);
}

.breed-option-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--navy-800);
    background: white;
    box-shadow: 0 2px 8px rgba(17, 53, 82, 0.08);
}

.breed-option-avatar svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.breed-option-name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.83rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breed-option-arrow {
    color: var(--muted);
    font-size: 1.1rem;
}

.breed-list-empty {
    padding: 20px 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.viewer-panel {
    position: relative;
    display: grid;
    min-height: 760px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: radial-gradient(circle at 50% 34%, #ffffff 0%, #f6f7f8 46%, #e8edf1 100%);
}

.viewer-header {
    position: relative;
    z-index: 5;
    display: flex;
    padding: 18px 20px 8px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.viewer-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.viewer-subtitle {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.viewer-mode-toggle {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(17, 53, 82, 0.05);
}

.viewer-mode-toggle button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--text);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 680;
    cursor: pointer;
}

.viewer-mode-toggle button.is-active {
    color: white;
    background: var(--navy-900);
}


/* Prevent intrinsic grid and flex sizing from forcing the viewer header wider than small screens. */
.viewer-panel,
.viewer-header,
.viewer-header > div,
.viewer-mode-toggle {
    min-width: 0;
    max-width: 100%;
}

.viewer-panel,
.viewer-header {
    width: 100%;
}

.viewer-stage {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.viewer-poster,
.model-viewer-local,
.sketchfab-shell {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.viewer-poster {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 34%, white 0%, #f4f5f6 52%, #e9edf0 100%);
}

.viewer-poster::after {
    position: absolute;
    z-index: 0;
    bottom: 7%;
    left: 50%;
    width: 68%;
    height: 14%;
    content: "";
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(80, 100, 115, 0.14);
    filter: blur(16px);
}

.viewer-poster img {
    position: relative;
    z-index: 1;
    width: min(88%, 740px);
    height: min(92%, 610px);
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(33, 53, 68, 0.14));
}

.poster-overlay {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    padding: 13px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(217, 229, 239, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.poster-overlay p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.poster-overlay strong {
    display: block;
    color: var(--ink);
    font-size: 0.86rem;
}

.model-viewer-local {
    background: transparent;
}

.sketchfab-shell {
    background: #edf1f4;
}

.sketchfab-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.viewer-loading {
    position: absolute;
    z-index: 10;
    inset: 0;
    display: none;
    place-items: center;
    color: var(--ink);
    background: rgba(247, 250, 252, 0.94);
}

.viewer-loading.is-visible {
    display: grid;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border: 4px solid #dce8f1;
    border-top-color: var(--blue-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.anatomy-overlay {
    position: absolute;
    z-index: 7;
    inset: 0;
    pointer-events: none;
}

.anatomy-overlay[hidden] {
    display: none;
}

.anatomy-marker {
    position: absolute;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    background: var(--blue-600);
    box-shadow: 0 0 0 7px rgba(36, 135, 216, 0.2), 0 8px 18px rgba(17, 53, 82, 0.22);
    font-size: 0.8rem;
    font-weight: 800;
    pointer-events: auto;
    cursor: pointer;
}

.anatomy-marker:hover,
.anatomy-marker.is-active {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--navy-900);
}

.viewer-footer {
    position: relative;
    z-index: 8;
    padding: 8px 18px 16px;
}

.viewer-controls {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 7px;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.viewer-control {
    display: grid;
    min-width: 58px;
    min-height: 52px;
    padding: 6px 8px;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 11px;
    color: var(--text);
    background: transparent;
    font-size: 0.68rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.viewer-control:hover,
.viewer-control.is-active {
    color: var(--navy-900);
    background: var(--blue-50);
}

.viewer-control svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.viewer-note {
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

.health-topic-list {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.health-topic-list li + li {
    margin-top: 0;
}

.health-topic-button {
    display: grid;
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: white;
    text-align: left;
    cursor: pointer;
}

.health-topic-button:hover,
.health-topic-button.is-active {
    border-color: #b9daf1;
    background: var(--blue-50);
}

.health-topic-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: var(--navy-800);
    background: var(--blue-50);
    font-size: 0.95rem;
    font-weight: 800;
}

.health-topic-name {
    font-size: 0.81rem;
    font-weight: 690;
}

.health-topic-arrow {
    color: var(--muted);
}

.health-detail-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
}

.health-detail-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.health-detail-card p {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 0.81rem;
    line-height: 1.55;
}

.health-detail-card .detail-section {
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.health-detail-card .detail-section + .detail-section {
    margin-top: 11px;
}

.health-detail-card .detail-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 760;
}

.health-detail-card .detail-label svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--navy-800);
    stroke-width: 1.8;
}

.health-disclaimer {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.model-status-card {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid #eadab5;
    border-radius: 12px;
    color: #6c4c18;
    background: #fffaf0;
    font-size: 0.72rem;
    line-height: 1.5;
}

.explorer-below {
    display: grid;
    margin-top: 42px;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.explorer-below .card {
    box-shadow: none;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
}

.faq-item summary {
    padding: 18px 50px 18px 18px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    position: absolute;
    right: 18px;
    content: "+";
    color: var(--blue-600);
    font-size: 1.4rem;
}

.faq-item summary {
    position: relative;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item .faq-answer {
    padding: 0 18px 18px;
}

.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

.form-card {
    max-width: 720px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 680;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: white;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-help {
    color: var(--muted);
    font-size: 0.76rem;
}

.status-message {
    padding: 13px 15px;
    border: 1px solid #cbe8dc;
    border-radius: 11px;
    color: #205b49;
    background: #eff9f5;
}

@media (max-width: 1180px) {
    .primary-nav {
        gap: 15px;
    }

    .primary-nav a {
        font-size: 0.86rem;
    }

    .explorer-app {
        grid-template-columns: 230px minmax(0, 1fr) 300px;
    }

    .breed-picker-panel,
    .health-panel {
        padding: 14px;
    }
}

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: block;
        grid-column: 3;
        justify-self: end;
    }

    .primary-nav {
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        padding: 28px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        background: white;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .primary-nav a::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .hero-grid,
    .feature-panel {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 720px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        max-width: none;
    }

    .article-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .explorer-frame {
        width: min(calc(100% - 20px), 980px);
    }

    .explorer-app {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .health-panel {
        grid-column: 1 / -1;
    }

    .health-panel .health-topic-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .health-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .health-panel > .explorer-panel-title,
    .health-panel > .health-disclaimer,
    .health-panel > .model-status-card {
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
    }

    .footer-disclosure {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .brand-tagline {
        display: none;
    }

    .brand-name {
        font-size: 1.12rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .header-inner {
        min-height: 68px;
    }

    .primary-nav {
        top: 68px;
    }

    .hero {
        padding-top: 64px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-badge {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }

    .trust-grid,
    .card-grid,
    .breed-card-grid,
    .explorer-below {
        grid-template-columns: 1fr;
    }

    .trust-item + .trust-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .explorer-frame {
        padding: 10px;
        border-radius: 20px;
    }

    .explorer-app {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .breed-picker-panel {
        order: 2;
    }

    .viewer-panel {
        min-height: 650px;
        order: 1;
    }

    .health-panel {
        display: block;
        order: 3;
    }

    .breed-list {
        max-height: 320px;
    }

    .health-panel .health-topic-list {
        grid-template-columns: 1fr 1fr;
    }

    .viewer-header {
        flex-direction: column;
    }

    .viewer-stage {
        min-height: 450px;
    }

    .poster-overlay {
        flex-direction: column;
        align-items: stretch;
    }

    .poster-overlay .button {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer-brand,
    .footer-disclosure {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .container,
    .narrow-container {
        width: min(calc(100% - 26px), var(--container));
    }

    h1 {
        font-size: 2.28rem;
    }

    .button-row .button {
        width: 100%;
    }

    .explorer-intro {
        padding-top: 30px;
    }

    .explorer-frame {
        width: calc(100% - 10px);
        margin-bottom: 46px;
        padding: 5px;
        border-radius: 15px;
    }

    .explorer-panel {
        border-radius: 14px;
    }

    .viewer-panel {
        min-height: 590px;
    }

    .viewer-stage {
        min-height: 410px;
    }

    .viewer-header {
        width: 100%;
    }

    .viewer-mode-toggle {
        width: 100%;
        max-width: 100%;
    }

    .viewer-mode-toggle button {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 6px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .health-panel .health-topic-list {
        grid-template-columns: 1fr;
    }

    .viewer-controls {
        justify-content: flex-start;
    }

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

    .footer-brand,
    .footer-disclosure {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.poster-title {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 760;
}
.viewer-control:disabled {
    color: #9aabba;
    cursor: not-allowed;
    opacity: 0.58;
}

.health-topic-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.model-status-card[data-tone="success"] {
    border-color: #c7e6da;
    color: #245f4d;
    background: #f1faf6;
}

.model-status-card[data-tone="warning"] {
    border-color: #eadab5;
    color: #6c4c18;
    background: #fffaf0;
}

.model-status-card[data-tone="info"] {
    border-color: #cfe4f4;
    color: #2a526f;
    background: #f2f8fc;
}

@media (min-width: 781px) and (max-width: 1020px) {
    .health-panel > .text-muted,
    .health-panel > [data-guide-link] {
        grid-column: 1 / -1;
    }
}


/* Evidence-informed reference breed pages */
.evidence-page-hero {background:linear-gradient(180deg,#eef7fc 0%,#fff 100%)}
.review-status {display:flex;max-width:850px;margin-top:26px;padding:14px 16px;align-items:flex-start;gap:12px;border:1px solid #d6c48f;border-radius:14px;background:#fffaf0;color:#5d4818;font-size:.9rem;line-height:1.5}
.review-status .status-dot {width:10px;height:10px;margin-top:6px;border-radius:50%;background:#c58b25;box-shadow:0 0 0 4px rgba(197,139,37,.13);flex:0 0 auto}
.review-status div {display:grid;gap:2px}
.review-status .status-title {color:#4b390f;font-weight:800}
.evidence-note {border-left:4px solid var(--blue-500);background:var(--blue-50)}
.breed-explorer-callout {display:grid;margin:30px 0 44px;padding:26px;grid-template-columns:minmax(0,.9fr) minmax(280px,1.1fr);align-items:center;gap:28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#f2f8fc,#fff);box-shadow:var(--shadow-sm)}
.breed-explorer-callout.compact {grid-template-columns:1fr}
.breed-explorer-callout h2 {margin:0 0 12px;font-size:clamp(1.45rem,2.5vw,2rem)}
.breed-explorer-callout p {max-width:650px}
.breed-explorer-callout img {border-radius:16px;box-shadow:0 14px 35px rgba(17,53,82,.12)}
.health-card-grid {display:grid;margin:28px 0 42px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.health-evidence-card {padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(17,53,82,.06)}
.health-evidence-card h3 {margin:12px 0 10px;font-size:1.28rem}
.health-evidence-card p {font-size:.96rem;line-height:1.68}
.health-evidence-card .card-action {margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line);color:var(--navy-900);font-weight:650}
.measure-badge {display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;font-size:.74rem;font-weight:800;line-height:1.25;letter-spacing:.015em}
.measure-blue {color:#07528b;background:#e5f3fc}
.measure-green {color:#17624f;background:#e6f5ef}
.measure-purple {color:#60418a;background:#f0eafa}
.measure-gold {color:#76510e;background:#fff2cf}
.measure-gray {color:#4f6477;background:#edf2f6}
.measure-legend {display:grid;margin:24px 0 40px;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.measure-legend>div {padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft)}
.measure-legend p {margin:10px 0 0;font-size:.9rem}
.evidence-scroll {max-width:100%;margin:24px 0 42px;overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(17,53,82,.05)}
.evidence-table {width:100%;min-width:940px;border-collapse:collapse;font-size:.91rem;line-height:1.55}
.evidence-table caption {padding:16px 18px;text-align:left;color:var(--navy-900);font-size:1.02rem;font-weight:800;background:#fff}
.evidence-table th {padding:15px 16px;color:var(--navy-950);background:#eaf4fb;text-align:left;vertical-align:top}
.evidence-table td {min-width:180px;padding:16px;border-top:1px solid var(--line);vertical-align:top}
.evidence-table td:first-child {min-width:210px}
.evidence-table td:nth-child(2) {min-width:320px}
.evidence-table td:nth-child(3) {min-width:235px}
.evidence-table p {margin:8px 0;font-size:inherit}
.evidence-table details {margin-top:10px}
.evidence-table summary {color:var(--navy-800);font-weight:700;cursor:pointer}
.condition-name {display:block;color:var(--ink);font-weight:800}
.condition-system {display:block;margin-top:4px;color:var(--muted);font-size:.8rem}
.detail-label {font-weight:800}
.citation-links {margin-left:3px;font-size:.76rem;white-space:nowrap}
.citation-links a {font-weight:800;text-decoration:none}
.check-list,.question-list {padding-left:0;list-style:none}
.check-list li,.question-list li {position:relative;margin:0 0 11px;padding:14px 16px 14px 44px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}
.check-list li::before,.question-list li::before {position:absolute;left:15px;top:14px;display:grid;width:20px;height:20px;place-items:center;border-radius:50%;color:#fff;background:var(--success);content:'✓';font-size:.72rem;font-weight:900}
.question-list li::before {background:var(--navy-800);content:'?'}
.insurance-checklist {margin:24px 0;padding:22px;border:1px solid #bddbf0;border-radius:17px;background:var(--blue-50)}
.insurance-checklist h3 {margin:0 0 12px}
.insurance-checklist ul {margin-bottom:0}
.reference-list {padding-left:0;list-style:none;counter-reset:references}
.reference-item {padding:17px 0;border-top:1px solid var(--line)}
.reference-item:first-child {border-top:0}
.reference-item p {margin-bottom:7px}
.reference-number {color:var(--navy-800);font-weight:850}
.reference-item details {margin-left:30px}
.reference-item summary {color:var(--navy-800);font-weight:700;cursor:pointer}
.reference-item dl {display:grid;margin-top:14px;grid-template-columns:minmax(140px,.32fr) minmax(0,1fr);gap:8px 16px;font-size:.87rem}
.reference-item dt {font-weight:800}
.reference-item dd {margin:0;overflow-wrap:anywhere}
.evidence-sidebar-card {border-color:#d8c48e;background:#fffbf1}
.method-grid {display:grid;margin:24px 0 40px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.method-grid section {padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}
.method-grid h3 {margin:0 0 8px;font-size:1.12rem}
.method-grid p {margin:0;font-size:.92rem}
.workflow-list {counter-reset:workflow;padding:0;list-style:none}
.workflow-list li {position:relative;margin:0 0 13px;padding:16px 16px 16px 54px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.workflow-list li::before {position:absolute;left:16px;top:14px;display:grid;width:27px;height:27px;place-items:center;border-radius:50%;color:#fff;background:var(--navy-800);counter-increment:workflow;content:counter(workflow);font-size:.78rem;font-weight:850}
@media (max-width:900px){.breed-explorer-callout{grid-template-columns:1fr}.health-card-grid,.measure-legend,.method-grid{grid-template-columns:1fr}.reference-item dl{grid-template-columns:1fr}.reference-item dd{margin-bottom:8px}}
@media (max-width:600px){.review-status{font-size:.82rem}.health-evidence-card{padding:18px}.breed-explorer-callout{padding:19px}.evidence-table{font-size:.85rem}}

/* Version 3: interactive 3D model library and profile pages */
.breed-option {
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
}

.breed-option-badge {
    display: inline-flex;
    min-height: 22px;
    padding: 3px 7px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--muted);
    background: #edf2f6;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.breed-option-badge-3d {
    color: #07528b;
    background: #e5f3fc;
}

.breed-hub-group + .breed-hub-group {
    margin-top: 58px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.breed-hub-group-header {
    max-width: 820px;
    margin-bottom: 28px;
}

.breed-card-type {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 13px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.breed-card-type-3d {
    color: #07528b;
    background: #e5f3fc;
}

.model-profile-hero {
    padding-bottom: 68px;
}

.model-profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
}

.model-profile-poster-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
}

.model-profile-poster-card img {
    width: 100%;
    border-radius: 18px;
    background: #f5f8fa;
}

.model-profile-poster-card p {
    margin: 14px 6px 2px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0 0;
}

.profile-status {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 11px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: white;
    font-size: 0.78rem;
    font-weight: 750;
}

.profile-status-ready {
    border-color: #b9decf;
    color: #17624f;
    background: #eaf7f1;
}

.section-heading-block {
    max-width: 840px;
    margin-bottom: 34px;
}

.model-profile-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.model-profile-topic-card h3 {
    margin-top: 0;
}

.model-profile-topic-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .model-profile-hero-grid {
        grid-template-columns: 1fr;
    }
    .model-profile-poster-card {
        max-width: 660px;
    }
}

@media (max-width: 620px) {
    .breed-option {
        grid-template-columns: 34px minmax(0, 1fr) auto 14px;
        gap: 7px;
    }
    .breed-option-badge {
        padding: 3px 6px;
        font-size: 0.58rem;
    }
    .model-profile-topic-grid {
        grid-template-columns: 1fr;
    }
}

/* Pet Passport bridge page. Scoped to avoid affecting the separate private app. */
.passport-integration-hero {
    overflow: hidden;
}

.passport-integration-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: clamp(36px, 7vw, 88px);
}

.passport-integration-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.passport-integration-heading h1 {
    max-width: 920px;
}

.passport-book-emblem {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin-top: 2px;
}

.passport-book-icon {
    width: 100%;
    height: 100%;
    fill: var(--navy-800);
    stroke: var(--navy-900);
    stroke-width: 2.4;
}

.passport-paw-icon {
    position: absolute;
    top: 50%;
    left: 54%;
    width: 25px;
    height: 25px;
    transform: translate(-50%, -50%);
    fill: var(--blue-100);
    color: var(--blue-100);
}

.passport-integration-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.passport-access-chip {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--blue-200);
    border-radius: 999px;
    color: var(--navy-800);
    background: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.02em;
}

.passport-integration-actions {
    margin-top: 30px;
}

.passport-access-note {
    max-width: 650px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.passport-preview-card {
    padding: 24px;
    border: 1px solid rgba(185, 220, 246, 0.95);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
}

.passport-preview-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.passport-preview-card-header > div {
    display: grid;
}

.passport-preview-card-header span {
    color: var(--ink);
    font-weight: 780;
}

.passport-preview-card-header small {
    color: var(--muted);
}

.passport-mini-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.passport-mini-mark svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.passport-preview-pet {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    padding: 18px;
    border-radius: 18px;
    background: var(--blue-50);
}

.passport-preview-pet > div {
    display: grid;
    gap: 3px;
}

.passport-preview-pet strong {
    color: var(--ink);
    font-size: 1rem;
}

.passport-preview-pet span:last-child {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.passport-preview-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-800);
    background: white;
    box-shadow: var(--shadow-sm);
}

.passport-preview-avatar svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.passport-preview-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.passport-preview-tabs span {
    padding: 8px 5px;
    border-radius: 8px;
    color: var(--navy-800);
    background: var(--surface-soft);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

.passport-preview-tabs span:first-child {
    color: white;
    background: var(--navy-800);
}

.passport-preview-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.passport-preview-list span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-100), var(--surface-soft));
}

.passport-preview-list span:nth-child(2) {
    width: 84%;
}

.passport-preview-list span:nth-child(3) {
    width: 66%;
}

.passport-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
}

.passport-feature-card {
    position: relative;
    min-height: 280px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.passport-feature-card h3 {
    margin-top: 38px;
}

.passport-feature-card p {
    margin-bottom: 0;
}

.passport-feature-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: var(--blue-200);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.passport-boundary-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    align-items: start;
    gap: clamp(36px, 6vw, 76px);
}

.passport-boundary-grid code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy-900);
    background: white;
    font-size: 0.92em;
}

.passport-boundary-panel {
    padding: 30px;
    border: 1px solid var(--blue-200);
    border-radius: 24px;
    background: linear-gradient(180deg, white, var(--blue-50));
    box-shadow: var(--shadow-sm);
}

.passport-boundary-panel h3 {
    margin-top: 0;
}

.passport-boundary-list {
    display: grid;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.passport-boundary-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
}

.passport-boundary-list li + li {
    margin-top: 0;
}

.passport-boundary-list li > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--navy-800);
    font-weight: 780;
}

.passport-boundary-list h4 {
    margin: 0 0 4px;
}

.passport-boundary-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.passport-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.passport-status-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.passport-status-card-live {
    border-color: var(--blue-200);
    background: linear-gradient(180deg, white, var(--blue-50));
}

.passport-status-card h2 {
    margin: 8px 0 20px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.passport-status-kicker {
    color: var(--navy-800);
    font-size: 0.8rem;
    font-weight: 780;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.passport-status-card ul {
    margin-bottom: 0;
}

.passport-data-notice {
    border: 1px solid var(--blue-200);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.passport-data-notice summary {
    position: relative;
    padding: 22px 58px 22px 24px;
    color: var(--ink);
    font-weight: 760;
    cursor: pointer;
    list-style: none;
}

.passport-data-notice summary::-webkit-details-marker {
    display: none;
}

.passport-data-notice summary::after {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 26px;
    height: 26px;
    content: "+";
    transform: translateY(-50%);
    border-radius: 50%;
    color: white;
    background: var(--navy-800);
    line-height: 26px;
    text-align: center;
}

.passport-data-notice[open] summary::after {
    content: "−";
}

.passport-data-notice-content {
    padding: 0 24px 24px;
    border-top: 1px solid var(--line);
}

.passport-data-notice-content h2 {
    margin-top: 24px;
    font-size: 1.45rem;
}

.passport-boundaries-section {
    padding-top: 74px;
}

.passport-boundary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
}

.passport-boundary-tags span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.84rem;
}

.passport-final-actions {
    margin-top: 24px;
}

.home-passport-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    padding: clamp(28px, 4.8vw, 56px);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, white, var(--blue-50));
    box-shadow: var(--shadow-md);
}

.home-passport-mark {
    position: relative;
    display: block;
    width: 86px;
    height: 86px;
    margin: 0 auto;
}

.home-passport-mark .passport-book-icon {
    width: 86px;
    height: 86px;
}

.home-passport-mark .passport-paw-icon {
    width: 36px;
    height: 36px;
}

.home-passport-visual {
    display: grid;
    min-height: 320px;
    place-items: center;
    border: 1px solid rgba(185, 220, 246, 0.8);
    border-radius: 24px;
    background: radial-gradient(circle at 50% 35%, white 0, var(--blue-50) 52%, var(--surface-blue) 100%);
}

.home-passport-visual-copy {
    margin-top: 18px;
    text-align: center;
}

.home-passport-visual-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1.2rem;
}

.home-passport-visual-copy span {
    display: block;
    max-width: 340px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.card-grid-adaptive {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (max-width: 1020px) {
    .passport-integration-hero-grid,
    .passport-boundary-grid,
    .home-passport-panel {
        grid-template-columns: 1fr;
    }

    .passport-preview-card {
        max-width: 680px;
    }

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

@media (max-width: 720px) {
    .passport-integration-heading {
        display: block;
    }

    .passport-book-emblem {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .passport-paw-icon {
        width: 21px;
        height: 21px;
    }

    .passport-feature-grid,
    .passport-status-grid {
        grid-template-columns: 1fr;
    }

    .passport-feature-card {
        min-height: 0;
    }

    .passport-integration-actions .button,
    .passport-final-actions .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .passport-preview-card,
    .passport-boundary-panel,
    .passport-status-card,
    .passport-feature-card {
        padding: 20px;
        border-radius: 18px;
    }

    .passport-preview-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .passport-boundary-list li {
        grid-template-columns: 34px 1fr;
    }

    .passport-boundary-list li > span {
        width: 34px;
        height: 34px;
    }

    .passport-data-notice summary {
        padding: 18px 52px 18px 18px;
    }

    .passport-data-notice-content {
        padding: 0 18px 18px;
    }
}

/* The added Pet Passport navigation item requires the mobile header slightly earlier. */
@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: block;
        grid-column: 3;
        justify-self: end;
    }

    .primary-nav {
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        padding: 28px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        background: white;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .primary-nav a::after {
        display: none;
    }

    .header-actions {
        display: none;
    }
}

@media (max-width: 780px) {
    .primary-nav {
        top: 68px;
    }
}
