/* ==========================================================================
   Document pages - the guides (/en/*.html, /he/*.html), the English guides hub (/en/) and the case
   study. The dark header and footer come from site.css; the title sits on a dark band, and the
   article itself is set on the off-white "paper" surface for long-form reading (Visual Design
   Bones: off-white report/document surfaces). All content is static HTML - nothing here needs JS.
   ========================================================================== */

.doc-shell { width: min(880px, calc(100% - 48px)); margin-inline: auto; }

.doc-hero {
  padding: calc(var(--header-h) + 56px) 0 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.breadcrumb { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; color: var(--muted); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-hero .kicker { margin-top: 28px; }
.doc-hero h1 {
  max-width: 860px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}
[dir="rtl"] .doc-hero h1 { letter-spacing: -0.02em; line-height: 1.12; }
.byline { margin: 0; color: var(--muted); font-size: 14px; }
.byline strong { color: var(--text-2); font-weight: 650; }

.paper-wrap { background: var(--bg); color: var(--text-dark); padding: 64px 0 96px; }
.article { width: min(760px, calc(100% - 32px)); margin-inline: auto; font-size: 18px; line-height: 1.75; }
.article > :first-child { margin-top: 0; }
.article p, .article li { color: #2f534d; }
.article h2 {
  margin: 56px 0 14px;
  color: var(--text-dark);
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.article h3 { margin: 28px 0 8px; color: var(--text-dark); font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
[dir="rtl"] .article h2, [dir="rtl"] .article h3 { letter-spacing: 0; }
.article ul, .article ol { padding-inline-start: 26px; }
.article li { margin: 8px 0; }
.article a { color: #135f47; text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--ink); }
.article code { font-family: var(--mono); font-size: 0.84em; background: var(--paper-2); padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }

/* The direct answer - first thing under the title, so a reader (or an AI assistant) gets it at once. */
.answer {
  margin: 0 0 44px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-inline-start: 3px solid var(--accent);
  color: var(--text-dark) !important;
  font-size: 20px;
  line-height: 1.6;
}
.answer-label {
  display: block;
  margin-bottom: 8px;
  color: #177b5c;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
[dir="rtl"] .answer-label { letter-spacing: 0.02em; }

/* Numbered method steps */
.method-steps { list-style: none; padding: 0 !important; counter-reset: step; }
.method-steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 18px 0 18px 0;
  padding-inline-start: 56px;
  border-top: 1px solid var(--line-light);
}
.method-steps > li:last-child { border-bottom: 1px solid var(--line-light); }
.method-steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 21px;
  color: #177b5c;
  font: 800 13px var(--mono);
}
.method-steps strong { color: var(--text-dark); }

/* Checklist - square boxes, print-friendly, purely visual (nothing is interactive). */
.checklist { list-style: none; padding: 0 !important; }
.checklist > li { position: relative; margin: 12px 0; padding-inline-start: 34px; }
.checklist > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 17px;
  height: 17px;
  border: 1.5px solid #177b5c;
  background: #fff;
}

.note-box {
  margin: 36px 0;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line-light);
}
.note-box h3 { margin-top: 0; }
.note-box p:last-child { margin-bottom: 0; }

.doc-video { margin: 24px 0 8px; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-light); }
.doc-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-caption { margin: 8px 0 0; color: var(--text-dark-2); font-size: 14px; }

.doc-faq h3 { margin-top: 26px; }
.doc-faq p { margin-top: 6px; }

.author-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 56px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line-light);
}
.author-mono {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--ink);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-family: var(--font);
}
.author-box p { margin: 0; font-size: 15px; line-height: 1.6; color: #3c5a55; }
.author-box strong { color: var(--text-dark); }

.doc-cta { margin-top: 56px; padding: 36px; background: var(--mint); color: var(--ink); }
.doc-cta h2 { margin: 0 0 10px; color: var(--ink); }
.doc-cta p { margin: 0; color: #2f534d; font-size: 16px; }
.doc-cta .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }
.article .doc-cta a { text-decoration: none; }
.article .doc-cta .button-primary { color: #fff; }
.article .doc-cta .text-link { color: var(--ink); border-bottom-color: #2f534d; }

.related { margin-top: 56px; }
.related h2 { margin-top: 0; font-size: 22px; }
.related ul { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.related li { margin: 0; }
.related a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line-light);
  color: var(--text-dark) !important;
  font-weight: 650;
  text-decoration: none !important;
}
.related a:hover { border-color: #177b5c; }
.related a span[aria-hidden] { color: #177b5c; }

.doc-updated { margin-top: 40px; color: var(--text-dark-2); font-size: 13px; }

/* Guides hub cards */
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 0; padding: 0 !important; list-style: none; }
.guide-cards li { margin: 0; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--accent);
  color: var(--text-dark) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-card:hover { transform: translateY(-2px); border-color: #177b5c; }
.guide-card .kicker { margin: 0; color: #177b5c; }
.guide-card strong { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.guide-card span.summary { color: #3c5a55; font-size: 15px; line-height: 1.6; }
.guide-card span.more { margin-top: auto; color: #135f47; font-size: 14px; font-weight: 720; }

/* /he/ only: the Hebrew landing doubles as the Hebrew guides hub - a light band, like the landing's
   comparison section. */
.guides-band { background: var(--bg-alt); color: var(--ink); }
.guides-band .kicker { color: #177b5c; }
.guides-band h2 { max-width: 760px; }
.guides-intro { max-width: 640px; margin: 18px 0 36px; color: var(--text-dark-2); font-size: 17px; }

@media (max-width: 780px) {
  .doc-shell { width: calc(100% - 32px); }
  .doc-hero { padding: calc(var(--header-h) + 36px) 0 44px; }
  .paper-wrap { padding: 44px 0 72px; }
  .article { font-size: 17px; }
  .answer { font-size: 18px; padding: 18px 20px; }
  .doc-cta { padding: 26px 22px; }
  .guide-cards { grid-template-columns: 1fr; }
  .method-steps > li { padding-inline-start: 44px; }
}
