/* NRHA Breeder Data: horse lookup and foal-year summary. Uses the theme's fonts; colors match the Breeders & Owners program cards. */
.nrha-hl, .nrha-fc, .nrha-road, .nrha-st {
	--nrha-teal: #00605e;
	--nrha-teal-dark: #004d4b;
	--nrha-teal-soft: #e6f0ef;
	--nrha-copper: #ae562e;
	--nrha-tan: #faf6f0;
	--nrha-grey: #636363;
	--nrha-line: #ececec;
	--nrha-ink: #212529;
}

/* Search form */
.nrha-hl { margin-top: 8px; }
.nrha-hl-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.nrha-hl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nrha-hl-field-q { flex: 1 1 320px; }
.nrha-hl-field-y { flex: 0 0 150px; }
.nrha-hl-field label { font-size: 14px; font-weight: 600; color: var(--nrha-ink); margin: 0; }
.nrha-hl-q, .nrha-hl-y {
	width: 100%; font: inherit; font-size: 16px; color: var(--nrha-ink); background: #fff;
	border: 1px solid #cfcfcf; border-radius: 4px; padding: 10px 12px; line-height: 1.4;
}
.nrha-hl-q:focus, .nrha-hl-y:focus { outline: none; border-color: var(--nrha-teal); box-shadow: 0 0 0 3px var(--nrha-teal-soft); }
.nrha-hl-go { align-self: flex-end; }
.nrha-hl-try { margin: 12px 0 0; font-size: 15px; color: var(--nrha-grey); }
.nrha-hl-ex { background: none; border: 0; padding: 0; font: inherit; color: var(--nrha-teal); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nrha-hl-ex:hover { color: var(--nrha-teal-dark); }

/* Results table */
.nrha-hl-results { margin-top: 24px; }
.nrha-hl-results:empty { margin-top: 0; }
.nrha-hl-count { font-size: 14px; color: var(--nrha-grey); margin: 0 0 10px; }
.nrha-hl-scroll { overflow-x: auto; }
.nrha-hl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nrha-hl-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--nrha-grey); padding: 10px 12px; border-bottom: 1px solid #d8d8d8; white-space: nowrap; }
.nrha-hl-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--nrha-line); vertical-align: top; }
.nrha-hl-row { cursor: pointer; }
.nrha-hl-row:hover td, .nrha-hl-row.is-open td { background: var(--nrha-tan); }
.nrha-hl-row.is-open td { border-bottom-color: transparent; }
.nrha-hl-c-year { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nrha-hl-toggle { position: relative; background: none; border: 0; padding: 0 0 0 18px; font: inherit; font-weight: 600; color: var(--nrha-teal-dark); text-align: left; cursor: pointer; }
.nrha-hl-toggle::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.nrha-hl-toggle[aria-expanded="true"]::before { transform: rotate(45deg); top: 0.3em; }
.nrha-hl-toggle:focus-visible, .nrha-hl-ex:focus-visible { outline: 2px solid var(--nrha-copper); outline-offset: 2px; }
.nrha-hl-m { display: none; }

/* Opened row */
.nrha-hl-detail td { background: var(--nrha-tan); padding: 4px 12px 24px 30px; border-bottom: 1px solid var(--nrha-line); }
.nrha-hl-detail-inner { display: grid; gap: 20px; max-width: 880px; }
.nrha-hl-next { margin: 0; }
.nrha-hl-next strong { color: var(--nrha-teal-dark); }

.nrha-hl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nrha-hl-steps li { position: relative; padding: 20px 10px 0 0; margin: 0; min-width: 0; }
.nrha-hl-steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: #e3dccf; }
.nrha-hl-steps li:first-child::before { left: 6px; }
.nrha-hl-steps li:last-child::before { right: auto; width: 6px; }
.nrha-hl-steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #cfc6b6; }
.nrha-hl-steps li.is-done::after { background: var(--nrha-teal); border-color: var(--nrha-teal); }
.nrha-hl-steps li.is-now::after { background: var(--nrha-copper); border-color: var(--nrha-copper); box-shadow: 0 0 0 4px #f1dccf; }
.nrha-hl-steps li.is-missing::after { border-color: var(--nrha-copper); }
.nrha-hl-step-label { display: block; font-size: 13px; color: var(--nrha-grey); }
.nrha-hl-step-value { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.nrha-hl-step-note { display: block; font-size: 13px; color: var(--nrha-grey); }

.nrha-hl-facts { margin: 0; display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); border-top: 1px solid #e3dccf; }
.nrha-hl-facts dt, .nrha-hl-facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid #e3dccf; }
.nrha-hl-facts dt { font-weight: 600; padding-right: 16px; }
.nrha-hl-facts dd { overflow-wrap: anywhere; }

.nrha-hl-source { margin: 22px 0 0; font-size: 14px; color: var(--nrha-grey); max-width: 75ch; }

@media (max-width: 767px) {
	.nrha-hl-c-wide { display: none; }
	.nrha-hl-m { display: block; font-size: 14px; color: var(--nrha-grey); padding-left: 18px; margin-top: 2px; }
	.nrha-hl-detail td { padding: 4px 12px 20px; }
	.nrha-hl-steps { grid-template-columns: minmax(0, 1fr); }
	.nrha-hl-steps li { padding: 0 0 12px 26px; }
	.nrha-hl-steps li::before { top: 12px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
	.nrha-hl-steps li:first-child::before { left: 5px; }
	.nrha-hl-steps li:last-child::before { display: none; }
	.nrha-hl-facts { grid-template-columns: minmax(0, 1fr); }
	.nrha-hl-facts dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 600px) {
	.nrha-hl-field-y { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .nrha-hl-toggle::before { transition: none; } }

/* Foal-year summary */
.nrha-fc-lede { font-size: 18px; margin: 0 0 18px; max-width: 70ch; }
.nrha-fc-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.nrha-fc-table th, .nrha-fc-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--nrha-line); }
.nrha-fc-table th { font-size: 14px; font-weight: 600; color: var(--nrha-grey); border-bottom-color: #d8d8d8; }
.nrha-fc-n { width: 55%; font-variant-numeric: tabular-nums; }
.nrha-fc-bar { display: inline-block; height: 8px; background: var(--nrha-teal); border-radius: 2px; margin-right: 10px; vertical-align: middle; min-width: 2px; }
.nrha-fc-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.nrha-fc-head label { font-weight: 600; margin: 0; }
.nrha-fc-year { font: inherit; font-size: 16px; color: var(--nrha-ink); background: #fff; border: 1px solid #cfcfcf; border-radius: 4px; padding: 8px 12px; }
.nrha-fc-year:focus { outline: none; border-color: var(--nrha-teal); box-shadow: 0 0 0 3px var(--nrha-teal-soft); }
.nrha-fc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.nrha-fc-col { min-width: 0; }
.nrha-fc-col h3 { margin: 0 0 2px; }
.nrha-fc-total { margin: 0 0 10px; color: var(--nrha-grey); }
@media (max-width: 767px) { .nrha-fc-cols { grid-template-columns: minmax(0, 1fr); } }

/* Road to the Futurity & Derby */
.nrha-road { margin-top: 8px; }
.nrha-road-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--nrha-line); margin-bottom: 20px; }
.nrha-road-tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 18px; font: inherit; font-weight: 600; color: var(--nrha-grey); cursor: pointer; }
.nrha-road-tab:hover { color: var(--nrha-teal-dark); }
.nrha-road-tab[aria-selected="true"] { color: var(--nrha-teal-dark); border-bottom-color: var(--nrha-copper); }
.nrha-road-tab:focus-visible { outline: 2px solid var(--nrha-copper); outline-offset: -2px; }
.nrha-road-intro { margin: 0 0 16px; max-width: 75ch; }
.nrha-road-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.nrha-road-field-region { flex: 0 0 180px; }
.nrha-road-field-only { flex: 0 0 240px; }
.nrha-road-field-nom { flex: 1 1 220px; }
.nrha-road .nrha-hl-field-q { flex-basis: 240px; }
.nrha-road-nomlink { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #c9c9c9; text-underline-offset: 3px; }
.nrha-road-nomlink:hover { color: var(--nrha-teal); text-decoration-color: currentColor; }
.nrha-road-chip { margin: 18px 0 0; padding: 10px 14px; background: var(--nrha-tan); border-radius: 4px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.nrha-road-chip[hidden] { display: none; }
.nrha-road-chip strong { color: var(--nrha-teal-dark); }
.nrha-road-chip-x { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--nrha-teal); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nrha-road-chip + .nrha-road-results { margin-top: 12px; }
.nrha-road-results { margin-top: 24px; }
.nrha-road-more { margin-top: 16px; }
@media (max-width: 600px) {
	.nrha-road-field-region { flex: 1 1 100%; }
	.nrha-road-field-only { flex: 1 1 100%; }
	.nrha-road-field-nom { flex: 1 1 100%; }
	.nrha-road-tab { padding: 10px 12px; }
}

/* Sire & Dam stallions (sample) */
.nrha-st { margin-top: 8px; }
.nrha-st-controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; margin-bottom: 20px; }
.nrha-st-label { font-size: 14px; font-weight: 600; color: var(--nrha-ink); }
.nrha-st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nrha-st-chip { font: inherit; font-size: 14px; background: #fff; border: 1px solid #cfcfcf; border-radius: 999px; padding: 7px 14px; color: var(--nrha-ink); cursor: pointer; }
.nrha-st-chip:hover { border-color: var(--nrha-teal); }
.nrha-st-chip[aria-pressed="true"] { background: var(--nrha-teal-soft); border-color: var(--nrha-teal); color: var(--nrha-teal-dark); font-weight: 600; }
.nrha-st-chip:focus-visible, .nrha-st-year:focus-visible { outline: 2px solid var(--nrha-copper); outline-offset: 2px; }
.nrha-st-sort-field { flex: 0 0 240px; }
.nrha-st-count { margin: 0 0 10px auto; font-size: 14px; color: var(--nrha-grey); }
.nrha-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.nrha-st-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nrha-line); border-top: 3px solid var(--nrha-copper); border-radius: 4px; overflow: hidden; min-width: 0; transition: box-shadow .15s ease; }
.nrha-st-card[hidden] { display: none; }
.nrha-st-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.nrha-st-photo { display: block; aspect-ratio: 4 / 3; max-width: 100%; background: var(--nrha-tan); overflow: hidden; }
.nrha-st-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.nrha-st-card:hover .nrha-st-photo img { transform: scale(1.03); }
.nrha-st-photo span, .nrha-st-hero-photo span { display: grid; place-items: center; height: 100%; color: var(--nrha-grey); font-size: 14px; }
.nrha-st-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; flex: 1; }
.nrha-st-body h3 { margin: 0; font-size: 20px; }
.nrha-st-body h3 a { color: var(--nrha-teal-dark); text-decoration: none; }
.nrha-st-body h3 a:hover { text-decoration: underline; }
.nrha-st-ped, .nrha-st-loc { margin: 0; font-size: 14px; color: var(--nrha-grey); }
.nrha-st-semen { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nrha-st-semen li { margin: 0; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #f2f2f2; color: #9a9a9a; }
.nrha-st-semen li.is-on { background: var(--nrha-teal-soft); color: var(--nrha-teal-dark); }
.nrha-st-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--nrha-line); padding-top: 12px; margin-top: 4px; }
.nrha-st-fee { margin: 0; font-size: 20px; font-weight: 700; color: var(--nrha-ink); font-variant-numeric: tabular-nums; }
.nrha-st-fee small { font-size: 12px; font-weight: 500; color: var(--nrha-grey); }
.nrha-st-noms { margin: 0; text-align: right; font-size: 12.5px; line-height: 1.4; color: var(--nrha-grey); font-variant-numeric: tabular-nums; }
.nrha-st-noms b { font-size: 15px; color: var(--nrha-ink); }
.nrha-st-spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.nrha-st-spark i { width: 8px; background: var(--nrha-teal); border-radius: 2px 2px 0 0; opacity: .8; }
.nrha-st-spark i:last-child { background: var(--nrha-copper); opacity: 1; }
.nrha-st-back { margin: 0 0 18px; }
.nrha-st-back a { color: var(--nrha-teal); font-weight: 600; text-decoration: none; }
.nrha-st-back a:hover { text-decoration: underline; }
.nrha-st-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.nrha-st-hero-photo { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 4px; overflow: hidden; background: var(--nrha-tan); }
.nrha-st-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nrha-st-hero-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.nrha-st-hero-info h2 { margin: 0; }
.nrha-st-hero-info .nrha-st-ped { font-size: 15px; }
.nrha-st-hero-info .nrha-st-ped b { color: var(--nrha-ink); }
.nrha-st-hero-info .nrha-hl-facts { border-top-color: var(--nrha-line); }
.nrha-st-hero-info .nrha-hl-facts dt, .nrha-st-hero-info .nrha-hl-facts dd { border-bottom-color: var(--nrha-line); }
.nrha-st-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nrha-st-about { margin-top: 28px; max-width: 75ch; }
.nrha-st-section { margin-top: 44px; }
.nrha-st-section h3 { margin: 0 0 6px; }
.nrha-st-section > p { margin: 0 0 14px; max-width: 75ch; }
.nrha-st-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; max-width: 720px; margin-bottom: 6px; }
.nrha-st-year { display: grid; justify-items: center; gap: 2px; background: none; border: 1px solid transparent; border-radius: 4px; padding: 8px 4px 6px; font: inherit; color: var(--nrha-ink); cursor: pointer; }
.nrha-st-year:hover:not([disabled]) { background: var(--nrha-tan); }
.nrha-st-year[aria-pressed="true"] { background: var(--nrha-tan); border-color: var(--nrha-copper); }
.nrha-st-year[disabled] { color: #b5b5b5; cursor: default; }
.nrha-st-year-bar { height: 48px; display: flex; align-items: flex-end; }
.nrha-st-year-bar i { display: block; width: 18px; background: var(--nrha-teal); border-radius: 2px 2px 0 0; }
.nrha-st-year[aria-pressed="true"] .nrha-st-year-bar i { background: var(--nrha-copper); }
.nrha-st-year-n { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nrha-st-year-y { font-size: 12px; color: var(--nrha-grey); }
.nrha-st-section > .nrha-st-note { font-size: 13px; color: var(--nrha-grey); margin: 0 0 14px; }
.nrha-st-tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--nrha-copper); }
.nrha-st-section > .nrha-st-pending { padding: 16px 18px; border: 1px dashed #d8d8d8; border-radius: 4px; color: var(--nrha-grey); }
.nrha-st-empty { color: var(--nrha-grey); }
@media (max-width: 860px) { .nrha-st-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
	.nrha-st-sort-field { flex: 1 1 100%; }
	.nrha-st-count { margin-left: 0; }
	.nrha-st-years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .nrha-st-photo img, .nrha-st-card { transition: none; } }
.nrha-st-insale { margin: 0; font-size: 13px; font-weight: 600; color: var(--nrha-copper); }
.nrha-st-sirelist { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 32px; }
.nrha-st-sirelist li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--nrha-line); break-inside: avoid; }
.nrha-st-sirelist a { color: var(--nrha-teal-dark); font-weight: 600; text-decoration: none; }
.nrha-st-sirelist a:hover { text-decoration: underline; }
.nrha-st-sirelist span { color: var(--nrha-grey); font-variant-numeric: tabular-nums; }
.nrha-st .nrha-hl-count { text-align: left; }
.nrha-st-yearfield { max-width: 280px; margin-bottom: 16px; }
.nrha-st-body h3 + .nrha-st-ped { margin-top: -2px; }
.nrha-st-body .nrha-st-ped + .nrha-st-ped { margin-top: -6px; }
.nrha-st-lines { display: grid; gap: 2px; }
.nrha-st-lines .nrha-st-ped:last-child { color: var(--nrha-ink); }
/* Photos: show the whole horse, fill leftover space with a blurred copy of the same photo. */
.nrha-st-photo, .nrha-st-hero-photo { position: relative; isolation: isolate; }
.nrha-st-photo::before, .nrha-st-hero-photo::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--nrha-photo, none) center / cover no-repeat; filter: blur(18px) brightness(.92); }
.nrha-st-photo img, .nrha-st-hero-photo img { position: relative; object-fit: contain; }

/* Cards: sire and dam on their own lines, one line each, so every card lines up. Fee row sits at the bottom. */
.nrha-st-card .nrha-st-body { display: flex; flex-direction: column; }
.nrha-st-card .nrha-st-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrha-st-card .nrha-st-body .nrha-st-line + .nrha-st-line { margin-top: -6px; }
.nrha-st-card .nrha-st-meta { margin-top: auto; }

/* Cards: year, sire, and dam read as one tight block under the name. */
.nrha-st .nrha-st-card .nrha-st-info { margin: 0; }
.nrha-st .nrha-st-card .nrha-st-info p { margin: 0 !important; padding: 0; font-size: 14px; line-height: 1.5; color: var(--nrha-grey); }
.nrha-st .nrha-st-card .nrha-st-body h3 { margin: 0 0 2px; line-height: 1.2; }

/* Cards: fee and its label at close to the same size. */
.nrha-st .nrha-st-card .nrha-st-fee { font-size: 16px; font-weight: 600; line-height: 1.4; }
.nrha-st .nrha-st-card .nrha-st-fee small { font-size: 14px; font-weight: 400; margin-left: 2px; }
.nrha-st .nrha-st-card .nrha-st-meta { padding-top: 10px; }

.nrha-st .nrha-st-card .nrha-st-fee small { margin: 0 2px 0 0; }

/* Cards: names one size down so they stay on one line. */
.nrha-st .nrha-st-card .nrha-st-body h3 { font-size: 20px !important; line-height: 26px !important; } /* the theme sets h3 to 24px !important */

/* Stallion page: About section from Stallion Manager. */
.nrha-st .nrha-st-about p { margin: 0 0 6px; }
.nrha-st .nrha-st-about p:last-child { margin-bottom: 0; }

/* Stallion page: year/breed/color and sire x dam a step larger. */
.nrha-st .nrha-st-hero-info .nrha-st-lines .nrha-st-ped { font-size: 18px; line-height: 1.45; margin: 0; }
.nrha-st .nrha-st-hero-info .nrha-st-lines { margin-bottom: 16px; }

/* Plain page template: less space above the page heading when the stallion list is on the page. */
.container[style*="padding-top: 77px"]:has(.nrha-st) { padding-top: 32px !important; }
.container[style*="padding-top: 77px"]:has(.nrha-st) .content > h2:first-child { margin-top: 0; padding-top: 0 !important; }

/* Directory: room between the intro text and the filters. */
.nrha-st:not(.nrha-st-detail) { margin-top: 32px; }

/* Random stallion block ([nrha_stallions random="4"]). First four show until the script picks at random. */
.nrha-st-mini { margin-top: 24px; }
.nrha-st-mini[data-pick="3"] .nrha-st-card:nth-child(n+4), .nrha-st-mini[data-pick="4"] .nrha-st-card:nth-child(n+5) { display: none; }
.nrha-st-mini.is-random .nrha-st-card { display: none; }
.nrha-st-mini.is-random .nrha-st-card.is-picked { display: flex; }
.nrha-st-mini .nrha-st-all { margin: 24px 0 0; text-align: center; }

/* Click-to-open sections (core Details block with class nrha-acc). */
.wp-block-details.nrha-acc { border: 1px solid #ececec; border-radius: 4px; background: #fff; margin: 0 0 10px; padding: 0; }
.wp-block-details.nrha-acc > summary { list-style: none; cursor: pointer; position: relative; padding: 14px 52px 14px 18px; font-weight: 600; color: #004d4b; }
.wp-block-details.nrha-acc > summary::-webkit-details-marker { display: none; }
.wp-block-details.nrha-acc > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; line-height: 1; color: #00605e; }
.wp-block-details.nrha-acc[open] > summary::after { content: "\2212"; }
.wp-block-details.nrha-acc[open] { border-color: #00605e; }
.wp-block-details.nrha-acc > summary:focus-visible { outline: 2px solid #00605e; outline-offset: 2px; }
.wp-block-details.nrha-acc > :not(summary) { margin-left: 18px; margin-right: 18px; }
.wp-block-details.nrha-acc > :last-child { margin-bottom: 18px; }
.wp-block-details.nrha-acc blockquote { margin-top: 0; }
/* Buttons side by side. */
.nrha-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 24px; }
.nrha-btn-row > * { margin: 0 !important; }

/* Combined programs page: one program panel at a time ([nrha_program_tabs]). Without the script, all three show. */
.nrha-progs.is-tabbed .nrha-prog { display: none; }
.nrha-progs.is-tabbed .nrha-prog.is-active { display: block; }
.nrha-progs.is-tabbed ~ * .nrha-program-card, .nrha-program-card { transition: box-shadow .15s ease, border-color .15s ease; }
.nrha-progs.is-tabbed .nrha-program-card { cursor: default; }
body .nrha-program-card.is-active { border-top-color: #00605e !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .09); }
.nrha-program-card:has(a[href="#nomination"]), .nrha-program-card:has(a[href="#sire-dam"]), .nrha-program-card:has(a[href="#sales"]) { cursor: pointer; }
.nrha-seller p { margin: 0 0 6px; }
.nrha-seller .nrha-seller-price { font-size: 22px; font-weight: 600; color: #004d4b; margin-bottom: 2px; }

.nrha-glance { font-size: 15px; padding: 10px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; margin: 4px 0 20px !important; }

.nrha-seller .nrha-seller-label { font-size: 15px; color: #636363; }
.nrha-seller .nrha-card-date { margin-top: auto; }

/* High-seller cards: photo flush to the card edges, like the stallion cards. */
.nrha-seller { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.nrha-seller > .nrha-seller-photo { margin: -20px -20px 16px !important; }
.nrha-seller > .nrha-seller-photo img { display: block; width: 100%; height: auto; }

/* High-seller cards: text sized like the stallion cards. */
.nrha-seller p { font-size: 14px !important; line-height: 1.5 !important; color: #636363; margin: 0 0 4px !important; }
.nrha-seller p em { font-style: normal; }
.nrha-seller p:has(> em:only-child) { font-family: "Roboto Slab", Georgia, serif; font-size: 20px !important; line-height: 1.3 !important; color: #004d4b; margin: 2px 0 6px !important; }
.nrha-seller .nrha-seller-price { font-size: 16px !important; font-weight: 600; color: #212529; margin: 0 0 2px !important; }
.nrha-seller .nrha-seller-label { font-size: 13px !important; }
.nrha-seller .nrha-card-date { font-size: 13px !important; font-style: normal; border-top: 1px solid #ececec; padding-top: 10px; margin-top: auto !important; }

/* Program name bars on the combined Breeders & Owners page: the site's brown pattern, like the homepage Featured band. */
.nrha-prog-bar { background: #2b1a12 url("/wp-content/uploads/2025/07/pattern10-crop2.jpg") center / cover no-repeat; border-radius: 4px; padding: 22px 28px; margin: 56px 0 28px; }
.nrha-prog-bar .wp-block-heading { color: #fff !important; margin: 0 !important; padding: 0 !important; }

/* Phones: stallion row and high-seller cards two across instead of one. */
@media (max-width: 781px) {
  .nrha-st-mini .nrha-st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nrha-st-mini .nrha-st-card .nrha-st-body { padding: 12px 12px 14px; }
  .nrha-st .nrha-st-mini .nrha-st-card .nrha-st-body h3, .nrha-st.nrha-st-mini .nrha-st-card .nrha-st-body h3 { font-size: 16px !important; line-height: 21px !important; }
  .nrha-st-mini .nrha-st-card .nrha-st-info p, .nrha-st.nrha-st-mini .nrha-st-card .nrha-st-info p { font-size: 12px !important; }
  .nrha-st.nrha-st-mini .nrha-st-card .nrha-st-fee { font-size: 14px !important; }
  .nrha-st.nrha-st-mini .nrha-st-card .nrha-st-fee small { font-size: 12px; }
  .wp-block-columns:has(> .wp-block-column > .nrha-seller) { flex-wrap: wrap !important; gap: 12px !important; }
  .wp-block-columns:has(> .wp-block-column > .nrha-seller) > .wp-block-column { flex-basis: calc(50% - 6px) !important; flex-grow: 0 !important; }
  .nrha-seller { padding: 12px !important; }
  .nrha-seller > .nrha-seller-photo { margin: -12px -12px 10px !important; }
  .nrha-seller p { font-size: 12px !important; }
  .nrha-seller p:has(> em:only-child) { font-size: 16px !important; }
  .nrha-seller .nrha-seller-price { font-size: 14px !important; }
}

.nrha-compare-band .wp-block-heading { margin-top: 0 !important; }
.nrha-compare-band .nrha-benefit-table table, .nrha-compare-band figure.wp-block-table { background: transparent; }
