/* ===========================================================================
   Julius Career Map — page shell styles (optional)
   ---------------------------------------------------------------------------
   Chrome ported from the Julius career-map app: sticky site header, page
   title, intro container, "Get started" card, and the discover list.

   Loaded only by the standalone page. career-map.css owns the widget itself
   and declares the design tokens on .jcm-shell, so this file consumes those
   tokens and must load AFTER it.
   =========================================================================== */

/* Page background, matching the app's body. Scoped to a class so the shell
   never restyles a host page it was not meant to touch. */
/* No rubber-band at the page's ends. A Mac trackpad drags the whole page,
   pinned header included, past the top and shows the gray background above
   it, so the header looked as if it scrolled. Scoped to pages with the shell:
   a host page embedding the bare map keeps its own scrolling. */
:root:has(.jcm-shell) { overscroll-behavior-y: none; }

.jcm-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f5f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

/* Inside an iframe that iframe-resizer sizes to this document, 100vh IS the
   document: the page can then never be shorter than the frame, the frame is
   sized from the page, and the two climb off each other without settling.
   Measured at ~26,000px after a second. The rule exists to keep the gray
   background under a short map, which a frame fitted to the content does not
   need. See career-map-shell.js::watchVisibleBand. */
.jcm-in-frame .jcm-page { min-height: 0; }

/* The host page scrolls, this document does not, so there is no end of our
   own to rubber-band against. */
.jcm-in-frame:has(.jcm-shell) { overscroll-behavior-y: auto; }

.jcm-shell {
  --content-max: 1320px;
  --content-pad: 48px;
  display: block;
}

/* ===== Site header ======================================================
   Starts flat and transparent-bordered, then gains a translucent blurred
   surface on scroll — the app's .site-header / .scrolled pair. */

.jcm-site-header {
  position: sticky;
  top: 0;
  /* 140, the app's value: above the toolbar (130), which the map scrolls
     under, and below the drawer and dialogs. */
  z-index: 140;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.jcm-site-header.scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(226, 232, 240, .8);
  box-shadow: 0 1px 12px rgba(15, 23, 42, .05);
}

.jcm-header-inner {
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  gap: 12px;
}

.jcm-logo {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}

/* A map's own mark, in place of the Julius one. Julius's is square; a client's
   is whatever shape theirs is (the Textile Innovation Engine's is 691x159),
   so the height is what is fixed and the width follows from it. max-width
   caps the widest marks, and object-fit keeps one letterboxed instead of
   stretched if a logo ever turns out wider than that. */
.jcm-logo--map {
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.jcm-map-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.2px;
  /* The name yields before the header does. A wide logo plus a long name plus
     "Your pathway" is more than a narrow viewport holds, and a flex item will
     not shrink below its content without this. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The right end of the nav, where the widget puts "Your pathway". */
.jcm-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.jcm-header-actions:empty { display: none; }

/* ===== Main column ====================================================== */

.jcm-main {
  margin: 0 auto;
  padding: 28px var(--content-pad) 60px;
  max-width: var(--content-max);
  width: 100%;
}

.jcm-page-title {
  margin: 0 0 32px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--ink);
}

/* ===== Intro card =====================================================
   The app's .mobile-v2-intro: copy and steps on the left, the walkthrough in
   a 360px column on the right. Below 900px it is one column, the demo folded
   behind "Show demo". */

.jcm-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  column-gap: 48px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border-c);
  border-radius: var(--r-xl);
  background: #fff;
}

.jcm-intro > .jcm-section-title,
.jcm-intro > .jcm-about-text,
.jcm-intro > .htu-steps-head,
.jcm-intro > .htu-steps { grid-column: 1; }

.jcm-section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.jcm-about-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.htu-steps-head { margin-top: 18px; }
.htu-steps-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.htu-reveal { display: none; }

.htu-steps { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; }

.htu-step {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 0 -9px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 500 13.5px/1.4 'Inter', sans-serif;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.htu-step:not(:disabled):hover { background: #f4f7fd; color: #334155; }
/* With the demo folded these are captions, not controls. */
.htu-step:disabled { background: transparent; cursor: default; }

.htu-step-n {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #eef2fc;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  transition: background .15s, color .15s;
}

.htu-step.active { font-weight: 600; color: var(--ink); }
.htu-step.active .htu-step-n { background: var(--brand); color: #fff; }

.htu-inline {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
}

.htu-track { height: 100%; overflow: hidden; border-radius: 12px; background: #fbfcfe; }
.htu-stage { display: block; width: 100%; height: 100%; object-fit: cover; }

.htu-play {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
  transition: background .15s, color .15s, border-color .15s;
}

.htu-play:hover { border-color: var(--brand); background: #eef2fc; color: var(--brand); }
/* Painted at 24px, hit at 44px (WCAG 2.5.8 measures the target). */
.htu-play::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.htu-play svg { width: 12px; height: 12px; }
.htu-play[aria-pressed="true"] .htu-ico-play,
.htu-play[aria-pressed="false"] .htu-ico-pause { display: none; }

/* ----- The walkthrough scene, verbatim from the app ---------------------- */
.htu-stage text{font-family:'Inter',-apple-system,sans-serif}
.htu-hdr{font-size:5.6px;font-weight:600;fill:#fff;text-anchor:middle;dominant-baseline:central}
.htu-node{fill:#fff;stroke-width:1.5}
.htu-nlbl{font-size:6px;font-weight:500;fill:#334155;text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:#fbfcfe;stroke-width:2.4px;stroke-linejoin:round}
.htu-line{stroke:#3c6dd0;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.htu-ripple{fill:none;stroke-width:2;opacity:0}
.htu-ring{fill:none;stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center}
.htu-cursor{opacity:0;filter:drop-shadow(0 2px 3px rgba(15,23,42,.25))}
.htu-lbl{opacity:0}
/* per-slide caption */
/* real-style mini popup (drawn in SVG to mirror .role-popup) */
.htu-pop-name{font-size:9px;font-weight:700;fill:#1e293b}
.htu-pop-lvl{font-size:6px;font-weight:700;fill:#475569;letter-spacing:.4px}
.htu-pop-sal{font-size:8px;font-weight:700;fill:#1e293b}
.htu-pop-k{font-size:5.5px;font-weight:500;fill:#94a3b8;letter-spacing:.4px}
.htu-pop-btn-tx{font-size:7px;font-weight:600;fill:#fff;text-anchor:middle;dominant-baseline:central;letter-spacing:.3px}
@keyframes htuPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.65;transform:scale(1.1)}}
@keyframes htuPing{0%{transform:scale(.5);opacity:.5}70%{opacity:0}100%{transform:scale(2.1);opacity:0}}
@keyframes htuRipOnce{0%{r:2;opacity:.55}100%{r:22;opacity:0}}
@keyframes htuBtnPress{0%{transform:scale(1);fill:#3c6dd0}45%{transform:scale(.94);fill:#3159b4}100%{transform:scale(1);fill:#3c6dd0}}
/* merged step: cursor moves straight to QA Analyst (zoomed-in pos), taps it, then fades as the camera zooms out and CE connects */
@keyframes htuP1Cur{0%{transform:translate(122px,156px);opacity:1}28%{transform:translate(225px,70px);opacity:1}48%{transform:translate(225px,70px);opacity:1}66%{transform:translate(225px,70px);opacity:0}100%{transform:translate(225px,70px);opacity:0}}
/* step 3: cursor → Chief Engineer (popup appears) → "View full details" button → click → fade as drawer covers */
@keyframes htuP2Cur{0%{transform:translate(150px,110px);opacity:0}14%{transform:translate(180px,66px);opacity:1}40%{transform:translate(180px,66px);opacity:1}62%{transform:translate(273px,151px);opacity:1}74%{transform:translate(273px,151px);opacity:1}82%{transform:translate(273px,151px);opacity:0}100%{transform:translate(273px,151px);opacity:0}}
/* ===== ONE CONTINUOUS SCENE — phases advanced by Next/Prev, transitions carry state over ===== */
.htu-cam{transform-origin:0 0;transition:transform .9s cubic-bezier(.4,0,.2,1) .35s}
.sc-line{transition:stroke-dashoffset .7s ease,opacity .5s ease}
.sc-mo,.sc-qa{fill:#fff;transition:fill .5s ease}
.sc-ce{opacity:.16;fill:#fff;transition:opacity .5s ease,fill .5s ease}
.sc-celbl{opacity:0;transition:opacity .45s ease}
.sc-branch{opacity:1;transition:opacity .6s ease}
.sc-ring{opacity:0;transition:opacity .45s ease}
.sc-popup{opacity:0;transform:translateY(8px);transform-box:fill-box;transform-origin:center;transition:opacity .45s ease,transform .45s cubic-bezier(.2,.8,.3,1) .35s}
.sc-drawer{transform:translateX(312px);transition:transform .6s cubic-bezier(.4,0,.2,1)}
.sc-scroll{transform:translateY(0);transition:transform .85s cubic-bezier(.4,0,.2,1) .4s}
.sc-cursor{opacity:0;transition:transform .9s cubic-bezier(.4,0,.2,1),opacity .4s ease}
.htu-scene .htu-cam{transform:translate(0px,0px) scale(1)}
/* loop restart: snap straight back to the blank map (no retracting lines / sliding drawer) before replaying */
.htu-scene.snap *{transition:none!important;animation:none!important}
/* cursor is already resting inside the map before anything happens */
.htu-scene .sc-cursor{opacity:1;transform:translate(232px,150px)}
/* phase 0 — play the build (fill role + extend the two lines), then zoom in & stop */
.htu-scene.p0 .htu-cam{transform:translate(48px,-118px) scale(1.55)}
.htu-scene.p0 .sc-mo,.htu-scene.p1 .sc-mo,.htu-scene.p2 .sc-mo{fill:#4a2d7a}
.htu-scene.p0 .sc-l-ps,.htu-scene.p1 .sc-l-ps,.htu-scene.p2 .sc-l-ps,
.htu-scene.p0 .sc-l-qa,.htu-scene.p1 .sc-l-qa,.htu-scene.p2 .sc-l-qa{stroke-dashoffset:0}
.htu-scene.p0 .sc-ring,.htu-scene.p1 .sc-ring,.htu-scene.p2 .sc-ring{opacity:1}
.htu-scene.p0 .sc-pulse{animation:htuPulse 1.7s ease-in-out infinite}
.htu-scene.p0 .sc-ping{animation:htuPing 1.8s cubic-bezier(.2,.6,.3,1) infinite}
.htu-scene.p0 .sc-rip-mo{animation:htuRipOnce .9s ease-out .5s}
.htu-scene.p0 .sc-cursor{opacity:1;transform:translate(122px,156px)}
/* p0 FIRST-PLAY sequencing (only on fresh open): brief hold on full map → cursor moves to role WHILE zooming in → then expand */
.htu-scene.playing.p0 .sc-cursor{transition:transform .55s cubic-bezier(.4,0,.2,1) .2s,opacity .25s ease}
.htu-scene.playing.p0 .htu-cam{transition:transform .6s cubic-bezier(.4,0,.2,1) .2s}
.htu-scene.playing.p0 .sc-mo{transition:fill .25s ease .6s}
.htu-scene.playing.p0 .sc-l-ps,.htu-scene.playing.p0 .sc-l-qa{transition:stroke-dashoffset .45s cubic-bezier(.4,0,.2,1) .6s}
.htu-scene.playing.p0 .sc-ring{transition:opacity .3s ease .6s}
.htu-scene.playing.p0 .sc-rip-mo{animation:htuRipOnce .8s ease-out .7s}
.htu-scene.playing.p0 .sc-pulse{animation:htuPulse 1.6s ease-in-out .7s infinite}
.htu-scene.playing.p0 .sc-ping{animation:htuPing 1.8s cubic-bezier(.2,.6,.3,1) .7s infinite}
/* phase 1 (MERGED) — camera eases back out to reveal the COMPLETE pathway; pick the mid role, then the senior role. No popup. */
.htu-scene.p1 .htu-cam,.htu-scene.p2 .htu-cam{transform:translate(0px,0px) scale(1)}
.htu-scene.p1 .sc-qa,.htu-scene.p2 .sc-qa{fill:#3a4dba}
.htu-scene.p1 .sc-branch,.htu-scene.p2 .sc-branch{opacity:.16}
.htu-scene.p1 .sc-l-ce,.htu-scene.p2 .sc-l-ce{stroke-dashoffset:0}
.htu-scene.p1 .sc-ce,.htu-scene.p2 .sc-ce{opacity:1;fill:#0a8a8a}
.htu-scene.p1 .sc-celbl,.htu-scene.p2 .sc-celbl{opacity:1}
/* sequence: cursor → tap QA (while still zoomed in) → THEN zoom out → CE connects */
.htu-scene.p1 .htu-cam,.htu-scene.p2 .htu-cam{transition:transform .6s cubic-bezier(.4,0,.2,1) .55s}
.htu-scene.p1 .sc-qa{transition:fill .28s ease .35s}
.htu-scene.p1 .sc-branch{transition:opacity .4s ease .35s}
.htu-scene.p1 .sc-l-ce{transition:stroke-dashoffset .5s cubic-bezier(.4,0,.2,1) .85s}
.htu-scene.p1 .sc-ce{transition:opacity .35s ease .98s,fill .35s ease .98s}
.htu-scene.p1 .sc-celbl{transition:opacity .3s ease 1.05s}
.htu-scene.p1 .sc-rip-qa{animation:htuRipOnce .75s ease-out .35s}
.htu-scene.p1 .sc-cursor{animation:htuP1Cur 1.35s cubic-bezier(.4,0,.2,1) forwards}
/* phase 2 — cursor moves to Chief Engineer → popup appears → click "View full details" → drawer slides in + scroll */
.htu-scene.p2 .sc-popup{opacity:1;transform:none;transition:opacity .4s ease .45s,transform .45s cubic-bezier(.2,.8,.3,1) .45s}
.htu-scene.p2 .sc-cursor{animation:htuP2Cur 2.3s cubic-bezier(.4,0,.2,1) forwards}
/* step 3 only: the cursor reads as a hand (link pointer); every other step keeps the arrow */
.sc-hand{opacity:0}
.htu-scene.p2 .sc-arrow{opacity:0}
.htu-scene.p2 .sc-hand{opacity:1}
/* click feedback on the "View full details" button */
.sc-pop-btn{transform-box:fill-box;transform-origin:center}
.htu-scene.p2 .sc-pop-btn{animation:htuBtnPress .4s ease-out 1.35s}
.htu-scene.p2 .sc-rip-btn{animation:htuRipOnce .9s ease-out 1.4s}
.htu-scene.p2 .sc-drawer{transform:translateX(0);transition:transform .6s cubic-bezier(.4,0,.2,1) 1.55s}
.htu-scene.p2 .sc-scroll{transform:translateY(-118px);transition:transform 1.05s cubic-bezier(.4,0,.2,1) 2.5s}
@media(prefers-reduced-motion:reduce){
  .htu-cam,.sc-line,.sc-mo,.sc-qa,.sc-ce,.sc-celbl,.sc-branch,.sc-ring,.sc-popup,.sc-drawer,.sc-scroll,.sc-cursor{transition:none!important}
  .htu-scene .sc-pulse,.htu-scene .sc-ping,.htu-scene [class*=sc-rip],.htu-scene .sc-cursor,.htu-scene .sc-pop-btn{animation:none!important}
}

/* ===== Responsive ======================================================= */

@media (max-width: 1100px) {
  .jcm-shell { --content-pad: 24px; }
}

/* The page heading is phone-only, as in the app: on a desktop the map's name
   is already in the header beside the logo. */
@media (min-width: 901px) {
  .jcm-page-title { display: none; }
}

@media (max-width: 900px) {
  /* One column; the type stays at the desktop sizes. */
  .jcm-intro { display: block; }

  .htu-steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

  .htu-reveal {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
    font-weight: 400;
    color: var(--brand);
    cursor: pointer;
  }

  .htu-reveal:hover { border-color: var(--brand); background: #eef2fc; }
  /* Painted small, hit at 44px. */
  .htu-reveal::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }


  .htu-inline { margin-top: 10px; }
  .htu-inline.is-collapsed { display: none; }
  .htu-track { height: auto; border-radius: 10px; }
  .htu-stage { height: auto; }
  .htu-play { width: 44px; height: 44px; border-color: #cbd5e1; border-radius: 9px; box-shadow: none; }
}

@media (max-width: 640px) {
  .jcm-shell { --content-pad: 16px; }

  .jcm-site-header { height: 56px; }
  .jcm-map-name { font-size: 14px; }
  /* Only the map's mark shrinks: Julius's square one already fits a 56px
     header, and a 190px-wide logo leaves a phone no room for the name. */
  .jcm-logo--map { height: 26px; max-width: 128px; }
}

/* ===== FAQ ===============================================================
   The app's .faq-section under the map: 20px heading, bordered rows that
   open one at a time. The open/close is a grid-rows transition, as in the
   app, so the answer never needs a measured height. */

.jcm-faq { margin-top: 40px; }
.jcm-faq[hidden] { display: none; }
.jcm-faq .jcm-faq-title { margin: 0 0 20px; font-size: 20px; }
.jcm-faq-list { display: flex; flex-direction: column; gap: 8px; }
.jcm-faq-item { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.jcm-faq-q { margin: 0; font: inherit; }
.jcm-faq-q button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 20px; margin: 0; border: 0; background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: #0f172a; text-align: left;
  transition: background .15s;
}
.jcm-faq-q button:hover { background: #f8fafc; }
/* Inset: the row clips its overflow, so an outset ring would be cut off. */
.jcm-faq-q button:focus-visible { outline: 2px solid #2c54a5; outline-offset: -2px; }
.jcm-faq-q button > span:first-child { flex: 1; }
.jcm-faq-toggle { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #94a3b8; flex-shrink: 0; }
.jcm-faq-toggle::before { content: '+'; font-size: 18px; line-height: 1; }
.jcm-faq-q button[aria-expanded="true"] .jcm-faq-toggle::before { content: '\2212'; }
.jcm-faq-a {
  display: grid; grid-template-rows: minmax(0, 0fr); opacity: 0; visibility: hidden;
  transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1), opacity .22s ease, visibility 0s linear .3s;
}
.jcm-faq-item.open .jcm-faq-a {
  grid-template-rows: minmax(0, 1fr); opacity: 1; visibility: visible;
  transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1), opacity .22s ease, visibility 0s;
}
.jcm-faq-a-inner { overflow: hidden; min-height: 0; padding: 0 20px 16px; font-size: 13px; line-height: 1.7; color: #64748b; }
.jcm-faq-a-inner p { margin: 0; }
.jcm-faq-a-inner p + p { margin-top: 10px; }

/* A link in an answer: the only markup renderFaq produces, for bare http(s)
   URLs the SME typed into the plain-text answer. Underlined rather than color
   alone, because color alone is not a link cue for a visitor who cannot see
   it. Wraps anywhere, so a long URL cannot push the panel wider than the map. */
.jcm-faq-a-inner a {
  color: var(--brand, #3c6dd0);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.jcm-faq-a-inner a:hover { text-decoration-thickness: 2px; }
.jcm-faq-a-inner a:focus-visible {
  outline: 2px solid var(--brand, #3c6dd0);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .jcm-faq { margin-top: 28px; }
  .jcm-faq .jcm-faq-title { font-size: 18px; margin-bottom: 14px; }
  .jcm-faq-q button { padding: 14px 16px; }
  .jcm-faq-a-inner { padding: 0 16px 14px; }
}

/* ===== Site footer ======================================================
   Ported from the client map (julius-sme-review-app, index.html). A full-width
   band with the row inside it held to the page width. index.html's no-map page
   uses it too, without the shell around it, so every token keeps a fallback. */

.jcm-site-footer {
  border-top: 1px solid var(--border-c, #e2e8f0);
  background: #fff;
}

.jcm-footer-inner {
  max-width: var(--content-max, 1320px);
  margin: 0 auto;
  padding: 18px var(--content-pad, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 25px row gap: once the row wraps, the two rows sit 44px apart, so the
     44px hit areas below do not overlap. */
  gap: 25px 28px;
  flex-wrap: wrap;
}

.jcm-footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.jcm-footer-logo svg {
  height: 22px;
  width: auto;
  display: block;
}

.jcm-footer-right {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.jcm-footer-links {
  display: flex;
  align-items: center;
  gap: 29px 24px;
  flex-wrap: wrap;
}

.jcm-footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--body, #475569);
  text-decoration: none;
  transition: color .15s;
}

.jcm-footer-links a:hover { color: var(--brand, #3c6dd0); }

.jcm-footer-links a:focus-visible,
.jcm-footer-logo:focus-visible {
  outline: 2px solid var(--brand, #3c6dd0);
  outline-offset: 2px;
  border-radius: 2px;
}

.jcm-footer-copy {
  font-size: 12px;
  color: var(--muted, #64748b);
}

/* 44px touch targets without growing what is drawn. */
.jcm-footer-logo,
.jcm-footer-links a { position: relative; }

.jcm-footer-logo::after,
.jcm-footer-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 44px);
  height: max(100%, 44px);
}
