/*
 * OneBowl — Editorial design system
 * A restrained, international visual identity for the public site and panels.
 * CSS is served directly: no Node/build step required in production.
 *
 * Tokens: forest ink, warm paper, copper accents, generous rhythm and imagery
 * sourced only from verified shelters. Never represent examples as live impact.
 */

:root {
    --ob-paper: #f8f7f2;
    --ob-cream: #f1efe6;
    --ob-forest: #183a34;
    --ob-forest-deep: #102b28;
    --ob-copper: #b65332;
    --ob-outline: #dedfd6;
    --ob-shadow: 0 28px 80px rgba(20, 45, 39, .11);
    --ob-shadow-hover: 0 36px 90px rgba(20, 45, 39, .17);
    --ob-radius: 24px;
    --ob-container: 1320px;
    --ink: #172e2d;
    --muted: #546662;
    --accent: #ad4829;
    --accent-soft: #fbebe4;
    --green: #24674f;
    --green-soft: #e5eee6;
    --tint: #f4f5ef;
    --line: #e0e5df;
    --line-strong: #c5d0cb;
}
html { scroll-behavior: smooth; }
body { background: var(--ob-paper); }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #ce673a;
    outline-offset: 4px;
}
.container { max-width: var(--ob-container); padding-inline: clamp(20px, 3.8vw, 58px); }
.section { padding-block: clamp(80px, 9vw, 142px); }
.section--compact { padding-block: clamp(52px, 6vw, 80px); }
.section--tint { background: #f0f3ed; }
.stack-lg { gap: clamp(28px, 4vw, 60px); }
.display, .h2 {
    font-weight: 750;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.h2 { max-width: 920px; line-height: 1.1; }
.h3 { letter-spacing: -.025em; }
.eyebrow {
    color: var(--ob-copper);
    letter-spacing: .15em;
    font-size: 11px;
    font-weight: 800;
}
.lead { color: #526560; line-height: 1.75; }
.btn {
    min-height: 50px;
    border-radius: 8px;
    padding: 15px 24px;
    box-shadow: none;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn:hover { filter: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ob-copper); color: #fff; }
.btn-primary:hover { background: #944125; box-shadow: 0 14px 30px rgba(173, 72, 41, .2); }
.btn-outline { border-color: #9aada6; }
.btn-outline:hover { background: #eaf0e9; color: var(--ob-forest); }
.btn-lg { min-height: 58px; padding: 17px 28px; font-size: 15px; }
.link-accent { color: #a3472a; text-decoration: underline; text-underline-offset: 6px; }
.link-accent:hover { color: #782e1b; }
.badge {
    background: #e4ede6;
    color: var(--ob-forest);
    border: 1px solid #c4d6c9;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 10px 16px;
}

/* Navigation — editorial bar with accessible, CSS-only mobile menu. */
.site-header {
    position: relative;
    z-index: 20;
    background: rgba(248, 247, 242, .98);
    border-bottom: 1px solid var(--ob-outline);
}
.site-header__inner { gap: clamp(12px, 2.2vw, 28px); min-height: 88px; padding-block: 16px; }
.brand { letter-spacing: -.05em; font-size: 26px; }
.brand .logo-mark { color: var(--ob-copper); }
.main-nav { gap: clamp(14px, 1.5vw, 24px); font-size: 13px; }
.main-nav a { color: #38544a; }
.main-nav a:hover { color: var(--ob-copper); }
.site-header__actions { gap: 13px; }
.site-header__actions .btn-primary { font-size: 13px; min-height: 44px; }
.lang-select { background: transparent; border-radius: 8px; color: var(--ob-forest); }
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; cursor: pointer; min-height: 44px; align-items: center; font-weight: 700; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 3px; padding: 12px 4px; }
.mobile-menu__list a {
    display: flex;
    min-height: 46px;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding: 9px 6px;
}

/* Visual rhythm; asymmetric but repeatable across six languages. */
.section-head { gap: 16px; }
.section-head--wide { max-width: 850px; }
.section-head--split { align-items: end; }
.section-head .h2 { max-width: 920px; }
.step { border: 0; border-top: 2px solid var(--ob-forest); border-radius: 0; padding: 24px 12px 28px 0; background: transparent; min-height: 240px; }
.step__num { background: transparent; color: #a25337; font-family: var(--font-display); font-size: 28px; font-weight: 750; justify-content: flex-start; width: auto; height: auto; }
.step .h3 { font-size: 23px; }
.step p { font-size: 15px; line-height: 1.75; }
.card-grid { gap: 20px; }
.card-grid--280 { gap: 25px; }

/* Animal portraits are real data, not illustrated testimonials. */
.animal-card {
    border: 1px solid #dde5df;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 35px rgba(14,45,34,.035);
    transition: transform .3s ease, box-shadow .3s ease;
}
.animal-card:hover { transform: translateY(-5px); box-shadow: 0 19px 48px rgba(14,45,34,.12); }
.animal-card__link { overflow: hidden; background: #dde5db; }
.animal-card__img { aspect-ratio: 5 / 4; transition: transform .5s cubic-bezier(.19,1,.22,1); }
.animal-card:hover .animal-card__img { transform: scale(1.05); }
.animal-card__body { padding: 26px; gap: 13px; }
.animal-card__head .h3 { font-size: 26px; letter-spacing: -.04em; }
.animal-card .progress { height: 5px; background: #e0e8e0; }
.animal-card .progress__bar { background: #478a66; }
.animal-card .plain-link { text-decoration: none; }
/* Institutional sections: clear contrast, refined geometry and hierarchy. */
.panel { border-radius: 16px; padding: clamp(30px, 4vw, 60px); gap: 23px; overflow: hidden; }
.panel--dark { background: #16352f; }
.panel--green { background: #e1eadf; }
.panel--dark .eyebrow { color: #dba67d; }
.panel__list { gap: 17px; padding-left: 22px; font-size: 16px; line-height: 1.7; }
.panel--dark .btn-primary { background: #e6c9a8; color: #1d3b32; }
.panel--dark .btn-primary:hover { background: #f1d7b8; }
.flow-step { border: 1px solid #e0e9e0; border-radius: 13px; padding: 27px; }
.flow-step__num { font-size: 20px; color: var(--ob-copper); }
.flow-step strong { font-size: 18px; }
.stats { background: var(--ob-forest); }
.stat__value { font-size: clamp(33px,4vw,52px); letter-spacing: -.05em; }
.chip { border-radius: 8px; background: #fff; font-size: 15px; }
.plan { border-radius: 16px; padding: 30px; }
.plan--featured { background: var(--ob-forest); border-color: var(--ob-forest); }
.plan__amount { font-size: clamp(36px, 4vw, 52px); letter-spacing: -.055em; }
.plan .btn { margin-top: auto; }
.faq { max-width: 900px; }
.faq__item { border-color: #dae4db; }
.cta-band { border-radius: 20px; background: var(--ob-forest); }
.site-footer { background: #102b28; }
.site-footer a:hover { color: #f0c9a1; }

/* Animal and shelter detail pages extend the same identity. */
.animal-detail__cover { border-radius: 20px; object-fit: cover; }
.gallery img { border-radius: 8px; }
.need-box { border-radius: 14px; }
.adopt-form { border-radius: 16px; box-shadow: 0 20px 55px rgba(14,45,34,.045); }
.section--tint .need-box { background: #fff; }

/* Admin, shelter and shop panels: restrained dashboard styling, no playful UI. */
.panel-body { background: #f2f4ee; }
.panel-body .panel-top { background: #fff; border-bottom: 1px solid #dfe6de; }
.panel-body .panel-nav a { border-radius: 8px; font-size: 14px; }
.panel-body .panel-nav a[aria-current='page'] { background: #173a32; }
.panel-body .card, .panel-body .kpi, .panel-body .table-wrap { border-radius: 13px; border-color: #dee5db; }
.panel-body .kpi__value { letter-spacing: -.05em; }
.panel-body .page-head h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }

@media (max-width: 1359px) {
    .main-nav { display: none; }
    .mobile-menu { display: block; order: 2; }
    .site-header__actions { margin-left: auto; order: 1; }
    .site-header__inner > .brand { order: 0; }
    .mobile-menu[open] { flex-basis: 100%; }
}
@media (max-width: 790px) {
    .site-header__actions .btn-primary { display: none; }
}
@media (max-width: 520px) {
    .site-header__inner { min-height: 70px; gap: 11px; }
    .brand { font-size: 23px; gap: 6px; }
    .brand .logo-mark { width: 27px; }
    .site-header__actions { gap: 4px; }
    .site-header__actions .link-plain { display: none; }
    .lang-select { padding: 8px 7px; min-height: 43px; font-size: 13px; }
    .mobile-menu > summary { font-size: 13px; }
    .step { min-height: unset; }
    .section { padding-block: 74px; }
    .section--compact { padding-block: 54px; }
    .panel { padding: 30px 24px; }
    .animal-card__body { padding: 22px; }
    .cta-band { padding: 36px 25px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* D03 — editorial animal and shelter profiles */
.profile-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    color: #63756e;
    font-size: 13px;
    line-height: 1.5;
}
.profile-breadcrumbs a { color: #466b5a; text-decoration: none; }
.profile-breadcrumbs a:hover { color: var(--ob-copper); text-decoration: underline; text-underline-offset: 4px; }
.profile-breadcrumbs [aria-current='page'] { color: #233e35; font-weight: 700; }
.animal-profile { padding-top: clamp(45px,5vw,76px); }
.animal-profile > .container:first-child { margin-bottom: clamp(26px,3vw,45px); }
.animal-profile .animal-detail {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
    gap: clamp(35px,5.5vw,90px);
    align-items: start;
}
.animal-profile .animal-detail__media {
    flex: initial;
    min-width: 0;
    gap: 13px;
}
.animal-profile .animal-detail__cover {
    width: 100%;
    min-height: 550px;
    max-height: 800px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 15px;
    background: #dfe8de;
    box-shadow: var(--ob-shadow);
}
.animal-profile .animal-detail__media > .photo-ph {
    min-height: 510px;
    border-radius: 16px;
    background: #e2eae0;
}
.animal-profile .animal-detail__text {
    flex: initial;
    gap: 24px;
    padding-top: 11px;
}
.animal-profile .animal-detail__text .display--md {
    font-family: var(--font-display);
    font-size: clamp(54px,6vw,88px);
    font-weight: 760;
    letter-spacing: -.065em;
    line-height: 1;
}
.animal-profile__trust { display: flex; align-items: center; }
.animal-profile__verified, .shelter-profile__verified {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #bfdbc5;
    background: #e9f1e7;
    padding: 10px 14px;
    color: #1f624b;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.animal-profile__verified::before, .shelter-profile__verified::before {
    content: '✓';
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #256548;
    color: #fff;
    font-size: 10px;
}
.animal-profile .prose { line-height: 1.9; font-size: 17px; color: #3e554d; }
.animal-profile .eyebrow .plain-link { color: #b44e2f; text-decoration: none; }
.animal-profile .gallery {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}
.animal-profile .gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.animal-profile__actions { display: flex; flex-wrap: wrap; gap: 11px; padding-block: 10px; }
.animal-profile .need-box, .shelter-profile .need-box {
    background: #fff;
    border: 1px solid #dbe5db;
    border-radius: 13px;
    padding: clamp(22px,2.5vw,30px);
    gap: 13px;
}
.animal-profile .need-box .h3, .shelter-profile .need-box .h3 { font-size: 22px; letter-spacing: -.035em; }
.animal-profile .progress, .shelter-profile .progress { height: 7px; background: #e2ebe2; }
.animal-profile .progress__bar, .shelter-profile .progress__bar { background: #3b8961; }
.animal-profile .progress-meta { flex-wrap: wrap; gap: 10px; line-height: 1.5; }
.animal-profile__updates { background: #eaf0e8; }
.animal-profile__updates .timeline { max-width: 900px; gap: 0; }
.animal-profile__updates .timeline li { position: relative; border-left: 1px solid #94af99; padding: 1px 0 32px 32px; gap: 12px; }
.animal-profile__updates .timeline li::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #eaf0e8; background: #317650; left: -7px; top: 3px; }
.animal-profile__updates .timeline p { font-size: 16px; line-height: 1.85; }
.animal-profile__follow, .animal-profile__adoption { background: var(--ob-paper); }
.animal-profile__follow .adopt-form, .animal-profile__adoption .adopt-form {
    max-width: 900px;
    padding: clamp(25px,5vw,60px);
    border: 1px solid #dce5da;
    border-radius: 16px;
}
.animal-profile__adoption { padding-top: 20px; }

/* Shelter: credible institutional profile with real content and evidence. */
.shelter-profile { padding-top: clamp(44px,5vw,75px); }
.shelter-profile__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px,.85fr);
    gap: clamp(20px,4vw,70px);
    background: var(--ob-forest-deep);
    border-radius: 20px;
    overflow: hidden;
    min-height: 475px;
    color: #f9faf4;
}
.shelter-profile__hero-copy {
    padding: clamp(30px,5vw,70px) clamp(26px,5vw,67px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
}
.shelter-profile__hero-copy .eyebrow { color: #e1b593; }
.shelter-profile__verified { color: #e4f3e5; background: rgba(214,240,222,.1); border-color: rgba(220,237,219,.3); }
.shelter-profile__title {
    font-family: var(--font-display);
    font-size: clamp(45px,5vw,74px);
    font-weight: 765;
    line-height: 1.02;
    letter-spacing: -.06em;
    max-width: 750px;
}
.shelter-profile__description { color: #d7e5dc; font-size: 17px; line-height: 1.85; max-width: 600px; }
.shelter-profile__external { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: #d7e5dc; }
.shelter-profile__external a { color: #f1d8b7; text-decoration: underline; text-underline-offset: 4px; }
.shelter-profile__media {
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 45% 45%, #416d55 0%, #22453c 65%, #18392f 100%);
    overflow: hidden;
    color: #d8e2c8;
}
.shelter-profile__media svg { width: min(63%,310px); opacity: .65; }
.shelter-profile__portrait { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 430px; }
.shelter-profile .card-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shelter-profile .kpi {
    border: 1px solid #dde5dc;
    background: #fff;
    border-radius: 13px;
    padding: clamp(22px,3vw,36px);
    gap: 13px;
}
.shelter-profile .kpi__value { font-size: clamp(28px,3.7vw,45px); letter-spacing: -.05em; font-weight: 760; font-variant-numeric: tabular-nums; }
.shelter-profile .kpi__label { font-size: 14px; }
.shelter-profile .stack-sm { gap: 20px; }
.shelter-profile .h2--sm { font-size: clamp(29px,3.5vw,42px); }
.shelter-profile .animal-card__link { background: #e6ece4; }

@media (max-width: 980px) {
    .animal-profile .animal-detail { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
    .animal-profile .animal-detail__cover { min-height: 420px; }
    .shelter-profile__hero { grid-template-columns: minmax(0,1fr) minmax(210px,.6fr); }
}
@media (max-width: 740px) {
    .animal-profile .animal-detail { grid-template-columns: 1fr; }
    .animal-profile .animal-detail__cover { min-height: unset; max-height: 580px; }
    .animal-profile .animal-detail__text { padding-top: 5px; }
    .shelter-profile__hero { grid-template-columns: 1fr; }
    .shelter-profile__media { min-height: 250px; max-height: 330px; }
    .shelter-profile__portrait { max-height: 330px; min-height: 250px; }
    .shelter-profile__hero-copy { padding-bottom: 10px; }
    .shelter-profile .card-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 540px) {
    .animal-profile .animal-detail__text .display--md { font-size: 54px; }
    .animal-profile__actions .btn { width: 100%; justify-content: center; }
    .shelter-profile .card-row { grid-template-columns: 1fr; }
    .shelter-profile__title { font-size: 46px; }
    .shelter-profile__hero-copy { padding: 32px 26px 12px; }
}


/* D04 — account workspaces with institutional hierarchy. */
.panel-body .panel-shell { max-width: 1450px; padding: clamp(20px,3vw,42px); gap: clamp(22px,3vw,40px); }
.panel-body .panel-top { padding-inline: clamp(20px,3vw,42px); }
.panel-body .panel-nav { max-width: 260px; flex-basis: 220px; }
.panel-body .panel-nav a { transition: background .18s ease, color .18s ease; }
.panel-body .panel-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 #d7b48a; }
.panel-body .panel-main { gap: clamp(20px,2vw,30px); }
.panel-overview__head {
    min-height: 138px;
    align-items: center;
    padding: clamp(25px,3vw,42px);
    background: #17382f;
    color: #f7f9f1;
    border-radius: 15px;
}
.panel-overview__head .eyebrow { color: #e9bb91; }
.panel-overview__head h1 { color: #fff; font-size: clamp(28px,3.2vw,48px); font-weight: 750; letter-spacing: -.055em; }
.panel-overview__head p:not(.eyebrow) { margin-top: 8px; color: #d0e1d4; font-size: 14px; line-height: 1.6; }
.panel-overview__head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel-overview__head-actions .btn-primary { background: #e5c3a6; color: #17382f; border-color: #e5c3a6; }
.panel-overview__head-actions .btn-primary:hover { background: #f2d5b8; color: #17382f; }
.panel-overview__head-actions .btn-outline { border-color: #a7c1b4; color: #fff; }
.panel-overview__head-actions .btn-outline:hover { background: #32584a; color: #fff; }
.panel-overview__metrics { display: flex; flex-direction: column; gap: 18px; }
.panel-overview__section-heading { display: flex; flex-direction: column; gap: 9px; }
.panel-overview__section-heading h2 { font-family: var(--font-display); font-size: clamp(22px,2.7vw,31px); letter-spacing: -.04em; }
.panel-overview__grid { margin: 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.panel-overview__grid .kpi {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    min-height: 150px;
    border-radius: 13px;
    padding: clamp(20px,2vw,29px);
    background: #fff;
    border: 1px solid #dce5dc;
}
.panel-overview__grid .kpi__value { margin: 0; font-size: clamp(27px,2.9vw,39px); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.05em; overflow-wrap: anywhere; }
.panel-overview__grid .kpi__label { color: #53685e; font-size: 13px; line-height: 1.55; font-weight: 650; }
.panel-overview__grid .kpi--featured { background: #e3eee3; border-color: #bfd6c0; }
.panel-overview__grid .kpi--featured .kpi__value { color: #1e5c43; }
.panel-overview__setup { border-radius: 14px; background: #fff; padding: clamp(24px,3vw,42px); gap: 20px; }
.panel-overview__setup .setup-list { counter-reset: setup; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.panel-overview__setup .setup-list li {
    counter-increment: setup;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    border: 1px solid #dce6dc;
    border-radius: 10px;
    padding: 20px;
    min-height: 128px;
}
.panel-overview__setup .setup-list li::before { content: counter(setup, decimal-leading-zero); font-family: var(--font-display); font-weight: 750; font-size: 19px; color: #ba6741; }
.panel-overview__setup .setup-list li.is-done::before { color: #2f7a57; }
.panel-overview__setup .setup-list li a { color: #214836; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.panel-overview__setup .setup-list li .small { font-size: 13px; line-height: 1.65; }
.panel-overview__setup ol:not(.setup-list) { line-height: 1.8; padding-left: 23px; }
@media (max-width: 1150px) {
    .panel-overview__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .panel-overview__head { align-items: flex-start; }
    .panel-overview__setup .setup-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .panel-body .panel-shell { padding: 15px; }
    .panel-overview__head { padding: 26px 22px; }
    .panel-overview__head-actions { width: 100%; }
    .panel-overview__head-actions .btn { flex: 1 1 140px; }
    .panel-overview__grid { gap: 9px; }
    .panel-overview__grid .kpi { padding: 18px; min-height: 140px; }
    .panel-overview__grid .kpi__value { font-size: 25px; }
    .panel-overview__setup { padding: 22px; }
}
@media (max-width: 360px) {
    .panel-overview__grid { grid-template-columns: 1fr; }
}

/* D05: keyboard-first navigation */
.skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 8px;
    max-width: calc(100vw - 32px);
    background: #fff;
    color: #17382f;
    border: 2px solid #17382f;
    border-radius: 7px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(0,0,0,.15);
    text-decoration: none;
    transform: translateY(-160px);
    transition: transform .15s ease;
}
.skip-link:focus, .skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid #dc7b47;
    outline-offset: 3px;
}
#main-content:focus { outline: none; }
#main-content:focus-visible { outline: 2px solid #b75a39; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }
}


