/* guides.css (מ-SEO, 8.11.2026): the guides under /guides/ and the guides teaser on the home page.
   Loaded after tokens / base / components / page-hero. Reading pages (impeccable "Read" mode): a light sky
   that fades to white, a compact opening built from the page-hero classes (page-hero.css is not changed;
   this file only adds the .guide-* modifiers), a 68ch article column with a sticky "בדף הזה" card on
   desktop, an answer-first box, one tinted "מה זה אומר בשבילכם" panel, visible FAQ, sources, and a navy
   call to action that also says you can apply on your own. Every selector is namespaced (.guide-*, .hub-*,
   .home-guides) because the home page loads this file too. */

/* ================= Page ================= */
.guide-page {
  position: relative;
  background: linear-gradient(180deg, #D9E9FB 0, #E8F2FD 220px, #F4F8FE 420px, #FFFFFF 680px);
  padding-bottom: var(--space-8);
}
.guide-page ::selection { background: #CFE2FB; color: var(--navy-900); }

/* ---------- Opening: page-hero classes, smaller title that may wrap ---------- */
.guide-hero { padding-block: var(--space-5) var(--space-6); }
.guide-hero__title {
  font-size: clamp(1.95rem, 1.35rem + 2.5vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 22ch;
  margin-bottom: 0;
  text-wrap: balance;
}
.guide-hero__swoosh {
  display: block;
  width: 112px;
  height: 12px;
  margin: 14px auto var(--space-4);
  color: var(--red-500);
}
.guide-hero__lead { max-width: 40rem; font-size: 1.1rem; }

/* breadcrumbs: above the title, small and quiet; the separator is a drawn chevron */
.guide-crumbs { margin-bottom: var(--space-4); }
.guide-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  color: #3E4E6A;
}
.guide-crumbs li { display: inline-flex; align-items: center; }
.guide-crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline: 10px;
  border-left: 1.5px solid currentColor;     /* physical sides on purpose: the chevron points left, */
  border-bottom: 1.5px solid currentColor;   /* which is "forward" in RTL */
  transform: rotate(45deg);
  opacity: .55;
}
.guide-crumbs a { color: var(--navy-700); text-decoration: underline; text-decoration-thickness: 1px; }
.guide-crumbs a:hover { text-decoration-thickness: 2px; }
.guide-crumbs [aria-current] {
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: var(--space-5);
  font-size: .9rem;
  color: #33435E;
}
.guide-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.guide-meta svg { width: 17px; height: 17px; color: var(--navy-700); flex: none; }

/* ================= Layout: contents card | article ================= */
/* one reading measure for the article, the call to action and the related list */
.guide-page { --guide-measure: 46rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.guide-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.guide-main > * { min-width: 0; }   /* a wide table scrolls inside its own box instead of stretching the column */
@media (min-width: 960px) {
  .guide-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-7); }
  .guide-aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}

/* "בדף הזה": a <details class="toc"> so legal-pages.js keeps it open on desktop and folded on phones */
.guide-toc {
  background: var(--white);
  border: 1px solid rgba(15, 63, 140, .09);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.guide-toc summary {
  list-style: none;
  cursor: pointer;
  min-height: 50px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
}
.guide-toc summary::-webkit-details-marker { display: none; }
.guide-toc summary::after {
  content: "";
  width: 9px; height: 9px;
  border-inline-end: 2px solid var(--navy-700);
  border-bottom: 2px solid var(--navy-700);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition);
  margin-inline-end: 4px;
}
.guide-toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.guide-toc summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.guide-toc ol {
  list-style: none;
  margin: 0;
  padding: 0 10px 12px;
  counter-reset: toc;
  display: grid;
  gap: 2px;
}
.guide-toc li { counter-increment: toc; }
.guide-toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #22324D;
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
}
.guide-toc a::before { content: counter(toc); color: #4A5A75; font-variant-numeric: tabular-nums; font-size: .85rem; padding-top: 1px; }
.guide-toc a:hover { background: var(--sky-50); color: var(--navy-900); }
@media (min-width: 960px) {
  .guide-toc summary { cursor: default; min-height: 0; padding: 16px 18px 8px; font-size: .95rem; }
  .guide-toc summary::after { display: none; }
}

/* ================= Article ================= */
.guide-article { max-width: var(--guide-measure); font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.guide-article > * + * { margin-top: var(--space-7); }
.guide-article h2 {
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem);
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: var(--space-3);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.guide-article h3 { font-size: 1.1rem; color: var(--navy-900); line-height: 1.4; }
.guide-article p + p, .guide-article p + ul, .guide-article ul + p, .guide-article p + ol,
.guide-article ol + p, .guide-article p + .guide-table-wrap, .guide-article .guide-table-wrap + p,
.guide-article p + .guide-warn, .guide-article .guide-warn + p, .guide-article p + dl, .guide-article dl + p,
.guide-article p + .guide-chips, .guide-article .guide-chips + p { margin-top: .85em; }
.guide-article strong { color: var(--navy-900); }
.guide-article a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-article a:not(.btn):hover { text-decoration-thickness: 2px; }
.guide-section { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

/* lists: navy dots / navy numbers, not browser defaults */
.guide-article ul, .guide-article ol { padding: 0; margin: 0; list-style: none; display: grid; gap: .55em; }
.guide-article ul > li { position: relative; padding-inline-start: 1.35em; }
.guide-article ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: .2em;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-700);
}
.guide-article ol { counter-reset: step; }
.guide-article ol > li { position: relative; counter-increment: step; padding-inline-start: 2.4em; min-height: 1.9em; }
.guide-article ol > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: .1em;
  width: 1.75em;
  height: 1.75em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-grad);
  color: var(--white);
  font-size: .85em;
  font-weight: 700;
  line-height: 1;
}

/* answer first: what a reader (and a search snippet) needs in one paragraph */
.guide-answer {
  padding: var(--space-5) var(--space-5);
  background: var(--white);
  border: 1px solid rgba(15, 63, 140, .10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.guide-answer h2 {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--red-cta);
  margin-bottom: var(--space-2);
}
.guide-answer p { font-size: 1.14rem; line-height: 1.7; color: #1B2A45; }

/* tables: scroll inside their own box on phones, never the page */
.guide-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}
.guide-table-wrap:focus-visible { outline: 3px solid rgba(30, 99, 214, .55); outline-offset: 2px; }
.guide-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .98rem; line-height: 1.5; }
.guide-table caption { text-align: start; padding: 12px 16px 4px; font-weight: 700; color: var(--navy-900); }
.guide-table th, .guide-table td { padding: 11px 16px; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.guide-table thead th { background: var(--sky-100); color: var(--navy-900); font-weight: 700; border-top: 0; }
.guide-table tbody th { font-weight: 500; color: #22324D; }
.guide-table td[dir="ltr"] { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-table__total th, .guide-table__total td { font-weight: 700; color: var(--navy-900); background: var(--sky-50); }

/* definition list (statuses) */
.guide-dl { display: grid; gap: var(--space-3); margin: 0; }
.guide-dl > div { padding: var(--space-4); border-radius: 16px; background: var(--sky-50); border: 1px solid rgba(15, 63, 140, .08); }
.guide-dl dt { font-weight: 700; color: var(--navy-900); }
.guide-dl dd { margin: 4px 0 0; }

/* the eight countries as quiet chips */
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-chips span { padding: 4px 12px; border-radius: 999px; background: var(--sky-100); color: var(--navy-900); font-size: .95rem; font-weight: 500; }

/* a warning inside a section: amber tint, no side stripe */
.guide-warn {
  padding: var(--space-4) var(--space-5);
  border-radius: 16px;
  background: var(--warn-100);
  border: 1px solid #F1DDA6;
}
.guide-warn p + p { margin-top: .7em; }

/* "מה זה אומר בשבילכם": the one tinted panel of the page */
.guide-note {
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #E4F0FD 0%, #F2F8FF 100%);
  border: 1px solid rgba(15, 63, 140, .10);
}
.guide-note h2 { display: flex; align-items: center; gap: 12px; }
.guide-note__icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-grad);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(11, 42, 91, .2);
}
.guide-note__icon svg { width: 22px; height: 22px; }
.guide-note li { font-weight: 500; color: #1B2A45; }

/* FAQ: visible questions and answers (the FAQPage JSON-LD repeats exactly these) */
.guide-faq__item { padding-block: var(--space-4); border-top: 1px solid var(--line); }
.guide-faq__item:last-child { border-bottom: 1px solid var(--line); }
.guide-faq__item p { margin-top: 6px; }

/* sources */
.guide-sources { font-size: .95rem; line-height: 1.6; color: #33435E; }
.guide-sources h2 { font-size: 1.15rem; }
.guide-sources ul { gap: .45em; }
.guide-sources__host { color: #4A5A75; font-size: .85rem; margin-inline-start: 4px; }
.guide-sources ul + p { margin-top: var(--space-4); }

/* ================= Call to action ================= */
.guide-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: var(--guide-measure);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-card-lg);
  background: var(--navy-grad);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(11, 42, 91, .22);
}
.guide-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 240px;
  height: 160px;
  background: url("../../assets/home/footer-skyline.webp") left bottom / contain no-repeat;
  opacity: .35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 100%);
}
.guide-cta__title { color: var(--white); font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
.guide-cta__text { margin-top: var(--space-3); color: #DCE7F7; font-size: 1.05rem; line-height: 1.7; max-width: 52ch; }
.guide-cta__text strong { color: var(--white); }
.guide-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.guide-cta__btn { min-height: 54px; padding-inline: 28px; font-size: 1.08rem; }
.guide-cta__btn svg { width: 20px; height: 20px; }
.btn--whatsapp.guide-cta__btn svg { width: 22px; height: 22px; }
.guide-cta__self {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.guide-cta__self:hover { color: var(--white); text-decoration-thickness: 2px; }
.guide-cta__self svg { width: 18px; height: 18px; flex: none; }
.guide-cta__fine { margin-top: var(--space-4); font-size: .88rem; line-height: 1.6; color: #BFD0EA; max-width: 56ch; }
.guide-cta a:focus-visible { outline-color: var(--white); }
@media (min-width: 640px) {
  .guide-cta { padding: var(--space-7) var(--space-7); }
}
@media (max-width: 479.98px) {
  .guide-cta__actions { flex-direction: column; align-items: stretch; }
  .guide-cta__btn { width: 100%; }
  .guide-cta__self { justify-content: center; }
}

/* ================= Related guides ================= */
.guide-related { max-width: var(--guide-measure); }
.guide-related__title { font-size: 1.3rem; color: var(--navy-900); margin-bottom: var(--space-4); }
.guide-related ul { display: grid; gap: var(--space-3); }
.guide-related__link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name arrow" "text arrow";
  align-items: center;
  gap: 2px var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid rgba(15, 63, 140, .10);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 200ms cubic-bezier(.23, 1, .32, 1), transform 200ms cubic-bezier(.23, 1, .32, 1), border-color 200ms ease;
}
.guide-related__link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(15, 63, 140, .22); }
.guide-related__name { grid-area: name; font-weight: 700; color: var(--navy-900); line-height: 1.4; }
.guide-related__text { grid-area: text; color: #4A5A75; font-size: .95rem; line-height: 1.5; }
.guide-related__link > svg { grid-area: arrow; width: 22px; height: 22px; color: var(--red-cta); transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.guide-related__link:hover > svg { transform: translateX(-4px); }
.guide-related__all { margin-top: var(--space-4); }
.guide-related__all a { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ================= Hub (guides/index.html) ================= */
.hub-body { display: grid; gap: var(--space-8); max-width: 960px; }
.hub-facts {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid rgba(15, 63, 140, .10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.hub-facts__title { font-size: 1.15rem; color: var(--navy-900); }
.hub-facts__list { display: grid; gap: 0; margin: var(--space-4) 0 0; }
.hub-facts__list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.hub-facts__list dt { color: #3E4E6A; }
.hub-facts__list dd { margin: 0; font-weight: 700; color: var(--navy-900); text-align: end; }
.hub-facts__src { margin-top: var(--space-3); font-size: .88rem; color: #4A5A75; }
.hub-facts__src a { text-decoration: underline; }
@media (min-width: 760px) {
  .hub-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
  .hub-facts__list > div { display: grid; align-content: start; gap: 4px; padding: 0 0 0; border-top: 0; padding-inline-start: var(--space-4); border-inline-start: 1px solid var(--line); }
  .hub-facts__list > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .hub-facts__list dd { text-align: start; font-size: 1.12rem; }
}

.hub-group { display: grid; gap: var(--space-4); }
.hub-group__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); color: var(--navy-900); }
.hub-group__lead { color: #4A5A75; margin-top: 4px; }
.hub-group__list { display: grid; gap: var(--space-3); }
@media (min-width: 760px) {
  .hub-group { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
}
.hub-item {
  display: grid;
  gap: 4px;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid rgba(15, 63, 140, .10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 220ms cubic-bezier(.23, 1, .32, 1), transform 220ms cubic-bezier(.23, 1, .32, 1), border-color 200ms ease;
}
.hub-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(15, 63, 140, .22); }
.hub-item__name { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); line-height: 1.4; }
.hub-item__text { color: #4A5A75; line-height: 1.55; }
.hub-item__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 500; color: var(--red-cta); }
.hub-item__go svg { width: 18px; height: 18px; transition: transform 220ms cubic-bezier(.23, 1, .32, 1); }
.hub-item:hover .hub-item__go svg { transform: translateX(-4px); }
.hub-cta { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .guide-related__link, .hub-item, .guide-related__link > svg, .hub-item__go svg { transition: none; }
  .guide-related__link:hover, .hub-item:hover { transform: none; }
  .guide-related__link:hover > svg, .hub-item:hover .hub-item__go svg { transform: none; }
}

/* ================= Phones ================= */
@media (max-width: 479.98px) {
  .guide-hero { padding-block: var(--space-4) var(--space-5); }
  .guide-hero__lead { font-size: 1.02rem; }
  .guide-article { font-size: 1.02rem; }
  .guide-answer, .guide-note { padding: var(--space-4); }
  .guide-answer p { font-size: 1.06rem; }
  .guide-meta { gap: 4px 14px; font-size: .85rem; }
  .hub-item { padding: var(--space-4); }
}

/* ================= Home page teaser (index.html, section#guides) ================= */
.home-guides__list { display: grid; gap: var(--space-3); max-width: 960px; margin: 0 auto; }
@media (min-width: 760px) { .home-guides__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-guides__all { text-align: center; margin-top: var(--space-5); }
.home-guides__all a { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.home-guides .guide-related__link { height: 100%; }
/* the "read more" line at the end of some home FAQ answers */
.faq__guide a { font-weight: 500; }
