/* SweetFrame website (sweetframe.org). One stylesheet, no JavaScript, Hebrew-first (RTL) with logical
   properties so the English pages mirror correctly. Colours: the SweetFrame logo (dark slate, orange,
   wood, sand); every text colour below is checked for WCAG 2.1 AA contrast on its background. */

@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/heebo-hebrew-wght-normal.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: 'Heebo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/heebo-latin-wght-normal.woff2') format('woff2');
  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;
}

:root {
  color-scheme: light;
  --bg: #FBF8F4;          /* warm paper */
  --surface: #FFFFFF;
  --sand-soft: #F3ECE4;   /* alternate sections */
  --sand: #D9CFC7;        /* logo sand: borders, rules */
  --line: #E6DCD1;
  --ink: #2F3842;         /* dark slate, 11.2:1 on --bg */
  --ink-soft: #4A5561;    /* 7.2:1 */
  --muted: #5F6A75;       /* 5.2:1 on --bg, 4.7:1 on --sand-soft */
  --orange: #F08C4A;      /* logo orange: fills and decoration only (never small text on light) */
  --orange-strong: #E57A34;
  --accent-ink: #A84C16;  /* links and small orange text, 5.4:1 on --bg */
  --wood: #8C6142;
  --wood-dark: #6E4A31;
  --night: #2F3842;       /* footer */
  --night-ink: #E9DFD4;   /* 9.1:1 on --night */
  --night-link: #F5B98F;  /* 6.9:1 on --night */
  --info-bg: #EEF3F7;
  --info-line: #9DB3C6;
  --warn-bg: #FFF4E8;
  --warn-line: #E8A06B;
  --focus: #A84C16;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(47, 56, 66, 0.06), 0 8px 24px rgba(47, 56, 66, 0.08);
  --shadow-lg: 0 2px 4px rgba(47, 56, 66, 0.08), 0 22px 48px rgba(47, 56, 66, 0.16);
  --wrap: 1120px;
  --gutter: 16px;
  --font: 'Heebo', 'Arial Hebrew', 'Noto Sans Hebrew', Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-wrap: break-word;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.08rem;
}

p,
ul,
ol,
dl,
table,
figure,
blockquote {
  margin: 0 0 1em;
}

ul,
ol {
  padding-inline-start: 1.4em;
}

li + li {
  margin-top: 0.3em;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
  color: #8A3C0E;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

strong,
b {
  font-weight: 700;
}

code,
kbd,
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* -- skip link ---------------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* -- header ------------------------------------------------------------------------------------- */

.site-header {
  background: rgba(251, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border-radius: 8px;
  /* the logo reads left to right in both languages */
  direction: ltr;
}

.brand-mark {
  width: auto;
  height: 40px;
}

.brand-word {
  width: auto;
  height: 26px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}

.site-nav a:hover {
  background: var(--sand-soft);
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  background: var(--sand-soft);
  box-shadow: inset 0 -2px 0 var(--orange);
  font-weight: 700;
}

.lang-switch {
  order: 3;
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--sand);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}

.lang-switch:hover {
  background: var(--sand-soft);
  color: var(--ink);
}

.site-nav {
  order: 2;
  margin-inline-start: auto;
}

@media (max-width: 719px) {
  .site-header .wrap {
    padding-block: 0.6rem 0.5rem;
  }

  .lang-switch {
    order: 1;
  }

  .site-nav {
    width: 100%;
    margin-inline-start: 0;
  }

  .site-nav ul {
    gap: 0.15rem;
    margin-inline: -0.55rem;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.98rem;
  }

  .brand-mark {
    height: 32px;
  }

  .brand-word {
    height: 21px;
  }
}

/* -- buttons ------------------------------------------------------------------------------------ */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: #1F2830;
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-strong);
  border-color: var(--orange-strong);
  color: #1F2830;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

/* -- hero --------------------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(2.5rem, 1rem + 4vw, 4.5rem);
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(240, 140, 74, 0.12), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(140, 97, 66, 0.08), transparent 70%);
}

.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38em;
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* -- the product frame around screenshots ------------------------------------------------------- */

.device {
  margin: 0;
}

.device-frame {
  position: relative;
  padding: clamp(8px, 1.6vw, 16px);
  border-radius: clamp(12px, 2vw, 20px);
  background:
    repeating-linear-gradient(97deg, rgba(255, 255, 255, 0.05) 0 3px, rgba(0, 0, 0, 0.04) 3px 7px),
    linear-gradient(160deg, #9A6B49 0%, var(--wood) 45%, var(--wood-dark) 100%);
  box-shadow: var(--shadow-lg);
}

.device-screen {
  padding: clamp(3px, 0.6vw, 6px);
  border-radius: clamp(5px, 0.9vw, 8px);
  background: #1D2329;
}

.device-screen img {
  width: 100%;
  border-radius: 3px;
  aspect-ratio: 1024 / 600;
  object-fit: cover;
}

.device figcaption,
.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.shot {
  margin: 0 0 1.25rem;
  max-width: 560px;
}

.shot img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* -- sections ----------------------------------------------------------------------------------- */

.section {
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem);
}

.section-alt {
  background: var(--sand-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44em;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* three steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps > li {
  counter-increment: step;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--orange);
  color: #1F2830;
  font-weight: 800;
  font-size: 1.25rem;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* feature cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card > picture img,
.card > img {
  width: 100%;
  aspect-ratio: 1024 / 600;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 1.2rem 1.3rem 1.3rem;
}

.card-body p:last-child,
.card-body ul:last-child {
  margin-bottom: 0;
}

.card-body p {
  color: var(--ink-soft);
}

.mini-list {
  display: grid;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cards + .mini-list {
  margin-top: 2.5rem;
}

@media (min-width: 680px) {
  .mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .mini-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mini-list li {
  margin: 0;
  padding-inline-start: 1.1rem;
  border-inline-start: 3px solid var(--orange);
}

.mini-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.mini-list span {
  color: var(--ink-soft);
}

/* image + text */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .split-flip > :first-child {
    order: 2;
  }
}

.split h2 {
  margin-bottom: 0.5em;
}

.checks {
  list-style: none;
  padding: 0;
}

.checks li {
  position: relative;
  padding-inline-start: 1.9rem;
}

.checks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.15rem;
  top: 0.5em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 3px solid var(--wood);
  border-bottom: 3px solid var(--wood);
  transform: rotate(-45deg);
}

.cards + p {
  margin-top: 1.5rem;
}

/* one column of text inside a section (the glucose note on the home pages) */
.prose > * {
  max-width: 50rem;
}

/* "what you need at home", under the three steps */
.needs {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.glucose-states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.glucose-states li {
  margin: 0;
}

.glucose-states img {
  border-radius: 12px;
  width: 100%;
  background: #3A434C;
}

.glucose-states span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

/* callouts */
.callout {
  border-inline-start: 5px solid var(--info-line);
  background: var(--info-bg);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  display: block;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.callout-warn {
  border-inline-start-color: var(--warn-line);
  background: var(--warn-bg);
}

.callout-quiet {
  border-inline-start-color: var(--sand);
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--sand);
}

/* FAQ */
.faq {
  max-width: 52em;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  list-style-position: inside;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq details > div {
  padding: 0.9rem 1.2rem 0.3rem;
  color: var(--ink-soft);
}

/* contact band */
.contact-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .contact-band {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}

.contact-band h2,
.doc .contact-band h2 {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0.3em;
}

.contact-band p {
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.contact-logo {
  max-width: min(300px, 70%);
  justify-self: center;
}

.contact-brand {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.contact-brand .contact-logo {
  width: min(260px, 80%);
  max-width: none;
}

.contact-band .powered {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.email-link {
  font-weight: 700;
  font-size: 1.15rem;
}

/* -- documents (legal pages, support, accessibility) --------------------------------------------- */

.page-head {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) 1.5rem;
  background: radial-gradient(70% 90% at 90% 0%, rgba(240, 140, 74, 0.1), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.page-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 44em;
  margin-bottom: 0.5rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.draft-note {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed var(--wood);
  color: var(--wood-dark);
  background: var(--surface);
  font-size: 0.9rem;
}

.doc {
  max-width: calc(48rem + 2 * var(--gutter));
  padding-block: 2rem 4rem;
}

/* the head of a document page lines up with its text column */
.page-head:has(+ .doc) .wrap {
  max-width: calc(48rem + 2 * var(--gutter));
}

.doc h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  margin-top: 2.4rem;
  padding-top: 0.3rem;
}

.doc h3 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
}

.doc li {
  padding-inline-start: 0.2em;
}

.summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem 0.4rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}

.summary-box h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.doc-toc {
  background: var(--sand-soft);
  border-radius: var(--radius);
  padding: 1rem 1.3rem 0.6rem;
  margin: 1.5rem 0 2rem;
}

.doc-toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  padding: 0;
}

.doc-toc ol {
  margin-bottom: 0.5rem;
  columns: 2 16rem;
  column-gap: 2rem;
}

.doc-toc li {
  break-inside: avoid;
}

.legal-quote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-inline-start: 5px solid var(--orange);
  background: var(--surface);
  border-radius: 10px;
  font-weight: 500;
}

.legal-quote p {
  margin-bottom: 0.5rem;
}

.legal-quote p:last-child {
  margin-bottom: 0;
}

/* tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}

caption {
  text-align: start;
  padding: 0.75rem 1rem 0.25rem;
  font-weight: 700;
  color: var(--ink);
}

th,
td {
  text-align: start;
  vertical-align: top;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--sand-soft);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 700;
}

.table-compact td,
.table-compact th {
  padding: 0.45rem 0.8rem;
}

/* Narrow screens: each row becomes a small card; the build adds data-label (the column header) to
   every body cell and ARIA table roles, so the table semantics survive display:block. */
@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td,
  .table-wrap caption {
    display: block;
    width: auto;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-wrap tbody tr {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .table-wrap tbody tr:last-child {
    border-bottom: 0;
  }

  .table-wrap tbody th,
  .table-wrap tbody td {
    padding: 0.1rem 0;
    border: 0;
  }

  .table-wrap tbody th {
    margin-bottom: 0.15rem;
  }

  .table-wrap td[data-label]::before {
    content: attr(data-label) ': ';
    font-weight: 700;
    color: var(--muted);
  }

  .table-wrap caption {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .table-compact tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.8rem;
    padding: 0.5rem 1rem;
  }

  .table-compact tbody th {
    margin: 0;
  }

  .table-compact td[data-label]::before {
    content: none;
  }
}

/* -- the guide ---------------------------------------------------------------------------------- */

.guide-layout {
  display: grid;
  gap: 2rem;
  padding-block: 2rem 4rem;
}

@media (min-width: 1000px) {
  .guide-layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .guide-toc {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.guide-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.8rem;
  font-size: 0.97rem;
}

.guide-toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.guide-toc ol {
  margin: 0;
  padding-inline-start: 1.3em;
}

.guide-toc li + li {
  margin-top: 0.25em;
}

.guide-toc a {
  color: var(--ink);
  text-decoration-color: var(--sand);
}

.guide-content {
  max-width: 50rem;
  min-width: 0;
}

.guide-section {
  padding-top: 0.5rem;
  margin-bottom: 2.75rem;
}

.guide-section > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
}

/* the title is one flex item, so a kept-together run inside it ("ב-Google Drive") cannot split it */
.h2-text {
  min-width: 0;
}

/* "where to start": three short routes at the top of the guide */
.roles {
  margin-top: 1.75rem;
}

.roles ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .roles ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.roles li,
.roles li + li {
  margin: 0;
}

.roles a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.roles a:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.roles strong {
  font-size: 1.08rem;
}

.roles span {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.roles .role-link {
  margin-top: auto;
  padding-top: 0.2rem;
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.guide-section h3 {
  margin-top: 1.6rem;
}

.num {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--orange);
  color: #1F2830;
  font-size: 1.05rem;
  font-weight: 800;
}

.who {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--sand-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.ways {
  margin: 1rem 0 1.25rem;
}

.ways details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.6rem;
}

.ways summary {
  cursor: pointer;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.ways details[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--sand-soft);
  border-radius: var(--radius) var(--radius) 0 0;
}

.ways details > div {
  padding: 0.9rem 1.1rem 0.3rem;
}

.steps-list {
  padding-inline-start: 1.6em;
}

.steps-list > li {
  padding-inline-start: 0.3em;
  margin-bottom: 0.45em;
}

.steps-list > li::marker {
  font-weight: 800;
  color: var(--wood-dark);
}

.tip-grid {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 720px) {
  .tip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.tip strong {
  display: block;
  margin-bottom: 0.2rem;
}

.tip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.ui {
  font-weight: 700;
}

.nw {
  white-space: nowrap;
}

.back-top {
  font-size: 0.92rem;
}

/* -- footer ------------------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: var(--night-ink);
  padding-block: 2.75rem 1.5rem;
  font-size: 0.98rem;
}

.site-footer a {
  color: var(--night-link);
}

.site-footer a:hover {
  color: #FFD9BD;
}

.site-footer :focus-visible {
  outline-color: var(--night-link);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.footer-brand p {
  margin-bottom: 0.6rem;
}

.footer-small {
  color: var(--night-ink);
  opacity: 1;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(233, 223, 212, 0.22);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

/* -- 404 ---------------------------------------------------------------------------------------- */

.notfound {
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  text-align: center;
}

.notfound img {
  margin: 0 auto 1.5rem;
  width: 180px;
}

.notfound .actions {
  justify-content: center;
}

/* -- motion and print --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-header nav,
  .skip-link,
  .guide-toc,
  .actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }

  .site-footer a {
    color: #000;
  }

  a {
    color: #000;
  }
}
