@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap");
@font-face {
  font-family: "Noto Sans";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/Noto-Sans-regular/Noto-Sans-regular.eot");
  src: url("../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix") format("embedded-opentype"), local("Noto Sans"), local("Noto-Sans-regular"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2") format("woff2"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.woff") format("woff"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf") format("truetype"), url("../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans") format("svg");
}
@font-face {
  font-family: "Noto Sans";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/Noto-Sans-700/Noto-Sans-700.eot");
  src: url("../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix") format("embedded-opentype"), local("Noto Sans Bold"), local("Noto-Sans-700"), url("../fonts/Noto-Sans-700/Noto-Sans-700.woff2") format("woff2"), url("../fonts/Noto-Sans-700/Noto-Sans-700.woff") format("woff"), url("../fonts/Noto-Sans-700/Noto-Sans-700.ttf") format("truetype"), url("../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans") format("svg");
}
@font-face {
  font-family: "Noto Sans";
  font-weight: 400;
  font-style: italic;
  src: url("../fonts/Noto-Sans-italic/Noto-Sans-italic.eot");
  src: url("../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix") format("embedded-opentype"), local("Noto Sans Italic"), local("Noto-Sans-italic"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2") format("woff2"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.woff") format("woff"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf") format("truetype"), url("../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans") format("svg");
}
@font-face {
  font-family: "Noto Sans";
  font-weight: 700;
  font-style: italic;
  src: url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot");
  src: url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix") format("embedded-opentype"), local("Noto Sans Bold Italic"), local("Noto-Sans-700italic"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2") format("woff2"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff") format("woff"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf") format("truetype"), url("../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans") format("svg");
}
.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight .cm {
  color: #999988;
  font-style: italic;
}

.highlight .cp {
  color: #999999;
  font-weight: bold;
}

.highlight .c1 {
  color: #999988;
  font-style: italic;
}

.highlight .cs {
  color: #999999;
  font-weight: bold;
  font-style: italic;
}

.highlight .c, .highlight .cd {
  color: #999988;
  font-style: italic;
}

.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}

.highlight .gd {
  color: #000000;
  background-color: #ffdddd;
}

.highlight .ge {
  color: #000000;
  font-style: italic;
}

.highlight .gr {
  color: #aa0000;
}

.highlight .gh {
  color: #999999;
}

.highlight .gi {
  color: #000000;
  background-color: #ddffdd;
}

.highlight .go {
  color: #888888;
}

.highlight .gp {
  color: #555555;
}

.highlight .gs {
  font-weight: bold;
}

.highlight .gu {
  color: #aaaaaa;
}

.highlight .gt {
  color: #aa0000;
}

.highlight .kc {
  color: #000000;
  font-weight: bold;
}

.highlight .kd {
  color: #000000;
  font-weight: bold;
}

.highlight .kn {
  color: #000000;
  font-weight: bold;
}

.highlight .kp {
  color: #000000;
  font-weight: bold;
}

.highlight .kr {
  color: #000000;
  font-weight: bold;
}

.highlight .kt {
  color: #445588;
  font-weight: bold;
}

.highlight .k, .highlight .kv {
  color: #000000;
  font-weight: bold;
}

.highlight .mf {
  color: #009999;
}

.highlight .mh {
  color: #009999;
}

.highlight .il {
  color: #009999;
}

.highlight .mi {
  color: #009999;
}

.highlight .mo {
  color: #009999;
}

.highlight .m, .highlight .mb, .highlight .mx {
  color: #009999;
}

.highlight .sb {
  color: #d14;
}

.highlight .sc {
  color: #d14;
}

.highlight .sd {
  color: #d14;
}

.highlight .s2 {
  color: #d14;
}

.highlight .se {
  color: #d14;
}

.highlight .sh {
  color: #d14;
}

.highlight .si {
  color: #d14;
}

.highlight .sx {
  color: #d14;
}

.highlight .sr {
  color: #009926;
}

.highlight .s1 {
  color: #d14;
}

.highlight .ss {
  color: #990073;
}

.highlight .s {
  color: #d14;
}

.highlight .na {
  color: #008080;
}

.highlight .bp {
  color: #999999;
}

.highlight .nb {
  color: #0086B3;
}

.highlight .nc {
  color: #445588;
  font-weight: bold;
}

.highlight .no {
  color: #008080;
}

.highlight .nd {
  color: #3c5d5d;
  font-weight: bold;
}

.highlight .ni {
  color: #800080;
}

.highlight .ne {
  color: #990000;
  font-weight: bold;
}

.highlight .nf {
  color: #990000;
  font-weight: bold;
}

.highlight .nl {
  color: #990000;
  font-weight: bold;
}

.highlight .nn {
  color: #555555;
}

.highlight .nt {
  color: #000080;
}

.highlight .vc {
  color: #008080;
}

.highlight .vg {
  color: #008080;
}

.highlight .vi {
  color: #008080;
}

.highlight .nv {
  color: #008080;
}

.highlight .ow {
  color: #000000;
  font-weight: bold;
}

.highlight .o {
  color: #000000;
  font-weight: bold;
}

.highlight .w {
  color: #bbbbbb;
}

.highlight {
  background-color: #f8f8f8;
}

body {
  background-color: #fff;
  padding: 50px;
  font: 14px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #727272;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  color: #222;
  margin: 0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin: 0 0 20px;
}

h1, h2, h3 {
  line-height: 1.1;
}

h1 {
  font-size: 28px;
}

h2 {
  color: #393939;
}

h3, h4, h5, h6 {
  color: #494949;
}

a {
  color: #267CB9;
  text-decoration: none;
}

a:hover, a:focus {
  color: #069;
  font-weight: bold;
}

a small {
  font-size: 11px;
  color: #777;
  margin-top: -0.3em;
  display: block;
}

a:hover small {
  color: #777;
}

.wrapper {
  width: 860px;
  margin: 0 auto;
}

blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code, pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color: #333;
}

pre {
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 700;
}

th {
  color: #444;
}

img {
  max-width: 100%;
}

kbd {
  background-color: #fafbfc;
  border: 1px solid #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #959da5;
  color: #444d56;
  display: inline-block;
  font-size: 11px;
  line-height: 10px;
  padding: 3px 5px;
  vertical-align: middle;
}

header {
  width: 270px;
  float: left;
  position: fixed;
  -webkit-font-smoothing: subpixel-antialiased;
}

ul.downloads {
  list-style: none;
  height: 40px;
  padding: 0;
  background: #f4f4f4;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  width: 270px;
}

.downloads li {
  width: 89px;
  float: left;
  border-right: 1px solid #e0e0e0;
  height: 40px;
}

.downloads li:first-child a {
  border-radius: 5px 0 0 5px;
}

.downloads li:last-child a {
  border-radius: 0 5px 5px 0;
}

.downloads a {
  line-height: 1;
  font-size: 11px;
  color: #676767;
  display: block;
  text-align: center;
  padding-top: 6px;
  height: 34px;
}

.downloads a:hover, .downloads a:focus {
  color: #675C5C;
  font-weight: bold;
}

.downloads ul a:active {
  background-color: #f0f0f0;
}

strong {
  color: #222;
  font-weight: 700;
}

.downloads li + li + li {
  border-right: none;
  width: 89px;
}

.downloads a strong {
  font-size: 14px;
  display: block;
  color: #222;
}

section {
  width: 500px;
  float: right;
  padding-bottom: 50px;
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

footer {
  width: 270px;
  float: left;
  position: fixed;
  bottom: 50px;
  -webkit-font-smoothing: subpixel-antialiased;
}

@media print, screen and (max-width: 960px) {
  div.wrapper {
    width: auto;
    margin: 0;
  }
  header, section, footer {
    float: none;
    position: static;
    width: auto;
  }
  header {
    padding-right: 320px;
  }
  section {
    border: 1px solid #e5e5e5;
    border-width: 1px 0;
    padding: 20px 0;
    margin: 0 0 20px;
  }
  header a small {
    display: inline;
  }
  header ul {
    position: absolute;
    right: 50px;
    top: 52px;
  }
}
@media print, screen and (max-width: 720px) {
  body {
    word-wrap: break-word;
  }
  header {
    padding: 0;
  }
  header ul, header p.view {
    position: static;
  }
  pre, code {
    word-wrap: normal;
  }
}
@media print, screen and (max-width: 480px) {
  body {
    padding: 15px;
  }
  .downloads {
    width: 99%;
  }
  .downloads li, .downloads li + li + li {
    width: 33%;
  }
}
@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}
/* Google Fonts - Crimson Text */
/* ========================================
   MODULAR SCSS STRUCTURE
   ======================================== */
/* Variables - Color definitions */
/* ========================================
   COLOR VARIABLES
   ======================================== */
/* Core Colors */
/* Crimson - primary brand color */
/* Dark crimson - hover states */
/* Yellow - link hover background */
/* Neutral Colors */
/* Backgrounds */
/* Scrollbar track */
/* Navigation hover */
/* Borders */
/* Text - counter, muted content */
/* Disabled backgrounds */
/* Disabled text */
/* Semantic Colors - Success */
/* Success message background */
/* Success message text */
/* Success message border */
/* Semantic Colors - Error */
/* Error message background */
/* Error message text */
/* Error message border */
/* Semantic Colors - Warning */
/* Warning state - amber/orange */
/* Semantic Colors - Danger */
/* Danger state - red */
/* Global - Base styles and layout */
/* ========================================
   GLOBAL STYLES
   ======================================== */
/* Prevent layout shift from scrollbar appearing/disappearing */
html {
  overflow-y: scroll;
}

/* Apply custom font */
body {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 700;
}

a:not(.heading-anchor):not(.site-navigation a):not(header h1 a):not(.btn-go-home):not(:has(img)):not(:visited):hover,
a:not(.heading-anchor):not(.site-navigation a):not(header h1 a):not(.btn-go-home):not(:has(img)):not(:visited):focus {
  background-color: #FFF4B3;
  font-weight: inherit;
}

/* Override default blue links with crimson */
a {
  color: #A51C30;
}

a:hover {
  color: #8B1829;
}

/* Custom width overrides for wider content */
div.shell {
  width: 900px;
}

/* Desktop: Position header and footer in fixed sidebar layout */
@media print, screen and (min-width: 961px) {
  /* Wrapper needs to be positioned for footer positioning */
  .wrapper {
    position: relative;
  }
  /* Make header sidebar use flexbox */
  header {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
  /* Header content (title, description, etc) that doesn't scroll */
  header > h1,
  header > p,
  header > img,
  header > .view,
  header > .downloads,
  header > .header-top {
    flex-shrink: 0;
  }
  /* Reduce gap between description and navigation */
  header > p:last-of-type {
    margin-bottom: 12px;
  }
  /* Navigation grows to fill available space and scrolls */
  header .site-navigation {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    min-height: 0; /* Important for flex child to scroll */
    padding-bottom: 240px; /* Space for fixed footer at bottom */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  /* Hide scrollbar for Chrome, Safari and Opera */
  header .site-navigation::-webkit-scrollbar {
    display: none;
  }
}
section#downloads,
div#no-downloads {
  width: 800px;
}

div#no-downloads span.inner {
  width: 800px;
}

span.banner-fix {
  width: 900px;
}

img {
  max-width: 800px;
}

/* Annotation diagram - responsive and never causes horizontal scroll */
.annotation-diagram {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Components - Shared components */
/* ========================================
   NAVIGATION
   ======================================== */
/* Header Layout */
.header-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.header-content {
  flex: 1;
}

/* Desktop: Allow flex layout to work properly for scrollable navigation */
@media print, screen and (min-width: 961px) {
  .header-top {
    display: block; /* Remove flexbox on desktop */
    margin-bottom: 0px; /* Reduce spacing on desktop */
  }
  .header-content {
    display: block;
  }
  .header-content > * {
    /* Let header content children behave normally on desktop */
    display: block;
  }
}
/* Hamburger Menu Button */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: 2px solid #e8a0ab; /* Very light crimson border */
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  /* Only transition visual properties, not layout or state */
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hamburger-menu:hover {
  background-color: #f0f0f0;
  border-color: #A51C30;
}

.hamburger-menu:focus {
  outline: none;
  border-color: #A51C30;
}

.hamburger-menu[aria-expanded=true] {
  border-color: #A51C30;
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #A51C30;
  border-radius: 2px;
  transition: all 0.2s ease; /* Faster animation to prevent freeze perception */
  will-change: transform, opacity; /* Hint browser to optimize animation */
}

/* Hamburger animation when menu is open */
.hamburger-menu[aria-expanded=true] .hamburger-icon:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-menu[aria-expanded=true] .hamburger-icon:nth-child(2) {
  opacity: 0;
}

.hamburger-menu[aria-expanded=true] .hamburger-icon:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Disable transitions for instant close when navigating */
.hamburger-menu.no-transition,
.hamburger-menu.no-transition .hamburger-icon {
  transition: none !important;
}

.site-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-navigation li {
  margin: 8px 0;
}

.site-navigation a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #A51C30;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.site-navigation a:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

.site-navigation a.active {
  background-color: #A51C30;
  color: white;
  font-weight: 600;
}

/* Mobile and Tablet Navigation */
@media print, screen and (max-width: 960px) {
  .wrapper header .site-navigation,
  .wrapper header .site-navigation ul {
    position: static;
    right: auto;
    top: auto;
  }
  .wrapper header {
    padding-right: 0;
  }
  .hamburger-menu {
    display: flex; /* Show hamburger on mobile and tablet */
  }
  .header-top {
    align-items: center;
    gap: 12px;
  }
  .header-content {
    display: flex;
    align-items: center;
  }
  .header-content p {
    display: none; /* Hide description on mobile/tablet */
  }
  .header-content h1 {
    font-size: clamp(1.1rem, 3.5vw, 1.75rem); /* Balanced responsive font size */
    margin: 0;
    padding: 0;
    line-height: 1.2;
  }
  .header-content h1 a {
    white-space: nowrap; /* Keep title on one line */
    display: inline-block;
    vertical-align: middle;
  }
  .site-navigation {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* Faster closing for better perceived performance */
  }
  .site-navigation.open {
    max-height: 500px; /* Adjust based on your menu height */
    /* Opening animation remains smooth */
  }
  /* Instant close when navigating (no animation delay) */
  .site-navigation:not(.open) {
    transition-duration: 0.15s; /* Faster close animation */
  }
  /* Disable transitions for instant close when navigating */
  .site-navigation.no-transition {
    transition: none !important;
  }
  /* Larger font size for mobile navigation */
  .site-navigation a {
    font-size: 18px;
    padding: 12px 16px;
  }
  .site-navigation li {
    margin: 4px 0;
  }
}
/* ========================================
   FOOTER
   ======================================== */
footer p {
  margin-bottom: 0;
}

.footer-metadata {
  font-size: 0.85em;
}

.footer-maintainer {
  margin-bottom: 0;
}

.footer-copyright {
  font-size: 0.8em;
  color: #666;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Desktop: Footer positioned at bottom of sidebar */
@media print, screen and (min-width: 961px) {
  footer {
    position: fixed;
    bottom: 0;
    left: calc(50% - 480px + 50px); /* Align with header: center wrapper (960px) then offset */
    width: 270px;
    padding-top: 24px;
    padding-bottom: 40px;
    padding-left: 0;
    padding-right: 50px;
    border-top: 1px solid #ddd;
    background-color: white;
    z-index: 10;
  }
}
/* ========================================
   HEADING ANCHOR LINKS
   ======================================== */
.heading-anchor {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.heading-anchor:hover {
  color: #A51C30;
  text-decoration: none;
}

h1:hover .heading-anchor::after,
h2:hover .heading-anchor::after,
h3:hover .heading-anchor::after,
h4:hover .heading-anchor::after,
h5:hover .heading-anchor::after,
h6:hover .heading-anchor::after {
  content: " #";
  color: #A51C30;
  font-size: 0.8em;
  font-weight: normal;
  opacity: 0.6;
}

/* Pages - Page-specific styles */
/* ========================================
   CHANGELOG PAGE
   ======================================== */
.changelog-box {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  background-color: #fafafa;
  margin: 20px 0;
}

.changelog-box::-webkit-scrollbar {
  width: 10px;
}

.changelog-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.changelog-box::-webkit-scrollbar-thumb {
  background: #A51C30;
  border-radius: 10px;
}

.changelog-box::-webkit-scrollbar-thumb:hover {
  background: #8B1829;
}

/* ========================================
   CONTACT PAGE - CONTRIBUTION FORM
   ======================================== */
.form-message {
  max-width: 600px;
  padding: 15px 0;
  margin-bottom: 20px;
  border-radius: 4px;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Expand form messages to full width on tablet screens */
@media print, screen and (min-width: 718px) and (max-width: 960px) {
  .form-message {
    max-width: 100%;
  }
}
.form-message .message-text {
  flex: 1;
  padding-left: 20px;
  padding-right: 15px;
}

.form-message .message-close {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 20px 0 0;
  margin: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  align-self: center;
}

.form-message .message-close:hover {
  opacity: 1;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-success .message-close {
  color: #155724;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-error .message-close {
  color: #721c24;
}

.contribution-form {
  max-width: 600px;
  margin-bottom: 40px;
}

/* Expand form to full width on tablet screens */
@media print, screen and (min-width: 718px) and (max-width: 960px) {
  .contribution-form {
    max-width: 100%;
  }
}
.contribution-form select,
.contribution-form input,
.contribution-form textarea {
  box-sizing: border-box;
}

.contribution-form .form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.contribution-form .form-group {
  margin-bottom: 15px;
}

.contribution-form .form-group-type {
  flex: 1.1;
}

.contribution-form .form-group-subject {
  flex: 1;
}

.contribution-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-family: "Crimson Text", Georgia, serif;
}

.contribution-form select,
.contribution-form input[type=text],
.contribution-form input[type=email],
.contribution-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 16px;
  background-color: #fafafa;
}

.contribution-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.contribution-form button[type=submit] {
  background-color: #A51C30;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 600;
  transition: background-color 0.2s ease;
  width: 100%;
}

.contribution-form button[type=submit]:hover:not(:disabled) {
  background-color: #8B1829;
}

.contribution-form button[type=submit]:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  min-height: 20px; /* Prevent layout shift */
}

.character-counter {
  font-size: 14px;
  color: #6b7280;
  text-align: right;
  font-family: "Crimson Text", Georgia, serif;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.character-counter-warning {
  color: #d97706;
  font-weight: 600;
}

.character-counter-full {
  color: #dc2626;
  font-weight: 600;
}

.truncation-notice-inline {
  color: #d97706;
  font-weight: 600;
  font-size: 14px;
  font-family: "Crimson Text", Georgia, serif;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex: 1;
}

.contribution-form .form-notice {
  font-size: 0.8em;
  text-align: center;
}

div.conduct-confidentiality-notice {
  margin-top: 20px;
  padding: 12px;
  border-left: 4px solid #A51C30;
  background-color: #fafafa;
  border-radius: 4px;
}
div.conduct-confidentiality-notice p {
  margin-bottom: 0px;
}

/* Expand conduct notice to full width on tablet screens */
@media print, screen and (min-width: 718px) and (max-width: 960px) {
  .conduct-confidentiality-notice {
    max-width: 100%;
  }
}
/* ========================================
   404 PAGE
   ======================================== */
.page-404-content {
  text-align: center;
  margin: 60px auto;
  padding: 0 20px;
  height: 100%;
}

.page-404-content .site-title-mobile {
  display: none;
  font-size: 24px;
  margin-bottom: 40px;
  color: #A51C30;
  font-weight: bold;
}

.page-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  justify-content: center;
  align-content: center;
  height: 100%;
}

.page-404-content pre {
  display: inline-block;
  text-align: left;
  max-width: 500px;
  font-size: 10px;
  line-height: 1.3;
  color: #333;
  border: none;
  background: none;
  padding: 0;
}

.page-404-content .error-number {
  font-size: 96px;
  color: #333;
  font-weight: bold;
  line-height: 1;
  text-align: center;
}

.page-404-content .error-title {
  font-size: 28px;
  color: #555;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
}

.page-404-content .error-description {
  font-size: 20px;
  color: #666;
  text-align: center;
  max-width: 600px;
  margin-bottom: 30px;
}

a.btn-go-home {
  display: inline-block;
  background-color: #A51C30;
  color: white;
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.2s ease;
}

a.btn-go-home:hover,
a.btn-go-home:focus,
a.btn-go-home:active,
a.btn-go-home:visited {
  color: white;
  text-decoration: none;
}

a.btn-go-home:hover {
  background-color: #8B1829;
}

/* Mobile Styling */
@media print, screen and (max-width: 960px) {
  /* Prevent horizontal scrolling */
  html body:has(.content-404) {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  html:has(.content-404) {
    overflow-x: hidden;
  }
  /* Center wrapper for 404 page */
  html body:has(.content-404) .wrapper {
    margin: 0;
    padding: 0;
  }
  html body:has(.content-404) section {
    border-bottom: none;
  }
  /* Hide header/navigation on mobile for 404 page */
  html body:has(.content-404) .content-404 ~ header,
  html body:has(.content-404) header {
    display: none;
  }
  /* Show site title on mobile for 404 page */
  html body:has(.content-404) .page-404-content .site-title-mobile {
    display: block;
    font-size: 32px;
    margin-bottom: 30px;
  }
  /* Make footer visible and properly positioned on mobile */
  html body:has(.content-404) footer {
    position: static;
    width: 100%;
    margin-top: 40px;
    text-align: center;
  }
  html body:has(.content-404) footer p {
    margin-left: auto;
    margin-right: auto;
  }
  /* Make ASCII art responsive on mobile */
  html body:has(.content-404) .page-404-content pre {
    font-size: 9px;
    max-width: 380px;
    line-height: 1.2;
  }
  /* Adjust 404 heading size on mobile */
  html body:has(.content-404) .page-404-content .error-number {
    font-size: 74px;
  }
  html body:has(.content-404) .page-404-content .error-title {
    font-size: 28px;
  }
  html body:has(.content-404) .page-404-content .error-description {
    font-size: 20px;
  }
}

/*# sourceMappingURL=style.css.map */