/* ThreatSign image icons (static/architectui/icons/ui/, built by
   tools/make_ui_icons.py). Loaded by both the admin and operator layouts.
   All files are the same square canvas. The pictures inside fill about the
   same share of it (make_ui_icons.py TILE_SCALE shrinks the ones traced edge
   to edge), so one size class gives one visual size. Use them through
   architectui/partials/ts_icons.html. */
.ts-icon { display: inline-block; flex: 0 0 auto; object-fit: contain; vertical-align: middle; }
.ts-icon-sm { width: 2.5rem; height: 2.5rem; }
.ts-icon-md { width: 3rem; height: 3rem; }
.ts-icon-lg { width: 4.5rem; height: 4.5rem; }
.ts-icon-xl { width: 7rem; height: 7rem; }
/* A wide icon (tools/make_ui_icons.py TILE_WIDE, viewBox wider than 128)
   keeps the height of its size class and takes the width it needs. */
.ts-icon.ts-icon-wide { width: auto; }
/* Page header button icon. */
/* Icons in buttons keep their size but do not make the button taller:
   the negative margin cuts their layout height down to one text line. */
.btn > .ts-icon { margin: -.6rem 0; }
/* Website pages (/showwebsite and its sections), every role. */
.ts-website-nav .ts-website-nav-icon { width: 2rem; height: 2rem; }
/* TSBS5-280: every menu row has a fixed 2rem icon slot, so all labels start
   at the same place. A long label wraps instead of pushing the icon. */
.ts-website-nav-list .ts-website-nav-icon { flex: 0 0 2rem; }
/* The current row's label is bold (layout.html), so it can wrap to one more
   line. A hidden bold copy of the label (data-label) sits in the same grid
   cell, so a row is as tall when it is current as when it is not, and the
   rows under it do not move. */
.ts-website-nav-list a > .ts-website-nav-label { display: grid; min-width: 0; }
.ts-website-nav-list a > .ts-website-nav-label > span,
.ts-website-nav-list a > .ts-website-nav-label::after { grid-area: 1 / 1; align-self: center; }
.ts-website-nav-list a > .ts-website-nav-label::after { content: attr(data-label); font-weight: 600; visibility: hidden; }
/* A disabled menu row must not look clickable: grey its icon too. */
.ts-website-nav-off > .ts-website-nav-icon { filter: grayscale(1); opacity: .45; }
/* The layout's .btn padding would squeeze this 2rem button to 8px inside. */
button.btn.ts-overview-preview-refresh { padding: 0; }
.ts-overview-preview-refresh > .ts-icon { width: 1.5rem; height: 1.5rem; margin: 0; }
/* Disabled menu row: label wraps beside the icon, reason lines up under it. */
.ts-website-nav-off > .ts-website-nav-label { flex: 1 1 0; min-width: 0; }
.ts-website-nav .ts-website-nav-off > .ts-website-nav-reason { padding-left: 2.5rem; }
/* TSBS5-267: a state badge on a working menu row, and the Quick Start progress.
   Pushed to the right; it wraps under the label on a narrow menu. */
.ts-website-nav .ts-website-nav-status { margin-left: auto; font-size: .75rem; font-weight: 400; white-space: nowrap; }
/* TSBS5-267: the state of a monitoring row whose icon shows it (#299, #300).
   Hidden like .visually-hidden until the link is hovered or has keyboard
   focus, then shown as a small tooltip under the row. */
.ts-website-nav-list a { position: relative; }
.ts-website-nav .ts-website-nav-tip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-website-nav a:hover > .ts-website-nav-tip,
.ts-website-nav a:focus-visible > .ts-website-nav-tip { width: auto; height: auto; overflow: visible; clip: auto; left: 2.75rem; top: 100%; z-index: 5; padding: .125rem .5rem; border-radius: .25rem; background: #03194c; color: #fff; font-size: .75rem; font-weight: 400; }
img.ts-overview-security-icon { width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; margin-top: 0; }
/* TSBS5-159: the shield fills ~83% of its box, the spec icons ~55%.
   Keep the 2.5rem slot so rows line up, and draw the shield at 1.75rem. */
img.ts-overview-security-icon.ts-overview-security-icon-firewall { box-sizing: border-box; padding: .375rem; }
/* TSBS5-211 Phase 4: a spec icon next to one line of text (report tabs,
   Help Center headings, field prefixes, page links, view toggles, Back). */
.ts-icon.ts-inline-icon { width: 1.5rem; height: 1.5rem; margin: -.25rem .35rem -.25rem 0; }
.page-link > .ts-icon.ts-inline-icon,
.ts-website-title-back-button > .ts-icon.ts-inline-icon { margin-right: 0; }
