/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Base ──────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: #000a12;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #001219 0%, #001219 100%);
  border-bottom: 1px solid #00212f;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #65c7d2;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
.site-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.site-nav a {
  color: #6ac6d2;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: color 0.15s;
}
.site-nav a:hover { color: #65c7d2; }
.btn-login,
.btn-register {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
  line-height: 1.5;
  cursor: pointer;
}
.btn-login {
  border: 2px solid #65c7d2;
  color: #65c7d2;
  background: transparent;
}
.btn-login:hover { opacity: 0.7; }
.btn-register {
  border: 2px solid #65c7d2;
  background: #65c7d2;
  color: #fff;
}
.btn-register:hover { opacity: 0.85; }

/* ── Main ──────────────────────────────────────────────── */
.site-main {
  flex: 1;
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: #000408;
  color: #006064;
  border-top: 1px solid #00212f;
}
.site-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}
.site-footer-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #00bcd4;
}
.site-footer p {
  font-size: 0.8rem;
  color: #00bcd4;
}
.site-footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}
.site-footer-legal a {
  font-size: 0.75rem;
  color: #00bcd4;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-legal a:hover { color: #65c7d2; }

/* ── Content (matches .prose in preview) ───────────────── */
.content {
  font-size: 0.875rem;
  line-height: 1.7;
}
.content h1 { font-family: 'Rajdhani', sans-serif; font-size: 2rem;   font-weight: 700; line-height: 1.25; margin: 0.75rem 0 1rem; }
.content h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem;  font-weight: 700; line-height: 1.3;  margin: 0.75rem 0 0.75rem; }
.content h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 600; line-height: 1.4;  margin: 0.5rem  0 0.5rem; }
.content h4 { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem;  font-weight: 600; line-height: 1.4;  margin: 0.5rem  0 0.5rem; }
.content p  { margin: 0.5em 0; }
.content ul { list-style-type: disc;    padding-left: 1.5em; margin: 0.5em 0; }
.content ol { list-style-type: decimal; padding-left: 1.5em; margin: 0.5em 0; }
.content li { margin: 0.2em 0; }
.content blockquote {
  border-left: 3px solid #00212f;
  padding-left: 1em;
  color: #00bcd4;
  margin: 0.75em 0;
}
.content code {
  background: rgba(128,128,128,0.15);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}
.content pre {
  background: rgba(128,128,128,0.15);
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0.75em 0;
}
.content pre code { background: none; padding: 0; }
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin: 0.5em 0;
}
.content a { color: #65c7d2; text-decoration: underline; }
.content .img-overlay-figure { position: relative; display: block; margin: 0.5em 0; }
.content .img-overlay-figure img { width: 100%; display: block; margin: 0; }
.content .img-overlay-caption { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; white-space: nowrap; }
.content .img-overlay-caption a,
.content .img-overlay-caption span { display: inline-block; padding: 12px 32px; background: #65c7d2; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.03em; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.45); pointer-events: auto; }
.content .img-overlay-caption a:hover { opacity: 0.88; }
.content strong { font-weight: 700; }
.content em { font-style: italic; }
.content s  { text-decoration: line-through; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; table-layout: fixed; }
.content table td,
.content table th { border: 1px solid #00212f; padding: 8px 12px; vertical-align: top; word-break: break-word; }
.content table th {
  background: rgba(128,128,128,0.08);
  font-weight: 600;
  text-align: left;
}
.content table tr:nth-child(even) td { background: rgba(128,128,128,0.04); }
