/* Self-hosted, same Persian typeface as the journal. Loaded only when used. */
@font-face { font-family: "Jornilo Mobile Persian"; src: url("../fonts/Vazirmatn-variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
/* The existing WordPress/desktop tree is deliberately untouched above 767px. */
.jm { display: none; }
@media (max-width: 767px) {
  body.jn-mobile-entry > .jn-header,
  body.jn-mobile-entry > .jn-footer,
  body.jn-mobile-entry > main,
  body.jn-mobile-entry > .jn-skip-link { display: none !important; }
  .jm { --jm-accent: #087f70; display: block; width: 100%; min-height: 100svh; color: var(--jn-ink); background: var(--jn-canvas); font-family: var(--jn-font-sans); -webkit-tap-highlight-color: transparent; }
  :root[data-theme="dark"] .jm { --jm-accent: #36e4c7; }
  .jm *, .jm *::before, .jm *::after { box-sizing: border-box; }
  .jm [hidden] { display: none !important; }
  .jm svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .jm button, .jm select { font: inherit; color: inherit; }
  .jm a, .jm button, .jm select { touch-action: manipulation; }
  .jm button { cursor: pointer; }
  .jm-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); background: var(--jn-header); border-bottom: 1px solid var(--jn-border); backdrop-filter: blur(20px); }
  .jm .jm-brand { flex-shrink: 0; font-family: var(--jn-font-sans); font-size: 29px; }
  .jm-brand .jn-brand__word { font-size: 29px; }
  .jm-brand .jn-brand__n { width: 23px; height: 33px; }
  .jm-brand img { max-width: 125px; max-height: 40px; width: auto; }
  .jm-header-actions { display: flex; align-items: center; gap: 8px; }
  .jm-login { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 750; }
  .jm-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border-radius: 15px; border: 1px solid var(--jn-border); background: var(--jn-surface); }
  .jm main { max-width: 520px; margin: auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) calc(108px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
  .jm-hero { padding: 32px 0 22px; scroll-margin-top: 100px; }
  .jm-eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; color: var(--jm-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
  .jm-eyebrow > span:first-child, .jm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jm-accent); flex: 0 0 auto; }
  .jm h1 { margin: 0; color: var(--jn-ink); font-size: clamp(34px, 9.4vw, 49px); font-weight: 800; letter-spacing: -.045em; line-height: 1.17; overflow-wrap: anywhere; }
  .jm h1 em { color: var(--jm-accent); font-style: normal; }
  .jm-intro { max-width: 330px; margin: 16px 0 22px; color: var(--jn-muted); font-size: 14px; line-height: 1.8; }
  .jm-primary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 13px 18px; border: 1px solid transparent; border-radius: 17px; background: #08d6b8; color: #042c28; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgb(8 214 184 / 10%); }
  .jm-primary:active, .jm-feature:active { transform: scale(.985); }
  .jm-platform { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: 11px; color: var(--jn-muted); }
  .jm-workspace { position: relative; padding: 18px; border: 1px solid var(--jn-border-strong); border-radius: 24px; background: radial-gradient(ellipse at 100% 0, rgb(8 214 184 / 10%), transparent 70%), var(--jn-surface); }
  .jm-workspace-head { display: flex; gap: 12px; align-items: center; }
  .jm-tile-icon { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border: 1px solid rgb(8 214 184 / 25%); border-radius: 14px; color: var(--jm-accent); background: rgb(8 214 184 / 8%); }
  .jm-overline { color: var(--jn-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
  .jm-workspace h2 { margin: 3px 0 0; font-size: 14px; line-height: 1.5; letter-spacing: -.02em; }
  .jm-flow { display: flex; align-items: center; justify-content: space-between; margin: 22px 10px 0; }
  .jm-flow > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--jn-border-strong); border-radius: 50%; background: var(--jn-canvas); color: var(--jn-muted); }
  .jm-flow > span:last-child { color: var(--jm-accent); background: rgb(8 214 184 / 10%); border-color: rgb(8 214 184 / 35%); }
  .jm-flow i { flex: 1; border-top: 1px dashed var(--jn-border-strong); margin: 0 10px; }
  .jm-flow-labels { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 18px; color: var(--jn-muted); font-size: 11px; }
  .jm-flow-labels span { flex: 1; text-align: center; }
  .jm-flow-labels span:first-child { text-align: start; padding-inline-start: 8px; }
  .jm-flow-labels span:last-child { text-align: end; padding-inline-end: 8px; }
  .jm-workspace-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding-top: 10px; border-top: 1px solid var(--jn-border); font-size: 12px; font-weight: 700; }
  .jm-workspace-link svg { width: 17px; }
  .jm-tools { margin-top: 28px; scroll-margin-top: 100px; }
  .jm-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
  .jm-section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
  .jm-section-head > span { flex-shrink: 0; color: var(--jn-muted); font: 10px monospace; direction: ltr; }
  .jm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .jm-feature { min-width: 0; padding: 16px 14px; border: 1px solid var(--jn-border); border-radius: 20px; background: var(--jn-surface); transition: transform .15s; }
  .jm-feature-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
  .jm-feature-icon { display: grid; place-items: center; width: 39px; height: 39px; color: var(--jm-accent); background: rgb(8 214 184 / 9%); border-radius: 12px; }
  .jm-feature--analytics .jm-feature-icon { color: #8c75e4; background: rgb(140 117 228 / 10%); }
  .jm-feature--psychology .jm-feature-icon { color: #ba7f21; background: rgb(186 127 33 / 10%); }
  .jm-feature--mentorship .jm-feature-icon { color: #4b95dc; background: rgb(75 149 220 / 10%); }
  .jm-feature-arrow { color: var(--jn-muted); }
  .jm-feature-arrow svg { width: 16px; height: 16px; transform: rotate(-45deg); }
  .jm-feature h3 { margin: 17px 0 4px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .jm-feature p { margin: 0; color: var(--jn-muted); font-size: 11px; line-height: 1.7; }
  .jm-help { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; margin-top: 18px; font-size: 12px; color: var(--jn-muted); }
  .jm-help strong { margin-inline-start: auto; font-weight: 650; color: var(--jn-ink); }
  .jm-help svg { width: 16px; }
  .jm-nav { position: fixed; z-index: 40; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--jn-border); background: var(--jn-header); backdrop-filter: blur(24px); box-shadow: 0 -8px 35px rgb(0 0 0 / 4%); }
  .jm-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; padding: 5px; border-radius: 16px; color: var(--jn-muted); font-size: 10px; font-weight: 650; text-align: center; overflow-wrap: anywhere; }
  .jm-nav a[aria-current] { color: var(--jm-accent); background: rgb(8 214 184 / 9%); }
  .jm-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 520px; max-height: 85dvh; margin: auto auto 0; overflow-y: auto; padding: 12px 22px calc(28px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--jn-border-strong); border-bottom: 0; border-radius: 28px 28px 0 0; background: var(--jn-surface); color: var(--jn-ink); overscroll-behavior: contain; }
  .jm-sheet::backdrop { background: rgb(2 8 18 / 65%); backdrop-filter: blur(5px); }
  .jm-sheet-handle { width: 34px; height: 4px; border-radius: 4px; margin: 0 auto 16px; background: var(--jn-border-strong); }
  .jm-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .jm-sheet h2 { margin: 0; font-size: 21px; }
  .jm-sheet h2:focus { outline: none; }
  .jm-detail-copy { margin: 0 0 24px; color: var(--jn-muted); font-size: 15px; line-height: 1.9; }
  .jm-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; border-bottom: 1px solid var(--jn-border); font-size: 14px; }
  .jm-setting select { max-width: 60%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--jn-border-strong); border-radius: 12px; background: var(--jn-canvas); font-size: 16px; }
  .jm-more-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; font-size: 13px; }
  .jm-more-links a { display: flex; align-items: center; min-height: 44px; }
  .jm-sheet-brand { margin: 15px 0 0; font-size: 11px; color: var(--jn-muted); }
  .jm[dir="rtl"] { font-family: "Jornilo Mobile Persian", Tahoma, sans-serif; letter-spacing: normal; }
  .jm[dir="rtl"] .jm-eyebrow, .jm[dir="rtl"] .jm-overline { font-size: 11px; }
  .jm[dir="rtl"] .jm-feature p, .jm[dir="rtl"] .jm-flow-labels { font-size: 12px; }
  .jm[dir="rtl"] h1 { line-height: 1.55; letter-spacing: -.025em; font-size: clamp(31px, 8.4vw, 44px); }
  .jm[dir="rtl"] .jm-eyebrow, .jm[dir="rtl"] .jm-overline { letter-spacing: 0; }
  .jm[dir="rtl"] .jm-primary > svg, .jm[dir="rtl"] .jm-workspace-link > svg, .jm[dir="rtl"] .jm-help > svg { transform: scaleX(-1); }
  .jm[dir="rtl"] .jm-feature-arrow svg { transform: rotate(-135deg); }
  body.jm-dialog-open { overflow: hidden; }
  body.admin-bar .jm-header { top: 46px; }
  @media (prefers-reduced-motion: reduce) { .jm * { scroll-behavior: auto !important; transition: none !important; } }
}
