/* Steady Path Careers, design upgrade (r17). Loaded only on marketing pages, after path.css. /start/ and /portal/ never load it.
   Rules: every effect has a still fallback; motion only runs with html.motion (set by path.js) and prefers-reduced-motion: no-preference. */

/* ---------- 1 + 2. Hero stage: the road and the live swipe stack ---------- */
.phero-art.stage { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 64%); align-items: start; }
.stage .hero-svg { grid-column: 1 / -1; grid-row: 1; }
.stage .me { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 46% 0 0; position: relative; z-index: 3; display: grid; justify-items: center; gap: 10px; }
.stage .hero-sw { grid-column: 2; grid-row: 2; margin: -47% 0 0; position: relative; z-index: 2; width: 100%; max-width: 340px; justify-self: end; }
.me-ph { position: relative; width: 150px; }
.me-ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 20px 20px; border: 4px solid var(--bdx-ffffff); box-shadow: 0 0 0 3px var(--gold), 0 18px 36px rgba(16, 33, 58, .28); background: var(--sky); }
.me figcaption { max-width: 190px; background: var(--surface); border-radius: 14px; padding: 8px 10px; text-align: center; box-shadow: 0 8px 20px rgba(16, 33, 58, .14); line-height: 1.3; }
.me figcaption b { display: block; color: var(--midnight); font-size: 15px; }
.me figcaption span { display: block; color: var(--ink2); font-size: 13.5px; }
.me-play { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px 8px 10px; border: 0; border-radius: 99px; background: var(--midnight-fill); color: var(--cream); font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 20px rgba(16, 33, 58, .3); }
.me-play svg { color: var(--dawn); flex: none; }
.me-play[hidden] { display: none; }
.me-play:hover { background: var(--navy-fill); }
.me-play:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.me.has-play figcaption { margin-top: 14px; }

/* Welcome video card, above "New in your portal". Hidden until r17.js finds the video (it adds .has-play). */
.welcome { display: none; position: relative; z-index: 3; margin: -36px 0 18px; }
.welcome.has-play { display: block; }
.welcome.has-play + .new { margin-top: 0; }
.wv { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; gap: 18px; width: 100%; max-width: 720px; margin: 0 auto; padding: 12px 18px 12px 12px; border: 1px solid rgba(var(--tint-rgb), .12); border-radius: 20px; background: var(--surface); color: var(--midnight); text-align: left; font: inherit; cursor: pointer; box-shadow: 0 14px 34px rgba(16, 33, 58, .14); }
.wv[hidden] { display: none; }
.wv:hover { border-color: var(--gold); }
.wv:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wv-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--midnight-fill); }
.wv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wv-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%; background: var(--midnight-fill); color: var(--dawn); box-shadow: 0 6px 18px rgba(16, 33, 58, .35); }
.wv-play svg { margin-left: 3px; }
.wv-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(16, 33, 58, .82); color: #fff; font-size: 13px; font-weight: 700; }
.wv-txt { display: grid; gap: 4px; min-width: 0; }
.wv-k { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--txx-8a6d12); }
.wv-h { font: 800 21px/1.2 var(--display); color: var(--midnight); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.wv-p { font-size: 16px; line-height: 1.4; color: var(--ink2); }
@media (max-width: 560px) {
  .wv { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px 10px 14px; }
  .wv-txt { padding: 0 6px; }
}
@media print { .welcome { display: none !important; } }

/* swipe stack in the hero */
.hero-sw .sw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.hero-sw .sw-tag { margin: 0; }
.stage .hide-stage { display: none; }
.hero-sw .sw-help { text-align: center; font-size: 15px; color: var(--ink2); margin: 10px 0 0; }
.hero-sw .sw-stack { height: 300px; }
.hero-sw .sw-card { padding: 20px 20px 18px; gap: 8px; }
.hero-sw .sw-card .t { font-size: 22px; padding-right: 64px; }
.hero-sw .sw-card .pay { font-size: 20px; }
.hero-sw .sw-card .why { font-size: 15.5px; }
.hero-sw .sw-done { padding: 22px; }
.hero-sw .sw-done b { font-size: 21px; line-height: 1.25; }
.hero-sw .sw-done-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-sw .sw-done .btn { align-self: auto; }
.hero-sw .sw-done:focus { outline: none; }
.hero-sw .sw-done:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.hero-sw .sw-btns { gap: 12px; margin-top: 28px; }
.hero-sw .sw-btns button { width: auto; height: auto; min-height: 52px; min-width: 120px; border-radius: 99px; padding: 10px 20px 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 17px; }
.hero-sw .sw-btns svg { width: 22px; height: 22px; }
.hero-sw .sw-btns button:disabled { opacity: .5; cursor: default; transform: none; }
.hero-sw .sw-status { min-height: 48px; font-size: 15px; margin-top: 6px; background: rgba(var(--wash-rgb), .6); border-radius: 12px; padding: 0 8px; }
.hero-sw .sw-status:empty { background: transparent; }
.sw-card.nudge { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1) !important; }

@media (max-width: 760px) {
  .phero-art.stage { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .stage .me { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; margin: 0 0 -6px 2px; display: flex; align-items: flex-end; gap: 10px; }
  .me-ph { width: 96px; flex: none; }
  .me figcaption { min-width: 0; max-width: 220px; text-align: left; padding: 7px 11px; margin-bottom: 8px; }
  .me figcaption b { font-size: 15px; }
  .me figcaption span { font-size: 14px; }
  .me-play { left: auto; right: -12px; bottom: 4px; transform: none; padding: 0; width: 44px; justify-content: center; }
  .me-play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .me.has-play figcaption { margin-top: 0; }
  .stage .hero-sw { grid-column: 1; grid-row: 2; margin: 22px auto 0; max-width: 400px; justify-self: center; }
  .hero-sw .sw-stack { height: 280px; }
}
@media (max-width: 360px) { .hero-sw .sw-stack { height: 320px; } }

/* ---------- 1. Welcome video modal ---------- */
.vmodal { width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--midnight-fill); color: var(--cream); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.vmodal::backdrop { background: rgba(16, 33, 58, .82); }
.vm-in { padding: 14px 14px 16px; }
.vm-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 10px 6px; }
.vm-hd h2 { margin: 0; font: 800 18px/1.25 var(--display); color: var(--cream); }
.vm-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(251, 246, 238, .12); color: var(--cream); display: grid; place-items: center; }
.vm-x:hover { background: rgba(251, 246, 238, .2); }
.vmodal :focus-visible { outline: 3px solid var(--dawn); outline-offset: 2px; }
.vm-v { border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.vm-v video { display: block; width: 100%; height: 100%; }
.vm-note { margin: 10px 6px 0; font-size: 14px; color: #C4D0E0; }

/* ---------- 3. Before and after resume slider ---------- */
.rs { background: var(--surface); border: 1px solid rgba(var(--tint-rgb), .12); border-radius: 24px; padding: 22px; box-shadow: 0 18px 40px rgba(16, 33, 58, .1); max-width: 880px; }
.rs-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.rs-tabs { display: inline-flex; background: var(--sunk); border-radius: 14px; padding: 4px; gap: 4px; }
.rs-tabs button { border: 0; background: transparent; min-height: 44px; min-width: 76px; padding: 8px 16px; border-radius: 10px; font-weight: 800; font-size: 16px; color: var(--ink2); }
.rs-tabs button[aria-selected="true"] { background: var(--midnight-fill); color: var(--cream); }
.rs-tabs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.rs-tag { display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; color: var(--txx-6f5300); background: var(--gold-soft); border-radius: 99px; padding: 5px 12px; }
.rs-post { display: grid; gap: 2px; background: var(--cream-fill); border: 1px dashed rgba(var(--tint-rgb), .3); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.rs-post .k { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.rs-post b { font-size: 18px; color: var(--midnight); }
.rs-post > span:last-child { font-size: 16px; color: var(--ink2); }
.rs-frame { --p: 50%; position: relative; display: grid; border-radius: 16px; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.rs-side { grid-area: 1 / 1; padding: 46px 22px 24px; min-height: 170px; display: flex; flex-direction: column; justify-content: center; }
.rs-side p { margin: 0; font-size: 19px; line-height: 1.45; }
.rs-before { background: var(--bgx-efebe3); color: var(--ink2); }
.rs-before p { color: var(--txx-3d4657); }
.rs-after { background: linear-gradient(135deg, var(--midnight-fill), var(--navy-fill)); color: #fff; clip-path: inset(0 0 0 var(--p)); }
.rs-after p { color: #fff; font-weight: 600; }
.rs-lbl { position: absolute; top: 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; }
.rs-before .rs-lbl { left: 14px; background: var(--surface); color: var(--ink2); }
.rs-after .rs-lbl { right: 14px; background: var(--gold); color: #10213A; }
.rs-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 4px; margin-left: -2px; background: var(--gold); pointer-events: none; }
.rs-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 16px rgba(16, 33, 58, .3); }
.rs-handle span::before, .rs-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; margin-top: -7px; }
.rs-handle span::before { left: 6px; border-right: 9px solid var(--midnight); border-left: 0; }
.rs-handle span::after { right: 6px; border-left: 9px solid var(--midnight); border-right: 0; }
.rs-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.rs-frame:focus-within { outline: 3px solid var(--midnight); outline-offset: 3px; }
.rs-foot { margin: 14px 0 0; font-size: 16px; color: var(--ink2); }
@media (max-width: 760px) {
  .rs { padding: 16px; border-radius: 20px; }
  .rs-side { padding: 44px 16px 20px; min-height: 200px; }
  .rs-side p { font-size: 17px; }
}

/* ---------- 4. Trust: how every job is checked (founder card no longer used on the home page) ---------- */
.checks { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.checks li { display: flex; flex-direction: column; gap: 6px; background: rgba(var(--wash-rgb), .08); border: 1px solid rgba(251, 246, 238, .2); border-radius: 18px; padding: 18px 16px; }
.checks .ck { width: 32px; height: 32px; margin-bottom: 4px; }
.checks b { color: #fff; font-size: 17px; line-height: 1.3; }
.checks span { color: #DCE6F0; font-size: 16px; line-height: 1.45; }
.fcard { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: center; background: var(--cream-fill); color: var(--ink); border-radius: 26px; padding: 24px; max-width: 880px; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
.fcard-ph img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 642; object-fit: cover; border-radius: 18px; }
.mk .fcard h3 { color: var(--midnight); font-size: 22px; margin: 0 0 8px; }
.mk .fcard p { color: var(--ink); margin: 0 0 10px; }
.fcard .fquote { margin: 0 0 12px; font: italic 400 clamp(19px, 2.1vw, 22px)/1.5 var(--serif); color: var(--midnight); }
.fcard .fmeta b { color: var(--midnight); }
.fcard .fmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; font-weight: 700; color: var(--ink2); }
.mk .dark .fcard a { color: var(--navy); font-weight: 800; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.mk .dark .fcard :focus-visible { outline-color: var(--midnight); }
@media (max-width: 1000px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .checks li:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .checks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .checks li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .checks .ck { grid-row: span 2; margin: 0; }
  .fcard { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .fcard-ph { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-card.nudge { transition: none !important; }
}
@media print {
  .me-play, .vmodal, .sw-btns, .sw-status, .sw-help, .rs-handle, .rs-tabs { display: none !important; }
  .rs-after { clip-path: none !important; position: static; }
  .rs-frame { display: block; }
  .hero-sw { margin: 20px 0 0 !important; }
}

/* ======================= Tier 2 ======================= */

/* ---------- 6. The path comes alive: "how it works" stops light up, and a slim progress line ---------- */
.road .n .ri { position: absolute; right: -12px; top: -10px; width: 32px; height: 32px; padding: 5px; border-radius: 50%; background: var(--surface); box-shadow: 0 4px 10px rgba(16, 33, 58, .18); fill: none; stroke: var(--midnight); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.road .n { transition: background-color .45s, color .45s, box-shadow .45s; }
.road li.lit .n { background: var(--gold); color: #10213A; box-shadow: 0 0 0 6px var(--b, var(--cream)), 0 0 0 10px rgba(201, 162, 39, .28); }
.road .ri .ia { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .motion .road[data-stops].armed li:not(.lit) .ri { opacity: 0; transform: scale(.4); }
  .motion .road[data-stops].armed .ri { transition: opacity .35s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
  .motion .road[data-stops].armed li:not(.lit) .ri .ia { stroke-dashoffset: 1; }
  .motion .road[data-stops].armed li.lit .ri .ia { animation: draw .8s .25s cubic-bezier(.4, .1, .2, 1) both; }
  .motion .road[data-stops].armed li.lit .ri .ib { animation: riSlide 1.4s .2s cubic-bezier(.5, 0, .3, 1) 1; }
  .motion .road[data-stops].armed li.lit .ri .ic2 { transform-box: fill-box; transform-origin: 20% 100%; animation: pop .55s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
}
@keyframes riSlide { 0%, 100% { transform: none; } 45%, 60% { transform: translateX(3px) rotate(6deg); } }
.sp-prog { position: fixed; top: 0; right: 0; width: 4px; height: 100vh; z-index: 40; pointer-events: none; background: rgba(var(--tint-rgb), .08); }
.sp-prog i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--gold), #D9783F); transform-origin: top; transform: scaleY(0); }
@media print { .sp-prog { display: none; } }

/* ---------- 7. Micro-interactions (hover only on devices that hover; nothing moves with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mk .btn.line:hover, .mk .btn:not(.gold):not(.line):hover { transform: translateY(-2px); }
  .mk .btn.line:active, .mk .btn:not(.gold):not(.line):active { transform: translateY(1px) scale(.98); }
  .hero-sw .sw-btns button:active { transform: scale(.95); }
  .rs-tabs button { transition: background-color .2s, color .2s, transform .15s; }
  .rs-tabs button:active { transform: scale(.96); }
  @media (hover: hover) {
    .mk .trio .card, .mk .fit2 .card, .mk .kfacts div, .checks li, .mk .rcard, .fcard { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
    .mk .trio .card:hover, .mk .fit2 .card:hover, .mk .kfacts div:hover, .mk .rcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 33, 58, .14); }
    .checks li:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .22); }
    .fieldgrid a svg { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
    .fieldgrid a:hover svg { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
  }
  /* check marks draw themselves when they come into view (r17.js marks them; without it they are simply there) */
  .ckdraw:not(.live) .ckp { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .ckdraw.live .ckp { stroke-dasharray: 1; animation: draw .7s cubic-bezier(.4, .1, .2, 1) both; }
  .ckdraw.live > :nth-child(2) .ckp { animation-delay: .1s; } .ckdraw.live > :nth-child(3) .ckp { animation-delay: .2s; }
  .ckdraw.live > :nth-child(4) .ckp { animation-delay: .3s; } .ckdraw.live > :nth-child(5) .ckp { animation-delay: .4s; } .ckdraw.live > :nth-child(n+6) .ckp { animation-delay: .5s; }
  /* one soft gold shimmer on the hero "Start free", about 8 seconds in. Never repeats. */
  .mk .btn.shimmer { position: relative; overflow: hidden; }
  .mk .btn.shimmer::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; background: linear-gradient(100deg, rgba(var(--wash-rgb), 0), rgba(255, 248, 220, .75), rgba(var(--wash-rgb), 0)); transform: skewX(-18deg); animation: shimmer 1.1s cubic-bezier(.4, 0, .2, 1) 1 both; pointer-events: none; }
}
@keyframes shimmer { to { left: 120%; } }

/* ---------- 8. Page transitions between marketing pages (plain navigation where unsupported or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vtOut .18s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vtIn .26s cubic-bezier(0, 0, .2, 1) both; }
  .mk .topbar { view-transition-name: sp-topbar; }
  ::view-transition-group(sp-topbar) { animation-duration: 0s; }
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 9. Sticky action bar on phones ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: rgba(16, 33, 58, .96); box-shadow: 0 -10px 30px rgba(16, 33, 58, .25); transform: translateY(110%); visibility: hidden; }
.mbar.on { transform: none; visibility: visible; }
.mbar .btn { flex: 1; min-height: 48px; font-size: 16px; padding: 10px 14px; }
.mk .mbar .btn.gold { box-shadow: none; }
.mk .mbar .btn.line { color: var(--cream); border-color: rgba(251, 246, 238, .6); }
.mbar .btn svg { width: 20px; height: 20px; flex: none; }
.mk .mbar :focus-visible { outline-color: var(--dawn); }
@media (max-width: 760px) { .mbar { display: flex; } }
@media (prefers-reduced-motion: no-preference) { .mbar { transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; } .mbar.on { transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; } }
@media print { .mbar { display: none !important; } }

/* ---------- 10. Visual depth: paper grain on the light sections, and one night section with a moon ---------- */
.mk .sec:not(.dark) { background-image: url("/img/grain.png"), linear-gradient(180deg, var(--a, var(--cream-fill)), var(--b, var(--cream-fill))); background-size: 96px 96px, auto; }
.night .moon { position: absolute; top: 6px; right: max(0px, calc((100% - 1100px) / 2 - 40px)); width: min(340px, 52vw); height: auto; z-index: 1; pointer-events: none; }
.night > .wrap { position: relative; z-index: 2; }
@media (max-width: 1000px) { .night { padding-top: 140px; } .night .moon { top: 4px; right: 8px; width: 200px; } }
@media (max-width: 760px) { .night { padding-top: 128px; } .night .moon { top: 4px; right: 0; width: 170px; opacity: .9; } }
@media print { .night .moon { display: none; } .mk .sec:not(.dark) { background-image: none; } }

/* ---------- 12. Tidy footer ---------- */
.foot .wrap { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 14px 30px; }
.foot nav { justify-content: flex-end; }
.foot .where { grid-column: 1 / -1; border-top: 1px solid rgba(251, 246, 238, .14); padding-top: 14px; margin: 4px 0 0; }
@media (max-width: 900px) { .foot .wrap { grid-template-columns: minmax(0, 1fr); } .foot nav { justify-content: flex-start; margin-left: -8px; } }
body.has-mbar .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* Narrow screens: a small photo beside the hero kicker, so a face is on the first screen. Fixed size, so nothing shifts. */
.kick-ph { display: none; }
@media (max-width: 760px) {
  .phero .kicker { display: flex; align-items: center; gap: 12px; }
  .kick-ph { display: block; flex: none; width: 56px; height: 56px; }
  .kick-ph img { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--bdx-ffffff); box-shadow: 0 0 0 2px var(--gold); }
}

/* WCAG 2.2 2.4.11: keep keyboard focus clear of the phone bar */
@media (max-width:760px){html{scroll-padding-bottom:84px}}

/* r19a: the desktop top bar holds eight links (Free tools added), so links and the right side sit a little tighter above 1100px. */
@media (min-width: 1101px) {
  .mk .topbar { gap: 10px; }
  .mk .topbar .links { margin-left: 0; }
  .mk .topbar .links a { padding-left: 6px; padding-right: 6px; font-size: 14px; }
  body.mk .topbar .links a { padding-left: 4px; padding-right: 4px; } /* r30: room for the theme button */
  .mk .phero .topbar .right { gap: 6px; font-size: 14px; }
  .mk .phero .topbar .right .btn { padding: 9px 14px; font-size: 14px; }
  .mk .foot nav a { padding: 0 6px; }
}

/* r24: inside the installed app (standalone), public pages hide the "Get the app" link */
@media (display-mode: standalone) { .mk .foot nav a[href="/app/"] { display: none; } }
