/* Site-wide pixel theme — re-synced to the approved v6 homepage look (2026-11-26):
   deep-space background #0a0616, panels #171129, borders #2c2149, pastel mint headings.
   (Originally synced from the approved homepage look (home.css, 2026-11-20).
   Loaded AFTER style.css on every page except the homepage (which uses home.css).
   Same navy surfaces, same Press Start 2P for headings/labels/nav, same green accents.
   Body text stays in the readable sans from style.css (Press Start 2P has no Vietnamese
   diacritics and is hard to read in long form). */

body { background: #0a0616; }

/* Header / nav — identical to homepage */
.nav { background: rgba(10, 6, 22, .94); border-bottom-color: #2c2149; }
.brand-pixel {
  font-family: "Press Start 2P", monospace;
  font-size: 1rem; color: #fff; letter-spacing: .02em;
}
.brand-pixel:hover { text-decoration: none; color: #2ee06f; }
.badge-new {
  font-family: "Press Start 2P", monospace; font-size: .5rem;
  color: #2ee06f; border: 1px solid #2ee06f; border-radius: 3px;
  padding: .2rem .3rem; margin-left: .4rem; vertical-align: middle;
  white-space: nowrap;
}

/* Headings — pixel font, homepage sizing logic (long article titles get the smaller size) */
h1 {
  font-family: "Press Start 2P", monospace;
  font-size: 1.35rem; line-height: 1.65; color: #fff; letter-spacing: 0;
}
.hero h1 { font-size: 1.9rem; line-height: 1.55; }
h2 {
  font-family: "Press Start 2P", monospace;
  font-size: .95rem; line-height: 1.7; color: #a9e6cf;
  margin-top: 2.6rem; letter-spacing: 0;
}
.hero .tagline { color: #2ee06f; }

/* Surfaces — navy cards like the homepage agent cards */
.card, .step, .player, .tab { background: #171129; border-color: #2c2149; }
.honest { background: #1d1533; }
.embed-slot { background: #171129; }
.form-ok { background: #0d1f16; }
pre { background: #120c26; border-color: #2c2149; }
.field input { background: #120c26; border-color: #2c2149; }
.tab.active { background: #241a3f; }
.tab.active.before-tab { background: #2a1414; }
.tab.active.after-tab { background: #0f2417; }
.btn-ghost { background: #171129; border-color: #2c2149; }
.btn-ghost:hover { border-color: #2ee06f; }

/* Tables */
th, td { border-color: #2c2149; }
th { background: #171129; }

/* Labels */
.badge {
  font-family: "Press Start 2P", monospace; font-size: .55rem;
  border-color: #2ee06f; color: #2ee06f; border-radius: 3px;
  padding: .25rem .5rem;
}
.step .n { font-family: "Press Start 2P", monospace; font-size: .6rem; color: #2ee06f; }
.post-list li { border-bottom-color: #2c2149; }
.post-list .date { color: #aca3c9; }

/* Footer — identical border to homepage */
footer { border-top-color: #2c2149; }

@media (max-width: 640px) {
  h1 { font-size: 1.05rem; }
  .hero h1 { font-size: 1.3rem; }
  h2 { font-size: .8rem; }
}

/* Projects dropdown in the shared nav — click to toggle, identical on desktop
   and mobile (Minh's call, 2026-11-22: no separate mobile menu). */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--muted); font-size: 0.95rem; font-family: inherit;
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--text); }
.nav-arrow { font-size: .7rem; color: #2ee06f; display: inline-block; transition: transform .15s; }
.nav-drop-btn[aria-expanded="true"] .nav-arrow { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute; top: calc(100% + .6rem); right: 0; min-width: 215px;
  background: #171129; border: 1px solid #2c2149; border-radius: 8px;
  padding: .4rem; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.nav-drop-panel[hidden] { display: none; }
.nav-drop-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .7rem; border-radius: 6px; color: var(--text); font-size: .95rem;
}
.nav-drop-panel a:hover { background: #241a3f; text-decoration: none; }
.drop-tag {
  font-family: "Press Start 2P", monospace; font-size: .5rem;
  border: 1px solid #2ee06f; color: #2ee06f; border-radius: 3px; padding: .2rem .3rem;
}
.drop-tag.tag-free { border-color: #6b76a8; color: #9aa3b5; }
