/* ==========================================================
   עמוס אילן - עו"ד מקרקעין ונדל"ן | מערכת עיצוב
   בהמשך לזהות החזותית של il-law.co.il
   ========================================================== */

/* תכונת hidden גוברת תמיד על display שנקבע במחלקה */
[hidden]{display:none !important}

/* האתר מוצג תמיד בתצוגה בהירה, גם במכשיר שמוגדר למצב כהה.
   הכרזה זו גם מונעת מאנדרואיד להחשיך את העמוד אוטומטית. */
:root{color-scheme:light}

:root{
  --navy:#000D85;          /* כחול הלוגו */
  --bar:#102C72;           /* פס הניווט */
  --bar-2:#0A1F55;
  --gold:#BD9B16;
  --gold-text:#8A6F0C;
  --gold-lt:#D9BC4A;
  --paper:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#F5F6F9;
  --line:#E2E5EC;
  --line-strong:#C9CEDA;
  --text:#333333;
  --muted:#69727D;
  --shadow:0 1px 2px rgba(16,44,114,.06), 0 10px 30px -16px rgba(16,44,114,.28);
  --shadow-lift:0 2px 6px rgba(16,44,114,.08), 0 22px 48px -22px rgba(16,44,114,.4);
  --radius:10px;
  --radius-sm:6px;
  --maxw:1180px;
  --gutter:20px;
  --font-display:"Frank Ruhl Libre", "Times New Roman", Georgia, serif;
  --font-body:"Assistant", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --navy:#9FB4FF; --bar:#0A1740; --bar-2:#060F2B;
    --gold:#D9BC4A; --gold-text:#E3C75C; --gold-lt:#8C731A;
    --paper:#0C121F; --surface:#131B2B; --surface-2:#171F31;
    --line:#26304A; --line-strong:#3A4665;
    --text:#D8DEE9; --muted:#96A1B5;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 32px -18px rgba(0,0,0,.8);
    --shadow-lift:0 2px 8px rgba(0,0,0,.6), 0 24px 52px -24px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"]{
  --navy:#9FB4FF; --bar:#0A1740; --bar-2:#060F2B;
  --gold:#D9BC4A; --gold-text:#E3C75C; --gold-lt:#8C731A;
  --paper:#0C121F; --surface:#131B2B; --surface-2:#171F31;
  --line:#26304A; --line-strong:#3A4665;
  --text:#D8DEE9; --muted:#96A1B5;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 12px 32px -18px rgba(0,0,0,.8);
  --shadow-lift:0 2px 8px rgba(0,0,0,.6), 0 24px 52px -24px rgba(0,0,0,.9);
}

*,*::before,*::after{box-sizing:border-box}

body{
  margin:0;direction:rtl;background:var(--paper);color:var(--text);
  font-family:var(--font-body);font-size:17px;line-height:1.8;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
svg{display:block}

h1,h2,h3,h4{font-family:var(--font-display);color:var(--navy);line-height:1.3;text-wrap:balance;margin:0;font-weight:700}
h1{font-size:clamp(1.85rem,1.2rem + 2.6vw,2.9rem)}
h2{font-size:clamp(1.55rem,1.2rem + 1.5vw,2.15rem)}
h3{font-size:clamp(1.12rem,1.02rem + .5vw,1.35rem)}
h4{font-size:1.02rem}
p{margin:0}
a{color:var(--navy);text-underline-offset:3px;text-decoration-color:rgba(189,155,22,.6)}
a:hover{color:var(--gold-text)}
:focus-visible{outline:3px solid var(--gold-text);outline-offset:3px;border-radius:3px}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.narrow{max-width:800px}
.stack{display:flex;flex-direction:column}
.rule{height:4px;background:var(--gold)}

/* ---------- לוגו עליון ---------- */
.masthead{background:linear-gradient(180deg,#EDEFF4,#FFFFFF);text-align:center;padding-block:1.1rem .9rem}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .masthead{background:linear-gradient(180deg,#0A1024,#0C121F)}
}
:root[data-theme="dark"] .masthead{background:linear-gradient(180deg,#0A1024,#0C121F)}
.mast-name{font-family:var(--font-display);font-weight:700;color:var(--navy);
  font-size:clamp(2rem,1.2rem + 3.6vw,3.1rem);line-height:1.05;letter-spacing:-.01em;
  text-decoration:none;display:block}
.mast-sub{display:block;color:var(--gold-text);font-weight:700;margin-top:.25rem;
  font-size:clamp(.8rem,.7rem + .5vw,1.05rem);letter-spacing:.55em;padding-inline-start:.55em}
.mast-strip{display:flex;justify-content:center;flex-wrap:wrap;gap:.4rem 1.6rem;
  margin-top:.75rem;font-size:.82rem;color:var(--muted)}
.mast-strip a{color:var(--muted);text-decoration:none}
.mast-strip a:hover{color:var(--gold-text)}
.mast-strip b{color:var(--navy);font-weight:700}

/* ---------- פס ניווט ---------- */
.navbar{background:var(--bar);position:sticky;top:env(safe-area-inset-top,0px);z-index:60;
  border-block:1px solid rgba(255,255,255,.08)}
.navbar-in{display:flex;align-items:center;gap:.2rem;min-height:52px;justify-content:center;flex-wrap:wrap}
.navbar a{color:#EAEFFA;text-decoration:none;font-weight:600;font-size:.96rem;
  padding:.55rem .9rem;border-radius:var(--radius-sm);white-space:nowrap}
.navbar a:hover{background:rgba(255,255,255,.12);color:#fff}
.navbar a[aria-current="page"]{color:var(--gold-lt)}
.nav-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,.3);
  color:#fff;border-radius:var(--radius-sm);padding:.45rem 1rem;font:inherit;font-weight:700;cursor:pointer}
@media (max-width:920px){
  .navbar-in{justify-content:space-between;position:relative}
  .nav-toggle{display:block}
  .nav-links{display:none;position:absolute;inset-inline:0;top:100%;flex-direction:column;
    background:var(--bar);padding:.4rem;box-shadow:var(--shadow-lift);border-top:1px solid rgba(255,255,255,.12)}
  .nav-links.open{display:flex}
  .nav-links a{padding:.75rem 1rem}
  .navbar-tel{color:var(--gold-lt);font-weight:700;text-decoration:none;font-size:.95rem}
}
@media (min-width:921px){.nav-links{display:flex;gap:.2rem}.navbar-tel{display:none}}

/* ---------- כותרת ראשית עם תמונה ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;
  min-height:clamp(320px,42vw,460px);display:grid;place-items:center;text-align:center;
  border-bottom:4px solid var(--gold)}
.hero::before{content:"";position:absolute;inset:0;z-index:-2;
  background-image:url(img/hero.jpg);background-size:cover;background-position:center 62%;
  filter:saturate(1.05)}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(6,16,46,.62) 0%,rgba(6,16,46,.5) 45%,rgba(6,16,46,.72) 100%)}
.hero-in{padding-block:clamp(3rem,2rem + 5vw,5rem);max-width:60rem}
.hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.hero .tagline{color:var(--gold-lt);font-weight:700;margin-top:.9rem;
  font-size:clamp(1.02rem,.9rem + .7vw,1.4rem);text-shadow:0 2px 12px rgba(0,0,0,.5)}
.hero .sub{color:#E4E9F3;margin-top:1rem;font-size:1.05rem;max-width:44rem;margin-inline:auto}
.hero-actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;margin-top:1.8rem}

/* כותרת משנית לעמודים פנימיים */
.page-head{background:var(--surface-2);border-bottom:4px solid var(--gold);
  padding-block:clamp(1.8rem,1.2rem + 2.6vw,3rem);text-align:center}
.page-head .lede{margin-top:.9rem;color:var(--muted);max-width:50rem;margin-inline:auto}

/* ---------- כפתורים ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:700;font-size:1rem;padding:.72rem 1.5rem;
  border-radius:4px;border:2px solid transparent;text-decoration:none;cursor:pointer;
  transition:background .2s,color .2s,border-color .2s}
.btn-gold{background:var(--gold);color:#10172E;border-color:var(--gold)}
.btn-gold:hover{background:transparent;color:var(--gold-text);border-color:var(--gold-text)}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.65)}
.btn-ghost:hover{background:#fff;color:var(--bar)}
.btn-navy{background:var(--bar);color:#fff;border-color:var(--bar)}
.btn-navy:hover{background:transparent;color:var(--bar)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .btn-navy:hover{color:var(--navy)}
}
:root[data-theme="dark"] .btn-navy:hover{color:var(--navy)}

/* ---------- מקטעים ---------- */
section{scroll-margin-top:110px}
.sec{padding-block:clamp(2.4rem,1.4rem + 3.6vw,4rem)}
.sec-alt{background:var(--surface-2);border-block:1px solid var(--line)}
.sec-navy{background:var(--bar);color:#DCE3F2}
.sec-navy h2,.sec-navy h3{color:#fff}
.sec-title{text-align:center;color:var(--gold-text);margin-bottom:.4rem;
  font-size:clamp(1.6rem,1.2rem + 1.6vw,2.25rem)}
.sec-lede{text-align:center;color:var(--muted);max-width:46rem;margin:0 auto 2.2rem}
.sec-navy .sec-lede{color:#B6C2DC}
.gold-line{width:70px;height:3px;background:var(--gold);margin:0 auto 1.6rem}

/* ---------- כרטיסים ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:1.2rem}
.card{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--gold);
  border-radius:var(--radius);padding:1.7rem 1.5rem;display:flex;flex-direction:column;gap:.7rem;
  text-decoration:none;color:inherit;box-shadow:var(--shadow);text-align:center;
  transition:transform .2s,box-shadow .2s}
a.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.card-icon{width:52px;height:52px;color:var(--gold-text);margin:0 auto .2rem}
.card p{color:var(--muted);font-size:.97rem;text-align:start}
.card-more{margin-top:auto;padding-top:.4rem;font-weight:700;color:var(--gold-text);font-size:.94rem}

/* ---------- רשימת סימונים ---------- */
.checks{list-style:none;margin:0;padding:0;display:grid;gap:.8rem}
.checks li{display:grid;grid-template-columns:24px 1fr;gap:.75rem;align-items:start}
.checks li::before{content:"";width:24px;height:24px;margin-top:.3rem;border-radius:50%;
  background:var(--gold);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='black'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='black'/></svg>") center/contain no-repeat;
  box-shadow:inset 0 0 0 99px var(--gold)}
.checks li{position:relative}
.checks li::after{content:"";position:absolute;inset-inline-start:6px;top:12px;width:11px;height:6px;
  border-inline-start:2.5px solid #fff;border-bottom:2.5px solid #fff;transform:rotate(-45deg)}

/* ---------- שלבים ---------- */
.steps{list-style:none;margin:0;padding:0;display:grid;gap:0;counter-reset:s}
.step{display:grid;grid-template-columns:auto 1fr;gap:1.2rem;padding-block:1.35rem;border-bottom:1px solid var(--line)}
.step:last-child{border-bottom:0}
.step-num{counter-increment:s;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:700;background:var(--bar);color:#fff;font-variant-numeric:tabular-nums}
.step-num::before{content:counter(s,decimal)}
.step h3{margin-bottom:.25rem;font-size:1.1rem}
.step p{color:var(--muted);font-size:.97rem}

/* ---------- טבלאות ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:430px;font-size:.96rem}
caption{text-align:start;padding:1rem 1.1rem .4rem;color:var(--muted);font-size:.89rem}
th,td{padding:.75rem 1.1rem;text-align:start;border-bottom:1px solid var(--line)}
thead th{background:var(--bar);color:#fff;font-weight:700;font-size:.9rem;border-bottom:0}
tbody tr:nth-child(even){background:var(--surface-2)}
tbody tr:last-child td{border-bottom:0}
td.num{font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------- שאלות ותשובות ---------- */
.faq{display:grid;gap:.6rem}
details{background:var(--surface);border:1px solid var(--line);border-inline-start:4px solid var(--gold);
  border-radius:var(--radius-sm);padding:1rem 1.2rem}
summary{cursor:pointer;font-weight:700;color:var(--navy);font-size:1.02rem;list-style:none;
  display:flex;justify-content:space-between;gap:1rem;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--gold-text);font-size:1.4rem;font-weight:400;line-height:1}
details[open] summary::after{content:"\2212"}
details p{margin-top:.8rem;color:var(--muted);font-size:.98rem}

/* ---------- מאמר ---------- */
.prose{max-width:68ch;margin-inline:auto}
.prose > * + *{margin-top:1.2rem}
.prose h2{margin-top:2.6rem;color:var(--navy)}
.prose h3{margin-top:1.9rem}
.prose ul,.prose ol{padding-inline-start:1.35rem;display:grid;gap:.55rem}
.prose li::marker{color:var(--gold-text)}
.prose blockquote{margin:1.9rem 0;padding:1.1rem 1.3rem;border-inline-start:4px solid var(--gold);
  background:var(--surface-2);border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  color:var(--navy);font-family:var(--font-display);font-size:1.06rem}
.meta{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;color:var(--muted);font-size:.87rem;
  margin-top:1rem;justify-content:center}
.note{background:var(--surface-2);border:1px solid var(--line);border-inline-start:4px solid var(--gold);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:1.1rem 1.25rem;font-size:.97rem}
.note strong{color:var(--navy)}
.toc{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.4rem}
.toc h4{margin-bottom:.6rem;color:var(--navy)}
.toc ol{margin:0;padding-inline-start:1.2rem;display:grid;gap:.35rem;font-size:.96rem}

/* ---------- כרטיסי מאמרים ---------- */
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.2rem}
.post{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;text-decoration:none;color:inherit;box-shadow:var(--shadow);
  transition:transform .2s,box-shadow .2s}
.post:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.post-art{aspect-ratio:16/8;background:var(--bar);border-bottom:3px solid var(--gold);width:100%}
.post-body{padding:1.2rem 1.35rem 1.5rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.tag{font-size:.78rem;font-weight:700;letter-spacing:.06em;color:var(--gold-text)}
.post h3{font-size:1.12rem}
.post p{color:var(--muted);font-size:.94rem}
.post .card-more{margin-top:auto}

/* ---------- אודות עם תמונה ---------- */
.bio{display:grid;grid-template-columns:320px 1fr;gap:2.2rem;align-items:start}
@media (max-width:820px){.bio{grid-template-columns:1fr}.bio-photo{max-width:300px;margin-inline:auto}}
.bio-photo{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);
  border-bottom:5px solid var(--gold);box-shadow:var(--shadow-lift);background:var(--surface-2)}
.bio-cap{text-align:center;font-size:.85rem;color:var(--muted);padding:.7rem .5rem}
.bio-cap b{display:block;color:var(--navy);font-size:1rem;font-family:var(--font-display)}

/* ---------- רצועת קריאה לפעולה ---------- */
.cta{background:var(--bar);color:#E6ECF8;text-align:center;padding-block:clamp(2.2rem,1.4rem + 3vw,3.4rem);
  border-block:4px solid var(--gold)}
.cta h2{color:#fff}
.cta p{color:#B9C5DE;margin-top:.8rem;max-width:46rem;margin-inline:auto}
.cta .hero-actions{margin-top:1.6rem}

/* ---------- יצירת קשר ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.8rem}
@media (max-width:820px){.contact-grid{grid-template-columns:1fr}}
.form{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--gold);
  border-radius:var(--radius);padding:1.6rem;display:grid;gap:.9rem;box-shadow:var(--shadow)}
.field{display:grid;gap:.35rem}
label{font-size:.9rem;font-weight:700;color:var(--navy)}
input,select,textarea{font-family:inherit;font-size:1rem;color:var(--text);background:var(--paper);
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);padding:.68rem .8rem;width:100%}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--gold);outline:none;
  box-shadow:0 0 0 3px rgba(189,155,22,.2)}
.form-note{font-size:.82rem;color:var(--muted)}
.info-list{display:grid;gap:1rem;margin:0;padding:0;list-style:none}
.info-list li{display:grid;grid-template-columns:auto 1fr;gap:.9rem;align-items:start}
.info-ic{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:var(--bar);color:var(--gold);font-size:1.05rem}
.info-list b{display:block;color:var(--navy);font-size:.93rem}
.info-list span{color:var(--muted);font-size:.97rem}

/* ---------- כותרת תחתונה ---------- */
.site-footer{background:var(--bar-2);color:#B8C4DC;padding-block:2.6rem 1.4rem;border-top:4px solid var(--gold)}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:2rem}
@media (max-width:780px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.footer-grid{grid-template-columns:1fr}}
.site-footer h4{color:var(--gold);font-size:.95rem;margin-bottom:.9rem;letter-spacing:.04em}
.site-footer a{color:#B8C4DC;text-decoration:none;font-size:.94rem}
.site-footer a:hover{color:var(--gold-lt)}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.footer-brand p{color:#8F9DBA;font-size:.92rem;margin-top:.7rem;max-width:34ch}
.footer-bottom{margin-top:2rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.12);
  display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;justify-content:space-between;font-size:.8rem;color:#8391B0}
.disclaimer{max-width:72ch;line-height:1.65}

/* ---------- פירורי לחם ---------- */
.crumbs{font-size:.84rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:.4rem;
  align-items:center;justify-content:center}
.crumbs a{text-decoration:none;color:var(--muted)}
.crumbs a:hover{color:var(--gold-text)}
.crumbs span[aria-hidden]{opacity:.5}

/* ---------- סרגל פעולה תחתון ---------- */
.action-bar{position:fixed;inset-inline:0;bottom:0;z-index:70;
  display:grid;grid-template-columns:repeat(3,1fr);
  background:var(--surface);border-top:1px solid var(--line);
  box-shadow:0 -4px 20px rgba(16,44,114,.12);
  padding-bottom:env(safe-area-inset-bottom,0px)}
.action-bar a{display:flex;flex-direction:column;align-items:center;gap:.15rem;
  padding:.5rem .3rem;text-decoration:none;color:var(--navy);font-weight:700;font-size:.78rem}
.action-bar a + a{border-inline-start:1px solid var(--line)}
.action-bar svg{width:26px;height:26px}
.action-bar a:hover{color:var(--gold-text)}
body{padding-bottom:70px}
@media (min-width:921px){.action-bar{display:none}body{padding-bottom:0}}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
  .btn:hover,.card:hover,.post:hover{transform:none}
}
.skip{position:absolute;right:-9999px}
.skip:focus{right:12px;top:12px;background:var(--surface);padding:.6rem 1rem;border-radius:6px;z-index:100}


/* ==========================================================
   נגישות - רכיב הנגשה והתאמות משתמש
   ========================================================== */
.a11y-btn{position:fixed;inset-inline-start:12px;bottom:84px;z-index:90;
  width:52px;height:52px;border-radius:50%;border:2px solid #fff;cursor:pointer;
  background:var(--bar);color:#fff;display:grid;place-items:center;
  box-shadow:0 4px 16px rgba(0,0,0,.3)}
.a11y-btn svg{width:28px;height:28px}
.a11y-btn:hover{background:var(--bar-2)}
@media (min-width:921px){.a11y-btn{bottom:18px}
  html.has-cookie .a11y-btn{bottom:100px}}

.a11y-panel{position:fixed;inset-inline-start:12px;bottom:146px;z-index:95;
  width:min(300px,calc(100vw - 24px));background:var(--surface);color:var(--text);
  border:2px solid var(--bar);border-radius:var(--radius);padding:1rem;
  box-shadow:0 10px 40px rgba(0,0,0,.35);max-height:min(70vh,560px);overflow:auto}
@media (min-width:921px){.a11y-panel{bottom:80px}}
.a11y-panel h2{font-size:1.1rem;margin-bottom:.2rem}
.a11y-panel .a11y-sub{font-size:.82rem;color:var(--muted);margin-bottom:.8rem}
.a11y-opts{display:grid;gap:.4rem}
.a11y-opts button{display:flex;align-items:center;gap:.6rem;width:100%;text-align:start;
  font:inherit;font-size:.93rem;font-weight:600;color:var(--text);cursor:pointer;
  background:var(--surface-2);border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  padding:.55rem .7rem}
.a11y-opts button:hover{border-color:var(--bar);background:var(--paper)}
.a11y-opts button[aria-pressed="true"]{background:var(--bar);color:#fff;border-color:var(--bar)}
.a11y-opts button[aria-pressed="true"] .a11y-ic{color:#fff}
.a11y-ic{width:20px;height:20px;flex:0 0 auto;color:var(--bar)}
.a11y-foot{margin-top:.9rem;padding-top:.7rem;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;align-items:center;font-size:.85rem}
.a11y-close{font:inherit;font-weight:700;background:transparent;border:0;color:var(--navy);cursor:pointer;padding:.2rem .3rem}

/* התאמות שהמשתמש בוחר */
html{font-size:calc(100% * var(--a11y-scale,1))}
html.a11y-links a{text-decoration:underline !important;text-decoration-thickness:2px !important;
  text-underline-offset:2px !important;font-weight:700 !important}
html.a11y-readable body,html.a11y-readable h1,html.a11y-readable h2,
html.a11y-readable h3,html.a11y-readable h4,html.a11y-readable .btn,
html.a11y-readable .mast-name{font-family:Arial,"Segoe UI",sans-serif !important;letter-spacing:normal !important}
html.a11y-bigcursor,html.a11y-bigcursor *{cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M8 4 40 22 25 25 20 42Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round'/></svg>") 4 4,auto !important}
html.a11y-noanim *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
html.a11y-contrast{background:#000}
html.a11y-contrast body,html.a11y-contrast .sec-alt,html.a11y-contrast .page-head,
html.a11y-contrast .card,html.a11y-contrast .post,html.a11y-contrast details,
html.a11y-contrast .note,html.a11y-contrast .toc,html.a11y-contrast .form,
html.a11y-contrast .masthead,html.a11y-contrast .navbar,html.a11y-contrast .cta,
html.a11y-contrast .site-footer,html.a11y-contrast table,html.a11y-contrast thead th,
html.a11y-contrast tbody tr:nth-child(even),html.a11y-contrast .a11y-panel,
html.a11y-contrast .action-bar,html.a11y-contrast .bio-photo,html.a11y-contrast blockquote,
html.a11y-contrast .a11y-opts button,html.a11y-contrast .cookie,
html.a11y-contrast .a11y-btn{background:#000 !important;color:#FFFF00 !important}
html.a11y-contrast h1,html.a11y-contrast h2,html.a11y-contrast h3,html.a11y-contrast h4,
html.a11y-contrast p,html.a11y-contrast li,html.a11y-contrast span,html.a11y-contrast td,
html.a11y-contrast th,html.a11y-contrast caption,html.a11y-contrast summary,
html.a11y-contrast label,html.a11y-contrast figcaption,html.a11y-contrast strong,
html.a11y-contrast b{color:#FFFF00 !important;text-shadow:none !important}
html.a11y-contrast a,html.a11y-contrast .card-more,html.a11y-contrast .tag{color:#00FFFF !important}
html.a11y-contrast .btn{background:#000 !important;color:#FFFF00 !important;border-color:#FFFF00 !important}
html.a11y-contrast input,html.a11y-contrast select,html.a11y-contrast textarea{
  background:#000 !important;color:#FFFF00 !important;border-color:#FFFF00 !important}
html.a11y-contrast .hero::before{display:none}
html.a11y-contrast .hero::after{background:#000 !important}
html.a11y-contrast img{filter:grayscale(1) contrast(1.2)}
html.a11y-contrast .rule,html.a11y-contrast .gold-line{background:#FFFF00 !important}
html.a11y-contrast *{border-color:#FFFF00 !important}

/* עוגיות */
.cookie{position:fixed;inset-inline:0;bottom:0;z-index:85;background:var(--bar-2);color:#E6ECF8;
  border-top:3px solid var(--gold);padding:.9rem 1rem;
  padding-bottom:calc(.9rem + env(safe-area-inset-bottom,0px));
  display:flex;flex-wrap:wrap;gap:.7rem 1.2rem;align-items:center;justify-content:center;
  font-size:.88rem;box-shadow:0 -6px 24px rgba(0,0,0,.3)}
.cookie p{max-width:56rem}
.cookie a{color:var(--gold-lt)}
.cookie .btn{padding:.45rem 1.1rem;font-size:.92rem}
@media (max-width:920px){.cookie{bottom:70px}}

.footer-legal{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;justify-content:center;
  margin-top:1.8rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.12)}
.footer-legal a{color:var(--gold-lt);font-weight:600}

.hp{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
.form-note.ok{color:var(--gold-text);font-weight:700}
.form-note.err{color:#B3261E;font-weight:700}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .form-note.err{color:#FF8A80}}
:root[data-theme="dark"] .form-note.err{color:#FF8A80}
button[disabled]{opacity:.6;cursor:progress}
