:root {
  --bg:        #ffffff;
  --surface:   #f4f1eb;
  --card:      #fdf8f0;
  --border:    rgba(180,100,0,0.15);
  --accent:    #d4700a;
  --accent2:   #c45000;
  --accent3:   #e63b00;
  --text:      #1a1a1a;
  --muted:     #6b5a3e;
  --glow:      0 0 20px rgba(212,112,10,0.25);
  --glow-lg:   0 0 60px rgba(212,112,10,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
#cursor { position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none; }
#cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  position: fixed; transform: translate(-50%, -50%);
  transition: transform .1s;
  box-shadow: 0 0 10px var(--accent);
  z-index: 99999; pointer-events: none;
}
#cursor-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(212,112,10,0.55);
  position: fixed; transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.165,.84,.44,1), width .3s, height .3s;
  z-index: 99999; pointer-events: none;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* ─── GRID LINES ─── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(180,100,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,100,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 18px 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1rem; color: var(--accent); letter-spacing: 2px;
}
.nav-logo span { color: var(--text); }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  /* Sits inside the fixed navbar on desktop */
  position: fixed;
  top: 0;
  right: 5%;
  height: 57px;          /* matches nav padding: 18px top+bottom + ~21px line-height */
  align-items: center;
  z-index: 1001;         /* above nav (1000) so it's always on top */
}
.nav-menu li a {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; letter-spacing: 1.5px;
  text-decoration: none; color: var(--muted);
  text-transform: uppercase; transition: color .2s; position: relative;
}
.nav-menu li a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .3s;
}
.nav-menu li a:hover { color: var(--accent); }
.nav-menu li a:hover::after { width: 100%; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 5% 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); animation: float 8s ease-in-out infinite;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,112,10,0.10) 0%, transparent 70%);
  top: -200px; left: -100px; animation-delay: 0s;
}
.orb2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,80,0,0.08) 0%, transparent 70%);
  bottom: -100px; right: -100px; animation-delay: -4s;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(230,59,0,0.06) 0%, transparent 70%);
  top: 50%; left: 50%; animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.circuit-lines { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.c-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(212,112,10,0.18), transparent);
  height: 1px; animation: scanline 6s linear infinite; opacity: 0;
}
.c-line:nth-child(1) { top: 20%; width: 60%; left: 10%; animation-delay: 0s; }
.c-line:nth-child(2) { top: 45%; width: 40%; left: 30%; animation-delay: 2s; }
.c-line:nth-child(3) { top: 70%; width: 55%; left: 5%;  animation-delay: 4s; }
.c-line:nth-child(4) { top: 85%; width: 30%; left: 60%; animation-delay: 1s; }
@keyframes scanline {
  0%   { opacity: 0; transform: translateX(-100%); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(212,112,10,0.35); padding: 6px 14px;
  border-radius: 2px; margin-bottom: 30px; background: rgba(212,112,10,0.06);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -2px; margin-bottom: 16px;
}
.hero h1 .name-line {
  display: block;
  padding-bottom: 0.12em;
  line-height: 1.2;
  background: linear-gradient(135deg, #1a1a1a 30%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 7.5rem; font-family: 'Orbitron', sans-serif;
}
.hero h1 .name-glow {
  display: block; color: transparent;
  -webkit-text-stroke: 2px rgba(212,112,10,0.75);
  font-size: 3rem; letter-spacing: 8px; text-transform: uppercase;
}

.hero-tagline {
  font-family: 'Space Mono', monospace; font-size: 1rem;
  color: var(--accent); margin-bottom: 20px; min-height: 1.5em;
}
.hero-tagline::after { content: '|'; animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { max-width: 560px; color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.stat { display: flex; flex-direction: column; border-left: 2px solid var(--border); padding-left: 20px; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1.2; text-align: center; }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; padding: 14px 28px;
  border-radius: 2px; border: none; cursor: pointer; transition: all .3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1a1a1a; box-shadow: 0 0 30px rgba(212,112,10,0.4); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(212,112,10,0.45); }
.btn-outline:hover { background: rgba(212,112,10,0.06); border-color: var(--accent); box-shadow: var(--glow); }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 1;
}
.scroll-indicator span {
  font-family: 'Space Mono', monospace; font-size: 0.6rem;
  letter-spacing: 3px; color: var(--muted); text-transform: uppercase; writing-mode: horizontal-tb;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrolldown 1.5s ease-in-out infinite;
}
@keyframes scrolldown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── SECTION WRAPPER ─── */
section {
  padding: 100px 5%; position: relative; z-index: 1;
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
section.show { opacity: 1; transform: translateY(0); }

.section-label {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: '//'; opacity: 0.5; }

.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #1a1a1a; margin-bottom: 60px; line-height: 1.3;
}
.section-title em { font-style: normal; color: var(--accent); }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text { color: var(--muted); line-height: 1.9; font-size: 1rem; text-align: justify; }
.about-text p { margin-bottom: 20px; }
.about-highlight { color: var(--text); }
.about-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-chip {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 4px;
  transition: border-color .3s, box-shadow .3s;
}
.info-chip:hover { border-color: rgba(212,112,10,0.4); box-shadow: var(--glow); }
.info-chip i { color: var(--accent); width: 18px; font-size: 0.9rem; }
.info-chip-content { display: flex; flex-direction: column; }
.info-chip-label { font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.info-chip-value { font-size: 0.9rem; color: var(--text); margin-top: 2px; }

/* ─── SKILLS ─── */
.skills-container { display: flex; flex-direction: column; gap: 50px; }
.skills-category-title {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.skills-category-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 2px;
  font-size: 0.82rem; color: var(--text); transition: all .25s;
  position: relative; overflow: hidden;
}
.skill-pill::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,112,10,0.06), transparent);
  opacity: 0; transition: opacity .25s;
}
.skill-pill:hover { border-color: rgba(212,112,10,0.5); color: var(--accent); box-shadow: var(--glow); }
.skill-pill:hover::before { opacity: 1; }
.skill-pill i { font-size: 1.1rem; }
.skill-pill.accent { border-color: rgba(196,80,0,0.35); }
.skill-pill.accent:hover { border-color: var(--accent2); color: var(--accent2); box-shadow: 0 0 20px rgba(196,80,0,0.25); }
.skill-pill.pink { border-color: rgba(230,59,0,0.35); }
.skill-pill.pink:hover { border-color: var(--accent3); color: var(--accent3); box-shadow: 0 0 20px rgba(230,59,0,0.25); }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), rgba(212,112,10,0.1));
}
.tl-item {
  position: relative; padding-left: 50px; margin-bottom: 50px;
  opacity: 0; transform: translateX(-30px); transition: opacity .6s ease, transform .6s ease;
}
.tl-item.show { opacity: 1; transform: translateX(0); }
.tl-dot {
  position: absolute; left: -7px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #ffffff; border: 2px solid var(--accent); box-shadow: 0 0 12px rgba(212,112,10,0.4);
}
.tl-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.tl-date {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.tl-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 28px 32px; transition: border-color .3s, box-shadow .3s;
  position: relative; overflow: visible;
}
.tl-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity .3s;
}
.tl-card:hover { border-color: rgba(212,112,10,0.35); box-shadow: var(--glow-lg); }
.tl-card:hover::after { opacity: 1; }
.tl-company { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0; padding-bottom: 10px; line-height: 1.7;}
.tl-role-block { margin-bottom: 16px; }
.tl-role { font-family: 'Space Mono', monospace; font-size: 0.78rem; color: var(--accent); }
.tl-role-span { font-size: 0.72rem; color: var(--muted); margin-left: 8px; }
.tl-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.tl-location {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.72rem; color: var(--muted); font-family: 'Space Mono', monospace;
}
.tl-location i { color: var(--accent); font-size: 0.7rem; }

/* ─── INTERNSHIPS ─── */
.intern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.intern-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 22px 24px;
  transition: border-color .3s, box-shadow .3s, transform .2s;
}
.intern-card:hover { border-color: rgba(196,80,0,0.5); box-shadow: 0 0 24px rgba(196,80,0,0.18); transform: translateY(-4px); }
.intern-role { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.intern-org { font-size: 0.8rem; color: var(--accent2); margin-bottom: 10px; }
.intern-meta { display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--muted); }

/* ─── CERTIFICATIONS ─── */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cert-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .3s, box-shadow .3s, transform .2s;
}
.cert-card:hover { border-color: rgba(212,112,10,0.4); box-shadow: var(--glow); transform: translateY(-4px); }
.cert-icon { width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.cert-icon.google  { background: rgba(66,133,244,0.12); color: #2a6dd9; }
.cert-icon.tableau { background: rgba(0,107,166,0.12);  color: #0070aa; }
.cert-icon.dl      { background: rgba(212,112,10,0.12);  color: #d4700a; }
.cert-icon.ibm     { background: rgba(0,147,219,0.12);  color: #007ab8; }
.cert-icon.pm      { background: rgba(196,80,0,0.12); color: var(--accent2); }
.cert-name  { font-size: 0.88rem; color: #1a1a1a; font-weight: 500; line-height: 1.5; margin-bottom: 4px; }
.cert-issuer { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.5px; }

/* ─── EDUCATION ─── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.edu-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 32px;
  position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.edu-card:hover { border-color: rgba(212,112,10,0.35); box-shadow: var(--glow-lg); }
.edu-year  { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; }
.edu-degree { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.edu-school { font-size: 0.85rem; color: var(--muted); }
.edu-flag  { position: absolute; top: 24px; right: 24px; font-size: 1.8rem; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 28px 32px; text-decoration: none; display: flex; align-items: center; gap: 20px;
  transition: all .3s; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,112,10,0.05), transparent); opacity: 0; transition: opacity .3s;
}
.contact-card:hover { border-color: rgba(212,112,10,0.45); box-shadow: var(--glow); transform: translateY(-4px); }
.contact-card:hover::before { opacity: 1; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: rgba(212,112,10,0.08); color: var(--accent);
  border: 1px solid rgba(212,112,10,0.25); flex-shrink: 0; transition: box-shadow .3s;
}
.contact-card:hover .contact-icon { box-shadow: 0 0 20px rgba(212,112,10,0.3); }
.contact-label { font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-family: 'Space Mono', monospace; margin-bottom: 4px; }
.contact-value { font-size: 0.9rem; color: var(--text); }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 30px 5%; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 1px; color: var(--muted);
}
footer span { color: var(--accent); }

/* ─── SECTION DIVIDER ─── */
.divider {
  position: relative; z-index: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 5%;
}

/* ─── RESPONSIVE ─── */

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative; /* anchor it inside the nav flex row */
  z-index: 10000;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.job-roles {padding-left: 20px;}
.job-role-details {padding-left: 20px; text-align: justify;}
.tl-desc-tasks {font-size: 0.85rem; font-style: italic; color: var(--muted); line-height: 1.5; }

.blog-detail {
  /* max-width: 80%; */
  align-items: center;
  margin: 10% 10% auto;
  padding: 120px 2rem 80px;
}

/* Back link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent, #7f5af0);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.blog-back:hover { opacity: 1; }
.blog-back i { font-size: 0.75rem; }

/* Header */
.blog-detail-header { margin-bottom: 2.5rem; }

.blog-detail-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent, #7f5af0);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.blog-detail-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.blog-detail-abstract {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.75;
  border-left: 3px solid var(--accent, #7f5af0);
  padding-left: 1rem;
  margin: 0;
}

.blog-detail-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 2.5rem 0;
}

/* Body content */
.blog-detail-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: inherit;
}

.blog-detail-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

.blog-detail-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.blog-detail-body p { margin: 0 0 1.2rem; }

.blog-detail-body ul,
.blog-detail-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}

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

.blog-detail-body a {
  color: var(--accent, #7f5af0);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-detail-body blockquote {
  border-left: 3px solid var(--accent, #7f5af0);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  opacity: 0.8;
  font-style: italic;
}

.blog-detail-body code {
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  background: rgba(212,112,10,0.10);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

.blog-detail-body pre {
  background: rgba(212,112,10,0.06);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-detail-body pre code {
  background: none;
  padding: 0;
}

/* Tags */
.blog-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
}

.blog-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(212,112,10,0.4);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
}

/* Bottom nav */
.blog-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  gap: 1rem;
}

.blog-bottom-nav a {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent, #7f5af0);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.blog-bottom-nav a:hover { opacity: 1; }


@media (max-width: 768px) {
  /* ── Cursor — hide on touch devices ── */
  #cursor, #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }

  /* ── Prevent horizontal overflow globally ── */
  body, html { overflow-x: hidden; max-width: 100vw; }

  /* ── Background orbs — shrink so they don't cause side-scroll ── */
  .orb1 { width: 280px; height: 280px; top: -80px; left: -60px; }
  .orb2 { width: 220px; height: 220px; bottom: -60px; right: -60px; }
  .orb3 { width: 160px; height: 160px; }

  /* ── Nav ── */
  nav { padding: 14px 5%; }
  .nav-hamburger { display: flex; }

  /* Full-screen overlay — body-level sibling of nav, no stacking context conflict */
  .nav-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;          /* cancel the desktop 57px height */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: #ffffff;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.77,0,.18,1);
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-menu.nav-open { transform: translateX(0); }

  /* Hamburger always above the overlay */
  #nav-hamburger {
    position: fixed;
    top: 12px;
    right: 5%;
    z-index: 9999;
    pointer-events: auto;
  }

  .nav-menu li a {
    font-size: 1.2rem;
    letter-spacing: 4px;
    padding: 14px 0;
    display: block;
  }

  /* ── Hero ── */
  .hero {
    padding: 100px 6% 60px;
    text-align: center;
    min-height: 100svh; /* use small viewport height on mobile browsers */
  }
  .hero h1 {
    margin-bottom: 12px;
    letter-spacing: 0;
  }
  .hero h1 .name-line {
    font-size: clamp(2.2rem, 12vw, 4.5rem);
    letter-spacing: 0;
  }
  .hero h1 .name-glow {
    font-size: clamp(0.9rem, 4.5vw, 1.6rem);
    letter-spacing: 3px;
  }
  .hero-tagline { font-size: 0.82rem; margin-bottom: 16px; }

  /* ── Stats — 2×2 grid instead of a row ── */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
    justify-items: start;
  }
  .stat {
    padding-left: 14px;
    border-left: 1px solid var(--border);
  }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }

  /* ── CTA buttons ── */
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.72rem;
    min-height: 48px; /* accessible tap target */
  }

  /* ── Scroll indicator — hide on mobile to save space ── */
  .scroll-indicator { display: none; }

  /* ── Sections ── */
  section { padding: 60px 6%; }
  .section-label { font-size: 0.6rem; }
  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    margin-bottom: 28px;
    line-height: 1.25;
  }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-text { font-size: 0.95rem; }
  .info-chip { padding: 13px 16px; gap: 12px; }
  .info-chip-value { font-size: 0.85rem; word-break: break-word; }

  /* ── Skills ── */
  .skills-grid { gap: 8px; }
  .skill-pill { font-size: 0.75rem; padding: 8px 12px; gap: 8px; }
  .skill-pill i { font-size: 0.95rem; }
  .skills-container { gap: 36px; }

  /* ── Timeline ── */
  .timeline::before { left: 8px; }
  .tl-item { padding-left: 32px; margin-bottom: 32px; }
  .tl-dot { left: 1px; top: 6px; width: 13px; height: 13px; }
  .tl-card { padding: 18px 16px; }
  .tl-company { font-size: 1rem; padding-bottom: 6px; line-height: 1.4; }
  .tl-role { font-size: 0.72rem; }
  .tl-desc { font-size: 0.85rem; }
  .tl-location { font-size: 0.68rem; margin-top: 12px; }

  /* ── Internship cards ── */
  .intern-grid { grid-template-columns: 1fr; gap: 12px; }
  .intern-card { padding: 18px 16px; }
  .intern-meta { flex-direction: column; gap: 6px; }

  /* ── Cert cards ── */
  .cert-grid { grid-template-columns: 1fr; gap: 12px; }
  .cert-card { padding: 18px 16px; gap: 12px; }
  .cert-name { font-size: 0.84rem; }

  /* ── Education ── */
  .edu-grid { grid-template-columns: 1fr; gap: 12px; }
  .edu-card { padding: 22px 20px; }
  .edu-degree { font-size: 1rem; padding-right: 40px; } /* avoid overlap with flag */

  /* ── Contact cards (about page) ── */
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { padding: 20px 18px; gap: 14px; }
  .contact-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .contact-value { font-size: 0.85rem; word-break: break-all; }

  /* ── Divider ── */
  .divider { margin: 0 6%; }

  /* ── Footer ── */
  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 6%;
    font-size: 0.6rem;
  }
}


/* ── Extra-small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .hero h1 .name-line { font-size: clamp(1.8rem, 11vw, 2.8rem); }
  .hero h1 .name-glow { font-size: clamp(0.75rem, 4vw, 1rem); letter-spacing: 2px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-num { font-size: 1.3rem; }
  section { padding: 50px 5%; }
  .tl-card { padding: 14px 12px; }
}

/* ─── NAV EXIT BUTTON ─── */
.nav-menu li a.nav-exit {
  color: rgba(230,59,0,0.75);
  border: 1px solid rgba(230,59,0,0.25);
  padding: 5px 12px;
  border-radius: 2px;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.nav-menu li a.nav-exit::after { display: none; }
.nav-menu li a.nav-exit:hover {
  color: #e63b00;
  border-color: rgba(230,59,0,0.6);
  box-shadow: 0 0 16px rgba(230,59,0,0.2);
}





/* ── Page wrapper ── */
    .page {
      position:relative; z-index:1;
      min-height:100vh;
      display:flex; align-items:center; justify-content:center;
      padding:100px 5% 60px;
    }

    .contact-wrap {
      width:100%; max-width:900px;
      display:grid; grid-template-columns:1fr 1.6fr; gap:40px; align-items:start;
    }

    /* ── Left panel ── */
    .contact-info { display:flex; flex-direction:column; gap:0; }

    .contact-label-tag {
      font-family:'Space Mono',monospace; font-size:0.65rem; letter-spacing:3px;
      text-transform:uppercase; color:var(--accent); margin-bottom:14px;
      display:flex; align-items:center; gap:10px;
    }
    .contact-label-tag::before { content:'//'; opacity:0.5; }

    .contact-heading {
      font-family:'Syne',sans-serif; font-size:clamp(2rem,4vw,2.8rem);
      font-weight:800; color:#1a1a1a; line-height:1.1; margin-bottom:20px;
    }
    .contact-heading em { font-style:normal; color:var(--accent); }

    .contact-subtext {
      font-size:0.95rem; color:var(--muted); line-height:1.8; margin-bottom:36px;
    }

    .info-items { display:flex; flex-direction:column; gap:16px; }
    .info-item {
      display:flex; align-items:center; gap:14px;
      padding:14px 18px;
      background:var(--card); border:1px solid var(--border); border-radius:4px;
      text-decoration:none;
      transition:border-color .3s, box-shadow .3s;
    }
    .info-item:hover { border-color:rgba(212,112,10,0.4); box-shadow:var(--glow); }
    .info-item-icon {
      width:38px; height:38px; border-radius:4px; flex-shrink:0;
      display:flex; align-items:center; justify-content:center;
      font-size:1rem; background:rgba(212,112,10,0.08); color:var(--accent);
      border:1px solid rgba(212,112,10,0.18);
    }
    .info-item-text { display:flex; flex-direction:column; }
    .info-item-label { font-family:'Space Mono',monospace; font-size:0.6rem; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }
    .info-item-value { font-size:0.88rem; color:var(--text); margin-top:2px; }

    /* ── Form card ── */
    .form-card {
      background:var(--card);
      border:1px solid var(--border); border-radius:8px;
      padding:40px 36px;
      position:relative; overflow:hidden;
    }
    .form-card::before {
      content:''; position:absolute; top:0; left:0; right:0; height:2px;
      background:linear-gradient(90deg,var(--accent),var(--accent2));
    }

    .form-title {
      font-family:'Syne',sans-serif; font-size:1.35rem; font-weight:700;
      color:#1a1a1a; margin-bottom:6px;
    }
    .form-subtitle {
      font-family:'Space Mono',monospace; font-size:0.62rem;
      letter-spacing:1.5px; text-transform:uppercase; color:var(--muted);
      margin-bottom:30px;
    }

    /* Field group */
    .field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
    .field { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
    .field:last-of-type { margin-bottom:0; }

    .field label {
      font-family:'Space Mono',monospace; font-size:0.62rem;
      letter-spacing:1.5px; text-transform:uppercase; color:var(--muted);
    }
    .field label .req { color:var(--accent); margin-left:2px; }

    .field input, .field textarea {
      background:rgba(212,112,10,0.02);
      border:1px solid var(--border); border-radius:4px;
      padding:13px 16px;
      font-family:'DM Sans',sans-serif; font-size:0.92rem;
      color:var(--text); outline:none;
      transition:border-color .25s,box-shadow .25s;
      width:100%;
    }
    .field input::placeholder, .field textarea::placeholder { color:var(--muted); }
    .field input:focus, .field textarea:focus {
      border-color:rgba(212,112,10,0.5);
      box-shadow:var(--glow);
    }
    .field input.error, .field textarea.error {
      border-color:rgba(230,59,0,0.55);
      box-shadow:0 0 14px rgba(230,59,0,0.18);
    }
    .field textarea { resize:vertical; min-height:130px; }

    /* Field-level error */
    .field-error {
      font-family:'Space Mono',monospace; font-size:0.62rem;
      color:var(--accent3); margin-top:4px; display:none;
    }
    .field-error.visible { display:block; }

    /* Submit button */
    .submit-btn {
      width:100%; margin-top:24px;
      font-family:'Space Mono',monospace; font-size:0.75rem; letter-spacing:2px;
      text-transform:uppercase;
      background:var(--accent); color:#fff;
      border:none; border-radius:4px; padding:15px;
      cursor:pointer; transition:background .25s,box-shadow .25s;
      display:flex; align-items:center; justify-content:center; gap:10px;
    }
    .submit-btn:hover:not(:disabled) { background:#1a1a1a; box-shadow:0 0 30px rgba(212,112,10,0.4); }
    .submit-btn:disabled { opacity:0.6; cursor:not-allowed; }

    /* ── Toast notifications ── */
    .toast {
      position:fixed; bottom:28px; right:28px; z-index:9000;
      display:flex; align-items:center; gap:12px;
      padding:16px 22px; border-radius:6px;
      font-family:'Space Mono',monospace; font-size:0.72rem; letter-spacing:0.5px;
      max-width:360px;
      transform:translateY(20px); opacity:0;
      transition:transform .35s ease,opacity .35s ease;
      pointer-events:none;
    }
    .toast.visible { transform:translateY(0); opacity:1; pointer-events:auto; }
    .toast.success {
      background:rgba(212,112,10,0.08);
      border:1px solid rgba(212,112,10,0.3);
      color:var(--accent);
    }
    .toast.error {
      background:rgba(230,59,0,0.08);
      border:1px solid rgba(230,59,0,0.3);
      color:var(--accent3);
    }
    
     .blog-no-format a:link, .blog-no-format a:visited, .blog-no-format a:hover, .blog-no-format a:active {
      text-decoration: none;
      color: inherit;
    }

    .nav-back {
      font-family:'Space Mono',monospace; font-size:0.7rem; letter-spacing:1.5px;
      text-transform:uppercase; text-decoration:none; color:var(--muted);
      display:flex; align-items:center; gap:8px; transition:color .2s;
    }
    .nav-back:hover { color:var(--accent); }
    
    /* Blog post meta */
    .post-meta {
      display:flex; align-items:center; gap:16px; flex-wrap:wrap;
      margin-bottom:20px;
    }
    .post-tag {
      font-family:'Space Mono',monospace;
      font-size:0.62rem; letter-spacing:2px;
      text-transform:uppercase; color:var(--accent);
      border:1px solid rgba(212,112,10,0.3);
      padding:4px 10px; border-radius:2px;
      background:rgba(212,112,10,0.05);
    }
    .post-date {
      font-family:'Space Mono',monospace;
      font-size:0.62rem; letter-spacing:1px;
      color:var(--muted); text-transform:uppercase;
    }

    /* Blog heading */
    .post-title {
      font-family:'Syne',sans-serif;
      font-size:clamp(1.8rem, 5vw, 2.8rem);
      font-weight:800; color:#1a1a1a;
      line-height:1.25; margin-bottom:10px;
    }
    .post-title em { font-style:normal; color:var(--accent); }

    .post-subtitle {
      font-size:1.05rem; color:var(--muted);
      line-height:1.8; margin-bottom:40px;
    }

    /* Post body */
    .post-body {
      font-size:1rem; color:var(--muted);
      line-height:1.9;
    }
    .post-body p { margin-bottom:20px; }
    .post-body strong { color:var(--text); font-weight:500; }

    
    /* ── Responsive ── */
    @media(max-width:768px) {
      .page { padding: 80px 6% 48px; min-height: 100svh; }
      .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
      .field-row { grid-template-columns: 1fr; gap: 0; }
      .form-card { padding: 24px 18px; }
      .contact-heading { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
      .contact-subtext { font-size: 0.88rem; margin-bottom: 24px; }
      .info-item { padding: 12px 14px; gap: 10px; }
      .info-item-value { font-size: 0.82rem; word-break: break-all; }
      /* font-size 16px+ prevents iOS Safari from zooming on input focus */
      .field input, .field textarea { font-size: 1rem; padding: 12px 14px; }
      .submit-btn { padding: 14px; min-height: 48px; }
      .toast { left: 12px; right: 12px; bottom: 12px; font-size: 0.68rem; padding: 14px 16px; }
    }

/* ── Blog mobile ── */
@media (max-width: 768px) {
  /* Blog list — timeline items already handled globally */
  #blogs { padding: 80px 6% 48px; }

  /* Back link */
  .nav-back {
    font-size: 0.68rem;
    gap: 6px;
    margin-bottom: 16px;
  }

  /* Post heading */
  .post-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 8px;
  }
  .post-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  /* Post body */
  .post-body {
    font-size: 0.95rem;
    line-height: 1.85;
  }
  .post-body p { margin-bottom: 16px; }

  /* Blog list card title */
  .blog-no-format .tl-company {
    font-size: 1rem;
    line-height: 1.4;
  }
}



/* ═══════════════════════════════════════════════════════════════════════════
   BLOG TABLE STYLES — drop into style.css or a <style> block in your blog
   templates. Scoped to .post-body so they never bleed into other sections.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Scroll wrapper (prevents horizontal overflow on small screens) ─── */
.post-body .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  /* Subtle scrollbar that matches the dark theme */
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 112, 10, 0.3) transparent;
}
.post-body .table-wrap::-webkit-scrollbar         { height: 4px; }
.post-body .table-wrap::-webkit-scrollbar-track   { background: transparent; }
.post-body .table-wrap::-webkit-scrollbar-thumb   { background: rgba(212, 112, 10, 0.3); border-radius: 2px; }
.post-body .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Base table ─── */
.post-body table {
  width: 100%;
  min-width: 480px;           /* prevents crushed columns before scroll kicks in */
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);

  /* Top accent line — same motif as .tl-card::after and .form-card::before */
  position: relative;
}
.post-body table::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* ─── Header row ─── */
.post-body table thead tr {
  background: rgba(212, 112, 10, 0.06);
  border-bottom: 1px solid rgba(212, 112, 10, 0.2);
}
.post-body table thead th {
  padding: 14px 20px;
  text-align: left;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.post-body table thead th:last-child { border-right: none; }

/* ─── Body rows ─── */
.post-body table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.post-body table tbody tr:last-child { border-bottom: none; }

/* Zebra stripe — matches --surface, one step above --card */
.post-body table tbody tr:nth-child(even) {
  background: rgba(212, 112, 10, 0.03);
}

.post-body table tbody tr:hover {
  background: rgba(212, 112, 10, 0.06);
}

.post-body table tbody td {
  padding: 13px 20px;
  vertical-align: top;
  line-height: 1.7;
  color: var(--muted);
  border-right: 1px solid var(--border);
}
.post-body table tbody td:last-child { border-right: none; }

/* First column emphasis — mirrors .tl-company / .cert-name weight */
.post-body table tbody td:first-child {
  color: var(--text);
  font-weight: 500;
}

/* ─── Footer row (optional <tfoot>) ─── */
.post-body table tfoot tr {
  background: rgba(196, 80, 0, 0.05);
  border-top: 1px solid rgba(196, 80, 0, 0.25);
}
.post-body table tfoot td,
.post-body table tfoot th {
  padding: 12px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--accent2);
  font-weight: 400;
}

/* ─── Inline accents — use <span class="…"> inside any <td> ─── */

/* Cyan pill — mirrors .post-tag */
.post-body .tbl-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212, 112, 10, 0.3);
  background: rgba(212, 112, 10, 0.05);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Purple pill */
.post-body .tbl-tag.purple {
  color: var(--accent2);
  border-color: rgba(196, 80, 0, 0.3);
  background: rgba(196, 80, 0, 0.05);
}

/* Pink pill */
.post-body .tbl-tag.pink {
  color: var(--accent3);
  border-color: rgba(230, 59, 0, 0.3);
  background: rgba(230, 59, 0, 0.05);
}

/* Positive / Negative value colouring */
.post-body .tbl-pos { color: #d4700a; font-family: 'Space Mono', monospace; font-size: 0.82rem; }
.post-body .tbl-neg { color: var(--accent3); font-family: 'Space Mono', monospace; font-size: 0.82rem; }
.post-body .tbl-neu { color: var(--muted);   font-family: 'Space Mono', monospace; font-size: 0.82rem; }

/* Monospace number column — align right for numeric data */
.post-body table td.num,
.post-body table th.num {
  text-align: right;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

/* ─── Modifier: compact table (tighter rows) ─── */
.post-body table.tbl-compact thead th,
.post-body table.tbl-compact tbody td,
.post-body table.tbl-compact tfoot td {
  padding: 9px 16px;
  font-size: 0.82rem;
}

/* ─── Modifier: no-stripe (clean look for comparison tables) ─── */
.post-body table.tbl-plain tbody tr:nth-child(even) { background: none; }

/* ─── Modifier: highlighted column (add class to <td> or <th>) ─── */
.post-body table .col-hl {
  background: rgba(212, 112, 10, 0.05);
  border-left:  1px solid rgba(212, 112, 10, 0.18);
  border-right: 1px solid rgba(212, 112, 10, 0.18);
}

/* ─── Caption ─── */
.post-body table caption {
  caption-side: bottom;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: left;
  padding: 10px 4px 0;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — collapse to single-column card layout on mobile
   (same breakpoint used throughout style.css)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .post-body .table-wrap { margin: 1.5rem 0; }

  /* Remove the min-width floor so the scroll wrapper takes over */
  .post-body table { min-width: 0; font-size: 0.85rem; }

  .post-body table thead th { padding: 11px 14px; font-size: 0.6rem; letter-spacing: 1.5px; }
  .post-body table tbody td { padding: 11px 14px; font-size: 0.85rem; }

  .post-body table.tbl-compact thead th,
  .post-body table.tbl-compact tbody td { padding: 8px 12px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
  /* On very small screens, collapse into labelled card rows */
  .post-body .table-wrap.tbl-card-collapse {
    overflow-x: visible;
  }
  .post-body .table-wrap.tbl-card-collapse table,
  .post-body .table-wrap.tbl-card-collapse thead,
  .post-body .table-wrap.tbl-card-collapse tbody,
  .post-body .table-wrap.tbl-card-collapse th,
  .post-body .table-wrap.tbl-card-collapse td,
  .post-body .table-wrap.tbl-card-collapse tr {
    display: block;
  }
  /* Hide header row visually; data-label attributes supply the labels */
  .post-body .table-wrap.tbl-card-collapse thead tr {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }
  .post-body .table-wrap.tbl-card-collapse tbody tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 4px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .post-body .table-wrap.tbl-card-collapse tbody tr::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: 0; left: 0; right: 0;
  }
  .post-body .table-wrap.tbl-card-collapse tbody td {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .post-body .table-wrap.tbl-card-collapse tbody td:last-child { border-bottom: none; }
  /* Column label injected via data-label="Column Name" on each <td> */
  .post-body .table-wrap.tbl-card-collapse tbody td::before {
    content: attr(data-label);
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 2px;
  }
}