:root {
  --bg: #071018; --panel: #0b131d; --panel-2: #172434; --line: #27384a;
  --accent: #58d1ff; --text: #eff7ff; --muted: #94a8bb; --dim: #6f8396; --warn: #f7d072;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(24, 42, 61, 0.4), transparent 42%),
    linear-gradient(180deg, #08111a 0%, #060d14 100%);
  color: var(--text); line-height: 1.75; -webkit-font-smoothing: antialiased; padding-bottom: 48px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 14px 18px 0; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
header.site .brand { font-weight: 800; font-size: 16px; color: var(--text); text-decoration: none; letter-spacing: -0.3px; }
header.site .brand b { color: var(--accent); }
header.site .navtool {
  font-size: 12.5px; color: var(--accent); text-decoration: none;
  border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; white-space: nowrap;
}
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

article h1 { font-size: 25px; line-height: 1.32; font-weight: 800; letter-spacing: -0.3px; margin: 6px 0 14px; }
article h2 { font-size: 19px; font-weight: 800; margin: 28px 0 10px; padding-left: 11px; border-left: 4px solid var(--accent); }
article h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 6px; color: var(--accent); }
article p { font-size: 15.5px; color: #dbe7f1; margin: 11px 0; }
article ul, article ol { margin: 11px 0 11px 4px; padding-left: 22px; }
article li { font-size: 15.5px; color: #dbe7f1; margin: 6px 0; }
article strong { color: #fff; font-weight: 700; }
article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(88, 209, 255, 0.4); }
article a:hover { border-bottom-color: var(--accent); }
article code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 13.5px; }

figure.fig { margin: 22px 0; text-align: center; }
figure.fig img { width: 100%; max-width: 520px; height: auto; display: inline-block; border: 1px solid var(--line); border-radius: 12px; background: #0c1118; }
figure.fig.wide img { max-width: 100%; }
figure.fig figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin: 9px auto 0; max-width: 560px; line-height: 1.5; }

.adslot { border: 1px dashed var(--line); border-radius: 10px; color: var(--dim); text-align: center; padding: 18px; font-size: 11px; margin: 18px 0; }

.faq h3 { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 10px 0 0; font-size: 14.5px; }
.faq p { background: var(--panel-2); border-radius: 0 0 10px 10px; margin: 0 0 9px; padding: 11px 13px; border: 1px solid var(--line); border-top: 0; font-size: 14px; color: #cfe0ee; }

.cta { display: block; text-align: center; background: #134b66; border: 1px solid var(--accent); color: #eaf7ff; font-weight: 800; font-size: 16px; text-decoration: none; padding: 15px; border-radius: 12px; margin: 24px 0; }
.cta:hover { background: #1a627f; }

.related { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 18px 0; }
.related .rh { font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.related a { display: block; color: var(--text); text-decoration: none; padding: 11px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.related a:last-child { margin-bottom: 0; }
.related a:hover { border-color: var(--accent); }
.related a span { color: var(--muted); font-weight: 400; }

footer { text-align: center; color: var(--dim); font-size: 11.5px; padding: 22px 0 0; line-height: 1.8; border-top: 1px solid var(--line); margin-top: 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .wrap { padding: 12px 14px 0; }
  article h1 { font-size: 21px; }
  article h2 { font-size: 17px; }
  article p, article li { font-size: 15px; }
}

/* SIDERAILS */
.app { max-width: 1436px; margin: 0 auto; padding: 0 12px; }
.page { display: grid; grid-template-columns: 300px minmax(0, 760px) 320px; gap: 16px; justify-content: center; align-items: stretch; }
.wrap { min-width: 0; }
.rail-left, .rail-right { min-width: 0; }
.sticky { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 28px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sticky::-webkit-scrollbar { width: 8px; }
.sticky::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.ad-slot { border: 1px dashed var(--line); border-radius: 8px; color: var(--dim); text-align: center; font-size: 11px; padding: 14px; background: rgba(255,255,255,0.012); display: flex; align-items: center; justify-content: center; }
.ad-sky { min-height: 600px; }
.links-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 12px; }
.links-head { font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 9px; }
.links-panel a { display: block; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; padding: 9px 10px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); line-height: 1.35; }
.links-panel a:last-child { margin-bottom: 0; }
.links-panel a:hover { border-color: var(--accent); }
.links-panel a.cur { border-color: var(--accent); background: var(--panel-2); color: var(--accent); }
.links-panel a span { color: var(--muted); font-weight: 400; }
@media (max-width: 1440px) { .page { grid-template-columns: minmax(0, 760px) 320px; } .rail-left { display: none; } }
@media (max-width: 1080px) { .page { grid-template-columns: minmax(0, 760px); } .rail-right { display: none; } .app { padding: 0; } }
/* /SIDERAILS */
