/* Custom styles for Asya documentation - Simplex theme customization */

/* Import shared CSS variables and base styles */
@import url('shared.css');

/* Hide non-functional copy button - all possible variations */
.copy-button,
button[data-clipboard-text],
.md-clipboard,
.highlighttable .copy-code-button,
pre button,
.codehilite button,
.highlight button,
button[title="Copy to clipboard"],
button[aria-label="Copy to clipboard"],
.btn-clipboard,
div.highlight button,
div.codehilite button,
.highlight-container button,
code + button,
pre + button,
[class*="copy"] button,
[class*="clipboard"] button,
button[onclick*="clipboard"],
button[onclick*="README.md"],
.tabler-icon-copy {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile menu button — visible in dark mode */
.dark #menu-button,
.dark #menu-button span,
.dark #menu-button svg {
  color: #e5e5e5 !important;
  stroke: #e5e5e5;
}

/* Bottom prev/next navigation — subtle, matching sidebar tone */
.dark [data-slot="button"].inline-flex {
  color: #9aa8bc !important;
  background-color: #1a2030 !important;
}

.dark [data-slot="button"].inline-flex:hover {
  color: #b8c8dc !important;
  background-color: #222e40 !important;
}

/* Prevent overscroll bounce and white flash in dark mode */
html {
  overscroll-behavior: none;
  background-color: var(--bg-primary);
}

/* Force nested navigation to display */
.bs-sidebar .nav .nav {
  display: block !important;
  padding-left: 20px;
}

.bs-sidebar .nav > li > ul {
  display: block !important;
}

/* Style nested nav items */
.bs-sidebar .nav > li > ul > li > a {
  padding-left: 30px;
  font-size: 0.9em;
}

.bs-sidebar .nav > li > ul > li > ul > li > a {
  padding-left: 50px;
  font-size: 0.85em;
  color: #666;
}

/* Links — blue-gray base, Asya blue on hover */
a {
  color: #5a6c8f;
}

a:hover,
a:focus {
  color: #3c63cc;
}

/* Navbar styling */
.navbar-inverse {
  background-color: #2c3e50;
  border-color: #233140;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
  color: #ecf0f1;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #3498db;
}

.navbar-inverse .navbar-nav > .active > a {
  background-color: #34495e;
  color: #3498db;
}

/* Sidebar active link */
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
  color: #3498db;
  border-left-color: #3498db;
  font-weight: 600;
}

/* Code blocks - GitHub VS Code Light */
pre {
  background-color: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
}

/* Inline code */
code {
  color: #0550ae;
  background-color: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 90%;
}

/* Code blocks should not have the inline code styling */
pre code {
  color: #24292f;
  background-color: transparent;
  padding: 0;
  font-size: inherit;
}

/* Syntax highlighting: GitHub VS Code Light theme */
.codehilite .hll,
.highlight .hll { background-color: #fff8c5 }
.codehilite .c,
.highlight .c { color: #6e7781; font-style: italic }
.codehilite .k,
.highlight .k { color: #cf222e; font-weight: normal }
.codehilite .o,
.highlight .o { color: #24292f; font-weight: normal }
.codehilite .cm,
.highlight .cm { color: #6e7781; font-style: italic }
.codehilite .cp,
.highlight .cp { color: #6e7781; font-weight: normal; font-style: italic }
.codehilite .c1,
.highlight .c1 { color: #6e7781; font-style: italic }
.codehilite .cs,
.highlight .cs { color: #6e7781; font-weight: normal; font-style: italic }
.codehilite .gd,
.highlight .gd { color: #82071e; background-color: #ffebe9 }
.codehilite .gr,
.highlight .gr { color: #82071e }
.codehilite .gh,
.highlight .gh { color: #24292f; font-weight: 600 }
.codehilite .gi,
.highlight .gi { color: #116329; background-color: #dafbe1 }
.codehilite .go,
.highlight .go { color: #6e7781 }
.codehilite .gp,
.highlight .gp { color: #6e7781; font-weight: 600 }
.codehilite .gu,
.highlight .gu { color: #0550ae; font-weight: 600 }
.codehilite .gt,
.highlight .gt { color: #82071e }
.codehilite .kc,
.highlight .kc { color: #0550ae; font-weight: normal }
.codehilite .kd,
.highlight .kd { color: #cf222e; font-weight: normal }
.codehilite .kn,
.highlight .kn { color: #cf222e; font-weight: normal }
.codehilite .kp,
.highlight .kp { color: #cf222e; font-weight: normal }
.codehilite .kr,
.highlight .kr { color: #cf222e; font-weight: normal }
.codehilite .kt,
.highlight .kt { color: #0550ae; font-weight: normal }
.codehilite .m,
.highlight .m { color: #0550ae }
.codehilite .s,
.highlight .s { color: #0a3069 }
.codehilite .na,
.highlight .na { color: #24292f }
.codehilite .nb,
.highlight .nb { color: #953800 }
.codehilite .nc,
.highlight .nc { color: #953800; font-weight: normal }
.codehilite .no,
.highlight .no { color: #0550ae }
.codehilite .nd,
.highlight .nd { color: #8250df; font-weight: normal }
.codehilite .ni,
.highlight .ni { color: #24292f }
.codehilite .ne,
.highlight .ne { color: #953800; font-weight: normal }
.codehilite .nf,
.highlight .nf { color: #8250df; font-weight: normal }
.codehilite .nl,
.highlight .nl { color: #0550ae; font-weight: normal }
.codehilite .nn,
.highlight .nn { color: #953800 }
.codehilite .nt,
.highlight .nt { color: #116329 }
.codehilite .nv,
.highlight .nv { color: #0550ae }
.codehilite .ow,
.highlight .ow { color: #cf222e; font-weight: normal }
.codehilite .w,
.highlight .w { color: #6e7781 }
.codehilite .mf,
.highlight .mf { color: #0550ae }
.codehilite .mh,
.highlight .mh { color: #0550ae }
.codehilite .mi,
.highlight .mi { color: #0550ae }
.codehilite .mo,
.highlight .mo { color: #0550ae }
.codehilite .sb,
.highlight .sb { color: #0a3069 }
.codehilite .sc,
.highlight .sc { color: #0a3069 }
.codehilite .sd,
.highlight .sd { color: #0a3069 }
.codehilite .s2,
.highlight .s2 { color: #0a3069 }
.codehilite .se,
.highlight .se { color: #0550ae }
.codehilite .sh,
.highlight .sh { color: #0a3069 }
.codehilite .si,
.highlight .si { color: #24292f }
.codehilite .sx,
.highlight .sx { color: #0a3069 }
.codehilite .sr,
.highlight .sr { color: #116329 }
.codehilite .s1,
.highlight .s1 { color: #0a3069 }
.codehilite .ss,
.highlight .ss { color: #0550ae }
.codehilite .bp,
.highlight .bp { color: #953800 }
.codehilite .vc,
.highlight .vc { color: #0550ae }
.codehilite .vg,
.highlight .vg { color: #0550ae }
.codehilite .vi,
.highlight .vi { color: #0550ae }
.codehilite .il,
.highlight .il { color: #0550ae }

/* Headers with softer accent */
h1, h2, h3, h4, h5, h6 {
  color: #2a4075;
}

/* Dark mode: lighter headers for better visibility */
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
  color: #b8cce8;
}

/* Dark mode: lighter navigation titles for better visibility */
.dark .text-muted-foreground {
  color: #b4b8c0 !important;
}

/* Fix global layout spacing - add margins to center content and prevent elements from touching screen edges */
.container-wrapper {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Ensure consistent spacing on smaller screens */
@media (max-width: 1024px) {
  .container-wrapper {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Mobile: prevent code overflow and improve readability */
@media (max-width: 700px) {
  pre {
    font-size: 0.8rem;
    padding: 12px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  /* Inline code: allow wrapping */
  code {
    word-break: break-word;
  }

  /* Tables: allow horizontal scroll on mobile instead of breaking layout */
  table {
    table-layout: auto !important;
    display: block;
    overflow-x: auto;
  }

  /* Prevent content from overflowing viewport */
  .typography,
  .prose,
  [data-slot="content"] {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }

  /* Images should not overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Buttons */
.btn-primary {
  background-color: #3498db;
  border-color: #2980b9;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #21618c;
}

/* Table cells should wrap text instead of scrolling */
.table-responsive {
  overflow-x: visible !important;
}

table {
  table-layout: fixed !important;
  width: 100% !important;
  overflow-x: visible !important;
}

table td,
table th {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Force wrapping in table cells with code elements */
table td code {
  white-space: normal !important;
  word-break: break-word !important;
}

/* Dark mode: GitHub VS Code Dark code blocks */
.dark pre {
  background-color: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
}

.dark code {
  color: #79c0ff;
  background-color: #161b22;
}

.dark pre code {
  color: #c9d1d9;
  background-color: transparent;
}

/* Dark mode syntax highlighting - GitHub VS Code Dark theme */
.dark .codehilite .hll,
.dark .highlight .hll { background-color: #264f78 }
.dark .codehilite .c,
.dark .highlight .c { color: #8b949e; font-style: italic }
.dark .codehilite .k,
.dark .highlight .k { color: #ff7b72; font-weight: normal }
.dark .codehilite .o,
.dark .highlight .o { color: #c9d1d9; font-weight: normal }
.dark .codehilite .cm,
.dark .highlight .cm { color: #8b949e; font-style: italic }
.dark .codehilite .cp,
.dark .highlight .cp { color: #8b949e; font-weight: normal; font-style: italic }
.dark .codehilite .c1,
.dark .highlight .c1 { color: #8b949e; font-style: italic }
.dark .codehilite .cs,
.dark .highlight .cs { color: #8b949e; font-weight: normal; font-style: italic }
.dark .codehilite .gd,
.dark .highlight .gd { color: #ffa198; background-color: #490202 }
.dark .codehilite .gr,
.dark .highlight .gr { color: #ffa198 }
.dark .codehilite .gh,
.dark .highlight .gh { color: #c9d1d9; font-weight: 600 }
.dark .codehilite .gi,
.dark .highlight .gi { color: #aff5b4; background-color: #04260f }
.dark .codehilite .go,
.dark .highlight .go { color: #8b949e }
.dark .codehilite .gp,
.dark .highlight .gp { color: #8b949e; font-weight: 600 }
.dark .codehilite .gu,
.dark .highlight .gu { color: #79c0ff; font-weight: 600 }
.dark .codehilite .gt,
.dark .highlight .gt { color: #ffa198 }
.dark .codehilite .kc,
.dark .highlight .kc { color: #79c0ff; font-weight: normal }
.dark .codehilite .kd,
.dark .highlight .kd { color: #ff7b72; font-weight: normal }
.dark .codehilite .kn,
.dark .highlight .kn { color: #ff7b72; font-weight: normal }
.dark .codehilite .kp,
.dark .highlight .kp { color: #ff7b72; font-weight: normal }
.dark .codehilite .kr,
.dark .highlight .kr { color: #ff7b72; font-weight: normal }
.dark .codehilite .kt,
.dark .highlight .kt { color: #79c0ff; font-weight: normal }
.dark .codehilite .m,
.dark .highlight .m { color: #79c0ff }
.dark .codehilite .s,
.dark .highlight .s { color: #a5d6ff }
.dark .codehilite .na,
.dark .highlight .na { color: #c9d1d9 }
.dark .codehilite .nb,
.dark .highlight .nb { color: #ffa657 }
.dark .codehilite .nc,
.dark .highlight .nc { color: #ffa657; font-weight: normal }
.dark .codehilite .no,
.dark .highlight .no { color: #79c0ff }
.dark .codehilite .nd,
.dark .highlight .nd { color: #d2a8ff; font-weight: normal }
.dark .codehilite .ni,
.dark .highlight .ni { color: #c9d1d9 }
.dark .codehilite .ne,
.dark .highlight .ne { color: #ffa657; font-weight: normal }
.dark .codehilite .nf,
.dark .highlight .nf { color: #d2a8ff; font-weight: normal }
.dark .codehilite .nl,
.dark .highlight .nl { color: #79c0ff; font-weight: normal }
.dark .codehilite .nn,
.dark .highlight .nn { color: #ffa657 }
.dark .codehilite .nt,
.dark .highlight .nt { color: #7ee787 }
.dark .codehilite .nv,
.dark .highlight .nv { color: #79c0ff }
.dark .codehilite .ow,
.dark .highlight .ow { color: #ff7b72; font-weight: normal }
.dark .codehilite .w,
.dark .highlight .w { color: #c9d1d9 }
.dark .codehilite .mf,
.dark .highlight .mf { color: #79c0ff }
.dark .codehilite .mh,
.dark .highlight .mh { color: #79c0ff }
.dark .codehilite .mi,
.dark .highlight .mi { color: #79c0ff }
.dark .codehilite .mo,
.dark .highlight .mo { color: #79c0ff }
.dark .codehilite .sb,
.dark .highlight .sb { color: #a5d6ff }
.dark .codehilite .sc,
.dark .highlight .sc { color: #a5d6ff }
.dark .codehilite .sd,
.dark .highlight .sd { color: #a5d6ff }
.dark .codehilite .s2,
.dark .highlight .s2 { color: #a5d6ff }
.dark .codehilite .se,
.dark .highlight .se { color: #79c0ff }
.dark .codehilite .sh,
.dark .highlight .sh { color: #a5d6ff }
.dark .codehilite .si,
.dark .highlight .si { color: #c9d1d9 }
.dark .codehilite .sx,
.dark .highlight .sx { color: #a5d6ff }
.dark .codehilite .sr,
.dark .highlight .sr { color: #7ee787 }
.dark .codehilite .s1,
.dark .highlight .s1 { color: #a5d6ff }
.dark .codehilite .ss,
.dark .highlight .ss { color: #79c0ff }
.dark .codehilite .bp,
.dark .highlight .bp { color: #ffa657 }
.dark .codehilite .vc,
.dark .highlight .vc { color: #79c0ff }
.dark .codehilite .vg,
.dark .highlight .vg { color: #79c0ff }
.dark .codehilite .vi,
.dark .highlight .vi { color: #79c0ff }
.dark .codehilite .il,
.dark .highlight .il { color: #79c0ff }

/* Top-left logo — gray at rest, colored on hover */
.asya-home-link {
  margin-right: 4px;
}

/* Align logo with sidebar tree lines on desktop */
@media (min-width: 1024px) {
  .asya-home-link {
    margin-left: 1rem;
  }
}

.asya-docs-btn {
  margin-left: -4px;
}

.asya-home-logo {
  height: 20px;
  width: 20px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.asya-logo-gray {
  opacity: 0.6;
}

.asya-logo-light {
  display: none;
}

.asya-logo-color {
  display: none;
}

/* Light mode: gray at rest, colored on hover */
.asya-home-link:hover .asya-logo-gray {
  display: none;
}

.asya-home-link:hover .asya-logo-color {
  display: block;
  opacity: 0.6;
}

/* Dark mode: light gray at rest, colored on hover */
.dark .asya-logo-gray {
  display: none;
}

.dark .asya-logo-light {
  display: block;
  opacity: 0.6;
}

.dark .asya-home-link:hover .asya-logo-light {
  display: none;
}

.dark .asya-home-link:hover .asya-logo-color {
  display: block;
  opacity: 0.5;
}

/* KubeCon banner */
.kubecon-banner {
  background: #f5c518;
  color: #1a1a1a;
  text-align: center;
  padding: 8px 40px 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.kubecon-banner a {
  color: #1a1a1a !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.kubecon-banner a:hover {
  color: #000 !important;
}

.kubecon-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #1a1a1a;
  opacity: 0.6;
  padding: 4px;
  line-height: 1;
}

.kubecon-close:hover {
  opacity: 1;
}

/* Sidebar height — use full viewport minus header only */
[data-slot="sidebar"] {
  height: calc(100svh - var(--header-height) - 1px) !important;
}

/* Sidebar scrollbar — vertical only, always visible, thin, blue-tinted */
[view-transition-name="sidebar"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: #c0cee0 transparent;
}

.dark [view-transition-name="sidebar"] {
  scrollbar-color: #3a4a60 transparent;
}

[view-transition-name="sidebar"]::-webkit-scrollbar {
  width: 4px;
}

[view-transition-name="sidebar"]::-webkit-scrollbar-track {
  background: transparent;
}

[view-transition-name="sidebar"]::-webkit-scrollbar-thumb {
  background-color: #c0cee0;
  border-radius: 4px;
}

.dark [view-transition-name="sidebar"]::-webkit-scrollbar-thumb {
  background-color: #3a4a60;
}

/* Sidebar theme — blue-tinted to match Asya brand */
:root {
  --sidebar-accent: #eef2f9;
  --sidebar-accent-foreground: #2a4075;
  --sidebar-primary: #3c63cc;
  --sidebar-ring: #3c63cc40;
  --accent: #e8eef8;
}

.dark {
  --sidebar-accent: #1e2a40;
  --sidebar-accent-foreground: #d0ddf0;
  --sidebar-primary: #8ab4f8;
  --sidebar-ring: #6b8fd440;
  --accent: #1a2538;
}

/* Sidebar tree navigation */
.sidebar-tree-section > summary {
  list-style: none;
}

.sidebar-tree-section > summary::-webkit-details-marker {
  display: none;
}

.sidebar-tree-arrow {
  transition: transform 0.15s ease;
}

.sidebar-tree-section[open] > summary .sidebar-tree-arrow {
  transform: rotate(90deg);
}

.sidebar-tree-section > summary:hover {
  background: var(--sidebar-accent);
  border-radius: 6px;
}

/* Sidebar section labels — blue-tinted */
.sidebar-tree-section > summary[data-sidebar="group-label"] {
  color: #2a4075 !important;
  font-weight: 600 !important;
}

.dark .sidebar-tree-section > summary[data-sidebar="group-label"] {
  color: #d0ddf0 !important;
}

/* Sidebar tree arrows — blue tint */
.sidebar-tree-arrow {
  color: #5a7ab5 !important;
}

.dark .sidebar-tree-arrow {
  color: #7a9fd4 !important;
}

/* Open path — only highlight the summary label, not the whole section */
.sidebar-tree-section[open] > summary[data-sidebar="group-label"] {
  color: #3c63cc !important;
}

.dark .sidebar-tree-section[open] > summary[data-sidebar="group-label"] {
  color: #8ab4f8 !important;
}

/* Increased indentation for deeper tree structure */
[data-sidebar="group-content"] {
  padding-left: 8px !important;
  border-left: 1px solid #d0d8e8;
  margin-left: 20px;
}

.dark [data-sidebar="group-content"] {
  border-left-color: #2d3a4f;
}

/* Active sidebar item — blue accent */
a[data-sidebar="menu-button"][data-active="true"] {
  color: #3c63cc !important;
  font-weight: 600 !important;
}

.dark a[data-sidebar="menu-button"][data-active="true"] {
  color: #8ab4f8 !important;
}

/* Overview items — slightly dimmer to distinguish from regular page links */


/* Theme toggle — sun/moon swap */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
.dark .theme-icon-sun { display: block; }
.dark .theme-icon-moon { display: none; }

/* Toolbar icons — visible in dark mode */
.dark button[title="Toggle theme"] svg {
  stroke: #e5e5e5 !important;
}

.dark button[title="Toggle layout"] svg {
  stroke: #e5e5e5 !important;
}

/* GitHub octocat icon - visible in dark mode */
.dark a[href*="github.com"] svg {
  fill: #e5e5e5 !important;
}

/* Images with transparent backgrounds need white bg in dark mode */
.dark img[src*=".png"]:not(.asya-home-logo),
.dark img[src*=".jpg"]:not(.asya-home-logo) {
  background-color: white;
  border-radius: 8px;
  padding: 8px;
}

/* Envelope route navigator */
.envelope-route {
  all: initial !important;
  display: block !important;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  padding: 6px 0 21px 0 !important;
  margin-bottom: 32px !important;
  border-bottom: 1px solid #d0d8e8 !important;
  line-height: 1.5 !important;
}

.dark .envelope-route {
  border-bottom-color: #2d3a4f !important;
}

.envelope-route * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.route-line {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  padding: 0 !important;
}

.route-line-expanded {
  white-space: normal !important;
  overflow: visible !important;
}

.route-prev {
  display: inline !important;
}

.route-ellipsis {
  color: #5a7ab5;
  cursor: pointer;
  font-style: italic;
}

.route-ellipsis:hover {
  color: #3c63cc;
  text-decoration: underline;
}

.route-line-expanded {
  white-space: normal !important;
  overflow: visible !important;
}

.route-fold {
  color: #5a7ab5;
  cursor: pointer;
  font-style: italic;
  font-size: 0.7rem;
}

.route-fold:hover {
  color: #3c63cc;
  text-decoration: underline;
}

.route-indent {
  padding-left: 16px;
}

.route-comma {
  color: var(--text-muted);
}

.route-label {
  color: #5a7ab5;
  font-weight: 500;
}

.dark .route-label {
  color: #7a9fd4;
}

.route-bracket {
  color: var(--text-muted);
}

.route-curr {
  color: #3c63cc;
  font-weight: 600;
}

.dark .route-curr {
  color: #8ab4f8;
}

.route-link {
  color: var(--text-tertiary) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.route-link:hover {
  color: #3c63cc !important;
  text-decoration: underline !important;
}

.dark .route-link:hover {
  color: #8ab4f8 !important;
}

/* Image lightbox */
.typography img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: white;
  padding: 16px;
}

/* Permalink anchors - positioned BEFORE heading text */
h1, h2, h3, h4, h5, h6 {
  display: flex;
  align-items: baseline;
}

.headerlink {
  order: -1;
  color: #3c63cc !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-right: 0.4em;
  margin-left: -1.2em;
  font-weight: 400;
}

h1:hover .headerlink,
h2:hover .headerlink,
h3:hover .headerlink,
h4:hover .headerlink,
h5:hover .headerlink,
h6:hover .headerlink {
  opacity: 0.5;
}

.headerlink:hover {
  opacity: 1 !important;
  text-decoration: none !important;
}

.dark .headerlink {
  color: #6b8fd4 !important;
}
