/* אקורדים לשירים – /kelim/shir/akordim/ (+ מילון, קאפו). מנוע: /assets/shir-akordim.js */
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ak-tool{padding:.8rem}
.ak-src{white-space:pre-wrap;font:inherit;line-height:1.9;margin:0}
.ak-on .ak-src{display:none}

/* סרגל כלים */
.ak-bar{position:sticky;top:0;z-index:6;display:flex;flex-wrap:wrap;gap:.4rem .6rem;justify-content:center;align-items:center;padding:.5rem .3rem;margin:-.2rem -.2rem .5rem;background:var(--bg-2,#fff);border-bottom:1px solid var(--line)}
.ak-grp{display:inline-flex;flex-wrap:wrap;gap:.3rem;align-items:center}
.ak-b,.ak-inst button{min-height:44px;min-width:44px;padding:.35rem .7rem;border:2px solid var(--brand,#1d4ed8);border-radius:12px;background:#fff;color:var(--brand,#1d4ed8);font:inherit;font-weight:700;font-size:1rem;cursor:pointer;line-height:1.1}
.ak-b:hover,.ak-inst button:hover{background:#e6efff}
.ak-b[aria-pressed=true],.ak-inst button[aria-pressed=true]{background:var(--brand,#1d4ed8);color:#fff}
.ak-b.ak-sm{padding:.35rem .55rem;font-size:.95rem}
.ak-b.ak-gold{background:var(--cta,#f97316);border-color:var(--cta,#f97316);color:var(--on-cta,#1a0d00);font-weight:800}
.ak-b.ak-gold[aria-pressed=true]{background:#c2410c;border-color:#c2410c;color:#fff}
.ak-key{min-width:4.6rem;text-align:center;font-weight:800;color:var(--ink,#0f172a);direction:ltr;unicode-bidi:isolate}
.ak-cap,.ak-spd{display:inline-flex;align-items:center;gap:.3rem;font-weight:700;color:var(--ink,#0f172a)}
.ak-cap select{min-height:44px;padding:.2rem .4rem;border:2px solid var(--line);border-radius:10px;font:inherit;background:#fff;color:var(--ink,#0f172a)}
.ak-cap select:disabled{opacity:.6}
.ak-spd input{width:6.5rem;accent-color:var(--brand,#1d4ed8);min-height:44px}
.ak-inst{border:2px solid var(--line);border-radius:14px;padding:2px}
.ak-inst button{border:0;min-height:40px}
.ak-b:focus-visible,.ak-inst button:focus-visible,.ak-c:focus-visible,.ak-lnk:focus-visible,.ak-x:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}

/* הודעה + האקורדים בשיר */
.ak-info{margin:.3rem 0 .5rem;padding:.5rem .8rem;border-radius:12px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;text-align:center}
.ak-info b{color:#7c2d12}
.ak-used{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;justify-content:center;margin:.3rem 0 .6rem}
.ak-ul{font-weight:700;color:var(--ink,#0f172a)}
.ak-used .ak-c{min-height:40px;min-width:44px;padding:.25rem .6rem;border:2px solid var(--line);border-radius:10px;background:#fff;font-size:1rem}
.ak-used .ak-c small{font-size:.7em;font-weight:700;color:#166534}
.ak-c.ak-ez{border-color:#86efac}

/* תרשים */
.ak-diag{margin:.4rem auto .8rem;padding:.7rem;max-width:30rem;border:2px solid var(--line);border-radius:16px;background:#fff;text-align:center}
.ak-dg{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}
.ak-svg{width:9.5rem;height:auto;direction:ltr}
.ak-svg-p{width:15rem}
.ak-svg-t{font:700 13px var(--sans,sans-serif);fill:#0f172a}
.ak-svg-n{font:700 11px var(--sans,sans-serif);fill:#334155}
.ak-svg-l{stroke:#475569;stroke-width:1.3}
.ak-svg-d{fill:#1d4ed8}
.ak-svg-o{fill:none;stroke:#1d4ed8;stroke-width:1.6}
.ak-pk-w{fill:#fff;stroke:#475569}
.ak-pk-b{fill:#1e293b;stroke:#1e293b}
.ak-pk-on{fill:#f97316;stroke:#7c2d12}
.ak-dn{margin:.4rem 0;font-weight:700;color:var(--ink,#0f172a);direction:ltr;unicode-bidi:isolate}
.ak-row{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin:.4rem 0}

/* גיליון השיר: אקורד מעל ההברה, מימין לשמאל */
.ak-sheet{margin:.4rem 0;padding:.6rem .4rem;border-radius:14px;background:#fff;color:#0f172a;font-size:1em;line-height:1.25}
.ak-title{margin:.1rem 0 .7rem;text-align:center;font-family:var(--serif);color:var(--gold,#9a3412);font-size:1.45em}
.ak-body{font-size:1.15em}
.ak-l{display:block;margin:0 0 .35em;text-align:right;word-break:normal;overflow-wrap:anywhere}
.ak-w{display:inline-block;white-space:nowrap;vertical-align:bottom}
.ak-s{display:inline-flex;flex-direction:column;align-items:flex-start;vertical-align:bottom}
.ak-c{display:inline-block;color:#1d4ed8;font-weight:800;font-family:var(--sans,sans-serif);direction:ltr;unicode-bidi:isolate;cursor:pointer;white-space:nowrap}
.ak-s>.ak-c{min-height:24px;min-width:24px;padding-inline-end:.35em;font-size:.86em;line-height:1.25}
.ak-c.ak-e{visibility:hidden;cursor:default}
.ak-t{white-space:pre;line-height:1.35}
.ak-nc .ak-s>.ak-c{display:none}
.ak-only{display:flex;flex-wrap:wrap;gap:.3rem .5rem;margin:.2rem 0 .5rem}
.ak-only .ak-c{padding:.2rem .55rem;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;font-size:.95em;min-height:36px}
.ak-c.ak-now{background:#fde68a;border-radius:6px;outline:2px solid #f59e0b}
.ak-sec{margin:.7em 0 .3em;font-weight:800;color:#7c2d12}
.ak-gap{height:.8em}
.ak-empty{color:#475569;text-align:center;padding:1rem}
.ak-sheet.ak-dark{background:#0f172a;color:#f1f5f9}
.ak-sheet.ak-dark .ak-c{color:#93c5fd}
.ak-sheet.ak-dark .ak-sec,.ak-sheet.ak-dark .ak-title{color:#fdba74}
.ak-sheet.ak-dark .ak-only .ak-c{background:#1e293b;border-color:#334155}
[data-akordim]:fullscreen{overflow:auto;background:#fff;padding:1rem}

/* עורך – הדבקת שיר */
.ak-edit{margin-top:1rem;display:grid;gap:.35rem}
.ak-edit label{font-weight:700;color:var(--ink,#0f172a)}
.ak-edit input[type=text],.ak-edit textarea{width:100%;box-sizing:border-box;padding:.55rem .7rem;border:2px solid var(--line);border-radius:12px;font:inherit;font-size:1rem;background:#fff;color:#0f172a}
.ak-edit textarea{min-height:12rem;font-family:ui-monospace,Consolas,monospace;line-height:1.5}
.ak-mir{display:flex;gap:.4rem;align-items:center;font-weight:400!important}
.ak-mir input{width:22px;height:22px}
.ak-mine ul{list-style:none;padding:0;margin:.3rem 0;display:grid;gap:.25rem}
.ak-mine li{display:flex;gap:.4rem;align-items:center}
.ak-lnk{background:none;border:0;padding:.4rem 0;min-height:40px;color:#1d4ed8;font:inherit;text-decoration:underline;cursor:pointer;text-align:start}
.ak-x{min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#b91c1c;cursor:pointer}
.ak-note,.ak-src-note{font-size:.92rem;color:var(--muted,#475569)}
.ak-src-note{margin:.6rem 0 0}

/* מילון ומחשבון קאפו */
.ak-pick{display:grid;gap:.6rem;margin:.4rem 0}
.ak-pick fieldset{border:0;margin:0;padding:0}
.ak-pick legend{font-weight:800;color:var(--ink,#0f172a);margin-bottom:.3rem}
.ak-chips{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:center}
.ak-chips button{min-width:44px;min-height:44px;padding:.25rem .55rem;border:2px solid var(--line);border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-weight:700;unicode-bidi:plaintext;cursor:pointer}
.ak-chips button[aria-pressed=true]{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.ak-chips button:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.ak-big{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:flex-start;margin:.6rem 0}
.ak-big .ak-svg{width:12rem}
.ak-big .ak-svg-p{width:18rem}
.ak-base{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.6rem;margin:.6rem 0}
.ak-base .ak-card{display:block;text-decoration:none}
.ak-base .ak-svg{width:100%;max-width:9rem}
.ak-now-t{text-align:center;margin:.8rem 0 .2rem}
.ak-card{padding:.6rem .8rem;border:2px solid var(--line);border-radius:14px;background:#fff;text-align:center}
.ak-card h3{margin:.1rem 0 .3rem;font-size:1.05rem}
.ak-tip{margin:.5rem 0;padding:.5rem .8rem;border-radius:12px;background:#f0fdf4;border:1px solid #86efac;color:#14532d}
.ak-in{width:100%;box-sizing:border-box;padding:.6rem .8rem;border:2px solid var(--line);border-radius:12px;font:inherit;font-size:1.1rem;direction:ltr;text-align:left;background:#fff;color:#0f172a}
.ak-tbl-wrap{overflow-x:auto;margin:.6rem 0}
.ak-tbl{width:100%;border-collapse:collapse;font-size:.98rem;background:#fff}
.ak-tbl th,.ak-tbl td{border:1px solid var(--line);padding:.4rem .5rem;text-align:center}
.ak-tbl td.ak-ch{direction:ltr;font-weight:700;color:#1d4ed8;white-space:normal}
.ak-tbl tr.ak-best{background:#fff7ed;outline:2px solid #f97316}
.ak-res{margin:.6rem 0;padding:.7rem .9rem;border-radius:14px;background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;font-size:1.05rem;text-align:center}
.ak-res b{color:#7c2d12}

@media (max-width:600px){
  .ak-bar{position:static}
  .ak-scrolling .ak-bar [data-a=scroll]{position:fixed;bottom:1rem;left:1rem;z-index:30;box-shadow:0 4px 14px rgba(0,0,0,.25);background:#fff}
}
@media (max-width:420px){
  .ak-bar{gap:.3rem}
  .ak-b{padding:.3rem .5rem}
  .ak-spd input{width:5rem}
  .ak-body{font-size:1.05em}
}
@media print{
  .topbar,.site-foot,.crumbs,.no-print,.seo-txt,.seo-faq,.k-sec,.gr-links,.share-row,.ak-src-note,.k-hero .sub,.ft{display:none!important}
  .ak-sheet{background:#fff!important;color:#000!important;padding:0}
  .ak-sheet .ak-c{color:#000!important;background:none!important;border:0!important}
  .ak-tool{border:0;box-shadow:none;padding:0}
  .ak-edit{display:none!important}
}
/* מקום שמור לכלי לפני שהסקריפט ממלא אותו – בלי קפיצת דף (CLS) */
#milon{min-height:1150px}
#kapo-out{min-height:480px}
@media (max-width:400px){#kapo-out{min-height:660px}}
@media (min-width:700px){#milon{min-height:780px}}
.ak-req{text-align:center;background:#fff7ed;border:2px solid #fdba74;border-radius:16px;padding:1rem .9rem}
.ak-req-h{font-weight:800;font-size:1.15em;margin:0 0 .4rem;color:#7c2d12}
.ak-req p{margin:.3rem 0}
.ak-req-btn{background:#15803d;color:#fff;border-color:#15803d;margin:.5rem auto .2rem}
.ak-req-note{font-size:.85em;color:#57534e}
@media print{.ak-req{display:none}}
