/* ===========================================================================
   agentjob.io — خدمات الباحثين عن عمل
   Design system. Tokens are the owner-approved agentjob contract:
   agent deep teal #0f5c55, spark amber #e8a33d, warm paper surfaces,
   Readex Pro, Arabic RTL first. Do not redesign without an owner decision.
   =========================================================================== */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/ui/readex-ar.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/ui/readex-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Identity — fixed by contract */
  --agent: #0f5c55;
  --agent-strong: #0b4a44;
  --agent-soft: #e3f1ee;
  --on-agent: #ffffff;
  --spark: #e8a33d;
  --spark-soft: #fbf0dc;
  --spark-ink: #8a5a12;
  --surface: #fafaf7;
  --surface-raised: #ffffff;
  --surface-sunken: #f2f1ec;
  --line: #e7e5de;
  --line-strong: #80848b;
  --ink: #16181d;
  --ink-muted: #5d6169;
  --positive: #1f7a4d;
  --positive-soft: #e5f3ef;
  --danger: #b4412b;
  --danger-soft: #f8e6e1;

  /* Derived */
  /* 4.6:1 on --surface-raised, so 12px text still clears WCAG AA. */
  --ink-faint: #6b7079;
  --agent-line: rgba(15, 92, 85, 0.18);
  --deep: #0c3f3a;

  /* Type */
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm: a single 4px grid, exposed so spacing never gets invented inline */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px; --s10: 80px;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-hair: 0 1px 2px rgba(22, 24, 29, 0.05);
  --shadow-soft: 0 1px 2px rgba(22, 24, 29, 0.05), 0 6px 20px -8px rgba(22, 24, 29, 0.1);
  --shadow-float: 0 2px 4px rgba(22, 24, 29, 0.05), 0 24px 48px -24px rgba(12, 63, 58, 0.3);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--surface);
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.28; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.9375rem; color: var(--ink-muted); font-weight: 600; }
p { margin: 0; }
strong { font-weight: 600; }

.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem); color: var(--ink-muted); line-height: 1.85; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.875rem; line-height: 1.7; }
.tiny { font-size: 0.8125rem; line-height: 1.6; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.balance { text-wrap: balance; }

a { color: var(--agent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--agent-strong); }

:focus-visible {
  outline: 2px solid var(--agent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--agent-soft); color: var(--deep); }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.shell { min-block-size: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-inline-size: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-inline-size: 760px; }
.wrap.tight { max-inline-size: 520px; }
main { flex: 1; padding-block: var(--s7) var(--s10); }
.stack { display: grid; gap: var(--s4); }
.stack-lg { display: grid; gap: var(--s7); }
.stack-sm { display: grid; gap: var(--s2); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.grid { display: grid; gap: var(--s4); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grow { flex: 1; min-inline-size: 0; }
.hidden { display: none !important; }
hr.rule { border: 0; border-block-start: 1px solid var(--line); margin-block: var(--s5); }

/* ── Header ──────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-block-end: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: var(--s4); min-block-size: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); font-weight: 600; }
.brand:hover { color: var(--ink); }
.brand .mark {
  inline-size: 30px; block-size: 30px; border-radius: 9px; flex: none;
  background: var(--agent); color: var(--on-agent);
  display: grid; place-items: center; font-size: 0.9375rem; font-weight: 700;
  box-shadow: 0 2px 8px -2px rgba(15, 92, 85, 0.5);
}
.brand .word { font-size: 1.0625rem; letter-spacing: -0.015em; direction: ltr; }
.brand .word i { color: var(--agent); font-style: normal; }
.brand .sub { font-size: 0.8125rem; color: var(--ink-muted); font-weight: 400; border-inline-start: 1px solid var(--line); padding-inline-start: var(--s2); }
@media (max-width: 720px) { .brand .sub { display: none; } }

.nav { display: flex; gap: var(--s1); margin-inline-start: auto; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink-muted); font-size: 0.9375rem; font-weight: 500;
  padding: var(--s2) var(--s3); border-radius: var(--radius-pill); transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a:hover { background: var(--surface-sunken); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--agent-soft); color: var(--deep); font-weight: 600; }
/* A button inside the navigation keeps the button palette: `.nav a` is more
   specific than `.btn`, which once rendered the header CTA at 1.25:1. */
.nav a.btn { color: var(--on-agent); font-weight: 600; }
.nav a.btn:hover { background: var(--agent-strong); color: var(--on-agent); }
.nav a.btn.secondary { color: var(--ink); }
@media (max-width: 900px) { .nav a.opt { display: none; } }

/* App side navigation */
.app-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s7); align-items: start; }
@media (max-width: 960px) { .app-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
.sidenav { position: sticky; inset-block-start: 88px; display: grid; gap: var(--s1); }
@media (max-width: 960px) {
  .sidenav {
    position: static; grid-auto-flow: column; grid-auto-columns: max-content;
    overflow-x: auto; scrollbar-width: none; padding-block-end: var(--s2);
    border-block-end: 1px solid var(--line);
  }
  .sidenav::-webkit-scrollbar { display: none; }
}
.sidenav a {
  display: flex; align-items: center; gap: var(--s2); text-decoration: none;
  color: var(--ink-muted); font-size: 0.9375rem; font-weight: 500;
  padding: var(--s2) var(--s3); border-radius: var(--radius-sm); white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.sidenav a:hover { background: var(--surface-sunken); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--surface-raised); color: var(--deep); font-weight: 600; box-shadow: var(--shadow-hair); }
.sidenav a .ico { inline-size: 18px; block-size: 18px; flex: none; opacity: 0.75; }
.sidenav a[aria-current="page"] .ico { opacity: 1; }
.sidenav .group-label { font-size: 0.75rem; color: var(--ink-faint); font-weight: 600; padding: var(--s3) var(--s3) var(--s1); letter-spacing: 0.02em; }
@media (max-width: 960px) { .sidenav .group-label { display: none; } }

/* ── Surfaces ────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s5), 2.2vw, var(--s7));
  box-shadow: var(--shadow-hair);
}
.card.soft { background: var(--surface-sunken); border-color: transparent; box-shadow: none; }
.card.flat { box-shadow: none; }
.card.tinted { background: var(--agent-soft); border-color: var(--agent-line); }
.card.pad-sm { padding: var(--s4); }
.card.link { text-decoration: none; color: inherit; display: block; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.card.link:hover { box-shadow: var(--shadow-soft); border-color: var(--agent-line); transform: translateY(-2px); }

.section-head { display: grid; gap: var(--s1); margin-block-end: var(--s4); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2); align-self: start;
  font-size: 0.8125rem; font-weight: 600; color: var(--agent);
  background: var(--agent-soft); border-radius: var(--radius-pill); padding: var(--s1) var(--s3);
}
.eyebrow.spark { color: var(--spark-ink); background: var(--spark-soft); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  padding: 13px var(--s6); min-block-size: 46px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--agent); color: var(--on-agent);
  text-decoration: none; cursor: pointer;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.12s var(--ease);
  box-shadow: 0 1px 2px rgba(11, 74, 68, 0.2);
}
.btn:hover { background: var(--agent-strong); color: var(--on-agent); box-shadow: 0 4px 14px -4px rgba(11, 74, 68, 0.5); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.secondary:hover { background: var(--surface-sunken); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-muted); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-sunken); color: var(--ink); }
.btn.spark { background: var(--spark); color: #231504; box-shadow: 0 1px 2px rgba(138, 90, 18, 0.25); }
.btn.spark:hover { background: #d9942f; color: #231504; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn.sm { font-size: 0.875rem; padding: 8px var(--s4); min-block-size: 38px; }
.btn.lg { font-size: 1.0625rem; padding: 16px var(--s7); min-block-size: 54px; }
.btn.block { inline-size: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn .ico { inline-size: 18px; block-size: 18px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.field { display: grid; gap: var(--s2); }
.field > .label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field > .help { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.6; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="url"], input[type="date"], input[type="search"],
textarea, select {
  font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px var(--s3);
  min-block-size: 46px;
  inline-size: 100%;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--agent); box-shadow: 0 0 0 3px var(--agent-soft);
}
textarea { min-block-size: 132px; line-height: 1.8; resize: vertical; padding-block: var(--s3); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d6169' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left var(--s3) center;
  background-size: 11px;
  padding-inline-start: var(--s3);
  padding-inline-end: var(--s7);
}
html[dir="rtl"] select { background-position: left var(--s3) center; }

.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: 0.9375rem; line-height: 1.7; cursor: pointer; }
.check input { inline-size: 20px; block-size: 20px; margin-block-start: 5px; accent-color: var(--agent); flex: none; }

.seg { display: inline-flex; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-muted);
  padding: 8px var(--s4); border-radius: var(--radius-pill); min-block-size: 36px;
  display: grid; place-items: center; cursor: pointer; white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.seg input:checked + span { background: var(--surface-raised); color: var(--deep); box-shadow: var(--shadow-hair); }
.seg input:focus-visible + span { outline: 2px solid var(--agent); outline-offset: 2px; }

fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s3); }
legend { font-size: 0.875rem; font-weight: 600; padding: 0; margin-block-end: var(--s1); }

/* ── Indicators ──────────────────────────────────────────────────────────── */

.chip {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 0.8125rem; font-weight: 500; line-height: 20px;
  padding: 3px var(--s3); border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--ink);
}
.chip.ok { background: var(--positive-soft); color: var(--positive); }
.chip.warn { background: var(--spark-soft); color: var(--spark-ink); }
.chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.agent { background: var(--agent-soft); color: var(--deep); }
.chip.outline { background: transparent; border: 1px solid var(--line); color: var(--ink-muted); }

.notice {
  border-radius: var(--radius-md); padding: var(--s4) var(--s4);
  font-size: 0.9375rem; line-height: 1.75;
  background: var(--agent-soft); color: var(--deep);
  display: flex; gap: var(--s3); align-items: flex-start;
}
.notice.warn { background: var(--spark-soft); color: var(--spark-ink); }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--positive-soft); color: var(--positive); }
.notice .ico { inline-size: 20px; block-size: 20px; flex: none; margin-block-start: 2px; }

.stat { background: var(--surface-sunken); border-radius: var(--radius-md); padding: var(--s4); display: grid; gap: var(--s1); }
.stat .v { font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat .k { font-size: 0.8125rem; color: var(--ink-muted); }
.stat .d { font-size: 0.75rem; color: var(--ink-faint); }

/* Progress */
.meter { block-size: 8px; background: var(--surface-sunken); border-radius: var(--radius-pill); overflow: hidden; }
.meter > i { display: block; block-size: 100%; background: var(--agent); border-radius: var(--radius-pill); transition: inline-size 0.5s var(--ease); }
.meter.warn > i { background: var(--spark); }
.meter.bad > i { background: var(--danger); }

/* Score dial */
.dial { display: grid; place-items: center; gap: var(--s1); }
/* Standalone: the ring is also used outside .dial (the landing proof card),
   so it must not depend on an ancestor class. */
.ring {
  inline-size: 128px; block-size: 128px; border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--dial-color, var(--agent)) calc(var(--dial, 0) * 1%), var(--surface-sunken) 0);
}
.ring::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface-raised);
}
.ring > span { position: relative; z-index: 1; font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.ring > span small { font-size: 0.875rem; font-weight: 500; color: var(--ink-muted); }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
table { border-collapse: collapse; inline-size: 100%; font-size: 0.875rem; }
th, td { text-align: start; padding: var(--s3) var(--s4); border-block-end: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-muted); background: var(--surface-sunken); white-space: nowrap; font-size: 0.8125rem; }
tbody tr:last-child td { border-block-end: 0; }
tbody tr:hover { background: color-mix(in oklab, var(--surface-sunken) 55%, transparent); }

dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s5); margin: 0; }
dl.kv dt { color: var(--ink-muted); font-size: 0.875rem; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; font-size: 0.9375rem; }

/* ── Empty state ─────────────────────────────────────────────────────────── */

.empty { display: grid; gap: var(--s3); justify-items: center; text-align: center; padding: var(--s8) var(--s4); }
.empty .ico { inline-size: 44px; block-size: 44px; color: var(--ink-faint); }
.empty h3 { font-size: 1.0625rem; }
.empty p { color: var(--ink-muted); max-inline-size: 46ch; }

/* ── Output blocks ───────────────────────────────────────────────────────── */

.output {
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--surface-sunken); border-radius: var(--radius-md);
  padding: var(--s5); font-size: 0.9375rem; line-height: 1.95;
  border-inline-start: 3px solid var(--agent);
}
.bullets { margin: 0; padding-inline-start: var(--s5); display: grid; gap: var(--s2); }
.bullets li { line-height: 1.8; }
.bullets.plain { list-style: none; padding-inline-start: 0; }
.bullets.plain li { display: flex; gap: var(--s2); align-items: flex-start; }
.bullets.plain li::before {
  content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%;
  background: var(--agent); flex: none; margin-block-start: 11px;
}
.bullets.check li::before {
  content: "✓"; inline-size: auto; block-size: auto; background: none; color: var(--positive);
  font-weight: 700; margin-block-start: 0;
}
.bullets.cross li::before {
  content: "✕"; inline-size: auto; block-size: auto; background: none; color: var(--danger);
  font-weight: 700; margin-block-start: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer { border-block-start: 1px solid var(--line); background: var(--surface-raised); padding-block: var(--s7); }
.footer .cols { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer h3.footer-col { font-size: 0.9375rem; font-weight: 600; color: var(--ink-muted); margin-block-end: var(--s2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer a { color: var(--ink-muted); text-decoration: none; font-size: 0.9375rem; }
.footer a:hover { color: var(--agent); text-decoration: underline; }
.footer .legal { margin-block-start: var(--s6); padding-block-start: var(--s5); border-block-start: 1px solid var(--line); color: var(--ink-faint); font-size: 0.8125rem; line-height: 1.8; }

/* ── Utilities ───────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-block-start: -60px; inset-inline-start: var(--s4); z-index: 100;
  background: var(--agent); color: var(--on-agent); padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm); text-decoration: none;
  transition: inset-block-start 0.2s var(--ease);
}
.skip:focus { inset-block-start: var(--s3); color: var(--on-agent); }

/* Spinner used by the submit-state enhancement in app.js */
.spin {
  inline-size: 15px; block-size: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-block-start-color: transparent;
  display: inline-block; animation: spin 0.7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The side navigation turns into a horizontal scroller on small screens.
   A soft edge mask is the only hint that there is more to the inline-start,
   since the scrollbar itself is hidden. */
@media (max-width: 960px) {
  .sidenav {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
}
