/* Modern main page (moshe 5:28 PM Oct 18 "make nicer design on main page more modern"; task 3c8d8bdf). Loaded by index.html only, after styles.css. No photos, no external hosts. */
.m-home{--navy:#1c1a4a;--navy2:#2a2560;--navy3:#3a347e;--r:18px;--r-sm:14px;
  --shadow:0 1px 2px rgba(28,26,74,.06),0 8px 24px rgba(28,26,74,.08);--shadow-up:0 2px 4px rgba(28,26,74,.08),0 18px 40px rgba(28,26,74,.16);
  font-family:Inter,"Inter var",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans Hebrew","Arial Hebrew",sans-serif;
  background:#f5f2ea;color:#1d1b33;-webkit-font-smoothing:antialiased;letter-spacing:-.005em}
.m-home h2{font-family:inherit}

/* hero (restyled 5:40 PM, moshe "restyle this also"): richer navy, soft glow behind the crest, gold-gradient Hebrew title, English line between fine gold rules */
.m-hero{position:relative;text-align:center;color:#fff;padding:18px 16px 100px;overflow:hidden;isolation:isolate;
  background:radial-gradient(120% 90% at 50% 0%,#3a3488 0%,rgba(58,52,136,0) 55%),
             radial-gradient(70% 60% at 0% 100%,rgba(20,18,58,.9),rgba(20,18,58,0) 70%),
             linear-gradient(170deg,#2c2768 0%,#1f1c52 50%,#141236 100%)}
.m-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:120px;z-index:-1;background:linear-gradient(180deg,rgba(20,18,54,0),rgba(20,18,54,.35))}
.m-nav{position:absolute;top:14px;right:14px;z-index:2}
.m-nav a{display:inline-block;color:#fff;text-decoration:none;font-weight:600;font-size:.9rem;padding:8px 16px;border-radius:999px;
  background:rgba(255,255,255,.08);border:1px solid rgba(224,189,106,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .15s,border-color .15s}
.m-nav a:hover{background:rgba(224,189,106,.14);border-color:rgba(224,189,106,.8)}
.m-brand{position:relative;display:inline-flex;flex-direction:column;align-items:center;text-decoration:none;margin-top:30px}
.m-brand::before{content:"";position:absolute;z-index:-1;left:50%;top:-34px;width:min(340px,86vw);aspect-ratio:1;transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(224,189,106,.26),rgba(224,189,106,.10) 45%,rgba(224,189,106,0) 100%);pointer-events:none}
.m-brand img{width:min(184px,48vw);height:auto;filter:drop-shadow(0 10px 24px rgba(0,0,0,.45)) drop-shadow(0 0 1px rgba(0,0,0,.3))}
.m-he{font-family:"Frank Ruhl Libre","David Libre","David","Times New Roman",serif;font-weight:900;font-size:clamp(2.7rem,11.5vw,4rem);line-height:.95;margin:14px 0 0;letter-spacing:0;
  color:#e7c676;background:linear-gradient(180deg,#f8e7b4 0%,#e9c873 42%,#c99a3e 78%,#b8872f 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));padding:0 4px 4px}
.m-en{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0 0;color:#efe6c8;letter-spacing:.24em;text-transform:uppercase;font-size:.72rem;font-weight:600;white-space:nowrap}
.m-en::before,.m-en::after{content:"";width:34px;height:1px;flex:none}
.m-en::before{background:linear-gradient(90deg,rgba(224,189,106,0),rgba(224,189,106,.9))}
.m-en::after{background:linear-gradient(90deg,rgba(224,189,106,.9),rgba(224,189,106,0))}
@media (max-width:360px){.m-en{letter-spacing:.16em;gap:8px}.m-en::before,.m-en::after{width:18px}}

/* main */
.m-main{max-width:1000px;margin:-64px auto 0;padding:0 16px 8px;position:relative;z-index:1}
.m-panel{background:#fff;border-radius:22px;padding:28px 20px 22px;box-shadow:var(--shadow-up);text-align:center;border:1px solid rgba(28,26,74,.06)}
.m-panel h2{font-size:1.65rem;font-weight:800;letter-spacing:-.02em;color:var(--navy2);margin:0}
.m-lead{color:#5f5d72;font-size:1.02rem;line-height:1.55;max-width:520px;margin:8px auto 22px}
.m-actions{display:grid;grid-template-columns:1fr;gap:12px;text-align:left}

/* action cards (also the directory tile) */
.m-action,.m-tile{display:flex;align-items:center;gap:16px;padding:18px;border-radius:var(--r);text-decoration:none;color:var(--navy2);
  background:#fff;border:1px solid #e7e2d4;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.m-action:hover,.m-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-up);border-color:#d9cfae}
.m-action:active,.m-tile:active{transform:translateY(-1px)}
.m-ico{flex:none;width:52px;height:52px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:#f1eefb;color:var(--navy2)}
.m-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.m-t{font-size:1.16rem;font-weight:700;letter-spacing:-.01em}
.m-s{font-size:.9rem;color:#6b6980;line-height:1.35}
.m-go{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f5f2ea;color:var(--navy2);transition:transform .18s ease,background .18s}
.m-action:hover .m-go,.m-tile:hover .m-go{transform:translateX(3px)}
.m-primary{background:linear-gradient(150deg,#353080 0%,#26225c 60%,#1c1a4a 100%);border-color:transparent;color:#fff;box-shadow:0 2px 4px rgba(28,26,74,.15),0 12px 28px rgba(28,26,74,.28)}
.m-primary:hover{border-color:transparent;box-shadow:0 4px 8px rgba(28,26,74,.18),0 22px 44px rgba(28,26,74,.34)}
.m-primary .m-ico{background:var(--gold);color:var(--navy)}
.m-primary .m-t{color:#fff}
.m-primary .m-s{color:rgba(255,255,255,.75)}
.m-primary .m-go{background:rgba(255,255,255,.12);color:var(--gold-lt)}

/* other ways */
.m-ways{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}
.m-home .m-way{display:flex;align-items:flex-start;gap:14px;margin:0;padding:16px 18px;background:#fff;border:1px solid #ece6d6;border-radius:var(--r);box-shadow:var(--shadow);font-size:.95rem;line-height:1.5;text-align:left}
.m-way p{margin:0;padding-top:1px;color:#3a3852}
.m-way a{font-weight:700;color:var(--navy2);overflow-wrap:anywhere}
.m-way.phonenote a{white-space:nowrap;overflow-wrap:normal}
.m-wico{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fbf3df;color:#a77f22}
.m-wico svg{width:21px;height:21px}

/* directory tile */
.m-home .home-more.m-more{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 0}
.m-home .home-more[hidden],.m-home .home-tile[hidden]{display:none}
.m-more .m-tile{flex:1 1 100%;min-height:0}
.m-tile .m-ico{background:#fbf3df;color:#a77f22}
.m-tile .tile-count{color:#8c8aa0;white-space:nowrap}

/* emergency */
.m-home .m-emerg{display:flex;align-items:center;justify-content:center;gap:10px;margin:22px auto 6px;padding:12px 16px;max-width:560px;
  border-radius:16px;background:#fdecec;border:1px solid #f6caca;color:#5a1c1c;font-size:.97rem;text-align:center}
.m-eico{display:flex;flex:none;color:var(--urgent)}.m-eico svg{width:20px;height:20px}
.m-home .m-emerg a{font-weight:800;color:var(--urgent);white-space:nowrap}

/* footer */
.m-footer{margin-top:40px;background:linear-gradient(180deg,#fbf8f0,#f2ead6);border-top:1px solid #e6dcc0;padding:0;text-align:center}
.m-logos{display:flex;align-items:center;justify-content:center;gap:12px;max-width:820px;margin:0 auto;padding:26px 14px 22px}
.m-logos img{display:block;height:auto;flex:0 1 auto;min-width:0}
.m-logos .inst-a{width:76px}.m-logos .inst-main{width:92px}.m-logos .inst-b{width:106px}
.m-sep{align-self:stretch;width:1px;margin:10px 0;background:linear-gradient(180deg,transparent,rgba(201,162,74,.8),transparent);flex:none}
.m-foot{background:var(--navy);color:rgba(255,255,255,.72);font-size:.84rem;padding:14px 16px;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;align-items:center}
.m-foot b{font-family:"Frank Ruhl Libre","David Libre","David","Times New Roman",serif;color:var(--gold-lt);font-weight:700;font-size:1.05rem}
.m-foot a{color:#fff;text-decoration:none;font-weight:600}
.m-foot a:hover{text-decoration:underline}

@media (min-width:700px){
  .m-hero{padding:22px 24px 108px}
  .m-brand{margin-top:22px}
  .m-brand img{width:176px}
  .m-brand::before{width:380px;top:-40px}
  .m-he{font-size:4.1rem}
  .m-en{font-size:.78rem;gap:16px}.m-en::before,.m-en::after{width:56px}
  .m-panel{padding:36px 32px 32px}
  .m-panel h2{font-size:2rem}
  .m-lead{font-size:1.08rem;margin-bottom:28px}
  .m-actions{grid-template-columns:1fr 1fr;gap:16px}
  .m-action{padding:22px;min-height:104px}
  .m-ico{width:56px;height:56px}
  .m-t{font-size:1.22rem}
  .m-ways{grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
  .m-home .home-more.m-more{gap:16px;margin-top:16px}
  .m-more .m-tile{flex:1 1 280px}
  .m-logos{gap:40px;padding:34px 20px 30px}
  .m-logos .inst-a{width:130px}.m-logos .inst-main{width:150px}.m-logos .inst-b{width:196px}
  .m-home .m-emerg{border-radius:999px;padding:12px 22px}
  .m-foot{justify-content:space-between;max-width:none;padding:14px max(24px,calc((100% - 968px)/2))}
}
@media (max-width:440px){.m-tile .tile-count{display:none}}
@media (max-width:360px){.m-action,.m-tile{gap:12px;padding:15px}.m-ico{width:46px;height:46px}.m-go{display:none}}
@media (prefers-reduced-motion:reduce){.m-action,.m-tile,.m-go{transition:none}}
