/* Shared styles for the OpenSage blog index and post pages */

.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

html[data-theme="light"] .blog-title {
  color: #1a202c;
}

.blog-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--cyber-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cyber-border);
}

.blog-meta a {
  color: var(--cyber-cyan);
  text-decoration: none;
}

.blog-meta a:hover {
  text-decoration: underline;
}

.blog-content h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.blog-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 2rem 0 0.75rem;
}

html[data-theme="light"] .blog-content h2,
html[data-theme="light"] .blog-content h3 {
  color: #1a202c;
}

.blog-content p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--cyber-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--cyber-text);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.4rem;
}

.blog-content strong {
  color: #ffffff;
}

html[data-theme="light"] .blog-content strong {
  color: #1a202c;
}

.blog-content a {
  color: var(--cyber-cyan);
  text-decoration: none;
}

.blog-content a:hover {
  text-decoration: underline;
}

.blog-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--cyber-surface);
  border: 1px solid var(--cyber-border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--cyber-cyan);
}

.blog-content hr {
  border: none;
  border-top: 1px solid var(--cyber-border);
  margin: 2.5rem 0;
}

.blog-back {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyber-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.blog-back:hover {
  color: #00d4ff;
}

.blog-figure {
  text-align: center;
  margin: 2rem 0;
}

.blog-hero {
  margin-top: 0.5rem;
}

.blog-hero img {
  width: 100%;
}

.blog-figure img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--cyber-border);
}

/* CTF post: figures carry on-image text that is hard to read against the
   dark page background, so give them a light backing in dark theme only
   (light theme already has a light page background). The hero banner is
   excluded since it is a full-bleed designed image. */
html:not([data-theme="light"]) .blog-article--ctf .blog-figure:not(.blog-hero) img {
  background: #e9edf2;
  padding: 0.75rem;
}

.blog-figure figcaption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--cyber-muted);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.6;
}

.blog-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--cyber-border);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
}

.blog-table th {
  background: var(--cyber-surface2);
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--cyber-border);
  white-space: nowrap;
}

.blog-table td {
  padding: 0.5rem 0.75rem;
  color: var(--cyber-text);
  border-bottom: 1px solid rgba(0,212,255,0.08);
}

.blog-table tr:last-child td {
  border-bottom: none;
}

.blog-table tr:hover td {
  background: rgba(0,212,255,0.04);
}

html[data-theme="light"] .blog-table th {
  background: #e2e8f0;
  color: #1a202c;
}

html[data-theme="light"] .blog-table td {
  border-bottom-color: #e2e8f0;
}

.blog-citation {
  background: var(--cyber-surface);
  border: 1px solid var(--cyber-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.blog-citation pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyber-text);
  white-space: pre;
  line-height: 1.6;
}

.blog-index-card {
  background: var(--cyber-surface);
  border: 1px solid var(--cyber-border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.blog-index-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: var(--cyber-surface2);
  transform: translateY(-2px);
}

.blog-index-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--cyber-muted);
  margin-bottom: 0.5rem;
}

.blog-index-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

html[data-theme="light"] .blog-index-title {
  color: #1a202c;
}

.blog-index-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--cyber-muted);
  line-height: 1.6;
}

.page-title {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

html[data-theme="light"] .page-title {
  color: #1a202c;
}
</content>
</invoke>
