@charset "UTF-8";
/* CSS Document */

:root {
    --black: #000;
    --yellow: #ffff00;
    --lightblue: #00eeff;   /* #1BCDFD;*/
    --blue:      #07a;
    --darkblue:  #003366; /*#162852;*/ /* #1b3764; */   /* #000033; */
    --vdarkblue: #000020; /* 000033; */
    --dark: #171717;
    --green: #28a745;
    --white: #fff;
    --orange: orange;
    --grey:  #eee;
    --menu_text: #000;
    --menu_bkcolor: #fff;
    --header: rgba(230, 230, 230, 1);
    --header_fade: rgba(230, 230, 230, 0);
    --maxwidth: 1200px;
    --header_margin:10px;
    --margin: 5px;
    --nmargin: -5px;
    --spacing: 30px;
    --nspacing: -30px;
    --gridspacing: 10px;
 
    --alert_border: #003366;
    --alert_bkcolor: rgb(1,46,255,0.5);
}


/* -------------------------------------------------------------------------
   ---- IBM Plex, self-hosted ----
   -------------------------------------------------------------------------
   The documentation's typeface. Served from this origin rather than Google
   Fonts: one fewer third party in the critical path of every documentation
   page, no DNS + TLS handshake to a second host before any text can be drawn,
   and nothing about who reads the docs leaving the server.

   Declared here rather than in a stylesheet of its own. An @font-face that is
   never matched costs nothing, so the marketing pages - which do not use Plex -
   pay no download for these sitting in the same file they already load.

   Sans is one variable file per subset carrying the whole 100-700 axis, which
   is why three weights cost one request. Mono has no variable build, so its two
   weights are two files. unicode-range is Google's own, kept verbatim: an
   English page fetches only the "latin" files (~59 kB for all three faces) and
   reaches for latin-ext only when an accented character outside that set
   actually appears.

   SIL Open Font License 1.1 - see /assets/fonts/plex/LICENSE.txt.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/plex/ibm-plex-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/plex/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Apple Chancery';
  font-style: normal;
  font-weight: normal;
  src: local('Apple Chancery'), url('/assets/fonts/Apple Chancery.woff') format('woff');
}


body {
    background: #fff; 
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";

   /* font-family: avenir, sans-serif; */
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: left;
    margin: 0;
    padding: 0;
    color: var(--black);
}

body * {
  box-sizing: border-box;
}

.dark {
  background-color: var(--dark);
  color: var(--white);
  --menu_text: #fff;
  --menu_bkcolor: var(--dark);

  --header: rgba(25, 25, 25, 1);
  --header_fade: rgba(25, 25, 25, 0);
}


.container {
  display: block;
  padding: 0 var(--margin);
  margin: 0 auto;
  position:relative;
  max-width: var(--maxwidth);
}


/* -----------------
   ---- Headers ---- 
   ----------------- */

h1, h2, h3, h4, h5 {
  font-weight: 300;
  margin: 0;
  line-height:normal;
}

h1 {
	font-size: 50px;
	margin-bottom: 15px;
}

h2 {
	font-size: 30px;
	margin-bottom: 1rem;
	margin-top: 30px;
}

h3 { 
	padding-top: 0;
	font-size: 1.4rem;
  font-weight: 400;
	margin-bottom: 1rem;
	margin-top:10px;
}

h4 { 
	font-size: 16px;
}

a, a:visited {
    color: darkgreen;
}


/* -----------------
   ---- General ---- 
   ----------------- */

em { 
	color: #28a745;
	font-weight: 400;
}

.orange {
	color: #f98307;
}

li table { margin-left:30px; }


.center, .center p, .center h3 {
  text-align: center;
}


@media (min-width: 576px) {
  .center, .center p, .center h3 { 
    text-align: center;
  }
}

.center .p-xs {
  max-width: 700px;
  margin: auto;
}


#result .card { 
	margin:auto;
	text-align: center;
}

/* where clause gives this lower priority over other link rules */
:where(.dark :-webkit-any-link) {
  color: var(--green);
}


#gdpr-cookie-message {
  display: block;
  margin: 0 auto;
  margin-top:var(--margin);
  padding: 0 var(--margin);
  position:relative;
  max-width: var(--maxwidth);
}

/* -----------------
   ---- Bullets ----
   ----------------- */
ol li {
	padding-top: 5px;
}


ul {
	list-style: none;
	padding-left: 1em;
}

ul li:before {
	content: "\25aa";
	color: var(--orange);
	font-size: 1.1em;
	font-weight: bold;
	display: inline-block;
	width:1em;
	margin-left: -1em;
	padding-top: 5px;
}

p.bullet:before {
  content: "\25aa";
  color:orange; 
  margin-right: 5px;
  padding-top: 5px; 
}


input, select {
  width: 100%;
  max-width: 400px;
  height: 40px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
}

label {
  display: block;
}

textarea {
  width: 100%;
  max-width: 400px;
  height: 100px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
}

/* ------------------------
   ---- Advert Control ----
   ------------------------ */

#adverta > div:first-child, #advertc > div:first-child  {
	display:none;
  background-color: #eee;
}

#advertb {
	display: block;
	width:728px;
	height:90;
  margin: 20px auto;
  background-color: #eee;
}



/* --------------------
   ---- Navigation ----
   -------------------- */

/* ==================== Shared site header ====================
   Identical markup + rules across codecogs.com, fxRender, and Equation
   Editor — same file, pasted into each site's own stylesheet. Only
   --sh-bg/--sh-text/--sh-hover vary, set once here to this site's own
   default page background; every other rule (spacing, icon treatment,
   the active-tab accent, the mobile breakpoint and dropdown behaviour)
   is unchanged between the three copies. */

.site-header {
  --sh-bg: #fff;
  --sh-text: #000;
  --sh-hover: rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--sh-bg);
  color: var(--sh-text);
  border-bottom: 1px solid var(--sh-hover);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-header-bar {
  position: relative;
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 1.25rem;
  white-space: nowrap;
}
.site-header-brand a,
.site-header-brand a:visited { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.site-header-brand a:hover { opacity: 0.85; }
.site-header-cog { display: block; width: 20px; height: auto; }
.site-header-brand sup { font-size: 0.6em; }

.site-header-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 6px;
  color: var(--sh-text);
  cursor: pointer;
}
.site-header-toggle svg { width: 22px; height: 22px; display: block; }

.site-header-menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.site-header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* :visited repeated everywhere below: this site's own global `a:visited {
   color: darkgreen; }` (further up this file) has higher specificity
   than a plain class selector, so every already-clicked nav link would
   otherwise render green instead of the header's own text colour. */
.site-header-link,
.site-header-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.3rem;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.site-header-link:hover,
.site-header-link:focus-visible { background: var(--sh-hover); text-decoration: none; color: inherit; }

.site-header-icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; opacity: 0.85; display: block; }

/* Guards against a global `a > span { font-size: 65%; display: block; }`
   rule fxRender's own stylesheet has (for its old two-line buttons) -
   harmless here, but needed there, and kept identical either way. */
.site-header-link span,
.site-header-cta span { display: inline; font-size: 1rem; }

/* Active/current page: a subtle colour tint on the icon only - no
   background pill, no border box. Identical everywhere. */
.site-header-link.is-current .site-header-icon { opacity: 1; color: #6cb33f; }

.site-header-cta,
.site-header-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.3rem;
  /* The same green as every other call to action on the site. It was #28a745, which is
     3.1:1 against white text - the identical contrast failure already fixed on the page
     buttons, and the reason this no longer matched them. */
  background: #136b42;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}
.site-header-cta:hover { background: #0f5836; color: #fff; text-decoration: none; }
.site-header-cta .site-header-icon { opacity: 1; color: #fff; }

.site-header-search { display: flex; }
.site-header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--sh-hover);
  border-radius: 4px 0 0 4px;
  font-size: 0.95rem;
  background: var(--sh-bg);
  color: var(--sh-text);
}
.site-header-search button {
  border: none;
  background: #ff7700;
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.site-header-search button:hover { background: #e56a00; }

@media (max-width: 860px) {
  .site-header-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-header-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
    background: var(--sh-bg);
    border: 1px solid var(--sh-hover);
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  .site-header-menu.is-open { display: flex; }

  .site-header-nav,
  .site-header-end {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 2px;
    width: 100%;
  }
  .site-header-end { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--sh-hover); }

  .site-header-search { order: -1; margin-bottom: 6px; }
}




/* ----------------
   ---- Footer ----
   ---------------- */

footer {
  background-color: #2d2d2d;
  color: var(--white);
  padding: var(--margin);
  clear: both;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

footer h1 {
  text-align: center;
  color: #fff;
  padding-top: var(--spacing);
}

footer hr {
  border-bottom: 1px solid var(--white);
  margin-left:auto;
}

footer a, footer a:visited {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

footer .copyright {
    color: #ffffff;
    padding-top: 10px;
    margin-bottom: 25px;
    text-align: center;
}

footer span { margin: 5px 10px; }

/* Two rows: the links, then one line of company detail. It was a three-column
   grid declared with two columns, so the copyright always wrapped onto a row of
   its own, and the registered office was set as a five-item bulleted list. */
.footer {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 22px var(--margin) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
}

.footer-links a {
  font-size: 13px;
  line-height: 1.4;
  color: #e8e8e8;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--yellow);
  border-bottom-color: currentColor;
  text-decoration: none;
}

/* The separators are drawn by the gap plus a rule between items rather than
   written into the markup, so the line breaks cleanly on a narrow screen
   instead of stranding a bullet at the start of a row. */
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #414141;
  width: 100%;
  color: #a8a8a8;
  font-size: 12px;
  line-height: 1.6;
}

.footer-meta span + span { position: relative; }

.footer-meta span + span::before {
  content: "";
  position: absolute;
  left: -9px;
  top: .15em;
  bottom: .15em;
  border-left: 1px solid #4d4d4d;
}

.footer-meta strong { color: #e8e8e8; font-weight: 600; }

.footer-meta a,
.footer-meta a:visited { color: #a8a8a8; text-decoration: none; }
.footer-meta a:hover { color: var(--yellow); text-decoration: underline; }

@media (max-width: 560px) {
  /* One rule per item reads as clutter once they are stacking; the gap is
     doing the separating by then. */
  .footer-meta span + span::before { content: none; }
  .footer-meta { flex-direction: column; align-items: center; gap: 5px; }
}

/* Use in a section before footer to ensure 
footer gets pushed at least to bottom of page */
.placeholder {
  min-height: calc(100vh - 275px);
}







/* ----------------- 
   ---- Buttons ---- 
   ----------------- */

[type=button]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

button, a.button {
  padding: 8px 14px;

  border-radius: .2rem; 

  font-family: muli, sans-serif;
  font-weight: 400;
  font-size: 14px;
    
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;

  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  word-wrap: none;
  white-space: nowrap;

  color: var(--green);
  border: 1px solid var(--green);
  background-color: transparent; 
  text-decoration: none;

  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

a.button.large, button.large {
  font-size: 110%;
}

a.button.small, button.small {
  font-size: 80%;
  padding: 4px 7px;
}

p.button {
  text-align: center;
}

a.button:hover, button:hover {
  background-color: var(--darkblue);
  color: var(--white);
  border-color: var(--darkblue);
}

button.green, a.button.green {
  color: var(--white) !important;
  background-color: var(--green);
}

button.blue, a.button.blue {
  color: var(--white) !important;
  border-color: var(--darkblue);
  background-color: var(--darkblue);
}



/* -----------------
   --- Sections ----
   ----------------- */

section { 
  padding: 15px var(--margin);
  margin:auto;
  max-width: var(--maxwidth);
}

div.surround, section.surround {
  background-color: var(--vdarkblue);
  color: var(--white);
}

section.surround.grey {
  background-color: var(--grey);
  color: var(--black);
  position: relative;
  z-index: 1;
}

section.surround.grey * {
  z-index: 10;
}

section.surround.dark {
  background-color: var(--vdarkblue);
  color: var(--white);
}

section.surround > div {
  max-width: var(--maxwidth);
  margin: auto;
  position: relative;
  padding-left: var(--margin);
}

section.surround:not(.grey) h3, 
section.surround:not(.grey) h4, 
section.surround:not(.grey) h5, 
section.surround:not(.grey) a {
  color: var(--white);
}

/* --------------------
   ---- Two Column ----
   -------------------- */

.twocolumn > div, .twocolumn > section {
  padding: var(--gridspacing) 0; 
  width:400px;
}

.twocolumn video {
  width: 100%;
}

.twocolumn img {
  width:100%;
  max-height:500px;
/*  height: 500px; */
  object-fit: cover;
}


form.center > * {
  margin:auto;
}

form.row input, form.row select {
  display: block;
  margin-bottom: 1rem;
}
/* -------------------------------------------------------
   ---- Wrappers placed around Code Blocks in Documentation 
   -------------------------------------------------------
*/

pre {
	position: relative; 
	margin-top: 0 !important;
  font-size: 80% !important;
}

.code-code-label { 
	font-size:75%;
	margin-top:10px;
	margin-bottom:0;
}


.code-copy {
    position: absolute;
    bottom: 3px;
    right: 3px;
    padding: 6px 8px;
}

.code-code-wrapper {
  max-width: 100%;
}


.example-wrapper {
	background-color: var(--white);
	position: relative;
	margin-bottom: 1rem;
	border: 1px solid var(--d-accent-deep);
	min-height: 20px;
}

.example-wrapper img {
	margin:5px
}

.example-wrapper iframe {
	border:0;
	background-color: white;
	width: 100%;
}

span.anchor {
  display: block;
  position: relative;
  top: -70px;
  visibility: hidden;
}



/* --------------------
   - Tables  -
   -------------------- */

/* The colour was "white !important" on every table on the site, which made a table
   unthemeable and forced every light page that wanted one to fight it. Scoped to the dark
   pages that actually needed it - the documentation supplies its own further down. */
table {
  border-spacing: var(--gridspacing) 0;
  font-size: 90%;
}

.dark table { color: white; }

table th {
	border-top: none !important;
  white-space: nowrap;
  vertical-align: top;
}

table td {
	vertical-align: top !important;
}

/* A two-column glossary convention - centre the term, rule it off from its definition -
   that was being applied to every table on the site, including the many that are not
   glossaries. Left on the dark pages it was written for; the documentation overrides it. */
.dark table td:first-child {
  padding-right: var(--gridspacing);
  border-right: 1px solid var(--white);
  text-align: center;
}


td img {
  background-color:#fff;
  padding:3px;
  margin-right:5px;
  float:left;
}



/* ----------------------------
------ [ Alert validate ] ----
------------------------------ */

.alert {
  border:1px solid var(--alert_border);
  background-color: var(--alert_bkcolor);
  padding:var(--spacing);
}


input:invalid, textarea:invalid {
  border-right: 5px solid red;
}

input:valid, textarea:valid {
  border-right: 5px solid green;
}



.standalone {
	grid-column: 2 / 3;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 0 auto;
}

.standalone-footer {
	font-size: 12px;
	text-align: center;
}




/* -------------------------- 
   ---- MEDIA VARIATIONS ---- 
   -------------------------- */


/* ------------------------
   ----- Small Screen -----
   ------------------------ */

@media (min-width: 576px) {
  :root {
    --margin: 30px;
    --nmargin: -30px;
  }
}


@media (min-width: 768px) {
  ul {
    padding-left: var(--margin);
  }
}

/* -------------------------
   ----- Medium Screen -----
   ------------------------- */


@media (min-width: 1120px) {
  .twocolumn {
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: var(--spacing);
    grid-row-gap: var(--gridpacing);
  }

  .twocolumn.middle {
      grid-template-columns: 1fr;
      grid-column-gap: var(--spacing);
      grid-row-gap: var(--gridspacing);
  }

  .twocolumn.even {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: var(--spacing);
    grid-row-gap: var(--gridspacing);
  }

  .twocolumn.middle > div {
    max-width:600px;
    margin: 0 auto!important;
  }

  .twocolumn.right {
    grid-template-columns: 1.5fr 1fr;
  }

  .twocolumn > div, .twocolumn > section {
    margin:0;
  }
}



@media (min-width: 950px) {
  /* minmax(0, 1fr) rather than 1fr: a grid track's automatic minimum is its
     content's min-content width, and the toolbar inside this column is
     white-space:nowrap. That let the toolbar push the column past its share of
     the row and the whole page scrolled sideways at around 1024px. */
  #adverta {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    grid-column-gap: var(--gridspacing);
  }

  #adverta > div:first-child {
    display: block;
    width: 160px;
    height: 600px;
    position: sticky;
    top:60px;
  }

}



/* Three columns: the source, the equation, the wording it should produce. */
.a11y-head, .a11y-case {
  display: grid;
  grid-template-columns: 26% 26% 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(128, 150, 180, 0.28);
}
.a11y-head {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.7;
  border-bottom-width: 2px;
}
/* These rows appear on two pages with opposite grounds - the documentation
   bench (dark) and the home page's accessibility tab (light) - so the accent
   is defined for light first and swapped under .dark. Cyan on white is the
   bug this avoids. */
.a11y-label {
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  color: #0b4f9e;
  overflow-wrap: anywhere;
  font-weight: bold;
}
.dark .a11y-label { color: var(--lightblue); }

.a11y-eq { font-size: 1.25rem; padding: 4px 6px; border-radius: 3px; }
.a11y-eq:focus {
  outline: 3px solid #0b4f9e;
  outline-offset: 2px;
  background: rgba(11, 79, 158, 0.08);
}
.dark .a11y-eq:focus {
  outline-color: var(--lightblue);
  background: rgba(0, 238, 255, 0.1);
}
.a11y-expect { font-size: 0.9rem; opacity: 0.9; }

@media (max-width: 700px) {
  .a11y-head { display: none; }
  .a11y-case { grid-template-columns: 1fr; gap: 5px; }
}

#equation-editor {
  border: 1px solid #c3d0e2;
  border-radius: 6px;
  background: #fff;
  padding: 12px 14px 14px;
}

@media (max-width: 560px) {
  #equation-editor { padding: 10px 10px 12px; }
}
/* --------------------------
   ---- The fx house mark ----
   --------------------------
   fxTeX, fxRender, fxCode: the "fx" is italic, the rest upright. Splitting the
   word across an element is the only way to mix the two, and an italic's right
   side bearing then leaves a visible gap before the upright half, so the name
   reads as "fx TeX". The negative margin closes it.

   -0.08em rather than a fixed pixel value so it tracks the type size - the mark
   appears at everything from 0.62rem product tags to 3rem headings. */

i.fx {
  font-style: italic;
  /* Set by rendering the mark at 64px across a range of values and looking at
     it, which is the only test that counts here - canvas measureText does not
     resolve the same face the DOM does and reported a gap of about 0.15px when
     the real one is several times that.

     -0.09em closes it for both fxTeX and fxRender. The T is the hard case: its
     crossbar reaches further left than its stem, so fxT needs more closing than
     fxR, and past about -0.12em the crossbar starts to touch the x. */
  margin-right: -0.09em;
  /* letter-spacing would also tighten the f to the x, which should not move. */
  letter-spacing: 0;
}

/* The base button rule uppercases its label, which would render the mark as
   "FX". Tabs already opt out; this covers the mark wherever else it lands. */
i.fx { text-transform: none; }
