main a:is(.text-link,.button.secondary),.service-board-links a {
  text-decoration:underline;
  text-underline-offset:.21em;
  text-decoration-color:#9b6744;
  text-decoration-thickness:1px;
}
main a:is(.text-link,.button.secondary):hover,.service-board-links a:hover {text-decoration-thickness:2px}
:is(.masthead,.foundry-frame-head,main) a:focus-visible,.service-board-index a:focus-visible {
  outline:3px solid #b44b12;outline-offset:3px;
}
/* Bring up the wood grain beneath the journal while keeping the black marks crisp. */
body.route-log .workbench .desk-grain {background:#a97d52}
body.route-log .workbench .desk-grain img {opacity:.73;filter:brightness(1.48) saturate(.82)}
body.route-log .workbench::after {background:linear-gradient(0deg,#ce9b68b8,#d8a47091 58%,transparent)}
body.route-log .workbench>ul:not(.desk-stamps) a {color:#fff0ce;text-shadow:0 1px 2px #28160a}
.portal-mode.route-log .workbench .desk-stamps .zf-social-button::before {background:#fff0d5;border-color:#b38d5b}
.portal-mode.route-log .workbench .desk-stamps .zf-social-button img {width:17px;height:17px}

/* Personnel roller. The two wire loops stay on the frame as the chosen file tips up. */
.route-crew .prop-held[data-kind=folder] .prop-leaves{
  position:relative;isolation:isolate;perspective:1100px;padding-top:10px;
  box-shadow:0 2px #c5a66f,0 4px #735939,0 6px #d7c296,0 8px 12px #261b1770;
}
.route-crew .prop-held[data-kind=folder] .prop-leaves::before,
.route-crew .prop-held[data-kind=folder] .prop-leaves::after{
  content:"";position:absolute;z-index:2;top:1px;width:12px;height:20px;
  box-sizing:border-box;border:3px solid #776853;border-top-color:#e4d8be;
  border-left-color:#b4a78f;border-radius:55%;box-shadow:1px 2px 2px #30211477;
  pointer-events:none;
}
.route-crew .prop-held[data-kind=folder] .prop-leaves::before{left:25%}
.route-crew .prop-held[data-kind=folder] .prop-leaves::after{right:25%}
.route-crew .prop-held[data-kind=folder] .prop-leaf.is-current{transform-origin:50% 9px}

/* Journal. Layer the cut edges outside the writing area and turn from the binding. */
.route-log .prop-held[data-kind=book] .prop-leaves{
  position:relative;perspective:1500px;
  box-shadow:inset 0 0 0 2px #16291f,0 2px #e9ddbd,0 3px #9e8965,0 5px #e6d6b4,0 6px #998061,0 9px #23392e;
}
.route-log .prop-held[data-kind=book] .prop-leaf{backface-visibility:hidden}
@media(prefers-reduced-motion:no-preference){
 .route-crew .prop-held[data-kind=folder][data-turning=forward] .prop-leaf.is-current{animation:file-tip .44s cubic-bezier(.16,.72,.25,1)}
 .route-crew .prop-held[data-kind=folder][data-turning=back] .prop-leaf.is-current{animation:file-back .38s ease-out}
 .route-log .prop-held[data-kind=book][data-turning] .prop-leaf.is-current{animation:none}
 .route-log .prop-held[data-kind=book][data-turning=forward] .prop-leaf:is([data-side=left],[data-side=""]).is-current{transform-origin:right center;animation:journal-forward .50s ease-out}
 .route-log .prop-held[data-kind=book][data-turning=back] .prop-leaf:is([data-side=right],[data-side=""]).is-current{transform-origin:left center;animation:journal-back .50s ease-out}
}
@keyframes file-tip{
 from{transform:rotateX(-65deg);filter:brightness(.72)}
 68%{transform:rotateX(4deg);filter:brightness(1.04)}
 to{transform:none;filter:none}
}
@keyframes file-back{from{transform:rotateX(40deg);filter:brightness(.83)}to{transform:none;filter:none}}
@keyframes journal-forward{
 from{transform:rotateY(78deg);border-radius:14% 1px 1px 9%;filter:brightness(.72)}
 58%{border-radius:6% 1px 1px 4%;filter:brightness(.95)}
 to{transform:none;filter:none}
}
@keyframes journal-back{
 from{transform:rotateY(-78deg);border-radius:1px 14% 9% 1px;filter:brightness(.72)}
 58%{border-radius:1px 6% 4% 1px;filter:brightness(.95)}
 to{transform:none;filter:none}
}
