/* Tenebris extras: unobtrusive, progressive improvements; no external assets. */
/* The navigation search is hidden until JavaScript discovers working routes. */
.tn-topnav .tn-quicknav-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #47556d;
  border-radius: 4px;
  background: #1a2a3e;
  color: #edd09c;
  font: 24px/1 Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}
.tn-topnav .tn-quicknav-trigger:hover { border-color: #bda06a; background: #2a3a50; color: #ffe0ab; }
.tn-topnav .tn-quicknav-trigger[hidden] { display: none !important; }
.tn-quicknav-trigger-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tn-quicknav-dialog {
  width: min(530px, calc(100% - 24px));
  max-height: min(75vh, 650px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #8d7857;
  border-radius: 6px;
  background: #101c2d;
  color: #e4eaf4;
  box-shadow: 0 25px 90px #000c, inset 0 1px #ffffff12;
  font: 14px/1.5 system-ui, "Segoe UI", Arial, sans-serif;
}
.tn-quicknav-dialog::backdrop { background: rgba(2, 5, 10, .78); backdrop-filter: blur(3px); }
.tn-quicknav-shell { padding: 22px; }
.tn-quicknav-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tn-quicknav-eyebrow { color: #bfa06b; font: 700 10px/1.4 system-ui,sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.tn-quicknav-heading h2 { margin: 3px 0 0; color: #edd098; font: normal 27px/1.3 Georgia,serif; }
.tn-quicknav-close { flex: 0 0 35px; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #43516b; border-radius: 3px; background: #16263c; color: #d8e0ec; font-size: 22px; line-height: 1; cursor: pointer; }
.tn-quicknav-close:hover { background: #293b53; color: #f3d4a0; }
.tn-quicknav-search-label { display: block; margin-bottom: 6px; color: #d9be8d; font-size: 12px; font-weight: 650; }
.tn-quicknav-search { display: block; width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #6b6c69; border-radius: 3px; background: #0b1422; color: #f2f3f6; font: 15px system-ui,sans-serif; }
.tn-quicknav-search:focus-visible, .tn-quicknav-close:focus-visible, .tn-quicknav-result:focus-visible { outline: 2px solid #e4bd77; outline-offset: 2px; }
.tn-quicknav-search::placeholder { color: #91a3bb; }
.tn-quicknav-hint { margin: 8px 0 17px; color: #9bacc2; font-size: 11px; }
.tn-quicknav-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tn-quicknav-results li { margin: 0; padding: 0; }
.tn-quicknav-result { display: grid; grid-template-columns: minmax(0,1fr) auto 14px; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 3px; color: #e5e8ee; text-decoration: none; background: #17263a; }
.tn-quicknav-result:hover, .tn-quicknav-result:focus-visible { border-color: #846d4f; background: #253750; }
.tn-quicknav-result-title { overflow-wrap: anywhere; font-weight: 650; }
.tn-quicknav-result-category { color: #aebfd3; font-size: 11px; }
.tn-quicknav-result-arrow { color: #d6b577; }
.tn-quicknav-empty { margin: 10px 0; padding: 13px; color: #b3c4d5; text-align: center; }
.tn-quicknav-empty[hidden] { display: none; }
.tn-quicknav-foot { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #364960; color: #93a7bf; font-size: 11px; }
.tn-quicknav-foot span { margin-right: auto; }
.tn-quicknav-foot kbd { display: inline-flex; justify-content: center; min-width: 24px; padding: 3px 6px; border: 1px solid #4b5b70; border-radius: 3px; background: #1d2a3b; color: #d7e0ed; font: inherit; }
.tn-page-progress {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg,#8c6935,#ebc378);
  pointer-events: none;
}
.tn-page-progress[hidden] { display: none; }
.tn-rashid-panel .tn-rashid-schedule dl div.is-today { margin: 0 -5px; padding: 5px; border-left: 2px solid #d4ab67; background: #24354b; }
.tn-rashid-today-mark { display: inline-block; padding-left: 4px; color: #ebc77f; font-size: 9px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 920px) {
  .tn-topnav .tn-quicknav-trigger { position: relative; top: auto; right: auto; transform: none; align-self: center; margin: 9px 4px; }
}
@media (max-width: 520px) {
  .tn-quicknav-shell { padding: 15px; }
  .tn-quicknav-dialog { max-height: 85vh; }
  .tn-quicknav-result { grid-template-columns: minmax(0,1fr) 14px; }
  .tn-quicknav-result-category { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-quicknav-dialog::backdrop { backdrop-filter: none; }
}
