:root {
  --horta-ink: #173728;
  --horta-deep: #10291f;
  --horta-sage: #7fa46a;
  --horta-clay: #b86841;
  --horta-sand: #f4f0e6;
  --horta-paper: #fcfaf4;
  --horta-line: rgba(27, 55, 40, .17);
  --horta-muted: #667268;
}

.horta-page { background: var(--horta-paper); color: var(--horta-ink); font-family: 'Inter', sans-serif; }
.horta-page main { display: block; }
.horta-page header { position: relative; z-index: 20; }
.horta-page footer { margin-top: 0; }
.horta-page footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.horta-page footer a { color: inherit; opacity: .72; text-decoration: none; }

.horta-hero { background: radial-gradient(circle at 84% 26%, rgba(138, 178, 102, .18), transparent 25%), linear-gradient(115deg, #112b20 0%, #1e4934 58%, #173728 100%); color: #f6f3e8; min-height: 360px; display: flex; align-items: center; }
.horta-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 72px; align-items: end; padding-top: 72px; padding-bottom: 76px; }
.horta-eyebrow { margin: 0 0 13px; color: var(--horta-clay); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.horta-hero .horta-eyebrow, .horta-hero-note .horta-note-kicker { color: #c7dcae; }
.horta-hero h1 { max-width: 730px; margin: 0; color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.8rem, 5.4vw, 5.6rem); font-weight: 650; letter-spacing: -.065em; line-height: .92; }
.horta-hero h1 em, .horta-limits h2 em { color: #c9dfad; font-style: italic; }
.horta-hero-copy { max-width: 690px; margin: 25px 0 0; color: rgba(255,255,255,.82); font-size: 1.02rem; line-height: 1.72; }
.horta-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.horta-hero-pills span { border: 1px solid rgba(232, 244, 214, .25); color: #e7f0da; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 8px 10px; }
.horta-hero-note { align-self: center; border-left: 1px solid rgba(228, 240, 209, .34); padding: 22px 0 22px 25px; }
.horta-note-kicker { display: block; margin-bottom: 11px; font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.horta-hero-note strong { display: block; color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 1.55rem; line-height: 1.1; }
.horta-hero-note p { margin: 14px 0 0; color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.65; }

.horta-tool-section { background: linear-gradient(90deg, #eef0e7 0 29%, var(--horta-paper) 29%); padding: 64px 0 86px; }
.horta-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 58px; align-items: start; }
.horta-controls { position: sticky; top: 24px; padding: 0 0 8px; }
.horta-controls-head { border-bottom: 1px solid var(--horta-line); margin-bottom: 23px; padding-bottom: 23px; }
.horta-controls h2 { margin: 0; color: var(--horta-ink); font-family: 'Fraunces', Georgia, serif; font-size: 2.05rem; letter-spacing: -.05em; line-height: 1; }
.horta-controls-head > p:last-child { margin: 14px 0 0; color: var(--horta-muted); font-size: .85rem; line-height: 1.62; }
.horta-field { margin-bottom: 17px; }
.horta-field label { display: block; margin-bottom: 7px; color: var(--horta-ink); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.horta-field select, .horta-field input { box-sizing: border-box; width: 100%; min-height: 43px; border: 1px solid rgba(23,55,40,.26); border-radius: 0; background: rgba(255,255,255,.64); color: var(--horta-ink); font: inherit; font-size: .87rem; outline: none; padding: 0 12px; }
.horta-field select:focus, .horta-field input:focus { border-color: var(--horta-clay); box-shadow: 0 0 0 3px rgba(184,104,65,.14); }
.horta-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit-input { position: relative; }
.unit-input input { padding-right: 38px; }
.unit-input span { position: absolute; top: 50%; right: 12px; color: var(--horta-muted); font-size: .8rem; pointer-events: none; transform: translateY(-50%); }
.field-help { min-height: 32px; margin: 7px 0 0; color: #66756a; font-size: .72rem; line-height: 1.4; }
.horta-submit { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: var(--horta-ink); color: #fff; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 800; letter-spacing: .075em; margin-top: 22px; padding: 15px 17px; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease; }
.horta-submit:hover, .horta-submit:focus-visible { background: #285a42; transform: translateY(-2px); }
.horta-submit:active { transform: scale(.98); }
.horta-disclaimer { margin: 14px 0 0; color: #737c72; font-size: .68rem; line-height: 1.55; }
.horta-irrigation-help { margin-top: -8px; min-height: 0; }

.horta-results { min-width: 0; }
.horta-result-head { border-bottom: 1px solid var(--horta-line); display: flex; gap: 30px; justify-content: space-between; padding: 7px 0 24px; }
.horta-result-head h2, .horta-empty h2 { margin: 0; color: var(--horta-ink); font-family: 'Fraunces', Georgia, serif; font-size: clamp(2rem, 3.5vw, 3.4rem); letter-spacing: -.055em; line-height: 1; }
.horta-result-head > div:first-child > p:last-child { max-width: 610px; margin: 15px 0 0; color: var(--horta-muted); font-size: .93rem; line-height: 1.6; }
.horta-result-tags { align-content: flex-start; display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; max-width: 215px; }
.horta-result-tags span { border: 1px solid var(--horta-line); color: #526558; font-size: .65rem; font-weight: 700; letter-spacing: .03em; padding: 7px 8px; }
.horta-result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 27px; margin-top: 28px; }
.bed-figure { margin: 0; }
.bed-figure-top { display: flex; justify-content: space-between; gap: 8px; color: var(--horta-muted); font-size: .7rem; font-weight: 700; margin-bottom: 8px; }
.bed-canvas { background-color: #cab88d; background-image: radial-gradient(rgba(92,68,39,.2) 1px, transparent 1.4px); background-size: 11px 11px; border: 1px solid rgba(81, 67, 36, .35); min-height: 235px; overflow: hidden; position: relative; }
.bed-canvas::before, .bed-canvas::after { background: rgba(255,255,255,.2); content: ''; height: 1px; left: 0; position: absolute; right: 0; top: 50%; }
.bed-crop-guide { border-top: 1px dashed color-mix(in srgb, var(--row-color) 68%, transparent); left: 0; opacity: .72; position: absolute; right: 0; transform: translateY(-50%); }
.bed-irrigation { border-top: 2px solid #4092a9; filter: drop-shadow(0 0 1px rgba(255,255,255,.78)); height: 0; left: 6px; position: absolute; right: 6px; transform: translateY(-50%); z-index: 1; }
.bed-emitter { background: #d9f3f8; border: 1px solid #27768d; border-radius: 50%; height: 6px; position: absolute; top: -4px; transform: translateX(-50%); width: 6px; }
.bed-plant { background: var(--plant-color); border: 2px solid rgba(250,249,237,.9); border-radius: 50%; box-shadow: 0 1px 2px rgba(45,38,20,.28); height: 10px; position: absolute; transform: translate(-50%, -50%); width: 10px; z-index: 2; }
.bed-plant:nth-of-type(3n) { height: 13px; width: 13px; }
.bed-orientation { bottom: 13px; color: rgba(65,55,32,.72); font-size: .62rem; font-weight: 800; left: 15px; letter-spacing: .04em; position: absolute; text-transform: uppercase; }
.bed-path { align-items: center; background: repeating-linear-gradient(135deg, #e5e2d9 0 6px, #ddd8cc 6px 11px); border-bottom: 1px solid rgba(71,70,59,.24); border-left: 1px solid rgba(71,70,59,.24); border-right: 1px solid rgba(71,70,59,.24); color: #66695e; display: flex; font-size: .68rem; font-weight: 700; height: 40px; justify-content: center; text-transform: uppercase; }
.bed-figure figcaption { color: #7c8276; font-size: .67rem; line-height: 1.45; margin-top: 8px; }
.horta-irrigation-summary { background: #edf4f2; border-left: 3px solid #4092a9; color: #52655d; font-size: .68rem; line-height: 1.48; margin-top: 14px; padding: 10px 12px; }
.horta-irrigation-summary strong { color: #1d5b6b; display: block; font-size: .62rem; letter-spacing: .08em; margin-bottom: 4px; text-transform: uppercase; }
.horta-irrigation-summary span { font-weight: 700; }
.horta-irrigation-summary p { color: #64766e; margin: 7px 0 0; }
.horta-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 17px; }
.horta-legend span { align-items: center; color: #536057; display: inline-flex; font-size: .7rem; gap: 6px; }
.horta-legend i { display: inline-block; height: 8px; width: 8px; }
.horta-risk-panel { background: #243c2b; color: #e9f0df; padding: 24px 22px; }
.horta-risk-panel .horta-eyebrow { color: #bcd59d; }
.horta-risk-panel h3 { color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; letter-spacing: -.04em; margin: 0; }
.horta-risk-panel ul { border-top: 1px solid rgba(231,243,211,.2); list-style: none; margin: 17px 0 0; padding: 11px 0 0; }
.horta-risk-panel li { color: rgba(236,243,226,.82); font-size: .75rem; line-height: 1.55; padding: 9px 0; }
.horta-risk-panel li + li { border-top: 1px solid rgba(231,243,211,.14); }
.horta-source { border-top: 1px solid rgba(231,243,211,.15); color: rgba(236,243,226,.58); font-size: .64rem; line-height: 1.45; margin: 13px 0 0; padding-top: 12px; }
.horta-source strong { color: rgba(255,255,255,.82); font-size: .61rem; letter-spacing: .07em; text-transform: uppercase; }
.horta-source a { color: #d6e8be; text-decoration-color: rgba(214,232,190,.4); text-underline-offset: 2px; }
.horta-plan-table, .horta-sequence { border-top: 1px solid var(--horta-line); margin-top: 34px; padding-top: 25px; }
.horta-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.horta-section-heading .horta-eyebrow { margin: 0; }
.horta-section-heading h3 { color: var(--horta-ink); font-family: 'Fraunces', Georgia, serif; font-size: 1.8rem; letter-spacing: -.04em; margin: 0; }
.horta-table-scroll { overflow-x: auto; }
.horta-plan-table table { border-collapse: collapse; min-width: 820px; width: 100%; }
.horta-plan-table th { border-bottom: 1px solid var(--horta-line); color: #747b72; font-size: .62rem; letter-spacing: .08em; padding: 0 10px 10px; text-align: left; text-transform: uppercase; }
.horta-plan-table td { border-bottom: 1px solid rgba(31,61,44,.1); color: #405346; font-size: .76rem; padding: 12px 10px; vertical-align: top; }
.row-swatch { display: inline-block; height: 8px; margin: 0 7px 0 0; width: 8px; }
.row-options { display: flex; flex-wrap: wrap; gap: 4px; min-width: 160px; }
.row-options span { background: #eef1e7; color: #536558; font-size: .65rem; line-height: 1.25; padding: 4px 5px; }
.horta-sequence ol { counter-reset: sequence; display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.horta-sequence li { border-top: 3px solid var(--horta-sage); padding: 13px 22px 0 0; }
.horta-sequence li + li { padding-left: 18px; }
.horta-sequence li span { color: var(--horta-clay); display: block; font-size: .65rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 8px; }
.horta-sequence li strong { color: var(--horta-ink); font-size: .79rem; }
.horta-sequence li p { color: var(--horta-muted); font-size: .73rem; line-height: 1.55; margin: 8px 0 0; }
.horta-next { background: #e8edde; display: grid; grid-template-columns: 1fr auto; gap: 12px 25px; margin-top: 33px; padding: 23px 25px; }
.horta-next .horta-eyebrow { grid-column: 1 / -1; margin: 0; }
.horta-next > p:nth-child(2) { color: #415748; font-size: .78rem; line-height: 1.55; margin: 0; }
.horta-next > div { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.horta-next button, .horta-next a, .horta-read-link { border: 1px solid var(--horta-ink); color: var(--horta-ink); cursor: pointer; display: inline-block; font: inherit; font-size: .65rem; font-weight: 800; letter-spacing: .055em; padding: 9px 11px; text-decoration: none; text-transform: uppercase; transition: background 160ms ease, color 160ms ease; }
.horta-next button { background: transparent; }
.horta-next a, .horta-read-link { background: var(--horta-ink); color: #fff; }
.horta-next button:hover, .horta-next button:focus-visible { background: #d6e0c8; }
.horta-next a:hover, .horta-next a:focus-visible, .horta-read-link:hover, .horta-read-link:focus-visible { background: #386446; }
.horta-empty { background: #eef0e7; padding: 49px; }
.horta-empty h2 { max-width: 660px; }
.horta-empty > p:not(.horta-eyebrow) { color: var(--horta-muted); line-height: 1.65; max-width: 620px; }
.horta-blocked { border-left: 3px solid var(--horta-clay); margin: 25px 0; padding: 10px 0 10px 14px; }
.horta-blocked strong { color: var(--horta-ink); display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.horta-blocked span { color: var(--horta-muted); display: block; font-size: .78rem; margin-top: 6px; }

.horta-limits { background: #dce8cf; padding: 66px 0 76px; }
.horta-limits-grid { align-items: end; display: grid; gap: 50px; grid-template-columns: 1.15fr .9fr auto; }
.horta-limits h2 { color: var(--horta-ink); font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.2rem, 3.5vw, 3.8rem); letter-spacing: -.06em; line-height: .94; margin: 0; }
.horta-limits-grid > div p { color: #536658; font-size: .8rem; line-height: 1.62; margin: 0; }
.horta-limits-grid > div p + p { margin-top: 12px; }
.horta-limits a { border-bottom: 1px solid var(--horta-ink); color: var(--horta-ink); font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding-bottom: 7px; text-decoration: none; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 960px) {
  .horta-hero-grid { gap: 40px; grid-template-columns: minmax(0, 1fr) 260px; }
  .horta-layout { gap: 34px; grid-template-columns: 300px minmax(0, 1fr); }
  .horta-result-grid { grid-template-columns: 1fr; }
  .horta-risk-panel { max-width: none; }
  .horta-limits-grid { gap: 30px; grid-template-columns: 1fr 1fr; }
  .horta-limits-grid > a { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  .horta-hero { min-height: 0; }
  .horta-hero-grid { display: block; padding-bottom: 47px; padding-top: 52px; }
  .horta-hero h1 { font-size: clamp(2.8rem, 15vw, 4.25rem); }
  .horta-hero-note { margin-top: 34px; }
  .horta-tool-section { background: var(--horta-paper); padding: 35px 0 54px; }
  .horta-layout { display: block; }
  .horta-controls { border-bottom: 1px solid var(--horta-line); margin-bottom: 35px; padding-bottom: 33px; position: static; }
  .horta-result-head { display: block; }
  .horta-result-tags { justify-content: flex-start; margin-top: 17px; max-width: none; }
  .bed-canvas { min-height: 205px; }
  .bed-plant { height: 9px; width: 9px; }
  .horta-irrigation-summary { font-size: .67rem; }
  .horta-section-heading { align-items: start; display: block; }
  .horta-section-heading h3 { margin-top: 7px; }
  .horta-sequence ol { display: block; }
  .horta-sequence li, .horta-sequence li + li { border-left: 3px solid var(--horta-sage); border-top: 0; margin-top: 14px; padding: 0 0 0 14px; }
  .horta-next { display: block; }
  .horta-next > p:nth-child(2) { margin-top: 10px; }
  .horta-next > div { justify-content: flex-start; margin-top: 18px; }
  .horta-limits { padding: 48px 0; }
  .horta-limits-grid { display: block; }
  .horta-limits-grid > div { margin-top: 26px; }
  .horta-limits-grid > a { display: inline-block; margin-top: 23px; }
}

@media print {
  .horta-page header, .horta-page footer, .horta-controls, .horta-hero, .horta-limits { display: none !important; }
  .horta-tool-section { background: #fff; padding: 0; }
  .horta-layout { display: block; }
  .horta-results { width: 100%; }
  .horta-next button, .horta-next a { display: none; }
}
