/* ==========================================================================
   Minimalist Engineering Portfolio & Blog Design System
   Handcrafted, quiet typography, zero AI marketing cliches
   ========================================================================== */

:root {
  --bg: #0d1117;
  --bg-subtle: #161b22;
  --bg-card: #161b22;
  --border: #30363d;
  --border-subtle: #21262d;
  --text-main: #e6edf3;
  --text-dim: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --accent-green: #3fb950;
  --accent-gold: #d29922;
  --code-bg: #161b22;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max-w: 740px;
  --max-w-wide: 1040px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-card: #f6f8fa;
  --border: #d0d7de;
  --border-subtle: #eaeef2;
  --text-main: #1f2328;
  --text-dim: #59636e;
  --text-muted: #8c959f;
  --accent: #0969da;
  --accent-hover: #0550ae;
  --accent-green: #1a7f37;
  --accent-gold: #9a6700;
  --code-bg: #f6f8fa;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0 1.5rem 5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Page Containers */
.site-wrap,
.clean-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.resume-wrap {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

/* Top Navigation */
.site-header,
.clean-nav,
.resume-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.site-title,
.clean-brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-title:hover,
.clean-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav,
.clean-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a,
.clean-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.clean-links a:hover,
.site-nav a.active,
.clean-links a.active {
  color: var(--text-main);
}

.theme-toggle,
.clean-theme-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.theme-toggle:hover,
.clean-theme-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

/* Intro / Hero Section */
.intro-section,
.clean-hero {
  margin-bottom: 3.5rem;
}

.intro-heading,
.clean-name {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.intro-subheading,
.clean-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.intro-bio,
.clean-bio {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.intro-bio strong,
.clean-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Certifications Summary Row */
.certifications-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.cert-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
}

.cert-line-muted {
  color: var(--text-muted);
}

.cert-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-line-muted .cert-label {
  color: var(--text-muted);
}

.cert-item {
  color: var(--text-main);
}

.cert-line-muted .cert-item {
  color: var(--text-dim);
}

.cert-sep {
  color: var(--border);
  user-select: none;
}

/* Contact Links Row */
.contact-row,
.clean-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-row a,
.clean-contact-links a {
  color: var(--text-dim);
}

.contact-row a:hover,
.clean-contact-links a:hover {
  color: var(--accent);
}

.text-btn,
.copy-email-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover,
.copy-email-btn:hover {
  color: var(--accent-hover);
}

/* Content Sections */
.content-section,
.clean-section {
  margin-bottom: 4rem;
}

.section-header,
.clean-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.section-header h2,
.clean-heading span:first-child {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-meta,
.clean-heading span:last-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Journal / Writing List (Minimalist Clean Rows) */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-row,
.clean-post-item {
  display: flex;
  gap: 1.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}

.post-row:last-child,
.clean-post-item:last-child {
  border-bottom: none;
}

.post-date,
.clean-post-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 75px;
  flex-shrink: 0;
}

.post-main,
.clean-post-content {
  flex: 1;
}

.post-link,
.clean-post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.post-row:hover .post-link,
.clean-post-item:hover .clean-post-title {
  color: var(--accent);
  text-decoration: underline;
}

.post-summary,
.clean-post-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 0.15rem;
}

/* Competencies Blocks */
.competency-block,
.clean-role {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.competency-block:last-child,
.clean-role:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.competency-title,
.clean-role-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.clean-bullet-list,
.clean-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.clean-bullet-list li,
.clean-role-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.clean-bullet-list li::before,
.clean-role-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.clean-bullet-list strong,
.clean-role-list strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Threat Radar Section & Table */
.radar-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.radar-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}

.clean-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  background: var(--bg);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.clean-table th {
  background: var(--bg-subtle);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.clean-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dim);
  vertical-align: middle;
}

.clean-table tr.attack-row {
  cursor: pointer;
}

.clean-table tr.attack-row:hover {
  background: var(--bg-subtle);
}

.clean-table code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--text-main);
}

.attack-detail-card {
  padding: 0.85rem;
  background: var(--bg-subtle);
  font-size: 0.82rem;
  line-height: 1.55;
  border-left: 2px solid var(--accent);
}

/* ==========================================================================
   Resume Page Layout (2-Column with Clean Sticky Table of Contents)
   ========================================================================== */

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 3.5rem;
  align-items: start;
}

.resume-main {
  min-width: 0;
}

.resume-back-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
}

.resume-back-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.resume-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.resume-action-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.resume-action-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

/* Sticky Sidebar TOC */
.resume-sidebar {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.resume-toc-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.resume-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.resume-toc-link {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.3rem 0 0.3rem 0.75rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition: all 0.15s ease;
}

.resume-toc-link:hover {
  color: var(--text-main);
}

.resume-toc-link.active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

.resume-toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-toc-sublink {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0 0.2rem 1.25rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition: all 0.15s ease;
}

.resume-toc-sublink:hover {
  color: var(--text-dim);
}

.resume-toc-sublink.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Resume Content Blocks */
.resume-section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.resume-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.resume-contact-bar a {
  color: var(--text-dim);
}

.resume-contact-bar a:hover {
  color: var(--accent);
}

.resume-lead-text {
  font-size: 0.98rem;
  color: var(--text-dim);
  line-height: 1.68;
  margin-bottom: 1.5rem;
}

.resume-lead-text strong {
  color: var(--text-main);
}

/* Resume Roles */
.resume-role {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 2rem;
}

.resume-role:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-role-header {
  margin-bottom: 0.65rem;
}

.resume-role-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.resume-role-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.resume-role-company {
  color: var(--text-main);
  font-weight: 500;
}

.resume-focus-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.resume-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.resume-focus-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.resume-focus-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.resume-focus-list li strong {
  color: var(--text-main);
}

.resume-tech-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.resume-tech-label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.tech-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* Certifications on Resume */
.resume-certs-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.resume-cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-cert-row:last-child {
  border-bottom: none;
}

.resume-cert-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.resume-cert-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.resume-cert-status.active {
  color: var(--accent-green);
  font-weight: 600;
}

/* Skills Categories on Resume */
.resume-skills-group {
  margin-bottom: 1.15rem;
}

.resume-skills-group:last-child {
  margin-bottom: 0;
}

.resume-skills-group-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.skill-tag-line {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ==========================================================================
   Blog Catalog List & Reader (blog.html)
   ========================================================================== */

.clean-post-item {
  display: flex;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.15s ease;
  align-items: baseline;
}

.clean-post-item:hover .clean-post-title span:first-child {
  color: var(--accent);
  text-decoration: underline;
}

.clean-post-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
}

.clean-post-content {
  flex: 1;
  min-width: 0;
}

.clean-post-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.clean-post-title .arrow-indicator {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  transition: transform 0.15s ease;
}

.clean-post-item:hover .arrow-indicator {
  transform: translateX(4px);
  color: var(--accent);
}

.clean-post-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.clean-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.clean-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}

.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
}

.tag-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-pill:hover,
.tag-pill.active {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

.back-to-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  margin-bottom: 1.5rem;
}

.back-to-blog-btn:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-reader {
  display: none;
}

.post-reader.active {
  display: block;
}

/* Prose Markdown Typography */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.prose h2 { font-size: 1.35rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border-subtle); }
.prose h3 { font-size: 1.15rem; }

.prose p {
  margin-bottom: 1.25rem;
}

.prose strong {
  color: var(--text-main);
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}

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

.prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  color: var(--text-main);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.code-block-wrapper {
  margin: 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1117;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #8b949e;
  text-transform: uppercase;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e6edf3;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--accent);
  color: #0d1117;
}

.code-block-wrapper pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-block-wrapper code {
  font-family: var(--font-mono);
  background: none;
  padding: 0;
  color: #e6edf3;
}

/* Footer */
.clean-footer,
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 860px) {
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .resume-sidebar {
    display: none;
  }
}

@media (max-width: 650px) {
  .post-row,
  .clean-post-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .post-date,
  .clean-post-date {
    width: auto;
  }
  .site-header,
  .clean-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ==========================================================================
   KQL Threat Hunting Sandbox Styles (Aligned with Site Design)
   ========================================================================== */

.sandbox-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sandbox-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background-color: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sandbox-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.sandbox-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.sandbox-tip-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.sandbox-tip-box code {
  font-family: var(--font-mono);
  background-color: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  font-size: 0.78rem;
}

.sandbox-tip-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background-color: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sandbox-easter-egg-banner {
  background-color: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.easter-egg-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.easter-egg-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.2rem;
  margin-bottom: 0.25rem;
}

.easter-egg-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Preset Threat Hunts - Clean Pill Grid */
.sandbox-section-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.sandbox-hunt-pill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  min-height: 64px;
}

.sandbox-hunt-pill:hover {
  border-color: var(--accent);
  background-color: var(--bg-subtle);
}

.sandbox-hunt-pill.active {
  border-color: var(--accent);
  background-color: rgba(88, 166, 255, 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}

.hunt-pill-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.hunt-pill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hunt-pill-badge {
  color: var(--accent);
  background-color: rgba(88, 166, 255, 0.1);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
}

/* Query Editor */
.sandbox-editor-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.sandbox-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sandbox-toolbar-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sandbox-target-badge {
  font-size: 0.7rem;
  color: var(--accent);
  background-color: rgba(88, 166, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.sandbox-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-kql {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-kql:hover {
  background-color: var(--border-subtle);
  border-color: var(--text-dim);
}

.btn-kql-run {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.btn-kql-run:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

[data-theme="light"] .btn-kql-run {
  color: #ffffff;
}

.sandbox-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  background-color: var(--bg);
  color: var(--text-main);
  border: none;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.sandbox-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sandbox-status-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sandbox-status-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.sandbox-status-indicator.error {
  background-color: #f85149;
}

/* Results Viewer */
.sandbox-results-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sandbox-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.sandbox-results-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sandbox-table-scroll {
  max-height: 420px;
  overflow-x: auto;
  overflow-y: auto;
}

.sandbox-results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: left;
}

.sandbox-results-table th {
  position: sticky;
  top: 0;
  background-color: var(--bg-subtle);
  color: var(--text-dim);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  z-index: 1;
}

.sandbox-results-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: top;
}

.sandbox-results-table tbody tr:hover {
  background-color: var(--bg-subtle);
}

.cell-code {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.cell-code:hover {
  border-color: var(--accent);
}

.sandbox-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}

.sandbox-badge-high {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.sandbox-badge-med {
  background-color: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.sandbox-badge-low {
  background-color: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.sandbox-badge-success {
  background-color: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.sandbox-badge-failure {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.sandbox-error-msg {
  padding: 1.25rem;
  background-color: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: 6px;
  color: #f85149;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sandbox-empty-msg {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Collapsible Accordions for Schema & Syntax */
.sandbox-accordion {
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg-card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.sandbox-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  user-select: none;
}

.sandbox-accordion-toggle:hover {
  color: var(--accent);
}

.sandbox-accordion-content {
  display: none;
  padding: 0.85rem;
  border-top: 1px solid var(--border);
}

.sandbox-accordion-content.open {
  display: block;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}

.schema-table-box {
  background-color: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0.6rem 0.75rem;
}

.schema-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.schema-col-list {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.schema-col-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  color: var(--text-dim);
}

.syntax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.syntax-pill {
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  background-color: var(--bg);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  transition: all 0.15s ease;
}

.syntax-pill:hover {
  border-color: var(--accent);
  background-color: var(--bg-subtle);
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #1f2328 !important;
    padding: 0 !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
  }

  .resume-wrap,
  .site-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .site-header,
  .resume-top-nav,
  .resume-sidebar,
  .resume-top-actions,
  .clean-footer,
  .theme-toggle,
  .clean-theme-btn {
    display: none !important;
  }

  .resume-grid {
    display: block !important;
  }

  .resume-section {
    margin-bottom: 1.25rem !important;
    page-break-inside: auto;
  }

  .resume-role {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    page-break-inside: avoid;
    border-bottom: 1px solid #d0d7de !important;
  }

  .resume-section-title {
    color: #1f2328 !important;
    border-bottom: 1.5px solid #1f2328 !important;
  }

  .resume-role-title,
  .resume-cert-name,
  .resume-focus-list li strong {
    color: #1f2328 !important;
  }

  .resume-contact-bar,
  .resume-focus-list li,
  .tech-pill {
    color: #333333 !important;
  }
}