body {
  margin: 0;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1 { font-size: 2.222rem; }
h2 { font-size: 1.667rem; }
h3 { font-size: 1.333rem; }
h4 { font-size: 1.167rem; }
h5 { font-size: 1.0rem; } 
h6 { font-size: 0.889rem; }

p, li {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

body {
  font-family: system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, sans-serif;
  font-weight: bold;
}

main article {
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
}

/* Forms */
input, button, textarea, select {
  font: inherit;
}

input, select, textarea, img, picture, video, canvas, svg, table, pre {
  vertical-align: baseline;
}

label:has(+ textarea) {
  vertical-align: top;
}

select {
  padding: 0.25em;
  line-height: 1.2;
  vertical-align: baseline;
}

input, textarea, select, button {
  border: 1px solid #ccc;
  color: inherit;
}

input[type="range"] {
  background-color: transparent;
}        

/* Code */
:where(code, pre) {
  border: 1px solid #ccc;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

code {
  padding: 0.1em 0.3em;
  white-space: nowrap;
}

pre > code {
  all: unset;
}

pre {
  padding: 1em;
  overflow-x: auto;
  line-height: 1.4;
} 

/* Horizontal Rule */

hr {
  border: 0;
  border-bottom: 1px solid currentColor;
  height: 0;
  margin: 1rem 0;
}

/* Horizontal Rule */
hr {
  border: 0;
  border-bottom: 1px solid currentColor;
  height: 0;
  margin: 1rem 0;
}

/* Horizontal Links */
.horizontal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0;
  list-style: none;
  align-items: center;
}

.horizontal-links li {
  margin: 0;
  line-height: 1;
}

.horizontal-links a {
  white-space: nowrap;
}            

/* Visually hidden utility */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
  clip: rect(1px,1px,1px,1px);
}

/* Classic float to avoid flex jumpiness in some browsers. */
#menu-toggle {
  float: right;
  min-width: 2em;
  text-align: center;
  cursor: pointer;
}

#menu-toggle .icon-close {
  display:none;
}

#menu-toggle[aria-expanded="true"] .icon-open {
  display:none;
}

#menu-toggle[aria-expanded="true"] .icon-close {
  display:inline;
}            

.masthead::after {
  content: "";
  display: table;
  clear: both;
}

/* Sticky footer flex trick */
html, body {
  height: 100%
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh
}

main {
  flex: 1 0 auto
}

footer {
  flex-shrink: 0;
  position: relative;
}

/* Bumping utility classes */
.bump-mt-0 { margin-top: 0; }
.bump-mt-1 { margin-top: 1rem; }
.bump-mt-2 { margin-top: 2rem; }
.bump-mt-3 { margin-top: 3rem; }

.bump-mb-0 { margin-bottom: 0; }
.bump-mb-1 { margin-bottom: 1rem; }
.bump-mb-2 { margin-bottom: 2rem; }
.bump-mb-3 { margin-bottom: 3rem; }

/* External links */
a[href^="http://"]:after,
a[href^="https://"]:after {
  content: '';
  display: inline-block;
  vertical-align: -0.11111em;
  margin-left: 0.25em;
  width: 0.8333em;
  height: 0.8333em;
  background: currentColor;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M10.5 1a.5.5 0 0 0 0 1h2.793L7.146 8.146a.5.5 0 1 0 .708.708L14 2.707V5.5a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5h-4z"/><path fill="white" d="M13 8a.5.5 0 0 1 .5.5v4A2.5 2.5 0 0 1 11 15H4A2.5 2.5 0 0 1 1.5 12.5V5A2.5 2.5 0 0 1 4 2.5h4a.5.5 0 0 1 0 1H4A1.5 1.5 0 0 0 2.5 5v7.5A1.5 1.5 0 0 0 4 14h7a1.5 1.5 0 0 0 1.5-1.5v-4a.5.5 0 0 1 .5-.5z"/></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}            

/* LIGHT THEME */
body {
  color: #2f3439;
  background-color: #ebe9e5;
}
html[data-theme="light"] body,
html[data-theme="dark"] .light-theme {
  color: #2f3439;
  background-color: #ebe9e5;
}
html[data-theme="light"] a,
html[data-theme="dark"] .light-theme a {
  color: #0f4780;
}
html[data-theme="light"] a:visited,
html[data-theme="dark"] .light-theme a:visited {
  color: #8a008a;
}
:where(code, pre),
html[data-theme="light"] :where(code, pre) {
  background-color: #dfddda;
  border-color: #d4d2ce;
}
:where(input, select, textarea, button, datalist, option),
html[data-theme="light"] :where(input, select, textarea, button, datalist, option) {
  background-color: #d9d8d4;
  border-color: #c8c6c3;
}
:where(input:disabled, select:disabled, textarea:disabled, button:disabled, datalist:disabled, option:disabled),
html[data-theme="light"] :where(input:disabled, select:disabled, textarea:disabled, button:disabled, datalist:disabled, option:disabled) {
  background-color: #e5e3df;
  border-color: #dfddda;
  opacity: .5;
  cursor: not-allowed;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .light-theme {
    color: #2f3439;
    background-color: #ebe9e5;
  }
  html:not([data-theme]) .light-theme a {
    color: #0f4780;
  }
  html:not([data-theme]) .light-theme a:visited {
    color: #8a008a;
  }
}

/* DARK THEME */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body {
    color: #e8dfd0;
    background-color: #2f3439;
  }
  html:not([data-theme]) a {
    color: #8acaf4;
  }
  html:not([data-theme]) a:visited {
    color: #ffa3ff;
  }
  html:not([data-theme]) :where(code, pre) {
    background-color: #3f4348;
    border-color: #4e5257;
  }
  html:not([data-theme]) :where(input, select, textarea, button, datalist, option) {
    background-color: #4e5257;
    border-color: #6d7174;
  }
  html:not([data-theme]) :where(input:disabled, select:disabled, textarea:disabled, button:disabled, datalist:disabled, option:disabled) {
    background-color: #34393e;
    border-color: #393e43;
  opacity: .4;
  cursor: not-allowed;
  }
}
html[data-theme="dark"] body,
html[data-theme="light"] .dark-theme {
  color: #e8dfd0;
  background-color: #2f3439;
}
html[data-theme="dark"] a,
html[data-theme="light"] .dark-theme a {
  color: #8acaf4;
}
html[data-theme="dark"] a:visited,
html[data-theme="light"] .dark-theme a:visited {
  color: #ffa3ff;
}
html[data-theme="dark"] :where(code, pre) {
  background-color: #3f4348;
  border-color: #4e5257;
}
html[data-theme="dark"] :where(input, select, textarea, button, datalist, option) {
  background-color: #4e5257;
  border-color: #6d7174;
}
html[data-theme="dark"] :where(input:disabled, select:disabled, textarea:disabled, button:disabled, datalist:disabled, option:disabled) {
  background-color: #34393e;
  border-color: #393e43;
  opacity: .4;
  cursor: not-allowed;
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .dark-theme {
    color: #e8dfd0;
    background-color: #2f3439;
  }
  html:not([data-theme]) .dark-theme a {
    color: #8acaf4;
  }
  html:not([data-theme]) .dark-theme a:visited {
    color: #ffa3ff;
  }
}

/* LIGHT HIGH-CONTRAST THEME */
html[data-contrast="high"] body {
  color: #000000;
  background-color: #ffffff;
}

/* DARK HIGH-CONTRAST THEME */
html[data-contrast="high"][data-theme="dark"] body {
  color: #ffffff;
  background-color: #000000;
}
@media (prefers-color-scheme: dark) {
  html[data-contrast="high"]:not([data-theme]) body {
    background-color: #000000;
    color: #ffffff;
  }
}


/****** Plain Old Web ******
 */

/* Masthead */

header .masthead a {
  font-size: 1.333rem;
}

header nav a {
  font-weight: bold;
}

/* Footer badge – SVG logo bottom‑left, always 5rem square */

footer .layout-container {
  padding-bottom: 6rem;
}

footer .layout-container::after {
  content: "";
  position: absolute;
  left: 4rem;
  bottom: 0;
  width: 5rem;
  height: 5rem;
  background: url('/-/images/logo-etched.svg') no-repeat 0 0;
  pointer-events: none;
}

/* Back to the top, Next article */

.scroll-links,
.series-links {
    margin-top: 3rem;
}

/* Notices & Aside – politely smaller */

.smallprint, aside dt, aside dd {
  font-size: 0.889rem;
  line-height: 1.7;
}

/* Glossary of terms */

aside {
  border: solid 1px #666;
  margin: 0 1rem;
  padding: 0 1rem;
}

aside dt:target {
 background-color: rgba(200,195,190,0.35);
 outline: 1px solid rgba(125,125,125, 0.75);
}

/* Guidelines page */

ul.resource-links li {
  margin-bottom: .778rem;
}

ul.resource-links li span {
    display: block;
}

/* Scroll links */

.scroll-links {
  text-align: left;
  margin-bottom: 2rem;
}

/* Sitemap */

p.slim {
    margin-bottom: 1em;
}

/* Demonstration page */

body.demonstration article > h2 {
  border-top: solid 3px #666;
  margin-top: 3rem;
  padding-top: 1rem;
}

body.demonstration article > h3 {
  border-top: solid 2px #666;
  margin-top: 2rem;
  padding-top: .5rem;
}

body.demonstration .exhibit {
  border-top: solid 1px #666;
  margin-top: 1rem;
}

body.demonstration .exhibit > div {
  border: solid 1px #666;
  background-color: #fcf7ee;
  padding: 1rem;
}

html[data-theme="dark"] body.demonstration .exhibit > div {
  background-color: #1b1e21;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body.demonstration .exhibit > div {
    background-color: #1b1e21;
  }
}

/* Modified */