/* Shared Method Register control: one unmistakable methodology signal across every archive room. */
.inspect-method-pill{
  --inspect-method-bg:rgba(var(--mhc-float-rgb),.78);
  --inspect-method-line:rgba(var(--mhc-on-plate-rgb),.24);
  --inspect-method-color:var(--mhc-crisis-plate);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:56px;
  padding:5px 16px!important;
  border:1px solid color-mix(in srgb,var(--mhc-ink) 22%,transparent);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(var(--mhc-float-rgb),.92),rgba(var(--mhc-float-rgb),.68));
  box-shadow:0 18px 44px rgba(var(--mhc-shadow-rgb),.18),0 3px 10px rgba(var(--mhc-shadow-rgb),.08),inset 0 1px 0 color-mix(in srgb,var(--mhc-ink) 14%,transparent),inset 0 -1px 0 color-mix(in srgb,var(--mhc-ink) 5%,transparent);
  backdrop-filter:blur(24px) saturate(138%);
  -webkit-backdrop-filter:blur(24px) saturate(138%);
  color:var(--mhc-crisis-plate-ink)!important;
  font:500 12px/1 var(--mono,"Geist Mono",ui-monospace,monospace)!important;
  letter-spacing:.07em!important;
  text-decoration:none;
  text-transform:none!important;
  white-space:nowrap;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .3s cubic-bezier(.16,1,.3,1);
}
.inspect-method-pill svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .32s cubic-bezier(.16,1,.3,1);
}
.inspect-method-pill:hover{
  border-color:var(--inspect-method-color);
  background:linear-gradient(135deg,color-mix(in srgb,var(--mhc-accent) 14%,rgba(var(--mhc-float-rgb),.88)),rgba(var(--mhc-float-rgb),.7));
  box-shadow:0 20px 46px rgba(var(--mhc-shadow-rgb),.2),inset 0 1px 0 color-mix(in srgb,var(--mhc-ink) 16%,transparent);
}
.inspect-method-pill:hover svg,.inspect-method-pill:focus-visible svg{transform:translate(2px,-2px)}
.inspect-method-pill:active{transform:scale(.96)}
.inspect-method-pill:focus-visible{outline:2px solid var(--mhc-hairline-paper-soft);outline-offset:2px}

.method-register{
  --method-register-ink:var(--mhc-on-paper);
  --method-register-paper:var(--mhc-on-ink-fill);
  --method-register-accent:var(--mhc-accent);
  position:relative;
  isolation:isolate;
  display:inline-grid;
  grid-template-columns:46px minmax(0,1fr) 38px;
  align-items:stretch;
  min-width:min(100%,310px);
  min-height:54px;
  padding:0;
  overflow:hidden;
  border:1px solid var(--method-register-accent);
  background:var(--method-register-ink);
  color:var(--mhc-on-ink-fill);
  font-family:var(--mono,"Geist Mono",ui-monospace,monospace);
  text-align:left;
  text-decoration:none;
  text-transform:none;
  white-space:normal;
}
.method-register::before{
  --mhc-ink-rgb:var(--mhc-on-accent-rgb);--mhc-on-plate-rgb:var(--mhc-on-accent-rgb);--mhc-on-paper-rgb:var(--mhc-on-accent-rgb);color:var(--mhc-on-accent);content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:var(--method-register-accent);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .46s cubic-bezier(.16,1,.3,1);
}
.method-register-code{
  --mhc-ink-rgb:var(--mhc-on-accent-rgb);--mhc-on-plate-rgb:var(--mhc-on-accent-rgb);--mhc-on-paper-rgb:var(--mhc-on-accent-rgb);display:grid;
  align-content:center;
  justify-items:center;
  gap:4px;
  padding:7px 4px;
  background:var(--method-register-accent);
  color:var(--mhc-on-accent);
  transition:background-color .28s ease,color .28s ease;
}
.method-register-code b{
  font-family:var(--sans,Helvetica,"Helvetica Neue",Arial,sans-serif);
  font-size:16px;
  font-weight:650;
  line-height:.8;
  letter-spacing:-.04em;
}
.method-register-code i{
  font-size:10px;
  font-style:normal;
  font-weight:600;
  line-height:1;
  letter-spacing:.08em;
}
.method-register-copy{
  display:grid;
  align-content:center;
  gap:4px;
  min-width:0;
  padding:8px 14px;
}
.method-register-copy b,
.method-register-copy small{
  display:block;
  overflow-wrap:anywhere;
}
.method-register-copy b{
  color:inherit;
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.method-register-copy small{
  color:var(--mhc-ink-on-ground-2);
  font-size:10px;
  font-weight:500;
  line-height:1.35;
  letter-spacing:.055em;
  text-transform:uppercase;
  transition:color .28s ease;
}
.method-register-arrow{
  align-self:center;
  justify-self:center;
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  transition:transform .36s cubic-bezier(.16,1,.3,1);
}
.method-register:hover,
.method-register:focus-visible{
  color:var(--mhc-on-ink-fill);
  background:var(--method-register-ink);
  border-color:var(--method-register-accent);
}
.method-register:hover::before,
.method-register:focus-visible::before{transform:scaleX(1)}
.method-register:hover .method-register-code,
.method-register:focus-visible .method-register-code{
  background:var(--method-register-ink);
  color:var(--mhc-on-ink-fill);
}
.method-register:hover .method-register-copy small,
.method-register:focus-visible .method-register-copy small{color:var(--method-register-ink)}
.method-register:hover .method-register-arrow,
.method-register:focus-visible .method-register-arrow{transform:translate(2px,-2px)}
.method-register:focus-visible{
  outline:2px solid var(--mhc-crisis-plate);
  outline-offset:3px;
}
.method-register.method-register--compact{
  grid-template-columns:38px minmax(112px,1fr) 30px;
  min-width:220px;
  min-height:58px;
}
.method-register--compact .method-register-code b{font-size:13px}
.method-register--compact .method-register-copy{padding-inline:10px}
.method-register.method-register--mini{
  grid-template-columns:32px minmax(96px,1fr) 27px;
  min-width:184px;
  min-height:40px;
}
.method-register--mini .method-register-code{gap:2px;padding:5px 3px}
.method-register--mini .method-register-code b{font-size:11px}
.method-register--mini .method-register-code i{font-size:10px}
.method-register--mini .method-register-copy{gap:0;padding:6px 9px}
.method-register--mini .method-register-copy b{font-size:10px}
.method-register--mini .method-register-copy small{display:none}
.method-register--mini .method-register-arrow{width:15px;height:15px}
.method-register.method-popout,
.method-register.ledger-action{
  padding:0;
  border:1px solid var(--method-register-accent);
  background:var(--method-register-ink);
  color:var(--mhc-on-ink-fill);
}
@media(max-width:640px){
  .inspect-method-pill{padding-inline:13px!important}
  .method-register:not(.method-register--mini){width:100%;min-width:0}
  .method-register.method-register--compact{min-width:0}
}
@media(prefers-reduced-motion:reduce){
  .inspect-method-pill,.inspect-method-pill svg,
  .method-register::before,
  .method-register-code,
  .method-register-copy small,
  .method-register-arrow{transition:none}
}

/* Method is the small center stop in the shared chapter pager, and it is
   deplated with the rest of that instrument. Its geometry is untouched; the
   accent it used to hold as a standing fill now arrives as the wash under the
   cursor, exactly as the two chapter cells beside it do, so the chapter's own
   gradient runs through all three at rest. */
.chapter-pager>.chapter-methods { grid-column:2; grid-row:1; display:grid; align-self:stretch; min-width:0; margin:0; width:auto; }
.chapter-methods a.chapter-method-link {
  --method-accent:var(--mhc-chapter-method-field);
  position:relative; isolation:isolate;
  display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:12px;
  width:100%; min-height:68px; box-sizing:border-box; padding:10px 14px;
  border:1px solid var(--chapter-pager-cell-edge,color-mix(in srgb,currentColor 20%,transparent)); border-radius:22px; background:rgba(var(--mhc-on-plate-rgb),.045);
  color:inherit; text-decoration:none; text-align:left; text-transform:none;
  box-shadow:none; transition:border-color .22s ease;
}
.chapter-pager .chapter-methods a.chapter-method-link::before {
  content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit;
  background:color-mix(in srgb,var(--method-accent) 40%,transparent);
  opacity:0; transition:opacity .2s ease; pointer-events:none;
}
.chapter-methods .chapter-method-copy { display:grid; min-width:0; }
.chapter-methods .chapter-method-copy strong { display:block; font:400 clamp(16px,1.55vw,20px)/1.05 Helvetica,'Helvetica Neue',Arial,sans-serif; letter-spacing:-.015em; color:inherit; }
.chapter-methods .chapter-method-arrow { display:none; }
.chapter-methods .chapter-method-symbol { flex:none; width:44px; height:44px; padding:10px; border:1px solid color-mix(in srgb,currentColor 42%,transparent); border-radius:50%; background:none; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.chapter-pager .chapter-methods a.chapter-method-link:is(:hover,:focus-visible) { border-color:color-mix(in srgb,var(--method-accent) 62%,transparent); }
/* Under Lumen the link keeps its wash and its edge, and the light falls
   inside them in the method's own color. */
.chapter-pager .chapter-methods a.chapter-method-link { --mhc-lumen-hover:keep; --mhc-lumen-tint:var(--method-accent); }
.chapter-pager .chapter-methods a.chapter-method-link:is(:hover,:focus-visible)::before { opacity:1; }
.chapter-methods a.chapter-method-link:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
:is(.frame-local-nav,.sum-local-nav,.reading-nav)[data-chapter-sequence-dock] { grid-template-columns:minmax(0,1fr) auto; }
body.chapter-reading .chapter-methods--routed a.chapter-method-link { display:none; }
body.chapter-reading[data-chapter="frames"] .chapter-methods--routed [data-method-chapter="frames"],
body.chapter-reading[data-chapter="summary"] .chapter-methods--routed [data-method-chapter="summary"],
body.chapter-reading[data-chapter="about"] .chapter-methods--routed [data-method-chapter="about"] { display:flex; }
/* Without route enhancement the combined document retains all three methods. */
body:not(.chapter-reading) .chapter-pager.chapter-pager--routed { display:grid!important; }
body:not(.chapter-reading) .chapter-pager--routed>.chapter-pager__link { display:none!important; }
body:not(.chapter-reading) .chapter-pager--routed>.chapter-methods { grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
@media(max-width:600px) {
  .chapter-methods a.chapter-method-link { min-height:68px; padding:10px 8px; gap:8px; border-radius:20px; flex-direction:column; align-items:center; }
  .chapter-methods .chapter-method-copy strong { font-size:13px; text-align:center; }
  .chapter-methods .chapter-method-symbol { width:30px; height:30px; padding:6px; }
}
@media(prefers-reduced-motion:reduce) { .chapter-methods a.chapter-method-link { transition:none; } }

/* The expanding hover field is Vial Cap orange in both themes. Its copy and
   arrow need the fixed dark accent foreground even when the page around them
   is dark; the field is too light to carry white. */
.method-register:is(:hover,:focus-visible) .method-register-copy,
.method-register:is(:hover,:focus-visible) .method-register-copy small,
.method-register:is(:hover,:focus-visible) .method-register-arrow {
  color: var(--mhc-on-accent);
}
