/* ============================================================
   bos-common.css — shared across all BOS pages
   Variables, reset, nav, lightbox, footer
   ============================================================ */

/* ── Reset & variables ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:           #0F2340;
  --navy-mid:       #1a3456;
  --gold:           #C4933F;
  --gold-light:     #E8BE7A;
  --cream:          #F7F4EE;
  --cream-dark:     #EDE8DF;
  --stone:          #C8C2B4;
  --stone-dark:     #A09890;
  --tree-line:      #57647a;
  --text-primary:   #1a1a18;
  --text-secondary: #4a4a42;
  --text-muted:     #7a7a70;
  --border:         rgba(15,35,64,0.1);
  --border-strong:  rgba(15,35,64,0.2);
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   26px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo img {
  height: 36px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.45);
  font-size: var(--fs-sm);
  min-width: 200px;
  cursor: text;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,10,18,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  font-family: inherit;
  transition: color 0.15s;
}
.lb-close:hover { color: #fff; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-family: inherit;
  transition: background 0.15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); color: #fff; }
.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }
.lb-img-wrap {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 210px);
  display: flex;
  align-items: center;
}
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 2px; }
.lb-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  max-width: 740px;
  width: 100%;
  padding: 0 16px;
}
.lb-meta-sci { font-size: var(--fs-md); color: rgba(255,255,255,0.9); margin-bottom: 6px; }
.lb-meta-detail { font-size: var(--fs-sm); color: rgba(255,255,255,0.5); line-height: 1.75; }
.lb-meta-detail span { color: rgba(255,255,255,0.28); margin-right: 6px; }
.lb-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; padding-top: 2px; }
.lb-badge { font-size: 11px; padding: 3px 9px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); white-space: nowrap; }
.lb-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.lb-tag { font-size: 11px; padding: 2px 7px; border-radius: 2px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }
.lb-counter { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: var(--fs-sm); color: rgba(255,255,255,0.3); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.38);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer a { color: rgba(255,255,255,0.38); text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 24px; }
