/* Black primary (header/links) in both schemes. */
:root {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #1a1a1a;
  --md-primary-fg-color--dark: #000000;
}

/* Pure-black dark theme: header, page and footer all #000, matching the
   Hecate app's OLED black. The header logo is a transparent white mark, so the
   black header lets it sit cleanly with no tile edge and no grey step between
   header and page. */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #000000;
  --md-default-bg-color--light: #000000;
  --md-default-bg-color--lighter: #0a0a0a;
  --md-default-bg-color--lightest: #141414;
  --md-footer-bg-color: #000000;
  --md-footer-bg-color--dark: #000000;
}

.md-header,
.md-tabs,
.md-footer,
.md-footer-meta {
  background-color: #000;
}


/* Centered hero used on app landing pages (wrap with <div class="hero" markdown>). */
.hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.hero img {
  width: 96px;
  height: 96px;
}
.hero h1 {
  margin: 0.6rem 0 0.2rem;
  font-weight: 700;
}
.hero .tagline {
  color: var(--md-default-fg-color--light);
  font-size: 1.05rem;
  margin: 0;
}

/* Screenshot gallery — phone shots in a responsive row. */
.shots {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.6rem 0;
}
.shots figure {
  margin: 0;
  flex: 1 1 0;
  max-width: 150px;
}
/* Landscape tablet shots get room; on narrow screens the row may wrap. */
.shots figure.wide {
  flex: 2 1 0;
  max-width: 420px;
}
.shots img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #222;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
.shots figcaption {
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Tables span the text column, like every other block.
 *
 * Material sizes a table to its content: `.md-typeset__table` is an
 * `inline-block`, so a table with short cells ends up narrower than the
 * paragraph above it — and narrower than the next table on the same page.
 * On the Free & Pro page that read as three different measures stacked on
 * top of each other, which is the worst possible look for tables the eye is
 * meant to compare.
 *
 * Scrolling is NOT affected: Material puts `overflow-x: auto` on the
 * separate `.md-typeset__scrollwrap` around this element, so a genuinely
 * wide table still scrolls inside itself on a phone. Only the resting width
 * changes here, and the horizontal padding Material sets is left alone so
 * the table keeps aligning with the text column.
 *
 * The bare-`table` rule below covers the moment before Material's script
 * has wrapped the table (the wrappers are added at runtime, not by the
 * Markdown build), so the page does not reflow visibly on load.
 */
.md-typeset__table {
  display: block;
  width: 100%;
}

.md-typeset__table > table {
  width: 100%;
}

.md-typeset > table:not([class]) {
  width: 100%;
}
