/* ATOM THEME */
.theme-dark {
  --accent-h: 219;
  --accent-s: 56%;
  --accent-l: 55%;
  
  --background-primary: #272b34;
  --background-primary-alt: #20242b;
  --background-secondary: #20242b;
  --background-secondary-alt: #1a1e24;
  --background-accent: #000;
  --background-modifier-border: #424958;
  --background-modifier-form-field: rgba(0, 0, 0, 0.3);
  --background-modifier-form-field-highlighted: rgba(0, 0, 0, 0.22);
  --background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
  --background-modifier-success: #539126;
  --background-modifier-error: #3d0000;
  --background-modifier-error-rgb: 61, 0, 0;
  --background-modifier-error-hover: #470000;
  --background-modifier-cover: rgba(0, 0, 0, 0.6);
  --text-accent: #61afef;
  --text-accent-hover: #70bdfc;
  --text-normal: #dcddde;
  --text-muted: #888;
  --text-faint: rgb(81, 86, 99);
  --text-error: #e16d76;
  --text-error-hover: #c9626a;
  --text-highlight-bg: rgba(255, 255, 0, 0.4);
  --text-selection: rgba(0, 122, 255, 0.2);
  --text-on-accent: #dcddde;
  --interactive-normal: #20242b;
  --interactive-hover: #353b47;
  --interactive-accent-hover: hsl(var(--accent-h), calc(var(--accent-s) + 5%), calc(var(--accent-l) - 10%));
  --scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2);
  --scrollbar-bg: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb-bg: rgba(255, 255, 255, 0.1);
  --panel-border-color: #18191e;
  --gray-1: #5C6370;
  --gray-2: #abb2bf;
  --red: #e06c75;
  --orange: #d19a66;
  --green: #98c379;
  --aqua: #56b6c2;
  --purple: #c678dd;
  --blue: #61afef;
  --yellow: #e5c07b;

  --background-modifier-hover: hsla(var(--accent-h), calc(var(--accent-s) - 35%), var(--accent-l), 0.06);
  --divider-color-hover: #404754;
}

.theme-light {
  --accent-h: 230;
  --accent-s: 83%;
  --accent-l: 64%;
  
  --background-primary: #fafafa;
  --background-primary-alt: #eaeaeb;
  --background-secondary: #eaeaeb;
  --background-secondary-alt: #dbdbdc;
  --background-accent: #fff;
  --background-modifier-border: #dbdbdc;
  --background-modifier-form-field: #fff;
  --background-modifier-form-field-highlighted: #fff;
  --background-modifier-box-shadow: rgba(0, 0, 0, 0.1);
  --background-modifier-success: #A4E7C3;
  --background-modifier-error: #e68787;
  --background-modifier-error-rgb: 230, 135, 135;
  --background-modifier-error-hover: #FF9494;
  --background-modifier-cover: rgba(0, 0, 0, 0.8);
  --text-accent: #1592ff;
  --text-accent-hover: #097add;
  --text-normal: #383a42;
  --text-muted: #8e8e90;
  --text-faint: #999999;
  --text-error: #e75545;
  --text-error-hover: #f86959;
  --text-highlight-bg: rgba(255, 255, 0, 0.4);
  --text-selection: rgba(0, 122, 255, 0.15);
  --text-on-accent: #f2f2f2;
  --interactive-normal: #eaeaeb;
  --interactive-hover: #dbdbdc;
  --interactive-accent-rgb: 21, 146, 255;
  --interactive-accent-hover: hsl(var(--accent-h), calc(var(--accent-s) - 10%), calc(var(--accent-l) - 4%));
  --scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.2);
  --scrollbar-bg: rgba(0, 0, 0, 0.05);
  --scrollbar-thumb-bg: rgba(0, 0, 0, 0.1);
  --panel-border-color: #dbdbdc;
  --gray-1: #383a42;
  --gray-2: #383a42;
  --red: #e75545;
  --green: #4ea24c;
  --blue: #3d74f6;
  --purple: #a625a4;
  --aqua: #0084bc;
  --yellow: #e35649;
  --orange: #986800;
}

.theme-dark, .theme-light {
  --ribbon-background: var(--background-primary);
  --drag-ghost-background: var(--background-secondary-alt);
  --background-modifier-message: var(--background-secondary-alt);

  --tab-outline-color: transparent;
  --divider-color: transparent;

  --prompt-border-color: var(--panel-border-color);
  --modal-border-color: var(--panel-border-color);

  --background-modifier-border-hover: var(--interactive-hover);
  --background-modifier-border-focus: var(--interactive-hover);

  --checkbox-color: var(--text-accent);
  --checkbox-color-hover: var(--text-accent-hover);

  --nav-item-background-active: var(--interactive-accent);
  --nav-item-color-active: #ffffff;

  --tag-color: var(--yellow);
  --tag-background: var(--background-primary-alt);
  --tag-color-hover: var(--yellow);
  --tag-background-hover: var(--background-primary-alt);
  --tag-padding-x: 4px;
  --tag-padding-y: 2px;
  --tag-radius: 4px;

  --inline-title-weight: var(--bold-weight);
  --link-decoration: none;
  --link-external-decoration: none;
  --embed-padding: 0 0 0 var(--size-4-4);
}
/* ============== */



/* SEARCH */
.search-result .search-result-file-title {
  cursor: pointer;
}

.search-result .collapse-icon {
  cursor: var(--cursor);
}

.search-result:not(.is-collapsed) .search-result-file-title {
  color: var(--blue);
}

/* File tab separators */
.workspace .mod-root .workspace-tab-header-inner::after {
  right: unset;
  left: -0.5px;
}
/* ============== */



/* PROFILE PICTURE */
.site-body-left-column-site-name::before {
  content: "";
  display: block;
  width: 150px;            /* avatar size */
  height: 150px;
  margin: 18px auto 10px;  /* center and added spacing */
  background-image: url("assets/profile.jpg"); /* picture path */
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  box-shadow: var(--inset-shadow);
}

.site-body-left-column-site-name {
  text-align: center;
  font-family: var(--font-title);
}


body {
  --anp-rainbow-folder-bg-opacity: 1;
  --anp-rainbow-folder-border-opacity: 1;
  --anp-rainbow-folder-collapse-border-custom: #00000044;
}
/* ============== */



/* REMOVE OBSIDIAN LOGO */
.published-container {
    --footer-display: none;
}
/* ============== */



/* LIGHTBOX OVERLAY */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4); /* frosted glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
/* ============== */


/* Obsidian Publish + Desktop
   Tighten embeds inside callouts and tables
--------------------------------------------------*/

/* Callout embeds */
.callout .internal-embed,
.callout .markdown-embed {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;       /* remove blue left bar */
  box-shadow: none !important;
  background: transparent !important;
}

/* Hide chain/launch icons in callouts */
.callout .internal-embed .markdown-embed-link,
.callout .internal-embed .embed-link,
.callout .markdown-embed-link {
  display: none !important;
}

/* Remove extra spacing in callout embeds */
.callout .internal-embed p,
.callout .markdown-embed p {
  margin: 0 !important;
}

/* Table embeds */
.markdown-preview-view table .internal-embed,
.markdown-preview-view table .markdown-embed {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;       /* remove blue left bar */
  box-shadow: none !important;
  background: transparent !important;
}

/* Does not display page title (still shows up in seo)*/
.notitle .page-header {
  display: none !important;
}




/* Container for inline social icons next to toggle */
.sidebar-social-inline {
  display: flex;
  align-items: center;   /* vertically center with toggle */
  gap: 20px;             /* same spacing as the reference site */
  margin-left: 20px;     /* space between toggle button and icons */
}

/* Each social icon */
.sidebar-social-link {
  width: 20px;           /* smaller to match site */
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: currentColor;
  transition: transform 0.2s ease, color 0.2s ease;
  color: inherit;        /* match text color */
}

.sidebar-social-link:hover {
  transform: translateY(-2px); /* subtle lift effect like site */
  color: var(--text-accent);   /* optional accent color on hover */
}

/* Dark/light mode adjustments */
.theme-dark .sidebar-social-link { color: #dcddde; }
.theme-light .sidebar-social-link { color: #383a42; }

/* Optional: adjust toggle spacing to match exactly */
.site-body-left-column-site-theme-toggle {
  gap: 0; /* remove extra spacing inside toggle container */


  
}

.sidebar-social-link svg {
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transform-origin: center center;
}



/* ============== */

/* Centre Image

![[image_name]]

For Right alignment
![[image_name | right]]

For Center alignment
![[image_name | center]]

--------------------------------------------------*/

img[alt*="center"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img[alt*="right"] {
    float:right;
    clear:right;
    margin-left: 1rem;
    margin-bottom: 2px;
    margin-top: 2px;
}

.center-text {
    text-align: center;
    margin-top: 0.5em;
}
