﻿/* Kraybazaar — bookmark ribbon navbar (site-wide) */

body.ox-lintel-site {
  --ox-night: #10151d;
  --ox-night-2: #181f2a;
  --ox-coral: #ff5a3c;
  --ox-aqua: #1fb8ad;
  --ox-gold: #e2b13c;
  --ox-violet: #7a5cff;
  --ox-blush: #e56b8a;
  --ox-display: "Syne", "Segoe UI", sans-serif;
  --ox-sans: "Outfit", "Segoe UI", sans-serif;
  --ox-mono: "DM Mono", ui-monospace, monospace;
  --ox-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ox-nav-h: 7.75rem;
}

body.ox-lintel-site .a71-root-bare,
body.ox-lintel-site .a71-root {
  padding-top: 0;
}

body.ox-lintel-site .a71-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
}

body.ox-lintel-site .a71-shell {
  width: min(var(--a71-max, 1180px), calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.35rem 0 2.5rem;
}
/* â€”â€” Lintel + hanging bookmark ribbons â€”â€” */

.ox-lintel {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 1.1rem;
  background: #0c1016;
  color: #eef2f7;
}

.ox-seal {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  align-items: center;
  padding: 0.35rem 0 0.85rem;
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: inherit;
}

.ox-seal-ring {
  grid-row: 1 / 3;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--ox-coral), var(--ox-gold), var(--ox-aqua), var(--ox-violet), var(--ox-coral));
  box-shadow: 0 0 0 3px #0c1016, 0 8px 22px rgba(255, 90, 60, 0.28);
  animation: ox-spin 14s linear infinite;
}

.ox-seal strong {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  font-family: var(--ox-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #0c1016;
}

.ox-seal em {
  grid-column: 2;
  grid-row: 1 / 3;
  font-style: normal;
  font-family: var(--ox-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ox-ribbons {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 0.55rem;
  min-height: 6.8rem;
  padding-top: 0;
}

.ox-ribbon {
  --ox-tone: var(--ox-coral);
  position: relative;
  width: 3.15rem;
  height: calc(4.6rem + var(--ox-i) * 0.38rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: ox-sway 4.4s var(--ox-ease) calc(var(--ox-i) * 0.18s) infinite alternate;
  text-decoration: none;
  color: inherit;
}

.ox-ribbon-coral { --ox-tone: var(--ox-coral); }
.ox-ribbon-aqua { --ox-tone: var(--ox-aqua); }
.ox-ribbon-gold { --ox-tone: var(--ox-gold); }
.ox-ribbon-violet { --ox-tone: var(--ox-violet); }
.ox-ribbon-blush { --ox-tone: var(--ox-blush); }
.ox-ribbon-slate { --ox-tone: #8fa0b5; }

.ox-ribbon-silk {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 38%, transparent 62%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, color-mix(in srgb, var(--ox-tone) 88%, #fff) 0%, var(--ox-tone) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 50% 100%, 0 calc(100% - 14px));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 18px rgba(0, 0, 0, 0.28);
  transition: filter 0.35s var(--ox-ease), transform 0.35s var(--ox-ease);
}

.ox-ribbon-stitch {
  position: absolute;
  top: 0.35rem;
  bottom: 1.4rem;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.ox-ribbon-mark {
  position: relative;
  z-index: 1;
  margin-top: 0.7rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--ox-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(10, 12, 16, 0.72);
  pointer-events: none;
}

.ox-aglet {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translate(-50%, 70%) rotate(-8deg);
  width: max-content;
  max-width: 7.2rem;
  padding: 0.38rem 0.55rem 0.42rem;
  border-radius: 0.45rem 0.45rem 0.7rem 0.7rem;
  background: #0b0f15;
  color: #f4f7fb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ox-ease), transform 0.35s var(--ox-ease);
  z-index: 3;
}

.ox-aglet b {
  display: block;
  font-family: var(--ox-display);
  font-size: 0.78rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ox-aglet small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.62rem;
  color: #9aa6b5;
}

.ox-aglet-count {
  position: absolute;
  top: -0.45rem;
  right: -0.4rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 99px;
  background: var(--ox-coral);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  display: grid;
  place-items: center;
  font-family: var(--ox-mono);
}

.ox-ribbon:hover,
.ox-ribbon:focus-visible,
.ox-ribbon-more.is-open {
  height: 7.6rem;
  animation: none;
  z-index: 4;
}

.ox-ribbon:hover .ox-ribbon-silk,
.ox-ribbon:focus-visible .ox-ribbon-silk,
.ox-ribbon-more.is-open .ox-ribbon-silk {
  filter: brightness(1.12) saturate(1.08);
  transform: scaleX(1.06);
}

.ox-ribbon:hover .ox-aglet,
.ox-ribbon:focus-visible .ox-aglet,
.ox-ribbon-more.is-open .ox-aglet {
  opacity: 1;
  transform: translate(-50%, 88%) rotate(0deg);
}

.ox-ribbon:focus-visible {
  outline: none;
}

.ox-ribbon:focus-visible .ox-ribbon-silk {
  box-shadow: 0 0 0 3px #0c1016, 0 0 0 5px var(--ox-tone);
}

.ox-ribbon-more {
  width: 3.15rem;
}

.ox-more-pull {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  color: inherit;
}

.ox-cloth {
  position: absolute;
  top: calc(100% + 1.35rem);
  left: 50%;
  transform: translateX(-72%);
  width: min(18rem, 72vw);
  padding: 0.9rem 1rem 1rem;
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--ox-night-2) 92%, #fff);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 0.15rem;
  z-index: 6;
}

.ox-cloth[hidden] { display: none; }

.ox-cloth-kicker {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b97a6;
  font-family: var(--ox-mono);
}

.ox-cloth-kicker:first-child { margin-top: 0; }

.ox-cloth a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.35rem;
  border-radius: 0.5rem;
  color: #eef2f7;
  font-size: 0.92rem;
  transition: background 0.2s var(--ox-ease), padding-left 0.2s var(--ox-ease);
}

.ox-cloth a:hover,
.ox-cloth a:focus-visible {
  background: rgba(255, 90, 60, 0.16);
  padding-left: 0.55rem;
  outline: none;
}

.ox-lintel-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.ox-seek {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  width: 14.5rem;
  transition: width 0.35s var(--ox-ease), background 0.25s, border-color 0.25s;
}

.ox-seek:focus-within {
  width: 17.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ox-aqua);
}

.ox-seek input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f4f7fb;
  padding: 0.48rem 0.8rem;
  outline: none;
}

.ox-seek input::placeholder { color: #8b97a6; }

.ox-seek button {
  border: 0;
  background: var(--ox-aqua);
  color: #062321;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.48rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ox-seek button:hover { background: #2ad4c7; }

.ox-clock {
  margin: 0;
  display: grid;
  font-family: var(--ox-mono);
  font-size: 0.68rem;
  color: #9aa6b5;
  line-height: 1.15;
  min-width: 3.2rem;
}

.ox-clock time {
  color: #eef2f7;
  font-size: 0.92rem;
}

.ox-folio {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  place-items: center;
  gap: 0.22rem;
  flex-direction: column;
}

.ox-folio span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: #eef2f7;
  border-radius: 2px;
  transition: transform 0.3s var(--ox-ease), opacity 0.2s;
}

.ox-folio[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.ox-folio[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ox-folio[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.ox-cloth-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 10, 14, 0.45);
  backdrop-filter: blur(4px);
}

.ox-cloth-scrim[hidden] { display: none; }
.ox-ribbon.is-on,
.ox-ribbon.is-on:hover {
  height: 7.6rem;
  animation: none;
  z-index: 4;
}

.ox-ribbon.is-on .ox-ribbon-silk,
.ox-ribbon.is-on:hover .ox-ribbon-silk {
  filter: brightness(1.12) saturate(1.08);
  transform: scaleX(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 2px var(--ox-tone), 0 10px 18px rgba(0, 0, 0, 0.28);
}

.ox-ribbon.is-on .ox-aglet,
.ox-ribbon.is-on:hover .ox-aglet {
  opacity: 1;
  transform: translate(-50%, 88%) rotate(0deg);
}

.ox-cloth a.is-on {
  background: rgba(255, 90, 60, 0.16);
  padding-left: 0.55rem;
}

@keyframes ox-sway {
  from { transform: rotate(-2.4deg); }
  to { transform: rotate(2.1deg); }
}

@keyframes ox-spin {
  to { transform: rotate(1turn); }
}

@media (max-width: 760px) {
  body.ox-lintel-site { --ox-nav-h: 4.25rem; }

  .ox-lintel {
    grid-template-columns: 1fr auto;
    padding: 0.55rem 0.85rem 0.85rem;
    background: #0c1016;
  }
  .ox-seek { display: none; }
  .ox-clock { display: none; }
  .ox-folio {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }
  .ox-ribbons {
    position: fixed;
    inset: 4.4rem 0.7rem auto;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    background: #141a24;
    border-radius: 1.1rem;
    padding: 1rem 0.8rem 1.4rem;
    min-height: 0;
    gap: 1.1rem 0.5rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    z-index: 85;
  }
  body.ox-lintel-open .ox-ribbons { display: grid; }
  .ox-ribbon,
  .ox-ribbon:hover,
  .ox-ribbon-more {
    width: auto;
    height: 5.4rem;
    animation: none;
  }
  .ox-aglet,
  .ox-ribbon:hover .ox-aglet,
  .ox-ribbon-more.is-open .ox-aglet,
  .ox-ribbon.is-on .ox-aglet {
    opacity: 1;
    transform: translate(-50%, 92%) rotate(0);
  }
  .ox-cloth {
    position: static;
    transform: none;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 2.2rem;
  }
}

@media (min-width: 761px) {
  .ox-ribbon-more.is-open { z-index: 8; }
}

