/* =====================================================================
   Résumé site — shared styles
   Colors come from CSS custom properties set at runtime by theme.js.
   You normally never need to touch this file to change your content —
   edit content.js instead. Adjust here only to restyle the design.
   ===================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pageBg, #ECECEF);
  color: var(--ink, #1B1B1F);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }

.lnk {
  transition: color .18s ease, border-color .18s ease, background .18s ease,
              transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* ---- page + card shell ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}
.card-outer {
  width: 100%;
  max-width: 1025px;
  background: var(--card, #FFFFFF);
  color: var(--ink, #1B1B1F);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 22px;
  box-shadow: 0 30px 80px -40px rgba(50,45,40,.45);
  overflow: hidden;
}

/* ---- twinkling starfield (decorative, sits in the page margins behind the card) ---- */
.stars-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
@media print { .stars-bg { display: none; } }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  padding: 18px 44px;
  background: var(--card, #FFFFFF);
  border-bottom: 1px solid var(--divider, #EEEEF1);
}
.back-link {
  font-size: 14px; font-weight: 600;
  color: var(--inkSoft, #5A5A63);
  display: flex; align-items: center; gap: 8px;
}
.back-link .arrow { font-size: 16px; line-height: 1; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--inkSoft, #5A5A63); font-weight: 500;
}
.nav-right {
  display: flex; align-items: center; gap: 20px;
  font-size: 14px; color: var(--inkSoft, #5A5A63); font-weight: 500;
  margin-left: auto;
}
.nav-right.compact { gap: 16px; margin-left: auto; }
.navlnk:hover { color: var(--accent, #2E7D32) !important; }
.menu-toggle {
  display: none;
  cursor: pointer; font-family: inherit;
  padding: 6px;
  border: none; background: transparent;
  color: var(--inkSoft, #5A5A63);
  align-items: center; justify-content: center;
}
.menu-toggle:hover { color: var(--accent, #2E7D32); }

.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  padding: 3px;
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 100px;
}
.langbtn {
  cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 700;
  padding: 6px 11px; border-radius: 100px;
  border: none; background: transparent;
  color: var(--inkSoft, #5A5A63);
  transition: color .18s ease, background .18s ease;
}
.langbtn.on { background: var(--accent, #2E7D32); color: var(--accentOn, #fff); }

.mode-toggle {
  cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 100px;
  background: transparent;
  color: var(--inkSoft, #5A5A63);
  display: flex; align-items: center; gap: 8px;
}
.mode-toggle:hover { border-color: var(--accent, #2E7D32) !important; color: var(--accent, #2E7D32) !important; }
.mode-toggle .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent, #2E7D32); display: inline-block;
}

/* ---- header (main page) ---- */
.header { padding: 56px 48px 48px; }
.header.align-left { text-align: left; }
.header.align-center { text-align: center; }
.badge {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent, #2E7D32);
  background: var(--accentSoft, #DEF0E1);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 28px;
}
.name { font-weight: 800; font-size: 54px; line-height: 1.03; letter-spacing: -.025em; margin: 0 0 16px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.header.align-center .btn-row { justify-content: center; }

.btn-solid {
  cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600;
  padding: 10px 18px;
  background: var(--accent, #2E7D32);
  color: var(--accentOn, #fff);
  border: none; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-solid:hover { filter: brightness(1.08); }
.btn-solid .glyph { display: inline-flex; align-items: center; justify-content: center; }
.btn-solid.btn-sm { padding: 6px 14px; font-size: 12.5px; gap: 6px; }
.btn-solid.btn-sm .glyph svg { width: 12px; height: 12px; }
.btn-ghost {
  font-size: 14px; font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 100px;
  color: var(--inkSoft, #5A5A63);
  background: transparent;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--accent, #2E7D32) !important; color: var(--accent, #2E7D32) !important; }
.btn-ghost svg { flex: 0 0 auto; }

/* ---- sections ---- */
.divider { height: 1px; background: var(--divider, #EEEEF1); margin: 0 48px; }
.section { padding: 42px 48px; scroll-margin-top: 72px; }
.section.last { padding-bottom: 48px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 26px;
}
.section-head.tight { margin-bottom: 20px; }
.h2label {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent, #2E7D32); margin: 0;
}
.more-link { font-size: 13px; font-weight: 600; color: var(--accent, #2E7D32); }

#summary .h2label { margin-bottom: 26px; }
.summary-body { font-size: 18px; line-height: 1.7; color: var(--ink, #1B1B1F); margin: 0; }

/* ---- experience (main) ---- */
.stack { display: flex; flex-direction: column; }
.stack.g14 { gap: 14px; }
.stack.g12 { gap: 12px; }
.stack.g16 { gap: 16px; }
.stack.g18 { gap: 18px; }
.exp-card {
  position: relative;
  display: block;
  background: var(--surface, #F5F5F7);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 14px; padding: 24px 26px;
}
.exp-card:hover { border-color: var(--accent, #2E7D32) !important; }
.exp-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.exp-title-col { flex: 1 1 auto; min-width: 0; }
.role { font-weight: 700; font-size: 20px; margin: 0 0 4px; }
.role-link { color: inherit; }
.role-link::after { content: ""; position: absolute; inset: 0; }
.exp-top-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.exp-referral { position: relative; z-index: 1; }
.dates { font-size: 13.5px; color: var(--inkSoft, #5A5A63); white-space: nowrap; font-weight: 600; }
.company { font-size: 14.5px; color: var(--accent, #2E7D32); font-weight: 600; margin: 0; }
.bullets { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.65; color: var(--inkSoft, #5A5A63); display: flex; flex-direction: column; gap: 7px; }

/* ---- skills (main) ---- */
.skill-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.skill-group-label { font-size: 14px; font-weight: 600; color: var(--inkSoft, #5A5A63); padding-top: 6px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 100px; }
.chip:hover { filter: brightness(.96); }
.chip-eng { background: var(--accentSoft, #DEF0E1); }
.chip-soft { background: var(--surface, #F5F5F7); border: 1px solid var(--border, #E5E5E9); }

/* ---- projects (main) ---- */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proj-card {
  display: block;
  background: var(--surface, #F5F5F7);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 14px; padding: 20px 22px;
}
.proj-card:hover { transform: translateY(-3px); border-color: var(--accent, #2E7D32) !important; box-shadow: 0 14px 30px -20px rgba(50,45,40,.5); }
.proj-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }
.proj-name { font-weight: 700; font-size: 16.5px; }
.proj-link { font-size: 12px; font-weight: 600; color: var(--accent, #2E7D32); white-space: nowrap; }
.proj-desc { font-size: 14px; line-height: 1.5; color: var(--inkSoft, #5A5A63); margin: 0; }

/* ---- blog (main) ---- */
.blog-card {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--surface, #F5F5F7);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 14px; padding: 22px 24px;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--accent, #2E7D32) !important; box-shadow: 0 14px 30px -20px rgba(50,45,40,.5); }
.post-title { font-weight: 700; font-size: 16.5px; margin: 0 0 5px; }
.post-excerpt { font-size: 14px; line-height: 1.5; color: var(--inkSoft, #5A5A63); margin: 0; }
.post-meta { font-size: 12.5px; color: var(--inkSoft, #5A5A63); white-space: nowrap; font-weight: 600; }

/* ---- footer ---- */
.footer {
  padding: 22px 48px;
  border-top: 1px solid var(--divider, #EEEEF1);
  font-size: 13px; color: var(--inkSoft, #5A5A63);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer a { font-weight: 600; }

/* ---- detail pages ---- */
.detail-header { padding: 56px 48px 40px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #2E7D32); margin-bottom: 18px; }
.detail-title { font-weight: 800; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; max-width: 22ch; }
.intro { font-size: 18px; line-height: 1.65; color: var(--inkSoft, #5A5A63); max-width: 62ch; margin: 0; }
.detail-section { padding: 36px 48px 48px; }

.detail-card {
  background: var(--surface, #F5F5F7);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 16px; padding: 28px 30px;
  scroll-margin-top: 90px;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.detail-card.highlight { border-color: var(--accent, #2E7D32); box-shadow: 0 0 0 3px var(--accentSoft, #DEF0E1); }
.detail-card.hoverable:hover { border-color: var(--accent, #2E7D32) !important; }
.detail-card.lift:hover { transform: translateY(-2px); border-color: var(--accent, #2E7D32) !important; }
.detail-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.detail-top.baseline { align-items: baseline; }
.detail-title-col { flex: 1 1 auto; min-width: 0; }
.detail-role { font-weight: 700; font-size: 21px; margin: 0 0 3px; }
.detail-company { font-size: 14.5px; color: var(--accent, #2E7D32); font-weight: 600; }
.detail-top .exp-referral { flex: 0 0 auto; }
.detail-meta { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.detail-meta .d1 { font-size: 13.5px; color: var(--ink, #1B1B1F); font-weight: 700; }
.detail-meta .d2 { font-size: 12.5px; color: var(--inkSoft, #5A5A63); margin-top: 2px; }
.detail-summary { font-size: 15.5px; line-height: 1.6; color: var(--ink, #1B1B1F); margin: 0 0 14px; }
.detail-bullets { margin: 0 0 18px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--inkSoft, #5A5A63); display: flex; flex-direction: column; gap: 7px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; background: var(--accentSoft, #DEF0E1); color: var(--accent, #2E7D32); border-radius: 6px; }

/* projects detail extras */
.proj-year { font-size: 13px; color: var(--inkSoft, #5A5A63); white-space: nowrap; font-weight: 600; }
.detail-title-row { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.proj-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.proj-tagline { font-size: 14.5px; color: var(--accent, #2E7D32); font-weight: 600; margin-bottom: 14px; }
.proj-desc-lg { font-size: 15.5px; line-height: 1.6; color: var(--ink, #1B1B1F); margin: 0 0 16px; }
.plink-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.plink { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 8px 15px; border: 1px solid var(--border, #E5E5E9); border-radius: 100px; color: var(--ink, #1B1B1F); }
.plink svg { flex: 0 0 auto; }
.plink:hover { background: var(--accent, #2E7D32); border-color: var(--accent, #2E7D32); color: var(--accentOn, #fff); }

/* project screenshot carousel */
.carousel { position: relative; margin: 4px 0 18px; }
.carousel-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 14px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 168px; height: 300px; border-radius: 14px; overflow: hidden;
  background: var(--surface, #F5F5F7); border: 1px solid var(--border, #E5E5E9);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border, #E5E5E9); background: var(--card, #FFFFFF);
  color: var(--ink, #1B1B1F); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
}
.carousel-btn:hover { border-color: var(--accent, #2E7D32); color: var(--accent, #2E7D32); }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }

/* fullscreen screenshot lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10,10,12,.92); }
.lightbox-img {
  position: relative; max-width: 88vw; max-height: 86vh;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lightbox-btn, .lightbox-close {
  position: absolute; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-btn:hover, .lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-btn.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-btn.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 20px; right: 20px; }

/* skills detail */
.skill-groups { display: flex; flex-direction: column; gap: 34px; }
.skill-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.skill-group-head h2 { font-size: 16px; font-weight: 700; margin: 0; }
.skill-group-head .rule { flex: 1; height: 1px; background: var(--divider, #EEEEF1); }
.skill-rows { display: flex; flex-direction: column; gap: 9px; }
.skill-detail-row {
  display: grid; grid-template-columns: 180px 88px 1fr; gap: 16px; align-items: baseline;
  background: var(--surface, #F5F5F7);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 12px; padding: 14px 18px;
}
.skill-detail-row:hover { border-color: var(--accent, #2E7D32) !important; }
.skill-detail-row .sname { font-weight: 700; font-size: 15px; }
.skill-detail-row .slevel { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, #2E7D32); }
.skill-detail-row .snote { font-size: 14px; line-height: 1.5; color: var(--inkSoft, #5A5A63); }

/* writing detail */
.post-card {
  display: block;
  background: var(--surface, #F5F5F7);
  border: 1px solid var(--border, #E5E5E9);
  border-radius: 16px; padding: 26px 30px;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--accent, #2E7D32) !important; }
.post-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--inkSoft, #5A5A63); }
.post-meta-row .date { color: var(--accent, #2E7D32); text-transform: uppercase; letter-spacing: .06em; }
.post-meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--inkSoft, #5A5A63); display: inline-block; }
.post-title-lg { font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 9px; }
.post-excerpt-lg { font-size: 15px; line-height: 1.6; color: var(--inkSoft, #5A5A63); margin: 0 0 16px; max-width: 64ch; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; background: var(--accentSoft, #DEF0E1); color: var(--accent, #2E7D32); border-radius: 100px; }
a.tag-chip:hover { filter: brightness(.96); }
.post-meta-row.article-meta { margin: 0 0 16px; }

.loading-note { font-size: 15px; color: var(--inkSoft, #5A5A63); }

/* ---- blog tag filter ---- */
.tag-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter {
  cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--border, #E5E5E9); border-radius: 100px;
  color: var(--inkSoft, #5A5A63); background: transparent;
}
.tag-filter:hover { border-color: var(--accent, #2E7D32); color: var(--accent, #2E7D32); }
.tag-filter.on { background: var(--accent, #2E7D32); border-color: var(--accent, #2E7D32); color: var(--accentOn, #fff); }

/* ---- rendered Markdown article body ---- */
.markdown-body { font-size: 15.5px; line-height: 1.75; color: var(--ink, #1B1B1F); }
.markdown-body > *:first-child { margin-top: 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
  font-weight: 800; line-height: 1.3; margin: 34px 0 14px;
}
.markdown-body h1 { font-size: 26px; }
.markdown-body h2 { font-size: 22px; }
.markdown-body h3 { font-size: 18.5px; }
.markdown-body h4, .markdown-body h5, .markdown-body h6 { font-size: 16px; }
.markdown-body p { margin: 0 0 18px; }
.markdown-body a { color: var(--accent, #2E7D32); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body strong { font-weight: 700; }
.markdown-body ul, .markdown-body ol { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.markdown-body li { line-height: 1.65; }
.markdown-body blockquote {
  margin: 0 0 18px; padding: 2px 20px;
  border-left: 3px solid var(--accent, #2E7D32);
  color: var(--inkSoft, #5A5A63);
}
.markdown-body blockquote p:last-child { margin-bottom: 0; }
.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13.5px;
  background: var(--surface, #F5F5F7); border: 1px solid var(--border, #E5E5E9);
  padding: 2px 6px; border-radius: 5px;
}
.markdown-body pre.md-code {
  background: var(--surface, #F5F5F7); border: 1px solid var(--border, #E5E5E9);
  border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px;
}
.markdown-body pre.md-code code { background: none; border: none; padding: 0; font-size: 13.5px; line-height: 1.6; }
.markdown-body .tok-keyword { color: var(--accent, #2E7D32); font-weight: 600; }
.markdown-body .tok-string { color: var(--codeString, #B25000); }
.markdown-body .tok-number { color: var(--codeNumber, #1A5FB4); }
.markdown-body .tok-comment { color: var(--codeComment, #8B8B93); font-style: italic; }
.markdown-body hr { border: none; border-top: 1px solid var(--divider, #EEEEF1); margin: 30px 0; }
.markdown-body img { max-width: 100%; border-radius: 10px; margin: 6px 0 18px; display: block; }

/* ---- accent picker (small addition, lets you pick the theme color live) ---- */
.accent-picker { display: flex; align-items: center; gap: 6px; }
.accent-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  transition: transform .15s ease, border-color .15s ease;
}
.accent-dot:hover { transform: scale(1.15); }
.accent-dot.on { border-color: var(--ink, #1B1B1F); }

/* ---- responsive ---- */
@media (max-width: 680px) {
  .nav { padding: 14px 22px; }
  .nav-right { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card, #FFFFFF);
    border-bottom: 1px solid var(--divider, #EEEEF1);
    box-shadow: 0 16px 30px -18px rgba(50,45,40,.35);
    padding: 6px 22px 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links .navlnk { padding: 12px 0; border-bottom: 1px solid var(--divider, #EEEEF1); }
  .nav-links .navlnk:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
  .header, .detail-header { padding: 40px 26px 32px; }
  .section { padding: 34px 26px; }
  .detail-section { padding: 28px 26px 40px; }
  .divider { margin: 0 26px; }
  .footer { padding: 20px 26px; }
  .name { font-size: 40px; }
  .detail-title { font-size: 30px; }
  .proj-grid { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 1fr; gap: 8px; }
  .skill-detail-row { grid-template-columns: 1fr; gap: 6px; }
  .skill-detail-row .slevel { justify-self: start; }
  .blog-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .exp-top, .detail-top { flex-wrap: wrap; row-gap: 8px; }
  .exp-title-col, .exp-top-right, .detail-top .exp-referral, .detail-meta { flex-basis: 100%; margin-left: 0; }
  .exp-top-right { justify-content: flex-start; flex-wrap: wrap; row-gap: 8px; }
  .detail-meta { text-align: left; }
  .lightbox-btn, .lightbox-close { width: 38px; height: 38px; }
  .lightbox-btn.prev { left: 8px; }
  .lightbox-btn.next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ---- print (Download CV) ---- */
@media print {
  body { background: #fff !important; }
  .page { padding: 0; }
  .card-outer { border: none; box-shadow: none; max-width: none; border-radius: 0; }
  .no-print { display: none !important; }
  .exp-card, .proj-card, .blog-card, .detail-card, .post-card { box-shadow: none !important; break-inside: avoid; }
  .section, .header { break-inside: avoid; }
}
