* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box; 
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

:root {
  --background: rgba(0, 0, 0, 1); 
  --translucent: rgba(0, 0, 0, 0.5); 
  --translucentwhite: rgba(255, 255,255, 0.8); 
  --red: rgba(255, 0, 0, 1); 
  --forground: rgba(255, 255, 255, 1);    
  --forground-05: rgba(255, 255, 255,1);    
  --text: rgba(255, 255, 255, 1);    
  --highlight: rgba(255, 0, 0, 0.5);
  --outline: rgba(100, 100, 100, 1);
  --shadow: rgba(00, 00, 00, 1);
}

html.light {
  --background: rgba(255, 255, 255, 1);
  --translucent: rgba(255, 255, 255, 0.5);
  --translucentwhite: rgba(0, 0, 0, 0.8);
  --forground: rgba(0, 0, 0, 1);
  --forground-05: rgba(0, 0, 0, 1);
  --text: rgba(0, 0, 0, 1);
  --shadow: rgba(200, 200, 200, 1);
}

.container > * {
  padding-bottom: 1em;
}

.container {
  margin-left: auto;
  margin-right: auto;
}

.content {
  min-height: 100%;
}


a:hover {
  cursor:pointer;
}

a:link, a:visited 
{
  color: var(--forground);
  text-decoration-color: var(--background);
  text-decoration: none;
  transition: text-decoration-color 250ms linear;
  transition: color 250ms linear;
}

a:hover, a:active {
  color: var(--forground);
  text-decoration: none;
  text-decoration-color: var(--forground);
  transition: text-decoration-color 250ms linear;
  transition: color 250ms linear;
}
body {
  color: var(--forground);
  font-family: Helvetica, Arial, sans-serif;
  background-color: var(--background);
  overflow-x: hidden;
}


/* removed 2024-09-19 */
div.comment_input {
  border: 1px solid var(--forground);
}
div.comment {
  border-left: 1px solid var(--forground);
  border-bottom: 0px solid var(--forground);
  padding-left: 1em;
  padding-bottom: 1em;
  border-image: linear-gradient(to right, white, black) 1;
}

div.post_comment {
text-align: left;

}
div.comment hr{
  color: var(--background);
  border-top: 0px solid var(--forground);
  margin: 0px;
  padding: 0px;
  margin-left: -1em;
  border-image: linear-gradient(to right, white, black) 1;
}

div.comment div.comment_body{
  text-align:left;
}

div.comment div.comment_body pre {
  text-align: left;
  max-width: 80%;
}
div.comment div.header {
  background-color: var(--background);
  color: var(--forground);
  display:inline-block;
  width: 100%;
}

div.comment span {
  font-size: 1em;
  vertical-align: top;
  margin-top: 0em;
  float:left;
}

div.comment span.left {
  float: left;
  display: inline-block;
  margin-right: 1em;
}

div.comment span.center {
  display: inline-block;
  margin-right: 1em;
  margin-left: 1em;
}

div.comment span.right {
  float: right;
  margin-left: 1em;
  display: inline-block;
}

div.error_code {
  font-size: 10em;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  width: max-content;
  background-color: var(--background);
}

.dropdown-content div.menu_button {
  width: max-content;
  padding-top: 0em;
}

.sub_menu_button:hover .dropdown-content {
  display: block;
}

div.post_details {
  margin-left: 1em;
  margin-right: 1em;
}

div.post_detail {
  margin-bottom: 0em;
  margin-left: auto;
  margin-right: auto;
  padding: 1em;
  display: block;
  vertical-align: top;
  border: 0px solid white;
  width: 90%;
}

div.section {
  padding: 0em;
  width: 100%;
  margin: auto;
}

div.square {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

h1 {
  text-transform: capitalize;
  text-align: left;
  overflow: visible;
  font-size: 2em;
  padding-right: 0.5em;
}

h1 a, h1 a:visited{
  text-decoration: none;
  text-align: left;
  margin-bottom: 1em;
}

h1 a:hover {
  text-decoration: none;
  background-color: var(--forground);
  color: var(--background);
}

h2 {
  font-size: 1.5em;
}

h3 {
  text-align:left;
  margin-top: 1em;
  color: var(--forground);
}

h4 {
  padding-bottom: 0.1em;
  color: var(--forground);
}

header {
  padding: 0px;
  margin: 0px;
  top: 0;
  text-align: center;
  position: fixed;
  z-index: 1;
}

img {
  max-width:100%;
  max-height:100%;
}

img#glasses {
  float: right;
  width: 20%;
  display: block;
  margin-right: -8%;
}

li {
  list-style: none;
}

span.user {
  margin-right: 1em;
  float: right;
  text-align: right;
  font-size: 1em;
  display: inline;
  border: 0px solid red;
}
span.id {
  margin-right: 1em;
  float: left;
  text-align: left;
  font-size: 1em;
  display: inline;
  border: 0px solid blue;
}

span.date {
  margin-right: 1em;
  float: left;
  text-align: left;
  font-size: 1em;
  display: inline;
  border: 0px solid blue;
}

div.main {
  width: 100%;
}
main {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  vertical-align: middle;
}

table.edit_post input {
  width: 100%;
}

input.login {
  text-align: center;
}

small#hint_id_password1 ul {
  padding: 1em;
}

small#hint_id_password1 ul li {
  border: 0px solid red;
  padding: 0em;
  list-style: circle;
}

.post_summary {
  min-height: 80vh;
  display: inline-block;
  vertical-align: top;
  border-left:  1px solid var(--forground);
  border-right: 0px solid var(--forground);
  border-top: 1px solid var(--forground);
  border-style: solid;
  border-image: linear-gradient(to bottom, var(--forground), var(--background)) 1;
  padding-right: 0.5em;
}

.post_summary img {
  width: 100%;
  margin-top: 2em;
  margin-left: -1em;
}

.post_summary h1 {
  margin-top: 0.5em;
}

span.categories { 
  white-space: nowrap;
  display: flex;
  flex-direction: row;
  margin-left: -1.0em ;
  display: inline-block;
  width: 100%;
}
span.categories a.nimda {
  color: pink;
}

div.post_summary_header {
  width: 100%;
  margin-top: -2.7em;
}

input.comment_title {
  float: left;
  margin: 0px;
}

span.categories a {
  cursor:pointer;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-decoration: none;
  text-transform: uppercase;
  float: left;
  color: var(--forground);
  background: var(--background);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  font-size: 0.6em;
}

span.categories a.inverted {
  text-decoration: underline;
}

span.categories a.inverted:hover {
  color: var(--background);
  background-color: var(--forground);
}

span.categories a:hover {
  color: var(--background);
  background-color: var(--forground-05);
}

span.category {
  float: right;
  display: inline-block;
}

span.category a.normal {
  cursor:pointer;
  padding: 0em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--forground);
  background: var(--background);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  font-size: 0.6em;
  font-weight: 900;
}

span.category a.inverted {
  cursor:pointer;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 0.2em;
  padding-right: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--background);
  background: var(--forground);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  font-size: 0.6em;
  font-weight: 900;
}

span.category a.normal:hover {
  color: var(--background);
  background-color: var(--forground-05);
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
}

span.category a.inverted:hover {
  color: var(--forground);
  background-color: var(--forground-05);
  transition: background-color 250ms linear, color 250ms linear;
  text-decoration: underline;
}

/* post list view */
table.posts {
  width: 100%;
  font-size: 0.8em;
  padding: 0px;
  margin: 0px;
  border-spacing: 0px!important;
}

table.posts tr.header {
}

table.posts td {
  text-align:left;
  min-width: 1em;
  padding: 0.2em;
  margin: 0;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
}

table.posts td.date {
  text-align: left;
  padding: 0.2em;
  margin: 0px;
  min-width: 2em;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  max-width:100%;
  white-space:nowrap;
}

td.date {
  white-space:nowrap;
}

table.posts tr {
  padding: 0px;
  margin: 0px;
}

table.posts tr td.tags {
  min-width:20%; 
  text-align:right;
}

table tr.title {
  white-space: nowrap;
}

table.posts tr td.id {
  text-align:right;
}

table.posts tr td a{
  text-decoration: none;
}

table.posts tr.header td a {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts tr.header td:hover {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts tr.body:hover a {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts tr.body:hover td {
  color: var(--background);
  background: var(--forground);
  cursor:pointer;
  text-decoration: underline;
  transition: background 250ms linear, color 250ms linear, border 250ms linear;
  transition: color 250ms linear;
  transition: text-decoration-color 250ms linear;
  text-decoration-color: var(--red);
}

table.posts td.tags span.category {
  margin: 0px;
  padding: 0px;
  margin: 0px;
  float:right;
}

table.posts a{
  padding: 0px;
  margin: 0px;
  font-size: 1em;
}

img {
  margin: auto;
  display: block;
}

footer {
  text-align: center;
}

canvas { 
  display: block; 
  width: 100%; 
}

div.graph_container {
  display: flex;
}

table {
width: 100%;
}

tr {
  margin-bottom: 1em;
}
td {
  vertical-align: top;
  text-align:left;
  min-width: 4em;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] {
  -moz-appearance: textfield;
  width: 4em;
}

textarea {
  background-color: var(--background);
  color: var(--forground);
  /*
  border-top: 1px solid var(--forground);
  border-left: 1px solid var(--forground);
  border-right: 0px solid var(--forground);
  */
  border: 1px solid var(--forground);
  max-width: 95%;
  min-width: 95%;
  min-height: 6em;
  margin-top: 2px;
  font-size: 1em;
  white-space: pre-wrap;
  min-height: 40vh;
  border-image: linear-gradient(to bottom, var(--forground), var(--background)) 1;
}

input {
  background-color: var(--background);
  color: var(--forground);
  border: 1px solid var(--forground);
  min-width: 80%;
  max-width: 95%;
  font-size: 1em;
  margin: 0em;
}

button, input[type=button], input[type=submit], input[type=reset] {
  background-color: var(--background);
  color: var(--forground);
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: center;
  border: 1px solid var(--forground);
  font-size: 0.8em;
  cursor:pointer;
  border-radius: 0px;
  min-width: 10%;
}

input.calendar {
  background-color: var(--background);
  color: var(--forground);
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align: center;
  border: 1px solid var(--forground);
  font-size: 1em;
  cursor:pointer;
  border-radius: 5px;
  min-width: 10%;

}

div.message {
  min-height: 1.5em;
}

button:hover, input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
  color: var(--background);
  background-color: var(--forground);
  transition: background-color 250ms linear, color 250ms linear;
}

input.left {
  float:left;
}
 
input.right {
  float:right;
}

div.tagcloud_hidden {
}

div.tagcloud {
  width: 100%;
  display:block;
}

hr {
  margin-top: 2em;
  margin-bottom: 2em;
}

iframe {
  aspect-ratio: 16 / 9;
}

button:hover {
  background-color: var(--forground);
  color: var(--background);
}

div.ticker { 
  float: right;
  text-align: center;
  border-left:  0px solid var(--forground);
  border-right: 0px solid var(--forground);
  border-top: 0px solid var(--forground);
  border-bottom: 0px solid var(--forground);
  border-style: solid;
  border-image: linear-gradient(to top, var(--background), 30%, var(--forground)) 2;
}

div.chart_small {
  width: 95%;
  margin-left: -1.5em;

}
div.chart {
  padding: 0px;
  min-height: 60vh;
  width: 95%;
  resize: vertical;
}

@supports (hanging-punctuation: first) {
  q {
    hanging-punctuation: first;
  }
}

q {
  text-align: unset;
  text-indent: -0.3em;
  display: block;
}

pre {
  word-wrap: break-word; 
  white-space: pre-wrap;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  font-size: 1.2em;
  text-align: left;
}

div.url {
  text-align:left;
}

div.url a:hover {
  color: var(--background);
  background-color: var(--forground);
}

div.form {
  display: block;
}

a.selected {
  cursor:pointer;
  background-color: var(--forground);
  color: var(--background);
}

a.unselected {
  cursor:pointer;
}

/* styles set when user presses "compressed" view */
div.post_summary_compressed {
  width: 100%;
  display: inline-block;
  margin: 0px;
  padding: 0px;
  border-left:  0px solid var(--forground);
  border-right: 0px solid var(--forground);
  border-top: 1px solid var(--forground);
  border-style: solid;
  border-image: linear-gradient(to right, var(--background), 30%, var(--forground)) 2;
  border-bottom: 0px;
  margin-bottom: 1em;
  padding-left: 0.5em;
}

div.post_summary_compressed h1 {
  font-size: 1em;
  display: inline-block;
  float: left;
  overflow: hidden;
  max-width: 100%;
  margin: 0px;
}

div.post_summary_compressed img {
  margin: 0px;
  padding: 0px;
  float: left;
  width: 20%;
  font-size: 1em;
  display: inline-block;
}
div.post_summary_compressed pre.description {
  display: none;
  margin: 0px;
  padding: 0px;
  float: left;
  font-size: 1em;
}

div.menu {
  display: none;
}
div.menu_button a#close {
  display: none;
}
div.post_summary_compressed div.post_summary_header {
  display: block;
  margin-top: 0em;
  margin: 0px;
  padding: 0px;
  float: left;
  width: 100%;
}

div.post_summary_compressed div.post_summary_header span {
  display: inline-block;
  float: left;
  margin: 0px;
  padding: 0px;
}

div.post_summary_compressed div.post_summary_header span.categories { 
  float:left;
  overflow: hidden;
  white-space: hidden;
  font-size: 1em;
}

span.categories a{ 
  font-size: 0.8em;
}

div.post_summary_compressed div.post_summary_header span.user{ 
  /*flex-direction: row;*/
  display: inline-block;
  float:left;
  margin: 0px;
  padding: 0px;
}
div.post_summary_compressed div.post_summary_header span.date{ 
  display: inline-block;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  white-space: hidden;
  float:right;
}

div.post_summary_compressed div.url {
  text-align:right;
  font-size: 1em;
}

header {
  text-transform: uppercase;
  background-color: var(--background);

}
ul#menu {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  text-transform: uppercase;
  float:left;
  display:inline-block;
}

li {
  float: left;
}

li a, .dropbtn,
ul#menu .link-button {
  display: inline-block;
  color: var(--forground);
  padding: 0.5em;
  text-align: center;
  text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn,
ul#menu .link-button:hover {
  background-color: var(--forground);
  color: var(--background);
  text-decoration: none;
}
div.tags a.dropbtn:hover {
  color: var(--background);
  background-color: var(--forground);
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  color: var(--forground);
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content, .dropdown:active .dropdown-content {
  display: block;
}

li a.inverted {
  color: var(--background);
  background-color: var(--forground);
}
a.pink {
  color: pink;
}

/*
svg {
  margin-top: 0px;
  padding: 0px;
}
svg#burger {
  filter: drop-shadow(0px 0px 3px rgb(255 255 255 / 0.0));

}
svg#burger:hover {
  filter: drop-shadow(0px 0px 5px rgb(255 255 255 /1));

}
*/
a#hide_menu {
  color: var(--forground);
  background: var(--translucent);
}

a#hide_menu svg {
  float:left;
  color: var(--forground);
  padding: 0.5em;
}

a#hide_menu p {
  float:left;
  padding: 0.5em;
  color: var(--forground);
}

div.main {
  width: 40%;
  float: left;
}
img[src*="charts"] {
  filter: invert(1);
}
html.light img[src*="charts"] {
  filter: none;
}

/* Security hardening: POST-backed menu actions rendered as links. */
.inline-menu-form,
.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.link-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0;
    text-decoration: inherit;
}

.link-button:hover {
    text-decoration: underline;
}

/* CSP cleanup: moved former header inline boot colors into the static stylesheet. */
html,
body,
a {
  background: #000;
  color: #ccc;
}

html.light,
html.light body,
html.light a {
  background: #fff;
  color: #333;
}

/* 216 style-CSP cleanup: classes replacing formerly inline template styles. */
.is-hidden {
  display: none;
}

.categories-left,
.float-left {
  float: left;
}

.comments-link,
.float-right {
  float: right;
}

.tag-selected {
  text-decoration: underline;
}

.ticker-negative {
  color: pink;
}

.ticker-positive {
  color: #90EE90;
}

.chart,
.chart-box {
  width: 100%;
  min-height: 320px;
}

.chart {
  height: 360px;
}

.chart-box-large {
  height: 400px;
}

.chart-box-medium {
  height: 320px;
}

.truncate-wide,
.truncate-medium {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truncate-wide {
  max-width: 600px;
}

.truncate-medium {
  max-width: 400px;
}

.settings-group-heading {
  margin: 0.5em 0;
}

.setting-value {
  width: 100%;
}

.ticker-chart {
  width: 100%;
}

.post-image-half {
  width: 50%;
}


/* Front-end notices / API error feedback */
.stonkys-notices {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10000;
  max-width: min(28rem, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.stonkys-notice {
  border: 1px solid var(--outline);
  background: var(--background);
  color: var(--forground);
  box-shadow: 0 0 0.75rem var(--shadow);
  padding: 0.75rem 1rem;
  pointer-events: auto;
  font-size: 0.95rem;
}

.stonkys-notice-success { border-color: #33ff33; }
.stonkys-notice-info { border-color: var(--outline); }
.stonkys-notice-warning { border-color: #f2c94c; }
.stonkys-notice-error { border-color: #ff4d88; }

.stonkys-notice-title {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.stonkys-notice-message {
  overflow-wrap: anywhere;
}

.stonkys-notice-close {
  float: right;
  margin-left: 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.is-busy {
  opacity: 0.65;
  cursor: progress;
}

/* Nimda diagnostics */
.diagnostics-table { width: 100%; }
.diag-status { white-space: nowrap; font-family: monospace; font-weight: bold; }
.diag-ok .diag-status { color: #33ff33; }
.diag-nok .diag-status { color: #ff4f4f; }
.diag-info .diag-status { color: #aaa; }

button.donate-button {
  font-weight: 700;
}

/* Release 216 CSP/font cleanup: keep the original light-weight title feel
   without external Google Fonts. POST-backed menu buttons inherit the
   normal menu anchor styling above. */
h1,
h1 a,
.post_summary h1,
.post_summary h1 a {
  font-weight: 400;
}

.dropdown-content .inline-menu-form {
  display: block;
}

.dropdown-content .link-button {
  display: block;
  width: 100%;
  text-align: left;
}


/* Top menu POST actions must be visually indistinguishable from normal menu
   anchors. Light-theme global anchor rules are intentionally overridden here
   so hover inversion works the same in both themes. */
ul#menu .inline-menu-form {
  display: block;
  margin: 0;
  padding: 0;
}

ul#menu .link-button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  color: var(--forground);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  line-height: inherit;
  margin: 0;
  min-width: 0;
  padding: 0.5em;
  text-align: center;
  text-decoration: none;
  text-transform: inherit;
  vertical-align: top;
}

ul#menu li a,
ul#menu .dropbtn,
ul#menu .link-button {
  background: transparent;
  color: var(--forground);
}

ul#menu li a:hover,
ul#menu li.dropdown:hover > .dropbtn,
ul#menu .link-button:hover,
ul#menu .inline-menu-form:hover .link-button,
html.light ul#menu li a:hover,
html.light ul#menu li.dropdown:hover > .dropbtn,
html.light ul#menu .link-button:hover,
html.light ul#menu .inline-menu-form:hover .link-button {
  background-color: var(--forground);
  color: var(--background);
  text-decoration: none;
}

html.light ul#menu li a,
html.light ul#menu .dropbtn,
html.light ul#menu .link-button {
  background: transparent;
  color: var(--forground);
}

/* Admin statistics charts: first-party SVG renderer used instead of Plotly on
   Nimda statistics pages so strict style-src 'self' CSP remains intact. */
.admin-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.admin-chart-grid {
  stroke-width: 1;
  opacity: 0.45;
}

.admin-chart-axis {
  stroke: var(--forground);
  stroke-width: 1;
  opacity: 0.8;
}

.admin-chart-line {
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.admin-chart-axis-text,
.admin-chart-axis-title,
.admin-chart-legend,
.admin-chart-empty {
  fill: var(--forground);
  font-family: "Courier New", monospace;
}

.admin-chart-axis-text {
  font-size: 12px;
}

.admin-chart-axis-title {
  font-size: 15px;
}

.admin-chart-legend {
  font-size: 13px;
}

.admin-chart-empty {
  font-size: 18px;
}

.admin-chart-bar-human {
  fill: var(--forground);
  opacity: 0.75;
}

.admin-chart-bar-bot {
  fill: #ff5c5c;
  opacity: 0.72;
}

/* 216 UI hardening: selected tag/menu states must be visibly inverted, not just
   underlined. This applies to public post tags and the top-menu tag filter. */
ul#menu li a.tag-selected,
ul#menu li a.inverted,
ul#menu .dropbtn.tag-selected,
ul#menu .dropbtn.inverted,
span.categories a.tag-selected,
span.categories a.inverted,
div.tags a.tag-selected,
div.tags a.inverted,
a.tag-selected {
  background-color: var(--forground);
  color: var(--background);
  text-decoration: none;
}

ul#menu li a.tag-selected:hover,
ul#menu li a.inverted:hover,
ul#menu .dropbtn.tag-selected:hover,
ul#menu .dropbtn.inverted:hover,
span.categories a.tag-selected:hover,
span.categories a.inverted:hover,
div.tags a.tag-selected:hover,
div.tags a.inverted:hover,
a.tag-selected:hover {
  background-color: var(--background);
  color: var(--forground);
  text-decoration: none;
}

/* Nimda pages use the same fixed global menu as public pages. Reserve vertical
   space so long statistics/site-health pages cannot scroll with their heading
   hidden behind the fixed header. */
main.nimda-main {
  padding-top: 3.25em;
  text-align: left;
}

main.nimda-main h1,
main.nimda-main h2,
main.nimda-main h3 {
  text-align: left;
}

main.nimda-main table {
  margin-left: 0;
  margin-right: auto;
}

/* First-party SVG ticker charts. Plotly is intentionally not loaded under the
   strict style-src 'self' policy because it injects runtime style rules. */
.ticker-chart-svg {
  display: block;
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.ticker-chart-grid {
  stroke: var(--outline);
  stroke-width: 1;
  opacity: 0.45;
}

.ticker-chart-axis {
  stroke: var(--forground);
  stroke-width: 1.2;
}

.ticker-chart-line {
  fill: none;
  stroke: var(--forground);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ticker-chart-text,
.ticker-chart-axis-text,
.ticker-chart-empty {
  fill: var(--forground);
  font-family: Helvetica, Arial, sans-serif;
}

.ticker-chart-axis-text {
  font-size: 18px;
}

.ticker-chart-empty {
  font-size: 24px;
}

.ticker-percent {
  float: left;
}

/* 216 selected tag polish: active filter tags must remain visibly inverted
   in the global menu and in post summary/card tag strips. These rules are
   intentionally late and specific because older tag styles define `.inverted`
   as underline-only in some contexts. */
ul#menu a[data-stonkys-tag].tag-selected,
ul#menu a[data-stonkys-tag].inverted,
ul#menu a[data-stonkys-clear-tags].tag-selected,
ul#menu a[data-stonkys-clear-tags].inverted,
.post_summary .categories a[data-stonkys-tag].tag-selected,
.post_summary .categories a[data-stonkys-tag].inverted,
.post_summary_compressed .categories a[data-stonkys-tag].tag-selected,
.post_summary_compressed .categories a[data-stonkys-tag].inverted,
span.categories a[data-stonkys-tag].tag-selected,
span.categories a[data-stonkys-tag].inverted,
span.category a[data-stonkys-tag].tag-selected,
span.category a[data-stonkys-tag].inverted,
div.tags a[data-stonkys-tag].tag-selected,
div.tags a[data-stonkys-tag].inverted {
  background-color: var(--forground) !important;
  color: var(--background) !important;
  text-decoration: none !important;
}

ul#menu a[data-stonkys-tag].tag-selected:hover,
ul#menu a[data-stonkys-tag].inverted:hover,
ul#menu a[data-stonkys-clear-tags].tag-selected:hover,
ul#menu a[data-stonkys-clear-tags].inverted:hover,
.post_summary .categories a[data-stonkys-tag].tag-selected:hover,
.post_summary .categories a[data-stonkys-tag].inverted:hover,
.post_summary_compressed .categories a[data-stonkys-tag].tag-selected:hover,
.post_summary_compressed .categories a[data-stonkys-tag].inverted:hover,
span.categories a[data-stonkys-tag].tag-selected:hover,
span.categories a[data-stonkys-tag].inverted:hover,
span.category a[data-stonkys-tag].tag-selected:hover,
span.category a[data-stonkys-tag].inverted:hover,
div.tags a[data-stonkys-tag].tag-selected:hover,
div.tags a[data-stonkys-tag].inverted:hover {
  background-color: var(--forground) !important;
  color: var(--background) !important;
  text-decoration: none !important;
}

