/* Batch 1 additions on top of the approved Direction C styles (hm3.css + c3.css). */
/* No JavaScript: the real selects and the date field are shown and the form submits to /results/ (the picker, swap and mode switch need JS) */
.no-js .sel-real.sr{position:static;width:100%;height:auto;clip:auto;overflow:visible;white-space:normal;min-height:48px;font:inherit;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;color:var(--ink)}
.no-js .c-pick,.no-js .c-swap,.no-js .c-mode,.no-js .c-jump,.no-js .c3-quick,.no-js .c-quick,.no-js .c-chartbox .seg{display:none}
.no-js .c-onlydate{display:grid!important}
.no-js .c-datebox{display:grid}
.no-js .c-datebox::before{content:"תאריך (לא חובה – השאירו ריק לשער העדכני)";font-size:.875rem;color:var(--muted)}
.no-js .c-chartbox{display:none}
.js .ot{margin-top:18px}
.no-js .ot{margin-top:0}
.ot table.t th[scope=row]{font-weight:600}
.ot .c{color:var(--muted);font-weight:400;font-size:.875rem}
@media (max-width:560px){.ot table.t th,.ot table.t td{padding:10px 8px;font-size:.875rem}.ot .c{display:block}.ot table.t th[scope=col]{font-size:.8125rem}}
.ot .up{color:#11793a}.ot .down{color:#b42318}
.c-res .r-note{margin-top:6px;font-size:.9375rem;color:#ffe9b8}
.c-res[data-state=none] .small{margin-top:6px}
.c3-ad2{margin-top:8px}
.crumbs ol{display:flex;gap:8px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.crumbs li+li::before{content:"›";margin-inline-end:8px;color:var(--muted)}
.crumbs{margin:14px 0 6px;font-size:.875rem}

/* No JavaScript: two equal columns (stacked on phones) – the swap button needs JS, so its grid slot is dropped */
.no-js .c-pair{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important}
@media (min-width:640px){.no-js .c-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.no-js .sel-real.sr{min-height:56px}

/* ---- flow "handoff" prototype ---- */
.flow-handoff .c-calc[data-page=home] .c-resbox,.flow-handoff .c-calc[data-page=pair] .c-resbox{display:none}
.flow-handoff .c-calc[data-page=results] .c-ratebar{display:none}
.flow-handoff .c-calc[data-page=results] .c-resbox{scroll-margin-top:12px}
.flow-handoff .c-calc[data-page=results] .c-res{min-height:96px}
.flow-handoff .c-calc[data-page=results] .c-resbox .c-jump{display:none}
.rs-wrap{max-width:920px}
.rs-mod{margin-top:30px}
.rs-two{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){.rs-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
.rs-qt caption{caption-side:top;text-align:start;font-weight:700;padding:8px 12px;color:var(--ink2)}
.rs-qt th,.rs-qt td{padding:7px 12px}
.rs-when{margin:0 0 10px}
.rs-explain p{margin:0 0 10px;line-height:1.6;max-width:70ch}
.is-busy{opacity:.55;transition:opacity .15s}
.rs-fail{background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:8px;padding:8px 12px;margin:0 0 12px;color:#5c3305}
.rs-mod .c-chips .chip{text-decoration:none}

/* handoff: the visible Calculate on entry pages is an anchor (as in production); the real <button type=submit> stays for no-JS */
.c-go[hidden]{display:none!important}
a.c-golink{display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}
.rs-chipform{display:inline;margin:0}
.rs-chipform .chip{cursor:pointer}

/* ---- results page v2: homepage hero grid (result + calculator | current rates), modules full width below ---- */
.rs-wrap{max-width:none}
.rs-sections{margin-top:36px}
.rs-modules{display:grid;gap:36px}
.rs-sections .rs-mod{margin-top:0}
.rs-clean{margin-top:28px}
.c3-rnote{display:none;margin:0 0 10px;font-size:.875rem;color:var(--muted);line-height:1.45;max-width:34ch}
body.rs-hist .c3-rnote{display:block}
.rs-rev>summary{cursor:pointer;font-weight:700;color:var(--blue-ink);padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;list-style:none;min-height:48px;display:flex;align-items:center}
.rs-rev>summary::-webkit-details-marker{display:none}
.rs-rev>summary::before{content:"+";font-weight:800;margin-inline-end:10px}
.rs-rev[open]>summary::before{content:"−"}
.rs-rev[open]>summary{margin-bottom:10px}
@media (min-width:640px){.js .rs-rev>summary{display:none}.js .rs-rev[open]>summary{margin:0}}

/* in-place recalculation changes the height of the result card: the browser must not nudge the scroll position (our code decides when to reveal the result) */
.flow-handoff,.flow-handoff *{overflow-anchor:none}

/* ---- restored existing page content (text, FAQ, link lists, embed box) in Direction C styling ---- */
.lg-wrap{display:grid;gap:30px;margin-top:36px}
.lg h2{font-size:1.25rem;margin:0 0 10px}
.lg-prose p,.lg-faq p{margin:0 0 12px;line-height:1.75;max-width:75ch}
.lg-prose a,.lg-faq a{color:var(--blue-ink)}
.lg-faq h3{font-size:1.0625rem;margin:18px 0 6px}
.lg-pairs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 14px}
.lg-pairs a{display:block;padding:9px 12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--ink);background:#fff;font-weight:600}
.lg-pairs a:hover{border-color:var(--blue-ink)}
.lg-widget textarea{width:100%;max-width:640px;font:13px/1.5 Consolas,monospace;direction:ltr;text-align:left;border:1px solid var(--line);border-radius:10px;padding:10px;background:#f7fafc;display:block;margin-bottom:10px}

/* amount field: touch-friendly (iOS) + clear button */
.c-amtwrap{position:relative}
.c-amtwrap .c-amount{-webkit-appearance:none;appearance:none;touch-action:manipulation;-webkit-user-select:text;user-select:text;-webkit-tap-highlight-color:rgba(10,106,146,.18);padding-inline-start:16px}
.c-clear{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:var(--soft);color:var(--ink2);font-size:1.6rem;line-height:1;cursor:pointer;touch-action:manipulation}
.c-clear[hidden]{display:none}
.c-amtwrap .c-amount{padding-left:60px}

/* iOS fix: no stretched-link pseudo-element over table rows (it could cover the whole page and swallow taps) */
.c3-rtable tbody tr{position:static}
.rr-link::after{content:none!important;display:none!important}
.rr-link:focus-visible{outline:3px solid var(--blue-ink);outline-offset:-3px;border-radius:6px}

/* ---- text/layout pass 2026-11-08: collapsible restored content, results order on small screens ---- */
.lg-intro{margin:0;line-height:1.75;max-width:75ch;color:var(--ink2)}
.lg-det>summary{cursor:pointer;font-weight:700;color:var(--blue-ink);padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;list-style:none;min-height:48px;display:flex;align-items:center}
.lg-det>summary::-webkit-details-marker{display:none}
.lg-det>summary::before{content:"+";font-weight:800;margin-inline-end:10px}
.lg-det[open]>summary::before{content:"−"}
.lg-det[open]>summary{margin-bottom:10px}
.lg-q{margin:0 0 8px}
.lg-q>summary h3{margin:0;font-size:1.0625rem;color:var(--ink)}
.rs-hero .rs-sections{grid-column:1/-1;margin-top:0}
.rs-hero .rs-sections.is-busy .rs-mod{opacity:.55}
@media (max-width:999px){
  .rs-hero{gap:28px}
  .rs-hero .rs-sections,.rs-hero .rs-modules{display:contents}
  .rs-hero .rs-modules>.rs-mod,.rs-hero .rs-sections>.rs-mod{order:1}
  .rs-hero .rs-modules>.rs-explain{order:2}
  .rs-hero .c3-rates{order:3}
  .rs-hero .rs-modules>.rs-mod:last-child{order:4}
  .rs-hero .c3-calc{order:0}
}

/* ---- result card: treatment A (approved 2026-11-08): white card, accent edge, large dark amount; historical = amber edge + one date label ---- */
.c-res[data-state=after]{background:#fff;color:var(--ink);border:1px solid #b9c7d6;border-inline-start:8px solid var(--blue-ink);border-radius:14px;box-shadow:var(--sh);padding:16px 16px 14px;gap:6px}
.c-res .r-top{font-size:1rem;font-weight:600;color:var(--ink2)}
.c-res .r-big{color:var(--ink);font-weight:800;font-size:clamp(2.5rem,1.8rem + 3.4vw,3.5rem);letter-spacing:-.03em;line-height:1.08}
.c-res .r-cur{color:var(--blue-ink);font-size:1.125rem;font-weight:700}
.c-res .r-meta{margin-top:8px;padding-top:10px;border-top:1px solid var(--line);color:var(--ink2);font-size:.9375rem;gap:3px}
.c-res .r-meta b{color:var(--ink)}
.c-res .r-meta>div:first-child::before{content:"שער: ";font-weight:700;color:var(--muted)}
.c-res .r-meta>div:nth-child(2):not(.r-date)::before{content:"עדכון: ";font-weight:700;color:var(--muted)}
.c-res .r-note{background:var(--amber-bg);border:1px solid var(--amber-line);color:#5c3305;border-radius:10px}
.c-res .r-stale{color:var(--amber);font-weight:700}
.c-res.stale .r-big{opacity:1;color:#566274;text-decoration:line-through;text-decoration-thickness:2px}
.c-res[data-state=none]{background:var(--amber-bg);border:1px solid var(--amber-line);border-inline-start:8px solid var(--amber);color:#5c3305}
body.rs-hist .c-res[data-state=after]{border-inline-start-color:var(--amber)}
body.rs-hist .c-res .r-hl{display:inline-block;background:var(--amber-bg);border:1px solid var(--amber-line);color:#5c3305;border-radius:8px;padding:2px 10px;font-weight:700}
body.rs-hist .c-res .r-date{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.c-res .c3-multi{margin-top:8px;border-top:1px solid var(--line);padding-top:8px;color:var(--ink2)}
.c-res .c3-multi summary{cursor:pointer;font-weight:700;color:var(--blue-ink);min-height:44px;display:flex;align-items:center}
/* long amounts must wrap inside the card instead of widening the page (320px phones) */
.c-resbox,.c-res{min-width:0;max-width:100%}
.c-res .r-big>bdi{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-all}
@media (max-width:380px){.c-res .r-big{font-size:2.125rem}}

/* ---- result card refinements (2026-11-08): space after the opening sentence, amount + currency read together, elapsed counter, "חישוב נוסף" ---- */
.c-res .r-top{margin-bottom:10px;line-height:1.45}
.c-res .r-big{align-items:baseline;column-gap:10px;row-gap:0}
.c-res .r-cur{white-space:nowrap;font-size:1.0625rem}
.c-again{justify-self:start;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;margin-top:6px;border:1px solid var(--blue-line);border-radius:999px;background:#fff;color:var(--blue-ink);font-weight:700;font-size:.9375rem;text-decoration:none;cursor:pointer}
.c-again:hover{background:var(--blue-tint)}
.c-again:focus-visible{outline:3px solid var(--blue-ink);outline-offset:2px}
.c-calc:not([data-page=results]) .c-again,.c-res[data-state=before]~.c-again{display:none}
.c-res .r-big.r-lg{font-size:2.5rem}
.c-res .r-big.r-xl{font-size:1.875rem;line-height:1.2}
@media (max-width:380px){.c-res .r-big.r-lg{font-size:2rem}.c-res .r-big.r-xl{font-size:1.5rem}}

/* ---- quote age (seconds), next-refresh ring, new-rate notice (current-rate results only) ---- */
.c-res .r-meta>div:nth-child(2):not(.r-date)::before{content:none}
.r-next{display:flex;align-items:center;gap:8px;margin-top:2px;font-size:.875rem;font-weight:600;color:var(--muted)}
.r-ring{width:18px;height:18px;flex:none;transform:rotate(-90deg)}
.r-ring circle{fill:none;stroke-width:3}
.r-ring-bg{stroke:#d3e2ec}
.r-ring-fg{stroke:var(--blue-ink);stroke-linecap:round;transition:stroke-dashoffset 1s linear}
@media (prefers-reduced-motion:reduce){.r-ring-fg{transition:none}}

/* ring + countdown beside the live timestamps (rate bar, rates table): same component as in the result card */
.stamp>.r-next,.c3-rstamp>.r-next{margin-top:0}
.c-calc[data-mode=date] .c-ratebar .r-next,[data-fx=none] .r-next{display:none}

﻿/* ================= EQUATION CARD (experiment, refined) ================= */
.c-res{container-type:inline-size}
.r-eq .eq{display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-end;gap:10px 16px;margin:2px 0 12px}
.r-eq .eq-s{display:flex;flex-direction:column;align-items:center;gap:2px;flex:0 0 auto;min-width:0;text-align:center}
.r-eq .eq-n{font-size:.9375rem;font-weight:600;color:#1f5673;line-height:1.25;white-space:nowrap}
.r-eq .eq-a{display:block;width:max-content;max-width:none;white-space:nowrap;font-weight:400;line-height:1.1;letter-spacing:-.01em;color:var(--ink);font-size:clamp(1.5rem,8cqw,2.5rem)}
.r-eq .eq-b{font-weight:800}
.r-eq .eq-sign{flex:0 0 auto;align-self:flex-end;font-size:clamp(1.25rem,5cqw,1.75rem);font-weight:700;color:var(--blue-ink);line-height:1.1;padding-bottom:.12em}
.r-eq .eq.is-stacked{flex-direction:column;align-items:center;gap:4px}
.r-eq .eq.is-stacked .eq-sign{align-self:center;padding-bottom:0}
.r-eq .eq.is-stacked .eq-n{white-space:normal;max-width:100%}
.no-js .r-eq .eq{flex-direction:column;align-items:center}
.c-res.stale .eq-b{opacity:1;color:#566274;text-decoration:line-through;text-decoration-thickness:2px}
.c-res .r-eq .r-meta{text-align:center}
.c-res .r-meta>div.r-unit:first-child::before{content:none}
.c-res .r-meta>.r-unit{margin-top:2px;font-size:1rem;color:var(--ink2)}
.c-res .r-meta>.r-unit b{font-weight:800;color:var(--ink)}
.c-res .r-mk{display:inline-block;margin-inline-start:6px;font-size:.875rem;color:var(--muted);font-weight:600}
.c-res .r-eq .r-next,.c-res .r-eq .r-date{justify-content:center}
.c-res>.r-full.r-eq,.r-eq .eq{min-width:0;max-width:100%}



/* ---- paired actions under the result card + restored "כמה זה בכמה מטבעות?" as the last element of the card ---- */
.c-actions{container-type:inline-size;display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.c-actions>.c-again,.c-actions>.c-bydate{flex:1 1 auto;min-width:max-content;min-height:48px;margin:0;padding:0 20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:700;font-size:.9375rem;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer;justify-self:stretch;box-sizing:border-box}
.c-actions>.c-again{background:var(--blue-ink);border:2px solid var(--blue-ink);color:#fff}
.c-actions>.c-again:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
.c-actions>.c-bydate{background:#fff;border:2px solid #4a8aa8;color:var(--blue-ink)}
.c-actions>.c-bydate:hover{background:var(--blue-tint)}
.c-actions>.c-again:focus-visible,.c-actions>.c-bydate:focus-visible{outline:3px solid var(--blue-ink);outline-offset:2px}
.c-actions .c-ico{flex:none}
@container (max-width:299px){.c-actions{flex-direction:column}.c-actions>.c-again,.c-actions>.c-bydate{flex:0 0 auto;width:100%}}
.c-calc:not([data-page=results]) .c-actions,.c-res[data-state=before]~.c-actions,.no-js .c-bydate{display:none}
.c-res .r-eq>.c3-multi{margin-top:12px;border-top:1px solid var(--line);padding-top:4px;text-align:start}
.c-res .r-eq>.c3-multi summary{justify-content:center}
/* "כמה זה בכמה מטבעות?" on the LIGHT card (the base styles were made for the old dark card): readable colours, long values never overflow */
.c-res .c3-multi{background:none;border:0;border-top:1px solid var(--line);border-radius:0;color:var(--ink)}
.c-res .c3-multi summary{color:var(--blue-ink);padding:0 4px;justify-content:center;gap:10px;font-weight:700}
.c-res .c3-multi summary::after{color:var(--blue-ink)}
.c-res .c3-multi summary:focus-visible{outline:3px solid var(--blue-ink);outline-offset:2px}
.c-res .c3-multi .c3-multi-t{color:var(--ink2);padding:0 4px 6px;text-align:start}
.c-res .c3-multi ul{padding:0 4px 6px}
.c-res .c3-multi li{flex-wrap:wrap;gap:2px 10px;border-top:1px solid var(--line);padding:6px 0;color:var(--ink)}
.c-res .c3-multi li .nm{color:var(--ink);flex:1 1 auto}
.c-res .c3-multi li .nm small{color:var(--muted)}
.c-res .c3-multi li .v{color:var(--ink);font-weight:800;white-space:nowrap;margin-inline-start:auto;max-width:100%}

/* ---- advertising (live / mock modes): reserved space so a late ad never moves the page; an unfilled box collapses (or shows the house card) ---- */
.adslot{overflow:hidden;max-width:100%}
.adslot .slot-live{width:100%;max-width:var(--w);min-height:var(--h);display:grid;justify-items:center;align-items:start;overflow:hidden}
.adslot .slot-live>div{max-width:100%;overflow:hidden}
.adslot[data-state=empty][data-unfilled=collapse]{display:none}
.adslot[data-state=empty][data-unfilled=house] .slot-live,.adslot[data-state=empty][data-unfilled=house] .slot-label{display:none}
.adslot[data-state=empty][data-unfilled=house] .house{display:grid!important;width:100%;max-width:var(--w);min-height:var(--h);align-content:center;justify-items:center;gap:4px;text-align:center;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:16px}
.adslot[data-state=empty][data-unfilled=house] .house span{color:var(--muted);font-size:.875rem}
.c-ad-main,.c-ad-end{margin-block:28px}
.c3-ad3{margin-top:40px}
.aplvideo:empty{display:none}

/* ---- site menu: desktop shows nav + languages inline (.menu is transparent); on a phone the menu button opens them as a panel ---- */
.menu{display:contents}
@media (max-width:900px){
.menu{display:none}
.hdr.open .menu{display:block;position:absolute;inset-inline:0;top:100%;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(16,24,40,.12);padding:8px 16px 16px;z-index:40}
.hdr.open .nav{display:flex;flex-direction:column;margin:0;gap:0}
.hdr.open .nav a{min-height:48px;font-size:1rem}
.hdr.open .langs{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px;border-top:1px solid var(--line);margin-top:6px}
.hdr.open .langs a{min-height:44px;min-width:44px;padding:8px 12px}
html.no-js .menu{display:block}
html.no-js .nav,html.no-js .langs{display:flex;flex-wrap:wrap}
html.no-js .menu-btn{display:none}
}
.menu-btn:focus-visible,.nav a:focus-visible,.langs a:focus-visible,.logo:focus-visible{outline:3px solid var(--blue-deep,#0b6fa8);outline-offset:2px}

@media (max-width:900px){.menu-btn{margin-inline-start:auto}}


@media (min-width:901px){.hdr .nav{flex:0 0 auto}.hdr .nav a{white-space:nowrap;padding-inline:12px}}

