/* Site-wide extras (site-extras.js). Eran's palette; motion values from the motion library tokens
   (150ms feedback, 250ms open, 350ms card, arrive curve). Everything is visible without JS and without motion. */
:root{--x-ink:#102848;--x-deep:#081f3d;--x-green:#109850;--x-green-dark:#0d7a40;--x-paper:var(--paper,#f4f6fa);--x-line:#1028482a;--x-arrive:cubic-bezier(.22,1,.36,1)}

/* 1. Government marks */
.gov-mark{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.22em;margin-inline-end:.3em;border-radius:50%;background:#fff;object-fit:contain;box-shadow:0 0 0 1px #10284814}
[data-gov]>.gov-mark{width:20px;height:20px}

/* 2. Inline video */
.xv{position:relative;overflow:hidden;background:var(--x-deep);border-radius:6px;aspect-ratio:16/9}
.xv.is-vertical{aspect-ratio:9/16;max-width:320px}
.xv iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.xv-play{all:unset;position:absolute;inset:0;cursor:pointer;display:block;touch-action:manipulation}
.xv-play img{width:100%;height:100%;object-fit:cover;opacity:.88;transition:opacity .25s var(--x-arrive),transform .35s var(--x-arrive)}
.xv-btn{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:var(--x-green);display:grid;place-items:center;box-shadow:0 8px 24px #0006;transition:transform .15s var(--x-arrive)}
.xv-btn svg{width:28px;height:28px;fill:#fff;margin-left:4px}
.xv-label{position:absolute;inset-inline:0;bottom:0;padding:28px 14px 12px;color:#fff;font-size:15px;font-weight:600;line-height:1.35;background:linear-gradient(transparent,#081f3de6)}
.xv-play:focus-visible{outline:3px solid var(--x-green);outline-offset:-3px}
.xv-play:focus-visible img{opacity:1}
@media (hover:hover) and (pointer:fine){.xv-play:hover img{opacity:1;transform:scale(1.03)}.xv-play:hover .xv-btn{transform:scale(1.06)}}
.xv-play:active .xv-btn{transform:scale(.97)}

/* 3. Copy button + toast (motion library: site/btn-copy, site/mi-toast) */
.xc{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:999px;border:2px solid var(--x-ink);background:#fff;color:var(--x-ink);font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;transition:background-color .15s var(--x-arrive),color .15s var(--x-arrive),transform .15s var(--x-arrive)}
.xc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.xc .xc-done{display:none}
.xc.is-done{background:var(--x-green);border-color:var(--x-green);color:#fff}
.xc.is-done .xc-idle{display:none}.xc.is-done .xc-done{display:inline}
.xc:active{transform:scale(.97)}
.xc:focus-visible{outline:3px solid var(--x-green);outline-offset:3px}
@media (hover:hover) and (pointer:fine){.xc:hover{background:var(--x-ink);color:#fff}}
.xt{position:fixed;z-index:90;inset-inline:0;bottom:calc(20px + env(safe-area-inset-bottom));margin:auto;width:max-content;max-width:calc(100% - 32px);padding:12px 18px;border-radius:10px;background:var(--x-deep);color:#fff;font-size:15px;line-height:1.45;box-shadow:0 10px 30px #0004;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .25s var(--x-arrive),transform .25s var(--x-arrive)}
.xt.is-on{opacity:1;transform:none}
@media (max-width:760px){.xt{bottom:calc(84px + env(safe-area-inset-bottom))}}

/* 4. Sticky note with the client's words (motion library: graphic/sticky-notes) */
.v5-voice-sticky{align-self:center}
.v5-sticky-note{position:relative;background:#fff3a8;color:var(--x-ink);padding:34px 26px 30px;transform:rotate(-3deg);box-shadow:6px 10px 0 #10284812,0 18px 30px -18px #10284866;font-family:'Frank Ruhl Libre',Georgia,serif;font-size:clamp(24px,2.4vw,32px);line-height:1.3}
.v5-sticky-note p{margin:0}
.v5-sticky-tape{position:absolute;top:-12px;inset-inline-start:50%;width:96px;height:26px;margin-inline-start:-48px;background:#ffffffb3;box-shadow:0 1px 2px #0001;transform:rotate(4deg)}
.v5-voice-sticky figcaption{margin-top:18px}
@media (prefers-reduced-motion:no-preference){
  .xr-armed .v5-voice-sticky[data-reveal]:not(.is-in) .v5-sticky-note{transform:translateY(-12px) rotate(-8deg) scale(.95)}
  .v5-voice-sticky[data-reveal] .v5-sticky-note{transition:opacity .35s var(--x-arrive),transform .5s cubic-bezier(.34,1.4,.64,1)}
}

/* Marker highlight, drawn once when it comes into view (motion library: word/marker) */
.x-mark{background:linear-gradient(#10985033,#10985033) no-repeat 100% 88%/100% .5em;padding-inline:.08em}
@media (prefers-reduced-motion:no-preference){
  .xr-armed .x-mark[data-reveal]{background-size:0 .5em;transition:background-size .5s var(--x-arrive) .15s}
  .xr-armed .x-mark[data-reveal].is-in{background-size:100% .5em}
}

@media (prefers-reduced-motion:reduce){.xv-play img,.xv-btn,.xc,.xt,.v5-sticky-note,.x-mark{transition-duration:.01ms!important}}

/* Knowledge center: "ערן מסביר בנושא", a row of short videos played in place */
.yd-vstrip{margin:clamp(36px,5vw,56px) 0;padding-top:24px;border-top:2px solid var(--x-ink)}
.yd-vstrip-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 20px;margin-bottom:18px}
.yd-vstrip-head h2{margin:0}
.yd-vstrip-head a{font-weight:600;color:var(--x-green-dark);text-decoration:underline;text-underline-offset:4px}
.yd-vstrip ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px}
.yd-vstrip li{display:grid;gap:8px;align-content:start;padding:0;margin:0}
.yd-body .yd-vstrip ul>li{padding:0;margin:0}.yd-body .yd-vstrip ul>li:before{display:none}
.yd-vstrip li p{margin:0;font-size:15px;line-height:1.45;font-weight:500}
.yd-vstrip .xv.is-vertical{max-width:none}
.yd-vstrip .xv-btn{width:48px;height:48px}.yd-vstrip .xv-btn svg{width:22px;height:22px}
.yd-vstrip .xv-label{display:none}
@media (max-width:760px){.yd-vstrip ul{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:min(46%,180px);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.yd-vstrip li{scroll-snap-align:start}}

/* Ways into the site bot (bot.js opens on [data-bot-open]) */
.v5-qa-ask,.yd-search-bot{font-size:17px;margin-top:22px}
.yd-search-bot{font-size:15px;margin-top:10px}
.v5-qa-ask button,.yd-search-bot button{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--x-green-dark);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.v5-qa-ask a{font-weight:600;color:var(--x-ink);text-decoration:underline;text-underline-offset:4px}

/* Steps: one component for every "how we start" (design review #13). A vertical axis that fills as you scroll, a diamond
   per step that lights up when the line reaches it. No step is dimmed (review #14). Markup:
   <ol class="ey-steps" data-ey-steps><li><span class="ey-step-no">01</span><h3>Title</h3><p>Text</p></li>...</ol> */
.ey-steps{--p:0;list-style:none;margin:0;padding:0 56px 0 0;max-width:760px;position:relative;display:grid;gap:42px}
.ey-steps::before,.ey-steps::after{content:'';position:absolute;right:15px;top:8px;bottom:8px;width:3px;background:#dfe2da}
.ey-steps::after{background:var(--green);transform-origin:top;transform:scaleY(var(--p))}
.ey-steps>li{position:relative;display:grid;gap:6px}
.ey-steps>li::before{content:'';position:absolute;right:-49px;top:4px;width:17px;height:17px;transform:rotate(45deg);background:var(--v4-white,#fbfbf6);border:3px solid #c9cdc3;z-index:1;transition:background var(--fx-d-3,250ms),border-color var(--fx-d-3,250ms)}
.ey-steps>li.is-on::before{background:var(--green);border-color:var(--green)}
.ey-step-no{font-family:'Frank Ruhl Libre',Georgia,serif;font-size:18px;color:var(--green-ink,#0b6c38)}
.ey-steps>li.is-on .ey-step-no{font-weight:700}
.ey-steps h3{font-size:clamp(23px,2.2vw,32px);font-weight:500;letter-spacing:-.6px;line-height:1.2}
.ey-steps p{font-size:17px;line-height:1.7;color:#33454a;max-width:52ch}
@media(max-width:760px){
  .ey-steps{padding-right:44px;gap:34px}
  .ey-steps>li::before{right:-37px}
  .ey-steps::before,.ey-steps::after{right:9px}
}

/* 7. Footer, on a phone only: it is at the bottom of every page, so the browser does not lay it out or paint it until it is near the
      screen (page speed: 0.2s to 0.4s less before the first paint on a throttled phone). Not on wider screens: there the gain is small
      and the footer text would be drawn with another kind of anti-aliasing (content-visibility makes it its own paint layer).
      1020px is what the footer measures when drawn at phone width; after the first draw the browser remembers the real size (auto).
      Links to the footer and find-in-page still reach it, and print draws it. */
@media(max-width:760px){.v5-footer{content-visibility:auto;contain-intrinsic-size:auto 1020px}}
@media print{.v5-footer{content-visibility:visible}}

/* 8. A number field's error message (EYX.fieldError: QA R1-001, R1-002, 8.11.2026) */
.eyx-err{display:block;margin-top:6px;font-size:15px;font-weight:600;line-height:1.5;color:#a3200f}
[aria-invalid="true"]{border-color:#a3200f!important}

/* 9. Print (QA R1-005, 8.11.2026): the floating bot, the skip link, the phone dock and the reading progress bar are screen
      controls. On paper they covered lines of the article, so they are not printed. */
/* QA round 3, 10.11.2026 (UI-R2-002 again): the navy hero is drawn with border-image (site-v4.css, "Navy hero"), which the
   background reset did not catch, so heroes printed navy with navy text. border-image is reset with the backgrounds.
   @page gives every page a margin of its own, so a print with no margins set does not run the text into the paper edge. */
@page{margin:12mm}
@media print{
  .eb,a.skip,.v4-mobile-dock,.v4-reading-progress{display:none!important}
  .v4-header,header.v4-header{position:static!important}
  /* QA UI-R2-002, 9.11.2026: the home page printed with headings cut at the edge (scroll reveals waiting off their place),
     dark sections (white text that vanishes when background graphics are off), and empty pages where videos stood.
     On paper: every element in its place, dark text on white, no motion, and no video players or the animated desk. */
  *,*::before,*::after{animation:none!important;transition:none!important}
  html,body{background:#fff!important}
  body *{color:#102848!important;-webkit-text-fill-color:#102848!important;background-color:transparent!important;background-image:none!important;border-image:none!important;box-shadow:none!important;text-shadow:none!important}
  body a{color:#0D7A40!important;-webkit-text-fill-color:#0D7A40!important}
  .v4-reveal,[data-reveal],.is-observed{opacity:1!important;transform:none!important;clip-path:none!important;filter:none!important}
  .v4-hero-stage,.v5-binder-video,.xv,.yd-video,.v5-thumb,.v5-player,.v4-nav,.v4-menu,.v4-header-action{display:none!important}
  .v4-about-photo{width:220px!important;height:220px!important;max-width:220px!important;break-inside:avoid}
  .v5-video-grid li,.yd-cta,.v5-qa-item,.ey-steps li{break-inside:avoid}
  section,.v4-section{min-height:0!important;height:auto!important;overflow:visible!important}
  h1,h2,h3{break-after:avoid;white-space:normal!important}
  img,svg{max-width:100%!important}
  /* A4 is narrower than 760px, so the phone layout prints: its swipe row of videos would cut cards at the page edge, the
     fact-box stamp keeps the 1.7 scale its entrance animation starts from, and the FAQ "+" and the drawn arrow by the
     services sit past the edge. */
  .yd-vstrip ul{grid-auto-flow:row!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;overflow:visible!important}
  .yd-stamp{transform:rotate(-12deg)!important}
  .v5-qa-item summary>span,.v4-drawn-arrow{display:none!important}
}

/* 10. Reading size on a phone (QA R1-004, 8.11.2026, Maya: "לתקן"): explanatory paragraphs and card text are at least 16px.
       Dates, meta lines ("נכון ל..."), the author line, disclaimers and the hours line keep their smaller size. */
@media(max-width:760px){
  .v4-hero-description,.v4-services-intro .v4-small-copy,.v4-folder-copy li,.v4-section-heading>p,.v5-video-grid p,.yd-folder-body>p,.sh-excl,.sh-note,
  main .om-grid>li>p,main .om-scope,main .om-vs-note,main .pn-card>p,main .pn-tier-name,main .tl-hint,main .tl-summary-head>p{font-size:16px!important}   /* second set: QA UI-R2-003, 9.11.2026 */
}
