:root {
  --nav-compact: 64px;
  --nav-wide: 222px;
  --nav-height: 60px;
  --nav-speed: 180ms;
  --rule: #dfe5ed;
  --page-inset: clamp(20px, 2.6vw, 46px);
  --nav-ease: cubic-bezier(.2, .7, .2, 1);
}
.page-rail {
  z-index: 4;
  background: #f6f9fc;
  color: var(--ink);
}
.rail-head { display: grid; gap: 8px; }
.practice-brand { display: flex; align-items: center; width: fit-content; text-decoration: none; gap: 10px; min-height: 44px; padding: 0 6px; }
.practice-logo { display: block; width: 38px; height: auto; flex: none; }
body[data-nav-open="true"] .practice-logo { width: 64px; }
@media (max-width: 760px) {
  .practice-logo, body[data-nav-open="true"] .practice-logo { width: 48px; }
}
.practice-brand .practice-name { display: block; white-space: nowrap; }
.practice-name strong { display: block; line-height: 1.15; color: var(--brand-navy, #1f2d6f); font-weight: var(--weight-medium); font-size: .95rem; letter-spacing: -.025em; }
.practice-name small { display: block; margin-top: 2px; color: var(--muted); font-size: .74rem; }
.rail-toggle, .nav-backdrop, .masthead-sponsor { display: none; }
body[data-nav-ready] .rail-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475b77;
  font-size: .76rem;
  white-space: nowrap;
}
.rail-toggle svg, .page-nav a svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.rail-toggle .icon-close { display: none; }
.rail-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.page-nav { display: grid; gap: 4px; margin: 12px 0 0; }
.rail-utilities { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.page-nav a {
  display: flex; align-items: center; color: #465775; text-decoration: none; font-weight: var(--weight-regular);
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: .8125rem;
}
.page-nav a:hover, .rail-toggle:hover { background: #e8eff7; }
.page-nav a[aria-current] {
  color: var(--brand-royal, #0b4bb7);
  background: #e1ecfb;
  box-shadow: inset 3px 0 var(--brand-royal, #0b4bb7);
}
.page-rail :is(a,button):focus-visible { outline: 2px solid var(--brand-royal, #0b4bb7); outline-offset: -2px; }
.rail-footer {
  display: grid;
  align-items: center;
  min-height: 60px;
  margin-top: auto;
  padding: 9px 8px 2px;
  border-top: 1px solid var(--rule);
}
.rail-footer > * { grid-area: 1 / 1; }
.company-symbol { width: 26px; height: 26px; object-fit: contain; opacity: 0; }
.company-lockup { display: grid; align-content: center; justify-items: start; gap: 4px; }
.company-lockup small { color: var(--muted); font-size: .68rem; font-weight: var(--weight-regular); line-height: 1.2; }
.company-lockup img { display: block; width: 108px; height: auto; }
.workspace-brandline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-bottom: 8px;
  font-size: .73rem;
  line-height: 1.35;
}
.workspace-brandline strong { color: var(--brand-navy, #1f2d6f); font-weight: var(--weight-medium); }
.workspace-brandline > span { padding-left: 10px; border-left: 1px solid var(--rule); color: var(--muted); }

.rail-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 8px;
}
.rail-option-row:has(> a[hidden]) { display: none; }
.rail-option-row > a { min-width: 0; }
.rail-option-row:has(> a[aria-current]) {
  color: var(--viz-royal, #1755be);
  background: linear-gradient(100deg, #d9eafa, #e5f4f5);
  box-shadow: inset 3px 0 currentColor;
}
.page-nav .rail-option-row > a[aria-current] { background: transparent; box-shadow: none; }
.rail-flyout-toggle, .rail-flyout [data-flyout-back] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #425d76;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.rail-flyout-toggle { min-width: 32px; height: 36px; margin-inline-end: 3px; }
.rail-flyout-toggle svg, .rail-flyout [data-flyout-back] svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.rail-flyout-toggle:is(:hover, [aria-expanded="true"]), .rail-flyout [data-flyout-back]:hover {
  color: var(--viz-royal, #1755be);
  background: #e2ecf6;
}
.rail-flyout {
  display: none;
  box-sizing: border-box;
  position: fixed;
  z-index: 9;
  inset: var(--flyout-top, 8px) auto auto var(--flyout-left, var(--nav-wide));
  width: min(17rem, calc(100vw - var(--flyout-left, var(--nav-wide)) - 12px));
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  margin: 0;
  padding: 0;
  border: 1px solid #c9dae7;
  border-radius: 12px;
  background: #fff;
  color: var(--viz-ink, #142f50);
  box-shadow: 0 8px 28px rgb(22 55 86 / 14%), 0 2px 6px rgb(22 55 86 / 6%);
  overflow: hidden;
}
.rail-flyout:is(:popover-open, [data-flyout-open]):not([hidden]) {
  display: flex;
  flex-direction: column;
  animation: open-rail-flyout 150ms var(--nav-ease) both;
}
@keyframes open-rail-flyout {
  from { opacity: 0; translate: -8px 0; }
  to { opacity: 1; translate: 0 0; }
}
.rail-flyout-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px;
  padding: 5px 10px 5px 16px;
  border-bottom: 1px solid var(--viz-grid, #d1e1eb);
  background: #f5f9fc;
}
.rail-flyout-head, .rail-flyout-head :is(h2,h3,strong) {
  margin: 0; font-size: .8125rem; font-weight: var(--weight-medium, 550); line-height: 1.3;
}
.rail-flyout [data-flyout-back] { gap: 5px; min-width: 32px; min-height: 32px; padding-inline: 7px; font-size: .75rem; }
.rail-flyout [data-flyout-back]::before {
  content: ''; width: 6px; height: 6px;
  border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg);
}
.rail-flyout-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  min-height: 0;
  gap: 2px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.rail-flyout .rail-flyout-options > :is(a,button) {
  display: flex; align-items: center; min-width: 0; min-height: 36px;
  position: relative;
  padding: 6px 20px 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #344e69;
  box-shadow: none;
  font: inherit;
  font-size: .8125rem;
  line-height: 1.35;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
}
.rail-flyout .rail-flyout-options > :is(a,button):hover { background: #edf4f8; color: var(--viz-ink, #142f50); }
.rail-flyout .rail-flyout-options > [aria-current]:not([aria-current="false"]) {
  color: #124c99; background: #eaf3fc; border-color: #d3e4f7;
}
.rail-flyout-options > [aria-current]:not([aria-current="false"])::after {
  content: ''; position: absolute; right: 9px; width: 5px; height: 9px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.rail-flyout :is(a,button):focus-visible { outline: 2px solid var(--viz-royal, #1755be); outline-offset: -2px; }
.rail-flyout .rail-flyout-options > [hidden] { display: none; }
.access-skip:focus { z-index: 6; }

@media (min-width: 761px) {
  .page-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--nav-wide);
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    gap: 0;
    padding: 16px 9px 12px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
    overflow: hidden auto;
  }
  main { margin-left: var(--nav-wide); }
  .page-nav { flex: 0 0 auto; padding: 10px 0; border-top: 1px solid var(--rule); }
  .rail-head { flex: none; gap: 4px; grid-template-columns: minmax(0, 1fr); }
  .rail-head :is(.rail-toggle, .practice-brand) { min-width: 0; max-width: 100%; overflow: hidden; }
  .rail-body { min-height: min-content; }
  .rail-footer { flex: none; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
  body[data-nav-ready] .page-rail {
    width: var(--nav-compact);
    transition: width var(--nav-speed) var(--nav-ease), box-shadow var(--nav-speed);
  }
  body[data-nav-ready] main {
    margin-left: var(--nav-compact);
    transition: margin-left var(--nav-speed) var(--nav-ease);
  }
  body[data-nav-open="true"] .page-rail { width: var(--nav-wide); }
  body[data-nav-open="true"]:not([data-nav-pinned="true"]) .page-rail { box-shadow: 8px 0 22px rgb(27 53 91 / 10%); }
  body[data-nav-pinned="true"] main { margin-left: var(--nav-wide); }
  .page-nav a, .rail-toggle { overflow: hidden; }
  body[data-nav-ready][data-nav-open="false"] .rail-option-row { grid-template-columns: minmax(0, 1fr) 0; }
  body[data-nav-ready][data-nav-open="false"] .rail-flyout-toggle { min-width: 0; margin: 0; overflow: hidden; }
  body[data-nav-pinned="true"] .rail-toggle .icon-open { display: none; }
  body[data-nav-pinned="true"] .rail-toggle .icon-close { display: block; }
  body[data-nav-ready] :is(.practice-name, .page-nav a span, .rail-toggle-label, .company-lockup) {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--nav-speed), transform var(--nav-speed) var(--nav-ease);
  }
  body[data-nav-open="true"] :is(.practice-name, .page-nav a span, .rail-toggle-label, .company-lockup) {
    opacity: 1;
    transform: none;
  }
  body[data-nav-ready] .company-symbol { opacity: 1; transition: opacity var(--nav-speed); }
  body[data-nav-open="true"] .company-symbol { opacity: 0; }
}

@media (max-width: 760px) {
  .page-rail { position: relative; display: block; padding: 0; border: 0; border-bottom: 1px solid var(--rule); }
  .rail-head {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-height);
    padding: 0 var(--page-inset);
    background: #f6f9fc;
  }
  .practice-brand { gap: 8px; padding: 0; }
  .practice-name strong { display: block; line-height: 1.15; color: var(--brand-navy, #1f2d6f); font-weight: var(--weight-medium); font-size: .87rem; }
  .practice-name small { font-size: .7rem; }
  .masthead-sponsor {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 10em;
    margin-left: auto;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.25;
  }
  .masthead-sponsor img { display: block; width: 17px; height: 17px; object-fit: contain; }
  .rail-toggle-label { display: none; }
  .rail-body { gap: 16px; padding: 12px; }
  .page-nav { justify-content: stretch; margin: 0; }
  .rail-flyout-toggle { min-width: 44px; min-height: 44px; }
  .rail-flyout {
    inset: var(--nav-height) auto 0 0;
    width: min(26rem, 100vw);
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    max-height: none;
    padding-bottom: env(safe-area-inset-bottom);
    border-width: 1px 1px 0 0;
    border-radius: 0;
  }
  .rail-flyout-head { padding: 3px 8px 3px 16px; }
  .rail-flyout [data-flyout-back] { min-width: 44px; min-height: 44px; }
  .rail-flyout .rail-flyout-options > :is(a,button) { min-height: 44px; }
  .rail-footer { min-height: 56px; }
  .company-symbol { display: none; }
  .workspace-brandline { display: none; }
  body[data-nav-ready] .page-rail { position: sticky; top: 0; }
  body[data-nav-ready] .rail-body {
    position: fixed;
    inset: var(--nav-height) auto 0 0;
    width: min(264px, 85vw);
    padding: 12px 12px max(14px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    background: #f6f9fc;
    border-right: 1px solid var(--rule);
    transform: translateX(-100%);
    transition: transform var(--nav-speed) var(--nav-ease), visibility 0s var(--nav-speed);
  }
  body[data-nav-open="true"] .rail-body {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }
  body[data-nav-open="true"][data-flyout-open] .rail-body { transform: none; }
  body[data-nav-open="true"] .rail-toggle .icon-open { display: none; }
  body[data-nav-open="true"] .rail-toggle .icon-close { display: block; }
  body[data-nav-open="true"] .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 3;
    inset: var(--nav-height) 0 0;
    border: 0;
    padding: 0;
    background: rgb(16 35 66 / 24%);
  }
  body[data-nav-ready] [tabindex="-1"][id^="br-"] { scroll-margin-top: calc(var(--nav-height) + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .rail-flyout:is(:popover-open, [data-flyout-open]):not([hidden]) { animation: none; }
  body[data-nav-ready] :is(.page-rail, main, .rail-body, .page-nav a span, .practice-name, .rail-toggle-label, .company-lockup, .company-symbol) {
    transition: none;
  }
}

.page-nav [hidden] { display: none; }
.page-nav .rail-sign-out {
  display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 44px; overflow: hidden;
  border: 0; border-radius: 8px; background: transparent; color: #465775; font: inherit; font-size: .8125rem; text-align: left; white-space: nowrap;
}
.page-nav .rail-sign-out[hidden] { display: none; }
.page-nav .rail-sign-out:hover { background: #e8eff7; }
.rail-sign-out svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 761px) {
  body[data-nav-ready] .practice-brand { padding-inline: 3px; }
  body[data-nav-open="false"] .rail-sign-out span { visibility: hidden; }
}
