/* ============================================================
   GitLab-style theme for MkDocs Material
   Primary: GitLab Orange #FC6D26 / #E24329
   ============================================================ */

/* ---------- Color tokens ---------- */
:root {
  --md-primary-fg-color:        #FC6D26;
  --md-primary-fg-color--light: #FCA57A;
  --md-primary-fg-color--dark:  #C24B10;
  --md-primary-bg-color:        #ffffff;
  --md-accent-fg-color:         #FC6D26;

  /* Link color — GitLab blue-ish purple */
  --md-typeset-a-color:         #1068BF;

  /* Sidebar */
  --sidebar-bg:                 #fafafa;
  --sidebar-border:             #e5e5e5;
  --sidebar-active-bg:          #FFF1EB;
  --sidebar-active-color:       #C24B10;
  --sidebar-hover-bg:           #f5f5f5;

  /* Code blocks */
  --md-code-bg-color:           #f6f7f8;
  --md-code-fg-color:           #2e2e2e;

  /* Admonitions */
  --md-admonition-bg-color:     #fafafa;
}

/* ---------- Hide top header + footer ---------- */
.md-header {
  display: none;
}

.md-tabs {
  top: 0;
}

.md-footer-meta {
  display: none;
}

/* Dark mode token overrides */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #FC6D26;
  --md-primary-fg-color--light: #FCA57A;
  --md-primary-fg-color--dark:  #C24B10;
  --md-accent-fg-color:         #FC6D26;
  --md-typeset-a-color:         #5694D6;
  --sidebar-bg:                 #1f1f1f;
  --sidebar-border:             #2e2e2e;
  --sidebar-active-bg:          #3a2010;
  --sidebar-active-color:       #FCA57A;
  --sidebar-hover-bg:           #2a2a2a;
  --md-code-bg-color:           #161616;
  --md-code-fg-color:           #e0e0e0;
}

/* ---------- Password gate ---------- */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

#password-gate.gate-fade-out {
  opacity: 0;
}

.gate-card {
  background: #ffffff;
  border: 1px solid #e2e5e8;
  border-radius: 16px;
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.gate-logo-wrap {
  margin-bottom: 1.25rem;
}

.gate-logo {
  height: 52px;
  width: auto;
}

.gate-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.gate-subtitle {
  font-size: 0.78rem;
  color: #aaa;
  margin: 0 0 1.75rem;
}

.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gate-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border: 1px solid #dde0e3;
  border-radius: 8px;
  color: #1f2937;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gate-input:focus {
  border-color: #FC6D26;
  box-shadow: 0 0 0 3px rgba(252,109,38,0.12);
}

.gate-input--error {
  border-color: #e55 !important;
  box-shadow: 0 0 0 3px rgba(220,80,80,0.12) !important;
}

.gate-btn {
  width: 100%;
  padding: 0.65rem;
  background: #FC6D26;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gate-btn:hover {
  background: #e05a18;
}

.gate-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin: 0.5rem 0 0;
  min-height: 1.1em;
}

.gate-hint {
  font-size: 0.72rem;
  color: #bbb;
  margin: 0.75rem 0 0;
}

/* ---------- Header ---------- */
.md-header {
  background-color: #1f1f1f;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.3);
}

.md-header__title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Hide the header tab bar — tabs are rendered inside the sidebar instead */
.md-tabs { display: none !important; }

/* ---------- Sidebar section switcher ---------- */
.sidebar-switcher {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 0.35rem;
  margin: 0.75rem 0.6rem 0.9rem;
}

[data-md-color-scheme="slate"] .sidebar-switcher {
  background-color: #252525;
}

.switcher-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #555;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
  margin-bottom: 0.2rem;
}

[data-md-color-scheme="slate"] .switcher-item {
  color: #888;
}

.switcher-item:hover {
  background-color: #e4e4e4;
  color: #1f1f1f;
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] .switcher-item:hover {
  background-color: #333;
  color: #ffffff;
}

.switcher-item--active {
  background-color: #ffffff;
  color: #FC6D26 !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-md-color-scheme="slate"] .switcher-item--active {
  background-color: #3a3a3a;
  color: #FC6D26 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.switcher-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.switcher-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.5;
}

.switcher-item--active .switcher-icon-img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(52%) sepia(70%) saturate(1200%) hue-rotate(344deg) brightness(103%);
}

.switcher-label {
  flex: 1;
}


/* ---------- Content area ---------- */
.md-content {
  max-width: 860px;
}

.md-typeset .page-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FC6D26;
  margin-bottom: -0.5rem;
}

.md-typeset h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f1f1f;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.4em;
  margin-bottom: 1rem;
}

.md-typeset h1 + .page-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.005em;
  margin-top: -0.6rem;
  margin-bottom: 1.4rem;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  color: #f0f0f0;
  border-bottom-color: #3a3a3a;
}

.md-typeset h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f1f1f;
  margin-top: 2rem;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  color: #e8e8e8;
}

.md-typeset h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Horizontal rule between sections */
.md-typeset hr {
  border-color: #e5e5e5;
  margin: 1.8rem 0;
}

[data-md-color-scheme="slate"] .md-typeset hr {
  border-color: #3a3a3a;
}

/* ---------- Links ---------- */
.md-typeset a {
  color: var(--md-typeset-a-color);
  text-decoration: none;
}

.md-typeset a:hover {
  text-decoration: underline;
}

/* ---------- Code blocks ---------- */

.md-typeset .highlight {
  border: 1px solid #dde0e3;
  border-radius: 0;
  position: relative;
  margin: 1em 0;
}

[data-md-color-scheme="slate"] .md-typeset .highlight {
  border-color: #2e2e2e;
}

/* Title bar — absolutely positioned, dots via content + padding so they're reliably left-pinned */
.md-typeset .highlight::before {
  content: '● ● ●';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.7rem;
  line-height: 1.7rem;
  padding-left: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.08rem;
  color: #b4b8be;
  background-color: #e8eaed;
  border-bottom: 1px solid #dde0e3;
  z-index: 1;
  pointer-events: none;
}

[data-md-color-scheme="slate"] .md-typeset .highlight::before {
  background-color: #1a1a1a;
  border-bottom-color: #2e2e2e;
  color: #484848;
}

/* Push code content below the title bar only — let MkDocs handle all other padding */
.md-typeset .highlight pre {
  border: none !important;
  border-radius: 0 !important;
  margin: 0;
  padding-top: 1.7rem;
  background-color: #f5f6f7;
}

[data-md-color-scheme="slate"] .md-typeset .highlight pre {
  background-color: #141414;
}

/* Copy button sits inside the title bar */
.md-typeset .highlight .md-clipboard {
  top: 0.2rem;
  right: 0.4rem;
  z-index: 2;
  color: #999;
  transform: scale(0.72);
  transform-origin: top right;
}

.md-typeset .highlight .md-clipboard:hover {
  color: #FC6D26;
}

/* Inline code only — must not affect code inside pre blocks */
.md-typeset :not(pre) > code {
  background-color: #eef0f2;
  border-radius: 4px;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  color: #C24B10;
}

[data-md-color-scheme="slate"] .md-typeset :not(pre) > code {
  background-color: #252525;
  color: #FCA57A;
}

/* ---------- Tables ---------- */
.md-typeset table:not([class]) {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.85rem;
}

.md-typeset table:not([class]) th {
  background-color: #f6f7f8;
  font-weight: 600;
  color: #1f1f1f;
  border-bottom: 2px solid #e0e0e0;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-bottom-color: #444;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid #efefef;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-top-color: #333;
}

/* ---------- Admonitions (note/tip/warning) ---------- */
.md-typeset .admonition {
  border-radius: 6px;
  border-width: 0;
  font-size: 0.85rem;
  box-shadow: none;
}

.md-typeset .admonition-title {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tip — GitLab teal */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: #1aaa55;
}
.md-typeset .tip > .admonition-title {
  background-color: rgba(26,170,85,0.08);
  color: #1aaa55;
}

/* Warning — GitLab orange */
.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-color: #FC6D26;
}
.md-typeset .warning > .admonition-title {
  background-color: rgba(252,109,38,0.08);
  color: #C24B10;
}

/* Note — neutral */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #868686;
}
.md-typeset .note > .admonition-title {
  background-color: rgba(134,134,134,0.08);
  color: #555;
}

/* Info — GitLab blue */
.md-typeset .admonition.info,
.md-typeset details.info {
  border-color: #1068BF;
}
.md-typeset .info > .admonition-title {
  background-color: rgba(16,104,191,0.08);
  color: #1068BF;
}

/* ---------- Tabbed content ---------- */
.md-typeset .tabbed-labels > label {
  font-size: 0.82rem;
  font-weight: 500;
}

.md-typeset .tabbed-labels > label:hover {
  color: #FC6D26;
}

.md-typeset [data-md-component="tabbed-content"] .tabbed-labels > label[for]:focus,
.md-typeset .tabbed-set > input:checked + label {
  color: #FC6D26;
  border-bottom-color: #FC6D26;
}

/* ---------- Astro-style numbered steps ---------- */
.md-typeset ol {
  list-style: none;
  padding-left: 0;
  counter-reset: steps;
}

.md-typeset ol > li {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 0.75rem;
  counter-increment: steps;
}

/* Numbered circle — flex for perfect centering */
.md-typeset ol > li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid #c8ccd0;
  background: #ffffff;
  color: #444;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

[data-md-color-scheme="slate"] .md-typeset ol > li::before {
  border-color: #444;
  background: #1e1e1e;
  color: #aaa;
}


/* Title link — larger, bold */
.md-typeset ol > li > p:first-child {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Subtitle paragraph — smaller, muted */
.md-typeset ol > li > p:nth-child(2) {
  font-size: 0.83rem;
  color: #666;
  margin-top: 0;
}

[data-md-color-scheme="slate"] .md-typeset ol > li > p:nth-child(2) {
  color: #999;
}

/* Vertical connector line between numbered steps */
.md-typeset ol > li::after {
  content: '';
  position: absolute;
  left: calc(0.875rem - 0.5px);
  top: calc(0.1em + 1.75rem + 0.25rem);
  bottom: -0.3rem;
  width: 1px;
  background-color: #dde0e4;
}

[data-md-color-scheme="slate"] .md-typeset ol > li::after {
  background-color: #333;
}

.md-typeset ol > li:last-child::after {
  display: none;
}

/* ---------- File tree component ---------- */
.file-tree {
  background-color: #f3f4f6;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
  padding: 1rem 1.4rem;
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  margin: 1.2rem 0;
  overflow-x: auto;
  color: #374151;
  white-space: pre;
}

[data-md-color-scheme="slate"] .file-tree {
  background-color: #1e1e1e;
  border-color: #2e2e2e;
  color: #c8c8c8;
}

/* Directory names — bold */
.file-tree .ft-dir {
  font-weight: 700;
  color: #1f2937;
}

[data-md-color-scheme="slate"] .file-tree .ft-dir {
  color: #e5e7eb;
}

/* Star marker for key files */
.file-tree .ft-star {
  color: #FC6D26;
  font-style: normal;
}

/* ---------- Hero cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  border-radius: 16px;
  padding: 1.6rem 1.6rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  text-decoration: none !important;
}

.card-day1      { background: linear-gradient(145deg, #3b4fd8 0%, #6c35c9 100%); }
.card-day2      { background: linear-gradient(145deg, #0a8f6e 0%, #0d6e8f 100%); }
.card-day3      { background: linear-gradient(145deg, #C24B10 0%, #FC6D26 100%); }
.card-downloads,
.card-glossary,
.card-r-plots {
  background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 100%);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .card-grid--2 { grid-template-columns: 1fr; }
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.1rem;
  line-height: 1.1;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin: 0 0 0.8rem;
}

.card-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 0 0 1.2rem;
  flex: 1;
}

.card-btn {
  display: inline-block;
  background-color: rgba(0,0,0,0.25);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  text-decoration: none !important;
  width: fit-content;
  margin-bottom: 1.4rem;
  transition: background 0.15s ease;
}

.card-btn:hover {
  background-color: rgba(0,0,0,0.38);
  text-decoration: none !important;
}

/* Decorative illustration panel at card bottom */
.card-illustration {
  margin: 0 -1.6rem;
  padding: 0.9rem 1.2rem 0;
  background-color: rgba(255,255,255,0.1);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 90px;
}

/* Fake sequence / bar rows inside illustration */
.illus-row {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.3);
}
.illus-row.short  { width: 40%; }
.illus-row.medium { width: 65%; }
.illus-row.long   { width: 85%; }
.illus-row.full   { width: 100%; }
.illus-row.dim    { background-color: rgba(255,255,255,0.15); }

.illus-cols {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}
.illus-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background-color: rgba(255,255,255,0.35);
}

.illus-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.3rem;
}
.illus-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
}
.illus-dot.bright { background-color: rgba(255,255,255,0.75); }

/* ---------- Terminal window component ---------- */
.terminal-window {
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.2rem 0 1.8rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  font-family: "JetBrains Mono", "Roboto Mono", monospace;
}

.terminal-titlebar {
  background-color: #2d2d2d;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid #111;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dot.red    { background-color: #ff5f57; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green  { background-color: #28c840; }

.terminal-label {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 0.02em;
  margin-right: 36px; /* balance the dots */
}

.terminal-body {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #ccc;
  overflow-x: auto;
}

/* Prompt + command */
.terminal-body .cmd::before {
  content: "$ ";
  color: #7ec8a0;
  user-select: none;
}
.terminal-body .cmd {
  color: #e8e8e8;
  display: block;
}

/* Output text */
.terminal-body .out {
  color: #888;
  display: block;
}

/* Highlighted / important output */
.terminal-body .hi {
  color: #7ec8a0;
  display: block;
}

/* Warning / error output */
.terminal-body .warn {
  color: #e5a44a;
  display: block;
}

/* Blank spacer line */
.terminal-body .blank {
  display: block;
  height: 0.5rem;
}

/* ---------- Section subtitle (below h2/h3) ---------- */
.md-typeset .section-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: #888;
  margin-top: -0.9rem;
  margin-bottom: 1rem;
}

[data-md-color-scheme="slate"] .md-typeset .section-subtitle {
  color: #666;
}

/* ---------- Left sidebar nav ---------- */



/* Wrapper keeps label+subtitle as a column inside the row-flex link */
.nav-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

/* Section label (e.g. "Day 2") */
.nav-section-label {
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.3;
}

/* Section subtitle (e.g. "Community Analysis") */
.nav-section-subtitle {
  font-weight: 400;
  font-size: 0.73rem;
  color: #888;
  line-height: 1.3;
}

[data-md-color-scheme="slate"] .nav-section-subtitle {
  color: #777;
}

/* Nested nav list — flush with section header, no indent, spaced below header */
.md-nav--primary .md-nav__item--section > .md-nav,
.md-nav--primary .md-nav__item--section > .md-nav__list {
  margin-left: 0;
  padding-left: 0;
  margin-top: 0.45rem;
}

/* Sub-page links */
.md-nav--primary .md-nav__item--section .md-nav .md-nav__link,
.md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link {
  font-size: 0.76rem;
  font-weight: 400;
  border-radius: 6px;
  padding: 0.28rem 0.5rem 0.28rem 1.2rem;
  margin: 0.05rem 0.3rem 0.05rem 0;
  color: #374151;
  transition: background 0.1s ease, color 0.1s ease;
  position: relative;
}

/* Chevron — inset from left edge of highlighted box */
.md-nav--primary .md-nav__item--section .md-nav .md-nav__link::before,
.md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link::before {
  content: '›';
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.35;
}

[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section .md-nav .md-nav__link,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link {
  color: #b0b8c4;
}

/* Hover on sub-pages */
.md-nav--primary .md-nav__item--section .md-nav .md-nav__link:hover,
.md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section .md-nav .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link:hover {
  background-color: #2a2a2a;
  color: #e5e7eb;
}

/* Active subpage — orange pill */
.md-nav--primary .md-nav__item--section .md-nav .md-nav__link--active,
.md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link--active {
  background-color: #FFF1EB !important;
  color: #C24B10 !important;
  border-radius: 6px;
}

[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section .md-nav .md-nav__link--active,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section .md-nav__list .md-nav__link--active {
  background-color: rgba(194, 75, 16, 0.18) !important;
  color: #FCA57A !important;
}

/* Active section header — orange text only, no background.
   Covers both: being on the index page (--active on the link) and
   being on any subpage (--active on the parent li, not the link). */
.md-nav--primary .md-nav__item--section > .md-nav__link--active,
.md-nav--primary .md-nav__item--section > label.md-nav__link--active,
.md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav__link,
.md-nav--primary .md-nav__item--section.md-nav__item--active > label.md-nav__link,
.md-nav--primary > .md-nav__list > .md-nav__item:not(.md-nav__item--section).md-nav__item--active > .md-nav__link {
  background-color: transparent !important;
  color: #C24B10 !important;
}

[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section > .md-nav__link--active,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section > label.md-nav__link--active,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav__link,
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section.md-nav__item--active > label.md-nav__link,
[data-md-color-scheme="slate"] .md-nav--primary > .md-nav__list > .md-nav__item:not(.md-nav__item--section).md-nav__item--active > .md-nav__link {
  background-color: transparent !important;
  color: #FCA57A !important;
}


/* ---------- Home page — hide TOC nav but keep sidebar for calendar ---------- */
body.is-home-page .md-sidebar--secondary .md-nav--secondary {
  display: none;
}

/* ---------- Workshop calendar widget (right sidebar) ---------- */
.wcal-injected {
  padding: 0.75rem 0.6rem 0.25rem;
}

.workshop-calendar {
  font-size: 0.72rem;
  color: #374151;
}

[data-md-color-scheme="slate"] .workshop-calendar {
  color: #c0c0c0;
}

.wcal-header {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.wcal-month {
  font-weight: 700;
  font-size: 0.78rem;
  color: #1f2937;
}

[data-md-color-scheme="slate"] .wcal-month {
  color: #e5e7eb;
}

.wcal-year {
  font-size: 0.7rem;
  color: #888;
}

.wcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px 0;
}

.wcal-dow {
  text-align: center;
  font-weight: 600;
  color: #aaa;
  font-size: 0.65rem;
  padding-bottom: 0.3rem;
}

.wcal-cell {
  text-align: center;
  padding: 0.22rem 0;
  border-radius: 4px;
  font-size: 0.68rem;
  color: #555;
  line-height: 1.6;
}

[data-md-color-scheme="slate"] .wcal-cell {
  color: #888;
}

.wcal-cell--empty {
  visibility: hidden;
}

.wcal-cell--workshop {
  background-color: #FFF1EB;
  color: #C24B10;
  font-weight: 700;
  border-radius: 0;
}

.wcal-cell--first {
  border-radius: 4px 0 0 4px;
}

.wcal-cell--last {
  border-radius: 0 4px 4px 0;
}

[data-md-color-scheme="slate"] .wcal-cell--workshop {
  background-color: rgba(194, 75, 16, 0.18);
  color: #FCA57A;
}

.wcal-info {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .wcal-info {
  border-color: #2e2e2e;
}

.wcal-info-row {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #f0f0f0;
}

.wcal-info-row:last-child {
  border-bottom: none;
}

[data-md-color-scheme="slate"] .wcal-info-row {
  border-bottom-color: #222;
}

.wcal-info-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #FC6D26;
  vertical-align: middle;
  margin-right: 0.25rem;
  margin-top: -1px;
}

.wcal-info-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.wcal-info-label {
  display: flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaa;
  line-height: 1;
}

[data-md-color-scheme="slate"] .wcal-info-label {
  color: #666;
}

.wcal-info-value {
  font-size: 0.7rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

[data-md-color-scheme="slate"] .wcal-info-value {
  color: #c0c0c0;
}

/* ---------- Interactive checklist component ---------- */
.checklist {
  border: 1px solid #e2e5e8;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  background: #ffffff;
}

[data-md-color-scheme="slate"] .checklist {
  border-color: #2e2e2e;
  background: #1e1e1e;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #f6f7f8;
  border-bottom: 1px solid #e2e5e8;
}

[data-md-color-scheme="slate"] .checklist-header {
  background: #252525;
  border-bottom-color: #2e2e2e;
}

.checklist-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

[data-md-color-scheme="slate"] .checklist-title {
  color: #888;
}

.checklist-reset {
  font-size: 0.72rem;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.checklist-reset:hover {
  color: #FC6D26;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
  transition: background 0.1s ease;
}

.checklist-item:last-of-type {
  border-bottom: none;
}

.checklist-item:hover {
  background: #fafafa;
}

[data-md-color-scheme="slate"] .checklist-item {
  border-bottom-color: #272727;
}

[data-md-color-scheme="slate"] .checklist-item:hover {
  background: #242424;
}

.checklist-item input[type=checkbox] {
  display: none;
}

.checklist-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #c8ccd0;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

[data-md-color-scheme="slate"] .checklist-check {
  border-color: #444;
  background: #1e1e1e;
}

.checklist-item input[type=checkbox]:checked ~ .checklist-check {
  background: #FC6D26;
  border-color: #FC6D26;
}

.checklist-item input[type=checkbox]:checked ~ .checklist-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checklist-text {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.4;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

[data-md-color-scheme="slate"] .checklist-text {
  color: #c8c8c8;
}

.checklist-subtext {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  line-height: 1.4;
}

[data-md-color-scheme="slate"] .checklist-subtext {
  color: #666;
}

.checklist-item input[type=checkbox]:checked ~ .checklist-check ~ .checklist-text {
  color: #aaa;
  text-decoration: line-through;
}

.checklist-item input[type=checkbox]:checked ~ .checklist-check ~ .checklist-text .checklist-subtext {
  color: #bbb;
}

/* All done state */
.checklist--complete .checklist-header {
  background: #f0faf4;
  border-bottom-color: #c6e9d4;
}

[data-md-color-scheme="slate"] .checklist--complete .checklist-header {
  background: #1a2e22;
  border-bottom-color: #1e3d29;
}

.checklist--complete .checklist-title {
  color: #1aaa55;
}

/* ---------- Glossary search table ---------- */
.glossary-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.glossary-search-input {
  flex: 1;
  padding: 0.55rem 0.9rem;
  border: 1px solid #dde0e3;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background-color: #ffffff;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glossary-search-input:focus {
  border-color: #FC6D26;
  box-shadow: 0 0 0 3px rgba(252,109,38,0.12);
}

.glossary-search-input::placeholder {
  color: #aaa;
}

[data-md-color-scheme="slate"] .glossary-search-input {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

[data-md-color-scheme="slate"] .glossary-search-input::placeholder {
  color: #555;
}

.glossary-search-count {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
}

.glossary-table {
  width: 100%;
  font-size: 0.84rem;
  border-collapse: collapse;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .glossary-table {
  border-color: #333;
}

.glossary-table thead th {
  background-color: #f6f7f8;
  font-weight: 600;
  color: #1f1f1f;
  border-bottom: 2px solid #e0e0e0;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

[data-md-color-scheme="slate"] .glossary-table thead th {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-bottom-color: #444;
}

.glossary-table thead th:first-child {
  width: 22%;
}

.glossary-table tbody tr {
  border-top: 1px solid #efefef;
}

[data-md-color-scheme="slate"] .glossary-table tbody tr {
  border-top-color: #2e2e2e;
}

.glossary-table tbody tr:hover {
  background-color: #fafafa;
}

[data-md-color-scheme="slate"] .glossary-table tbody tr:hover {
  background-color: #1e1e1e;
}

.glossary-table td {
  padding: 0.65rem 0.9rem;
  vertical-align: top;
}

.glossary-table td:first-child {
  white-space: nowrap;
}

.glossary-full {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #888;
  margin-top: 0.1rem;
  white-space: normal;
}

.glossary-no-results {
  font-size: 0.85rem;
  color: #888;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */

/* Dark background only on the meta bar, not the prev/next nav area */
.md-footer {
  background-color: transparent;
}

.md-footer-meta {
  background-color: #1f1f1f;
}

/* Prev/Next navigation cards */
.md-footer__inner {
  background-color: transparent;
  padding: 1.5rem 0 0.5rem;
  gap: 1rem;
}

.md-footer__link {
  background-color: #ffffff;
  border: 1px solid #e2e5e8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #1f2937 !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.md-footer__link:hover {
  border-color: #FC6D26;
  box-shadow: 0 2px 10px rgba(252,109,38,0.1);
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] .md-footer__link {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0 !important;
}

[data-md-color-scheme="slate"] .md-footer__link:hover {
  border-color: #FC6D26;
}

.md-footer__direction {
  display: block;
  font-size: 0.72rem;
  color: #888;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.md-footer__title {
  flex: 1;
  min-width: 0;
}

.md-footer__title .md-ellipsis {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

[data-md-color-scheme="slate"] .md-footer__title .md-ellipsis {
  color: #e0e0e0;
}

.md-footer__button {
  color: #aaa;
  flex-shrink: 0;
}

/* ---------- Search ---------- */
.md-search__input {
  border-radius: 6px;
  background-color: rgba(255,255,255,0.1);
}

.md-search__input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* ---------- Key outputs table ---------- */
.key-outputs-table table th:first-child,
.key-outputs-table table td:first-child {
  width: 42%;
  white-space: nowrap;
}

/* ---------- Sidebar GitLab button ---------- */
.sidebar-gitlab-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.6rem 0.65rem;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 0.5rem;
}

.sidebar-gitlab-btn a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.28rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: #2e2e2e !important;
  background: #f5f5f5;
  border: 1px solid #e2e5e8;
  border-radius: 6px;
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s;
}

.sidebar-gitlab-btn a:hover {
  background: #FFE4D6;
  border-color: #FC6D26;
  color: #C24B10 !important;
}

.sidebar-gitlab-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sidebar-gitlab-btn a::after {
  content: '↗';
  font-size: 0.68rem;
  opacity: 0.55;
  margin-left: 0.4rem;
}

/* ---------- Sidebar organizer contacts ---------- */
.wcal-contacts {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--sidebar-border);
}

.wcal-contacts-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin: 0 0 0.5rem;
}

.wcal-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.4rem;
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s;
}

.wcal-contact:last-child {
  margin-bottom: 0;
}

.wcal-contact:hover {
  border-color: #FCA57A;
  background: #FFF8F5;
}

.wcal-contact-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #2e2e2e;
  line-height: 1.3;
}


.wcal-contact-pronouns {
  font-size: 0.68rem;
  font-weight: 400;
  color: #888;
}

.wcal-contact-email {
  font-size: 0.58rem;
  color: #999 !important;
  text-decoration: none !important;
  word-break: break-all;
  line-height: 1.3;
}

/* ---------- Sidebar quick links ---------- */
.sidebar-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.6rem 0.65rem;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 0.5rem;
}

.sidebar-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 0.6rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: #C24B10 !important;
  background: #FFF1EB;
  border: 1px solid #FCCFB5;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.3;
}

.sidebar-quick-links a:hover {
  background: #FFE4D6;
  border-color: #FC6D26;
}

.sidebar-quick-links a::after {
  content: '↗';
  font-size: 0.68rem;
  opacity: 0.55;
  flex-shrink: 0;
  margin-left: 0.4rem;
}

/* ---------- Workshop Agenda ---------- */
.agenda-wrap {
  margin: 2rem 0 2.5rem;
}

.agenda-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 0.75rem;
}

.agenda-tab-btns {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  border-bottom: 2px solid #e2e5e8;
  padding-bottom: 0;
}

.agenda-tab-btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.agenda-tab-btn:hover {
  color: #FC6D26;
}

.agenda-tab-btn.is-active {
  color: #FC6D26;
  border-bottom-color: #FC6D26;
  background: none;
}

.agenda-panel {
  display: none;
  border: 1px solid #e2e5e8;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.agenda-panel.is-active {
  display: block;
}

.agenda-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: center;
  gap: 0 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.agenda-row:last-child {
  border-bottom: none;
}

.agenda-row:nth-child(even) {
  background: #fafafa;
}

.agenda-row--special {
  background: #fff8f5 !important;
}

.agenda-row--lunch {
  background: #f5f7f9 !important;
  color: #666;
}

.agenda-row--qa {
  background: #fff8f5 !important;
}

.agenda-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.agenda-row--special .agenda-time,
.agenda-row--qa .agenda-time {
  color: #FC6D26;
}

.agenda-topic {
  font-weight: 500;
  color: #2e2e2e;
}

.agenda-row--lunch .agenda-topic {
  color: #888;
  font-weight: 400;
}

.agenda-presenter {
  font-size: 0.72rem;
  color: #999;
  white-space: nowrap;
  text-align: right;
}

.agenda-row--qa .agenda-presenter {
  display: none;
}

.agenda-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #FC6D26;
  color: #fff;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.agenda-tag--lunch {
  background: #e2e5e8;
  color: #666;
}



