/* Shared LCARS theme. Loaded by every page so colors, frame, typography stay in sync. */

:root {
  --bg: #000;
  --fg: #e0e8f5;
  --muted: #8aa0c4;
  --frame:    #6688cc;
  --blue:     #6688cc;
  --skyblue:  #99ccff;
  --lavender: #9999cc;
  --violet:   #cc99cc;
  --gold:     #ffcc66;
  --salmon:   #cc6666;
  --gap: 6px;
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Antonio', 'Helvetica Neue', 'Arial Narrow',
               'Liberation Sans Narrow', system-ui, sans-serif;
  font-stretch: condensed;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

a { color: var(--skyblue); }
a:hover { color: var(--gold); }

.lcars {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: 64px 1fr 28px;
  column-gap: 0;
  row-gap: var(--gap);
  padding: var(--gap);
  min-height: 100vh;
}

.frame-side {
  grid-row: 1 / 4;
  grid-column: 1;
  background: var(--frame);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.frame-top {
  grid-row: 1;
  grid-column: 2;
  background: var(--frame);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  color: #000;
  text-transform: uppercase;
  font-weight: 700;
}
.frame-top .title { font-size: 22px; letter-spacing: 0.08em; color: #000; text-decoration: none; }
.frame-top a.title:hover { color: #001a33; }
.frame-top .crumb {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #001a33;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.frame-top .crumb:hover { background: rgba(0, 0, 0, 0.32); color: #001a33; }
.frame-top .datecode {
  margin-left: auto;
  font-size: 14px;
  color: #001a33;
  letter-spacing: 0.12em;
}

.frame-bottom {
  grid-row: 3;
  grid-column: 2;
  background: var(--frame);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

main {
  grid-row: 2;
  grid-column: 2;
  padding: 28px 24px;
  overflow: auto;
}

.intro {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.pill {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.pill:hover { filter: brightness(1.1); color: #000; }
.pill.skyblue  { background: var(--skyblue); }
.pill.lavender { background: var(--lavender); }
.pill.violet   { background: var(--violet); }
.pill.gold     { background: var(--gold); }
.pill.salmon   { background: var(--salmon); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  background: #0a0a0a;
  transition: background 80ms;
}
.card:hover { background: #141414; color: inherit; }
.card .bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 14px;
  color: #000;
  text-transform: uppercase;
  font-weight: 700;
}
.card .code { font-size: 11px; letter-spacing: 0.14em; opacity: 0.7; }
.card .name { font-size: 16px; letter-spacing: 0.08em; }
.card .body { padding: 14px; font-size: 14px; line-height: 1.5; color: var(--fg); }

.c-blue     .bar { background: var(--blue); }
.c-skyblue  .bar { background: var(--skyblue); }
.c-lavender .bar { background: var(--lavender); }
.c-violet   .bar { background: var(--violet); }
.c-gold     .bar { background: var(--gold); }
.c-salmon   .bar { background: var(--salmon); }

footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Inline nav pills used inside legacy manual pages to replace the old
   GIF arrow icons (Prev / Next / Contents). */
.legacy-content .nav-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(102, 136, 204, 0.2);
  color: var(--skyblue);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-right: 8px;
  border: 1px solid rgba(102, 136, 204, 0.3);
}
.legacy-content .nav-pill:hover {
  background: rgba(102, 136, 204, 0.4);
  color: var(--gold);
  border-color: rgba(255, 204, 102, 0.5);
}
.legacy-content .nav-pill.disabled,
.legacy-content .nav-pill.disabled:hover {
  cursor: default;
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(138, 160, 196, 0.35);
  opacity: 0.55;
}

/* Year-section list pattern: a pill year header with a row of chip links underneath.
   Used by AtlantaJC master and atlos master. */
.year-section { margin-bottom: 26px; }
.year-section h2 {
  display: inline-block;
  padding: 6px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin: 0 0 12px;
}
.year-section .events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.year-section .event {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: #14213a;
  color: var(--skyblue);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background 80ms, border-color 80ms;
}
.year-section .event:hover {
  background: #1c2e54;
  color: var(--gold);
  border-color: rgba(255, 204, 102, 0.4);
}
.year-section .event em {
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
  font-size: 12px;
}
.year-section .event:hover em { color: var(--fg); }
.year-section .event .mark { color: var(--gold); margin-left: 4px; font-weight: 700; }
.year-section .event.no-link {
  background: transparent;
  border: 1px dashed rgba(138, 160, 196, 0.4);
  color: var(--muted);
  cursor: default;
}
.year-section .event.no-link:hover {
  background: transparent;
  color: var(--muted);
  border-color: rgba(138, 160, 196, 0.4);
}

@media (max-width: 600px) {
  .lcars {
    grid-template-columns: 14px 1fr;
    grid-template-rows: 44px 1fr 14px;
  }
  .frame-top { padding: 0 12px; gap: 8px; }
  .frame-top .title { font-size: 18px; }
  .frame-top .crumb { font-size: 10px; padding: 3px 10px; }
  .frame-top .datecode { font-size: 11px; }
  main { padding: 18px 12px; }
}
