/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
  --accent: #5DADE2;
  --accent-text: #2e6b94;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --box-max-width: 1000px;
  --portrait-h: 560px;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.85); /* 85% white */
  --text: #2C2C2C;
  --text-muted: #888;
  --border: rgba(44,44,44,0.08);
}

[data-theme="dark"] {
  --accent: #5DADE2;
  --accent-text: #5DADE2;
  --accent-muted: #2e6b94;
  --bg: #2a2a2e;
  --surface: #32323a;
  --surface-translucent: rgba(50, 50, 58, 0.85); /* 85% dark gray */
  --text: #f0f0f0;
  --text-muted: #a8a8b0;
  --border: rgba(255,255,255,0.12);
}

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

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image: none;
  line-height: 1.6;
  overflow-y: scroll;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ═══════════════════════════════════════════════
   OCCASION WALLPAPERS
   Each occasion gets a subtle pattern background
   that shows behind the main content card.
   data-occasion is only set in occasion mode.
═══════════════════════════════════════════════ */

/* Test occasion — purple stars / polka dots */
[data-occasion="test-occasion"] body {
  background-color: #f8f4ff;
  background-image:
    radial-gradient(circle, rgba(123,79,166,0.10) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(123,79,166,0.06) 1px, transparent 1px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 7px;
}

/* Cherry blossom — soft pink scattered petals */
[data-occasion="cherry-blossom"] body {
  background-color: #fff5f7;
  background-image:
    radial-gradient(ellipse 6px 8px at 30% 40%, rgba(201,113,138,0.12) 50%, transparent 50%),
    radial-gradient(ellipse 5px 7px at 70% 25%, rgba(201,113,138,0.08) 50%, transparent 50%),
    radial-gradient(ellipse 4px 6px at 50% 75%, rgba(201,113,138,0.10) 50%, transparent 50%);
  background-size: 60px 60px;
}

/* Oktoberfest — Bavarian diamond pattern */
[data-occasion="oktoberfest"] body {
  background-color: #f2f6fc;
  background-image:
    linear-gradient(45deg, rgba(0,87,168,0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,87,168,0.07) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,87,168,0.07) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,87,168,0.07) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0;
}

/* World IP Day — green subtle grid / circuit */
[data-occasion="world-ip-day"] body {
  background-color: #f3faf6;
  background-image:
    linear-gradient(rgba(46,139,87,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,139,87,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* US Constitution Day — parchment cross-hatch */
[data-occasion="us-constitution-day"] body {
  background-color: #fdf8f4;
  background-image:
    linear-gradient(135deg, rgba(139,26,26,0.05) 1px, transparent 1px),
    linear-gradient(-135deg, rgba(139,26,26,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* German Unity Day — subtle horizontal tricolour stripes */
[data-occasion="german-unity"] body {
  background-color: #fff8f5;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 4px,
      transparent 4px, transparent 8px,
      rgba(204,0,0,0.05) 8px, rgba(204,0,0,0.05) 12px,
      transparent 12px, transparent 16px,
      rgba(255,204,0,0.06) 16px, rgba(255,204,0,0.06) 20px,
      transparent 20px, transparent 32px
    );
}

/* Ensure content containers stay solid over wallpaper */
[data-occasion] .home-box,
[data-occasion] .page-container {
  position: relative;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Gives a clean, accented ring to buttons and links when navigating via keyboard */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Specific fix for elements where you stripped the outline entirely */
.footer-search:focus-visible,
.blog-search-input:focus-visible {
  outline: 2px solid var(--accent);
}

/* ── WRAPPER ── */
.home-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ── BOX ── */
.home-box {
  max-width: var(--box-max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 40% 60%;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 rgba(44,44,44,0.1), 6px 6px 0 rgba(44,44,44,0.05);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.home-box::before {
  content: '';
  position: absolute; top: -5px; left: -5px;
  width: 30px; height: 30px;
  border-top: 10px solid var(--accent);
  border-left: 10px solid var(--accent);
  z-index: 10;
}

.home-box::after {
  content: '';
  position: absolute; bottom: -5px; right: -5px;
  width: 30px; height: 30px;
  border-bottom: 10px solid var(--accent);
  border-right: 10px solid var(--accent);
}

/* ── IMAGE COLUMN ── */
.image-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--accent);
  position: sticky;
  top: 0;
  max-height: 100vh;
}

.portrait-wrapper { position: relative; width: 100%; flex-shrink: 0; }

.portrait {
  display: block; width: 100%;
  height: var(--portrait-h); max-height: var(--portrait-h);
  object-fit: cover; object-position: top center;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
  /* Add these two lines for the smooth fade */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.portrait-wrapper:hover .portrait { filter: grayscale(0%); }

[data-theme="dark"] .image-section {
  background: var(--accent-muted);
}

/* ── CONTENT COLUMN ── */
.content-section {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}

/* ── DATE ROW ── */
.content-date {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 24px;
}

.date-text {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #bbb;
}

.date-text .day-name { font-weight: 500; color: #999; }

.date-text a { color: inherit; text-decoration: none; transition: color 0.2s; }
.date-text a:hover { color: var(--accent); }

/* ── THEME TOGGLE ── */
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: none;
  border: 1px solid rgba(44,44,44,0.15);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer; padding: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(93,173,226,0.08);
}

/* On hover: hide current icon, reveal next-mode preview */
.theme-btn:hover #icon-current { display: none; }
.theme-btn:hover #icon-hover   { display: block !important; }

[data-theme="dark"] .theme-btn { color: rgba(255,255,255,0.3); }

.theme-btn svg { width: 13px; height: 13px; }

/* ── NAME ── */
.name-header { margin-bottom: 0; }

.name-header h1 { font-size: 2.1rem; color: var(--text); line-height: 1.15; }
.name-header .highlight { color: var(--accent); }
.name-header .subtitle { 
  font-size: 0.9rem; 
  color: var(--text-muted); 
  font-family: var(--sans); 
  font-weight: 500; /* Changed from 300 to 500 */
  margin-top: 0.2rem; 
  margin-left: 1.5px;
}

/* ── DIVIDER ── */
.name-divider {
  border: none; border-top: 1px solid var(--accent);
  width: 40%; margin: 1rem auto; opacity: 0.45;
}

/* ── WELCOME ── */
.welcome { margin-bottom: 1.5rem; }

.welcome h2 { 
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem; 
  text-align: center;
  margin-bottom: 0.4rem; 
  color: var(--text); 
  line-height: 1.3;
  text-wrap: balance;
}

.welcome p { font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); }


/* ── WHERE TO START ── */
.where-to-start { padding-top: 0.1rem; }

.where-to-start__heading {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: #bbb; margin-bottom: 0.4rem;
}

/* ── ACCORDION ── */
.nav-accordion { display: flex; flex-direction: column; }

.nav-item { border-top: 1px solid var(--border); }
.nav-item:last-child { border-bottom: 1px solid var(--border); }

.nav-summary {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.92rem; color: var(--text-muted);
  transition: color 0.2s ease; user-select: none;
}

.nav-summary:hover { color: var(--text); }

.chevron {
  display: inline-flex; align-items: center; flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.chevron svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.nav-item.is-open .chevron { transform: rotate(90deg); }

.nav-label { 
  flex: 1; 
  font-weight: 400; /* Changed from 600 to 400 */
  transition: font-weight 0.2s ease;
}

/* Add this right below .nav-label to keep the active one bold */
.nav-item.is-open .nav-label {
  font-weight: 600;
}

.nav-link {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: var(--border);
  text-decoration: none; border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
  pointer-events: auto;
  margin-right: 0.35rem;
  color: rgba(44,44,44,0.22);
  border: 1px solid rgba(44,44,44,0.1);
}

.nav-link:hover { color: var(--accent); background: rgba(93,173,226,0.08); }
.nav-link svg { width: 17px; height: 17px; }

/* ── ACCORDION BODY ANIMATION ── */
.nav-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-item.is-open .nav-body { grid-template-rows: 1fr; }

.nav-body-inner {
  min-height: 0; overflow: hidden;
  padding-left: 1rem; padding-bottom: 0;
  transition: padding-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.is-open .nav-body-inner { padding-bottom: 0.75rem; }

.nav-body-inner .post-preview {
  margin-bottom: 0.45rem; padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.nav-body-inner .post-preview:last-of-type { border-bottom: none; margin-bottom: 0; }

.nav-body-inner .post-preview a {
  font-family: var(--sans); font-size: 0.875rem;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}

.nav-body-inner .post-preview a:hover { color: var(--accent); }

.nav-body-inner .post-preview .date {
  font-size: 0.75rem; color: #aaa; font-style: italic; display: block; margin-top: 0.1rem;
}

.nav-body-inner p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.fun-facts-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.fun-fact-mini {
  border: 1px solid var(--border);
  padding: 0.45rem 0.55rem;
  border-radius: 3px;
}

.fun-fact-mini__label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 0.1rem;
}

.fun-fact-mini__value {
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.4;
}

.fun-fact-mini__value a {
  color: inherit;
  text-decoration: none;
}

.fun-fact-mini__value a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.more-btn {
  display: inline-block; color: var(--accent-text);font-family: var(--sans);
  font-size: 0.8rem; text-decoration: none; margin-top: 0.3rem; transition: opacity 0.2s;
}

.more-btn:hover { opacity: 0.7; text-decoration: underline; }

/* ── FOOTER ── */
.home-footer {
  max-width: var(--box-max-width); 
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.5rem; /* Changed left/right padding to 1.5rem */
  border-top: 1px solid var(--border);
  background: transparent; 
}

[data-theme="dark"] .home-footer { border-color: rgba(255,255,255,0.12); }

.home-footer__search { flex: 0 0 auto; }

.footer-search {
  font-family: var(--sans); font-size: 0.85rem; color: var(--text);
  background: transparent; border: 1px solid rgba(44,44,44,0.2); border-radius: 3px;
  padding: 0.35rem 0.6rem; width: 160px;
  transition: border-color 0.2s ease, width 0.3s ease; outline: none;
}

[data-theme="dark"] .footer-search { border-color: rgba(255,255,255,0.18); color: var(--text); }
.footer-search::placeholder { color: #aaa; }
.footer-search:focus { border-color: var(--accent); width: 200px; }

.home-footer__nav { flex: 1; display: flex; gap: 1.25rem; justify-content: center; }

.home-footer__nav a {
  font-family: var(--serif); font-size: 0.9rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s ease;
}

.home-footer__nav a:hover { color: var(--accent); }

.home-footer__contact { flex: 0 0 auto; display: flex; gap: 0.6rem; }

.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--text);
  border: 1px solid rgba(44,44,44,0.2); border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease; text-decoration: none;
}

[data-theme="dark"] .contact-icon { border-color: rgba(255,255,255,0.2); color: var(--text); }
.contact-icon:hover { color: var(--accent); border-color: var(--accent); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .home-wrapper { padding: 0; justify-content: flex-start; min-height: unset; }

  .home-box {
    grid-template-columns: 1fr; max-width: 100%; width: 100%;
    border: none;
    box-shadow: none;
  }

  .home-box::before, .home-box::after { display: block; width: 24px; height: 24px; }
  .home-box::before { 
    top: 0; left: 0; right: auto; 
    border-top: 8px solid var(--accent); 
    border-left: 8px solid var(--accent); 
    border-right: 0; 
  }
  .home-box::after { 
    bottom: 0; right: 0; left: auto; 
    border-bottom: 8px solid var(--accent); 
    border-right: 8px solid var(--accent); 
    border-left: 0; 
  }
  .site-header, .site-footer, .page-container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .image-section { position: static; max-height: none; }

  .portrait { height: 260px; max-height: 260px; }
  .portrait-wrapper::after { height: 40px; }
  .image-fill { display: none; }

  .content-section { padding: 1.25rem 1.5rem 1.5rem; }
  .name-header h1 { font-size: 1.85rem; }

  .nav-summary { cursor: default; pointer-events: none; }
  .nav-link { pointer-events: auto; }
  .nav-link::before { display: none; }
  .chevron { display: none; }

  .home-footer {
    flex-wrap: wrap; 
    padding: 1rem 1.5rem 2rem;
    gap: 0.75rem; 
    border-top: 1px solid var(--border); /* Softens the line, removes the black curve */
  }

  .home-footer__search { flex: 1 1 100%; }
  .footer-search, .footer-search:focus { width: 100%; }
  .home-footer__nav { flex: 1 1 auto; justify-content: flex-start; flex-wrap: wrap; gap: 0.75rem 1rem; }
  .home-footer__contact { flex: 0 0 auto; }
}

/* ── Dark mode enhancements ── */
[data-theme="dark"] .home-box {
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3), 6px 6px 0 rgba(0,0,0,0.2);
}

[data-theme="dark"] .nav-item {
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .theme-btn {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--accent);
}

[data-theme="dark"] .theme-btn:hover {
  border-color: var(--accent);
  background: rgba(93,173,226,0.1);
}

[data-theme="dark"] .contact-icon {
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .footer-search {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .nav-link {
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
}

[data-theme="dark"] .nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(93,173,226,0.1);
}

[data-theme="dark"] .home-footer__nav a {
  color: var(--text-muted);
}

[data-theme="dark"] .where-to-start__heading {
  color: rgba(255,255,255,0.3);
}

[data-theme="dark"] .name-divider {
  opacity: 0.6;
}

/* ===== OTHER PAGES ===== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: var(--surface-translucent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--text);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--accent);
}

.page-header h1 {
  font-size: 3rem;
}


.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.3s;
}

.back-link:hover {
  transform: translateX(-5px);
}

.page-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--accent);
  border-radius: 4px;
  overflow: hidden;
}

.page-tab-btn {
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  color: white;
  opacity: 0.7;
  transition: all 0.3s;
  text-decoration: none;
  flex: 1;
  text-align: center;
}

.page-tab-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.page-tab-btn.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.cv-section {
  margin-bottom: 3rem;
}

.cv-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.cv-item {
  margin-bottom: 2rem;
}

.cv-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cv-item .meta {
  color: #666;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.cv-item ul {
  margin-left: 1.5rem;
}

.cv-item li {
  margin-bottom: 0.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  border: 2px solid var(--text);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 0 rgba(93, 173, 226, 0.2);
}

.blog-list {
  margin-top: 2rem;
}

.blog-post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(44, 44, 44, 0.2);
}

.blog-post h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-post h2 a:hover {
  color: var(--accent);
}

.post-meta {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

/* ── BLOG POST FORMATTING ── */
.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Headings */
.post-content h2, 
.post-content h3, 
.post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.post-content h2 { 
  font-size: 1.8rem; 
  border-bottom: 1px solid var(--border); 
  padding-bottom: 0.5rem; 
}
.post-content h3 { font-size: 1.4rem; }

/* Lists */
.post-content ul, 
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }

/* Blockquotes */
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Links */
.post-content a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   SITE HEADER (inner pages)
═══════════════════════════════════════════════ */
/* Inner Page Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  max-width: 1040px; /* Bumped up from 960px */
  width: 100%;       /* Ensures it fills available space */
  margin: 1rem auto 0; 
  background: var(--surface-translucent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header__inner {
  max-width: var(--box-max-width); margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}

.site-header__home {
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none;
  transition: color 0.2s ease; flex-shrink: 0;
}
.site-header__home:hover { color: var(--accent); }

.site-header__nav {
  flex: 1; display: flex; gap: 1.5rem; align-items: center;
}

.site-header__link {
  font-family: var(--serif); font-size: 0.9rem;
  color: var(--text-muted); text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header__link:hover { color: var(--text); }
.site-header__link.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* Inner Page Footer */
.site-footer {
  max-width: 1040px; /* Bumped up from 960px */
  width: 100%;       /* Ensures it fills available space */
  margin: 0 auto 2rem; 
  padding: 0 2rem;
  background: var(--surface-translucent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 6px 6px;
}

.home-wrapper > .site-footer {
  max-width: var(--box-max-width);
  width: 100%;
  padding: 0.75rem 0.25rem 0;
  align-self: center;
  background: transparent; 
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}
.home-wrapper > .site-footer .home-footer { margin: 0 auto; }
.site-footer .home-footer { margin: 0 auto; }

/* ═══════════════════════════════════════════════
   PAGE CONTAINER VARIANTS
═══════════════════════════════════════════════ */
.page-container--wide { max-width: var(--box-max-width); }

/* ═══════════════════════════════════════════════
   ABOUT PAGE — INTRO GRID
═══════════════════════════════════════════════ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 3rem; align-items: start;
}

.about-bio p {
  font-size: 0.975rem; line-height: 1.8;
  color: var(--text-muted); margin-bottom: 1.1rem;
}
.about-bio p a { color: var(--accent-text); text-decoration: none; }
.about-bio p a:hover { text-decoration: underline; }
.about-bio .page-header { margin-bottom: 1.5rem; }

/* ── Sidebar ── */
.about-sidebar {
  position: sticky; top: 5rem; align-self: start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.about-sidebar__label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.9rem;
}

.about-toc { display: flex; flex-direction: column; }

.about-toc__link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--text-muted); text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border-radius: 0 3px 3px 0;
}
.about-toc__link svg { 
  color: var(--accent); 
  flex-shrink: 0; 
  stroke-width: 2.5px; /* Here is where it belongs! */
}

.about-toc__link:hover {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(93,173,226,0.06);
}

/* ── Section intros ── */
.about-section__intro {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════
   ABOUT SECTIONS (shared)
═══════════════════════════════════════════════ */
.about-section {
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.about-section h2 {
  font-size: 1.75rem; margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ═══════════════════════════════════════════════
   FUN FACTS
═══════════════════════════════════════════════ */
.fun-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.fun-fact {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s ease;
}
.fun-fact:hover { border-color: var(--accent); }

.fun-fact__icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.fun-fact__label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); margin-bottom: 0.2rem;
}
.fun-fact__value {
  font-family: var(--serif); font-size: 1rem;
  color: var(--text); margin-bottom: 0.2rem;
}
.fun-fact__value a { color: inherit; text-decoration: none; }
.fun-fact__value a:hover { color: var(--accent); text-decoration: underline; }
.fun-fact__author {
  font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.3rem;
}
.fun-fact__note {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   IMPORTANT DATES (OCCASIONS)
═══════════════════════════════════════════════ */
.occasions-list { display: flex; flex-direction: column; gap: 1.5rem; }

.occasion-item {
  display: grid; grid-template-columns: 4px 1fr;
  gap: 1.1rem; align-items: stretch;
}
.occasion-accent { border-radius: 2px; min-height: 40px; }

.occasion-name {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--text); margin-bottom: 0.2rem;
}
.occasion-meta {
  font-family: var(--sans); font-size: 0.75rem;
  color: var(--text-muted); margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.occasion-factoid {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
}
.occasion-source {
  font-size: 0.75rem; color: var(--text-muted);
  font-style: italic; margin-top: 0.35rem; opacity: 0.7;
}

/* ═══════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 2.5rem;
}

.skill-category h3 {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.75rem;
}

.skill-list { list-style: none; }
.skill-list li {
  font-size: 0.875rem; color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1.1rem; position: relative;
  border-bottom: 1px solid var(--border);
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-size: 0.75rem; line-height: inherit;
}

/* ═══════════════════════════════════════════════
   WORK HISTORY (CV TOGGLE)
═══════════════════════════════════════════════ */
.cv-controls {
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

.cv-toggle-group {
  display: flex; border: 1px solid var(--text);
  border-radius: 3px; overflow: hidden;
}
[data-theme="dark"] .cv-toggle-group { border-color: rgba(255,255,255,0.25); }

.cv-toggle-btn {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 400;
  padding: 0.35rem 0.9rem; background: transparent;
  border: none; color: var(--text-muted); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cv-toggle-btn + .cv-toggle-btn { border-left: 1px solid var(--text); }
[data-theme="dark"] .cv-toggle-btn + .cv-toggle-btn { border-left-color: rgba(255,255,255,0.25); }
.cv-toggle-btn.is-active { background: var(--text); color: #fff; }
[data-theme="dark"] .cv-toggle-btn.is-active { background: var(--text); color: var(--bg); }

.print-cv-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: 0.8rem;
  color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 3px;
  padding: 0.35rem 0.75rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.print-cv-btn:hover { background: var(--accent); color: #fff; }

/* CV section labels */
.cv-section-label {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 2rem 0 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.cv-section-label:first-child { margin-top: 0; }

/* CV entries */
.cv-entry {
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.cv-entry:last-child { border-bottom: none; }
.cv-entry h3 { font-size: 1.05rem; margin-bottom: 0.2rem; color: var(--text); }
.cv-entry .meta { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.6rem; }
.cv-entry p { font-size: 0.875rem; color: var(--text-muted); }
.cv-entry ul { margin-left: 1.25rem; }
.cv-entry li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.3rem; line-height: 1.6; }

/* Extra (non-featured) entries — hidden until .cv-show-all */
.cv-entry--extra { display: none; }
.cv-show-all .cv-entry--extra { display: block; }

/* ═══════════════════════════════════════════════
   PATENTS TABLE
═══════════════════════════════════════════════ */
.patents-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.patents-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.patents-table th {
  text-align: left; font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 2px solid var(--accent); white-space: nowrap;
}
.patents-table th:last-child { padding-right: 0; }
.patents-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.5;
}
.patents-table td:last-child { padding-right: 0; }
.patents-table tr:last-child td { border-bottom: none; }
.patent-date { white-space: nowrap; color: var(--text-muted); font-style: italic; font-size: 0.8rem; }
.patent-title { color: var(--text); font-family: var(--serif); }
.patent-applicant { color: var(--text-muted); font-size: 0.825rem; }

/* ═══════════════════════════════════════════════
   PROJECTS — SHOWCASE
═══════════════════════════════════════════════ */
.project-hero { margin-bottom: 3rem; }

.project-hero-card {
  border: 2px solid var(--text); position: relative;
  transition: border-color 0.3s ease;
}
[data-theme="dark"] .project-hero-card { border-color: rgba(255,255,255,0.2); }

.project-hero-card::before {
  content: ''; position: absolute; top: -5px; left: -5px;
  width: 30px; height: 30px;
  border-top: 10px solid var(--accent);
  border-left: 10px solid var(--accent);
  z-index: 1;
}
.project-hero-card::after {
  content: ''; position: absolute; bottom: -5px; right: -5px;
  width: 30px; height: 30px;
  border-bottom: 10px solid var(--accent);
  border-right: 10px solid var(--accent);
}

/* Visual header — dot-pattern, same motif as home portrait */
.project-hero-visual {
  background: var(--accent); height: 180px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.25) 2.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 14px 14px, 9px 9px;
  background-position: 0 0, 4px 4px;
}
.project-hero-visual__label {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 2rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.9); /* Bumped from 0.25 */
  letter-spacing: 0.04em;
  pointer-events: none; user-select: none;
}

.project-hero-body { padding: 2rem 2rem 2rem; }

.project-status {
  display: inline-block; font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 2px; margin-bottom: 1rem;
}
.project-status--sm { font-size: 0.62rem; margin-bottom: 0.5rem; }

.project-hero-title { font-size: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.project-hero-desc { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.975rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.project-tag {
  font-family: var(--sans); font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: var(--border); border-radius: 2px; color: var(--text-muted);
}

.project-hero-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent); text-decoration: none;
  font-family: var(--sans); font-size: 0.875rem;
  transition: opacity 0.2s ease;
}
.project-hero-link:hover { opacity: 0.7; text-decoration: underline; }

/* Remaining projects grid */
.projects-grid-section { margin-top: 3rem; }
.projects-grid-heading {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}

/* Reset existing .project-card for new body layout */
.project-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project-card__visual {
  background: var(--accent); height: 80px; position: relative;
  opacity: 0.6;
}
.project-card__visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
  background-size: 10px 10px;
}
.project-card__body { padding: 1.5rem; flex: 1; }
.project-card__body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.project-card__body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.75rem; }

/* Coming soon note */
.projects-coming-soon {
  margin-top: 2rem; padding: 1.5rem;
  border: 1px dashed var(--border); border-radius: 3px;
  font-size: 0.875rem; color: var(--text-muted); text-align: center;
}
.projects-coming-soon a { color: var(--accent); text-decoration: none; }
.projects-coming-soon a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   BLOG — SEARCH + LIST
═══════════════════════════════════════════════ */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: start;
}

.blog-tools {
  position: sticky;
  top: 5rem;
  align-self: start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.blog-tools__label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.blog-search-bar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.blog-search-input {
  font-family: var(--sans); font-size: 0.9rem; color: var(--text);
  background: transparent;
  border: 1px solid var(--border); border-radius: 3px;
  padding: 0.5rem 0.75rem; width: 100%;
  transition: border-color 0.2s ease, width 0.3s ease; outline: none;
}
[data-theme="dark"] .blog-search-input { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-input:focus { border-color: var(--accent); }

.blog-search-count {
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-rss-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.blog-rss-link:hover {
  text-decoration: underline;
}

.blog-no-results {
  display: none; font-style: italic;
  color: var(--text-muted); padding: 2rem 0; font-size: 0.9rem;
}
.blog-empty { color: var(--text-muted); font-style: italic; }

.blog-post__read-link {
  display: inline-block; color: var(--accent-text);
  font-family: var(--sans); font-size: 0.8rem;
  text-decoration: none; margin-top: 0.5rem;
  transition: opacity 0.2s;
}
.blog-post__read-link:hover { opacity: 0.7; text-decoration: underline; }
.post-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PRINT PAGE (cv-print.njk)
═══════════════════════════════════════════════ */
.print-page {
  max-width: 820px; margin: 0 auto;
  padding: 3rem 2rem;
  font-family: var(--sans); color: var(--text);
}

.print-actions {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}

.print-action-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  background: var(--text); color: #fff;
  border: none; border-radius: 3px;
  padding: 0.5rem 1rem; cursor: pointer;
  transition: opacity 0.2s;
}
[data-theme="dark"] .print-action-btn { background: var(--text); color: var(--bg); }
.print-action-btn:hover { opacity: 0.8; }

.print-back-link {
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--accent); text-decoration: none;
  transition: opacity 0.2s;
}
.print-back-link:hover { opacity: 0.7; text-decoration: underline; }

.print-view-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  margin-left: auto;
}
.print-view-label {
  font-family: var(--sans); font-size: 0.78rem; color: var(--text-muted);
}
.print-toggle-btn {
  font-family: var(--sans); font-size: 0.78rem;
  padding: 0.25rem 0.7rem; background: transparent;
  border: 1px solid var(--border); border-radius: 2px;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
}
.print-toggle-btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.print-cv-header {
  border-bottom: 3px solid var(--text);
  padding-bottom: 1.25rem; margin-bottom: 2rem; position: relative;
}
.print-cv-header::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; width: 80px; height: 3px;
  background: var(--accent);
}
.print-cv-header h1 { font-size: 2.25rem; margin-bottom: 0.25rem; }
.print-cv-subtitle {
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.print-cv-contact {
  font-family: var(--sans); font-size: 0.825rem;
  color: var(--text-muted);
}
.print-cv-contact a { color: var(--accent); text-decoration: none; }

.print-section { margin-bottom: 2rem; }
.print-section h2 {
  font-size: 1.25rem; margin-bottom: 1rem;
  padding-bottom: 0.3rem; border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.print-entry { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.print-entry:last-child { border-bottom: none; }
.print-entry__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.print-entry h3 { font-size: 1rem; color: var(--text); }
.print-entry__meta { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.print-entry ul { margin-left: 1.25rem; margin-top: 0.3rem; }
.print-entry li { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; line-height: 1.55; }
.print-entry p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

.print-admissions { margin-left: 1.25rem; }
.print-admissions li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.4rem; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — INNER PAGES
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header */
  .site-header__inner { padding: 0.65rem 1rem; gap: 0.75rem; }
  .site-header__nav { gap: 0.75rem; }
  .site-header__link { font-size: 0.83rem; }

  /* Site footer */
  .site-footer { padding: 0 1rem; }

  /* About intro: stack columns */
  .about-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-sidebar { position: static; }
  .about-toc { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  
  /* 2. ONLY the mobile adjustments go here */
  .about-toc__link {
    border-left: none; 
    border: 1px solid var(--border);
    border-radius: 3px; 
    padding: 0.4rem 0.6rem; 
    font-size: 0.8rem;
  }
  .about-toc__link:hover { border-color: var(--accent); background: rgba(93,173,226,0.06); }

  /* Fun facts */
  .fun-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-tools { position: static; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Patents table: hide issue date on small screens */
  .patents-table th:first-child, .patents-table td:first-child { display: none; }

  /* Projects hero */
  .project-hero-visual { height: 120px; }
  .project-hero-title { font-size: 1.6rem; }

  /* Print page */
  .print-actions { flex-direction: column; align-items: flex-start; }
  .print-view-toggle { margin-left: 0; }
  .print-cv-header h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .fun-facts-grid { grid-template-columns: 1fr; }
  .fun-facts-mini-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PRINT MEDIA — hide chrome when printing
═══════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .print-actions,
  .back-link, .cv-controls, .about-sidebar { display: none !important; }

  .about-intro { display: block; }
  .cv-entry--extra { display: block !important; }
  .print-entry--extra { display: block !important; }

  body { font-size: 10.5pt; line-height: 1.5; background: #fff; color: #000; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { page-break-after: avoid; }
  .cv-entry, .print-entry { page-break-inside: avoid; }
}


.date-theme-buttons { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.date-theme-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; cursor: pointer; }
.date-theme-btn:hover { border-color: var(--accent); color: var(--accent); }
