/* The six livestock application pages (Faz 2 plan §4.5–§4.6; package C; src/pages/livestock/applications.mjs).
   Loaded after apps.css (the photographic hero .ah, decision cards) and livestock-site.css (rings, status line,
   evidence labels, tool cards, development block, table toggle). Classes lsa-*. The site's gold is used in the
   drawings only, never as text colour. */

/* ---------- Hero ---------- */
.lsa-hero .hv-status { color: #c9d8d1; margin-top: 18px; }
.lsa-hero .btn-row { margin-top: 22px; }
.lsa-hero .ah-copy { min-width: 0; }
.lsa-hero .btn, .lsa-sec .link-arrow { max-width: 100%; white-space: normal; text-align: left; }
body:has(.lsa-hero) .ls-enquiry .btn { max-width: 100%; white-space: normal; }
.lsa-hero .h1 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.lsa-hero .ls-jump { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(7, 18, 15, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lsa-hero .ls-jump ul { display: flex; gap: 4px 28px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.lsa-hero .ls-jump ul::-webkit-scrollbar { display: none; }
.lsa-hero .ls-jump a { display: inline-flex; align-items: center; min-height: 52px; white-space: nowrap; color: #b9cac2; font-size: 0.86rem; font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; }
.lsa-hero .ls-jump a:hover, .lsa-hero .ls-jump a:focus-visible, .lsa-hero .ls-jump a[aria-current] { color: #fff; border-bottom-color: var(--ls-gold); }
.lsa-fc .fc-top .tag { flex: none; }

/* ---------- Sections ---------- */
.lsa-sec { scroll-margin-top: 72px; }
.lsa-narrow { max-width: 78ch; }
.lsa-prose p { margin: 0 0 14px; }
.lsa-prose p:last-child { margin-bottom: 0; }
.lsa-prose .tag, .lsa-steps .tag, .lsa-lit .tag, .lsa-rules .tag, .lsa-narrow > p .tag { vertical-align: 0.1em; margin-left: 2px; }
.lsa-side { display: grid; gap: 22px; min-width: 0; }
.lsa-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 6px; }
.lsa-status .hv-status { margin-top: 14px; }
.lsa-status .link-arrow { margin-top: 14px; }
.lsa-chain-model { max-width: 78ch; margin-top: 22px; }
.lsa-filmline { margin: 14px 0 0; font-size: 0.92rem; color: var(--fg-2); max-width: 78ch; }
.lsa-road { margin: 22px 0 0; max-width: 78ch; color: var(--fg-2); }
.lsa-litnote { margin: 22px 0 0; max-width: 78ch; font-size: 0.94rem; color: var(--fg-2); }
.lsa-sec .ls-tools { margin-top: 30px; }
.lsa-chart-wrap { min-width: 0; }
.lsa-supp-tbl { margin-top: 22px; }

/* Numbered measurement items and the literature list */
.lsa-steps { list-style: none; counter-reset: lsa; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; max-width: 86ch; }
.lsa-steps li { counter-increment: lsa; position: relative; padding-left: 44px; }
.lsa-steps li::before { content: counter(lsa, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; color: var(--fg-2); }
.lsa-steps p, .lsa-lit p { margin: 0; }
.lsa-lit { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; max-width: 86ch; }
.lsa-lit li { padding: 14px 16px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line); }
.lsa-rules { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Tables (stack into label / value pairs on phones) ---------- */
.lsa-tbl-wrap { margin-top: 18px; overflow-x: auto; }
.lsa-tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lsa-tbl caption { padding: 0 0 10px; text-align: left; font-size: 0.8rem; color: var(--fg-2); caption-side: top; }
.lsa-tbl th, .lsa-tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lsa-tbl thead th { font-size: 0.74rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.lsa-tbl tbody th { font-weight: 650; }
.app-window .lsa-tbl th, .app-window .lsa-tbl td { border-bottom-color: rgba(255, 255, 255, 0.1); }
.app-window .lsa-tbl thead th, .app-window .lsa-tbl caption { color: #a9bbb3; }
.app-window .lsa-tbl-wrap { background: transparent; border: 0; box-shadow: none; color: #eef4f0; }
.app-window .lsa-tbl-wrap:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .lsa-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lsa-tbl, .lsa-tbl tbody, .lsa-tbl tr, .lsa-tbl th, .lsa-tbl td { display: block; width: 100%; }
  .lsa-tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .app-window .lsa-tbl tr { border-bottom-color: rgba(255, 255, 255, 0.1); }
  .lsa-tbl th, .lsa-tbl td { border: 0; padding: 4px 0; }
  .lsa-tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
  .app-window .lsa-tbl td[data-label]::before { color: #a9bbb3; }
}

/* ---------- Windows and figures ---------- */
.lsa-win { margin: 0; min-width: 0; }
.lsa-win .aw-body { display: grid; gap: 12px; }
.lsa-win .aw-note { margin: 0; font-size: 0.8rem; color: #a9bbb3; }
.lsa-win .aw-note .tag { margin-right: 4px; }
.lsa-ring-one { display: grid; justify-items: center; }
.lsa-ring-one .hv-ring-in { max-width: 230px; }
.lsa-ring-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; justify-items: center; }
.lsa-ring-cell { display: grid; justify-items: center; gap: 6px; width: 100%; min-width: 0; }
.lsa-ring-cell .hv-ring-in { max-width: 170px; }
.lsa-ring-name { margin: 0; font-size: 0.82rem; font-weight: 650; color: #eef4f0; text-align: center; }
.lsa-legend { color: #a9bbb3; font-size: 0.8rem; gap: 8px 16px; }
.lsa-legend .k::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--k, #2c4239); vertical-align: -1px; }
.lsa-legend .k-lit { --k: var(--ls-gold); }
.lsa-legend .k-ramp { --k: var(--ls-gold-soft); }
.lsa-legend .k-dark { --k: #10231c; }
.lsa-legend .k-dark::before { border: 1px solid rgba(255, 255, 255, 0.3); }
.lsa-legend .k-now { --k: #fff; }
.lsa-legend .k-now::before { width: 2px; border-radius: 0; }
.lsa-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.8rem; color: #c9d8d1; }
.lsa-notes li::before { content: ''; display: inline-block; width: 16px; margin-right: 8px; vertical-align: 0.25em; border-top: 2px dashed var(--lemon, #d8f36a); }
.lsa-notes li.k-ramp::before { border-top: 6px solid var(--ls-gold-soft); }
.lsa-win .ls-table-btn { justify-self: start; margin-top: 0; }

/* SVG drawings of app-figures.mjs */
.lsa-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lsa-svg text { font-family: inherit; fill: #c9d8d1; }
.lsa-svg .lsa-lbl { font-size: 11px; font-weight: 650; fill: #eef4f0; }
.lsa-svg .lsa-lbl.sm { font-size: 10px; font-weight: 600; fill: #c9d8d1; }
.lsa-svg .lsa-lbl.warn { fill: #f2a28c; }
.lsa-svg .lsa-tick { font-size: 10px; fill: #a9bbb3; font-variant-numeric: tabular-nums; }
.lsa-svg .lsa-axis, .lsa-svg .lsa-tickline { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.lsa-svg .lsa-line { fill: none; stroke: var(--ls-gold); stroke-width: 2.5; stroke-linejoin: round; }
.lsa-svg .lsa-line.nat { stroke: #8fb8a8; stroke-width: 2; stroke-dasharray: 5 4; }
.lsa-svg .lsa-dash { stroke: var(--lemon, #d8f36a); stroke-width: 1.2; stroke-dasharray: 4 4; }
.lsa-svg .lsa-mark { stroke: #eef4f0; stroke-width: 1.2; }
.lsa-svg .lsa-no { stroke: #f2a28c; stroke-width: 1.5; stroke-dasharray: 3 3; }
.lsa-svg .lsa-band { fill: rgba(255, 255, 255, 0.05); }
.lsa-svg .lsa-win { fill: rgba(216, 243, 106, 0.08); stroke: var(--lemon, #d8f36a); stroke-width: 1; stroke-dasharray: 4 3; }
.lsa-svg .lsa-bar.lit { fill: var(--ls-gold-soft); stroke: var(--ls-gold); stroke-width: 1; }
.lsa-svg .lsa-bar.dark { fill: #10231c; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.lsa-svg .lsa-bar.hatchday { fill: rgba(255, 255, 255, 0.12); }
.lsa-svg .lsa-hatch { fill: rgba(224, 184, 74, 0.16); stroke: var(--ls-gold); stroke-width: 1; }
.lsa-svg .lsa-hatch.uvb { fill: rgba(160, 120, 240, 0.22); stroke: #b59cf2; }
.lsa-svg .lsa-hatch.uva { fill: rgba(120, 140, 240, 0.12); stroke: #8fa2ee; }
.lsa-svg .lsa-lux { fill: rgba(224, 184, 74, 0.3); }
.lsa-svg .lsa-lux.lux2 { fill: rgba(224, 184, 74, 0.55); }
.lsa-svg .lsa-dot { fill: var(--lemon, #d8f36a); }
/* 24-hour ring of figure 10 (UV-B window) */
.lsa-ring { max-width: 170px; margin: 0 auto; }
.lsa-ring .lsa-ring-lit { fill: var(--ls-gold); }
.lsa-ring .lsa-ring-dark { fill: #10231c; stroke: rgba(255, 255, 255, 0.14); }
.lsa-ring .lsa-ring-uvb { fill: #b59cf2; }
.lsa-ring .lsa-ring-inner { fill: none; stroke: var(--lemon, #d8f36a); stroke-dasharray: 3 3; }
.lsa-ring .lsa-ring-c { font-size: 18px; font-weight: 750; fill: #fff; }
.lsa-ring .lsa-ring-c.sm { font-size: 15px; }
.lsa-ring .lsa-ring-s { font-size: 9px; fill: #a9bbb3; }
.lsa-ring .lsa-ring-now line { stroke: #fff; stroke-width: 1.5; }

@media (max-width: 980px) {
  .lsa-effect .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lsa-ring-two { gap: 8px; }
  .lsa-svg .lsa-lbl { font-size: 13px; }
  .lsa-svg .lsa-lbl.sm, .lsa-svg .lsa-tick { font-size: 12px; }
}
