:root {
  --ink: #0f241c;
  --ink-2: #33473f;
  --muted: #5b6d65;
  --bg: #f5f8f6;
  --surface: #ffffff;
  --line: #dde6e1;
  --line-strong: #c4d3cb;
  --brand: #0b6b4d;
  --brand-dark: #084b36;
  --brand-soft: #e4f2eb;
  --brand-softer: #f1f8f4;
  --accent: #f0b23c;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 36, 28, .06), 0 8px 24px rgba(15, 36, 28, .06);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
kbd {
  direction: ltr; unicode-bidi: isolate; display: inline-block;
  font-family: inherit; font-size: .85em; font-weight: 600;
  padding: 1px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px; background: var(--surface);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-head { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--brand-softer); color: var(--brand-dark); }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 16px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--brand-softer); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 248, 246, 0) 55%, var(--bg) 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(11, 107, 77, .07) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(11, 107, 77, .07) 95px 96px),
    var(--brand-softer);
  padding: 56px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--brand-dark); background: var(--surface); border: 1px solid var(--line); padding: 4px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.trust svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* Tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 270px; padding: 28px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--brand-softer); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.drop-icon { width: 64px; height: 64px; color: var(--brand); margin-bottom: 12px; }
.drop-title { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.drop-or { color: var(--muted); margin: 0 0 14px; }
.drop-hint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.file-row { display: none; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; }
.file-row.is-on { display: flex; }
.file-row .file-badge { width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; text-align: right; }
.file-size { color: var(--muted); font-size: 15px; unicode-bidi: plaintext; text-align: right; }
.file-clear { background: none; border: none; font: inherit; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.file-clear:hover { background: var(--bg); color: var(--ink); }
.tool-actions { margin-top: 16px; display: none; }
.tool-actions.is-on { display: block; }
.tool-actions .btn { width: 100%; }
.progress { height: 10px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; margin-top: 14px; display: none; }
.progress.is-on { display: block; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.status { margin-top: 14px; font-weight: 500; }
.status:empty { display: none; }
.status.is-error { color: var(--danger); background: var(--danger-soft); padding: 12px 14px; border-radius: 10px; }
.status.is-info { background: var(--brand-softer); border: 1px solid var(--line); padding: 14px 16px; border-radius: 10px; }
.status.is-done { background: var(--brand-soft); padding: 16px; border-radius: 10px; }
.result-big { display: block; font-size: 30px; font-weight: 800; color: var(--brand-dark); line-height: 1.2; margin-bottom: 4px; }
.result-sizes { font-size: 19px; font-weight: 700; margin: 4px 0 10px; }
.result-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 15px; }
.result-list li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
.result-btn { width: 100%; }
.result-again { display: block; margin: 10px auto 0; background: none; border: none; font: inherit; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
.tool-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.section-alt .steps li { background: var(--bg); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.panel-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.panel-brand h2, .panel-brand h3 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%230b6b4d' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.panel-brand .checks li::before { background-color: rgba(255, 255, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card h3 { margin-top: 10px; }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.card-tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 12px; border-radius: 999px; }
.card-more { font-weight: 700; color: var(--brand); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 22px 18px; color: var(--ink-2); }
.faq-a p:last-child { margin: 0; }

.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c7d5ce; margin: 0; }
.cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.cta-band .btn-primary:hover { background: #ffc552; color: var(--ink); }

/* Page & article */
.page-head { padding: 52px 0 28px; background: var(--brand-softer); border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.page-head p { color: var(--ink-2); font-size: 19px; max-width: 40em; margin: 0; }
.article-wrap { max-width: 820px; padding-top: 28px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.article-head { margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(30px, 4.6vw, 42px); margin-top: 14px; }
.lead { font-size: 20px; color: var(--ink-2); }
.article-meta { color: var(--muted); font-size: 15px; margin: 0; }
.prose h2 { font-size: 27px; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose .page-narrow { max-width: 760px; }
.note { border-inline-start: 4px solid var(--brand); background: var(--brand-softer); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.4em 0; }
.note.warn { border-color: var(--accent); background: #fdf6e7; }
.note p:last-child { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 1.6em; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-softer); font-weight: 700; }
tr:last-child td { border-bottom: none; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; margin: 48px 0; }
.cta-box h2 { color: #fff; font-size: 23px; margin: 0 0 4px; }
.cta-box p { margin: 0; color: #d6ece2; }
.cta-box .btn-primary { background: #fff; color: var(--brand-dark); flex: none; }
.cta-box .btn-primary:hover { background: var(--brand-soft); }
.related h2 { font-size: 24px; }
.related .cards { grid-template-columns: repeat(2, 1fr); }
.page-body { padding-bottom: 72px; }
.page-body .prose { max-width: 760px; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.cat-nav a { text-decoration: none; font-weight: 600; color: var(--brand-dark); background: var(--surface); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; }
.cat-nav a:hover { border-color: var(--brand); background: var(--brand-softer); }
.guide-group { margin-bottom: 48px; scroll-margin-top: 84px; }
.guide-group h2 { font-size: 26px; margin-bottom: 18px; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: 16px; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); text-decoration: underline; }
.foot-grid p { color: var(--muted); max-width: 28em; margin-top: 10px; }
.logo-foot { font-size: 19px; }
.foot-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .features, .cards, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 66px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 16px 16px; }
  .site-nav.is-open { display: flex; }
  .hero { padding: 36px 0 48px; }
  /* בטלפון: הכלי מיד אחרי הכותרת, וההסבר אחריו */
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; align-self: flex-start; }
  .hero h1 { order: 2; }
  .hero .tool { order: 3; margin: 6px 0 26px; }
  .hero .lead { order: 4; }
  .hero .trust { order: 5; margin-top: 4px; }
  .features, .cards, .steps, .related .cards { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .tool { padding: 14px; }
  .drop { min-height: 220px; }
  .cta-band, .cta-box { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* מחלקות במקום עיצוב בתוך התגיות (בשביל מדיניות אבטחת התוכן) */
.more-link { margin: 26px 0 0; }
.section-tight { padding-top: 0; }
.page-404 { padding-top: 72px; text-align: center; }
.drop-sub { color: var(--ink-2); margin: 0 0 6px; max-width: 30em; }
.drop.is-drag .drop-title::after { content: " ✓"; }

/* תוצאה: פירוט ושיתוף */
.result-break { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.rb-title { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.rb-row { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.rb-bar { height: 8px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.rb-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.rb-pct { text-align: left; color: var(--muted); }
.result-share { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 11px; border-radius: 999px; border: 2px solid #25d366; color: #128c4b; font-weight: 700; text-decoration: none; }
.result-share:hover { background: #e9fbf0; color: #0d6b39; }
.result-share svg { width: 20px; height: 20px; }

/* אפשרויות בכלי (פיצול CSV) */
.tool-options { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px 16px; background: var(--brand-softer); border: 1px solid var(--line); border-radius: var(--radius); text-align: start; }
.opt-label { font-weight: 700; color: var(--ink); }
.opt-select { font: inherit; font-size: 17px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.opt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.opt-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); flex: none; }
.result-tip { font-size: 15px; color: var(--muted); margin: 12px 0 0; }
.prose pre { font-family: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; overflow-x: auto; font-size: 15px; line-height: 1.6; text-align: start; }
.prose pre code { font-family: inherit; unicode-bidi: plaintext; white-space: pre; }
.prose pre.ltr { direction: ltr; text-align: left; }
.prose pre.ltr code { font-family: Consolas, "Courier New", monospace; font-size: 14px; unicode-bidi: normal; }

/* בדיקת קובץ: הדוח המלא מתחת לכלי */
.check-section { padding: 8px 0 40px; }
.check-report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 28px; max-width: 860px; }
.check-report h2 { margin: 0 0 6px; }
.check-report h3 { margin: 26px 0 10px; font-size: 20px; }
.check-sum { color: var(--muted); margin: 0 0 16px; }
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.finding { border: 1px solid var(--line); border-inline-start: 5px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.finding p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.f-title { display: block; font-size: 17px; margin-top: 6px; }
.f-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--brand-softer); color: var(--muted); }
.f-auto { border-inline-start-color: var(--brand); }
.f-auto .f-badge { background: var(--brand-soft); color: var(--brand-dark); }
.f-manual { border-inline-start-color: var(--accent); }
.f-manual .f-badge { background: #fdf3df; color: #7a5208; }
.f-speed { border-inline-start-color: #6b8afd; }
.f-speed .f-badge { background: #eef1ff; color: #2f47a8; }
.check-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.check-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.check-table th, .check-table td { padding: 9px 12px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.check-table th { background: var(--brand-softer); font-weight: 700; }
.check-table tr:last-child td { border-bottom: none; }
.check-tag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fdf3df; color: #7a5208; }
.check-warn { color: #7a5208; font-weight: 700; }
.check-muted { color: var(--muted); font-size: 14px; }
.check-fix { margin-top: 26px; padding: 18px; border-radius: 14px; background: var(--brand-soft); }
.check-fix h3 { margin-top: 0; }
@media (max-width: 640px) {
  .check-report { padding: 18px 14px; border-radius: var(--radius); }
  .check-table th, .check-table td { padding: 8px; }
}
.opt-group { display: grid; gap: 10px; }
.opt-group[hidden] { display: none; }

/* תבניות אקסל להורדה */
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.tpl-download { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; text-align: center; }
.tpl-download .btn { width: 100%; }
.tpl-meta { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.tpl-icon { width: 56px; height: 56px; margin: 0 auto 10px; display: block; color: var(--brand); }
.sheet-preview { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 10px; margin: 0 0 1.6em; background: var(--surface); }
.sheet-preview table { border-collapse: collapse; width: 100%; font-size: 14px; }
.sheet-preview th, .sheet-preview td { border: 1px solid #d5ddd9; padding: 6px 10px; white-space: nowrap; text-align: start; }
.sheet-preview th { background: var(--brand); color: #fff; font-weight: 700; }
.sheet-preview .sp-input { background: #f7fbf9; }
.sheet-preview .sp-total td { background: var(--brand-soft); font-weight: 700; }
.sheet-preview .sp-bad { color: var(--danger); font-weight: 700; background: var(--danger-soft); }
.sheet-preview .sp-good { color: var(--brand-dark); font-weight: 700; background: #ddf3e6; }
.sheet-preview .sp-warn { color: #7a5208; background: #fdf3df; }
.sheet-preview .sp-cap { font-size: 13px; color: var(--muted); padding: 8px 10px; background: var(--brand-softer); }
@media (max-width: 920px) {
  .tpl-layout { grid-template-columns: minmax(0, 1fr); }
  .tpl-download { position: static; order: -1; }
}
.hero-alt { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .hero .hero-alt { order: 6; } }

/* לשוניות הכלים מתחת לחלק העליון, כמו לשוניות הגיליונות בתחתית אקסל */
.sheet-tabs { background: #eef3f0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.sheet-tabs-row { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: thin; }
.sheet-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px 12px; min-height: 44px; box-sizing: border-box; color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; border-inline-end: 1px solid var(--line-strong); }
.sheet-tabs a:hover { background: var(--surface); color: var(--brand-dark); }
.sheet-tabs a[aria-current="page"] { background: var(--surface); color: var(--brand-dark); font-weight: 700; border: 1px solid var(--line-strong); border-top: 0; border-bottom: 3px solid var(--brand); margin-top: -1px; border-radius: 0 0 6px 6px; }
.sheet-tabs .sheet-tab-more { color: var(--brand); font-weight: 700; border-inline-end: 0; }
.sheet-tabs a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* טבלת הכלים */
.tools-table-wrap { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.tools-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tools-table th { background: var(--brand); color: #fff; text-align: start; font-weight: 700; padding: 12px 18px; }
.tools-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.tools-table tbody tr:nth-child(even) { background: var(--brand-softer); }
.tools-table tbody tr:hover { background: var(--brand-soft); }
.tt-name { font-weight: 700; white-space: nowrap; }
.tt-name a { color: var(--ink); text-decoration: none; }
.tt-name a:hover { color: var(--brand); text-decoration: underline; }
.tt-desc { color: var(--ink-2); }
.tt-files { color: var(--muted); font-size: 14px; white-space: nowrap; }
.tt-go { white-space: nowrap; text-align: end; }
.tt-go a { font-weight: 700; text-decoration: none; }
.tt-new { display: inline-block; font-size: 12px; font-weight: 700; background: #fdf1d8; color: #7a4f00; border-radius: 4px; padding: 1px 7px; margin-inline-start: 6px; vertical-align: 2px; }
.tools-more { margin-top: 18px; color: var(--muted); }
@media (max-width: 760px) {
  .tools-table thead, .tools-table .tt-files { display: none; }
  .tools-table, .tools-table tbody, .tools-table tr, .tools-table td { display: block; }
  .tools-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .tools-table tbody tr:first-child { border-top: 0; }
  .tools-table td { padding: 0; border: 0; }
  .tt-name { white-space: normal; }
  .tt-desc { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .tt-go { grid-column: 2; grid-row: 1; }
}

/* שורת מצב בתחתית האתר, כמו בתחתית חלון אקסל */
.site-foot { padding-bottom: 0; }
.status-bar { margin-top: 24px; background: var(--brand); color: #fff; font-size: 14px; }
.status-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
