/* [rdxaids-20261114] tactix-nav-aids.css — RDX-12 parts 12a, 12b and 12d (pack 2711): the search page, the section row with Back To Top
   and closed lower sections, and tables on a phone. Loaded only by backend/lib/nav-aids.assets() and the search page.
   Colours are the redesign's tokens (public/css/tactix-tokens.css, pack 2727; the shell's --rx-h and --rx-bar-h, pack 2710): no colour is
   typed here. Nothing sticky may cover the focused element (WCAG 2.4.11): every section and every focusable thing under the row gets
   scroll-margin for the header and the row. */
:root{--tx-secrow-h:48px}
.tx-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ── 12b · the section row ── */
.tx-secrow{position:sticky;top:var(--rx-h,0px);z-index:150;box-sizing:border-box;min-height:var(--tx-secrow-h);margin:0;padding:0 16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;background:var(--rx-surface);border-bottom:1px solid var(--rx-divider)}
.tx-secrow[hidden]{display:none}
.tx-secrow ol{display:flex;gap:4px;margin:0;padding:0;list-style:none;white-space:nowrap}
.tx-secrow a{display:inline-flex;align-items:center;min-height:var(--tx-secrow-h);padding:0 12px;box-sizing:border-box;color:var(--rx-text-2);text-decoration:none;font-size:14px;font-weight:600;border-bottom:3px solid transparent}
.tx-secrow a:hover{color:var(--rx-text)}
.tx-secrow a[aria-current="true"]{color:var(--rx-text);border-bottom-color:var(--rx-accent-line)}
.tx-secrow a:focus-visible,.tx-totop:focus-visible,.tx-pt-set:focus-visible,.tx-pt-scroll:focus-visible,.tx-sec>summary:focus-visible,.tx-sr-item:focus-visible,.tx-sr-more:focus-visible,.tx-search-box:focus-visible,.tx-search-go:focus-visible,.tx-sr-again:focus-visible,.tx-sr-clear:focus-visible{outline:2px solid var(--rx-accent-line);outline-offset:2px}
.tx-sec,[data-tx-section]{scroll-margin-top:calc(var(--rx-h,0px) + var(--tx-secrow-h) + 12px)}
.tx-secrow~* :focus,.tx-secrow~:focus{scroll-margin-top:calc(var(--rx-h,0px) + var(--tx-secrow-h) + 12px);scroll-margin-bottom:calc(var(--rx-bar-h,0px) + 12px)}
details.tx-sec>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:44px;cursor:pointer;list-style-position:outside}
details.tx-sec>summary h2{display:inline;margin:0}
.tx-sec-sum{color:var(--rx-text-2);font-size:14px}
details.tx-sec[open]>summary .tx-sec-sum{display:none}
@media (min-width:768px){details.tx-sec>summary{cursor:default;list-style:none;pointer-events:none}details.tx-sec>summary::-webkit-details-marker{display:none}}
/* Back To Top: the mark sits two screens down; the button is fixed above the phone bar (the shell lifts [data-tx-back-to-top] over Install) */
.tx-totop-mark{position:absolute;top:200vh;left:0;width:1px;height:1px;pointer-events:none}
.tx-totop{position:fixed;right:16px;bottom:calc(20px + var(--rx-bar-h,0px));z-index:140;display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:0 16px;box-sizing:border-box;border-radius:24px;border:1px solid var(--rx-control-border);background:var(--rx-card);color:var(--rx-text);font-size:14px;font-weight:600;text-decoration:none}
.tx-totop[hidden]{display:none}

/* ── 12d · tables on a phone ── */
.tx-pt{position:relative;max-width:100%}
.tx-pt-sets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.tx-pt-sets[hidden]{display:none}
.tx-pt-set{min-height:44px;min-width:44px;padding:0 14px;box-sizing:border-box;border-radius:22px;border:1px solid var(--rx-control-border);background:transparent;color:var(--rx-text-2);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.tx-pt-set[aria-pressed="true"]{background:var(--rx-accent);border-color:var(--rx-accent);color:var(--rx-on-accent)}
.tx-pt-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.tx-pt-scroll table{border-collapse:separate;border-spacing:0;min-width:100%}
.tx-pt [hidden]{display:none}
.tx-pt-scroll tr.tx-yours>*{background:var(--rx-team-tint)}
@media (max-width:767.98px){
  /* the figures scroll under a thumb; the name column and the heading row stay put. The box is at most the screen between the header,
     the section row and the phone bar, so the heading row has something to stick to. */
  .tx-pt-scroll{overflow:auto;max-height:calc(100vh - var(--rx-h,0px) - var(--rx-bar-h,0px) - var(--tx-secrow-h) - 16px);max-height:calc(100dvh - var(--rx-h,0px) - var(--rx-bar-h,0px) - var(--tx-secrow-h) - 16px)}
  .tx-pt-scroll thead th{position:sticky;top:0;z-index:2;background:var(--rx-surface)}
  .tx-pt-scroll tr>:first-child{position:sticky;left:0;z-index:1;box-sizing:border-box;min-width:112px;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--rx-page);border-right:1px solid var(--rx-divider)}
  .tx-pt-scroll thead tr>:first-child{z-index:3;background:var(--rx-surface)}
  .tx-pt-scroll tr.tx-yours>:first-child{background:var(--rx-team-tint)}
  .tx-pt-scroll th,.tx-pt-scroll td{min-width:44px;white-space:nowrap}
}

/* ── 12a · the search page ── */
.tx-search{box-sizing:border-box;max-width:960px;margin:0 auto;padding:24px 16px 48px;color:var(--rx-text)}
.tx-search h1{margin:0 0 16px}
.tx-search-form{display:flex;gap:8px}
.tx-search-box{flex:1 1 auto;min-width:0;min-height:48px;padding:0 14px;box-sizing:border-box;border-radius:12px;border:1px solid var(--rx-control-border);background:var(--rx-surface);color:var(--rx-text);font:inherit;font-size:16px}
.tx-search-go{min-height:48px;padding:0 18px;border-radius:12px;border:1px solid var(--rx-accent);background:var(--rx-accent);color:var(--rx-on-accent);font:inherit;font-weight:700;cursor:pointer}
.tx-search-sub,.tx-sr-hint,.tx-sr-note{color:var(--rx-text-2);font-size:14px;margin:12px 0 0}
.tx-sr h2,.tx-sr-recent h2{margin:24px 0 8px;font-size:15px}
.tx-sr h3{margin:16px 0 8px;font-size:14px;color:var(--rx-text-2)}
.tx-sr-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.tx-sr-item{display:flex;flex-direction:column;gap:2px;min-height:48px;padding:10px 12px;box-sizing:border-box;border-radius:10px;border:1px solid var(--rx-divider);background:var(--rx-card);color:var(--rx-text);text-decoration:none}
.tx-sr-item:hover{border-color:var(--rx-control-border)}
.tx-sr-item--top{border-color:var(--rx-control-border)}
.tx-sr-t{font-weight:700;overflow-wrap:anywhere}
.tx-sr-k,.tx-sr-s{color:var(--rx-text-2);font-size:13px}
.tx-sr-k .tx-plan{color:var(--rx-pro);font-weight:700}
.tx-sr-more{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:var(--rx-accent-text);font-size:14px;font-weight:600}
.tx-sr-recent[hidden]{display:none}
.tx-sr-again,.tx-sr-clear{min-height:44px;padding:0 14px;box-sizing:border-box;border-radius:10px;border:1px solid var(--rx-control-border);background:transparent;color:var(--rx-text);font:inherit;text-align:left;cursor:pointer}
.tx-sr-again{width:100%}
@media (max-width:640px){.tx-sr-list{grid-template-columns:1fr}}
@media (prefers-reduced-motion:no-preference){.tx-secrow{scroll-behavior:smooth}}
