:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #14283b;
  background: #eaf2f7;
  line-height: 1.55;
  --navy: #123a5f;
  --navy-dark: #0c2942;
  --blue: #1674b8;
  --blue-soft: #dceeff;
  --line: #c8d8e4;
  --paper: #ffffff;
  --shadow: 0 5px 18px rgb(13 55 86 / 10%);
}

* { box-sizing: border-box; }
html { min-width: 300px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #eaf2f7; }
a { color: #075f9d; text-underline-offset: 0.15em; }
a:hover { color: #003e69; }
a:focus-visible,
button:focus-visible { outline: 3px solid #f6b938; outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; color: #082c49; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.product-header {
  background: linear-gradient(125deg, var(--navy-dark), #17638f);
  color: #fff;
  padding: 24px max(18px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 4px solid #5bb5de;
}
.product-header img { width: 64px; height: 64px; flex: 0 0 auto; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 28%)); }
.product-header h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.12; }
.product-header p { margin: 0.35rem 0 0; color: #dceefa; font-size: clamp(0.96rem, 1.4vw, 1.08rem); }

.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgb(13 55 86 / 8%);
  padding: 8px max(18px, calc((100vw - 1320px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.topnav a {
  color: #173d5b;
  text-decoration: none;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 6px;
}
.topnav a:hover { background: #e8f4fc; }
.topnav a[aria-current="page"] { background: var(--navy); color: #fff; }

.layout {
  width: min(100%, 1360px);
  margin: 0;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  transition: grid-template-columns 140ms ease;
}
.side {
  align-self: start;
  position: sticky;
  top: 68px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.side button {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  margin: 0 0 8px;
  border: 1px solid #8aa8bd;
  border-radius: 6px;
  background: #edf6fb;
  color: #133b5b;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.side nav { display: grid; gap: 3px; }
.side a { padding: 7px 9px; border-radius: 5px; text-decoration: none; overflow-wrap: anywhere; }
.side a:hover { background: #e5f3fc; }
.side a[aria-current="page"] { background: var(--blue-soft); color: #0b4b76; font-weight: 700; }
body.nav-collapsed .layout { grid-template-columns: 76px minmax(0, 1fr); }
body.nav-collapsed .side nav { display: none; }
body.nav-collapsed .side button { font-size: 0; padding: 7px 4px; }
body.nav-collapsed .side button::after { content: "Menü"; font-size: 0.86rem; }

.content { min-width: 0; max-width: 1080px; }
.content img { max-width: 100%; height: auto; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: clamp(16px, 2.7vw, 28px);
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
h2 { line-height: 1.22; color: #103b5d; }
h3 { color: #174f75; }
p, li { overflow-wrap: break-word; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr); gap: 24px; align-items: center; }
.hero img,
.screenshot { width: 100%; max-height: 500px; object-fit: contain; border: 1px solid #9bb4c7; border-radius: 9px; background: #f6fafc; }
.eyebrow { margin: 0 0 4px; color: #17638f; font-weight: 750; letter-spacing: 0.035em; text-transform: uppercase; font-size: 0.82rem; }
.badge { display: inline-block; background: var(--blue-soft); color: #0d4d79; border-radius: 999px; padding: 4px 10px; margin: 2px; font-weight: 650; }
.notice { border-left: 5px solid #e3980b; background: #fff8dc; padding: 12px 14px; }
.ok { border-left: 5px solid #17844a; background: #ecfff3; padding: 12px 14px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; }
.download-card { border: 1px solid #bdd1df; border-radius: 9px; padding: 16px; background: #f8fbfd; }
.download-card h3 { margin-top: 0; }
.download-button { display: inline-block; background: #0f6da8; color: #fff; text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 7px; }
.download-button:hover { background: #084f7d; color: #fff; }
.download-meta { font-size: 0.9rem; color: #4d6272; }
.hash { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 0.78rem; }
code { background: #edf3f7; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #edf3f7; padding: 12px; border-radius: 7px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d8e4ec; border-radius: 7px; }
.table-scroll table { min-width: 760px; }
.checklist { padding-left: 1.25rem; }
.checklist li { margin-bottom: 0.5rem; }

table { border-collapse: collapse; width: auto; max-width: none; background: #fff; }
th, td { padding: 2px; border: 1px solid #d8e4ec; text-align: left; vertical-align: top; }
th { background: var(--blue-soft); cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
td[data-type="number"], th[data-type="number"] { text-align: right; }

.site-footer {
  width: min(100%, 1360px);
  margin: 0;
  padding: 10px 22px 34px;
  color: #4f6676;
  font-size: 0.9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 800px) {
  .product-header { padding: 18px; }
  .product-header img { width: 52px; height: 52px; }
  .topnav { position: static; padding: 8px 12px; }
  .layout,
  body.nav-collapsed .layout { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .side { position: static; }
  body.nav-collapsed .side nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .content { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
