/* TooLab.io content pages (templates/site/*): fonts, colors, top menu, footer, shared parts and load animations.
   The look follows chipil.co.il: white pages, a dark glass menu, a navy-to-blue hero, rounded white cards,
   a blue gradient for buttons and the closing band, and a dark footer.
   Page-specific styles live in home.css, about.css, faq.css, contact.css and blog.css next to this file. */

/* ---------- fonts (static/site/fonts, SIL Open Font License) ---------- */
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-hebrew-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-hebrew-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* ---------- colors and sizes (light is the default, like chipil.co.il) ---------- */
:root {
  --blue: #1a7cd8;
  --blue-dark: #156cbd;
  --blue-soft: #eaf1fe;
  --blue-line: #c7dbfa;
  --grad: linear-gradient(135deg, #1a7cd8 0%, #2d7bd3 100%);
  --grad-hero: linear-gradient(135deg, #0a2b52 0%, #155ba7 48%, #1a7cd8 100%);

  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --card: #ffffff;
  --line: #ececf0;
  --line-2: #dde2ea;
  --ink: #151515;
  --text: #465059;
  --muted: #66707a;
  --muted-2: #7d8791;
  --pass: #17a673;
  --warn: #b7791f;
  --fail: #d64545;
  --shadow-card: 0 22px 44px -26px rgba(16, 52, 100, 0.32);
  --shadow-lift: 0 30px 60px -28px rgba(10, 43, 82, 0.45);

  --nav-bg: rgba(15, 15, 15, 0.94);
  --foot-bg: #0d1116;

  --font: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 70px;
  color-scheme: light;
}
/* dark mode: the same layout on deep blue-grey (the switch is in the menu, saved as "td.theme") */
:root[data-theme="dark"] {
  --blue: #3d94ea;
  --blue-dark: #62aaf2;
  --blue-soft: rgba(61, 148, 234, 0.14);
  --blue-line: rgba(61, 148, 234, 0.5);
  --bg: #10151b;
  --bg-alt: #141a21;
  --card: #19212a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #f2f5f8;
  --text: #b8c3ce;
  --muted: #8994a1;
  --muted-2: #8994a1;
  --pass: #3fcf95;
  --warn: #f0b552;
  --fail: #ff7d78;
  --shadow-card: 0 22px 44px -24px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.75);
  --foot-bg: #0b0f13;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
[hidden] { display: none !important; }
img, svg { display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 500 15.5px/1 var(--font-head);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(0); }
/* blue gradient, the main button */
.btn-ox { background: var(--grad); color: #fff; box-shadow: 0 14px 26px -14px rgba(26, 124, 216, 0.75); }
.btn-ox:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(26, 124, 216, 0.85); }
/* white, on the blue hero and the closing band */
.btn-white { background: #fff; color: #0f4f93; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45); }
.btn-white:hover { color: #0a3f78; transform: translateY(-2px); }
/* outline, on the blue hero and the closing band */
.btn-glass { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); }
/* outline, on white */
.btn-line { border-color: var(--line-2); background: var(--card); color: var(--ink); }
.btn-line:hover { color: var(--blue); border-color: var(--blue-line); transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 11px; }

/* ---------- app tile (same look as the desktop icons) ---------- */
.tile {
  --tile: #47c6e8;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 30% 0%, color-mix(in oklab, var(--tile) 55%, white) 0%, transparent 60%),
    linear-gradient(160deg, var(--tile), color-mix(in oklab, var(--tile) 62%, #061020));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 18px -10px rgba(10, 30, 60, 0.55);
}
.tile .ic { width: 24px; height: 24px; }

/* ---------- top menu (dark glass in both modes) ---------- */
.sh {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sh-in {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  height: var(--header-h);
  margin-inline: auto;
}
.sh-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.sh-brand:hover { color: #fff; }
.sh-brand img { width: 32px; height: 32px; }
.sh-brand span { font: 700 20px/1 var(--font-head); letter-spacing: -0.01em; }
.sh-nav { flex: 1; display: flex; justify-content: center; }
.sh-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sh-links a {
  position: relative;
  display: block;
  padding: 9px 15px;
  border-radius: 10px;
  color: #e6e6e6;
  font: 500 15px/1.4 var(--font-head);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.sh-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.sh-links a[aria-current="page"] { color: #fff; }
.sh-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 20px;
  height: 3px;
  margin-left: -10px;
  border-radius: 3px;
  background: var(--grad);
}
.sh-actions { display: flex; align-items: center; gap: 8px; }
.sh-theme, .sh-burger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #cfd6de;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.sh-theme:hover, .sh-burger:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sh-theme svg, .sh-burger svg { width: 20px; height: 20px; }
.sh-theme .i-sun { display: none; }
:root[data-theme="dark"] .sh-theme .i-sun { display: block; }
:root[data-theme="dark"] .sh-theme .i-moon { display: none; }
.btn-nav {
  height: 44px;
  padding: 0 18px;
  border-color: rgba(96, 150, 255, 0.3);
  background: rgba(37, 99, 235, 0.16);
  color: #dbe7ff;
  font-size: 14.5px;
}
.btn-nav:hover { color: #fff; background: rgba(37, 99, 235, 0.3); border-color: rgba(120, 170, 255, 0.55); }
/* next to "TooLab": "Sign up" (blue) before signing in, the Google picture and "Dashboard" after */
.sh .btn-acct { height: 44px; padding: 0 18px; font-size: 14.5px; }
.sh .btn-acct-in { padding-inline-start: 8px; border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #e6e6e6; }
.sh .btn-acct-in:hover, .sh .btn-acct-in[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
/* Heebo sits a little high in a line-height: 1 box, so the text of the header buttons moves down to look centered */
.sh .btn-nav > span, .sh .btn-acct .acct-text { position: relative; top: 0.08em; }
.acct-pic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--grad); color: #fff; font: 700 13px/1 var(--font-head); }
.sh-burger { display: none; }
.sh-burger path { transition: transform 0.2s, opacity 0.2s; transform-origin: center; }
.sh.is-open .sh-burger .b1 { transform: translateY(5px) rotate(45deg); }
.sh.is-open .sh-burger .b2 { opacity: 0; }
.sh.is-open .sh-burger .b3 { transform: translateY(-5px) rotate(-45deg); }
/* Blog in the menu: the categories open under it (static/site/js/site.js). In the phone menu they are a list under Blog. */
.sh-drop { position: relative; }
.sh-links .sh-drop > a { padding-inline-end: 34px; }
.sh-links .sh-drop:hover > a, .sh-links .sh-drop.is-open > a { color: #fff; background: rgba(255, 255, 255, 0.07); }
.sh-links .sh-drop > a[aria-current="true"] { color: #fff; }
.sh-links .sh-drop > a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 20px; height: 3px; margin-left: -19.5px; border-radius: 3px; background: var(--grad); }
.sh-drop-btn { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 24px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #cfd6de; cursor: pointer; }
.sh-drop-btn:hover, .sh-drop.is-open .sh-drop-btn { color: #fff; }
.sh-drop-btn svg { width: 15px; height: 15px; transition: transform 0.2s; }
.sh-drop.is-open .sh-drop-btn svg { transform: rotate(180deg); }
.sh-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: none;
  width: 300px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #16191d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85);
  transform: translateX(-50%);
}
.sh-sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; } /* the mouse can move from Blog to the list */
.sh-drop.is-open .sh-sub, html:not(.js) .sh-drop:hover .sh-sub, html:not(.js) .sh-drop:focus-within .sh-sub { display: grid; gap: 2px; animation: sub-in 0.18s ease-out; }
@keyframes sub-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.sh-links .sh-sub a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; color: #fff; font: 600 15px/1.35 var(--font-head); }
.sh-links .sh-sub a span { color: #aab3bd; font: 400 13.5px/1.4 var(--font); }
.sh-links .sh-sub a[aria-current="page"] { background: rgba(26, 124, 216, 0.24); }
.sh-links .sh-sub a[aria-current="page"]::after { content: none; }
@media (max-width: 991px) {
  .sh-links .sh-drop > a { padding-inline-end: 12px; }
  .sh-links .sh-drop > a[aria-current]::after { left: auto; inset-inline-start: 0; top: 13px; bottom: 13px; width: 3px; height: auto; margin: 0; }
  .sh-drop-btn { display: none; }
  .sh-sub, .sh-drop.is-open .sh-sub, html:not(.js) .sh-drop:hover .sh-sub {
    position: static;
    display: grid;
    width: auto;
    margin: 0 0 6px 12px;
    padding: 0 0 0 8px;
    background: none;
    border: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
  }
  .sh-sub::before { content: none; }
  .sh-links .sh-sub a { padding: 10px 12px; color: #e6e6e6; font-weight: 500; }
  .sh-links .sh-sub a span { display: none; }
}

/* ---------- blue page hero (inner pages; the home page has its own, bigger one) ---------- */
.ph {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 0 92px;
  background: var(--grad-hero);
  color: #fff;
}
/* circuit lines fading out toward the bottom */
.ph::before, .cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../assets/circuit.svg") center top / 420px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.25));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.25));
  opacity: 0.9;
}
/* two soft lights that drift slowly */
.ph::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(420px 300px at 78% 20%, rgba(120, 190, 255, 0.28), transparent 70%),
    radial-gradient(380px 280px at 12% 90%, rgba(26, 124, 216, 0.45), transparent 70%);
  animation: hero-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-drift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }
.ph h1 { max-width: 20ch; color: #fff; font-size: clamp(34px, 4.8vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -0.022em; }
.ph .lead { text-wrap: pretty; max-width: 60ch; margin-top: 18px; color: rgba(255, 255, 255, 0.84); font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.7; }
.ph-center { text-align: center; }
.ph-center h1, .ph-center .lead { margin-inline: auto; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: rgba(255, 255, 255, 0.75); font: 500 14.5px/1.4 var(--font-head); text-decoration: none; }
.crumb:hover { color: #fff; }
.crumb svg { width: 16px; height: 16px; }

/* ---------- sections ---------- */
.sec { padding: 92px 0; background: var(--bg); }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-title { font-size: clamp(27px, 3.1vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.title-line { display: block; width: 52px; height: 4px; margin: 18px auto 0; border-radius: 4px; background: var(--grad); }
.sec-sub { margin-top: 18px; color: var(--muted); font-size: 17.5px; line-height: 1.7; text-wrap: balance; }
.sec-head.is-start { margin-inline: 0; text-align: start; }
.sec-head.is-start .title-line { margin-inline: 0; }
.sec-more { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- white cards and round icons ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
a.card { color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
:where(a).card { display: block; }
a.card:hover { color: inherit; border-color: var(--blue-line); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ic-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.ic-circle svg { width: 28px; height: 28px; }

/* ---------- article cards (home, blog, end of an article) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.post-grid > li { display: flex; }
.post-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; }
/* the test's own color stands in for a photo */
.post-art {
  --tile: #47c6e8;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 30% 10%, color-mix(in oklab, var(--tile) 55%, transparent), transparent 70%),
    url("../../assets/circuit.svg") center / 260px repeat,
    linear-gradient(150deg, color-mix(in oklab, var(--tile) 70%, #0a2b52), #0a2b52);
}
.post-art .tile { width: 72px; height: 72px; border-radius: 21px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 30px -14px rgba(0, 0, 0, 0.6); transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.post-art .tile .ic { width: 36px; height: 36px; }
.post-card:hover .post-art .tile { transform: scale(1.07) rotate(-3deg); }
/* the cover picture (cover_image, or the default one in blog_db.py) fills the art; the test's tile stays on top.
   With the article's own picture the tile moves to the corner. */
.post-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.post-art .tile { position: relative; }
.card .post-art.has-cover { place-items: end start; padding: 16px; }
.card .post-art.has-cover .tile { width: 46px; height: 46px; border-radius: 14px; }
.card .post-art.has-cover .tile .ic { width: 25px; height: 25px; }
a.card:hover .post-cover { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.post-tag { padding: 3px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font: 600 12.5px/1.5 var(--font-head); }
.post-title { color: var(--ink); font: 600 19px/1.35 var(--font-head); letter-spacing: -0.01em; }
.post-card:hover .post-title { color: var(--blue); }
.post-desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 6px; color: var(--muted-2); font-size: 13.5px; }

/* ---------- questions that open and close (home and FAQ) ---------- */
.acc { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color 0.25s, box-shadow 0.25s; }
.acc-item[open] { border-color: var(--blue-line); box-shadow: var(--shadow-card); }
.acc-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  color: var(--ink);
  font: 500 17px/1.45 var(--font-head);
  list-style: none;
  cursor: pointer;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--blue); }
.acc-q { flex: 1; }
/* round arrow that turns blue and flips when open */
.acc-ic {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  transition: transform 0.35s ease, background 0.35s, color 0.35s;
}
.acc-ic::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -70%) rotate(45deg);
}
.acc-item[open] .acc-ic { background: var(--grad); color: #fff; transform: rotate(180deg); }
.acc-body { overflow: hidden; }
.acc-body > div { padding: 0 22px 22px; color: var(--text); font-size: 16.5px; line-height: 1.75; max-width: 72ch; }
.acc-body p + p { margin-top: 10px; }

/* ---------- closing band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 90px 0;
  background: var(--grad);
  color: #fff;
  text-align: center;
}
.cta-band::before { opacity: 0.6; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.cta-band p { max-width: 56ch; margin: 14px auto 0; color: rgba(255, 255, 255, 0.88); font-size: 18px; text-wrap: balance; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- footer ---------- */
.sf { background: var(--foot-bg); color: #828e99; font-size: 14px; }
.sf-in {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr 1.1fr;
  gap: 40px;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 76px 0 52px;
}
.sf-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #fff; text-decoration: none; }
.sf-brand:hover { color: #fff; }
.sf-brand span { font: 700 20px/1 var(--font-head); }
.sf-about p { max-width: 34ch; color: #8a959f; line-height: 1.75; }
.sf-about .btn { margin-top: 22px; }
.sf-col h2 { position: relative; margin-bottom: 22px; padding-bottom: 12px; color: #fff; font-size: 15px; font-weight: 600; }
.sf-col h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--grad); }
.sf-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.sf-col li a { color: #8a959f; font-size: 14px; text-decoration: none; transition: color 0.15s; }
.sf-col li a:hover { color: #5aa9f5; }
.sf-col .sf-nums { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.sf-nums li { display: grid; gap: 2px; line-height: 1.35; }
.sf-nums b { color: #fff; font: 700 24px/1.2 var(--font-head); }
.sf-nums span { color: #77828d; font-size: 13.5px; }
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6b7580;
  font-size: 13px;
}

/* ---------- cookie notice (js/cookies.js) in the colors of these pages ---------- */
body .td-cookie { border-color: var(--line); background: var(--card); color: var(--ink); font-family: var(--font); box-shadow: var(--shadow-lift); }
body .td-cookie-text strong { font-family: var(--font-head); font-weight: 600; }
body .td-cookie-text p { color: var(--text); }
body .td-cookie-text a { color: var(--blue); }
body .td-cookie-btn { border-radius: 10px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 500; }
body .td-cookie-btn:hover { background: var(--blue-dark); }
body .td-cookie :focus-visible { outline-color: var(--blue); }

/* ---------- load animations (only with JavaScript on, never in the footer) ---------- */
/* first screen: items marked data-load come in one after another (style="--i: 2" sets the order) */
html.js [data-load] { opacity: 0; animation: fade-up 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* further down: items marked .reveal appear once they scroll into view (static/site/js/site.js) */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- smaller screens (same breakpoints as chipil.co.il) ---------- */
@media (max-width: 991px) {
  .sh-in { gap: 12px; }
  .sh-nav { flex: 0; }
  .sh-brand { margin-inline-end: auto; }
  .sh-burger { display: grid; }
  .sh-links {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: #121417;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
  }
  .sh.is-open .sh-links { display: flex; animation: menu-in 0.2s ease-out; }
  .sh-links a { padding: 13px 12px; font-size: 16.5px; }
  .sh-links a[aria-current="page"]::after { left: auto; inset-inline-start: 0; top: 13px; bottom: 13px; width: 3px; height: auto; margin: 0; }
  .sf-in { grid-template-columns: 1fr 1fr 1fr; }
  .sf-about { grid-column: 1 / -1; }
  .sec { padding: 72px 0; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 767px) {
  .sf-in { grid-template-columns: 1fr 1fr; padding-top: 56px; }
  .ph { padding: 56px 0 68px; }
  .sec-head { margin-bottom: 38px; }
  .cta-band { padding: 68px 0; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .sh-brand span { font-size: 18px; }
  .sh .btn-nav span { display: none; }
  .sh .btn-nav { width: 44px; padding: 0; }
  .sh .btn-acct .acct-text { display: none; }
  .sh .btn-acct { width: 44px; padding: 0; }
  /* everything in the header fits on a 375 px phone (before, the menu button went past the edge of the screen) */
  .sh-in { gap: 8px; }
  .sh-actions { gap: 4px; }
  .sh-theme, .sh-burger { width: 38px; }
  .sh .btn-nav, .sh .btn-acct { width: 40px; height: 40px; }
  .sec { padding: 58px 0; }
  .ph-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .post-art { aspect-ratio: 16 / 7; }
  .post-art .tile { width: 58px; height: 58px; border-radius: 17px; }
  .post-art .tile .ic { width: 30px; height: 30px; }
  .post-body { padding: 18px 20px 20px; }
}
@media (min-width: 576px) and (max-width: 599px) {
  /* signed in: "Dashboard" shows only the picture here too, so the header fits */
  .sh .btn-acct-in { width: 44px; padding: 0; }
  .sh .btn-acct-in .acct-text { display: none; }
}
@media (max-width: 360px) {
  /* only the light / dark switch goes; the accessibility button stays */
  #themeBtn { display: none; }
}
@media (max-width: 340px) {
  .sh-brand { gap: 7px; }
  .sh-brand span { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media print {
  .sh, .sf, .skip, .cta-band { display: none; }
}
