/* Quantum Theme - Core Styles */
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --primary-text-over: #ffffff;

  --text-main: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #6e6e73;
  --text-link: var(--primary-color);

  --bg-main: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-blur-overlay: rgba(0, 0, 0, 0.2);

  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-strong: rgba(0, 0, 0, 0.15);

  --shadow-color-light-rgb: 0, 0, 0;
  --shadow-opacity-light: 0.08;
  --shadow-opacity-medium: 0.12;
  --shadow-opacity-strong: 0.15;

  --body-font: "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --heading-font: "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --site-title-font: 'Pacifico', cursive;
  --transition-standard: 0.3s ease;
  --bg-image: url('https://source.unsplash.com/random/1600x900?abstract');
  --nr-animation-transform-y: 20px;

  --header-height: 80px;

  --code-block-bg: #f7f7f7; 
  --code-block-text: #24292e; 
  --code-block-border: #e1e4e8;

  --code-highlight-bg-light: #f7f7f7;
  --code-highlight-text-light: #24292e;
  --code-plain-bg-light: var(--bg-secondary);
  --code-plain-text-light: var(--text-main);
  --code-border-light: var(--border-color);
  --code-left-border-light: var(--primary-color);

  --inline-code-bg: rgba(27,31,35,.07);
  --inline-code-text: var(--text-main);

  --copy-btn-bg: var(--bg-secondary);
  --copy-btn-text: var(--text-tertiary);
  --copy-btn-border: var(--border-color);
  --copy-btn-hover-bg: var(--primary-color);
  --copy-btn-hover-text: var(--primary-text-over);
  --copy-btn-hover-border: var(--primary-color);

  --logo-font-family: 'Montserrat', sans-serif;
  --logo-main-color-light: #0B1D3A;
  --logo-sub-color-light: #8CA6C1;
  --header-height: 70px; 
}

html.dark-mode {
  --primary-color: #0a84ff;
  --primary-dark: #0060df;
  --primary-text-over: #ffffff;

  --text-main: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --text-link: var(--primary-color);

  --bg-main: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #2a2a2a;
  --bg-blur-overlay: rgba(0, 0, 0, 0.5);

  --border-color: rgba(255, 255, 255, 0.15);
  --border-color-strong: rgba(255, 255, 255, 0.2);

  --shadow-color-light-rgb: 0,0,0;
  --shadow-opacity-light: 0.25;
  --shadow-opacity-medium: 0.35;
  --shadow-opacity-strong: 0.45;

  --code-block-bg: #22272e;  
  --code-block-text: #c9d1d9; 
  --code-block-border: #444c56;

  --code-highlight-bg-dark: #22272e; 
  --code-highlight-text-dark: #c9d1d9; 
  --code-plain-bg-dark: #22272e;
  --code-plain-text-dark: #c9d1d9;   
  --code-border-dark: #444c56;
  --code-left-border-dark: var(--primary-color); 
  
  --inline-code-bg: rgba(177,186,196,.15);
  --inline-code-text: var(--text-main);

  --copy-btn-bg: #3a3f4b; 
  --copy-btn-text: #a9b1bd;
  --copy-btn-border: #4a505a;
  --copy-btn-hover-bg: var(--primary-color);
  --copy-btn-hover-text: var(--primary-text-over);
  --copy-btn-hover-border: var(--primary-color);

  --logo-main-color-dark: #E2ECF9;
  --logo-sub-color-dark: #AFCBE4;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--body-font);
  margin: 0;
  padding-top: var(--header-height);
  transition: background-color var(--transition-standard), color var(--transition-standard);
}

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


/* Base Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.section-content {
  margin-bottom: 60px;
}

.section-title {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 700;
  letter-spacing: 0.004em;
  font-family: var(--heading-font);
  margin-bottom: 32px;
  position: relative;
  color: var(--text-main);
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}


/* Grid Layouts */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* Artistic Blur Effect */
.artistic-blur-container {
  position: relative;
  overflow: hidden;
}

.artistic-blur-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.8);
  z-index: 1;
  transform: scale(1.1);
}
html.dark-mode .artistic-blur-background {
  filter: blur(15px) brightness(0.6);
}
.artistic-blur-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-blur-overlay);
    z-index: 1;
}
.artistic-blur-container > *:not(.artistic-blur-background) {
    position: relative;
    z-index: 2;
}


/* Featured Article */
.featured-article {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-card);
  box-shadow: 0 4px 16px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-light));
}

.featured-article:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-medium));
}

.featured-article__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-article__media {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 300px;
  position: relative;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.featured-article__image {
  aspect-ratio: 3 / 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 1s ease;
  z-index: 2;
  border-radius: 8px;
}

.featured-article:hover .featured-article__image {
  transform: scale(1.03);
}

.featured-article__content {
  padding: 24px;
}

.featured-article__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.featured-article__tag {
  background-color: var(--primary-color);
  color: var(--primary-text-over);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.featured-article__date {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.42859;
  font-weight: 500;
}

.featured-article__title {
  font-size: 28px;
  line-height: 1.14286;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.featured-article__excerpt {
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.featured-article__cta {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-link);
  position: relative;
}

.featured-article__cta:after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.featured-article:hover .featured-article__cta:after {
  transform: translateX(4px);
}


/* Stream Article */
.stream-article {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-card);
  box-shadow: 0 2px 12px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-light));
  height: 100%;
  display: flex; 
  flex-direction: column; 
}

.stream-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-medium));
}

.stream-article__link {
  display: flex; 
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.stream-article__media {
  position: relative;
  padding-top: 80%; 
  overflow: hidden;
  background-color: var(--bg-secondary); 
}

.stream-article__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.8s ease;
  border-radius: 4px;
}

.stream-article:hover .stream-article__image {
  transform: scale(1.05);
}

.stream-article__content {
  padding: 20px;
  flex-grow: 1; 
}

.stream-article__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stream-article__tag {
  background-color: var(--bg-secondary);
  color: var(--text-main); 
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html.dark-mode .stream-article__tag {
    color: var(--text-main); 
}

.stream-article__date {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.33337;
  font-weight: 500;
}

.stream-article__title {
  font-size: 18px;
  line-height: 1.33337;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}


/* Secondary Featured Section with Blur */
.secondary-featured-section .stream-article__media {
  padding-top: 35%; 
}

.secondary-featured-section .stream-article__media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.85);
  z-index: 1;
  transform: scale(1.1);
}
html.dark-mode .secondary-featured-section .stream-article__media::before {
  filter: blur(10px) brightness(0.65);
}

.secondary-featured-section .stream-article__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 70%;
  height: 90%;
  object-fit: contain;
  z-index: 2;
  border-radius: 6px;
  transition: transform 0.8s ease;
}

.secondary-featured-section .stream-article:hover .stream-article__image {
  transform: scale(1.03);
}


/* View Archive Button */
.view-archive-wrapper {
  text-align: center;
  margin-top: 40px;
}

.view-archive-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--primary-text-over); 
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-standard), transform var(--transition-standard);
  box-shadow: 0 4px 12px rgba(var(--primary-color), 0.3);
}

.view-archive-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--primary-color), 0.4);
}
html.dark-mode .view-archive-btn {
    color: var(--primary-text-over); 
}


/* Hero Section */
.hero-section {
  padding-top: 40px; 
}

.hero-section .section-title {
  font-size: 36px;
  margin-bottom: 40px;
}

.featured-article-container {
  margin-bottom: 30px;
}


/* Animation */
.nr-scroll-animation {
  opacity: 0;
  transform: translateY(var(--nr-animation-transform-y, 20px));
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nr-scroll-animation.animated {
  opacity: 1;
  transform: translateY(0);
}


/* Footer Styles */
.footer-main {
  margin-top: 80px;
  padding: 40px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary); 
  transition: background-color var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard);
}

.footer-main a {
  color: var(--text-tertiary);
  transition: color var(--transition-standard);
}

.footer-main a:hover {
  color: var(--primary-color);
}


/* Styles for the .foot-nav structure */
.content-body.footer-wraper { 
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.footer-box {
  display: flex;
  flex-direction: column;
}

.simplified-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.simplified-footer .copyright-line {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.simplified-footer .copyright-line a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.simplified-footer .copyright-line a:hover {
  text-decoration: underline;
}

.simplified-footer .social-links {
  display: flex;
  gap: 15px;
}

.simplified-footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(var(--shadow-color-light-rgb), 0.05); 
  color: var(--text-tertiary);
  transition: all 0.3s ease;
}
html.dark-mode .simplified-footer .social-link {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
}

.simplified-footer .social-link:hover {
  background-color: var(--primary-color);
  color: var(--primary-text-over);
  transform: translateY(-3px);
}

.simplified-footer .social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* Header Styles */
.nav {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out; 
}

.nav.nav--scrolled {
  background-color: var(--bg-main); 
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(var(--shadow-color-light-rgb), 0.08);
}

html.dark-mode .nav.nav--scrolled {
  background-color: var(--bg-main); 
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}

html:not(.dark-mode) .nav:not(.nav--scrolled) {
  border-bottom: 1px solid rgba(var(--shadow-color-light-rgb), 0.08);
}
html.dark-mode .nav:not(.nav--scrolled) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
}

.nav-content-wrapper {
  height: 100%;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo-link {
  display: flex; 
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.nav-site-title {
  font-family: var(--logo-font-family);
  line-height: 1.1; 
  display: flex; 
  flex-direction: column;
  align-items: flex-start;
}

.nav-site-title__main {
  font-size: 24px;  
  font-weight: 700; 
  color: var(--logo-main-color-light);
  letter-spacing: 0.02em; 
  transition: color var(--transition-standard);
}
html.dark-mode .nav-site-title__main {
  color: var(--logo-main-color-dark);
}

.nav-site-title__sub {
  font-size: 16px; 
  font-weight: 500;
  color: var(--logo-sub-color-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: -2px; 
  transition: color var(--transition-standard);
}
html.dark-mode .nav-site-title__sub {
  color: var(--logo-sub-color-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px; 
}

.nav-item-wrapper {
  margin-left: 10px; 
}

.nav-item-content {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color var(--transition-standard), background-color var(--transition-standard);
  display: inline-block;
  line-height: normal;
  border: 1px solid transparent;
}

html.dark-mode .nav-item-content {
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-item-content:hover,
.nav-item-content.active { 
  color: var(--primary-color);
  background-color: var(--bg-secondary);
  border-color: var(--bg-secondary);
}
html.dark-mode .nav-item-content:hover,
html.dark-mode .nav-item-content.active {
  background-color: var(--bg-card); 
  border-color: var(--bg-card);
}

.nav-item-button {
  background: none;
  border: 1px solid var(--border-color); 
  color: var(--text-tertiary);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px; 
  font-weight: 500;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  line-height: 1; 
  transition: color var(--transition-standard), border-color var(--transition-standard), background-color var(--transition-standard);
}

.nav-item-button:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: var(--bg-secondary); 
}
html.dark-mode .nav-item-button:hover {
  background-color: var(--bg-card);
}

#nav-search-toggle {
  padding: 8px; 
}

#nav-search-toggle.active { 
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: var(--bg-secondary);
}
html.dark-mode #nav-search-toggle.active {
  background-color: var(--bg-card);
}

/* Modal Styles */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65); 
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  background-color: var(--bg-main);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(var(--shadow-color-light-rgb), 0.25);
  width: 90%;
  max-width: 650px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.search-modal-close {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 8px; 
  border-radius: 50%; 
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.search-modal-close svg {
  width: 18px;
  height: 18px;
}
.search-modal-close:hover {
  color: var(--text-main);
   background-color: var(--bg-secondary);
}
html.dark-mode .search-modal-close:hover {
  background-color: var(--bg-card); 
}


/* Styles for Fuse.js search modal */
.modal-search-input {
  width: 100%;
  padding: 10px 15px;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: var(--bg-secondary);
  color: var(--text-main);
  box-sizing: border-box;
  line-height: 1.5;
}
.modal-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
  outline: none;
}

.modal-search-results {
  max-height: calc(85vh - 120px);
  overflow-y: auto;
  text-align: left;
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color-light, var(--border-color)); 
}
.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item a {
  font-size: 1.1em;
  color: var(--text-link);
  text-decoration: none;
  font-weight: 600;
  display: block; 
}
.search-result-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.search-result-summary {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}


/* Archives Page Styles */
.archive-page {
  padding-top: 40px;
  padding-bottom: 60px;
}

.archive-year-group {
  margin-bottom: 40px;
}
.archive-year-group:last-of-type {
  margin-bottom: 20px;
}

.archive-year {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color-strong);
}
html.dark-mode .archive-year {
  color: var(--text-secondary);
  border-bottom-color: var(--border-color-strong);
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-item {
  margin-bottom: 0; 
}

.archive-item__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-link);
  padding: 10px 0;
  position: relative; 
  overflow: hidden; 
}

.archive-item__link:hover .archive-item__title {
  text-decoration: underline;
  color: var(--primary-dark);
}
html.dark-mode .archive-item__link:hover .archive-item__title {
  color: var(--primary-color);
}

.archive-item__title {
  margin-right: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--bg-main);
  padding-right: 5px;
  position: relative;
  z-index: 1;
}

.archive-item__date {
  flex-shrink: 0;
  font-size: 0.9em;
  color: var(--text-tertiary);
  white-space: nowrap;
  background-color: var(--bg-main);
  padding-left: 5px;
  position: relative;
  z-index: 1;
}

.archive-item__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6em;
  height: 1px;
  border-bottom: 1.5px dotted var(--text-tertiary);
  z-index: 0;
}

html.dark-mode .archive-item__title,
html.dark-mode .archive-item__date {
  background-color: var(--bg-main);
}


/* layouts/about/single.html Specific Styles */
.about-page-layout { 
  padding-top: 40px;    
  padding-bottom: 60px; 
  max-width: 800px;    
  margin-left: auto;
  margin-right: auto;
}

.about-page__header {
  margin-bottom: 30px;
}

.about-page__header h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

.about-page__content {
  font-size: 17px; 
  line-height: 1.7; 
  color: var(--text-secondary); 
}

.about-page__content p {
  margin-bottom: 1.5em;
}

.about-page__content a {
  color: var(--text-link);
  text-decoration: underline;
  transition: color var(--transition-standard);
}

.about-page__content a:hover {
  color: var(--primary-dark);
  text-decoration: none; 
}

.about-page__content h2 {
  font-size: 28px;
  color: var(--text-main);
  margin-top: 20px;
  margin-bottom: 15px; 
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.about-page__main-content > p:first-of-type {
  font-size: 1em; 
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px; 
}

.about-page__content ul,
.about-page__content ol {
  list-style: disc;
  margin-bottom: 1.5em;
  padding-left: 25px; 
}

.about-page__content li {
  margin-bottom: 0.5em;
}

.about-page__main-content ul {
  padding-left: 20px;
  padding: 0;
  margin-left: 20px;
  margin-top: 0;
}

.about-page__main-content li {
  margin-bottom: 0.8em;
}
.about-page__main-content li {
  font-size: 1.0em;  
  line-height:  1.05em;
  line-height: 1.8;  
}

/* layouts/_default/single.html - Blog Post Styles */
.post-layout { 
  padding-top: 40px;
  padding-bottom: 60px;
  max-width: 800px; 
  margin-left: auto;
  margin-right: auto;
}

.post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.post-title {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.post-meta {
  font-size: 0.9em;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px; 
  align-items: center;
}

.post-meta span {
  display: inline-block; 
  margin-right: 15px; 
}
.post-meta span:last-child {
  margin-right: 0;
}

.post-meta a {
  color: var(--text-tertiary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-tertiary);
  transition: color var(--transition-standard), border-color var(--transition-standard);
}

.post-meta a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.post-cover-image {
  margin-bottom: 30px;
  text-align: center;
}

.post-cover-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; 
  box-shadow: 0 4px 12px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-medium));
}

.post-content {
  font-size: 17px; 
  line-height: 1.7;
  color: var(--text-secondary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-main);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  line-height: 1.3;
  font-weight: 600;
}

.post-content h1 { font-size: 2em; } 
.post-content h2 { font-size: 1.7em; }
.post-content h3 { font-size: 1.4em; }
.post-content h4 { font-size: 1.2em; }


.post-content p {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.post-content div > p:last-child,
.post-content section > p:last-child,
.post-content article > p:last-child {
    margin-bottom: 0;
}

.post-content a {
  color: var(--text-link);
  text-decoration: underline;
  font-weight: 500;
}
.post-content a:hover {
  color: var(--primary-dark);
}

.post-content blockquote {
  margin: 1.25em 0;
  padding: 10px 20px;
  border-left: 4px solid var(--primary-color);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-style: italic;
}
.post-content blockquote p {
  margin-bottom: 0;
}

.post-content ul,
.post-content ol {
  margin-top: 0;
  margin-bottom: 1.25em;
  padding-left: 25px;
}
.post-content li {
  margin-bottom: 0.4em;
}

.post-content pre {
  padding: 1em; 
  padding-right: 4.5em;
  border-radius: 6px; 
  overflow-x: auto;
  margin-top: 0;
  margin-bottom: 1.5em; 
  font-size: 0.9em; 
  line-height: 1.5; 
  border: 1px solid var(--border-color); 
  background-color: var(--code-block-bg);
  color: var(--code-block-text);
}

.post-content pre code { 
  font-family: "SF Mono", "Consolas", "Menlo", "Courier", monospace; 
  padding: 0; 
  background-color: transparent !important; 
  border: none; 
  font-size: 1em; 
  color: inherit; 
  white-space: pre; 
}

.post-content pre {
  background-color: var(--code-block-bg);
  border-color: var(--code-block-border);
  color: var(--code-block-text);
}

.post-content code { 
  background-color: var(--inline-code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--inline-code-text);
  font-family: "SF Mono", "Consolas", "Menlo", "Courier", monospace;
}

.post-content code:not(pre code) { 
  background-color: var(--inline-code-bg-light);
  color: var(--inline-code-text-light);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: "SF Mono", "Consolas", "Menlo", "Courier", monospace;
}
html.dark-mode .post-content code:not(pre code) {
  background-color: var(--inline-code-bg-dark);
  color: var(--inline-code-text-dark);
}

.post-content table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}
.post-content th,
.post-content td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  text-align: left;
}
.post-content th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-main);
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em auto; 
  display: block;
  border-radius: 4px;
}


/* Post Cover Image Styles (_default/single.html) */
.post-cover-container {
  margin-top: 20px;
  margin-bottom: 35px;
  width: 100%;
}

/* Default styling for the cover image (if no artistic blur) */
.post-cover-image--default {
  display: block;
  width: 100%; 
  max-height: 450px; 
  object-fit: cover; 
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-medium));
}


/* Artistic Blur Styling for Post Cover */
.post-cover--artistic-blur-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px; 
  padding-top: 50%; 
  background-color: var(--bg-secondary);
}

.post-cover-blur-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image); 
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.75);
  transform: scale(1.15); 
  z-index: 1;
}
html.dark-mode .post-cover-blur-background {
  filter: blur(20px) brightness(0.60);
}

.post-cover-image--artistic-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;                  
  width: 98%;
  height: 98%;
  object-fit: contain;
  border-radius: 6px;
}

.post-cover-image.post-cover-image--artistic-blur {
    margin: 0 !important;
}


/* Post Navigation */
.post-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex-basis: 48%;
  margin-bottom: 15px;
}
.post-navigation a {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color var(--transition-standard), background-color var(--transition-standard);
}
.post-navigation a:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-secondary);
}
.post-navigation .meta-nav {
  display: block;
  font-size: 0.85em;
  color: var(--text-tertiary);
  margin-bottom: 5px;
}
.post-navigation .post-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-link);
}
.post-navigation a:hover .post-title {
  color: var(--primary-dark);
}


/* layouts/taxonomy/tag.terms.html Styles */
.terms-page {
  padding-top: 40px;
  padding-bottom: 60px;
}

.terms-page__header {
  margin-bottom: 40px; 
}

.terms-list-container {
  max-width: 700px; 
  margin-left: auto;
  margin-right: auto;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 50px;
}

.terms-list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terms-list-item:last-child {
  border-bottom: none;
}

.terms-list-item__link {
  font-size: 1.1em;
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}
.terms-list-item__link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.terms-list-item__count {
  font-size: 0.9em;
  color: var(--text-tertiary);
  background-color: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .terms-list {
    column-count: 1;
  }
}


/* --- About Page Styles (layouts/about/single.html) --- */

.about-page-layout {
  padding-top: 40px;
  padding-bottom: 60px;
  max-width: 900px; /* Slightly wider to accommodate two columns comfortably */
  margin-left: auto;
  margin-right: auto;
}

.about-page__header {
  margin-bottom: 30px;
  /* text-align: center; /* Optional */
}

.about-page__header h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

/* Two-column layout for intro text and image */
.about-page__intro {
  display: flex;
  flex-wrap: wrap; /* Allow image to wrap below text on small screens */
  gap: 30px;       /* Space between text and image column */
  margin-bottom: 40px; /* Space before "Hosted Projects" */
  align-items: flex-start; /* Align items to the top */
}

.about-page__intro-text {
  flex: 2; /* Text takes up more space, e.g., 2/3 */
  min-width: 300px; /* Ensure text column doesn't get too squeezed */
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.about-page__intro-text p,
.about-page__intro-text ul {
  margin-bottom: 1.25em;
}
.about-page__intro-text ul {
  padding-left: 20px;
}
.about-page__intro-text li {
  margin-bottom: 0.5em;
}
.about-page__intro-text strong { /* Make bold text from Markdown more prominent */
    font-weight: 600;
    color: var(--text-main);
}


.about-page__intro-image {
  flex: 1; /* Image takes up less space, e.g., 1/3 */
  min-width: 250px; /* Minimum width for the image column */
  text-align: center; /* Center image if it's narrower than its column */
}

.profile-image {
  max-width: 100%; /* Make image responsive within its column */
  height: auto;
  border-radius: 12px; /* Soft rounded corners */
  box-shadow: 0 5px 15px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-medium));
  object-fit: cover; /* If you want it to fill a certain aspect ratio */
}

/* Styles for the "Hosted Projects" section and below */
.about-page__projects {
  /* border-top: 1px solid var(--border-color); /* Optional separator */
  padding-top: 40px;
}

.about-page__projects h2 {
  font-size: 28px; /* Or use your .section-title styles */
  color: var(--text-main);
  margin-top: 0; /* Reset if it had top margin from intro section */
  margin-bottom: 25px;
  font-weight: 600;
  /* Add styling similar to .section-title if desired, e.g., bottom border */
  position: relative;
  padding-bottom: 10px;
}
.about-page__projects h2::after { /* Underline for this specific H2 */
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}


.about-page__projects ul {
  list-style: none;
  padding: 0;
}
.about-page__projects li {
  margin-bottom: 1em;
  font-size: 1.05em; /* Slightly larger project links */
  line-height: 1.6;
}
.about-page__projects a {
  color: var(--text-link);
  font-weight: 500;
  /* text-decoration: none; */ /* Already default */
}
.about-page__projects a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}


/* --- Shortcode: Details (Collapsible) Styles --- */
.details-shortcode {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  background-color: var(--bg-secondary);
}

.details-shortcode__summary {
  padding: 0.75em 1.25em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  position: relative;
  list-style: none; 
}
.details-shortcode__summary::-webkit-details-marker {
  display: none;
}
.details-shortcode__summary::before { 
  content: '►'; 
  font-size: 0.8em;
  margin-right: 0.5em;
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  color: var(--text-tertiary);
}

.details-shortcode[open] > .details-shortcode__summary::before {
  transform: rotate(90deg);
}

.details-shortcode__summary:hover {
  background-color: rgba(var(--shadow-color-light-rgb), 0.05); 
}
html.dark-mode .details-shortcode__summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}


.details-shortcode__content {
  padding: 0.25em 1.25em 1.25em 1.25em; 
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.details-shortcode__content > :first-child {
  margin-top: 0.75em;
}
.details-shortcode__content > :last-child {
  margin-bottom: 0;
}


/* --- Shortcode: PlantUML Styles --- */
img.plantuml {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-secondary); 
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-height: 50px;
}


/* Shortcode: Image Styles */
.sc-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 4px;
}

.sc-image-default {
  margin-left: auto; 
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-light));
}

.sc-image-inline {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.5em 0.2em 0.5em;
}

.sc-image-left {
  float: left;
  margin-right: 1.5em;
  margin-left: 0;
  margin-top: 0.5em;
  margin-bottom: 0.8em;
}

.sc-image-right {
  float: right;
  margin-left: 1.5em; 
  margin-right: 0;
  margin-top: 0.5em;
  margin-bottom: 0.8em;
}

.sc-image-float-container::after,
.clear-float::after {
  content: "";
  display: table;
  clear: both;
}

.sc-image-artistic-blur-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 8px;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  background-image: var(--bg-image);
}

.sc-image-artistic-blur-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.8);
  z-index: 1;
  transform: scale(1.1);
}
html.dark-mode .sc-image-artistic-blur-wrapper::before {
  filter: blur(15px) brightness(0.65);
}

.sc-image-artistic-blur-wrapper .sc-image-artistic-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 75%;
  max-height: 85%; 
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 2;
  border-radius: 6px; 
  box-shadow: 0 5px 20px rgba(var(--shadow-color-light-rgb), 0.25);
  margin: 0 !important;
}

.sc-image.small-image {
  max-width: 200px;
  margin-left: auto; margin-right: auto;
}

.sc-image.medium-image {
  max-width: 450px;
  margin-left: auto; margin-right: auto;
}

.sc-image.large-image {
  max-width: 100%;
}

.sc-image.full-width-image {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}


/* --- Admonition Styles (Note, Info, Warning, Tip) --- */
:root {
  --admonition-note-bg: #e7f3fe;
  --admonition-note-border: #2196F3; 
  --admonition-note-text: #1d4c73;
  --admonition-note-heading-text: #1a5f90;

  --admonition-info-bg: #e3f2fd;        
  --admonition-info-border: #1976D2;   
  --admonition-info-text: #0d47a1;
  --admonition-info-heading-text: #0b3c87;

  --admonition-warning-bg: #fff8e1;     
  --admonition-warning-border: #ffa000; 
  --admonition-warning-text: #6f4f00;
  --admonition-warning-heading-text: #a07100;

  --admonition-tip-bg: #e8f5e9;        
  --admonition-tip-border: #4CAF50;    
  --admonition-tip-text: #1b5e20;
  --admonition-tip-heading-text: #2e7d32;
}
html.dark-mode {
  --admonition-note-bg: #2c3a4f;
  --admonition-note-border: #58a6ff;
  --admonition-note-text: #c9d1d9;
  --admonition-note-heading-text: #adc8e6;

  --admonition-info-bg: #2a3647;
  --admonition-info-border: #64b5f6;
  --admonition-info-text: #bbdefb;
  --admonition-info-heading-text: #d1e6fa;

  --admonition-warning-bg: #4d3c1d;
  --admonition-warning-border: #ffca28;
  --admonition-warning-text: #ffe082;
  --admonition-warning-heading-text: #ffd54f;

  --admonition-tip-bg: #2e3b2f;
  --admonition-tip-border: #81c784;    
  --admonition-tip-text: #c8e6c9;
  --admonition-tip-heading-text: #a5d6a7;
}

.admonition.note {
  background-color: var(--admonition-note-bg);
  border-left-color: var(--admonition-note-border);
}
.admonition.note .admonition-heading,
.admonition.note .admonition-icon {
  color: var(--admonition-note-heading-text);
}
.admonition.note .admonition-content {
  color: var(--admonition-note-text);
}
.admonition.note .admonition-content a {
  color: var(--admonition-note-border); 
  font-weight: 500;
}

.admonition.info {
  background-color: var(--admonition-info-bg);
  border-left-color: var(--admonition-info-border);
}
.admonition.info .admonition-heading,
.admonition.info .admonition-icon {
  color: var(--admonition-info-heading-text);
}
.admonition.info .admonition-content {
  color: var(--admonition-info-text);
}
.admonition.info .admonition-content a {
  color: var(--admonition-info-border);
  font-weight: 500;
}

.admonition.warning {
  background-color: var(--admonition-warning-bg);
  border-left-color: var(--admonition-warning-border);
}
.admonition.warning .admonition-heading,
.admonition.warning .admonition-icon {
  color: var(--admonition-warning-heading-text);
}
.admonition.warning .admonition-content {
  color: var(--admonition-warning-text);
}
.admonition.warning .admonition-content a {
  color: var(--admonition-warning-border);
  font-weight: 500;
}

.admonition.tip {
  background-color: var(--admonition-tip-bg);
  border-left-color: var(--admonition-tip-border);
}
.admonition.tip .admonition-heading,
.admonition.tip .admonition-icon {
  color: var(--admonition-tip-heading-text);
}
.admonition.tip .admonition-content {
  color: var(--admonition-tip-text);
}
.admonition.tip .admonition-content a {
  color: var(--admonition-tip-border);
  font-weight: 500;
}

.admonition {
  padding: 1em 1.25em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 6px;
  border-left-width: 5px;
  border-left-style: solid;
  overflow: hidden; 
}

.admonition-heading {
  display: flex;
  align-items: center;
  margin-bottom: 0.75em;
  font-weight: 600;
}

.admonition-icon {
  margin-right: 0.6em;
  flex-shrink: 0; 
}

.admonition-title {
  font-size: 1.1em;
}

.admonition-content > :last-child {
  margin-bottom: 0;
}
.admonition-content > :first-child {
  margin-top: 0;
}
.admonition-content p,
.admonition-content ul,
.admonition-content ol {
    font-size: 0.95em;
    line-height: 1.6;
}


/* --- Shortcode: Video Styles --- */
.video-shortcode-wrapper {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  background-color: #000; 
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-light)); 
  max-width: 100%;
}

.video-shortcode__player {
  display: block;
  width: 100%;   
  height: auto; 
  max-height: 70vh; 
  outline: none; 
}

.video-shortcode__player[width][height] {
    height: auto; 
}


/* 404 Page Styles */
.error-404-page {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center; 
}

.error-404-content {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-icon {
  font-size: 5rem; 
  color: var(--primary-color); 
  margin-bottom: 20px;
  line-height: 1;
}
.error-404-icon .emoji-icon {
    display: inline-block;
}
.error-404-icon svg.icon-search-off { 
    width: 80px;
    height: 80px;
}

.error-404-title {
  font-size: 2.5rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.error-404-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.error-404-actions {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.error-404-actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
}

.error-404-actions .action-button.primary-action {
  background-color: var(--primary-color);
  color: var(--primary-text-over);
  box-shadow: 0 4px 12px rgba(var(--primary-color), 0.25);
}
.error-404-actions .action-button.primary-action:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--primary-color), 0.35);
}

.error-404-suggestions {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.error-404-suggestions h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 15px;
  text-align: center;
}

.error-404-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-404-suggestions li {
  margin-bottom: 10px;
}

.error-404-suggestions li a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}

.error-404-suggestions li a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}


/* Code Block Copy Button Styles */
.code-block-wrapper {
  position: relative;
  margin-bottom: 1.5em;
  border-radius: 6px;
  border-left-width: 4px;
  padding-left: 0.8em; 

  background-color: var(--code-plain-bg-light);
  color: var(--code-plain-text-light);
  border: 1px solid var(--code-border-light);
  border-left-color: var(--code-left-border-light);
}

.code-block-wrapper .highlight {
  margin: 0 !important;
  padding: 0 !important; 
  background-color: var(--code-highlight-bg-light) !important; 
  border-radius: 0 3px 3px 0; 
}
.code-block-wrapper .highlight pre {
    color: var(--code-highlight-text-light);
    background-color: transparent !important; 
    border: none !important;
    margin: 0 !important;
    padding: 1em !important; 
    padding-right: 4.5em !important;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.5;
    border-radius: 0;
}

.code-block-wrapper > pre:not(.chroma) { 
  background-color: transparent;
  color: inherit;
  border: none;
  margin: 0;
  padding: 1em;
  padding-right: 4.5em; 
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.5;
  border-radius: 0; 
}

html.dark-mode .code-block-wrapper {
  background-color: var(--code-plain-bg-dark);
  color: var(--code-plain-text-dark);
  border: 1px solid var(--code-border-dark);
  border-left-color: var(--code-left-border-dark);
}

html.dark-mode .code-block-wrapper .highlight {
  background-color: var(--code-highlight-bg-dark) !important;
}
html.dark-mode .code-block-wrapper .highlight pre {
    color: var(--code-highlight-text-dark); 
}

.code-block-wrapper pre code {
  font-family: "SF Mono", "Consolas", "Menlo", "Courier", monospace;
  padding: 0;
  background-color: transparent !important;
  border: none;
  font-size: 1em; 
  color: inherit; 
  white-space: pre;
}


.copy-code-button {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  padding: 6px 10px;
  background-color: var(--bg-secondary); 
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.7; 
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.copy-code-button:hover {
  opacity: 1;
  background-color: var(--primary-color);
  color: var(--primary-text-over);
  border-color: var(--primary-color);
}

.copy-code-button:active {
  transform: translateY(1px);
}

.copy-code-button .copy-icon,
.copy-code-button .check-icon {
  display: inline-block;
  vertical-align: middle;
}

.copy-code-button.copied {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}
html.dark-mode .copy-code-button.copied {
  background-color: #388E3C;
  border-color: #388E3C;
}

.copy-code-button {
  background-color: var(--copy-btn-bg);
  color: var(--copy-btn-text);
  border: 1px solid var(--copy-btn-border);
}
.copy-code-button:hover {
  background-color: var(--copy-btn-hover-bg);
  color: var(--copy-btn-hover-text);
  border-color: var(--copy-btn-hover-border);
}


/* Theme Toggle Button */
#theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: color var(--transition-standard), border-color var(--transition-standard);
  margin-left: 20px; 
  min-width: 90px; 
  text-align: center;
}

#theme-toggle:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}


/* Media Queries */
@media only screen and (max-width: 1068px) {
  .section-title {
    font-size: 28px;
  }
  .featured-article__title {
    font-size: 24px;
  }
  .featured-article__excerpt {
    font-size: 16px;
  }
  .stream-article__title {
    font-size: 16px;
  }
}

@media only screen and (max-width: 734px) {
  .container,
  .nav-wrapper,
  .content-body.footer-wraper {
    padding: 0 16px;
  }
  .section-content {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .two-column-grid,
  .three-column-grid {
    grid-template-columns: 1fr;
    gap: 20px; 
  }
  .featured-article__content {
    padding: 20px;
  }
  .featured-article__title {
    font-size: 21px;
  }
  .featured-article__excerpt {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .stream-article__content {
    padding: 16px;
  }
  .view-archive-wrapper {
    margin-top: 32px;
  }

  /* Footer adjustments for small screens */
  .footer-main {
    margin-top: 60px;
    padding: 30px 0;
  }
  .foot-nav-items { 
    flex-direction: column;
    gap: 30px;
  }
  .foot-nav-items .item {
    width: 100%;
  }
  .simplified-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .simplified-footer .social-links {
    justify-content: center;
  }

  /* Header adjustments for small screens */
  .nav-title {
    font-size: 22px;
  }
  .nav-item-wrapper {
    margin-left: 10px;
  }
  .nav-item-content {
    font-size: 14px;
    padding: 6px 8px;
  }
  #theme-toggle {
    font-size: 12px;
    padding: 6px 8px;
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .nav-site-title__main {
    font-size: 20px;
  }
  .nav-site-title__sub {
    font-size: 14px; 
  }
  .nav-item-wrapper {
    margin-left: 8px; 
  }
  .nav-item-content, .nav-item-button {
    font-size: 14px;
    padding: 6px 8px;
  }
  #theme-toggle {
    min-width: auto;
  }
  .about-page__intro {
    flex-direction: column;
    align-items: center;
  }
  .about-page__intro-text {
    order: 1; 
    min-width: 100%;
    text-align: left;
  }
  .about-page__intro-image {
    order: 0; 
    margin-bottom: 30px;
    max-width: 300px;
  }
  .profile-image {
    max-width: 250px;
  }
  .two-column-grid, .three-column-grid {
    grid-template-columns: 1fr;
  }
  .archive-item__title {
    margin-right: 10px;
  }
  .archive-item__date {
    font-size: 0.85em;
  }
  .archive-year {
    font-size: 20px;
  }
  .archive-item__link::after {
    bottom: 0.7em;
  }
  .post-title {
    font-size: 30px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    flex-basis: 100%;
  }
}

@media only screen and (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  .nav-site-title__main {
    font-size: 18px;
  }
  .nav-site-title__sub {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .nav-menu {
    gap: 3px;
  }
  .nav-item-wrapper {
    margin-left: 5px;
  }
  .nav-item-content, .nav-item-button {
    font-size: 13px;
    padding: 5px 6px;
  }
}