/* docs.nucliflare.com: wygląd zgodny ze stroną firmową ewt.tech.
   Źródło systemu: ewt-tech/src/styles/site.css (tokeny na początku pliku) i README ewt.tech, sekcja „Szata graficzna”.
   Tokeny: ink #00000C, blue #0472B9 (linki i akcenty), blue-dark #035A93, cyan #00B9D4 (tylko wypełnienia i ramki),
   raised #F2F4F6, tint #E6F7FA, line #C9D0D6, line-strong #77838F, muted #4A5561. Krój HK Grotesk 400/500/700/900. Płasko.
   Jednostki: Material ustawia 1rem = 20 px (ewt.tech: 16 px), więc wartości z ewt.tech są tu mnożone przez 0,8. */

@font-face { font-family: "HK Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/HKGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "HK Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/HKGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "HK Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/HKGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family: "HK Grotesk"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("../fonts/HKGrotesk-Black.woff2") format("woff2"); }

:root {
  --ink: #00000C;
  --blue: #0472B9;
  --blue-dark: #035A93;
  --cyan: #00B9D4;
  --raised: #F2F4F6;
  --tint: #E6F7FA;
  --line: #C9D0D6;
  --line-strong: #77838F;
  --muted: #4A5561;
  --r: .4rem;                       /* 0,5 rem na ewt.tech */
  --md-text-font: "HK Grotesk";
  --md-code-font: "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
}

[data-md-color-scheme="ewt"] {
  --md-primary-fg-color: #FFFFFF;
  --md-primary-fg-color--light: #FFFFFF;
  --md-primary-fg-color--dark: var(--raised);
  --md-primary-bg-color: var(--ink);
  --md-primary-bg-color--light: var(--muted);
  --md-accent-fg-color: var(--blue);
  --md-accent-fg-color--transparent: rgba(4, 114, 185, .08);
  --md-default-fg-color: var(--ink);
  --md-default-fg-color--light: var(--muted);
  --md-default-fg-color--lighter: var(--line-strong);
  --md-default-fg-color--lightest: var(--line);
  --md-default-bg-color: #FFFFFF;
  --md-typeset-color: var(--ink);
  --md-typeset-a-color: var(--blue);
  --md-code-bg-color: var(--raised);
  --md-code-fg-color: var(--ink);
  --md-footer-bg-color: var(--raised);
  --md-footer-bg-color--dark: var(--raised);
  --md-footer-fg-color: var(--ink);
  --md-footer-fg-color--light: var(--muted);
  --md-footer-fg-color--lighter: var(--line-strong);
  --md-typeset-table-color: var(--line);
  --md-admonition-bg-color: var(--tint);
}

body, input { font-feature-settings: "kern", "liga"; }
a:focus-visible, button:focus-visible, label:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ---------- pasek marki (jak na ewt.tech i w materiałach drukowanych) ---------- */
.ewt-band { display: grid; grid-template-columns: 17% 17% 10% 1fr; gap: 1.7%; height: 12px; background: #FFFFFF; }
.ewt-band span:nth-child(1) { background: var(--tint); border-radius: 0 0 6px 6px; }
.ewt-band span:nth-child(2) { background: var(--cyan); border-radius: 0 0 9px 9px; }
.ewt-band span:nth-child(3) { background: var(--blue); height: 9px; }
.ewt-band span:nth-child(4) { background: var(--ink); height: 9px; }

/* ---------- nagłówek ---------- */
.md-header.ewt-head { position: relative; background: #FFFFFF; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: none; }
.ewt-head .md-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 3.68rem; padding: 0 .8rem; }
.ewt-head .md-header__button { margin: 0; padding: 0; }
.ewt-head .md-header__button.md-logo { display: block; padding: 0; margin: 0; }
.ewt-head .md-header__button.md-logo img, .ewt-head .md-header__button.md-logo svg { width: 8.4rem; height: auto; }
.ewt-site { padding-left: 1.12rem; border-left: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .76rem;
  line-height: 1.25; text-decoration: none; white-space: nowrap; }
.ewt-site:hover { color: var(--blue); }
.ewt-nav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.ewt-nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .76rem; }
.ewt-nav a:hover, .ewt-nav a[aria-current="page"] { color: var(--blue); }
.ewt-nav .ext { color: var(--blue); }
.ewt-lang { display: flex; align-items: center; gap: .28rem; font-size: .7rem; color: var(--line-strong); }
.ewt-lang a { color: var(--muted); text-decoration: none; padding: .24rem .08rem; }
.ewt-lang a:hover { color: var(--blue); }
.ewt-lang a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: .35em; }
.ewt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.2rem; padding: .52rem .88rem;
  border-radius: .28rem; border: 1.5px solid var(--ink); background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: .76rem;
  text-decoration: none; white-space: nowrap; }
.ewt-btn:hover { background: #1D2733; color: #FFFFFF; }
.ewt-head .ewt-menu { display: none; color: var(--ink); }
/* wyszukiwarka: jasne pole w kolorze tła „raised” */
.ewt-head .md-search { padding: 0; }
.ewt-head .md-search__form { background: var(--raised); border-radius: .28rem; box-shadow: none; }
.ewt-head .md-search__form:hover { background: #E8ECEF; }
.ewt-head .md-search__input { color: var(--ink); font-size: .72rem; }
.ewt-head .md-search__input::placeholder { color: var(--muted); }
.ewt-head .md-search__icon { color: var(--muted); }
.ewt-head .ewt-search-btn { color: var(--ink); }

/* repozytorium nlab na GitHubie: nazwa, wersja, gwiazdki, forki (dane pobiera Material z API GitHuba) */
.ewt-head .ewt-source { width: 10.6rem; flex: none; margin: 0; color: var(--ink); }
.ewt-head .md-source { color: var(--ink); font-size: .62rem; }
.ewt-head .md-source:hover { opacity: 1; color: var(--blue); }
.ewt-head .md-source__icon { width: 1.6rem; margin-left: 0; }
.ewt-head .md-source__icon svg { margin-left: 0; }
.ewt-head .md-source__icon + .md-source__repository { margin-left: -1.6rem; padding-left: 1.75rem; }
.ewt-head .md-source__facts { color: var(--muted); }

/* ---------- typografia treści ---------- */
.md-main__inner { margin-top: 1.4rem; }
.md-typeset { font-size: .8rem; line-height: 1.55; color: var(--ink); }
.md-typeset h1 { font-weight: 900; color: var(--ink); letter-spacing: -.01em; line-height: 1.08;
  font-size: clamp(1.36rem, 3vw, 1.92rem); margin: 0 0 1rem; text-wrap: balance; }
.md-typeset h2 { font-weight: 700; color: var(--ink); line-height: 1.2; font-size: clamp(1.16rem, 2.2vw, 1.48rem);
  margin: 2.2rem 0 .8rem; padding-top: 1.9rem; border-top: 1px solid var(--line); text-wrap: balance; }
.md-typeset h3 { font-weight: 700; color: var(--ink); font-size: .86rem; line-height: 1.3; margin: 1.6em 0 .6em; }
.md-typeset h4 { font-weight: 700; color: var(--muted); }
.md-typeset a { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.md-typeset a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
.md-typeset .headerlink { text-decoration: none; }
.md-typeset p, .md-typeset ul, .md-typeset ol { max-width: 70ch; }
.md-typeset ul { list-style-type: square; }
.md-typeset ul li::marker { color: var(--cyan); }
.md-typeset ol li::marker { color: var(--blue); font-weight: 700; }
.md-typeset .kicker { color: var(--blue); font-weight: 700; font-size: .69rem; letter-spacing: .01em; margin: 0 0 .72rem; }
.md-typeset .lead { font-size: clamp(.84rem, 1.3vw, .94rem); line-height: 1.55; color: var(--ink); max-width: 62ch; margin: .9rem 0 0; }
.md-typeset .muted { color: var(--muted); }
/* strona startowa i strony rodzin: duży tytuł jak w sekcji „hero” ewt.tech */
.md-typeset .kicker + h1 { font-size: clamp(1.68rem, 4.2vw, 2.72rem); max-width: 20ch; }
.md-typeset .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.28rem 0 0; }
.md-typeset .actions > p { display: contents; }
.md-typeset .actions .md-button { margin: 0; }

/* ---------- przyciski (.btn-ink / .btn-line z ewt.tech) ---------- */
.md-typeset .md-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.2rem;
  padding: .52rem .88rem; margin: .2rem .5rem .2rem 0; border-radius: .28rem; border: 1.5px solid var(--ink);
  background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: .76rem; text-decoration: none; transition: none; }
.md-typeset .md-button:hover, .md-typeset .md-button:focus { background: var(--raised); border-color: var(--ink); color: var(--ink); }
.md-typeset .md-button--primary { background: var(--ink); color: #FFFFFF; }
.md-typeset .md-button--primary:hover, .md-typeset .md-button--primary:focus { background: #1D2733; border-color: #1D2733; color: #FFFFFF; }

/* ---------- tabele (.data z ewt.tech) ---------- */
.md-typeset table:not([class]) { border: 0; border-radius: 0; box-shadow: none; font-size: .744rem; border-collapse: collapse; }
.md-typeset table:not([class]) th { background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: .68rem;
  border-bottom: 1.5px solid var(--ink); }
.md-typeset table:not([class]) td { border-top: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th { padding: .44rem .9rem .44rem 0; }
.md-typeset table:not([class]) tr:hover td { background: var(--raised); }
.md-typeset table:not([class]) td:first-child { font-weight: 700; }
.md-typeset .spec .md-typeset__table { display: block; width: 100%; }
.md-typeset .spec .md-typeset__table table:not([class]) { display: table; width: 100%; }
.md-typeset .spec table:not([class]) td:first-child { width: 34%; }

/* ---------- ramki (.callout z ewt.tech) ---------- */
.md-typeset .admonition, .md-typeset details { border: 0; border-left: 3px solid var(--cyan); border-radius: 0 var(--r) var(--r) 0;
  box-shadow: none; font-size: .76rem; background: var(--tint); }
.md-typeset .admonition.warning, .md-typeset .admonition.danger, .md-typeset details.warning { border-left-color: var(--ink); background: var(--raised); }
.md-typeset .admonition-title, .md-typeset summary { background: transparent !important; font-weight: 700; border: 0; }
.md-typeset .admonition-title::before, .md-typeset summary::before { background-color: var(--blue) !important; }
.md-typeset .admonition.warning > .admonition-title::before, .md-typeset .admonition.danger > .admonition-title::before { background-color: var(--ink) !important; }

/* ---------- kod ---------- */
.md-typeset code { border-radius: .2rem; }
.md-typeset pre > code { border-left: 3px solid var(--line); }

/* ---------- zdjęcia ---------- */
.md-typeset figure { margin: 1.2rem auto; }
.md-typeset img { border-radius: var(--r); }
.md-typeset figure img { border: 0; background: var(--raised); }
.md-typeset figcaption { color: var(--muted); font-size: .68rem; max-width: 64ch; }
.md-typeset img.plain { border: 0; width: 100%; border-radius: 0; }

/* ---------- liczby (.facts z ewt.tech) ---------- */
.md-typeset .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); margin: 1.4rem 0 1.6rem;
  border-block: 1px solid var(--line); }
.md-typeset .kpis > div { padding: .9rem 1rem 1rem; border-left: 1px solid var(--line); }
.md-typeset .kpis > div:first-child { border-left: 0; padding-left: 0; }
.md-typeset .kpis b { display: block; font-weight: 900; font-size: clamp(1.15rem, 2.2vw, 1.6rem); white-space: nowrap; line-height: 1.1; color: var(--ink); }
.md-typeset .kpis span { display: block; color: var(--muted); font-size: .7rem; margin-top: .28rem; line-height: 1.45; }

/* ---------- kafle opisowe i odnośniki (.box / .benefit z ewt.tech) ---------- */
.md-typeset .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .96rem; margin: 1.1rem 0 1.6rem; }
.md-typeset .cards > p { display: contents; }
.md-typeset .cards > a, .md-typeset .cards > p > a, .md-typeset .cards > div {
  display: flex; flex-direction: column; gap: .3rem; background: var(--raised); border-radius: var(--r); padding: 1rem 1.04rem 1.1rem;
  color: var(--ink); text-decoration: none; }
.md-typeset .cards > a, .md-typeset .cards > p > a { border-top: 3px solid var(--cyan); border-radius: 0 0 var(--r) var(--r); }
.md-typeset .cards > a:hover, .md-typeset .cards > p > a:hover { background: #E8ECEF; color: var(--ink); text-decoration: none; }
.md-typeset .cards > a:hover strong, .md-typeset .cards > p > a:hover strong { color: var(--blue); }
.md-typeset .cards strong { display: block; font-weight: 700; font-size: .86rem; line-height: 1.3; }
.md-typeset .cards span { display: block; color: var(--muted); font-size: .74rem; line-height: 1.55; }

/* znacznik (.status z ewt.tech) */
.md-typeset .tag { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 700; font-size: .62rem; line-height: 1;
  padding: .3rem .48rem; border-radius: .24rem; border: 1.5px solid var(--blue); color: var(--blue); background: #FFFFFF; margin-bottom: .6rem; }

/* ---------- wyróżniony produkt (układ .split z ewt.tech) ---------- */
.md-typeset .product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  margin: 1.1rem 0 1.6rem; }
.md-typeset .product img { width: 100%; display: block; background: var(--raised); }
.md-typeset .product .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-typeset .product .kpis b { font-size: clamp(1rem, 1.7vw, 1.3rem); }
.md-typeset .product h3 { margin-top: 0; font-weight: 900; font-size: clamp(1.16rem, 2.2vw, 1.48rem); line-height: 1.15; }
@media screen and (max-width: 44.9375em) { .md-typeset .product { grid-template-columns: 1fr; } }

/* ---------- kafle rodzin, generacji i produktów ---------- */
.md-typeset .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .96rem; margin: 1.1rem 0 2rem; }
.md-typeset .tiles > p { display: contents; }
.md-typeset .tiles a { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: #FFFFFF; color: var(--ink); text-decoration: none; }
.md-typeset .tiles a:hover, .md-typeset .tiles a:focus-visible { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.md-typeset .tiles a:hover strong { color: var(--blue); }
.md-typeset .tiles img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 0; border-radius: 0;
  border-bottom: 3px solid var(--cyan); background: var(--raised); }
.md-typeset .tiles small { display: block; padding: 1rem 1.04rem 0; font-size: .69rem; font-weight: 700; color: var(--blue); }
.md-typeset .tiles strong { display: block; padding: .3rem 1.04rem 0; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.md-typeset .tiles span { display: block; flex: 1; padding: .4rem 1.04rem 0; font-size: .74rem; line-height: 1.55; color: var(--muted); }
.md-typeset .tiles em { display: block; padding: .9rem 1.04rem 1.04rem; font-style: normal; font-weight: 700; font-size: .76rem; color: var(--blue); }
.md-typeset .tiles em::after { content: " →"; }
.md-typeset .tiles a:hover em { text-decoration: underline; }
/* pojedynczy kafel: zdjęcie po lewej, opis po prawej */
@media screen and (min-width: 45em) {
  .md-typeset .tiles:has(> p > a:only-child), .md-typeset .tiles:has(> a:only-child) { grid-template-columns: 1fr; }
  .md-typeset .tiles a:only-child { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr auto; align-content: start; }
  .md-typeset .tiles a:only-child img { grid-row: 1 / span 4; height: 100%; aspect-ratio: auto; min-height: 15rem;
    border-bottom: 0; border-right: 3px solid var(--cyan); }
  .md-typeset .tiles a:only-child small { padding: 1.6rem 1.8rem 0; }
  .md-typeset .tiles a:only-child strong { padding: .4rem 1.8rem 0; font-size: clamp(1.16rem, 2.2vw, 1.48rem); line-height: 1.2; }
  .md-typeset .tiles a:only-child span { padding: .7rem 1.8rem 0; font-size: .8rem; max-width: 52ch; }
  .md-typeset .tiles a:only-child em { padding: 1rem 1.8rem 1.6rem; }
}

/* ---------- nawigacja boczna i spis treści ---------- */
.md-nav { font-size: .7rem; }
.md-nav__title { font-weight: 700; color: var(--ink); }
.md-nav__link { color: var(--ink); }
.md-nav__link:hover, .md-nav__link:focus { color: var(--blue); }
.md-nav__link--active, .md-nav__item .md-nav__link--active { color: var(--blue); font-weight: 700; }
.md-nav--secondary .md-nav__title { color: var(--muted); }
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__link { font-weight: 700; }

/* ---------- ścieżka (.crumbs z ewt.tech: „Strona główna / Zastosowania”) ---------- */
.md-path { font-size: .7rem; color: var(--muted); margin: 0 0 1rem; }
.md-path__link { color: var(--muted); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.md-path__link:hover { color: var(--blue); }
.md-path__item:not(:first-child) { margin-left: .3rem; padding-left: 0; }
.md-path__item:not(:first-child)::before { content: "/"; position: static; display: inline; width: auto; height: auto;
  -webkit-mask-image: none; mask-image: none; background: none; color: var(--line-strong); margin: 0 .3rem 0 0; }

/* ---------- stopka (.site-foot z ewt.tech) ---------- */
.md-footer.ewt-foot { background: var(--raised); color: var(--ink); border-top: 1px solid var(--line); }
.ewt-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem .8rem; border-bottom: 1px solid var(--line); }
.ewt-pager[hidden] { display: none; }
.ewt-pager a { display: flex; flex-direction: column; gap: .1rem; color: var(--ink); text-decoration: none; padding: .4rem 0; }
.ewt-pager a span { color: var(--muted); font-size: .66rem; }
.ewt-pager a strong { font-size: .8rem; font-weight: 700; }
.ewt-pager a:hover strong { color: var(--blue); text-decoration: underline; }
.ewt-pager__next { text-align: right; grid-column: 2; }
.ewt-foot__body { font-size: .72rem; }
.ewt-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.6rem; padding: 1.92rem .8rem 1.28rem; }
.ewt-foot__logo { width: 7.6rem; height: auto; margin-bottom: .8rem; display: block; }
.ewt-foot p { color: var(--muted); line-height: 1.6; margin: 0; }
.ewt-foot p + p { margin-top: .56rem; }
.ewt-foot h2 { font-size: .76rem; font-weight: 700; margin: 0 0 .48rem; color: var(--ink); }
.ewt-foot ul { list-style: none; margin: 0; padding: 0; }
.ewt-foot li + li { margin-top: .28rem; }
.ewt-foot a { color: var(--blue); text-underline-offset: .18em; }
.ewt-foot a:hover { color: var(--blue-dark); }
.ewt-foot__small { color: var(--muted); font-size: .64rem; padding: 0 .8rem 1.12rem; }

/* ---------- elementy tylko na ekranie (usuwane z PDF) ---------- */
.md-typeset .no-print { margin: .2rem 0 1rem; }
@media print { .no-print, .ewt-band { display: none; } }

/* ---------- wąskie ekrany ---------- */
@media screen and (max-width: 76.234375em) {
  .ewt-nav { display: none; }
  .ewt-head .ewt-menu { display: block; }
  .ewt-head .md-header__inner { gap: 1rem; }
  .ewt-head .md-search { margin-left: auto; }
}
@media screen and (max-width: 59.984375em) {
  .ewt-btn { display: none; }
  .ewt-head .md-header__inner { min-height: 3.2rem; }
  .ewt-head .ewt-search-btn { margin-left: auto; }
}
@media screen and (max-width: 44.984375em) {
  .ewt-site { display: none; }
  .ewt-head .md-header__button.md-logo img { width: 6.2rem; }
  .ewt-head .md-header__inner { padding: 0 .6rem; gap: .8rem; }
  .ewt-foot__grid { grid-template-columns: 1fr; }
  .md-typeset .kpis > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media screen and (min-width: 60em) {
  .ewt-head .md-search__inner { width: 8rem; }
  .ewt-head .md-search__inner:has(input:focus) { width: 16rem; }
}
