:root {
  color-scheme: light;
  --eq-blue: #273784;
  --eq-blue-dark: #19275a;
  --eq-cyan: #40b3df;
  --eq-green: #73ad21;
  --eq-ink: #18243a;
  --eq-muted: #526179;
  --eq-line: #dbe3ee;
  --eq-surface: #f3f7fb;
  --eq-paper: #fff;
}

.eq-mobile, .eq-mobile * { box-sizing: border-box; }
.eq-mobile {
  margin: 0;
  background: var(--eq-surface);
  color: var(--eq-ink);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.eq-mobile a, .eq-legacy-bar a { color: #273784; text-underline-offset: .19em; }
.eq-mobile :focus-visible, .eq-legacy-bar a:focus-visible { outline: 3px solid #146a85; outline-offset: 3px; }
.eq-mobile h1, .eq-mobile h2, .eq-mobile p { margin: 0 0 .8rem; }
.eq-mobile h1 { color: var(--eq-blue-dark); font-size: clamp(1.85rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.035em; }
.eq-mobile h2 { color: var(--eq-blue-dark); font-size: 1.25rem; line-height: 1.25; }
.eq-mobile input, .eq-mobile select, .eq-mobile button { font: inherit; }
.eq-skip { position: fixed; top: -100px; left: 1rem; background: white; padding: .5rem 1rem; z-index: 5; }
.eq-skip:focus { top: .7rem; }
.eq-header { background: var(--eq-blue-dark); color: white; }
.eq-bar, .eq-main, .eq-footer { max-width: 72rem; width: 100%; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.eq-bar { min-height: 4.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.eq-bar a { color: white; }
.eq-brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.24rem; font-weight: 760; text-decoration: none; white-space: nowrap; }
.eq-brand img { border-radius: 50%; object-fit: cover; background: white; }
.eq-brand span { color: #b8df7e; margin-inline-start: -.48rem; }
.eq-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.eq-nav a, .eq-menu-toggle { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .65rem; border-radius: .4rem; text-decoration: none; }
.eq-nav a:hover, .eq-nav [aria-current] { background: rgba(255,255,255,.16); }
.eq-menu-toggle { color: white; border: 1px solid #8897c4; background: transparent; cursor: pointer; display: none; }
.eq-main { padding-block: clamp(1.2rem, 4vw, 2.8rem); min-height: 70vh; }
.eq-footer { border-top: 1px solid var(--eq-line); padding-block: 1.35rem; color: var(--eq-muted); display: flex; gap: .65rem 1rem; justify-content: space-between; flex-wrap: wrap; }
.eq-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

.eq-hero { border-radius: 1.1rem; color: white; background: linear-gradient(130deg, #19275a 38%, #2c4693 100%); border-bottom: .36rem solid var(--eq-green); padding: clamp(1.25rem, 4vw, 3.25rem); display: grid; grid-template-columns: 3fr 1fr; align-items: center; gap: 1.5rem; }
.eq-hero h1 { color: white; margin-bottom: .9rem; }
.eq-hero p { max-width: 39ch; color: #edf3fc; }
.eq-hero-mark { width: min(100%, 220px); height: auto; border: .35rem solid #fff; border-radius: 50%; background: white; justify-self: center; }
.eq-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.eq-button, .eq-mobile a.eq-button {
  display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1rem; border: 1px solid var(--eq-blue); border-radius: .5rem;
  background: var(--eq-blue); color: white; font-weight: 680; line-height: 1.25; text-decoration: none;
  text-align: center; cursor: pointer;
}
.eq-button:hover, .eq-mobile a.eq-button:hover { background: #1b2868; }
.eq-button.eq-secondary, .eq-mobile a.eq-secondary { background: #edf3ff; color: var(--eq-blue-dark); border-color: #b7c6e1; }
.eq-mobile a.eq-secondary:hover, .eq-button.eq-secondary:hover { background: #dbe7fe; }
.eq-hero .eq-button:first-child { background: #b9df80; color: #122409; border-color: #b9df80; }
.eq-hero .eq-button:first-child:hover { background: #d0eca4; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.eq-home-sections { margin-top: 1rem; }
.eq-card { border: 1px solid var(--eq-line); border-radius: .8rem; padding: clamp(1rem, 3vw, 1.55rem); background: white; min-width: 0; }
.eq-card > :last-child, .eq-note > :last-child { margin-bottom: 0; }
.eq-page-heading { margin: 0 0 1.1rem; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; }
.eq-page-heading h1, .eq-page-heading p { margin-bottom: .25rem; }
.eq-horse details { margin-top: 1rem; border-top: 1px solid var(--eq-line); padding-top: .65rem; }
.eq-horse summary { font-weight: 650; cursor: pointer; min-height: 2.5rem; }
.eq-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.eq-links a { display: inline-flex; min-height: 2.55rem; align-items: center; }
.eq-calc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 1rem; }
.eq-form { display: grid; gap: .9rem; }
.eq-short-form { margin-bottom: 1rem; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.eq-form label { display: grid; gap: .35rem; font-weight: 650; }
.eq-form input:not([type=hidden]), .eq-form select { width: 100%; min-height: 2.8rem; border-radius: .45rem; padding: .5rem .65rem; border: 1px solid #9aacc6; background: white; color: var(--eq-ink); }
.eq-form select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg,transparent 50%,#273784 50%) right 1rem center/5px 5px no-repeat, linear-gradient(135deg,#273784 50%,transparent 50%) right .7rem center/5px 5px no-repeat, white; }
.eq-form + .eq-muted, .eq-ai-actions, .eq-source { margin-top: .85rem; }
.eq-muted, .eq-source { color: var(--eq-muted); }
.eq-muted { font-size: .9rem; }
.eq-source { font-size: .95rem; }
.eq-energy { padding: .9rem 1rem; border-left: .24rem solid var(--eq-green); background: #f0f6e9; border-radius: .35rem; display: grid; }
.eq-energy strong { font-size: clamp(1.55rem, 5vw, 2.6rem); color: var(--eq-blue-dark); line-height: 1.1; padding-block: .25rem; }
.eq-energy small { font-size: .55em; }
.eq-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .6rem; margin: 1rem 0; }
.eq-metrics div { background: #f5f8fd; padding: .55rem .7rem; border: 1px solid var(--eq-line); border-radius: .4rem; min-width: 0; }
.eq-metrics dt { font-size: .88rem; color: var(--eq-muted); }
.eq-metrics dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.eq-note, .eq-notice { padding: .85rem 1rem; border-radius: .45rem; overflow-wrap: anywhere; }
.eq-note { background: #f4f7fa; border: 1px solid var(--eq-line); }
.eq-notice { background: #fff7e6; border-left: .25rem solid #a65a0b; }
.eq-ai-actions + .eq-note { margin-top: .8rem; }
.eq-report {
  min-width: 0; position: relative; overflow: hidden; border: .32rem solid var(--eq-blue); border-radius: .9rem;
  background: linear-gradient(90deg, transparent 96%, #eef5df 96%), white; padding: clamp(.8rem, 3vw, 2rem);
}
.eq-report-head { display: flex; flex-wrap: wrap; gap: .9rem 1.3rem; justify-content: space-between; align-items: start; }
.eq-report-name { font-weight: 720; color: #364970; font-size: 1.2rem; }
.eq-signature { display: grid; min-width: 13rem; background: #c0eafa; border-top: .22rem solid var(--eq-cyan); border-radius: .48rem; padding: .7rem .95rem; font-size: .94rem; }
.eq-report section { margin-top: 1.4rem; }
.eq-report h2 { border-bottom: 1px solid var(--eq-line); padding-bottom: .4rem; }
.eq-table-wrap, .eq-legacy-table { overflow-x: auto; max-width: 100%; min-width: 0; border-radius: .4rem; }
.eq-diet-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.eq-diet-table th, .eq-diet-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--eq-line); white-space: nowrap; text-align: right; }
.eq-diet-table thead th { background: #e9eff9; color: var(--eq-blue-dark); }
.eq-diet-table tbody td { background: white; }
.eq-diet-table :is(thead,tbody) th:first-child { position: sticky; left: 0; text-align: left; border-right: 1px solid var(--eq-line); }
.eq-diet-table tbody th:first-child { background: #f5f8fc; white-space: normal; min-width: 8rem; max-width: 16rem; }
.eq-legacy-bar { display: flex; justify-content: space-between; gap: .7rem; padding: .65rem 1rem; margin-bottom: .7rem; background: #19275a; color: white; font: 650 1rem/1.5 system-ui, sans-serif; }
.eq-legacy-bar a { color: white !important; }
body:has(.eq-legacy-bar) input, body:has(.eq-legacy-bar) select, body:has(.eq-legacy-bar) button, body:has(.eq-legacy-bar) textarea { max-width: 100%; box-sizing: border-box; }
@media (max-width: 700px) {
  .eq-mobile .eq-bar { flex-wrap: wrap; row-gap: .45rem; padding-block: .6rem; }
  .eq-nav { width: 100%; }
  .eq-menu-toggle { display: inline-flex; }
  .eq-nav[hidden] { display: none; }
  .eq-nav a { flex: 1 1 10rem; }
  .eq-calc { grid-template-columns: minmax(0, 1fr); }
  .eq-hero { grid-template-columns: minmax(0, 1fr) 5rem; gap: .65rem; }
  .eq-hero-mark { border-width: .15rem; align-self: start; }
  .eq-short-form { grid-template-columns: minmax(0, 1fr); }
  .eq-report { background: white; }
  .eq-signature { width: 100%; }
  body:has(.eq-legacy-bar) { margin: 0; padding: 0 .7rem; font-size: 1rem; min-width: 0; }
  body:has(.eq-legacy-bar) :is(.container, .content, .header, form, fieldset, .leftcolumn, .rightcolumn) { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding-inline: min(3vw, .85rem); }
  body:has(.eq-legacy-bar) :is(.topnav, .nav, .navbar) { display: flex; flex-wrap: wrap; height: auto; }
  body:has(.eq-legacy-bar) :is(.topnav, .nav, .navbar) a { float: none !important; padding: .65rem .7rem; min-height: 44px; box-sizing: border-box; }
  body:has(.eq-legacy-bar) :is(img, canvas, iframe) { max-width: 100%; }
  body:has(.eq-legacy-bar) :is(input, select, textarea, button) { font-size: max(16px, 1rem); }
  body:has(.eq-legacy-bar) :is(input:not([type=checkbox]):not([type=radio]), select, button) { min-height: 44px; }
}
@media print {
  @page { size: A4 landscape; margin: 11mm; }
  .eq-mobile { background: white; color: #111; font-size: 10pt; }
  .eq-header, .eq-footer, .eq-print-hide, .eq-skip { display: none; }
  .eq-main { max-width: none; padding: 0; }
  .eq-report { padding: .65rem; overflow: visible; border-width: 1.5pt; background: white; }
  .eq-report h1 { font-size: 21pt; }
  .eq-report h2 { font-size: 12pt; break-after: avoid; }
  .eq-report-head, .eq-metrics, .eq-diet-table tr { break-inside: avoid; }
  .eq-table-wrap { overflow: visible; }
  .eq-diet-table table { table-layout: fixed; font-size: 6.8pt; }
  .eq-diet-table th, .eq-diet-table td { white-space: normal; overflow-wrap: anywhere; padding: 2px; }
  .eq-diet-table :is(thead,tbody) th:first-child { position: static; width: 13%; }
}

.eq-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem 1rem; }
.eq-form textarea { width: 100%; padding: .65rem; border: 1px solid #9aacc6; border-radius: .45rem; font: inherit; }
.eq-form label.eq-check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 550; }
.eq-form input[type=checkbox] { width: 1.25rem; min-height: 1.25rem; flex: 0 0 auto; margin: .12rem 0 0; }
.eq-feed-fields { margin: 0 0 .9rem; padding: .7rem; border: 1px solid var(--eq-line); border-radius: .5rem; min-width: 0; }
.eq-feed-fields legend { font-weight: 650; }
.eq-feed-fields .eq-button { margin-top: .65rem; }
.eq-diet-table tfoot th, .eq-diet-table tfoot td { color: var(--eq-blue-dark); background: #e9eff9; font-weight: 680; }
.eq-diet-table tfoot th { position: sticky; left: 0; text-align: left; }
@media print { .eq-diet-table tfoot th { position: static; } }
.eq-measurements table { width: 100%; border-collapse: collapse; text-align: left; }
.eq-measurements th, .eq-measurements td { padding: .55rem; border-bottom: 1px solid var(--eq-line); white-space: nowrap; }
.eq-measurements thead th { background: #e9eff9; }
