/* ============================================================
   JOURNEY RECORD NAVIGATION  ·  phones  ·  19 September 2026
   ------------------------------------------------------------
   The Victory record pages (victory-journey*.html, victory-honor*.html,
   victory-expressions.html) carry a page nav (.pnav) and, on three of
   them, the publication rail (.jside). This sheet applies the case-study
   navigation policy to them:

     · one persistent strip on a phone: the site header
     · section navigation in a labelled disclosure, in normal flow
     · anchors clear the header; the current section is named on the
       closed disclosure; the browser's own Back is untouched
     · no nested horizontal scrolling

   Above 760px nothing changes: the page nav stays where it was and the
   rail keeps its column. Markup: .pnav-in sits inside
   <details class="pnav__d"> with <summary class="pnav__sum">; the rail's
   children sit inside <details class="jside__d"> with
   <summary class="jside__sum"> and a <div class="jside__in">.
   journey-nav.js opens both above 760px and closes them on phones.
   ============================================================ */

.pnav .pnav__d>summary,.jside .jside__d>summary{list-style:none}
.pnav .pnav__d>summary::-webkit-details-marker,.jside .jside__d>summary::-webkit-details-marker{display:none}
.pnav .pnav__sum,.jside .jside__sum{display:none}
.jside .jside__in{display:flex;flex-direction:column;gap:2px;min-width:0}

@media (max-width:760px){
  :root{--jn-head:58px}
  .pnav{position:static;top:auto;z-index:auto;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible}
  .pnav .pnav__sum,.jside .jside__sum{
    display:flex;align-items:center;gap:12px;min-height:48px;max-width:1100px;margin:0 auto;padding:6px 22px;
    font-family:var(--font-system,system-ui,sans-serif);font-weight:500;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
    color:var(--ink,#13153f);cursor:pointer
  }
  .pnav .pnav__cur,.jside .jside__cur{
    flex:1 1 auto;min-width:0;text-align:right;font-weight:400;font-size:12px;letter-spacing:.02em;text-transform:none;
    color:var(--ink-2,#4a4d68);white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .pnav .pnav__sum::after,.jside .jside__sum::after{
    content:'';flex:none;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
    transform:translateY(-2px) rotate(45deg)
  }
  .pnav .pnav__d[open]>.pnav__sum::after,.jside .jside__d[open]>.jside__sum::after{transform:translateY(2px) rotate(-135deg)}
  .pnav .pnav__sum:focus-visible,.jside .jside__sum:focus-visible{outline:2px solid var(--accent,#2f3aa3);outline-offset:-2px}
  .pnav .pnav__d:not([open])>.pnav-in,.jside .jside__d:not([open])>.jside__in{display:none}

  /* the page nav: a wrapping list, every target at least 44px tall */
  .pnav .pnav-in{height:auto;min-height:0;flex-wrap:wrap;gap:0 18px;padding:0 22px 12px;overflow:visible}
  .pnav .pnav-in a,.pnav .pnav-in .cur{min-height:44px;display:inline-flex;align-items:center;white-space:normal;padding:4px 0}
  .pnav .pnav-in .alt{margin-left:0}
  .pnav .pnav-in a[aria-current="true"]{color:var(--accent,#2f3aa3)}
  .pnav .pnav-in .mid[aria-current="true"]::after{bottom:6px}

  /* the rail: a column in the disclosure, no sideways scrolling */
  .jside.jside--d{
    position:static;display:block;flex-direction:column;overflow:visible;max-height:none;
    padding:0;margin:0 0 18px;border-bottom:1px solid var(--lnav-rule,rgba(19,21,63,.14))
  }
  .jside.jside--d .jside__sum{padding-left:0;padding-right:0}
  .jside.jside--d .jside__in{display:flex;flex-direction:column;gap:0;padding:0 0 12px}
  .jside.jside--d .js-title{flex:none;align-self:auto;border:0;padding:6px 0 8px;margin:0;font-size:11px}
  .jside.jside--d .js-item,.jside.jside--d .js-sub,.jside.jside--d .js-disc{
    flex:none;display:flex;align-items:center;min-height:44px;padding:6px 10px 6px 14px;
    border-left:2px solid transparent;border-bottom:0;border-radius:0 5px 5px 0;white-space:normal;font-size:14px
  }
  .jside.jside--d .js-sub{padding-left:26px}
  .jside.jside--d .js-disc{padding-left:38px;font-size:13.5px}
  .jside.jside--d .js-item[aria-current="true"]{border-left-color:var(--lnav-active,var(--accent,#2f3aa3));border-bottom:0}
  .jside.jside--d .js-section{flex:none;align-self:auto;margin:18px 0 6px;padding:0;border:0;font-size:11px;color:var(--lnav-strong,var(--ink,#13153f))}
  .jside.jside--d .js-group{flex:none;align-self:auto;margin:14px 0 4px;padding:0 0 0 14px;border:0;font-size:10px}

  /* anchors clear the one strip that remains */
  html body [id]{scroll-margin-top:calc(var(--jn-head) + 14px)}
}

@media (prefers-reduced-motion:reduce){
  .pnav .pnav-in a,.jside.jside--d .js-item{transition:none}
}
