@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Bold ranch palette: charcoal, barn red, warm tan, ivory. */
:root{--ranch-charcoal:#252321;--ranch-red:#9e1b25;--ranch-tan:#dbc7a6;--ranch-ivory:#fffcf3;--ranch-ink:#211e1a;--ranch-muted:#51483c;--ranch-border:#aa9270;--green:#9e1b25;--line:#bda786}
body{background:#dbc7a6;color:#211e1a;font-family:Arial,Helvetica,sans-serif;font-size:17px;line-height:1.55;font-weight:500}
header,.app-header{background:#252321;color:#fff;padding-top:18px;padding-bottom:18px;border-bottom:5px solid #9e1b25}
header a,.app-header a{color:#fff;font-size:15px;font-weight:700}
.herd-brand{display:flex;align-items:center;gap:16px;min-width:0}
.herd-brand-image{width:174px;height:80px;object-fit:contain;background:#fff;border:1px solid #dbc7a6;border-radius:8px;padding:5px;box-sizing:border-box}
.brand-caption{display:block;font-size:13px;font-weight:700;letter-spacing:.7px;color:#efdfc5;margin-bottom:5px}
.brand-title{display:block;font-size:26px;font-weight:700;line-height:1.25;color:#fff}
.herd-card-logo{display:block;width:100%;height:170px;object-fit:contain;background:#fff;border:1px solid #cfbea3;border-radius:7px;margin-bottom:16px}
.branding-preview{display:block;width:100%;max-width:420px;height:240px;object-fit:contain;background:#fff;border:2px solid #aa9270;border-radius:8px;margin:18px 0}
.card,.record-body,.record-head .mini{background:#fffcf3;color:#211e1a;border:1px solid #aa9270;box-shadow:0 2px 5px #25232114}
.record-head .mini{font-size:16px;line-height:1.5}
h1,h2,h3,h4,label,strong,b,summary{color:inherit;font-weight:700}
h1{font-size:29px;line-height:1.25}h2{font-size:22px;line-height:1.3}h3{font-size:19px}
label{font-size:16px}
a{color:#86151f;font-weight:600;text-underline-offset:3px}
a:hover{color:#641018}
.btn,button,.herd-tabs a.active,.record-tabs a.active,.pasture-tabs button[aria-current=page]{background:#9e1b25;color:#fff;border:1px solid #79141c;font-weight:700;font-size:16px;line-height:1.4;min-height:44px}
.btn:hover,button:hover,.herd-tabs a.active:hover,.record-tabs a.active:hover,.pasture-tabs button[aria-current=page]:hover{background:#79141c;color:#fff}
.herd-tabs{background:#c7ad86;border-color:#aa9270}
.herd-tabs a,.record-tabs a,.pasture-tabs button{background:#fffcf3;color:#252321;border:1px solid #aa9270;font-size:16px;font-weight:700}
.herd-tabs a.active,.record-tabs a.active{color:#fff}
.herd-tabs a:not(.active):hover,.record-tabs a:not(.active):hover,.pasture-tabs button:not([aria-current=page]):hover{background:#ecdcc1;color:#211e1a}
.herd-settings{background:#eee0c8;border-color:#aa9270;color:#252321;font-size:16px}
.herd-settings summary{font-size:17px}
.herd-settings a{color:#79141c}
input,select,textarea{background:#fffefb;color:#211e1a;border:1px solid #857256;font-size:17px;font-weight:500;line-height:1.45}
input::placeholder,textarea::placeholder{color:#645b50;opacity:1}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible,summary:focus-visible,.pasture-tabs button:focus-visible{outline:3px solid #252321;outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:#9e1b25}
table{font-size:16px;color:#211e1a}th{background:#e8d6b8;color:#252321;font-size:16px;font-weight:700;border-bottom:2px solid #aa9270}td{border-color:#cfbea3;line-height:1.5}
.animal-list{background:#fffcf3;border-color:#aa9270}
.animal-list-head{background:#e8d6b8;color:#252321;font-size:16px}
.animal-list-head a,.animal-pick{color:#211e1a}
.animal-pick{font-size:16px;font-weight:600;min-height:44px;align-items:center;border-color:#cfbea3}
.animal-pick:hover,.animal-pick.active{background:#e8d6b8;color:#211e1a}
.animal-pick.active{box-shadow:inset 4px 0 #9e1b25}
.info-values dt,.muted,small,.card-heading>span,.eyebrow{color:#51483c;font-size:14px;font-weight:500}
.info-values dd{font-size:17px;font-weight:600}
.info-values>div{border-color:#cfbea3}
.quick-actions a{background:#fffcf3;color:#252321;border:1px solid #aa9270;box-shadow:0 2px 4px #25232112}
.quick-actions a:hover{background:#eee0c8}
.quick-actions strong{font-size:20px;color:#79141c}
.sire-selected,.sire-result:hover{background:#eee0c8;color:#211e1a}
.sire-results,.suggestions{background:#fffefb;border-color:#aa9270}
.suggestions button{background:#fffefb;color:#211e1a;border:0;border-bottom:1px solid #cfbea3;font-size:17px;font-weight:600}
.suggestions button:hover,.suggestions button:focus{background:#e8d6b8;color:#211e1a}
button.secondary,.phone-badge,.queue-link span{background:#e8d6b8;color:#252321;border:1px solid #aa9270;font-weight:700}
button.secondary:hover{background:#cfb690;color:#211e1a}
.type-boxes label:has(input:checked){background:#eee0c8;border:2px solid #9e1b25;color:#211e1a}
.type-boxes input[type=radio]{accent-color:#9e1b25}
#new-animal-fields{background:#f5ebda}
.mobile-herd-brand{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px;background:#fffcf3;border:1px solid #aa9270;border-radius:8px}
.mobile-herd-brand img{width:100px;height:68px;object-fit:contain;background:#fff;border-radius:6px}
.mobile-herd-brand strong{font-size:20px;color:#252321}
.ped-table{background:#fffcf3}.ped-table th{background:#e8d6b8;color:#252321}.ped-table .ped-cell{border-color:#aa9270}.ped-table .ped-node{background:#fffcf3;color:#211e1a;font-size:16px}.ped-table .ped-name{border-color:#857256;font-weight:700}.ped-table .ped-meta{font-size:14px;color:#51483c}.ped-table .ped-subject,.ped-table .in-herd:hover{background:#eee0c8}
@media(max-width:650px){body{font-size:17px}.herd-brand{gap:10px}.herd-brand-image{width:120px;height:62px}.brand-title{font-size:21px}.brand-caption{font-size:12px}.herd-card-logo{height:140px}.herd-tabs a,.record-tabs a,.pasture-tabs button{font-size:15px}.record-head .mini{font-size:16px}.pasture-tabs button{min-height:48px}.ped-table{font-size:15px}table{font-size:15px}th{font-size:15px}}
@media print{body{background:white;color:#111}header,.herd-tabs,.herd-settings{display:none}.card,.record-body{background:white;box-shadow:none}.herd-card-logo{height:110px}.ped-table,.ped-table .ped-node{background:white}}

.record-tabs .tab-disabled{display:inline-block;padding:9px 11px;background:#e5ded1;color:#68635b;border:1px solid #b7aa91;border-radius:5px 5px 0 0;cursor:not-allowed;font-weight:bold;opacity:.75}

header .home-program-title,
header .herd-brand .herd-title-home {
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.herd-brand > div { min-width: 0; }
@media (max-width: 650px) {
  .herd-brand-home .herd-brand-image { width: clamp(54px, 19vw, 100px); }
}

header .program-title-number { color: #dbc7a6; }
