/* Latebrake documentation — original, asset-light design. */
:root {
  --lb-red: #ef4444;
  --lb-red-hot: #fb654a;
  --lb-ink: #0b0d11;
  --lb-line: rgba(160, 170, 185, .22);
  --lb-surface: rgba(132, 146, 165, .065);
  --lb-text-muted: #94a3b8;
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0b0d11;
  --md-default-fg-color: #ecf1f8;
  --md-primary-fg-color: #101318;
  --md-primary-bg-color: #fff;
  --md-accent-fg-color: #fb654a;
  --md-typeset-a-color: #ff7362;
  --md-code-bg-color: #171b23;
}
[data-md-color-scheme="default"] {
  --lb-text-muted: #505968;
  --lb-line: rgba(25, 35, 55, .16);
  --lb-surface: rgba(45, 55, 70, .04);
  --md-accent-fg-color: #b52829;
  --md-typeset-a-color: #b52829;
}
.md-header, .md-tabs { box-shadow: none; }
.md-tabs__link { font-weight: 600; }
.md-content__inner { padding-bottom: 3rem; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { font-weight: 750; letter-spacing: -.035em; }
.md-typeset h2 { margin-top: 2.4rem; }
.md-typeset a:focus-visible, .lb-button:focus-visible, .lb-card:focus-visible {
  outline: 3px solid #fb654a; outline-offset: 4px;
}
.md-typeset .lb-hero {
  overflow: hidden; position: relative; isolation: isolate;
  margin: .1rem 0 1.5rem; padding: clamp(1.65rem, 5vw, 3.7rem);
  border: 1px solid rgba(251, 101, 74, .24); border-radius: 1.1rem;
  color: #fff; background:
    radial-gradient(ellipse at 85% 10%, rgba(239,68,68,.28) 0, transparent 45%),
    radial-gradient(ellipse at 20% 110%, rgba(77,95,125,.22) 0, transparent 50%),
    linear-gradient(150deg, #171b22, #090b0f 65%);
}
.md-typeset .lb-hero::before {
  content: ""; display: block; position: absolute; z-index: -1;
  width: 78%; height: 96%; top: -18%; right: -17%;
  opacity: .15; transform: rotate(-25deg);
  background: repeating-linear-gradient(90deg, #f1f4fa 0 2px, transparent 2px 35px);
  mask-image: linear-gradient(to left, #000, transparent);
}
.md-typeset .lb-eyebrow {
  color: #f5aaa2; font-size: .69rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
}
.md-typeset .lb-hero h1 {
  color: #fff; margin: .75rem 0 .85rem; max-width: 15ch;
  font-size: clamp(2.8rem, 7.2vw, 5rem); line-height: 1.02;
  letter-spacing: -.07em; font-weight: 850;
}
.md-typeset .lb-hero h1 span { color: var(--lb-red-hot); }
.md-typeset .lb-hero > p { color: #cbd4df; font-size: .94rem; line-height: 1.7; max-width: 44rem; }
.lb-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.7rem 0 2.25rem; }
.md-typeset a.lb-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .67rem 1.1rem; border-radius: .4rem; font-size: .75rem;
  font-weight: 800; text-decoration: none; transition: transform .18s, background .18s;
}
.md-typeset a.lb-button:hover { transform: translateY(-2px); }
.md-typeset a.lb-button-primary { background: var(--lb-red-hot); color: #101114; }
.md-typeset a.lb-button-primary:hover { background: #ff8370; }
.md-typeset a.lb-button-secondary { color: #f3f6fa; background: #252c38; border: 1px solid #3d4757; }
.md-typeset a.lb-button-secondary:hover { background: #35404f; }
.lb-hero-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; border-top: 1px solid rgba(255,255,255,.17); padding-top: 1.5rem; }
.lb-hero-grid > div { min-width:0; }
.md-typeset .lb-hero-grid b { display:block; color:#fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.md-typeset .lb-hero-grid span { color: #a6b3c5; display:block; font-size: .65rem; margin-top: .2rem; }
.md-typeset .lb-status-panel {
  margin: 1.3rem 0 2rem; padding: 1.2rem 1.45rem;
  background: var(--lb-surface); border: 1px solid var(--lb-line);
  border-left: 4px solid var(--lb-red-hot); border-radius: .6rem;
}
.md-typeset .lb-status-panel .lb-status-title { font-size: .92rem; font-weight: 800; letter-spacing: -.02em; }
.md-typeset .lb-status-panel p { margin: .45rem 0 .5rem; font-size: .76rem; line-height: 1.8; }
.md-typeset .lb-status-panel > a { font-weight: 800; font-size: .76rem; }
.lb-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem; margin: 1.2rem 0 2rem; }
.md-typeset a.lb-card {
  display: flex; flex-direction: column; padding: 1.35rem;
  color: var(--md-default-fg-color); text-decoration: none;
  border:1px solid var(--lb-line); border-radius:.7rem;
  background: var(--lb-surface); transition: border-color .2s, transform .2s, background .2s;
}
.md-typeset a.lb-card:hover { border-color: var(--lb-red-hot); transform: translateY(-3px); background: rgba(240,100,78,.06); }
.md-typeset .lb-card-label { color:var(--md-typeset-a-color); text-transform:uppercase; font-weight:800; font-size:.61rem; letter-spacing:.13em; margin-bottom:1.2rem; }
.md-typeset .lb-card strong { font-size:1.14rem; font-weight:800; letter-spacing:-.04em; }
.md-typeset .lb-card p { flex:1; font-size:.73rem; line-height:1.75; color:var(--lb-text-muted); margin:.65rem 0 1.4rem; }
.md-typeset .lb-card > span:last-child { font-weight:800; font-size:.7rem; color: var(--md-typeset-a-color); }
.md-typeset .lb-text-link { font-weight: 700; }
.md-typeset table:not([class]) { border-radius: .35rem; overflow: hidden; }
.md-typeset table:not([class]) th { background: var(--lb-surface); }
@media (max-width: 700px) {
  .lb-hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 1.1rem; }
  .lb-card-grid { grid-template-columns: 1fr; }
  .md-typeset .lb-hero h1 { font-size: 2.8rem; }
  .md-typeset .lb-hero { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .md-typeset a.lb-button, .md-typeset a.lb-card { transition:none; }
  .md-typeset a.lb-button:hover, .md-typeset a.lb-card:hover { transform:none; }
}
