/* =========================
   dotrise premium polish
   ========================= */

/* Wider content, but still readable */
.md-grid {
  max-width: 1180px;
}

/* Typography */
.md-typeset {
  line-height: 1.7;
  font-size: 0.98rem;
}

.md-typeset h1 {
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 0.6em;
}

.md-typeset h2 {
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-top: 2em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid rgba(127,127,127,0.18);
}

.md-typeset h3 {
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-top: 1.6em;
}

.md-typeset p {
  margin: 0.75em 0;
}

/* Links: subtle emphasis */
.md-typeset a {
  text-underline-offset: 2px;
  font-weight: 550;
}

/* Code (inline) */
.md-typeset code {
  font-size: 0.92em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  border: 1px solid rgba(127,127,127,0.18);
}

/* Code blocks */
.md-typeset pre {
  border-radius: 12px;
  border: 1px solid rgba(127,127,127,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}

.md-typeset pre code {
  font-size: 0.9em;
  line-height: 1.55;
}

/* Admonitions: nicer spacing + rounded */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 12px;
  border: 1px solid rgba(127,127,127,0.18);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Tables: clean */
.md-typeset table:not([class]) {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(127,127,127,0.18);
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  border-bottom: 1px solid rgba(127,127,127,0.12);
}

/* Horizontal rules */
.md-typeset hr {
  margin: 2.2em 0;
  opacity: 0.25;
}

/* YouTube embeds */
.md-typeset iframe {
  width: 100%;
  border: 1px solid rgba(127,127,127,0.18);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
}

/* Optional "cards" layout for pages that want it:
   Use this HTML in markdown:
   <div class="grid cards">
     <a class="card" href="..."><strong>Title</strong><br/>Text...</a>
   </div>
*/
.grid.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  margin: 1.2em 0 1.6em;
}

.grid.cards .card {
  grid-column: span 6;
  display: block;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(127,127,127,0.18);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  text-decoration: none;
}

@media (max-width: 900px) {
  .grid.cards .card { grid-column: span 12; }
}

/* Footer: slightly cleaner */
.md-footer-meta__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ===== Brand styling ===== */

.md-header__title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Slight emphasis like dev tools */
.md-header__button.md-logo {
  display: none; /* remove empty logo space if no image */
}

