/* docs/extra.css
 *
 * mkdocs Material extras for nimbus.yoodule.com.
 * The slate palette sets the dark theme; this file adds the
 * bespoke download-page components and a small set of
 * utility classes used by index.md + download.md.
 */

/* ------------------------------------------------------------------ */
/* Download page: card grid + install-cmd blocks + platform icons.    */
/* Replaces the old unstyled `=== "macOS"` tab block on download.md.  */
/* ------------------------------------------------------------------ */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.download-card {
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}

.download-card:hover {
  border-color: #404040;
}

.download-card .platform-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: #ffffff;
  fill: currentColor;
}

.download-card .platform-name {
  font-size: 1.25em;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.download-card .platform-subtitle {
  font-size: 0.85em;
  color: #737373;
  margin: 0 0 20px 0;
}

.install-cmd {
  background: #000000;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 16px 0;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: #e5e5e5;
  overflow-wrap: break-word;
  word-break: break-all;
  width: 100%;
  box-sizing: border-box;
}

.install-cmd code {
  background: transparent;
  color: #e5e5e5;
  padding: 0;
  font-size: 1em;
}

.download-card .direct-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px 0;
  font-size: 0.88em;
}

.download-card .direct-links li {
  margin: 6px 0;
}

.download-card .direct-links a {
  color: #a3a3a3;
  text-decoration: none;
}

.download-card .direct-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.download-card .platform-footer {
  font-size: 0.78em;
  color: #525252;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #1a1a1a;
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* Download page: hero CTA + Docker prereq callout.                   */
/* ------------------------------------------------------------------ */

.download-hero {
  text-align: center;
  background: #000000;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 40px 32px;
  margin: 32px 0;
}

.download-hero h3 {
  color: #ffffff;
  font-size: 1.7em;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.download-hero p {
  color: #a3a3a3;
  font-size: 1.05em;
  line-height: 1.6;
  margin: 0 auto 24px auto;
  max-width: 540px;
}

.download-hero .install-cmd {
  margin: 0 auto 24px auto;
  max-width: 640px;
  text-align: left;
}

/* ------------------------------------------------------------------ */
/* Download page: Docker prereq callout.                              */
/* Short single-paragraph note. Square corners, stronger left bar     */
/* than the rest of the page so it reads as a clear "before you      */
/* install" block, not a soft footnote.                              */
/* ------------------------------------------------------------------ */

.prereq-callout {
  display: block;
  background: #0a0a0a;
  border: 1px solid #404040;
  border-left: 4px solid #ffffff;
  border-radius: 0;
  padding: 16px 22px;
  color: #d4d4d4;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 24px 0 32px 0;
  text-align: left;
}

.prereq-callout > p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: normal;
  letter-spacing: 0;
  padding: 0;
  border: 0;
}

/* When the callout has the "Quick check" snippet, the trailing
 * <p> ("If you see a CONTAINER ID table…") butts flush against
 * the bottom of the <pre> with no breathing room — looks like a
 * single run-on block. Add bottom margin to the <pre> instead
 * of top margin to the <p>: this keeps the original single-<p>
 * callout (no code block) untouched, and applies only when the
 * callout actually contains a snippet. */
.prereq-callout pre {
  background: #050505;
  border: 1px solid #262626;
  border-radius: 0;
  padding: 10px 14px;
  margin: 12px 0 10px 0;
  font-size: 0.9em;
  line-height: 1.5;
  overflow-x: auto;
}

.prereq-callout a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #525252;
  transition: text-decoration-color 0.15s ease;
}

.prereq-callout a:hover {
  text-decoration-color: #ffffff;
}

.prereq-callout strong {
  color: #ffffff;
  font-weight: 600;
}

.prereq-callout pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #e5e5e5;
  font-size: inherit;
}

/* ------------------------------------------------------------------ */
/* Tabbed install picker.                                             */
/* pymdownx.tabbed + alternate_style: true renders a segmented        */
/* control at the top of the install section. We add a small leading  */
/* platform icon inside each tab and tighten the install-cmd inside.  */
/* ------------------------------------------------------------------ */

.tabbed-set.tabbed-alternate > .tabbed-content > h3:first-child,
.tabbed-set.tabbed-alternate > .tabbed-content > p:first-child {
  margin-top: 0;
}

/* The tab labels (macOS / Linux / Windows). mkdocs Material's default
   tabbed-alternate style stacks the icon over the name with a chunky
   underline — reads like a top-nav, not a segmented control. Override
   to put icon + name side by side in a tight horizontal row, with
   no default background — the pill only appears on hover. */
.tabbed-set.tabbed-alternate .tabbed-labels > label {
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  background: transparent;
  border: 1px solid transparent;
  color: #a3a3a3;
  border-radius: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tabbed-set.tabbed-alternate .tabbed-labels > label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  flex: 0 0 20px;
}

.tabbed-set.tabbed-alternate .tabbed-labels > label:nth-child(1)::before {
  background-image: url("/static/platforms/apple.svg");
}

.tabbed-set.tabbed-alternate .tabbed-labels > label:nth-child(2)::before {
  background-image: url("/static/platforms/linux.svg");
  /* Tux's ink sits inside the inner 16x16 of a 24x24 viewBox, so the
     other icons look heavier at the same pixel size. Bump the
     background-size to compensate and keep all three visually matched. */
  background-size: 24px 24px;
}

.tabbed-set.tabbed-alternate .tabbed-labels > label:nth-child(3)::before {
  background-image: url("/static/platforms/windows11.svg");
}

/* Hover on inactive tabs — subtle slate wash so the user gets
   feedback, but no color flash that breaks the dark palette. */
.tabbed-set.tabbed-alternate .tabbed-labels > label:hover {
  color: #ffffff;
  background: #141414;
  border-color: #404040;
}

/* Reset the bottom-border Material draws on the whole label set so
   the labels sit cleanly inside the row instead of being glued to a
   baseline. */
.tabbed-set.tabbed-alternate .tabbed-labels {
  border-bottom: none;
}

.tabbed-set.tabbed-alternate .install-cmd {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* Index page: existing video-container + footer CTA box reuse the    */
/* inline styles already in index.md, so extra.css only needs to      */
/* make sure nothing collides. Nothing more to add.                   */
/* ------------------------------------------------------------------ */

/* Two ways cards: replace the browser's plain disc with a small slate
   arrow that matches the dark palette. The card div carries the
   `.two-ways-card` class on the index page (added in index.md). */
.two-ways-card > ul {
  padding-left: 0;
  list-style: none;
}

.two-ways-card > ul > li {
  position: relative;
  padding-left: 1.4em;
}

.two-ways-card > ul > li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #525252;
  font-weight: 400;
}

/* Pagefind search: the <pagefind-modal-trigger> + <pagefind-modal>
   custom elements in overrides/partials/header.html + overrides/main.html
   carry their own default styles from pagefind-component-ui.css. We
   intentionally do NOT override them here — earlier attempts to
   recolor the trigger to match mkdocs-material's dark header failed
   because pagefind hardens its base styles with a high-specificity
   selector. Use the trigger as Pagefind ships it. */
