/* Sylora home: page CSS on top of the kit (system.css and friends). Only what sits inside a visual,
   the client-login field, the team row of five and the right-to-left fixes the kit lacks. */

.nav__logo img { height: 40px; width: auto; }
.footer .nav__logo img { height: 44px; }
@media (max-width: 639px) { .nav__logo img { height: 32px; } }

/* RTL: the kit is written left to right; mirror the few physical rules that read wrong in Hebrew */
[dir="rtl"] .field__error::before { margin-right: 0; margin-left: var(--s-2); }
[dir="rtl"] .link::after { scale: -1 1; }
[dir="rtl"] .m-arrow path { transform: scaleX(-1); transform-box: view-box; transform-origin: center; }
.mail { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.mail:hover { text-decoration-color: currentColor; }
[dir="rtl"] .rows > li { text-align: right; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }   /* Hebrew letters close up under negative tracking */

/* hero: the product screenshot in a plain window chrome, on the brand mint */
.hero--centred .hero__window { background: var(--p-surface); }
.hero--centred .hero__lead { color: var(--ink); }   /* body text at 7:1, not the muted grey */
.hero--centred h1 { max-width: none; }
.hero__note { font-size: var(--t-small); color: var(--muted); margin-top: calc(-1 * var(--s-2)); }
/* the demo shows whole: the window is as tall as the screenshot, with no fade */
.hero--centred .hero__window { flex: none; min-height: 0; display: flex; justify-content: center; padding: var(--s-7) var(--s-6); -webkit-mask-image: none; mask-image: none; }
.hero--centred .hero__window > .ly-piece.shot { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: min(880px, 100%); }
@media (max-width: 639px) { .hero--centred .hero__window { padding: var(--s-4); margin-top: var(--s-6); } .hero--centred .pill .muted { display: none; } }
.shot { background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 10%, transparent), 0 24px 60px -28px color-mix(in oklab, var(--p-ink) 45%, transparent); }
.shot__bar { display: flex; align-items: center; gap: var(--s-3); height: 36px; padding: 0 14px; border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 8%, transparent); font: 400 13px/1 var(--font-mono); color: var(--p-muted); }
.shot__dots { display: flex; gap: 6px; } .shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dce5de; }
.shot > img { display: block; width: 100%; height: auto; }

/* capabilities: the map crop at its own size, cut by the panel's foot */
#capabilities .panel { --p-h: 300px; }
#capabilities .cap-map { --ax: 32px; --ay: 32px; width: 340px; border-radius: var(--r-md); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 10%, transparent); }
@media (min-width: 640px) and (max-width: 1023px) { #capabilities .panel { --p-h: 320px; } }
@media (max-width: 639px) { #capabilities .panel { --p-h: 180px; } #capabilities .stage { --fade-h: 40px; } #capabilities .ui-chat__input { display: none; } }

/* the value chain: the statement set large on the brand green, the three links under it */
:is(#chain, #product) .mo-la__type { font: var(--display-weight) clamp(36px, 4.4vw, 64px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); max-width: 20ch; }
[dir="rtl"] :is(#chain, #product) .mo-la__type { letter-spacing: 0; }
:is(#chain, #product) .chain__sub { margin-top: var(--s-6); max-width: 48ch; }
/* one line runs under the three links, a dot at the start of each */
:is(#chain, #product) .chain__links { list-style: none; padding: var(--s-5) 0 0; margin: var(--s-8) 0 0; position: relative; }
:is(#chain, #product) .chain__links::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: color-mix(in oklab, #A7D8A0 70%, transparent); }
:is(#chain, #product) .chain__links > li { position: relative; display: grid; gap: var(--s-2); }
:is(#chain, #product) .chain__links > li::before { content: ""; position: absolute; top: calc(-1 * var(--s-5) - 4px); inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: #A7D8A0; }
:is(#chain, #product) .chain__name { font: 500 var(--t-card)/1.3 var(--font-text); }
:is(#chain, #product) .chain__links p { color: var(--ink); opacity: .86; }
@media (max-width: 639px) {
  :is(#chain, #product) .chain__links { margin-top: var(--s-7); row-gap: var(--s-6); padding-top: 0; }
  :is(#chain, #product) .chain__links::before { display: none; }
  :is(#chain, #product) .chain__links > li { border-top: 1px solid color-mix(in oklab, #A7D8A0 70%, transparent); padding-top: var(--s-4); }
  :is(#chain, #product) .chain__links > li::before { top: -5px; }
}

/* audiences: the hub diagram on the lit ground fills the split frame */
#audiences .frame--lit { padding: 0; }
#audiences .frame--lit > .dg { position: absolute; inset: 0; }

/* proof: centred on the page axis, the two figures, then the customers' logos at one height */
#proof .proof { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }   /* centred both ways, as the client asked */
#proof h2 { max-width: 20ch; }
.proof__facts { display: flex; justify-content: center; gap: var(--s-9); margin: var(--s-8) 0 0; }
.proof__facts > div { display: grid; gap: var(--s-2); justify-items: center; }
.proof__facts dt { font-size: var(--t-small); color: var(--muted); }
.proof__facts dd { margin: 0; order: -1; }
.proof__label { margin-top: var(--s-9); color: var(--muted); }
.proof__logos { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: center; justify-items: center; align-items: center; gap: var(--s-6) var(--s-8); }   /* six logos, three and three */
.proof__logos img { display: block; height: 64px; width: auto; }
@media (max-width: 639px) {
  .proof__facts { gap: var(--s-7); margin-top: var(--s-7); }
  .proof__label { margin-top: var(--s-8); }
  .proof__logos { grid-template-columns: repeat(2, auto); gap: var(--s-6) var(--s-7); }
  .proof__logos img { height: 44px; }
}

/* team: five portraits in one row on the 12 columns' outer lines */
.team__shamir { height: 64px; width: auto; flex: none; }
.team { margin-top: var(--s-7); }
.team__group { height: clamp(320px, 42vw, 600px); }   /* the whole team, under the portraits */
.team__group > .frame__img { object-position: 50% 35%; }
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); align-content: start; }
.team .tile > div:last-child { display: grid; gap: var(--s-1); }
@media (min-width: 640px) and (max-width: 1023px) { .team { gap: var(--s-3); } }
@media (max-width: 639px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } .team .tile { --tile-ratio: 1 / 1; } .team__shamir { height: 48px; } .team { margin-top: var(--s-6); } }

/* client login: the farm's own address, in the nav panel and the footer */
.portal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); min-width: 0; }
.portal > label { font-weight: 500; }
.portal__row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 639px) { .portal__row > .btn { width: 100%; } }
.portal__field { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; height: var(--btn-h, 44px); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); font: 400 15px/1 var(--font-mono); overflow: hidden; }
.portal__field:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.portal__field input { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); padding: 0 4px 0 12px; font: inherit; font-size: 16px; outline: none; }
.portal__field span { padding-right: 12px; color: var(--muted); white-space: nowrap; }

/* the close: the demo form in place of the big button */
.close--form { align-items: start; }
.close--form .form textarea { min-height: 72px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .close--form .grid > .span-5, .close--form .grid > .form.span-6.start-7 { grid-column: 1 / -1; }
  footer.closing .close--form .grid > form.form { grid-column: 1 / -1; width: 100%; }
  .close--form .grid { row-gap: var(--s-5); }
  .closing__links .grid > .span-4:first-child { grid-column: 1 / span 6; }
  .closing__links .grid > .footer__col { grid-column: auto / span 3; }
  .closing__links .grid > .portal { grid-column: 1 / -1; }
  .closing__links .footer__lede { display: none; }
}
@media (max-width: 1023px) { #challenge .frame--split { --ratio: 56%; } }
@media (max-width: 639px) {
  #challenge .frame--split { --ratio: 80%; }
  #audiences .frame--split { --ratio: 90%; }
  .hero--centred .pill { width: 100%; justify-content: center; }
}

.portal__field input::placeholder { color: var(--muted); opacity: 1; }
@media (max-width: 639px) { main > section#team.g2 > .wrap > .team__group { align-self: start; flex: none; width: 100%; height: calc((100vw - 48px) / 1.5); min-height: 0; } }   /* the whole team in frame on a phone */

/* the client asked for as little white space between blocks as possible: every section after the hero
   takes its content's height, with one even padding, instead of the kit's one-or-two-screen boxes */
html main > section.section.section, html body > footer.footer.closing.closing {
  height: auto; min-height: 0; display: block;
  padding: var(--s-8) 0 calc(var(--s-8) + var(--bar));
}
html main > section.hero.hero { height: auto; min-height: 0; padding-bottom: var(--s-8); }
html main > section.section > .wrap.wrap, html body > footer.footer.closing > .wrap.wrap { height: auto; }
html main > section.section.g2.g2 > .wrap.wrap { grid-template-rows: auto; row-gap: var(--s-8); }
html { scroll-padding-top: var(--nav); }
@media (max-width: 639px) {
  html main > section.section.section, html body > footer.footer.closing.closing { padding: var(--s-7) 0 calc(var(--s-7) + var(--bar)); }
  html main > section.hero.hero { padding-bottom: var(--s-7); }
  html main > section.section.g2.g2 > .wrap.wrap { row-gap: var(--s-7); }
}

/* moshavim page (land management): numbered steps, the GIS base line, the member report, the quotes */
.steps { list-style: none; padding: 0; margin: 0; }
.steps > .card { gap: 0; }
.steps .step-num { margin-bottom: var(--s-4); color: var(--action); border-color: color-mix(in oklab, var(--action) 35%, transparent); }
.base { display: grid; gap: var(--s-3); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.base > p { max-width: 60ch; }
.base__layers { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.base__layers li { padding: 8px 16px; border-radius: 999px; background: var(--p-surface); font-size: var(--t-small); font-weight: 500; }
#report .frame--lit.report { --ratio: 0px; padding: var(--s-7); display: flex; align-items: center; justify-content: center; background: var(--p-surface); }
.report__doc { display: block; width: auto; max-width: 100%; max-height: 560px; height: auto; border-radius: var(--r-sm); box-shadow: 0 0 0 1px color-mix(in oklab, var(--p-ink) 10%, transparent), 0 24px 60px -28px color-mix(in oklab, var(--p-ink) 45%, transparent); }
#voices .voices { row-gap: var(--s-7); }
#voices .quote { display: grid; align-content: space-between; gap: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
#voices .quote blockquote { margin: 0; font-size: var(--t-lead); line-height: 1.5; letter-spacing: 0; }
#voices .quote figcaption b { font-weight: 500; }
@media (max-width: 639px) { #report .frame--lit.report { --ratio: 0px; padding: var(--s-5); } .report__doc { max-height: 440px; } }
