/* The front page, and the bar every page shares. The colours are the window's
 * (gui/App.axaml): one violet light from the top, on the window's own ground. */
:root {
  --h-ground: #ffffff; --h-raised: #f6f8fa; --h-ink: #11151c; --h-muted: #4f5866;
  --h-line: #dde2e9; --h-accent: #3e3ba8; --h-accent-2: #7a5cff; --h-on: #ffffff;
  --h-glow: rgba(62, 59, 168, 0.16);
  --h-ok: #1b7a46; --h-warn: #8a5d10; --h-bad: #ae2a20; --h-none: #5b6472;
}
[data-md-color-scheme="slate"] {
  --h-ground: #0b0e13; --h-raised: #141922; --h-ink: #e7ebf1; --h-muted: #98a2b0;
  --h-line: #252c38; --h-accent: #a6a2ff; --h-accent-2: #6f8dff; --h-on: #141024;
  --h-glow: rgba(122, 110, 255, 0.30);
  --h-ok: #4fc489; --h-warn: #dca84c; --h-bad: #f3736a; --h-none: #98a2b0;
}

/* ---- the bar, on every page: the page's ground rather than a slab ---- */
.md-header, .md-tabs {
  background-color: color-mix(in srgb, var(--h-ground) 86%, transparent);
  color: var(--h-ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.md-header { box-shadow: none; }
.md-header--shadow, .md-tabs { box-shadow: inset 0 -1px var(--h-line); }
.md-header__title { font-weight: 700; letter-spacing: -0.01em; }
.md-header__button.md-logo img { border-radius: 6px; }
.md-tabs__link { opacity: 1; color: var(--h-muted); }
.md-tabs__item--active .md-tabs__link, .md-tabs__link:hover, .md-tabs__link:focus { color: var(--h-accent); }
.md-search__input::placeholder, .md-search__input + .md-search__icon { color: var(--h-muted); }
[data-md-color-scheme="default"] .md-search__form { background-color: #eef1f5; }
[data-md-color-scheme="default"] .md-search__form:hover { background-color: #e4e8ee; }
.md-search__input { color: var(--h-ink); }
[data-md-color-scheme="slate"] .md-sidebar { background-color: transparent; }
.md-typeset h1 { color: var(--h-ink); font-weight: 700; letter-spacing: -0.025em; }
.md-typeset h2 { font-weight: 650; letter-spacing: -0.015em; }

/* ---- the front page ---- */
.home { color: var(--h-ink); font-size: 17px; line-height: 1.6; overflow-x: clip; }
.home *, .home *::before { box-sizing: border-box; }
.home a { color: inherit; text-decoration: none; }
.home img { display: block; max-width: 100%; height: auto; }
.home .h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.home section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 60px; }
.home .h-band { background: var(--h-raised); border-block: 1px solid var(--h-line); }
.home h1, .home h2, .home h3, .home p, .home dl, .home dd, .home dt { margin: 0; }
.home h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.03; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.home h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
.home h3 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.home em { font-style: normal; background: linear-gradient(110deg, var(--h-accent), var(--h-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home p { color: var(--h-muted); }
.h-hero { text-align: center; background: radial-gradient(ellipse 60% 520px at 50% 0, var(--h-glow), transparent); }
.home .h-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); }
.h-pill { display: inline-flex; gap: 10px; align-items: center; padding: 5px 14px 5px 6px; margin-bottom: 26px; border: 1px solid var(--h-line); border-radius: 999px; font-size: 14px; background: var(--h-ground); }
.home .h-pill span { color: var(--h-muted); }
.home .h-pill b { padding: 2px 10px; border-radius: 999px; background: var(--h-accent); color: var(--h-on); font-size: 13px; }
.home .h-lede { max-width: 700px; margin: 24px auto 32px; font-size: clamp(18px, 2vw, 21px); }
.h-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.home .h-btn { padding: 13px 24px; border: 1px solid var(--h-line); border-radius: 999px; font-size: 16px; line-height: 1.2; font-weight: 650; background: var(--h-ground); transition: border-color .15s, filter .15s; }
.home .h-btn:hover { border-color: var(--h-accent); }
.home .h-primary { color: var(--h-on); background: var(--h-accent); border-color: transparent; }
.home .h-primary:hover { filter: brightness(1.1); }
.home a:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.home .h-meta { margin-top: 20px; font: 500 14px/1.6 var(--md-code-font-family); }
.home .h-note { max-width: 620px; margin: 8px auto 0; font-size: 15px; }
.h-shot { display: block; min-width: 0; border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; background: var(--h-raised); box-shadow: 0 30px 80px -40px rgba(11, 14, 19, 0.55); }
.home .h-big { max-width: 1040px; margin: clamp(40px, 6vw, 64px) auto 0; }
[data-md-color-scheme="default"] .home img[src$="#only-dark"],
[data-md-color-scheme="slate"] .home img[src$="#only-light"] { display: none; }
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; text-align: left; border: 1px solid var(--h-line); border-radius: 12px; background: var(--h-ground); overflow: hidden; }
.home .h-stats { margin-top: clamp(36px, 5vw, 56px); }
.h-stats > div { padding: 22px 24px; display: flex; flex-direction: column; }
.h-stats > div + div { border-left: 1px solid var(--h-line); }
.h-stats dd { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.home .h-stats dt { color: var(--h-muted); font-size: 15px; font-weight: 400; }
.home .h-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.home .h-head p { margin-top: 12px; font-size: 19px; }
.h-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.h-step + .h-step { margin-top: clamp(40px, 6vw, 76px); }
.home .h-step h3 { font-size: 26px; letter-spacing: -0.02em; }
.home .h-step p { margin-top: 12px; }
.h-n { display: block; margin-bottom: 10px; font: 600 15px/1 var(--md-code-font-family); color: var(--h-accent); }
.home .h-more { display: inline-block; margin-top: 14px; color: var(--h-accent); font-weight: 600; font-size: 16px; }
.home .h-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-says, .h-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-card { display: block; min-width: 0; padding: 24px; border: 1px solid var(--h-line); border-radius: 12px; background: var(--h-ground); }
.home .h-card p { margin-top: 8px; font-size: 16px; }
.home a.h-card { transition: border-color .15s; }
.home a.h-card:hover { border-color: var(--h-accent); }
.home .h-card code { display: block; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--h-accent); overflow-wrap: anywhere; background: none; }
.h-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.h-ok { --c: var(--h-ok); } .h-warn { --c: var(--h-warn); } .h-bad { --c: var(--h-bad); } .h-none { --c: var(--h-none); }
.home .h-foot { max-width: 820px; margin-top: 28px; font-size: 16px; }
.home .h-foot a { color: var(--h-accent); font-weight: 600; }
/* a part of the window near enough to read, where the whole is shown above */
.h-near { aspect-ratio: 395 / 247; }
.home .h-near img { width: 253%; max-width: none; margin: -41.8% 0 0 -149.4%; }
/* the words under the sections line up with them, and the page has one title */
.md-container:has(.home) .md-main__inner { max-width: 1160px; padding: 0 clamp(0px, 2vw, 24px); margin-top: 0; }
.md-container:has(.home) .md-content__inner > h1 { display: none; }
@media (max-width: 900px) {
  .h-step { grid-template-columns: minmax(0, 1fr); }
  .h-grid, .h-says, .h-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .h-stats { grid-template-columns: repeat(2, 1fr); }
  .h-stats > div { padding: 16px; }
  .h-stats > div:nth-child(odd) { border-left: 0; }
  .h-stats > div:nth-child(n+3) { border-top: 1px solid var(--h-line); }
  .h-grid, .h-says, .h-dl { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .home * { transition: none !important; } }

/* ---- search: both languages are in one index, and somebody reading in one
 * got the other's pages first. The count above the list is of both, so it
 * goes with them. ---- */
html[lang="en"] .md-search-result__item:has(> a[href*="/tr/"]),
html[lang="tr"] .md-search-result__item:not(:has(> a[href*="/tr/"])) { display: none; }
.md-search-result__list:not(:empty) { margin-top: 0; }
.md-search-result__meta:has(+ .md-search-result__list:not(:empty)) { display: none; }
