/* ==========================================================================
   Guide pages.

   These are plain HTML files, served straight off the disk and never touched
   by the app: that is the whole point of them. A search engine ranks a page,
   and every route in the app hands back the same index.html with the same
   title, so no amount of writing inside it would ever produce a second page.

   The stylesheet is deliberately self-contained. It carries the app's tokens
   and its font rather than importing them, because the app's built CSS has a
   hash in its filename that changes on every deploy and cannot be linked to.
   ========================================================================== */

@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/rubik-hebrew-400.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/rubik-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/rubik-hebrew-500.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/rubik-hebrew-700.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/rubik-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/rubik-hebrew-800.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --page: #f3efe5;
  --surface: #fffdf7;
  --surface-2: #faf7f1;
  --surface-3: #e6dfcd;
  --line: #e2dac9;
  --line-strong: #d3cab5;
  --ink: #332f29;
  --stone: #6d675b;
  --muted: #8c8577;
  --accent: #c2361f;
  --on-accent: #fffdf7;
  --accent-soft: #fbeae6;
  --accent-line: #eec8bf;
  --ok: #1c7a4d;
}

:root[data-theme='dark'] {
  --page: #191713;
  --surface: #221f1a;
  --surface-2: #1e1b17;
  --surface-3: #2b2822;
  --line: #2e2a23;
  --line-strong: #3a352c;
  --ink: #f0ebe0;
  --stone: #b3ab9c;
  --muted: #8c8577;
  --accent: #e0623c;
  --on-accent: #191713;
  --accent-soft: #2b201c;
  --accent-line: #4a332b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---------- the strip at the top, so the page belongs to the site --------- */

.g-top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.g-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; }

/* Copied value for value from .lp-mark and .lp-word in the app's landing.css.
   Anything drawn by eye here reads as a different company. */
.g-logo { display: flex; align-items: center; gap: 11px; flex: none; text-decoration: none; color: var(--ink); }
.g-logo .mark { position: relative; width: 34px; height: 32px; flex: none; }
.g-logo .mark i { position: absolute; display: block; width: 19px; height: 27px; border-radius: 6px; }
.g-logo .mark i:first-child { top: 3px; left: 0; background: var(--accent); transform: rotate(-12deg); }
.g-logo .mark i:last-child { top: 2px; left: 12px; background: var(--ink); border: 1.5px solid var(--page); }
/* the name is always Latin, and its last letter carries the brand colour */
.g-logo .name { font-size: 24px; font-weight: 800; letter-spacing: -.025em; direction: ltr; }
.g-logo .name b { color: var(--accent); font-weight: 800; }

.g-back { font-size: 14.5px; color: var(--stone); text-decoration: none; }
.g-back:hover { color: var(--accent); }

/* ---------- the article -------------------------------------------------- */

.wrap { max-width: 720px; margin-inline: auto; }
main.wrap { padding: 40px 22px 20px; }

.g-kicker { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 12px; }

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 16px;
}

.g-standfirst { font-size: 19px; line-height: 1.75; color: var(--stone); margin: 0 0 12px; }

.g-meta { font-size: 13.5px; color: var(--muted); padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }

h2 {
  font-size: clamp(21px, 4.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 800;
  margin: 46px 0 14px;
}

h3 { font-size: 18px; font-weight: 700; margin: 30px 0 8px; }

p { margin: 0 0 18px; }

a { color: var(--accent); }

ul, ol { margin: 0 0 20px; padding-inline-start: 22px; }
li { margin-bottom: 9px; }

strong { font-weight: 700; }

/* the one-line answer, straight after the question */
.g-answer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 34px;
}
.g-answer p:last-child { margin-bottom: 0; }

/* a number worth stopping on */
.g-range {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.g-range div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 17px;
}
.g-range .what { font-size: 15.5px; color: var(--ink); }
.g-range .pct { font-weight: 800; font-size: 16px; color: var(--accent); direction: ltr; white-space: nowrap; }

.g-note {
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 15.5px;
  color: var(--stone);
  margin: 0 0 26px;
}
.g-note p:last-child { margin-bottom: 0; }

.g-check { list-style: none; padding: 0; }
.g-check li { position: relative; padding-inline-start: 28px; }
.g-check li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--ok); font-weight: 800;
}

/* ---------- the quiet mention of the product at the end ------------------- */

.g-cta {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: 26px 24px;
  margin: 46px 0 10px;
}
.g-cta h2 { margin: 0 0 10px; font-size: 21px; }
.g-cta p { color: var(--stone); font-size: 16px; }
.g-btn {
  display: inline-block; margin-top: 6px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 26px; border-radius: 12px;
}
.g-btn:hover { filter: brightness(1.06); }

.g-foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 22px 46px;
  font-size: 13.5px;
  color: var(--muted);
}
.g-foot a { color: var(--stone); text-decoration: none; }
.g-foot a:hover { color: var(--accent); }
.g-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }

/* ---------- the list of guides ------------------------------------------- */

.g-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.g-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.g-card .t { display: block; font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.g-card .d { display: block; color: var(--stone); font-size: 15.5px; line-height: 1.7; margin-top: 8px; }
.g-card .m { display: block; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* The liability line. It has to be on every guide, but it is not something to
   read: no box, no dashes, just quiet type above the footer so it does not
   compete with the callouts that are actually part of the article. */
.g-fine {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 2px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 38px 0 0;
}
