/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Georgia', serif; font-size: 16px; color: #212121; background: #ffffff; line-height: 1.65; }

/* Header */
header { background: #1a1a1a; color: #ffffff; padding: 0; border-bottom: 4px solid #FFD54F; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 20px 24px; }
.site-title { color: #FFD54F; text-decoration: none; font-size: 1.7rem; font-weight: 700; font-family: 'Courier New', monospace; letter-spacing: 1px; text-shadow: 0 0 10px rgba(255,213,79,0.3); }

/* Nav */
nav { background: #2a2a2a; border-bottom: 2px solid #333; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; padding: 0 24px; }
.nav-item { position: relative; }
.nav-link { display: block; color: #cccccc; text-decoration: none; padding: 12px 16px; font-size: 0.9rem; font-family: 'Courier New', monospace; }
.nav-link:hover { color: #FFD54F; background: #1a1a1a; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #2a2a2a; min-width: 220px; z-index: 100; box-shadow: 0 4px 8px rgba(0,0,0,0.5); border: 1px solid #444; }
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; color: #cccccc; text-decoration: none; padding: 10px 16px; font-size: 0.88rem; font-family: 'Courier New', monospace; border-top: 1px solid #444; }
.dropdown a:hover { background: #1a1a1a; color: #FFD54F; }

/* Main content */
.container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
h1 { font-size: 1.9rem; font-weight: 700; color: #212121; margin-bottom: 20px; font-family: 'Courier New', monospace; }
h2 { font-size: 1.4rem; font-weight: 700; color: #333; margin-top: 32px; margin-bottom: 12px; font-family: 'Courier New', monospace; border-bottom: 2px solid #FFD54F; padding-bottom: 6px; display: inline-block; }
h3 { font-size: 1.1rem; font-weight: 600; color: #444; margin-top: 24px; margin-bottom: 8px; }
p { margin-bottom: 16px; }
a { color: #b8860b; }
a:hover { color: #FFD54F; }
ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 6px; }

/* Code */
code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-family: 'Courier New', monospace; font-size: 0.9em; color: #333; }
pre { background: #1e1e1e; color: #d4d4d4; padding: 20px; border-radius: 4px; overflow-x: auto; margin: 16px 0; border-left: 4px solid #FFD54F; }
pre code { background: none; padding: 0; color: #d4d4d4; font-size: 0.88em; line-height: 1.5; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 16px 0; }
th { background: #FFD54F; color: #212121; padding: 10px 14px; text-align: left; font-family: 'Courier New', monospace; }
td { padding: 9px 14px; border-bottom: 1px solid #eee; }
tr:hover td { background: #fffde7; }

/* Home */
.home-content { font-size: 1.05rem; }

/* Page list */
.page-list { list-style: none; margin: 0; padding: 0; }
.page-list li { border-bottom: 1px solid #eee; }
.page-list li a { display: block; padding: 10px 0; color: #b8860b; text-decoration: none; font-family: 'Courier New', monospace; }
.page-list li a:hover { color: #212121; }

/* Footer */
footer { background: #1a1a1a; color: #888; padding: 24px; text-align: center; margin-top: 40px; border-top: 2px solid #FFD54F; }
footer a { color: #FFD54F; text-decoration: none; }
footer a:hover { color: #ffffff; }
footer p { font-size: 0.9rem; font-family: 'Courier New', monospace; }

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { flex-direction: column; }
  .dropdown { position: static; box-shadow: none; }
}
