/* --- Base palette (tweak as needed) --- */
:root {
  /* Brand-ish orange used for headings/links */
  --k9-orange: #EF7C31;

  /* Warm light background */
  --k9-bg: #F7F2EC;

  /* Dark text */
  --k9-fg: #1A1A1A;
}

/* Material CSS variable overrides */
body {
  /* Background + subtle grid */
  background-color: var(--k9-bg);

  /* Grid pattern (subtle) */
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;

  /* Material vars */
  --md-default-bg-color: var(--k9-bg);
  --md-default-fg-color: var(--k9-fg);
}

/* Links + headings */
.md-typeset a {
  color: var(--k9-orange);
}
.md-typeset a:hover {
  opacity: 0.85;
}
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--k9-orange);
}

/* Code blocks a bit closer to GitBook feel */
.md-typeset pre > code {
  border-radius: 12px;
}
.md-typeset code {
  border-radius: 6px;
}
/* K9 highlight: brand-tinted background + force readable text */
.md-typeset mark,
.md-typeset mark * {
  background: rgba(239, 124, 49, 0.18) !important; /* K9 orange tint */
  color: #1A1A1A !important;                        /* force readable text */
  padding: 0.06em 0.22em;
  border-radius: 0.22em;
}

/* Ensure links inside highlights look like links */
.md-typeset mark a,
.md-typeset mark a * {
  color: #1A1A1A !important;
  text-decoration: underline;
  font-weight: 600;
}
/* --- K9 fixed top banner (always visible) --- */
:root {
  --k9-topbar-height: 44px; /* tweak if you want taller */
}

.k9-topbar {
  position: fixed;
  justify-content: center;
  top: 0;
  left: 0;
  right: 0;
  height: var(--k9-topbar-height);
  z-index: 5000;

  display: flex;
  align-items: center;

  background: rgba(239, 124, 49, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.k9-topbar__inner {
  width: 100%;
  text-align: center;
  padding: 0 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  color: var(--k9-fg);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k9-topbar__inner a {
  margin-left: .5rem;
  text-decoration: underline;
  font-weight: 700;
  color: var(--k9-fg);
}

/* Push Material header + content down so nothing overlaps the banner */
.md-header {
  top: var(--k9-topbar-height) !important;
}

.md-main {
  padding-top: var(--k9-topbar-height) !important;
}

/* Sidebars also need the offset (desktop + mobile) */
.md-sidebar {
  top: calc(var(--md-header-height) + var(--k9-topbar-height)) !important;
}



