/* TacticsPlay · the help page (tacticsplay.com/help/): the app's own dark look, as the account page.
   Left: a sticky sidebar of categories that open to their topics, with a search; a drawer on a phone. */
:root {
  --bg: #070d18; --panel: #0e1626; --panel-2: #131e33; --line: #1f2c45; --line-2: #2b3b5a; --ink: #eef4f8; --ink-2: #b4c0d0; --ink-3: #8b99ae;
  --cyan: #0097D5; --cyan-ink: #5cc4f0; --cyan-soft: rgba(0, 151, 213, .14); --green: #3fcf7c; --amber: #f2b45a; --amber-soft: rgba(242, 180, 90, .1);
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 61px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--cyan-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--cyan); border-radius: 10px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(7, 13, 24, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1320px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { height: 22px; width: auto; }
.tag { padding: 3px 9px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #8fd8f6; background: var(--cyan-soft); border: 1px solid rgba(0, 151, 213, .35); border-radius: 999px; }
.grow { flex: 1; }
.menu-b { display: none; width: 40px; height: 40px; place-items: center; padding: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; }
.menu-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; text-decoration: none !important; white-space: nowrap; }
.btn.pri { color: #fff; background: var(--cyan); border-color: var(--cyan); }
.btn.pri:hover { background: #12a6e3; }
.btn.soft { color: #8fd8f6; background: var(--cyan-soft); border-color: rgba(0, 151, 213, .35); }
.btn.soft:hover { border-color: var(--cyan); }

/* layout */
.shell { max-width: 1320px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }

/* the sidebar */
.nav { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.search { position: sticky; top: -10px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: -10px -10px 8px; padding: 10px; background: var(--panel); border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.search .ic { width: 18px; height: 18px; flex: none; margin-left: 8px; margin-right: -34px; position: relative; z-index: 1; color: var(--ink-3); }
.search input { width: 100%; min-height: 40px; padding: 8px 52px 8px 34px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; outline: none; }
.search input:focus { border-color: var(--cyan); }
.search input::placeholder { color: var(--ink-3); }
.search .count { position: absolute; right: 22px; font-size: 11.5px; color: var(--ink-3); }
.cats, .topics { list-style: none; margin: 0; padding: 0; }
.cat-b { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; text-align: left; font-weight: 600; font-size: 14px; color: var(--ink-2); background: none; border: 0; border-radius: 11px; }
.cat-b:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.cat-b span { flex: 1; min-width: 0; }
.ic, .chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chev { width: 15px; height: 15px; color: var(--ink-3); transition: transform .18s; }
.cat.on > .cat-b { color: #fff; background: var(--cyan-soft); box-shadow: inset 0 0 0 1px rgba(0, 151, 213, .35); }
.cat.on > .cat-b .ic { color: var(--cyan-ink); }
.cat-b[aria-expanded="true"] .chev { transform: rotate(90deg); }
.topics { display: none; margin: 2px 0 6px 19px; padding-left: 10px; border-left: 1px solid var(--line); }
.cat-b[aria-expanded="true"] + .topics { display: block; }
.topics a { display: block; padding: 5px 10px; font-size: 13.5px; line-height: 1.35; color: var(--ink-3); border-radius: 8px; }
.topics a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .03); }
.topics a.on { color: #fff; background: rgba(255, 255, 255, .05); }
.topics li.hide, .cat.hide { display: none; }
.none { padding: 10px; font-size: 13px; color: var(--ink-3); }
.scrim { display: none; }

/* main */
.main { min-width: 0; display: grid; gap: 28px; }
.hero { padding: 28px; background: linear-gradient(120deg, #0f1c33 0%, #0b1424 60%); border: 1px solid var(--line); border-radius: 20px; }
h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.lede { margin-top: 8px; max-width: 62ch; color: var(--ink-2); font-size: 16px; }
.quick { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.qc { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.qc:hover { border-color: rgba(0, 151, 213, .55); transform: translateY(-1px); }
.qc .ic { color: var(--cyan-ink); width: 20px; height: 20px; }
.qc b { font-size: 14px; }
.qc span { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }

.cat-sec { display: grid; gap: 14px; scroll-margin-top: calc(var(--top) + 16px); }
.cat-h { display: flex; align-items: center; gap: 14px; padding: 6px 2px 2px; }
.cat-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--cyan-ink); background: var(--cyan-soft); border: 1px solid rgba(0, 151, 213, .35); border-radius: 13px; }
.cat-ic .ic { width: 22px; height: 22px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
.cat-h p { color: var(--ink-3); font-size: 14px; }

.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: calc(var(--top) + 16px); }
.topic:target { border-color: rgba(0, 151, 213, .6); box-shadow: 0 0 0 3px rgba(0, 151, 213, .12); }
.topic h3 { grid-column: 1 / -1; position: relative; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.anchor { position: absolute; left: -16px; opacity: 0; color: var(--ink-3); font-weight: 500; }
.topic h3:hover .anchor, .anchor:focus { opacity: 1; text-decoration: none; }
.body { display: grid; gap: 12px; align-content: start; color: var(--ink-2); min-width: 0; }
.body b { color: var(--ink); font-weight: 600; }
.body h3 { font-size: 15px; margin-top: 6px; color: var(--ink); }
.pic { margin: 0; min-width: 0; }
.pic img, .sub img, .thumbs img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #0a1220; cursor: zoom-in; }
.pic img { max-height: 520px; object-fit: contain; }
.icon-pic { display: grid; place-items: center; min-height: 170px; background: radial-gradient(circle at 50% 40%, rgba(0, 151, 213, .16), transparent 65%), var(--panel-2); border: 1px solid var(--line); border-radius: 14px; }
.icon-pic .big { width: 74px; height: 74px; fill: none; stroke: var(--cyan-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* the narrow upright pictures (sidebar, cards) stand smaller */
.pic img[src*="sidebar."], .pic img[src*="sidebar-rail"], .pic img[src*="card-"], .pic img[src*="side-"], .pic img[src*="account-window"], .pic img[src*="signin"], .pic img[src*="smart-card"], .pic img[src*="views"], .pic img[src*="kit"], .pic img[src*="measure-presets"], .pic img[src*="playback"] { width: auto; max-width: 100%; max-height: 460px; margin: 0 auto; }
.sub { display: grid; gap: 6px; }
.sub img { width: auto; max-width: 100%; max-height: 360px; }
.sub figcaption, .thumbs figcaption { font-size: 12.5px; color: var(--ink-3); }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.steps, .list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps { counter-reset: s; }
.steps li { position: relative; padding-left: 36px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--cyan); border-radius: 50%; }
.list li { position: relative; padding-left: 18px; }
.list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; background: var(--cyan-ink); border-radius: 50%; }
.tip, .note { padding: 10px 12px; font-size: 14px; border-radius: 12px; }
.tip { background: var(--cyan-soft); border: 1px solid rgba(0, 151, 213, .3); }
.tip b { color: #8fd8f6; margin-right: 4px; }
.note { background: var(--amber-soft); border: 1px solid rgba(242, 180, 90, .3); color: #ecdcc4; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; font: 600 12px/1.6 var(--f); text-align: center; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; }
.keys { white-space: nowrap; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); }
/* topics with only words and a table use the whole width */
.topic.wide { grid-template-columns: minmax(0, 1fr); }
.topic.wide .icon-pic { display: none; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); }
.topic.hide, .cat-sec.hide, .hero.hide { display: none; }
mark { color: inherit; background: rgba(0, 151, 213, .35); border-radius: 3px; }

/* footer */
.foot { display: grid; gap: 8px; justify-items: center; padding: 28px 16px 40px; margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot nav a { color: var(--ink-2); }
.powered a { font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(3, 7, 14, .9); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; }

@media (max-width: 1100px) { .topic { grid-template-columns: minmax(0, 1fr); } .pic img { max-height: 440px; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .menu-b { display: grid; }
  .nav { position: fixed; z-index: 30; top: calc(var(--top) + env(safe-area-inset-top, 0px)); left: 0; bottom: 0; width: min(88vw, 340px); max-height: none; border-radius: 0 18px 18px 0; border-left: 0; transform: translateX(-104%); transition: transform .22s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .55); }
  .search { border-radius: 0 18px 0 0; }
  .hero { padding: 20px; }
  .topic { padding: 16px; gap: 14px; }
  .anchor { display: none; }
  .thumbs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .top .btn { padding: 8px 10px; font-size: 12px; }
  .tag { display: none; }
  .quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qc span { display: none; }
  h2 { font-size: 21px; }
  .topic h3 { font-size: 17px; }
  .icon-pic { min-height: 110px; }
  .icon-pic .big { width: 54px; height: 54px; }
}
