/* Look follows gov.il: Rubik, navy text, blue primary, light blue page. Spec D12. */
:root {
  --text: #0c3058;
  --text-2: rgba(12, 48, 88, 0.72);
  --primary: #0068f5;
  --primary-hover: #0058d0;
  --accent: #007dfa;
  --page: #f1f7ff;
  --fill: #deebfe;
  --border: rgba(9, 65, 134, 0.15);
  --pass-bg: #e6f4ea;
  --pass: #0b6b35;
  --rev-bg: #fff4d6;
  --rev: #7a4f00;
  --blk-bg: #fde7e7;
  --blk: #a3221a;
  --info-bg: #e8f1fe;
  --info: #0b4fa8;
  --navy: #0c3058;
  --navy-2: #123e70;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(12, 48, 88, 0.06), 0 4px 16px rgba(12, 48, 88, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Rubik, "Segoe UI", Tahoma, Arial, sans-serif; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
/* Skip link: hidden by clipping, never by a large offset. An element parked 9999px past the start edge gave
   Hebrew pages a sideways scroll on some phone browsers (Tamir, 6 Nov 2026). */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.envbar { background: #7a4f00; color: #fff; font-size: 12.5px; text-align: center; padding: 4px 8px; }
/* Design option B (6 Nov 2026): navy header, navy hero. */
header.top { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.bar { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.emblem { width: 42px; height: 42px; border-radius: 50%; background: var(--text); display: grid; place-items: center; flex: none; }
.brand b { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.brand small { display: block; font-size: 12.5px; color: var(--text-2); }
nav.main { margin-inline-start: auto; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
nav.main a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; }
nav.main a[aria-current="page"] { background: var(--fill); color: var(--primary); }
nav.main a:hover { background: var(--page); }
nav.main a.lang { border: 1px solid var(--border); font-size: 13px; padding: 6px 12px; margin-inline-start: 6px; }
header.top .brand { color: #fff; }
header.top .brand small { color: rgba(255, 255, 255, 0.8); }
header.top .emblem { background: rgba(255, 255, 255, 0.14); }
header.top nav.main a { color: #fff; }
header.top nav.main a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: #fff; }
header.top nav.main a:hover { background: rgba(255, 255, 255, 0.1); }
header.top nav.main a.lang { border-color: rgba(255, 255, 255, 0.4); }
header.top a:focus-visible, .home-hero a:focus-visible, .home-hero input:focus-visible, .home-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home-hero { background: var(--navy-2); color: #fff; }
.home-hero .inner { max-width: 1120px; margin: 0 auto; padding: 48px 20px 44px; }
.home-hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 12px; max-width: 780px; }
.home-hero .lead { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); max-width: 720px; margin: 0 0 8px; }
.home-hero .hero-sub { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); max-width: 720px; margin: 0 0 20px; }
.hero-find { display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; }
/* Beats the generic input[type="search"] rule further down, which sets color: inherit (white in the hero). */
.hero-find input[type="search"] { flex: 1 1 320px; width: auto; min-width: 0; height: 52px; border-radius: 10px; border: 0; padding: 0 16px; font: inherit; font-size: 18px; color: var(--text); background: #fff; }
.hero-find input[type="search"]::placeholder { color: rgba(12, 48, 88, 0.6); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; height: 50px; border-radius: 10px; font-weight: 600; }
.btn.light:hover { background: var(--fill); }
.hero-links { margin: 14px 0 0; font-size: 14px; }
.hero-links a { color: #fff; }
@media (max-width: 640px) {
  .home-hero .inner { padding: 32px 16px 30px; }
  .home-hero h1 { font-size: 26px; }
  .hero-find input[type="search"] { flex-basis: 180px; font-size: 16px; }
}
main > .wrap { max-width: 1120px; margin: 0 auto; padding: 16px 20px 48px; }
h1 { font-size: 28px; margin: 8px 0 6px; font-weight: 700; }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 10px; }
.muted { color: var(--text-2); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .g4 { grid-template-columns: 1fr; } nav.main { margin-inline-start: 0; flex: 1 1 100%; } }
.nav-icon { display: none; }
/* Phones: one header row, icons in place of words (labels stay for screen readers). */
@media (max-width: 640px) {
  header.top .bar { flex-wrap: nowrap; gap: 8px; padding: 10px 14px; }
  header.top .brand small { display: none; }
  header.top .emblem { width: 36px; height: 36px; }
  nav.main { margin-inline-start: auto; flex: none; flex-wrap: nowrap; gap: 2px; }
  nav.main a, nav.main a.lang { padding: 11px; margin: 0; border: 0; line-height: 0; }
  .nav-icon { display: block; }
  .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 500; cursor: pointer; text-decoration: none; font-size: 15px; font-family: inherit; }
.btn:hover { background: var(--primary-hover); }
.btn.sec { background: #fff; color: var(--primary); }
.btn.sec:hover { background: var(--fill); }
.btn.sm { padding: 6px 14px; font-size: 13.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.idsample { background: var(--page); border: 1px dashed var(--border); border-radius: 10px; padding: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; direction: ltr; text-align: left; }
.idsample .k { color: var(--primary); font-weight: 700; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--primary); display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
details { border-top: 1px solid var(--border); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 500; }
label { display: block; font-weight: 500; font-size: 14px; margin: 12px 0 4px; }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input:not([type]), select, textarea { width: 100%; border: 1px solid rgba(9, 65, 134, 0.3); border-radius: 8px; padding: 9px 12px; background: #fff; font: inherit; color: inherit; }
input:focus, select:focus, a:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 104, 245, 0.35); outline-offset: 1px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters > input, .filters > select { flex: 1; min-width: 160px; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip.pass { background: var(--pass-bg); color: var(--pass); }
.chip.review { background: var(--rev-bg); color: var(--rev); }
.chip.block { background: var(--blk-bg); color: var(--blk); }
.chip.info { background: var(--info-bg); color: var(--info); }
.table-wrap { overflow-x: auto; }
.ids-table .k { color: var(--primary); font-weight: 700; }
/* Phones: each identifier becomes a card; the column name moves above each value. */
@media (max-width: 640px) {
  .ids-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ids-table, .ids-table tbody, .ids-table tr, .ids-table td { display: block; }
  .ids-table tr { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
  .ids-table td { border: 0; padding: 3px 0; }
  .ids-table td.id-type { font-weight: 700; font-size: 15px; padding-bottom: 6px; }
  .ids-table td[data-label]::before { content: attr(data-label); display: block; font-family: Rubik, "Segoe UI", Tahoma, Arial, sans-serif; font-size: 12px; color: var(--text-2); direction: rtl; text-align: start; }
  html[dir="ltr"] .ids-table td[data-label]::before { direction: ltr; }
  .ids-table td.id-example { font-size: 15px; white-space: nowrap; overflow-x: auto; }
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; font-weight: 600; color: var(--text-2); font-size: 12.5px; padding: 10px 8px; border-bottom: 1px solid var(--border); }
td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
footer { border-top: 1px solid var(--border); background: #fff; }
footer .bar { font-size: 13px; color: var(--text-2); }
footer a { color: var(--text-2); }
footer .domain { margin-inline-start: auto; }
.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
.faq-a { margin-top: 8px; }

.ltr { direction: ltr; unicode-bidi: isolate; }

/* Forms, wizard, account, admin (R1) */
.field { margin-bottom: 6px; }
.field .row > input { flex: 1; min-width: 180px; }
.row.between { justify-content: space-between; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 600; margin-bottom: 6px; }
label.opt { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 6px 0; }
input[type="file"] { display: block; margin: 4px 0; font: inherit; }
textarea { resize: vertical; }
.small { font-size: 12.5px; }
.err { color: var(--blk); font-size: 13px; display: block; margin-top: 4px; }
.notice { background: var(--info-bg); color: var(--info); border-radius: 8px; padding: 10px 14px; }
.notice-card { border-color: var(--pass); }
.narrow { max-width: 520px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.steps li[aria-current="step"] { color: var(--primary); }
.checks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.kv { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--text-2); font-size: 13.5px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .g2, .g3 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 18px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--text); border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary); font-weight: 500; }
button.link { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Maintenance page, served by the edge while a release is held (spec 13.2). Layout after gov.il/he/error. */
body.mx { min-height: 100vh; display: flex; flex-direction: column; background: #f7faff; }
.mx-top { padding: 22px 28px; display: flex; }
.mx-main { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px 56px; }
.mx-art { width: min(560px, 100%); height: auto; }
.mx-title { font-size: 32px; font-weight: 700; color: var(--text); margin: 4px 0 16px; line-height: 1.25; }
.mx-text { font-size: 20px; color: var(--text); margin: 0 0 8px; }
.mx-note { font-size: 16px; color: var(--text-2); margin: 0; max-width: 560px; }
@media (max-width: 600px) { .mx-top { padding: 16px; } .mx-title { font-size: 26px; } .mx-text { font-size: 18px; } }

/* Honeypot field (spec 14): clipped out of view, not display:none, so simple bots still fill it.
   Never moved with left/right: in a right-to-left page an offset to the left makes the page scroll sideways. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Request an ID: one search, then three short steps (chosen 5 Nov 2026, canvas option B). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { font-size: 17px; color: var(--text-2); margin: 0 0 20px; }
.btn.lg { min-height: 50px; padding: 0 32px; font-size: 16px; font-weight: 600; }
button.btn, a.btn { justify-content: center; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.actions.between { justify-content: space-between; }
.help { display: block; color: var(--text-2); font-size: 13px; margin-top: 4px; }
.note { background: var(--rev-bg); color: var(--rev); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.idmark { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; unicode-bidi: isolate; }
.idmark .cc { color: var(--text-2); font-weight: 500; margin-inline-end: 1px; }

.find { max-width: 760px; margin: 24px auto 0; }
.find h1 { font-size: 34px; line-height: 1.2; }
.find-box { display: flex; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--primary); border-radius: 16px; padding: 8px; box-shadow: 0 4px 24px rgba(12, 48, 88, 0.08); }
.find-box input[type="search"] { flex: 1; min-width: 0; border: 0; font-size: 24px; font-weight: 500; padding: 8px 10px; letter-spacing: 0.5px; background: transparent; }
.find-box input[type="search"]:focus { outline: none; }
.find-box:focus-within { outline: 3px solid rgba(0, 104, 245, 0.25); outline-offset: 2px; }
.find-box .btn { min-height: 48px; }
#find-result:empty { display: none; }
.result { margin-top: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; }
.result.free { border-color: #9bd3ae; }
.result.reserved { border-color: #f0c96a; }
.result-title { font-size: 22px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tick { width: 30px; height: 30px; border-radius: 50%; background: var(--pass-bg); flex: none; position: relative; }
.tick::after { content: ""; position: absolute; inset-inline-start: 10px; top: 6px; width: 7px; height: 13px; border: solid var(--pass); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.result-hint { margin: 14px 4px 0; color: var(--text-2); }
.result-sub { margin: 16px 0 8px; font-weight: 500; }
.result-warn { background: var(--rev-bg); color: var(--rev); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; }
.sugg-id { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); text-decoration: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.sugg-id:hover { background: var(--fill); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.pills legend { width: 100%; margin-bottom: 8px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin: 0; padding: 0 16px; border: 1px solid rgba(9, 65, 134, 0.25); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; }
.pill input { accent-color: var(--primary); margin: 0; }
.pill:has(input:checked) { border: 2px solid var(--primary); background: var(--fill); color: #0b3668; }
.result .idsample { margin-top: 14px; }
.org-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); }
.org-row:last-child { border-bottom: 0; }
.org-name { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.org-row form { margin: 0; }
.how3 { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 14px; color: var(--text-2); }
.how3 b { display: block; color: var(--text); margin-bottom: 4px; }
@media (max-width: 700px) { .how3 { grid-template-columns: 1fr; } .find h1 { font-size: 28px; } .find-box input[type="search"] { font-size: 20px; } }

.wizard { max-width: 680px; margin: 8px auto 0; }
.wizard-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.id-chip { background: var(--fill); color: var(--primary); font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: 16px; }
.wizard-top a { margin-inline-start: auto; font-size: 14px; }
.progress { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13.5px; }
.progress li { border-top: 4px solid var(--fill); padding-top: 6px; color: var(--text-2); }
.progress li.done { border-top-color: var(--accent); color: var(--text); }
.progress li.on { border-top-color: var(--primary); color: var(--text); font-weight: 600; }
.progress a { color: inherit; text-decoration: none; }
.progress .n { font-weight: 700; }
.step h1 { font-size: 26px; margin: 0 0 6px; }
.step .sub { font-size: 18px; margin: 24px 0 4px; }
.step .field { margin-bottom: 10px; }
input.lg { font-size: 20px; padding: 11px 14px; letter-spacing: 0.5px; }
.err-box { background: var(--blk-bg); color: var(--blk); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.err-box p { margin: 0; }
.err-box .checks { color: var(--text); }
.found { margin: 8px 0 12px; background: #f3faf5; border: 1px solid #cfe8d7; border-radius: 12px; padding: 14px 16px; }
.found-badge { color: var(--pass); font-weight: 600; font-size: 13.5px; margin: 0 0 4px; }
.found-name { font-weight: 600; font-size: 17px; margin: 0; }
.step details { border: 0; padding: 4px 0; }
.step details > summary { color: var(--primary); font-weight: 500; font-size: 14px; padding: 6px 0; }
.step details[open] > summary { margin-bottom: 4px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline > input { flex: 1; min-width: 200px; }
.otp { background: var(--page); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; }
.otp label { font-weight: 400; margin-top: 0; }
.otp-input { max-width: 170px; font-size: 20px; letter-spacing: 6px; text-align: center; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed rgba(9, 65, 134, 0.3); border-radius: 12px; padding: 18px; text-align: center; cursor: pointer; margin: 0; }
.drop-title { font-weight: 600; }
.drop:hover { border-color: var(--primary); background: var(--page); }
.field:has(input.file:focus-visible) .drop { outline: 3px solid rgba(0, 104, 245, 0.35); outline-offset: 2px; }
.outcome { border-radius: 10px; padding: 12px 14px; font-weight: 500; margin-top: 12px; }
.outcome.approved { background: var(--pass-bg); color: var(--pass); }
.outcome.review { background: var(--rev-bg); color: var(--rev); }
.outcome.blocked { background: var(--blk-bg); color: var(--blk); }
.restart { margin-top: 12px; text-align: center; font-size: 14px; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.btn.is-disabled:hover { background: var(--primary); }
.drop.over { border-color: var(--primary); background: var(--fill); }
.entity-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: -2px 0 10px; font-size: 14px; }
.entity-line details { padding: 0; }
.entity-line details[open] { flex-basis: 100%; }
input[aria-invalid="true"] { border-color: var(--blk); background: #fffafa; }
input[readonly] { background: var(--page); color: var(--text-2); }
.notice.warn { background: var(--rev-bg); color: var(--rev); }
.notice.closed { background: #eef1f5; color: var(--text); }
.result .dispute { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }

/* Admin tables: every action cell is one row of small buttons, same height, same gap, never stacked. */
.row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.row-actions form { margin: 0; display: contents; }

/* Admin → Codes: one line per code, roles as tags; the edit line turns the tags into tick boxes. */
.edit-line td { background: var(--fill); }
.code-edit { display: grid; gap: 12px; }
.tagbox { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagbox legend { font-size: 13px; padding: 0 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; cursor: pointer; background: #fff; }
.tag.on { border-color: var(--primary); background: var(--info-bg); }
.tag:has(input:checked) { border-color: var(--primary); background: var(--info-bg); }
.tag:has(input:not(:checked)) { background: #fff; border-color: var(--border); }
.tag input { margin: 0; }
.row.wrap { flex-wrap: wrap; gap: 8px 14px; }
.nowrap { white-space: nowrap; }
