/* Optional site styles, chosen from the "Style" control in the footer.

   Each style is one block keyed to html[data-rds-style="<id>"]. It overrides the default
   light and dark themes alike, so it looks the same whichever of those is underneath, and
   it changes no content or markup. The control itself is built by
   _includes/style-picker.html; the saved choice is applied by _includes/style-head.html. */

/* ── the footer control, in every style ─────────────────────────────────── */
.rds-style-picker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.rds-style-picker label {
  opacity: 0.75;
}

.rds-style-picker select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.3);
  border-radius: 0.25rem;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
}

.rds-style-picker select:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

.rds-style-picker option {
  color: #172033;
  background: #ffffff;
}

/* ── cyberpunk ──────────────────────────────────────────────────────────────
   The register of the hobby page in the interactive CV: a dark rig, phosphor on glass.
   Kept quiet on purpose. Nothing flickers or moves, because the text still has to carry
   the page. */
html[data-rds-style="cyberpunk"] {
  --cp-bg: #0a0d10;
  --cp-panel: #111820;
  --cp-ink: #e2eaf0;
  --cp-body: #b9c6d0;
  --cp-muted: #8494a0;
  --cp-line: #243139;
  --cp-accent: #2fe0c0;
  --cp-accent-ink: #7df3dd;
  --cp-on-accent: #06211c;
  --cp-hot: #ff5fae;
  --cp-amber: #ffc24b;
  --cp-mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Bootstrap and the contact form read these */
  --bs-body-bg: var(--cp-bg);
  --bs-body-bg-rgb: 10, 13, 16;
  --bs-body-color: var(--cp-body);
  --bs-body-color-rgb: 185, 198, 208;
  --bs-heading-color: var(--cp-ink);
  --bs-link-color: var(--cp-accent-ink);
  --bs-link-color-rgb: 125, 243, 221;
  --bs-link-hover-color: var(--cp-accent);
  --bs-link-hover-color-rgb: 47, 224, 192;
  --bs-border-color: var(--cp-line);
  --bs-secondary-color: var(--cp-muted);
  --rds-navy: var(--cp-ink);
  --rds-slate: var(--cp-body);
  --rds-teal: var(--cp-accent);
  --rds-aqua: var(--cp-accent-ink);
  --rds-amber: var(--cp-amber);
  --rds-white: var(--cp-panel);
  --rds-border: var(--cp-line);

  color-scheme: dark;
}

html[data-rds-style="cyberpunk"] body {
  background:
    radial-gradient(120% 90% at 72% 18%, #16202a 0%, #0a0d10 62%) fixed,
    var(--cp-bg);
  color: var(--cp-body);
}

/* a very faint static scanline; gone if the reader asked for less */
html[data-rds-style="cyberpunk"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px);
}

@media (prefers-reduced-motion: reduce), (prefers-contrast: more) {
  html[data-rds-style="cyberpunk"] body::after {
    display: none;
  }
}

html[data-rds-style="cyberpunk"] ::selection {
  background: var(--cp-accent);
  color: var(--cp-on-accent);
}

html[data-rds-style="cyberpunk"] :focus-visible {
  outline: 2px solid var(--cp-accent);
  outline-offset: 2px;
}

/* the light/dark switch has nothing to do while this style is on */
html[data-rds-style="cyberpunk"] .quarto-color-scheme-toggle {
  display: none;
}

/* headings */
html[data-rds-style="cyberpunk"] :is(h1, h2, h3, h4, h5, h6, .title) {
  color: var(--cp-ink);
}

html[data-rds-style="cyberpunk"] main h1 {
  text-shadow: 0 0 28px rgba(47, 224, 192, 0.22);
}

html[data-rds-style="cyberpunk"] main h2 {
  border-bottom-color: var(--cp-line);
}

html[data-rds-style="cyberpunk"] main h2:not(.listing-title)::before {
  content: "// ";
  font-family: var(--cp-mono);
  font-weight: 400;
  color: var(--cp-hot);
}

/* links */
html[data-rds-style="cyberpunk"] main a:not(.btn):not(.about-link):not(.anchorjs-link) {
  color: var(--cp-accent-ink);
  text-decoration: none;
  border-bottom: 1px dotted rgba(47, 224, 192, 0.55);
}

html[data-rds-style="cyberpunk"] main a:not(.btn):not(.about-link):not(.anchorjs-link):hover {
  color: var(--cp-on-accent);
  background: var(--cp-accent);
  border-bottom-color: var(--cp-accent);
}

/* top bar and footer */
html[data-rds-style="cyberpunk"] .navbar {
  background-color: #070a0c !important;
  border-bottom: 1px solid var(--cp-accent);
  box-shadow: 0 0 22px -6px rgba(47, 224, 192, 0.55);
}

html[data-rds-style="cyberpunk"] .navbar .nav-link {
  font-family: var(--cp-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-muted);
}

html[data-rds-style="cyberpunk"] .navbar .nav-link:hover,
html[data-rds-style="cyberpunk"] .navbar .nav-link.active {
  color: var(--cp-accent-ink);
  text-shadow: 0 0 14px rgba(47, 224, 192, 0.5);
}

html[data-rds-style="cyberpunk"] .navbar .bi,
html[data-rds-style="cyberpunk"] .navbar .aa-DetachedSearchButtonIcon {
  color: var(--cp-body);
}

html[data-rds-style="cyberpunk"] .nav-footer {
  background-color: #070a0c !important;
  border-top: 1px solid var(--cp-line);
  color: var(--cp-muted);
  font-family: var(--cp-mono);
  font-size: 0.8rem;
}

html[data-rds-style="cyberpunk"] .nav-footer a {
  color: var(--cp-body);
}

html[data-rds-style="cyberpunk"] .nav-footer a:hover {
  color: var(--cp-accent-ink);
}

html[data-rds-style="cyberpunk"] .rds-style-picker select {
  border-color: var(--cp-accent);
  border-radius: 0;
  color: var(--cp-accent-ink);
}

/* "On this page" */
html[data-rds-style="cyberpunk"] .sidebar #toc-title {
  font-family: var(--cp-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-muted);
}

html[data-rds-style="cyberpunk"] .sidebar nav[role="doc-toc"] ul > li > a {
  color: var(--cp-muted);
  border-left-color: var(--cp-line);
}

html[data-rds-style="cyberpunk"] .sidebar nav[role="doc-toc"] ul > li > a:hover,
html[data-rds-style="cyberpunk"] .sidebar nav[role="doc-toc"] ul > li > a.active {
  color: var(--cp-accent-ink) !important;
  border-left-color: var(--cp-accent) !important;
}

/* buttons */
html[data-rds-style="cyberpunk"] .btn {
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[data-rds-style="cyberpunk"] .btn-primary {
  background-color: var(--cp-accent);
  border-color: var(--cp-accent);
  color: var(--cp-on-accent);
  box-shadow: 0 0 22px -4px rgba(47, 224, 192, 0.65);
}

html[data-rds-style="cyberpunk"] .btn-primary:hover {
  background-color: var(--cp-accent-ink);
  border-color: var(--cp-accent-ink);
  color: var(--cp-on-accent);
}

html[data-rds-style="cyberpunk"] .btn-outline-secondary,
html[data-rds-style="cyberpunk"] .about-entity .about-links .about-link {
  background: transparent;
  border: 1px solid rgba(47, 224, 192, 0.45);
  border-radius: 0;
  color: var(--cp-accent-ink);
}

html[data-rds-style="cyberpunk"] .about-entity .about-links .about-link :is(i, .about-link-text) {
  color: inherit;
}

html[data-rds-style="cyberpunk"] .btn-outline-secondary:hover,
html[data-rds-style="cyberpunk"] .about-entity .about-links .about-link:hover {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: var(--cp-on-accent);
  box-shadow: 0 0 20px -5px rgba(47, 224, 192, 0.7);
}

/* cards: a glass surface over the rig, not a sheet of paper */
html[data-rds-style="cyberpunk"] .rds-card,
html[data-rds-style="cyberpunk"] .quarto-grid-item.card,
html[data-rds-style="cyberpunk"] .rds-contact-form {
  background: linear-gradient(180deg, rgba(23, 32, 41, 0.96), rgba(14, 20, 26, 0.96));
  border: 1px solid var(--cp-line);
  border-left: 2px solid var(--cp-accent);
  border-radius: 0;
  color: var(--cp-body);
  box-shadow: 0 0 0 1px rgba(47, 224, 192, 0.05), 0 18px 48px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(125, 243, 221, 0.05);
}

html[data-rds-style="cyberpunk"] .rds-card h3 {
  color: var(--cp-ink);
}

html[data-rds-style="cyberpunk"] .rds-kicker {
  color: var(--cp-accent-ink);
  opacity: 0.85;
}

/* the record */
html[data-rds-style="cyberpunk"] .rds-stat {
  border-top: 1px solid var(--cp-accent);
  box-shadow: 0 -8px 18px -12px rgba(47, 224, 192, 0.7);
}

html[data-rds-style="cyberpunk"] .rds-stat-num {
  font-family: var(--cp-mono);
  font-weight: 600;
  color: var(--cp-accent-ink);
  text-shadow: 0 0 22px rgba(47, 224, 192, 0.35);
}

/* decision point keeps its amber */
html[data-rds-style="cyberpunk"] .decision-point {
  background: rgba(255, 194, 75, 0.07);
  border: 1px solid rgba(255, 194, 75, 0.25);
  border-left: 2px solid var(--cp-amber);
  border-radius: 0;
  color: var(--cp-ink);
}

html[data-rds-style="cyberpunk"] .decision-point strong {
  font-family: var(--cp-mono);
  font-size: 0.85em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-amber);
}

/* images, embeds, code */
html[data-rds-style="cyberpunk"] main figure img,
html[data-rds-style="cyberpunk"] main iframe,
html[data-rds-style="cyberpunk"] .about-image {
  border: 1px solid var(--cp-line);
  border-radius: 0;
}

html[data-rds-style="cyberpunk"] figcaption,
html[data-rds-style="cyberpunk"] .figure-caption {
  font-family: var(--cp-mono);
  font-size: 0.78rem;
  color: var(--cp-muted);
}

html[data-rds-style="cyberpunk"] code {
  background-color: rgba(47, 224, 192, 0.08);
  color: var(--cp-accent-ink);
}

/* the About page's side column */
html[data-rds-style="cyberpunk"] .quarto-about-trestles .about-entity {
  border-right-color: var(--cp-line);
}

/* writing list and posts */
html[data-rds-style="cyberpunk"] .quarto-grid-item.card .card-title,
html[data-rds-style="cyberpunk"] .quarto-grid-item.card .listing-title {
  color: var(--cp-ink);
}

html[data-rds-style="cyberpunk"] .quarto-grid-item.card .card-attribution,
html[data-rds-style="cyberpunk"] .quarto-title-meta,
html[data-rds-style="cyberpunk"] .quarto-title-meta-heading,
html[data-rds-style="cyberpunk"] .description {
  color: var(--cp-muted);
}

html[data-rds-style="cyberpunk"] .listing-category,
html[data-rds-style="cyberpunk"] .quarto-category {
  border-color: var(--cp-line) !important;
  border-radius: 0;
  font-family: var(--cp-mono);
  color: var(--cp-accent-ink) !important;
}

html[data-rds-style="cyberpunk"] .quarto-listing-category-title {
  font-family: var(--cp-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-muted);
}

html[data-rds-style="cyberpunk"] .quarto-listing-category .category {
  color: var(--cp-body);
}

html[data-rds-style="cyberpunk"] .quarto-listing-category .category.active {
  color: var(--cp-accent-ink);
}

/* contact form */
html[data-rds-style="cyberpunk"] .rds-form-header {
  border-left: 0;
  padding-left: 0;
}

html[data-rds-style="cyberpunk"] .rds-form-header p,
html[data-rds-style="cyberpunk"] .rds-help-text {
  color: var(--cp-body);
}

html[data-rds-style="cyberpunk"] .rds-form-field label {
  font-family: var(--cp-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-accent-ink);
}

html[data-rds-style="cyberpunk"] .rds-form-field label span {
  color: var(--cp-hot);
}

html[data-rds-style="cyberpunk"] .rds-form-field input,
html[data-rds-style="cyberpunk"] .rds-form-field textarea {
  background: var(--cp-bg);
  border: 1px solid var(--cp-line);
  border-radius: 0;
  color: var(--cp-ink);
}

html[data-rds-style="cyberpunk"] .rds-form-field input::placeholder,
html[data-rds-style="cyberpunk"] .rds-form-field textarea::placeholder {
  color: #5d6d79;
}

html[data-rds-style="cyberpunk"] .rds-form-field input:focus,
html[data-rds-style="cyberpunk"] .rds-form-field textarea:focus {
  outline: none;
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px rgba(47, 224, 192, 0.18);
}

html[data-rds-style="cyberpunk"] .rds-submit-button {
  background: var(--cp-accent);
  border-radius: 0;
  color: var(--cp-on-accent);
  font-family: var(--cp-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 22px -4px rgba(47, 224, 192, 0.65);
}

/* ── windows 95 ─────────────────────────────────────────────────────────────
   Silver panels, outset borders and gradient title bars, after the conventions of
   win95.css (github.com/AlexBSoft/win95.css, MIT). The page sits in a window on a teal
   desktop, each section heading is a title bar, and the footer is the taskbar. */
html[data-rds-style="win95"] {
  --w-face: #c0c0c0;
  --w-shadow: #848484;
  --w-ink: #000000;
  --w-soft: #212529;
  --w-navy: #000082;
  --w-title: linear-gradient(to right, #08216b, #a5cef7);
  --w-desktop: #008080;
  --w-font: "MS Sans Serif", Tahoma, Verdana, Segoe, sans-serif;

  --bs-body-bg: var(--w-desktop);
  --bs-body-color: var(--w-ink);
  --bs-body-color-rgb: 0, 0, 0;
  --bs-heading-color: var(--w-ink);
  --bs-link-color: #1a0094;
  --bs-link-color-rgb: 26, 0, 148;
  --bs-link-hover-color: #2d49eb;
  --bs-link-hover-color-rgb: 45, 73, 235;
  --bs-border-color: var(--w-shadow);
  --bs-secondary-color: var(--w-soft);
  --rds-navy: var(--w-ink);
  --rds-slate: var(--w-soft);
  --rds-teal: var(--w-navy);
  --rds-aqua: var(--w-navy);
  --rds-amber: #a40000;
  --rds-white: #ffffff;
  --rds-border: var(--w-shadow);

  color-scheme: light;
}

html[data-rds-style="win95"] body {
  background: var(--w-desktop);
  color: var(--w-ink);
  font-family: var(--w-font);
  letter-spacing: 0;
}

html[data-rds-style="win95"] ::selection {
  background: var(--w-navy);
  color: #ffffff;
}

html[data-rds-style="win95"] :focus-visible {
  outline: 1px dotted var(--w-ink);
  outline-offset: 2px;
}

html[data-rds-style="win95"] .quarto-color-scheme-toggle {
  display: none;
}

/* the page is a window on the desktop */
html[data-rds-style="win95"] #quarto-document-content {
  background: var(--w-face);
  border: 2px outset #ffffff;
  box-shadow: 1.5px 1.5px #000000;
  padding: 1rem 1.25rem 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

html[data-rds-style="win95"] :is(h1, h2, h3, h4, h5, h6, .title) {
  color: var(--w-ink);
  font-family: var(--w-font);
  letter-spacing: 0;
}

/* each section heading is a title bar */
html[data-rds-style="win95"] main h2:not(.listing-title) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--w-title);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 3px 4px 3px 8px;
  border: 0;
  margin-top: 2rem;
}

html[data-rds-style="win95"] main h2:not(.listing-title)::after {
  content: "\00d7";
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.1rem;
  line-height: 0.85rem;
  text-align: center;
  background: var(--w-face);
  color: var(--w-ink);
  border: 2px outset #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

html[data-rds-style="win95"] main h2 .anchorjs-link {
  display: none;
}

html[data-rds-style="win95"] main a:not(.btn):not(.about-link):not(.anchorjs-link) {
  color: #1a0094;
  text-decoration: underline;
}

html[data-rds-style="win95"] main a:not(.btn):not(.about-link):not(.anchorjs-link):hover {
  color: #2d49eb;
}

/* menu bar */
html[data-rds-style="win95"] .navbar {
  background-color: var(--w-face) !important;
  border-bottom: 2px outset #ffffff;
  box-shadow: none;
  font-family: var(--w-font);
}

html[data-rds-style="win95"] .navbar-brand {
  background: var(--w-title);
  padding: 2px 8px;
}

html[data-rds-style="win95"] .navbar .nav-link {
  color: var(--w-soft);
  padding-left: 9px;
  padding-right: 9px;
}

html[data-rds-style="win95"] .navbar .nav-link:hover,
html[data-rds-style="win95"] .navbar .nav-link.active {
  background: var(--w-navy);
  color: #ffffff;
}

html[data-rds-style="win95"] .navbar .bi,
html[data-rds-style="win95"] .navbar .aa-DetachedSearchButtonIcon,
html[data-rds-style="win95"] .navbar .aa-DetachedSearchButton {
  color: var(--w-soft);
}

html[data-rds-style="win95"] .navbar .nav-link:hover .bi {
  color: #ffffff;
}

html[data-rds-style="win95"] .navbar-toggler-icon {
  filter: invert(1);
}

/* taskbar */
html[data-rds-style="win95"] .nav-footer {
  background-color: var(--w-face) !important;
  border-top: 2px outset #ffffff;
  color: var(--w-ink);
  font-family: var(--w-font);
}

html[data-rds-style="win95"] .nav-footer a {
  color: var(--w-ink);
}

html[data-rds-style="win95"] .nav-footer-left p {
  display: inline-block;
  border: 2px inset #ffffff;
  padding: 1px 8px;
  margin: 0;
}

html[data-rds-style="win95"] .rds-style-picker select {
  background: #ffffff;
  color: var(--w-ink);
  border: 2px inset #ffffff;
  border-radius: 0;
}

/* "On this page" is its own small window */
html[data-rds-style="win95"] #TOC {
  background: var(--w-face);
  border: 2px outset #ffffff;
  box-shadow: 1.5px 1.5px #000000;
  padding: 0.5rem;
  margin-top: 1rem;
}

html[data-rds-style="win95"] .sidebar #toc-title {
  color: var(--w-ink);
  font-weight: 700;
}

html[data-rds-style="win95"] .sidebar nav[role="doc-toc"] ul > li > a {
  color: var(--w-ink);
  border-left-color: transparent;
}

html[data-rds-style="win95"] .sidebar nav[role="doc-toc"] ul > li > a:hover,
html[data-rds-style="win95"] .sidebar nav[role="doc-toc"] ul > li > a.active {
  background: var(--w-navy);
  color: #ffffff !important;
  border-left-color: transparent !important;
}

/* buttons */
html[data-rds-style="win95"] .btn,
html[data-rds-style="win95"] .btn:hover,
html[data-rds-style="win95"] .about-entity .about-links .about-link,
html[data-rds-style="win95"] .rds-submit-button,
html[data-rds-style="win95"] .rds-submit-button:hover {
  background: var(--w-face);
  color: var(--w-ink);
  border: 2px outset #ffffff;
  border-radius: 0;
  box-shadow: 1.5px 1.5px #000000;
  font-family: var(--w-font);
  font-weight: 400;
  filter: none;
  transform: none;
  transition: none;
}

html[data-rds-style="win95"] .btn:active,
html[data-rds-style="win95"] .about-entity .about-links .about-link:active,
html[data-rds-style="win95"] .rds-submit-button:active {
  border-style: inset;
  box-shadow: -1px -1px #000000;
  color: #424242;
}

html[data-rds-style="win95"] .btn-primary,
html[data-rds-style="win95"] .rds-submit-button {
  font-weight: 700;
  outline: 1px solid #000000;
}

html[data-rds-style="win95"] .about-link :is(i, .about-link-text) {
  color: inherit;
}

/* cards and forms are windows */
html[data-rds-style="win95"] .rds-card,
html[data-rds-style="win95"] .quarto-grid-item.card,
html[data-rds-style="win95"] .rds-contact-form {
  background: var(--w-face);
  border: 2px outset #ffffff;
  border-radius: 0;
  box-shadow: 1.5px 1.5px #000000;
  color: var(--w-ink);
}

html[data-rds-style="win95"] .rds-card {
  padding: 2px 2px 0.5rem;
}

html[data-rds-style="win95"] .rds-card > * {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
}

html[data-rds-style="win95"] .rds-card > p:first-child {
  margin: 0 0 0.9rem;
}

html[data-rds-style="win95"] .rds-kicker {
  font-family: var(--w-font);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--w-navy);
}

html[data-rds-style="win95"] .rds-card > p:first-child .rds-kicker {
  background: var(--w-title);
  color: #ffffff;
  text-transform: none;
  font-size: 0.85rem;
  padding: 3px 8px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the record: three sunken status fields */
html[data-rds-style="win95"] .rds-stat {
  background: #ffffff;
  border: 2px inset #ffffff;
  padding: 0.5rem 0.75rem;
}

html[data-rds-style="win95"] .rds-stat-num {
  letter-spacing: 0;
}

/* decision point is a tooltip */
html[data-rds-style="win95"] .decision-point {
  background: #ffffe1;
  border: 1px solid #000000;
  border-radius: 0;
  box-shadow: 1.5px 1.5px #000000;
  color: var(--w-ink);
}

html[data-rds-style="win95"] main figure img,
html[data-rds-style="win95"] main iframe,
html[data-rds-style="win95"] .about-image {
  border: 2px inset #ffffff;
  border-radius: 0;
}

html[data-rds-style="win95"] figcaption,
html[data-rds-style="win95"] .figure-caption {
  color: var(--w-soft);
}

html[data-rds-style="win95"] code {
  background-color: #ffffff;
  color: var(--w-ink);
  border: 1px solid var(--w-shadow);
}

html[data-rds-style="win95"] .quarto-about-trestles .about-entity {
  border-right-color: var(--w-shadow);
}

/* writing list and posts */
html[data-rds-style="win95"] .quarto-grid-item.card .card-title,
html[data-rds-style="win95"] .quarto-grid-item.card .listing-title {
  color: var(--w-ink);
}

html[data-rds-style="win95"] .quarto-grid-item.card .card-attribution,
html[data-rds-style="win95"] .quarto-title-meta,
html[data-rds-style="win95"] .quarto-title-meta-heading,
html[data-rds-style="win95"] .description {
  color: var(--w-soft);
}

html[data-rds-style="win95"] .listing-category,
html[data-rds-style="win95"] .quarto-category {
  background: var(--w-face);
  border: 1px solid var(--w-shadow) !important;
  border-radius: 0;
  color: var(--w-ink) !important;
}

html[data-rds-style="win95"] .quarto-listing-category-title,
html[data-rds-style="win95"] .quarto-listing-category .category {
  color: #ffffff;
}

/* contact form */
html[data-rds-style="win95"] .rds-form-header {
  border-left: 0;
  padding-left: 0;
}

html[data-rds-style="win95"] .rds-form-header p,
html[data-rds-style="win95"] .rds-help-text,
html[data-rds-style="win95"] .rds-form-field label {
  color: var(--w-ink);
}

html[data-rds-style="win95"] .rds-form-field label span {
  color: #a40000;
}

html[data-rds-style="win95"] .rds-form-field input,
html[data-rds-style="win95"] .rds-form-field textarea {
  background: #ffffff;
  border: 2px inset #ffffff;
  border-radius: 0;
  color: var(--w-ink);
  padding: 0.35rem 0.5rem;
  transition: none;
}

html[data-rds-style="win95"] .rds-form-field input::placeholder,
html[data-rds-style="win95"] .rds-form-field textarea::placeholder {
  color: #5a5a5a;
}

html[data-rds-style="win95"] .rds-form-field input:focus,
html[data-rds-style="win95"] .rds-form-field textarea:focus {
  outline: 1px dotted #000000;
  border-color: #ffffff;
  box-shadow: none;
}

html[data-rds-style="win95"] .rds-submit-button {
  padding: 0.35rem 1.1rem;
}

/* ── psychometric ───────────────────────────────────────────────────────────
   Half measurement paper, half answer sheet, printed in answer-sheet green on graph paper.
   From the paper: item characteristic curves from the 2PL model beside the hero, sections
   indexed θ₁, θ₂, …, the record as a matrix, the decision point as a cut score, and the
   model in the footer. From the answer sheet: timing marks down the left edge, lists and
   the page contents as bubbles that pencil in under the pointer, each service card as an
   item with one bubble marked, buttons as bubbles, and STOP at the foot of the page.
   Everything decorative is drawn in CSS; no content changes. */
@counter-style rds-subscript {
  system: numeric;
  symbols: "\2080" "\2081" "\2082" "\2083" "\2084" "\2085" "\2086" "\2087" "\2088" "\2089";
}

html[data-rds-style="psychometric"] {
  --p-paper: #fdfbf4;
  --p-ink: #1b2130;
  --p-muted: #566070;
  --p-rule: #c9c4b4;
  --p-form: #1c7a4a;
  --p-tint: #e2f1e6;
  --p-pencil: #2b2b2e;
  --p-blue: #1d4ed8;
  --p-amber: #b45309;
  --p-navy: #172033;
  --p-serif: "STIX Two Text", "Latin Modern Roman", Cambria, Georgia, "Times New Roman", serif;
  --p-mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bs-body-bg: var(--p-paper);
  --bs-body-color: var(--p-ink);
  --bs-body-color-rgb: 27, 33, 48;
  --bs-heading-color: var(--p-ink);
  --bs-link-color: var(--p-form);
  --bs-link-color-rgb: 28, 122, 74;
  --bs-link-hover-color: var(--p-blue);
  --bs-link-hover-color-rgb: 29, 78, 216;
  --bs-border-color: var(--p-rule);
  --bs-secondary-color: var(--p-muted);
  --rds-navy: var(--p-ink);
  --rds-slate: var(--p-muted);
  --rds-teal: var(--p-form);
  --rds-aqua: var(--p-form);
  --rds-amber: var(--p-amber);
  --rds-white: #ffffff;
  --rds-border: var(--p-rule);

  color-scheme: light;
}

/* graph paper */
html[data-rds-style="psychometric"] body {
  background-color: var(--p-paper);
  background-image:
    linear-gradient(rgba(28, 122, 74, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 122, 74, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--p-ink);
  font-family: var(--p-serif);
  font-size: 1.06rem;
  letter-spacing: 0;
}

html[data-rds-style="psychometric"] ::selection {
  background: var(--p-form);
  color: #ffffff;
}

html[data-rds-style="psychometric"] :focus-visible {
  outline: 2px solid var(--p-blue);
  outline-offset: 2px;
}

html[data-rds-style="psychometric"] .quarto-color-scheme-toggle {
  display: none;
}

html[data-rds-style="psychometric"] :is(h1, h2, h3, h4, h5, h6, .title) {
  color: var(--p-ink);
  font-family: var(--p-serif);
  letter-spacing: 0;
}

/* sections are indexed like parameters: θ₁, θ₂, … */
html[data-rds-style="psychometric"] main {
  counter-reset: rds-section;
}

html[data-rds-style="psychometric"] main h2:not(.listing-title) {
  counter-increment: rds-section;
  border-bottom: 1px solid var(--p-ink);
}

html[data-rds-style="psychometric"] main h2:not(.listing-title)::before {
  content: "\03b8" counter(rds-section, rds-subscript);
  font-style: italic;
  font-weight: 400;
  color: var(--p-form);
  margin-right: 0.55em;
}

html[data-rds-style="psychometric"] main a:not(.btn):not(.about-link):not(.anchorjs-link) {
  color: var(--p-form);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

html[data-rds-style="psychometric"] main a:not(.btn):not(.about-link):not(.anchorjs-link):hover {
  color: var(--p-blue);
}

/* the hero sits beside three item characteristic curves */
@media (min-width: 992px) {
  html[data-rds-style="psychometric"] .hero {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 260'%3E%3Cg fill='none' stroke='%231b2130' stroke-width='1'%3E%3Cpath d='M40 16V220H404'/%3E%3Cpath d='M40 220v5'/%3E%3Cpath d='M85 220v5'/%3E%3Cpath d='M130 220v5'/%3E%3Cpath d='M175 220v5'/%3E%3Cpath d='M220 220v5'/%3E%3Cpath d='M265 220v5'/%3E%3Cpath d='M310 220v5'/%3E%3Cpath d='M355 220v5'/%3E%3Cpath d='M400 220v5'/%3E%3Cpath d='M35 20H40M35 120H40'/%3E%3Cpath d='M40 120H400' stroke-dasharray='3 4' stroke='%238a8f98'/%3E%3C/g%3E%3Cpath d='M40.0,204.8 L44.5,203.4 L49.0,201.8 L53.5,200.0 L58.0,198.2 L62.5,196.2 L67.0,194.0 L71.5,191.6 L76.0,189.1 L80.5,186.4 L85.0,183.5 L89.5,180.4 L94.0,177.2 L98.5,173.7 L103.0,170.1 L107.5,166.2 L112.0,162.2 L116.5,158.0 L121.0,153.6 L125.5,149.1 L130.0,144.5 L134.5,139.7 L139.0,134.9 L143.5,130.0 L148.0,125.0 L152.5,120.0 L157.0,115.0 L161.5,110.0 L166.0,105.1 L170.5,100.3 L175.0,95.5 L179.5,90.9 L184.0,86.4 L188.5,82.0 L193.0,77.8 L197.5,73.8 L202.0,69.9 L206.5,66.3 L211.0,62.8 L215.5,59.6 L220.0,56.5 L224.5,53.6 L229.0,50.9 L233.5,48.4 L238.0,46.0 L242.5,43.8 L247.0,41.8 L251.5,40.0 L256.0,38.2 L260.5,36.6 L265.0,35.2 L269.5,33.8 L274.0,32.6 L278.5,31.5 L283.0,30.4 L287.5,29.5 L292.0,28.6 L296.5,27.8 L301.0,27.1 L305.5,26.5 L310.0,25.9 L314.5,25.3 L319.0,24.8 L323.5,24.4 L328.0,24.0 L332.5,23.6 L337.0,23.3 L341.5,23.0 L346.0,22.7 L350.5,22.4 L355.0,22.2 L359.5,22.0 L364.0,21.8 L368.5,21.6 L373.0,21.5 L377.5,21.3 L382.0,21.2 L386.5,21.1 L391.0,21.0 L395.5,20.9 L400.0,20.8' fill='none' stroke='%231c7a4a' stroke-width='2.2'/%3E%3Ccircle cx='152.5' cy='120' r='3.2' fill='%231c7a4a'/%3E%3Cpath d='M40.0,219.7 L44.5,219.6 L49.0,219.5 L53.5,219.5 L58.0,219.4 L62.5,219.3 L67.0,219.1 L71.5,219.0 L76.0,218.8 L80.5,218.6 L85.0,218.4 L89.5,218.1 L94.0,217.8 L98.5,217.4 L103.0,216.9 L107.5,216.4 L112.0,215.8 L116.5,215.1 L121.0,214.3 L125.5,213.3 L130.0,212.2 L134.5,210.9 L139.0,209.4 L143.5,207.6 L148.0,205.6 L152.5,203.4 L157.0,200.8 L161.5,197.8 L166.0,194.4 L170.5,190.6 L175.0,186.4 L179.5,181.7 L184.0,176.5 L188.5,170.8 L193.0,164.6 L197.5,158.0 L202.0,151.0 L206.5,143.5 L211.0,135.9 L215.5,128.0 L220.0,120.0 L224.5,112.0 L229.0,104.1 L233.5,96.5 L238.0,89.0 L242.5,82.0 L247.0,75.4 L251.5,69.2 L256.0,63.5 L260.5,58.3 L265.0,53.6 L269.5,49.4 L274.0,45.6 L278.5,42.2 L283.0,39.2 L287.5,36.6 L292.0,34.4 L296.5,32.4 L301.0,30.6 L305.5,29.1 L310.0,27.8 L314.5,26.7 L319.0,25.7 L323.5,24.9 L328.0,24.2 L332.5,23.6 L337.0,23.1 L341.5,22.6 L346.0,22.2 L350.5,21.9 L355.0,21.6 L359.5,21.4 L364.0,21.2 L368.5,21.0 L373.0,20.9 L377.5,20.7 L382.0,20.6 L386.5,20.5 L391.0,20.5 L395.5,20.4 L400.0,20.3' fill='none' stroke='%232b2b2e' stroke-width='2.2'/%3E%3Ccircle cx='220.0' cy='120' r='3.2' fill='%232b2b2e'/%3E%3Cpath d='M40.0,217.6 L44.5,217.4 L49.0,217.2 L53.5,216.9 L58.0,216.7 L62.5,216.4 L67.0,216.1 L71.5,215.8 L76.0,215.4 L80.5,215.1 L85.0,214.7 L89.5,214.3 L94.0,213.8 L98.5,213.3 L103.0,212.7 L107.5,212.2 L112.0,211.5 L116.5,210.9 L121.0,210.1 L125.5,209.4 L130.0,208.5 L134.5,207.6 L139.0,206.7 L143.5,205.6 L148.0,204.5 L152.5,203.4 L157.0,202.1 L161.5,200.8 L166.0,199.3 L170.5,197.8 L175.0,196.2 L179.5,194.4 L184.0,192.6 L188.5,190.6 L193.0,188.6 L197.5,186.4 L202.0,184.1 L206.5,181.7 L211.0,179.2 L215.5,176.5 L220.0,173.7 L224.5,170.8 L229.0,167.8 L233.5,164.6 L238.0,161.4 L242.5,158.0 L247.0,154.5 L251.5,151.0 L256.0,147.3 L260.5,143.5 L265.0,139.7 L269.5,135.9 L274.0,131.9 L278.5,128.0 L283.0,124.0 L287.5,120.0 L292.0,116.0 L296.5,112.0 L301.0,108.1 L305.5,104.1 L310.0,100.3 L314.5,96.5 L319.0,92.7 L323.5,89.0 L328.0,85.5 L332.5,82.0 L337.0,78.6 L341.5,75.4 L346.0,72.2 L350.5,69.2 L355.0,66.3 L359.5,63.5 L364.0,60.8 L368.5,58.3 L373.0,55.9 L377.5,53.6 L382.0,51.4 L386.5,49.4 L391.0,47.4 L395.5,45.6 L400.0,43.8' fill='none' stroke='%231d4ed8' stroke-width='2.2'/%3E%3Ccircle cx='287.5' cy='120' r='3.2' fill='%231d4ed8'/%3E%3Cg font-family='Georgia,serif' font-style='italic' font-size='13' fill='%231b2130'%3E%3Ctext x='392' y='246'%3E%CE%B8%3C/text%3E%3Ctext x='4' y='14'%3EP(%CE%B8)%3C/text%3E%3Ctext x='14' y='24' font-style='normal' font-size='10'%3E1%3C/text%3E%3Ctext x='10' y='124' font-style='normal' font-size='10'%3E.5%3C/text%3E%3Ctext x='34' y='240' font-style='normal' font-size='10'%3E%E2%88%924%3C/text%3E%3Ctext x='217' y='240' font-style='normal' font-size='10'%3E0%3C/text%3E%3Ctext x='396' y='240' font-style='normal' font-size='10' text-anchor='end'%3E4%3C/text%3E%3C/g%3E%3C/svg%3E") right 1rem center / 440px auto no-repeat;
  }

  html[data-rds-style="psychometric"] .hero h1,
  html[data-rds-style="psychometric"] .hero p {
    max-width: min(760px, calc(100% - 500px));
  }
}

/* running head and foot */
html[data-rds-style="psychometric"] .navbar {
  background-color: var(--p-navy) !important;
  border-bottom: 3px double #9fd8b5;
  box-shadow: none;
}

html[data-rds-style="psychometric"] .navbar .nav-link {
  font-family: var(--p-serif);
  font-variant: small-caps;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}

html[data-rds-style="psychometric"] .navbar .nav-link:hover,
html[data-rds-style="psychometric"] .navbar .nav-link.active {
  color: #9fd8b5;
}

html[data-rds-style="psychometric"] .navbar .bi,
html[data-rds-style="psychometric"] .navbar .aa-DetachedSearchButtonIcon {
  color: #cbd5e1;
}

html[data-rds-style="psychometric"] .nav-footer {
  background-color: var(--p-navy) !important;
  border-top: 3px double #9fd8b5;
  color: #cbd5e1;
  font-family: var(--p-serif);
}

html[data-rds-style="psychometric"] .nav-footer a {
  color: #f8fafc;
}

html[data-rds-style="psychometric"] .nav-footer-center::before {
  content: "P(\03b8) = 1 / (1 + exp(\2212 a(\03b8 \2212 b)))";
  display: block;
  font-style: italic;
  color: #9fd8b5;
  margin-bottom: 0.35rem;
}

html[data-rds-style="psychometric"] .rds-style-picker select {
  border-radius: 0;
  font-family: var(--p-serif);
}

/* contents */
html[data-rds-style="psychometric"] .sidebar #toc-title {
  font-family: var(--p-serif);
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .sidebar nav[role="doc-toc"] ul > li > a {
  color: var(--p-muted);
  border-left-color: var(--p-rule);
}

html[data-rds-style="psychometric"] .sidebar nav[role="doc-toc"] ul > li > a:hover,
html[data-rds-style="psychometric"] .sidebar nav[role="doc-toc"] ul > li > a.active {
  color: var(--p-form) !important;
  border-left-color: var(--p-form) !important;
}

/* buttons */
html[data-rds-style="psychometric"] .btn,
html[data-rds-style="psychometric"] .about-entity .about-links .about-link,
html[data-rds-style="psychometric"] .rds-submit-button {
  border: 1px solid var(--p-ink);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--p-serif);
  font-variant: small-caps;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  filter: none;
}

html[data-rds-style="psychometric"] .btn-primary,
html[data-rds-style="psychometric"] .rds-submit-button {
  background: var(--p-ink);
  color: var(--p-paper);
}

html[data-rds-style="psychometric"] .btn-primary:hover,
html[data-rds-style="psychometric"] .rds-submit-button:hover {
  background: var(--p-form);
  border-color: var(--p-form);
  color: #ffffff;
  transform: none;
}

html[data-rds-style="psychometric"] .btn-outline-secondary,
html[data-rds-style="psychometric"] .about-entity .about-links .about-link {
  background: #ffffff;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .btn-outline-secondary:hover,
html[data-rds-style="psychometric"] .about-entity .about-links .about-link:hover {
  background: var(--p-ink);
  color: var(--p-paper);
}

html[data-rds-style="psychometric"] .about-link :is(i, .about-link-text) {
  color: inherit;
}

/* cards are items, numbered in a legend on the frame */
html[data-rds-style="psychometric"] .rds-card,
html[data-rds-style="psychometric"] .quarto-grid-item.card,
html[data-rds-style="psychometric"] .rds-contact-form {
  background: #ffffff;
  border: 1px solid var(--p-ink);
  border-radius: 0;
  box-shadow: none;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .grid {
  counter-reset: rds-item;
}

html[data-rds-style="psychometric"] .rds-card {
  position: relative;
  counter-increment: rds-item;
}

html[data-rds-style="psychometric"] .rds-card::after {
  content: "Item " counter(rds-item);
  position: absolute;
  top: -0.75em;
  right: 1rem;
  padding: 0 0.45em;
  background: #ffffff;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--p-muted);
}

html[data-rds-style="psychometric"] .rds-kicker {
  font-family: var(--p-mono);
  color: var(--p-form);
}

/* the record is a matrix: square brackets around the three figures */
html[data-rds-style="psychometric"] .rds-record {
  padding: 0.9rem 1.4rem;
  border-left: 2px solid var(--p-ink);
  border-right: 2px solid var(--p-ink);
  background:
    linear-gradient(var(--p-ink), var(--p-ink)) left top / 12px 2px no-repeat,
    linear-gradient(var(--p-ink), var(--p-ink)) left bottom / 12px 2px no-repeat,
    linear-gradient(var(--p-ink), var(--p-ink)) right top / 12px 2px no-repeat,
    linear-gradient(var(--p-ink), var(--p-ink)) right bottom / 12px 2px no-repeat;
}

html[data-rds-style="psychometric"] .rds-stat {
  border-top: 0;
  padding-top: 0;
}

html[data-rds-style="psychometric"] .rds-stat-num {
  font-family: var(--p-serif);
  letter-spacing: 0;
}

/* decision point is a cut score: a dashed line through the scale */
html[data-rds-style="psychometric"] .decision-point {
  background: transparent;
  border: 0;
  border-left: 2px dashed var(--p-amber);
  border-radius: 0;
  color: var(--p-ink);
  font-style: italic;
}

html[data-rds-style="psychometric"] .decision-point strong {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--p-amber);
}

/* figures */
html[data-rds-style="psychometric"] main figure img,
html[data-rds-style="psychometric"] main iframe,
html[data-rds-style="psychometric"] .about-image {
  border: 1px solid var(--p-ink);
  border-radius: 0;
}

html[data-rds-style="psychometric"] figcaption,
html[data-rds-style="psychometric"] .figure-caption {
  font-style: italic;
  color: var(--p-muted);
}

html[data-rds-style="psychometric"] figcaption::before {
  content: "Figure. ";
  font-style: normal;
  font-weight: 700;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] code {
  background-color: rgba(28, 122, 74, 0.08);
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .quarto-about-trestles .about-entity {
  border-right-color: var(--p-ink);
}

/* writing list and posts */
html[data-rds-style="psychometric"] .quarto-grid-item.card .card-title,
html[data-rds-style="psychometric"] .quarto-grid-item.card .listing-title {
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .quarto-grid-item.card .card-attribution,
html[data-rds-style="psychometric"] .quarto-title-meta,
html[data-rds-style="psychometric"] .quarto-title-meta-heading,
html[data-rds-style="psychometric"] .description {
  color: var(--p-muted);
}

html[data-rds-style="psychometric"] .listing-category,
html[data-rds-style="psychometric"] .quarto-category {
  border-color: var(--p-ink) !important;
  border-radius: 0;
  font-style: italic;
  color: var(--p-ink) !important;
}

html[data-rds-style="psychometric"] .quarto-listing-category-title {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .quarto-listing-category .category {
  color: var(--p-muted);
}

/* contact form: answer blanks */
html[data-rds-style="psychometric"] .rds-form-header {
  border-left: 2px solid var(--p-form);
}

html[data-rds-style="psychometric"] .rds-form-header p,
html[data-rds-style="psychometric"] .rds-help-text {
  color: var(--p-muted);
}

html[data-rds-style="psychometric"] .rds-form-field label {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .rds-form-field label span {
  color: var(--p-amber);
}

html[data-rds-style="psychometric"] .rds-form-field input,
html[data-rds-style="psychometric"] .rds-form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--p-ink);
  border-radius: 0;
  color: var(--p-ink);
}

html[data-rds-style="psychometric"] .rds-form-field textarea {
  border: 1px solid var(--p-ink);
}

html[data-rds-style="psychometric"] .rds-form-field input::placeholder,
html[data-rds-style="psychometric"] .rds-form-field textarea::placeholder {
  color: #7a8492;
  font-style: italic;
}

html[data-rds-style="psychometric"] .rds-form-field input:focus,
html[data-rds-style="psychometric"] .rds-form-field textarea:focus {
  outline: none;
  border-color: var(--p-form);
  box-shadow: 0 2px 0 var(--p-form);
}

/* timing marks down the left edge of the sheet */
@media (min-width: 768px) {
  html[data-rds-style="psychometric"] body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 7px;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
      var(--p-pencil) 0 14px, transparent 14px 30px);
  }
}

/* section headings sit on a printed band */
html[data-rds-style="psychometric"] main h2:not(.listing-title) {
  background: var(--p-tint);
  border-bottom: 2px solid var(--p-form);
  padding: 0.3rem 0.6rem;
}

/* lists are answer bubbles, lettered A, B, C, … for as long as the list runs; the one
   under the pointer is pencilled in */
html[data-rds-style="psychometric"] main section > ul {
  counter-reset: rds-bubble;
  list-style: none;
  padding-left: 2.6em;
}

html[data-rds-style="psychometric"] main section > ul > li {
  counter-increment: rds-bubble;
  position: relative;
  margin-bottom: 0.3em;
}

html[data-rds-style="psychometric"] main section > ul > li::before {
  content: counter(rds-bubble, upper-alpha);
  position: absolute;
  left: -2.9em;
  top: 0.18em;
  width: 1.9em;
  height: 1.9em;
  border: 1.5px solid var(--p-form);
  border-radius: 50%;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66em;
  line-height: 1.75em;
  text-align: center;
  color: var(--p-form);
}


html[data-rds-style="psychometric"] main section > ul > li:hover::before {
  background: var(--p-pencil);
  border-color: var(--p-pencil);
  color: var(--p-pencil);
  transform: rotate(-12deg) scale(1.04, 1);
}

/* the page contents are bubbles too, with the current section marked */
html[data-rds-style="psychometric"] .sidebar nav[role="doc-toc"] ul > li > a {
  border-left: 0 !important;
  padding-left: 0;
}

html[data-rds-style="psychometric"] .sidebar nav[role="doc-toc"] ul > li > a::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.5em;
  border: 1.5px solid var(--p-form);
  border-radius: 50%;
  background: #ffffff;
  vertical-align: -0.05em;
}

html[data-rds-style="psychometric"] .sidebar nav[role="doc-toc"] ul > li > a.active::before {
  background: var(--p-pencil);
  border-color: var(--p-pencil);
}

/* each service card is an item with its answer marked: A, then B, then C */
html[data-rds-style="psychometric"] .rds-card {
  padding-bottom: 3.4rem;
}

html[data-rds-style="psychometric"] .rds-card::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 1rem;
  width: 112px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 22'%3E%3Cellipse cx='11' cy='11' rx='9.6' ry='9.2' fill='%232b2b2e' transform='rotate(-12 11 11)'/%3E%3Ccircle cx='41' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='41' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3EB%3C/text%3E%3Ccircle cx='71' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='71' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3EC%3C/text%3E%3Ccircle cx='101' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='101' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3ED%3C/text%3E%3C/svg%3E") left center / contain no-repeat;
}

html[data-rds-style="psychometric"] .grid > :nth-child(3n + 2) .rds-card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 22'%3E%3Ccircle cx='11' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='11' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3EA%3C/text%3E%3Cellipse cx='41' cy='11' rx='9.6' ry='9.2' fill='%232b2b2e' transform='rotate(-12 41 11)'/%3E%3Ccircle cx='71' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='71' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3EC%3C/text%3E%3Ccircle cx='101' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='101' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3ED%3C/text%3E%3C/svg%3E");
}

html[data-rds-style="psychometric"] .grid > :nth-child(3n + 3) .rds-card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 22'%3E%3Ccircle cx='11' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='11' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3EA%3C/text%3E%3Ccircle cx='41' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='41' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3EB%3C/text%3E%3Cellipse cx='71' cy='11' rx='9.6' ry='9.2' fill='%232b2b2e' transform='rotate(-12 71 11)'/%3E%3Ccircle cx='101' cy='11' r='9.2' fill='%23fff' stroke='%231c7a4a' stroke-width='1.3'/%3E%3Ctext x='101' y='15' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='11' fill='%231c7a4a'%3ED%3C/text%3E%3C/svg%3E");
}

/* buttons are bubbles: the main one filled in, the others open */
html[data-rds-style="psychometric"] .btn,
html[data-rds-style="psychometric"] .about-entity .about-links .about-link,
html[data-rds-style="psychometric"] .rds-submit-button {
  border-radius: 999px;
  border-color: var(--p-form);
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

html[data-rds-style="psychometric"] .btn-primary,
html[data-rds-style="psychometric"] .rds-submit-button {
  background: var(--p-pencil);
  border-color: var(--p-pencil);
}

html[data-rds-style="psychometric"] .btn-primary:hover,
html[data-rds-style="psychometric"] .rds-submit-button:hover {
  background: var(--p-form);
  border-color: var(--p-form);
}

html[data-rds-style="psychometric"] .btn-outline-secondary:hover,
html[data-rds-style="psychometric"] .about-entity .about-links .about-link:hover {
  background: var(--p-pencil);
  border-color: var(--p-pencil);
}

/* printed frames are in form ink, not black */
html[data-rds-style="psychometric"] .rds-card,
html[data-rds-style="psychometric"] .quarto-grid-item.card,
html[data-rds-style="psychometric"] .rds-contact-form {
  border-color: var(--p-form);
}

html[data-rds-style="psychometric"] .rds-card::after {
  color: var(--p-form);
}

/* the foot of every page */
html[data-rds-style="psychometric"] #quarto-document-content::after {
  content: "STOP";
  display: block;
  width: max-content;
  margin: 3rem auto 0.5rem;
  padding: 0.15rem 1.1rem;
  border: 2px solid var(--p-form);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--p-form);
}

@media (prefers-reduced-motion: reduce) {
  html[data-rds-style="psychometric"] main section > ul > li:hover::before {
    transform: none;
  }
}

/* ── shared fixes for the optional styles ───────────────────────────────── */

/* links inside a writing card are the card itself, not inline links */
html[data-rds-style] main .quarto-listing a:not(.btn),
html[data-rds-style] main .quarto-grid-item a:not(.btn) {
  color: inherit !important;
  background: none !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

/* the search icon is drawn for a dark bar; the Windows 95 menu bar is silver */
html[data-rds-style="win95"] .navbar .aa-SubmitIcon,
html[data-rds-style="win95"] .navbar .aa-SubmitIcon path {
  color: var(--w-soft);
  fill: var(--w-soft);
}

/* on a phone the Windows 95 window gives its width back to the text */
@media (max-width: 575px) {
  html[data-rds-style="win95"] #quarto-document-content {
    padding: 0.75rem 0.6rem 1rem;
  }

  html[data-rds-style="win95"] .hero h1 {
    font-size: 2.1rem;
  }
}
