@charset "UTF-8";

/* --- Global Resets & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  min-height: 100vh; /* Ensure body takes at least full viewport height */
  width: 100% !important; /* Make body span full viewport width */
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}






/* --- Page Structure for Sticky Footer --- */
.page-content-wrapper {
  flex-grow: 1;     /* Allows this wrapper to expand, pushing the footer down */
  flex-shrink: 0;   /* Prevents wrapper from shrinking if content is small */
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  width: auto;     /* Default width for smaller screens; adjusted by media queries below */
}

/* Responsive Widths for Page Content Wrapper */
/* --- Fix the 100vw body overflow --- */
@media screen and (min-width: 35.5rem) {
  body {
    width: 100% !important;   /* use the containing block, not the viewport */
    max-width: 100% !important;          /* defensive – prevents later overrides */
  }
}

@media screen and (min-width: 35.5rem) { /* approx 568px */
  .page-content-wrapper {
    width: 100%;
    max-width: 100%; /* Prevents horizontal overflow */
  }
}
@media screen and (min-width: 48rem) { /* approx 768px */
  .page-content-wrapper {
    width: 100%;
    max-width: 100%; /* Prevents horizontal overflow */
  }
}
@media screen and (min-width: 64rem) { /* approx 1024px */
  .page-content-wrapper {
    width: 80%;
    max-width: 80%; /* Allows some margin on larger screens */
  }
}
@media screen and (min-width: 80rem) { /* approx 1280px */
  .page-content-wrapper {
    width: 60%;
    max-width: 60%; /* Allows some margin on larger screens */
  }
}
@media screen and (min-width: 120rem) { /* approx 1920px */
  .page-content-wrapper {
    width: 60%;
    max-width: 60%; /* Allows some margin on larger screens */
  }
}









/* --- Meta Tiles --- */
.meta-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  justify-content: center;
  margin: 20px auto;
  padding: 15px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid #eaeaea;
}

.meta-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.meta-heading {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  text-align: center;
  font-size: 1rem;
}

.meta-content {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  line-height: 1.4;
}


/* Meta Tiles Dark Mode */
html[data-theme="dark"] .meta-container {
  border-top-color: #555;
}

html[data-theme="dark"] .meta-item {
  background: #2a2a2a;
  border-color: #444;
}

html[data-theme="dark"] .meta-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

html[data-theme="dark"] .meta-heading {
  color: #ddd;
}

html[data-theme="dark"] .meta-content {
  color: #bbb;
}








/* --- Footer Styles --- */
.site-footer {
  /* Appearance */
  background-color: #f0f0f0;
  color: #333;
  border-top: 2px solid #ddd;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  /* Sticky Footer Layout */
  width: 100%;
  flex-shrink: 0; /* Prevent footer from shrinking */
  margin-top: 50px; /* Space above footer when content is long */
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  border-bottom: none;
}

.footer-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;  /* Padding for content within the centered container */
  padding-right: 15px; /* Padding for content within the centered container */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-section {
  width: 100%;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer-links a {
  color: #007bff;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #0056b3;
  text-decoration: underline;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.footer-social-icons a {
  color: #495057;
  font-size: 1.6rem;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-icons a:hover,
.footer-social-icons a:focus {
  color: #007bff;
  transform: translateY(-3px) scale(1.1);
}

.footer-logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 30px;
  width: 100%;
  padding: 10px 0;
}

.footer-logo-item {
  display: inline-block;
}

.footer-logo-item img {
  max-height: 50px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.footer-text-blocks-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-text-block {
  font-size: 0.9rem;
  color: #454545;
  line-height: 1.5;
  text-align: center;
}

.footer-text-block h4 {
  font-size: 1.1rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-text-block p {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.footer-text-block p:last-child {
  margin-bottom: 0;
}

.footer-copyright {
  color: #555;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-copyright p {
  margin-top: 0;
  margin-bottom: 8px;
}
.footer-copyright p:last-child {
  margin-bottom: 0;
}

.footer-copyright a {
  color: #007bff;
  text-decoration: none;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
  color: #0056b3;
  text-decoration: underline;
}

/* Footer Dark Mode */
html[data-theme="dark"] .site-footer {
  background-color: #222529;
  color: #ced4da;
  border-top-color: #3e444a;
}

html[data-theme="dark"] .footer-links a {
  color: #6cb6ff;
}

html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-links a:focus {
  color: #99caff;
  background-color: rgba(108, 182, 255, 0.1);
}

html[data-theme="dark"] .footer-copyright {
  color: #adb5bd;
}

html[data-theme="dark"] .footer-copyright a {
  color: #6cb6ff;
}

html[data-theme="dark"] .footer-copyright a:hover,
html[data-theme="dark"] .footer-copyright a:focus {
  color: #99caff;
}

html[data-theme="dark"] .footer-social-icons a {
  color: #adb5bd;
}

html[data-theme="dark"] .footer-social-icons a:hover,
html[data-theme="dark"] .footer-social-icons a:focus {
  color: #6cb6ff;
}

html[data-theme="dark"] .footer-text-block {
  color: #b0b8c0;
}

html[data-theme="dark"] .footer-text-block h4 {
  color: #d0d8e0;
}







/* --- Minimal, Left-Aligned Navbar, Optimized Font, Flush Alignment --- */
#navbar {
  margin: 1.2rem 0 1.2rem 0;
  padding: 0;               /* Remove left/right padding for flush alignment */
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

#navbar > ul.pure-menu-list {
  display: flex;
  justify-content: flex-start;  /* True left alignment */
  align-items: center;
  gap: 0.22rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

#navbar .navbar-item {
  position: relative;
  margin: 0 0.03rem 0 0;
  border-bottom: none;
  background: none !important;
}

#navbar .navbar-item > a.pure-menu-link {
  display: block;
  font-weight: 500;
  font-size: 1.01rem;           /* Between previous values, readable, not oversized */
  line-height: 1.3rem;
  color: var(--color-navbar-item-inactive, var(--color-text-secondary));
  padding: 0.44rem 0.83rem 0.39rem 0;   /* Minimal left padding, comfortable right */
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  transition: color 0.16s, transform 0.14s;
  text-align: left;
}

#navbar .navbar-item > a.pure-menu-link:hover,
#navbar .navbar-item > a.pure-menu-link:focus {
  color: var(--color-navbar-item-active, var(--color-text));
  background: none !important;
  transform: translateY(-1px) scale(1.035);
  outline: none;
  box-shadow: none !important;
}

#navbar .navbar-item.active > a.pure-menu-link,
#navbar .navbar-item.insection > a.pure-menu-link {
  color: var(--color-navbar-item-active, var(--color-link));
  font-weight: 700 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  transform: none;
}

#navbar .navbar-dropdown > ul.pure-menu-children {
  background-color: var(--color-background-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.09);
  top: calc(100% + 0.24rem);
  left: 0;
  min-width: 170px;
  padding: 0.3rem 0;
  margin-top: 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.15rem);
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
}

#navbar .navbar-dropdown:hover > ul.pure-menu-children,
#navbar .navbar-dropdown:focus-within > ul.pure-menu-children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#navbar .navbar-dropdown .pure-menu-item {
  margin: 0;
  background: none !important;
}

#navbar .navbar-dropdown .pure-menu-children .pure-menu-link {
  color: var(--color-text-secondary);
  font-size: 0.97rem;
  padding: 0.39rem 1.02rem;
  background: none !important;
  transition: color 0.18s;
  display: block;
  border-radius: 0;
  white-space: nowrap;
}

#navbar .navbar-dropdown .pure-menu-children .pure-menu-link:hover,
#navbar .navbar-dropdown .pure-menu-children .pure-menu-link:focus {
  color: var(--color-text);
  background: none !important;
}

/* Responsive: Hide navbar on narrow screens as before */
@media screen and (max-width: 48rem) {
  #navbar {
    display: none;
  }
}

/* --- Dark Mode (mainly colors, not layout) --- */
html[data-theme="dark"] #navbar .navbar-item > a.pure-menu-link {
  color: var(--color-navbar-item-inactive, var(--color-text-secondary));
  background: none !important;
}
html[data-theme="dark"] #navbar .navbar-item > a.pure-menu-link:hover,
html[data-theme="dark"] #navbar .navbar-item > a.pure-menu-link:focus {
  color: var(--color-navbar-item-active, var(--color-text));
  background: none !important;
}
html[data-theme="dark"] #navbar .navbar-item.active > a.pure-menu-link,
html[data-theme="dark"] #navbar .navbar-item.insection > a.pure-menu-link {
  color: var(--color-navbar-item-active, var(--color-link));
  background: none !important;
}
html[data-theme="dark"] #navbar .navbar-dropdown > ul.pure-menu-children {
  background-color: var(--color-background-card);
  border-color: var(--color-border);
}
html[data-theme="dark"] #navbar .navbar-dropdown .pure-menu-children .pure-menu-link {
  color: var(--color-text-secondary);
  background: none !important;
}
html[data-theme="dark"] #navbar .navbar-dropdown .pure-menu-children .pure-menu-link:hover,
html[data-theme="dark"] #navbar .navbar-dropdown .pure-menu-children .pure-menu-link:focus {
  color: var(--color-text);
  background: none !important;
}








/* --- Clickable Reference Tile Styles --- */
.ref-tile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  justify-content: center;
  margin: 30px auto;
  padding: 15px;
}

.ref-tile-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes icon to bottom if content varies */
  padding: 20px;
  background: var(--color-background-card, #ffffff);
  border-radius: 8px;
  border: 1px solid var(--color-border, #e0e0e0);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  min-height: 160px;
  overflow: hidden;
}

.ref-tile-item:hover,
.ref-tile-item:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border-color: var(--color-link);
  outline: none;
}

.ref-tile-title {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.ref-tile-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1; /* Allows description to take available space */
}

.ref-tile-icon-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: auto; /* Ensures icon is at the bottom of the flex column */
}

.ref-tile-icon {
  font-size: 1.3rem;
  color: var(--color-link);
  transition: transform 0.2s ease;
}

.ref-tile-item:hover .ref-tile-icon.ref-tile-default-icon,
.ref-tile-item:focus .ref-tile-icon.ref-tile-default-icon {
  transform: translateX(4px);
}

/* Reference Tiles Dark Mode (primarily relies on CSS variables) */
html[data-theme="dark"] .ref-tile-item {
  background: #2f2f2f; /* Fallback if CSS var(--color-background-card) is not specific enough */
  border-color: #4a4a4a; /* Fallback if CSS var(--color-border) is not specific enough */
}










/* --- Reference Tile-Inspired TOC Modal & Buttons --- */

/* Inline TOC Button */
.toc-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.07rem;
  background: var(--color-background-card, #fff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0.48em 1.05em;
  cursor: pointer;
  font-weight: 600;
  transition: box-shadow 0.18s, border-color 0.14s, background 0.18s, color 0.17s, transform 0.19s;
}
.toc-inline-btn:hover, .toc-inline-btn:focus {
  background: var(--color-background-hover, #f9f9f9);
  border-color: var(--color-link, #007bff);
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}
.toc-btn-label {
  font-size: 1.07rem;
  font-weight: 500;
  white-space: nowrap;
}
.toc-inline-btn .modern-toc-icon {
  font-size: 1.2rem;
}

/* Floating TOC Bubble Button */
.toc-floating-btn {
  position: fixed;
  z-index: 1100;
  background: var(--color-background-card, #fff);
  color: var(--color-link, #2563eb);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 50%; /* Circular shape */
  width: 55px;
  height: 55px;
  box-shadow: 0 2px 9px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.11rem;
  cursor: pointer;
  opacity: 1;
  transition:
    box-shadow 0.18s, border-color 0.14s, background 0.13s, transform 0.19s,
    top 0.38s cubic-bezier(0.43,0.09,0.39,0.93),
    bottom 0.38s cubic-bezier(0.43,0.09,0.39,0.93),
    right 0.35s cubic-bezier(0.33,1.05,0.68,1), opacity 0.19s; /* Smooth position and style transitions */
}
.toc-floating-btn.toc-btn-inline { /* State for inline-like positioning */
  bottom: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toc-floating-btn.toc-btn-float { /* State for floating in margin */
  top: auto;
  bottom: 10vh;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toc-floating-btn:hover, .toc-floating-btn:focus {
  background: var(--color-background-hover, #f9f9f9);
  color: var(--color-link, #007bff);
  border-color: var(--color-link, #007bff);
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}
.toc-floating-btn .modern-toc-icon {
  font-size: 1.1rem;
}

/* Floating TOC Button: Responsive Adjustments */
@media (max-width: 700px) {
  .toc-floating-btn {
    right: 2vw !important; /* Closer to edge on small screens */
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* TOC Modal Overlay */
.toc-modal-overlay {
  position: fixed;
  z-index: 1300; /* High z-index to cover page content */
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,20,24, 0.18); /* Semi-transparent backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.toc-modal-open { /* Applied to body when modal is open */
  overflow: hidden; /* Prevent background scrolling */
}

/* TOC Modal Card */
.toc-modal-card {
  position: relative;
  background: var(--color-background-card, #fff);
  color: var(--color-text, #171717);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 1.25rem 1.35rem;
  max-width: 440px;
  width: 93vw; /* Responsive width */
  max-height: 80vh; /* Responsive height */
  display: flex;
  flex-direction: column;
  animation: toc-fade-in 0.19s; /* Entrance animation */
  overflow: visible; /* Allows box-shadow to be fully visible */
}

@keyframes toc-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modern-toc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.8rem;
}
.modern-toc-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.07rem;
  gap: 0.45rem;
  color: var(--color-text, #171717);
  letter-spacing: 0.01em;
}
.modern-toc-header .modern-toc-icon {
  color: var(--color-link, #2563eb);
}

.toc-modal-close { /* Close button styling */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.05rem;
  color: var(--color-text-secondary, #757575);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.16s, color 0.14s;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.toc-modal-close .toc-close-x { /* Icon container */
  display: block;
  width: 20px;
  height: 20px;
}
.toc-modal-close:hover, .toc-modal-close:focus {
  background: var(--color-background-hover, #f9f9f9);
  color: var(--color-link, #007bff);
  outline: none;
}

/* TOC Content and List Styling */
.toc-modal-card .modern-toc-content {
  overflow-y: auto; /* Scroll for long TOCs */
  max-height: 59vh; /* Limit height */
  padding-right: 0.3em; /* Space for scrollbar */
  font-size: 1rem;
}
.toc-modal-card .modern-toc-content ul,
.toc-modal-card .modern-toc-content ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-modal-card .modern-toc-content ul ul,
.toc-modal-card .modern-toc-content ol ol { /* Nested lists */
  margin-left: 1.1em;
  border-left: 2px solid var(--color-border, #e0e0e0);
  padding-left: 0.6em;
}
.toc-modal-card .modern-toc-content li {
  margin: 0.15em 0;
  padding: 0.05em 0.2em;
  border-radius: 6px;
  position: relative;
  transition: background 0.15s, color 0.14s;
}
.toc-modal-card .modern-toc-content a {
  display: block;
  padding: 0.22em 0.38em;
  border-radius: 5px;
  color: var(--color-link, #2563eb);
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  transition: background 0.14s, color 0.14s;
}
.toc-modal-card .modern-toc-content a:hover,
.toc-modal-card .modern-toc-content a:focus {
  background: var(--color-background-hover, #f9f9f9);
  color: var(--color-link, #007bff);
  text-decoration: underline;
  outline: none;
}
/* TOC Active Item Highlighting */
.toc-modal-card .modern-toc-content li.active > a,
.toc-modal-card .modern-toc-content a[aria-current="location"] {
  background: #e6f0ff !important;
  color: #133c7a !important;
  border-left: 3px solid #2563eb;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(37,99,235,0.10);
}
html[data-theme="dark"] .toc-modal-card .modern-toc-content li.active > a,
html[data-theme="dark"] .toc-modal-card .modern-toc-content a[aria-current="location"] {
  background: #18304d !important;
  color: #c3e1ff !important;
  border-left: 3px solid #6cb6ff;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(108,182,255,0.10);
}

/* TOC Subtle Scrollbar (WebKit) */
.toc-modal-card .modern-toc-content::-webkit-scrollbar {
  width: 7px;
}
.toc-modal-card .modern-toc-content::-webkit-scrollbar-thumb {
  background: #e7e7e7;
  border-radius: 7px;
}
.toc-modal-card .modern-toc-content::-webkit-scrollbar-track {
  background: transparent;
}

/* TOC Modal: Responsive Adjustments for Smaller Screens */
@media (max-width: 600px) {
  .toc-inline-btn { font-size: 0.97rem; padding: 0.38em 0.72em; }
  .toc-btn-label { font-size: 0.98rem; }
  .toc-floating-btn { right: 1.1rem; width: 38px; height: 38px; font-size: 1rem; }
  .toc-modal-card { padding: 0.98rem 0.42rem 0.98rem 0.57rem; border-radius: 7px; }
  .modern-toc-header-row { margin-bottom: 0.48rem; }
  .toc-modal-card .modern-toc-content { max-height: 45vh; font-size: 0.97rem; }
}

/* TOC Components: Dark Mode Overrides */
html[data-theme="dark"] .toc-inline-btn,
html[data-theme="dark"] .toc-floating-btn,
html[data-theme="dark"] .toc-modal-card {
  background: #2a2a2a;
  color: #ced4da;
  border-color: #444;
  box-shadow: 0 3px 16px rgba(0,0,0,0.20);
}
html[data-theme="dark"] .toc-inline-btn:hover, html[data-theme="dark"] .toc-inline-btn:focus,
html[data-theme="dark"] .toc-floating-btn:hover, html[data-theme="dark"] .toc-floating-btn:focus,
html[data-theme="dark"] .toc-modal-close:hover, html[data-theme="dark"] .toc-modal-close:focus {
  background: #333;
  color: #6cb6ff;
  border-color: #6cb6ff; /* Ensure border color changes on hover for consistency */
}
html[data-theme="dark"] .toc-modal-card .modern-toc-header .modern-toc-icon {
  color: #6cb6ff;
}
html[data-theme="dark"] .toc-modal-card .modern-toc-content a {
  color: #6cb6ff;
}
html[data-theme="dark"] .toc-modal-card .modern-toc-content a:hover,
html[data-theme="dark"] .toc-modal-card .modern-toc-content a:focus {
  background: #222529;
  color: #99caff;
}
/* Active TOC item highlighting in dark mode is handled by the specific rule above */











/* Utility: Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px; /* Hides the 1x1px box off-screen */
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}








/* --- DataTable Infobox Styling - Enhanced Visibility --- */
.mc-infobox {
  background-color: #fff9e6; /* Light yellow, often used for informational/warning messages */
  color: #594A29;             /* Darker yellow/brown text for good contrast on light yellow */
  border: 1px solid #ffe580;  /* A soft yellow border for the overall box shape */
  border-left: 5px solid #ffc107; /* A prominent, thicker amber left border for emphasis */
  border-radius: 6px;         /* Consistent with other elements like .meta-item */
  padding: 1rem 1.25rem;      /* Ample padding for content */
  margin-top: 15px;           /* Space above the infobox */
  margin-bottom: 20px;        /* Space below the infobox */
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* A slightly more pronounced shadow than a standard card */
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 500;           /* Medium font-weight to make text stand out a bit more */
  /* display: none; is handled by JavaScript */
}

/* Ensures direct text content within the infobox also gets the correct color */
.mc-infobox p, .mc-infobox {
    color: #594A29; /* Fallback for direct text if not wrapped */
}


/* Dark mode styles for the DataTable Infobox - Enhanced Visibility */
html[data-theme="dark"] .mc-infobox {
  background-color: #38301f; /* A dark, muted yellow for the background in dark mode */
  color: #ffe5a3;             /* A lighter, warm yellow text for readability on the dark background */
  border-color: #594f36;      /* Border color for the main box in dark mode */
  border-left-color: #ffc107; /* Keep the amber left border color consistent and prominent */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* A more noticeable shadow on dark backgrounds */
}

/* Ensures correct text color for direct text content in dark mode */
html[data-theme="dark"] .mc-infobox p, html[data-theme="dark"] .mc-infobox {
    color: #ffe5a3;
}




/* ===============================
   Expandable Hugo Callouts: Pastel, Readable, No Title BG
   =============================== */

.callout {
  margin: 1.6em 0;
  border-radius: 8px;
  background: var(--color-background-card, #fff);
  border: 1.5px solid var(--callout-accent, #8db6e2);
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--callout-accent, #8db6e2);
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.04);
  font-size: 1rem;
  color: var(--color-text, #171717);
  padding: 0;
  position: relative;
}

/* Always-slim, minimal summary row (head) */
.callout-row {
  display: flex;
  align-items: center;
  gap: 0.73em;
  font-weight: 500;
  opacity: 0.92;
  cursor: pointer;
  padding: 0.62em 1.18em 0.62em 1.18em;
  user-select: none;
  border-radius: 8px 8px 0 0;
  background: none;
  min-height: 0;
}

/* Hide browser's default marker/arrow */
.callout-row::-webkit-details-marker,
.callout-row::marker {
  display: none;
  content: '';
}

/* Custom pastel accent toggle arrow */
.callout-toggle {
  margin-left: auto;
  width: 1.25em;
  height: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.callout-toggle::before {
  content: '';
  display: block;
  border: solid var(--callout-accent, #8db6e2);
  border-width: 0 0.13em 0.13em 0;
  padding: 0.24em;
  transform: rotate(45deg);
  transition: transform 0.24s cubic-bezier(.45,.05,.39,.93);
  margin-top: 0.10em;
}
.callout[open] > .callout-row .callout-toggle::before {
  transform: rotate(135deg);
  margin-top: 0;
}

/* Icon and title */
.callout-icon {
  font-size: 1.13em;
  flex-shrink: 0;
  opacity: 0.80;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.06));
}
.callout-title {
  font-size: 1.01em;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--callout-title-color, #29507a); /* Now dark and readable */
  line-height: 1.3;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* Pastel color pairings: border (light pastel), title (darker shade) */
.callout-note {
  --callout-accent:      #8db6e2;
  --callout-title-color: #29507a;
}
.callout-tip {
  --callout-accent:      #8edbb7;
  --callout-title-color: #24704c;
}
.callout-important {
  --callout-accent:      #ffe08a;
  --callout-title-color: #7c6b26;
}
.callout-warning {
  --callout-accent:      #ffd1a9;
  --callout-title-color: #835124;
}
.callout-caution {
  --callout-accent:      #ffb6b6;
  --callout-title-color: #932f2f;
}

/* Pastel color pairings for dark mode: border (soft pastel), title (light readable) */
html[data-theme="dark"] .callout {
  background: var(--color-background-card, #23272e);
  border-color: var(--callout-accent, #6b95b9);
  border-left-color: var(--callout-accent, #6b95b9);
  box-shadow: 0 8px 30px rgba(0,0,0,0.16);
  color: var(--color-text, #ededed);
}
html[data-theme="dark"] .callout-title {
  color: var(--callout-title-color, #b8d2ef); /* Now lighter/readable */
}
html[data-theme="dark"] .callout-body {
  color: var(--color-text, #ededed);
}
html[data-theme="dark"] .callout-note {
  --callout-accent:      #6b95b9;
  --callout-title-color: #b8d2ef;
}
html[data-theme="dark"] .callout-tip {
  --callout-accent:      #5ab68c;
  --callout-title-color: #c7eedd;
}
html[data-theme="dark"] .callout-important {
  --callout-accent:      #dcc96d;
  --callout-title-color: #fae9ad;
}
html[data-theme="dark"] .callout-warning {
  --callout-accent:      #d7a97c;
  --callout-title-color: #f5dec7;
}
html[data-theme="dark"] .callout-caution {
  --callout-accent:      #d78787;
  --callout-title-color: #ffeaea;
}

/* Animated callout-body open/close */
.callout-body {
  color: var(--color-text, #171717);
  font-size: inherit;
  line-height: 1.65;
  margin-left: 1.7em;
  padding: 0 1.18em 1.07em 1.18em;
  max-height: 600px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.44s cubic-bezier(.49,.18,.28,1),
    opacity 0.33s cubic-bezier(.49,.15,.31,1),
    padding-bottom 0.31s cubic-bezier(.49,.18,.28,1);
  will-change: max-height, opacity, padding-bottom;
}
.callout:not([open]) .callout-body {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
  transition:
    max-height 0.32s cubic-bezier(.49,.15,.31,1),
    opacity 0.22s cubic-bezier(.49,.15,.31,1),
    padding-bottom 0.2s cubic-bezier(.49,.18,.28,1);
}

/* Responsive */
@media (max-width: 700px) {
  .callout-row { padding: 0.46em 0.72em 0.46em 0.72em; }
  .callout-body { padding: 0 0.72em 0.6em 0.72em; margin-left: 1.07em; }
}

/* Minimal, accessible focus indicator ONLY for keyboard nav */
.callout-row:focus { outline: none; box-shadow: none; }
.callout-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--callout-accent, #8db6e2);
  border-radius: 6px;
}











.breadcrumbs-nav {
    margin-top: 1.1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--color-background-card, #f4f6fa) 68%, transparent 100%);
    border-left: 5px solid var(--color-border, #b8c6d6);
    border-radius: 0 12px 12px 0;
    box-shadow: none;
    padding: 0.42em 0 0.42em 1.2em;
    max-width: 100%;
    transition: border-color 0.19s;
}

.breadcrumbs-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5em;
}

.breadcrumbs-label {
    font-size: 1em;
    color: var(--color-text-secondary, #868e96);
    font-weight: 500;
    margin-right: 0.48em;
    letter-spacing: 0.01em;
    opacity: 0.94;
    align-self: baseline;
    padding-top: 1px;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: baseline;
    line-height: 1.6;
}

.breadcrumbs-item {
    display: flex;
    align-items: baseline;
    margin: 0;
    padding: 0;
}

.breadcrumbs-link {
    color: var(--color-text, #23272d);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding: 0 0.08em;
    background: none;
    transition: color 0.15s, text-decoration 0.17s;
    border-radius: 3px;
    position: relative;
}

.breadcrumbs-link:hover,
.breadcrumbs-link:focus {
    color: var(--color-text, #191b1e);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2.5px;
    outline: none;
    background: none;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    display: inline-block;
    margin: 0 0.35em 0 0.35em;
    color: var(--color-border, #b8c6d6);
    font-weight: 400;
    font-size: 1em;
    opacity: 0.75;
    vertical-align: middle;
}

.breadcrumbs-item:last-child .breadcrumbs-link {
    color: var(--color-text, #191b1e);
    font-weight: 700;
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .breadcrumbs-nav {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
        margin-top: 0.5rem;
        padding-left: 0.5em;
        border-left-width: 3px;
        border-radius: 0 7px 7px 0;
    }
    .breadcrumbs-label {
        font-size: 0.97em;
        margin-right: 0.23em;
    }
}

/* Dark mode: neutrals remain neutrals */
html[data-theme="dark"] .breadcrumbs-nav {
    background: linear-gradient(to right, var(--color-background-card, #23262a) 68%, transparent 100%);
    border-left: 5px solid var(--color-border, #444b54);
}
html[data-theme="dark"] .breadcrumbs-label {
    color: var(--color-text-secondary, #b0b8be);
}
html[data-theme="dark"] .breadcrumbs-link {
    color: var(--color-text, #e3e7ec);
}
html[data-theme="dark"] .breadcrumbs-link:hover,
html[data-theme="dark"] .breadcrumbs-link:focus {
    color: var(--color-text, #fff);
}
html[data-theme="dark"] .breadcrumbs-item:not(:last-child)::after {
    color: var(--color-border, #585e6a);
}
html[data-theme="dark"] .breadcrumbs-item:last-child .breadcrumbs-link {
    color: var(--color-text, #fff);
}
