/* ============================================================
   UNAGE Pet Profile Card — style.css v10.2
   Google Fonts loaded here (not via WP enqueue) so @import
   is always the very first rule.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* DeliciousHandrawn — handwritten names */
@font-face {
    font-family: 'DeliciousHandrawn';
    src: url('../fonts/DeliciousHandrawn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   GLOBAL WRAP
   ============================================================ */
.uppc-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 16px;
    box-sizing: border-box;
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
}
.uppc-wrap *,
.uppc-wrap *::before,
.uppc-wrap *::after { box-sizing: inherit; }

/* ============================================================
   FORM CARD
   ============================================================ */
.uppc-form-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 2px 8px rgba(60,30,0,.06), 0 8px 32px rgba(60,30,0,.10);
}
.uppc-form-header  { text-align: center; margin-bottom: 28px; }
.uppc-form-title   { font-size: 24px; font-weight: 800; color: #3a1e00; margin: 0 0 6px; letter-spacing: -.3px; }
.uppc-form-sub     { font-size: 13.5px; color: #9b7a50; margin: 0; }
.uppc-form-body    { display: flex; flex-direction: column; gap: 11px; }
.uppc-row          { display: flex; gap: 11px; }
.uppc-field        { flex: 1; position: relative; min-width: 0; }

/* Shared input base */
.uppc-input {
    display: block;
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #d9c49a;
    border-radius: 10px;
    font-size: 14.5px;
    color: #3a1e00;
    background: #fdf9f4;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    /* Kill browser default styling on all input types */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.uppc-input::placeholder { color: #b09070; }
.uppc-input:focus {
    border-color: #7b4f28;
    box-shadow: 0 0 0 3px rgba(123,79,40,.10);
}

/* ── SELECT DROPDOWN — kill every native arrow ──
   Three-pronged kill: WebKit, Firefox, IE/Edge
   background-image:none kills any UA stylesheet gradient arrow */
.uppc-select-wrap {
    position: relative;
}
.uppc-select {
    cursor: pointer;
    padding-right: 38px;      /* room for our SVG chevron only */
    /* Remove ALL native styling */
    -webkit-appearance: none !important;
    -moz-appearance: none    !important;
    appearance: none         !important;
    /* Kill Safari/Chrome gradient arrow */
    background-image: none   !important;
    background-color: #fdf9f4;
}
/* IE 10-11 */
.uppc-select::-ms-expand { display: none !important; }
.uppc-select:disabled {
    opacity: .5;
    cursor: not-allowed;
    background-color: #f5ece0 !important;
}
/* Our custom chevron — only arrow visible */
.uppc-chevron {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 7px;
    pointer-events: none;
    color: #7b4f28;
}
.uppc-desg-loading {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #7b4f28;
    line-height: 0;
}
.uppc-spin { animation: uppc-spin .85s linear infinite; }
@keyframes uppc-spin { to { transform: rotate(360deg); } }

/* Upload box */
.uppc-upload-box {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 15px;
    border: 1.5px dashed #d9c49a;
    border-radius: 10px;
    font-size: 13.5px;
    color: #9b7a50;
    background: #fdf9f4;
    cursor: pointer;
    transition: border-color .15s;
    user-select: none;
}
.uppc-upload-box:hover { border-color: #7b4f28; }
.uppc-upload-hint  { font-size: 12px; color: #c4a880; }
.uppc-file-hidden  { display: none; }
#uppc-preview-wrap { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
#uppc-preview-img  { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 2px solid #d9c49a; }
#uppc-remove-photo { background: none; border: 1px solid #e8b0a0; color: #c0392b; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

/* Error */
.uppc-error {
    background: #fdecea;
    border: 1px solid #e8b0a0;
    border-radius: 9px;
    padding: 11px 14px;
    color: #c0392b;
    font-size: 13.5px;
}

/* Submit button */
.uppc-submit-row { margin-top: 4px; }
.uppc-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #3a1e00;
    color: #ffffff;
    border: none;
    border-radius: 11px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -.1px;
    transition: background .15s, transform .10s;
}
.uppc-submit-btn:hover   { background: #5c3a1e; }
.uppc-submit-btn:active  { transform: scale(.98); }
.uppc-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.uppc-btn-loader { display: flex; align-items: center; gap: 5px; }

/* ============================================================
   RESULT SECTION WRAPPER
   ============================================================ */
.uppc-result-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* NO overflow:hidden here — it clips the card shadow */
    overflow: visible;
    padding: 4px 0 32px;
}

/* Card centering wrapper — generous padding so shadow breathes on all sides */
#uppc-card-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
    /* top/bottom padding must be >= largest shadow spread (60px) */
    padding: 20px 24px 20px;
}

/* ============================================================
   THE CARD — 600 × 750 px
   JS uses transform:scale() on small screens.
   All positional values are SVG native px coordinates.
   ============================================================ */
.uppc-card {
    position: relative;
    width: 600px;
    height: 750px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0;
    transform-origin: top center;
    /* Warm shadow — matches card's amber/terracotta palette.
       Three layers: contact shadow, mid diffusion, large ambient.
       No cold grey — all warm brown tones. */
    /* Natural warm drop-shadow:
       layer 1 — sharp contact shadow  (close, dark)
       layer 2 — mid diffusion         (medium)
       layer 3 — large ambient lift    (far, soft)
       All warm brown — zero cold grey. */
    box-shadow:
        0  3px  8px  rgba(60, 24,  0, .18),
        0 10px  28px rgba(60, 24,  0, .16),
        0 32px  64px rgba(40, 12,  0, .14);
}

.uppc-bg-fill,
.uppc-bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.uppc-bg-svg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.uppc-bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.uppc-bg-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.uppc-bg-svg svg[viewBox] {
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
}
.uppc-card--imgbg .uppc-agelines,
.uppc-card--imgbg .uppc-glow,
.uppc-card--svgbg .uppc-agelines,
.uppc-card--svgbg .uppc-glow,
.uppc-card--svgbg .uppc-grain {
    display: none;
}
.uppc-card--imgbg .uppc-grain {
    opacity: .06;
    mix-blend-mode: soft-light;
}

/* ── Atmosphere overlays ── */
.uppc-grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: .12;
    mix-blend-mode: overlay;
}
.uppc-agelines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.uppc-agelines svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.uppc-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 58% 48% at 82% 12%, rgba(255,255,255,.18) 0%, transparent 65%);
}

/* ── BADGE — "Pet Profile Card" — camelCase, no text-transform ── */
.uppc-badge-area {
    position: absolute;
    top: 28px;
    right: 46px;
    width: 226px;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.uppc-badge {
    font-family: 'Bricolage Grotesque', 'Switzer', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.10px;
    text-transform: none;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
}

/* ── UNÆG WATERMARK — SVG data URI <img>, html2canvas-safe
   Scaled to the card bounds so preview/export stay aligned.
   Card uses transform:scale() so this img scales with it correctly.
   Exact px dimensions prevent any aspect-ratio distortion.
   ── */
.uppc-wm-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: block;
    /* object-fit not needed — SVG data-uri scales naturally with 100%x100% */
}

/* ── PHOTO — top right 294×294 ── */
.uppc-photo-wrap {
    position: absolute;
    top: 77px;
    right: 48px;
    width: 292px;
    height: 292px;
    border-radius: 36px;
    overflow: hidden;
    z-index: 3;
    border: none;
    box-shadow: none;
    background: rgba(0,0,0,.04);
}
.uppc-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uppc-photo-init {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.uppc-photo-init span {
    font-size: 110px;
    font-weight: 800;
    opacity: .18;
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
}

/* ── META — Species (19px) + Age (25px)
   MUST be Courier New monospace — matching reference card
   top=375 (species), top=411 (age/human eq) ── */
.uppc-meta-area {
    position: absolute;
    top: 382px;
    left: 34px;
    right: 34px;
    z-index: 3;
}
.uppc-meta-line {
    margin: 0;
    font-family: 'IBM Plex Mono', 'Courier New', monospace !important;
    line-height: 1.04;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    letter-spacing: 0;
}
.uppc-meta-species {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace !important;
}
.uppc-meta-age {
    font-size: 16px;
    font-weight: 500;
    font-family: 'IBM Plex Mono', 'Courier New', monospace !important;
}
.uppc-meta-label { font-weight: 500; }
.uppc-meta-sep   { margin: 0; opacity: 1; }
.uppc-meta-val   { font-weight: 400; }
.uppc-meta-pipe  { margin: 0 8px; opacity: .65; }

/* ── NAMES — DeliciousHandrawn 72px, two-column ── */
.uppc-names-row {
    position: absolute;
    top: 468px;
    left: 34px;
    right: 34px;
    display: flex;
    align-items: flex-end;
    z-index: 4;
}
.uppc-name-col  { flex: 1; min-width: 0; overflow: visible; }
.uppc-name-left  { text-align: center; }
.uppc-name-right { text-align: center; }
.uppc-name-gap  { width: 36px; flex-shrink: 0; }
.uppc-pet-name,
.uppc-owner-name {
    font-family: 'DeliciousHandrawn', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.2px;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
}

/* ── DIVIDER — two rules + gap ── */
.uppc-divider-row {
    position: absolute;
    top: 566px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 2;
}
.uppc-div-line { flex: 1; height: 1px; opacity: .46; }
.uppc-div-gap  { width: 28px; flex-shrink: 0; }

/* ── TITLES — uppercase, wraps fully (no ellipsis) ── */
.uppc-titles-row {
    position: absolute;
    top: 586px;
    left: 34px;
    right: 34px;
    display: flex;
    align-items: flex-start;
    z-index: 3;
}
.uppc-title-col   { flex: 1; min-width: 0; }
.uppc-title-left  { text-align: center; }
.uppc-title-right { text-align: center; }
.uppc-title-gap   { width: 36px; flex-shrink: 0; }
.uppc-pet-title,
.uppc-owner-title {
    font-family: 'Bricolage Grotesque', 'Switzer', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.04px;
    text-transform: none;
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

/* ── QUOTE — italic, weight 300 (light), centered ── */
.uppc-quote-wrap {
    position: absolute;
    top: 623px;
    left: 68px;
    right: 68px;
    z-index: 3;
}
.uppc-quote {
    margin: 0;
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -.03px;
    opacity: 1;
}
/* Fade animation during shuffle */
.uppc-fading { opacity: 0 !important; transition: opacity .25s; }

/* ── FOOTER — tagline NOT italic + website ── */
.uppc-footer-row {
    position: absolute;
    top: 670px;
    left: 34px;
    right: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 3;
}
.uppc-tagline {
    font-family: 'Bricolage Grotesque', 'Switzer', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 400;
    font-style: normal !important;
    line-height: 1.02;
    text-align: center;
    letter-spacing: -.05px;
    margin-bottom: 7px;
}
.uppc-tagline em {
    font-style: italic !important;
    font-weight: 500;
}
.uppc-site {
    font-family: 'Bricolage Grotesque', 'Switzer', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -.06px;
}

/* ============================================================
   POST-GENERATION UI
   Minimal, elegant, all-device responsive.
   Layout (top → bottom): card → shuffle → download+share → make another
   ============================================================ */

/* ── 1. Shuffle Designation ── */
.uppc-shuffle-row {
    margin-top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.uppc-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 32px;
    background: #fffaf4;
    color: #5a2c00;
    border: 1.5px solid #c8a46a;
    border-radius: 100px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    /* Soft warm lift shadow */
    box-shadow:
        0 1px 3px rgba(90,44,0,.10),
        0 4px 12px rgba(90,44,0,.10);
    transition:
        background     .22s ease,
        border-color   .22s ease,
        color          .22s ease,
        box-shadow     .22s ease,
        transform      .14s ease;
}

/* Shimmer sweep — slides across on hover */
.uppc-shuffle-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255, 210, 100, .45) 50%,
        transparent 80%
    );
    transform: translateX(-130%);
    transition: transform .55s ease;
    pointer-events: none;
}

.uppc-shuffle-btn:hover {
    background: #fff0d0;
    border-color: #9a6618;
    color: #2e1200;
    box-shadow:
        0 3px 8px  rgba(90,44,0,.14),
        0 8px 24px rgba(90,44,0,.16);
    transform: translateY(-2px);
}
.uppc-shuffle-btn:hover::after {
    transform: translateX(130%);
}
.uppc-shuffle-btn:active {
    transform: translateY(0) scale(.972);
    box-shadow: 0 1px 4px rgba(90,44,0,.12);
    transition-duration: .08s;
}
.uppc-shuffle-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Icon spins on hover */
.uppc-shuffle-btn svg {
    flex-shrink: 0;
    transition: transform .45s ease;
}
.uppc-shuffle-btn:hover svg {
    transform: rotate(180deg);
}

/* ── 2. Download + Share ── */
.uppc-action-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.uppc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 28px;
    border-radius: 100px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    min-width: 148px;
    white-space: nowrap;
    transition:
        background    .20s ease,
        box-shadow    .20s ease,
        transform     .14s ease,
        border-color  .20s ease;
}
.uppc-action-btn:active   { transform: scale(.965); transition-duration: .08s; }
.uppc-action-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }

/* Download — dark rich brown */
.uppc-btn-download {
    background: #241000;
    color: #ffffff;
    box-shadow:
        0 2px 6px  rgba(36,16,0,.30),
        0 6px 20px rgba(36,16,0,.22);
}
.uppc-btn-download:hover {
    background: #3c1e00;
    box-shadow:
        0 4px 10px rgba(36,16,0,.32),
        0 12px 32px rgba(36,16,0,.24);
    transform: translateY(-2px);
}

/* Share — white pill, warm amber border; hover flips to filled amber */
.uppc-btn-share {
    background: #ffffff;
    color: #3a1800;
    border: 1.5px solid #c0944a;
    box-shadow:
        0 1px 3px  rgba(36,16,0,.08),
        0 3px 10px rgba(36,16,0,.07);
    transition:
        background    .20s ease,
        color         .20s ease,
        border-color  .20s ease,
        box-shadow    .20s ease,
        transform     .14s ease;
}
.uppc-btn-share:hover {
    background: #b8720a;
    color: #ffffff;
    border-color: #b8720a;
    box-shadow:
        0 4px 10px  rgba(120,60,0,.28),
        0 12px 28px rgba(100,44,0,.22);
    transform: translateY(-2px);
}

/* ── 3. Make Another Card ── */
.uppc-back-row {
    margin-top: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.uppc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid rgba(130, 90, 40, .28);
    color: #907040;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .1px;
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 100px;
    white-space: nowrap;
    transition:
        color        .18s ease,
        border-color .18s ease,
        background   .18s ease,
        transform    .14s ease;
}
.uppc-back-btn:hover {
    color: #2e1200;
    border-color: rgba(130, 90, 40, .65);
    background: rgba(130, 90, 40, .07);
    transform: translateY(-1px);
}
.uppc-back-btn:active { transform: scale(.97); }
.uppc-back-btn svg    { flex-shrink: 0; }


/* Ensure "Shuffle Designation" full text is never clipped */
.uppc-shuffle-label {
    display: inline;
    white-space: nowrap;
}
/* ============================================================
   RESPONSIVE
   JS handles card scale. CSS handles the UI around the card.
   ============================================================ */
@media (max-width: 640px) {
    .uppc-wrap          { padding: 16px 10px; }
    .uppc-form-section  { padding: 24px 18px; }
    .uppc-row           { flex-direction: column; }
    .uppc-result-section { padding: 4px 0 20px; }
    .uppc-shuffle-btn   { padding: 12px 26px; font-size: 14px; }
    .uppc-action-btn    { min-width: 130px; padding: 12px 20px; font-size: 13.5px; }
    .uppc-back-btn      { font-size: 13px; padding: 9px 20px; }
}

@media (max-width: 400px) {
    /* Stack everything full-width */
    .uppc-shuffle-row,
    .uppc-action-row,
    .uppc-back-row      { flex-direction: column; align-items: center; }
    .uppc-shuffle-btn,
    .uppc-action-btn,
    .uppc-back-btn      { width: 100%; max-width: 300px; justify-content: center; min-width: unset; }
    .uppc-action-row    { gap: 8px; }
}


.uppc-card--reference.uppc-card--feline .uppc-meta-area {
    left: 36px;
    right: 36px;
}
.uppc-card--reference.uppc-card--feline .uppc-badge,
.uppc-card--reference.uppc-card--feline .uppc-meta-line,
.uppc-card--reference.uppc-card--feline .uppc-quote,
.uppc-card--reference.uppc-card--feline .uppc-site {
    color:#7b542e !important;
}
.uppc-card--reference.uppc-card--feline .uppc-tagline {
    color:#ffffff !important;
}
.uppc-card--reference.uppc-card--feline .uppc-pet-title,
.uppc-card--reference.uppc-card--feline .uppc-owner-title,
.uppc-card--reference.uppc-card--feline .uppc-pet-name,
.uppc-card--reference.uppc-card--feline .uppc-owner-name {
    color:#ffffff !important;
}
.uppc-card--reference.uppc-card--feline .uppc-quote { color:#6e4827 !important; }
.uppc-card--reference.uppc-card--canine .uppc-badge,
.uppc-card--reference.uppc-card--equine .uppc-badge,
.uppc-card--reference.uppc-card--canine .uppc-meta-line,
.uppc-card--reference.uppc-card--equine .uppc-meta-line,
.uppc-card--reference.uppc-card--canine .uppc-pet-title,
.uppc-card--reference.uppc-card--equine .uppc-pet-title,
.uppc-card--reference.uppc-card--canine .uppc-owner-title,
.uppc-card--reference.uppc-card--equine .uppc-owner-title,
.uppc-card--reference.uppc-card--canine .uppc-tagline,
.uppc-card--reference.uppc-card--equine .uppc-tagline,
.uppc-card--reference.uppc-card--canine .uppc-pet-name,
.uppc-card--reference.uppc-card--equine .uppc-pet-name,
.uppc-card--reference.uppc-card--canine .uppc-owner-name,
.uppc-card--reference.uppc-card--equine .uppc-owner-name { color:#ffffff !important; }
.uppc-card--reference.uppc-card--canine .uppc-site { color:#ffe0a7 !important; }
.uppc-card--reference.uppc-card--equine .uppc-site { color:#f1d694 !important; }
.uppc-card--reference.uppc-card--canine .uppc-quote { color:#ffe0a7 !important; }
.uppc-card--reference.uppc-card--equine .uppc-quote { color:#f1d694 !important; }
.uppc-card--reference .uppc-site { opacity:1; }
.uppc-card--reference .uppc-bg-svg svg {
    width:100% !important;
    height:100% !important;
    display:block !important;
}

@media (max-width: 640px) {
    .uppc-card { border-radius: 20px; }
}


/* ============================================================
   REFERENCE CARD MICRO-TUNING
   Common stock reference cards (feline/canine/equine)
   ============================================================ */
.uppc-card--reference .uppc-badge-area {
    top: 27px;
    right: 50px;
    width: 212px;
}
.uppc-card--reference .uppc-badge {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.08px;
}
.uppc-card--reference .uppc-meta-area {
    top: 372px;
    left: 35px;
    right: 35px;
}
.uppc-card--reference .uppc-meta-line {
    line-height: 1.02;
}
.uppc-card--reference .uppc-meta-species {
    font-size: 19px;
    margin-bottom: 10px;
}
.uppc-card--reference .uppc-meta-age {
    font-size: 16px;
}
.uppc-card--reference .uppc-meta-pipe {
    margin: 0 6px;
    opacity: .62;
}
.uppc-card--reference .uppc-names-row {
    top: 456px;
    left: 36px;
    right: 36px;
}
.uppc-card--reference .uppc-name-gap {
    width: 32px;
}
.uppc-card--reference .uppc-pet-name,
.uppc-card--reference .uppc-owner-name {
    font-size: 54px;
    line-height: .90;
    letter-spacing: -.14px;
}
.uppc-card--reference .uppc-divider-row {
    top: 525px;
    left: 36px;
    right: 36px;
}
.uppc-card--reference .uppc-div-gap {
    width: 46px;
}
.uppc-card--reference .uppc-div-line {
    opacity: .42;
}
.uppc-card--reference .uppc-titles-row {
    top: 546px;
    left: 38px;
    right: 38px;
}
.uppc-card--reference .uppc-title-gap {
    width: 32px;
}
.uppc-card--reference .uppc-pet-title,
.uppc-card--reference .uppc-owner-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.02px;
}
.uppc-card--reference .uppc-quote-wrap {
    top: 590px;
    left: 66px;
    right: 66px;
}
.uppc-card--reference .uppc-quote {
    font-size: 18px;
    line-height: 1.2;
}
.uppc-card--reference .uppc-footer-row {
    top: 646px;
}
.uppc-card--reference .uppc-tagline {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.02;
    margin-bottom: 7px;
}
.uppc-card--reference .uppc-tagline em {
    font-style: italic !important;
    font-weight: 500;
}
.uppc-card--reference .uppc-site {
    font-size: 13px;
    font-weight: 400;
}

/* Reference feline uses white designation text + white footer tagline and pale divider. */
.uppc-card--reference.uppc-card--feline .uppc-pet-title,
.uppc-card--reference.uppc-card--feline .uppc-owner-title {
    color: #ffffff !important;
}
.uppc-card--reference.uppc-card--feline .uppc-div-line {
    background: rgba(255,255,255,.24) !important;
}
/* Canine / equine reference roles + tagline stay white; URL/quote use warm cream. */
.uppc-card--reference.uppc-card--canine .uppc-div-line,
.uppc-card--reference.uppc-card--equine .uppc-div-line {
    background: rgba(255,255,255,.24) !important;
}
