@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
}

body, h1, h2, h3, h4, h5 {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.6;
}

.w3-main {
  margin-left: 340px;
  margin-right: 40px;
  max-width: 980px;
}

@media (max-width: 992px) {
  .w3-main { margin-left: 16px; margin-right: 16px; }
}

.section { margin-top: 64px; }

.rule { width: 50px; border: 5px solid #f44336; }

.lead { font-size: 1.15em; }

.updated { color: #666; font-size: 0.9em; }

pre {
  background: #1e1e1e;
  color: #f1f1f1;
  padding: 16px;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

p code, li code, td code {
  background: #f1f1f1;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
}

.embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  border: 1px solid #ccc;
  margin: 8px 0;
}

.embed.video { aspect-ratio: 16 / 9; }

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.table-wrap { overflow-x: auto; }

table.w3-table-all td, table.w3-table-all th { vertical-align: top; }

details { margin: 8px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

.w3-bar-block .w3-bar-item[aria-current="page"] { background: #fff; color: #f44336 !important; }

@media (max-width: 600px) {
  h1.w3-xxxlarge { font-size: 34px !important; }
  h2.w3-xxlarge { font-size: 26px !important; }
}
