.tool-hero--horses { background: radial-gradient(ellipse at 82% 54%, #65503c, #3b4231 52%, #202c24); }
.horse-tabs, .horse-columns, .horse-fields, .horse-results dl { display: grid; gap: .65rem; }
.horse-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); margin: .85rem 0; }
.horse-tabs a, .horse-actions button, .horse-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .35rem .6rem;
  border: 1px solid #69806a;
  border-radius: .45rem;
  background: #2b392d;
  color: #edf1e5;
  text-align: start;
  font: inherit;
}
.horse-tabs a[aria-current] { background: #d4cba7; border-color: #d4cba7; color: #23291f; }
.horse-tabs img, .horse-item img { width: clamp(28px,6vw,43px); height: auto; flex: none; }
.horse-columns { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); align-items: start; }
.horse-panel {
  padding: clamp(.8rem,2.3vw,1.3rem);
  border: 1px solid #596956;
  border-radius: .65rem;
  background: #1c2a21;
  min-width: 0;
  scroll-margin-top: 6rem;
}
.horse-panel h2 { margin: 0 0 .55rem; }
.horse-panel h3, .horse-panel p { margin: .55rem 0; }
.horse-panel p { color: #c8d3bf; }
.horse-panel fieldset { margin: .55rem 0; border: 1px solid #526650; padding: .55rem .65rem; border-radius: .4rem; min-width: 0; }
.horse-panel legend { padding: 0 .25rem; color: #e5d9b8; }
.horse-fields { grid-template-columns: repeat(2,minmax(0,1fr)); margin: .55rem 0; }
.horse-fields label { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: .25rem; overflow-wrap: anywhere; }
.horse-fields input, .horse-fields select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .42rem .56rem;
  border: 1px solid #71846d;
  border-radius: .38rem;
  color: #edf1e5;
  background: #141f18;
  font: inherit;
}
.horse-fields input:disabled { opacity: .55; }
.horse-switch { display: flex; align-items: center; gap: .4rem; min-height: 44px; }
.horse-switch input { margin: 0; accent-color: #d4cba7; }
.horse-actions, .horse-related { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .6rem 0; }
.horse-actions button { cursor: pointer; }
.horse-results dl { grid-template-columns: repeat(2,minmax(0,1fr)); margin: .55rem 0; }
.horse-results dl div, .horse-materials li { min-width: 0; padding: .48rem .55rem; border-radius: .4rem; background: #29392d; }
.horse-results dt { color: #cad8c4; font-size: .86rem; overflow-wrap: anywhere; }
.horse-results dd, .horse-materials strong {
  margin: .14rem 0 0;
  color: #e6e1b8;
  font-size: 1.2rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.horse-results [data-horse-status]:empty { display: none; }
.horse-results [data-horse-status], .horse-results [data-horse-out="short"],
.horse-results [data-horse-out="seatsShort"] { color: #ffcca1; }
.horse-materials { margin: .45rem 0; padding: 0; list-style: none; }
.horse-materials li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: .32rem 0; }
.horse-materials .horse-item { border: 0; background: transparent; padding: 0; }
.horse-guide { margin-top: .8rem; }
.horse-guide ol { margin: .5rem 0; padding-inline-start: 1.25rem; }
.horse-guide li + li { margin-top: .45rem; }
.horse-panel :focus-visible, .horse-tabs :focus-visible { outline: 2px solid #f0dba0; outline-offset: 2px; }
[data-horse-calculator][hidden], [data-horse-calculator] [hidden] { display: none !important; }
@media (max-width: 760px) {
  .horse-columns { grid-template-columns: minmax(0,1fr); }
  .horse-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 350px) {
  .horse-fields label, .horse-results dt, .horse-tabs a { font-size: .88rem; }
  .horse-fields:has(select) { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .horse-tabs a { transition: background-color .18s; }
  .tool-hero--horses .tool-hero-items img { animation: horse-float 5s ease-in-out infinite; }
  .tool-hero--horses .tool-hero-items img:nth-child(2) { animation-delay: -1s; }
  .tool-hero--horses .tool-hero-items img:nth-child(3) { animation-delay: -2s; }
  @keyframes horse-float { 50% { translate: 0 -4px; } }
}
