/* ------------------------------------------------------------------
   Mikeyverse share pack — presentation polish
   Keeps Material's defaults; adds reading-comfort and feedback UI.
   ------------------------------------------------------------------ */

:root {
  --mv-feedback-bg: color-mix(in srgb, var(--md-primary-fg-color) 8%, transparent);
  --mv-feedback-border: color-mix(in srgb, var(--md-primary-fg-color) 30%, transparent);
}

/* ---------- Reading comfort ---------- */

/* Slightly wider measure than Material's default on large screens. */
@media screen and (min-width: 76.25em) {
  .md-grid {
    max-width: 68rem;
  }
}

/* Tables are dense in these documents — give them room and let them scroll. */
.md-typeset table:not([class]) {
  font-size: 0.74rem;
  display: table;
  width: 100%;
}

.md-typeset .md-typeset__table {
  overflow-x: auto;
}

.md-typeset table:not([class]) th {
  white-space: nowrap;
  font-weight: 600;
}

/* Long tables shouldn't break the layout on mobile. */
@media screen and (max-width: 44.9375em) {
  .md-typeset table:not([class]) {
    font-size: 0.7rem;
  }
}

/* Blockquotes carry a lot of the argument in these docs — make them read well. */
.md-typeset blockquote {
  border-left-width: 3px;
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
}

/* Mermaid diagrams: centre and give breathing room. */
.md-typeset .mermaid {
  text-align: center;
  margin: 1.5rem 0;
}

/* Code blocks in the docs are mostly file paths and pseudocode — soft edge. */
.md-typeset pre > code {
  font-size: 0.72rem;
}

/* Horizontal rules separate major sections; make them visible but calm. */
.md-typeset hr {
  margin: 2rem 0;
  border-bottom-color: var(--md-default-fg-color--lightest);
}

/* ---------- Feedback block ---------- */

.mv-feedback {
  margin: 3rem 0 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--mv-feedback-border);
  border-radius: 0.4rem;
  background: var(--mv-feedback-bg);
}

.mv-feedback__title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.mv-feedback__text {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

.mv-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mv-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.25rem;
  border: 1px solid var(--mv-feedback-border);
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.mv-feedback__btn:hover,
.mv-feedback__btn:focus-visible {
  background: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  text-decoration: none;
}

.mv-feedback__btn--primary {
  background: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.mv-feedback__btn--primary:hover,
.mv-feedback__btn--primary:focus-visible {
  filter: brightness(1.1);
}

/* Copied state */
.mv-feedback__btn[data-copied="true"] {
  background: #1a7f37;
  border-color: #1a7f37;
  color: #fff;
}

/* ---------- Home page tweaks ---------- */

/* The pack index tables shouldn't dominate the landing page. */
.md-typeset h1 + p + hr {
  margin-top: 1.25rem;
}

/* ---------- Print ---------- */

@media print {
  .mv-feedback,
  .md-sidebar,
  .md-header,
  .md-footer {
    display: none !important;
  }

  .md-content {
    max-width: none;
  }
}
