/* ===========================================================================
 * guides.css — דפי-המדריכים הציבוריים (/guides/*). נוצרים ע"י scripts/build-guides.mjs.
 *
 * מאז גל-האיחוד (02.08) זו **שכבה דקה מעל public-tools.css**: הצדף (topbar, hero,
 * cards, footer, טוקנים) מגיע משם — כאן רק טיפוגרפיית-המאמר ופס-ה-CTA של המדריכים.
 * נטען תמיד אחרי /brand/finly.css ו-/public-tools.css.
 * עומד ב-CSP `script-src 'self'` — אין JS בכלל.
 * =========================================================================== */

/* ── פתיח-מאמר (צנוע מה-hero הגדול של המחשבונים — כותרות-מאמר ארוכות) ── */
.g-hero { max-width: 860px; margin-inline: auto; padding: 44px 0 20px; }
.g-hero .eyebrow a { color: var(--blue); text-decoration: none; }
.g-hero .eyebrow a:hover { text-decoration: underline; }
.g-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.035em; }

/* ── גוף-המאמר: כרטיס .panel + טיפוגרפיה ── */
.g-article { max-width: 860px; margin: 0 auto 34px; padding: clamp(26px, 5vw, 54px); }
.g-article h2 { margin: 34px 0 10px; color: var(--ink); font-size: 1.4rem; letter-spacing: -.02em; }
.g-article h2:first-child { margin-top: 0; }
.g-article h3 { margin: 24px 0 8px; color: var(--ink-soft); font-size: 1.06rem; }
.g-article p { margin: 0 0 14px; }
.g-article ul, .g-article ol { margin: 0 0 16px; padding-inline-start: 1.35em; }
.g-article li { margin-bottom: 7px; }
.g-article li::marker { color: var(--teal); font-weight: 800; }
.g-article a { color: var(--blue); }
.g-article strong { color: var(--ink); }
.g-article code {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .92em;
}
.g-article hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

/* ── ניווט בין עמודי-הבנקים ── */
.g-banks { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px; }
.g-banks a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: .95rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.g-banks a:hover { border-color: rgba(8,196,206,.45); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,29,61,.09); }
.g-banks a:focus-visible { outline: 3px solid rgba(127,227,234,.7); outline-offset: 2px; }

/* ── פס-הסיום: דלת-המסמך. אותה שפה כהה של פאנל-התוצאה במחשבונים ── */
.g-cta {
  position: relative; overflow: hidden;
  max-width: 860px; margin: 0 auto 84px; padding: clamp(28px, 5vw, 44px);
  border-radius: 28px; border: 1px solid rgba(255,255,255,.08);
  color: white; background: linear-gradient(145deg, #06162e, #0b315c);
  text-align: center;
}
.g-cta::before {
  content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%;
  inset-inline-end: -90px; inset-block-start: -120px; background: rgba(127,227,234,.12);
}
.g-cta > * { position: relative; }
.g-cta h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.02em; }
.g-cta .g-sub { margin: 10px auto 0; max-width: 560px; color: rgba(255,255,255,.62); }
.g-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; margin-top: 22px; padding: 0 30px;
  border-radius: 999px; text-decoration: none; font-weight: 850; color: #04182e;
  background: linear-gradient(135deg, #72e5dd, #1bb7c2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.g-btn:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 15px 32px rgba(0,0,0,.18); }
/* שורת-הכנות צמודה ל-CTA — חוקת-המותג §8.2, עולה ויורדת איתו יחד. */
.g-honesty { margin: 13px 0 0; color: rgba(255,255,255,.55); font-size: .86rem; }
.g-alt { margin: 4px 0 0; color: rgba(255,255,255,.55); font-size: .9rem; }
.g-alt a { color: #80e3dc; }

@media (max-width: 560px) {
  .g-article { border-radius: 22px; }
  .g-cta { border-radius: 22px; margin-bottom: 56px; }
}
