:root {
  --colour-pale-blue: #a4bace;
  --colour-dull-blue: #688fb1;
  --colour-black-pearl: #050607;
  --colour-strong-steel: #487296;
  --colour-dark-ice: #515e69;
  --colour-dark-steel-ice: #334d63;
  --colour-japanese-indigo: #243749;
  --colour-bunker: #2a2d30;
  --colour-manatee: #848485;
  --colour-black: #000000;
  
  --colour-amber: #FF7F11;
  --colour-maize: #E7BB41;
  --colour-corn: #E7E247;
  
  --colour-granny-smith: #ACEB98;
  --colour-sea-green: #0A8754;
  --colour-lime-green: #51CB20;
  --colour-spring-green: #0FFF95;
  
  --color-yellow: #FFAA33;
  --color-blue: #394C75; 
  --color-blue-dark: #2B364D;
  --color-blue-dark2: #000000; 

 --bg: var(--color-blue-dark2);
  --bg-elev-1: var(--colour-bunker);
  --bg-elev-2: var(--colour-dark-steel-ice);
  /* --accent: var(--colour-pale-blue); */
  /* --accent: var(--colour-maize); */
  /* --accent: #688fb1; */
  --accent: var(--colour-pale-blue);
  --accent-2: var(--colour-amber);
  --text: #ffffff;
  --text-dim: #cfd5df;
  --muted: var(--colour-manatee);
  --ring: color-mix(in oklab, var(--accent) 70%, white 30%);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.45);
  /* --radius: 12px; */
  --gap: clamp(10px, 2.5vw, 18px);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { height: 100%; }

body {
/*  color: #FFFFFF; */
/*  background-color: var(--color-blue-dark2); */
/*  background: url(/includes/header/camo.png) round; */
  margin: 0;
  font-family: Verdana, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(14px, .95vw + .6rem, 18px);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-left: 1rem;
}

:where(p, ul, ol) { margin: 0 0 0.75rem; }
:where(h1, h2, h3, h4) {
  margin: 0 0 .5rem;
  color: var(--text);
  font-style: italic; /* retro nod */
  text-shadow: 0 0 .35rem color-mix(in oklab, var(--text-dim) 65%, transparent);
  /* padding-left: 1rem; */
}

h1 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.2vw + .8rem, 1.8rem); }
h3 { font-size: clamp(1.05rem, .6vw + .7rem, 1.3rem); }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent) 60%, transparent);
  box-shadow: var(--shadow);
}

/* img { vertical-align:middle; } */
img { max-width: 100%; height: auto; vertical-align: middle; }


/* general link styles */
a { color: var(--colour-pale-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); text-decoration: none; }
a:active { color: var(--accent); }
a.selected, a.mark { color: var(--accent); }

/* a { color: #FFFFFF; background-color: transparent; cursor: pointer; }
a:visited { background-color: transparent; }
a:active { color: var(--colour-pale-blue); background-color: transparent; }
a:hover { color: var(--colour-pale-blue); text-decoration: none; background-color: transparent; }
a.mark:active { color: var(--colour-pale-blue); background-color: transparent; }
a.mark:hover { color: var(--colour-pale-blue); text-decoration: none; background-color: transparent; }
a.mark:visited { color: #C0C0C0; text-decoration: none; background-color: transparent; }
a.selected { color: var(--colour-pale-blue); text-decoration: none; } */

/* Brigade colour utility classes */
/* a.can, span.can, p.can { color: var(--colour-pale-blue); } */
/* a.can, span.can, p.can { color: var(--accent); } */
a.can, span.can, p.can { color: var(--text-dim); }

a.cau, span.cau, p.cau { color: #00dd00; }
a.cpc, span.cpc, p.cpc { color: #ff1459; }
a.osi, span.osi, p.osi { color: #48d1cc; }
a.sas, span.sas, p.sas { color: #6f7dff; }
a.sos, span.sos, p.sos { color: #ffd700; }
a.blu, span.blu, p.blu { color: #7382a1; }
a.casap, span.casap, p.casap { color: #808888; }
a.can:hover, a.cau:hover, a.cap:hover, a.cpc:hover, a.osi:hover, a.sas:hover, a.sos:hover { color: #fff; }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: calc(var(--radius) - 2px);
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


#wrap {
  margin: 0 auto;
  max-width: 1280px;
  padding-inline: clamp(10px, 3vw, 24px);
}


th { text-align: left; }
table { border-spacing: 0; }
/* End BODY or global properties */

/* Begin HEADER properties */
	/* div#topbar id styles */
	#topbar {
		background: url(/includes/header/topbar_bg.gif) repeat-x;
    background: url(/includes/header/camo.png) repeat-x;
		border-bottom: 1px solid var(--colour-pale-blue);
		font-size: 10px;
		color: #d3d3d6;
		height: 16px;
		margin-bottom: 10px;
		text-align: center;
}

/* #topbar {
  display: none;
} */

	#topbar a { font-size: 14px; margin-left: 8px; margin-right: 8px;}
  /* #menu, #menu ul {
	  padding-left: 295px; 
      padding-right: 20px;
  }

  #drop, #drop ul {
      padding-left: 295px; 
      padding-right: 20px;
  } */
#menu, #menu ul, #drop, #drop ul { list-style: none; margin: 0; padding: 0; padding-left: 295px; }
#menu nav, #drop nav { font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace; }
#menu ul {
  display: flex; flex-wrap: wrap; gap: clamp(6px, 1vw, 14px);
  padding-inline: clamp(0px, 1vw, 8px);
}
#menu li { position: relative; }
#menu li a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .45rem .8rem;
  font-size: clamp(1rem, .9vw + .6rem, 1.35rem);
  color: var(--text);
  text-decoration: none;
  /* border-radius: 10px; */
  /* background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); */
  /* box-shadow: var(--shadow); */
} 

/* #menu li a::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 12px;
  background: conic-gradient(from -4deg, transparent 0 70%, color-mix(in oklab, var(--accent) 45%, transparent) 70% 100%);
  filter: blur(10px); opacity: .22; z-index: -1;
} */

/* #menu li:hover > a { color: var(--accent); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)); } */

/* Dropdowns */
/* #menu ul li ul {
  position: absolute; left: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: var(--bg-elev-1);
  padding: .35rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  box-shadow: var(--shadow);
  display: grid; gap: 2px;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: visibility 0s linear .12s, opacity .12s ease, transform .12s ease;
} */
/* #menu li:hover > ul { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; } */
#menu li:hover > ul { color: var(--colour-pale-blue); background-color: var(--colour-black-pearl); }
#menu ul li ul li { display: block; }
#menu ul li ul a { font-size: .95rem; justify-content: start; width: 100%; border-radius: 8px; }



  #header, #header span, #header h1, #header ul, #header li, #header a {
          margin: 0;
          padding: 0;
          border-radius: 15px;
/*          border-radius: 15px; */
  }

  #header {
  	padding-top: 5px; padding-bottom: 12px; position: fixed; background-color: var(--color-blue-dark2);
  /*  background: url(/includes/header/camo.png) repeat-x; */

  }

  #header h1 a {
 	margin-right: 14px;
  	margin-bottom: 20px;
  	width: 297px;
  	height: 77px;
  	background: url(/includes/header/cryo.jpg) no-repeat;
    position: fixed;
  }

  #header h1 a {
  display: block;
  width: 297px; height: 77px;
  background: url(/includes/header/cryo.jpg) no-repeat center / contain;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
  margin: .50rem 0;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}

  #header span {
  	display: none;
  }

  #header ul {
  	list-style: none;
  /*  padding-left: 230px; */
  	padding-top: 8px;
  }

  #dropdown ul {
  	list-style: none;
    padding-left: 2px;
  	padding-top: 4px;
  }

  #header li {
    float: left;
  	padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 100px;
  }

  #header li a {
  	display: block;
  	text-align: center;
    padding-top: 16px;
  	min-width: 32px;
  	background-repeat: no-repeat;
/*  	position: relative; */
  }

  #header li a::before {
      /* Highlight color */
      background-color: var(--colour-dull-blue);
      content: "";
      position: absolute;
      width: calc(80% + 8px);
      height: 56%;
      left: 7px;
      bottom: 5;
      z-index: -1;
      transform: rotate(-2deg);
  }

  html>body #header li a {
  	 /* width: auto; */
  	background-position: center top;

  }

/*  #menu, #menu ul {
      padding-left: 230px;
      padding-right: 20px;
  } */



#drop {
    display: none;
}
#drop a {
  text-decoration: none;
}

#drop nav {
    font-family: monospace;
}

#drop ul {
/*  background: #2B364D; */
    list-style: none;
    margin: 5;
    padding-left: 0;
    padding-right: 0;
    border-radius: 15px;
}

#drop li {
    color: #fff;
  background: var(--color-blue-dark2);
    display: block;
    float: left;
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    text-decoration: none;
  transition-duration: 0.5s;
  border-radius: 0px;
}

#drop li a {
  color: #fff;
  font-size: 12px;
}

#drop li:hover {
    background: var(--colour-japanese-indigo);
    cursor: pointer;
}

#drop ul li ul {
    background: var(--color-blue-dark2); /* p */
    visibility: hidden;
    opacity: 0;
    min-width: 5rem;
    position: absolute;
    transition: all 0.5s ease;
    margin-top: 0.5rem;
    left: 0;
    display: none;
    padding-left: 0px;
    padding-right: 0rem;
}

#drop ul li:hover > ul,
ul li ul:hover {
  visibility: visible;
  opacity: 1;
  display: block;
}

#drop ul li ul li {
    clear: both;
    width: 100%;
/*    display: none; */
}


/* end dropdown */
  #menu a {
    text-decoration: none;
  }

  #menu nav {
      font-family: monospace;
  }

  #menu ul {
  /*  background: #2B364D; */
      list-style: none;
      margin: 5;
      padding-left: 0;
      padding-right: 0;
	border-radius: 15px;
  }

  #menu li {
      color: #fff;
/*    background: var(--color-blue-dark2); */
      display: block;
      float: left;
      /* padding-left: 1rem; */
      /* padding-top: 0.5rem; */
      padding-right: 1rem;
      padding-bottom: 0.5rem;
      position: relative;
      text-decoration: none;
    transition-duration: 0.5s;
    border-radius: 0px;
  }

  #menu li a {
    color: #fff;
    font-size: 24px;
  }

  #menu li:hover {
      background: var(--colour-black-pearl);
      cursor: pointer;
  }

  #menu ul li ul {
      background: var(--color-blue-dark2); /* p */
      visibility: hidden;
      opacity: 0;
      min-width: 5rem;
      position: absolute;
      transition: all 0.5s ease;
      margin-top: 0.5rem;
      left: 0;
      display: none;
      padding-left: 0px;
      padding-right: 0rem;
  }

  #menu ul li:hover > ul,
  ul li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
  }

  #menu ul li ul li {
      clear: both;
      width: 100%;
      display: none;
  }

	/* banner ad positioning */
	#header-left { padding-top: 5px; float: clear; margin: auto;  min-width: 600px}
	#ads { position: relative; top: 3px;  height: 60px;  width: 468px;}
	#ads a {padding-left: 10px; padding-right: 10px;  }

#user-info {
  position: fixed; right: clamp(16px, 3vw, 24px); top: .6rem;
  background: color-mix(in oklab, var(--colour-dark-ice) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  /* border-radius: 14px; */
  /* padding: .35rem .6rem; */
  padding: .0rem .3rem;
  box-shadow: var(--shadow);
}
#user-info td, #user-info label { font-size: .75rem; color: var(--text-dim); }

	/*#ads { position: relative; float: right; top: 3px; right: 10px; width: 468px; height: 60px; }*/
	#banner { text-align: center; }
  /* #footer { text-align: center; font-size: 16px;} */
#footer { text-align: center; font-size: 1rem; color: var(--muted); padding: 1.25rem 0 2rem; }

/* End HEADER properties */

/* Begin CONTENT properties */
/* #wrap {
	margin: auto;
	width: 1200px;
	padding-left: 10px;
	padding-right: 10px;
	} */
#wrap {
  margin: 0 auto;
  max-width: 1280px;
  padding-inline: clamp(10px, 3vw, 24px);
}

	/* HeadQuarters (myCA) specific styles */
	/* #main { width: 1000px; float: left; }
	#rightbar { width: 185px; float: right;  clear: right;} */

#main { width: 100%; display: grid; grid-template-columns: 1fr; gap: var(--gap); }
#rightbar { display: contents; } /* let modules decide width; legacy id kept */


		/* box styles */
		/* .box { margin-right: 5px; margin-bottom: 5px; padding: 2px; border: 1px solid #7382a1; }
		.box:hover { background: #293f70; } */

.box {
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.box:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(255,255,255,.03) inset, 0 14px 36px rgba(0,0,0,.55); }
.box .title, .box a.title { font-weight: 700; color: var(--colour-amber); }


.clearfix::after { content: ""; display: block; clear: both; }
.overflow { overflow-x: auto; overflow-wrap: anywhere; }
.smallitalic { font-style: italic; font-size: .9em; }
.header { font-size: 1em; }
.small, .smallalt { font-size: .95em; }
.smallalt { background-color: #364C7D; }
.alternate { background: #111; }

/*		.camo { background: url(/includes/images/camo.gif); } */
		#main .full { width: 989px; float: left; clear: both; }
		#big_main .full { width: 1159px; float: left; clear: both; }
		.forumsfull { width: 98%; float: left; clear: both; }
		#rightbar .full { width: 182px; }
		#main .half { width: 489px; float: left; /*height: 188px;*/ }
		#big_main .half { width: 574px; float: left; /*height: 188px;*/ }
		.left { clear: left; }
		.right { clear: right; }

		/* box typography */
		.box ul { position: relative; left: -10px; }
		/* .box p, .box li {font-size: 11px;} */
    .box p,
    .box li { font-size: clamp(14px, 0.25vw + 0.9rem, 16px); }
		.box a { text-decoration: none; }
		span.title, a.title { font-size: 12px; font-weight: bold; color: #fa3; float: left; clear: left;}
		a.title:hover { color: #fff; }
		.opt { font-size: 12px; color: #7382a1; float: right; clear: right;}
		.opt a:hover { color: #fff; }
		.prev { font-size: 12px; color: #7382a1; float: left; clear: left; }
		.next { font-size: 12px; color: #7382a1; float: right; clear: right; }


	/* Command specific styles */
	#command { border: 1px solid black; width: 700px; }
	#command-nav { text-align: right; width: 700px; }
	#command-title { border-bottom: 1px solid black; padding-left: 20px; }
	#command-body { padding: 10px; }
	#command-groups-td { padding-right: 20px; }
	#command-groups-p { text-align: center; }
/* End CONTENT properties */

/* OTHER MARKUP: below, make any changes to font sizes/colors/etc.
   for these specific tags */

.header { font-size: 12pt; }
.alt { background-color: #364C7D; }
.line {
	background: url("/includes/office/line.png");
	background-position: right;
	background-repeat: repeat-y;
	}
.small { font-size: 12pt; }
.smallalt { background-color: #364C7D; font-size: 12pt; }
.alternate { background: #111111; }

 .code, .article > .text > pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .85rem;
  color: #e6e6e6;
  background: linear-gradient(195deg, #0d1016, #434f69);
  border: 1px solid #263041;
  /* border-radius: calc(var(--radius) - 2px); */
  padding: .75rem 1rem;
  overflow: auto;
  box-shadow: var(--shadow);
  white-space: pre-wrap; 
}
.login-form { border: 1px solid #7382a1; width: 150px; }
.required {color: #ff0000; }

.menuresp {
    display: block;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menuresp li {
    display: inline-block;
    /* width: 7%; */
    text-align: center;
}

@media (min-width: 1100px) {
  #wrap.two-col #main { grid-template-columns: 1fr 220px; align-items: start; }
}

@media (max-width: 960px) and (min-width: 501px) {

#menu ul li a { display:grid; }

}

@media (max-width: 500px) {
  #menu ul li a { display: none; }
  #drop { display:block;}

  #user-info {
    display: none;
  }
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

.container {
    display: grid;
    grid-gap: 35px;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    grid-template-rows: repeat(2, 35px);
    background-color: var(--color-blue-dark2);
}
.container > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container > div {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.header .menuresps {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

#login-error {
  color: yellow;
  text-align: center;
}

.overflow {
  overflow-x: auto;
  overflow-wrap: break-word;
}

#bootcamp {
  overflow-x: auto;
}

#forums {
  overflow-x: auto;
}

#forums > #forums-container {
  width: 100%; padding: .6rem; border-radius: var(--radius);
  background: transparent; border: 0;
}

#forums #forums-inner, #forums #forums-inner tr, #forums #forums-inner td {
  background: var(--bg-elev-1);
}

#forums #threads {
  background: var(--bg-elev-1);
  padding: .5rem; border-radius: 12px;
}
#threads img { vertical-align: middle; }

.ranks {
	text-align: center;
}

.post {
  background: var(--bg-elev-2);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: .65rem .75rem;
  box-shadow: var(--shadow);
}

.post > .info { font-size: .75rem; color: var(--text-dim); margin-bottom: .35rem; }


.post > .text {
  font-size: 1rem;
  background: var(--bg-elev-1);
  padding: .5rem .6rem;
  border-radius: 10px;
  overflow: auto;
}

.post > .text > p { margin: .5rem 0; }
.post > .text :where(ul, ol) { padding-left: 1.1rem; }

.post > .text > img { display: block; margin-inline: auto; max-width: min(500px, 100%); }

.post > details { display: inline-block; vertical-align: top; }
.post > details > summary { font-size: .75rem; color: var(--text-dim); cursor: pointer; }

.quote {
  background: var(--colour-japanese-indigo);
  width: min(900px, 95%);
  margin-inline: auto;
  border-radius: var(--radius);
  padding: .6rem;
}
.quote > .info { font-size: .75rem; margin-bottom: .35rem; }
.quote > .text {
  font-size: 1rem;
  background-color: var(--bg);
  padding: .6rem;
  border-radius: 10px;
}

.articles { background: var(--colour-black-pearl); width: 95%; margin-inline: auto; padding-top: .5rem; }

.artcats { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; text-align: center; }

.artcats a { text-decoration: none; }

.article { background: var(--bg-elev-2); width: 95%; margin-inline: auto; padding-bottom: .6rem; }

.article > .info { font-size: 1.1rem; padding: .5rem; }
.article > .info > h3 { display: inline; }
.article > .text { font-size: 1rem; background-color: var(--bg); padding: .6rem; border-radius: 10px; }

.smallitalic {
  font-style: italic;
  font-size: small;
}

.login-form { border: 1px solid #7382a1; width: 150px; border-radius: 10px; background: var(--bg-elev-1); box-shadow: var(--shadow); }
.required { color: #ff5b5b; }

.btnContainer { text-align: center; margin-top: .75rem; }
.btnContainer button {
  color: #fff; font-size: 1.2rem; cursor: pointer;
  border: 1px solid #333; 
  /* border-radius: 10px; padding: .55rem .85rem; */
  /* background: linear-gradient(180deg, #2a3446, #161b25); */
 background: var(--colour-strong-steel);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#333333', endColorstr='#333333',GradientType=0 ); */
  transform: rotate(-2deg);
}
.btnContainer button:hover { color: var(--colour-pale-blue); background-color: var(--colour-black-pearl); }

/* --- sered lock -- */
.lockContainer
{
  width: 400px;
  height: 228px;
  margin: 0 auto;
  padding: 10px;
  background-color: #333;
  border: 2px #000 solid;
  border-radius: 5px;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  background: rgb(51,51,51);
background: -moz-linear-gradient(top,  rgba(51,51,51,1) 0%, rgba(17,17,17,1) 51%, rgba(51,51,51,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(51,51,51,1)), color-stop(51%,rgba(17,17,17,1)), color-stop(100%,rgba(51,51,51,1)));
background: -webkit-linear-gradient(top,  rgba(51,51,51,1) 0%,rgba(17,17,17,1) 51%,rgba(51,51,51,1) 100%);
background: -o-linear-gradient(top,  rgba(51,51,51,1) 0%,rgba(17,17,17,1) 51%,rgba(51,51,51,1) 100%);
background: -ms-linear-gradient(top,  rgba(51,51,51,1) 0%,rgba(17,17,17,1) 51%,rgba(51,51,51,1) 100%);
background: linear-gradient(to bottom,  rgba(51,51,51,1) 0%,rgba(17,17,17,1) 51%,rgba(51,51,51,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#333333', endColorstr='#333333',GradientType=0 );

}
.lockDigitContainer
{
  float: left;
  width: 70px;
  height: 198px;
  margin: 10px;
  border: 5px #000 solid;
  text-align: center;
  border-radius: 5px;
  background-color: #000;
  box-shadow: 10px 4px 8px #111;
  color: #000;
  cursor: pointer;
}
.lockDigit
{
  height: 60px;
  line-height: 60px;
  font-size: 40px;
  font-weight: bold;
  font-family: 'Orbitron', Verdana, sans-serif;
  border-radius: 2px;
}

.lockDigitin
{
  height: 69px;
  line-height: 60px;
  font-size: 45px;
  width: 66px;
  font-weight: bold;
  font-family: Monospace, Verdana, sans-serif;
  background: transparent;
  border: none;
  text-align: center;
  /* border-radius: 2px; */
}

.lockDigitPrev
{
  margin-bottom: 4px;

  background: rgb(17,17,17);
background: -moz-linear-gradient(top,  rgba(17,17,17,1) 0%, rgba(238,238,238,1) 90%, rgba(102,102,102,1) 90%, rgba(102,102,102,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(17,17,17,1)), color-stop(90%,rgba(238,238,238,1)), color-stop(90%,rgba(102,102,102,1)), color-stop(100%,rgba(102,102,102,1)));
background: -webkit-linear-gradient(top,  rgba(17,17,17,1) 0%,rgba(238,238,238,1) 90%,rgba(102,102,102,1) 90%,rgba(102,102,102,1) 100%);
background: -o-linear-gradient(top,  rgba(17,17,17,1) 0%,rgba(238,238,238,1) 90%,rgba(102,102,102,1) 90%,rgba(102,102,102,1) 100%);
background: -ms-linear-gradient(top,  rgba(17,17,17,1) 0%,rgba(238,238,238,1) 90%,rgba(102,102,102,1) 90%,rgba(102,102,102,1) 100%);
background: linear-gradient(to bottom,  rgba(17,17,17,1) 0%,rgba(238,238,238,1) 90%,rgba(102,102,102,1) 90%,rgba(102,102,102,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#111111', endColorstr='#666666',GradientType=0 );


}
.lockDigitNext
{
  margin-top: 4px;

background: rgb(238,238,238);
background: -moz-linear-gradient(top,  rgba(238,238,238,1) 0%, rgba(238,238,238,1) 9%, rgba(204,204,204,1) 9%, rgba(17,17,17,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(238,238,238,1)), color-stop(9%,rgba(238,238,238,1)), color-stop(9%,rgba(204,204,204,1)), color-stop(100%,rgba(17,17,17,1)));
background: -webkit-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(17,17,17,1) 100%);
background: -o-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(17,17,17,1) 100%);
background: -ms-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(17,17,17,1) 100%);
background: linear-gradient(to bottom,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(17,17,17,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#111111',GradientType=0 );

}
.lockDigitCur
{
  height: 70px;
  line-height: 70px;

  background: rgb(238,238,238);
background: -moz-linear-gradient(top,  rgba(238,238,238,1) 0%, rgba(238,238,238,1) 9%, rgba(204,204,204,1) 9%, rgba(238,238,238,1) 50%, rgba(204,204,204,1) 72%, rgba(17,17,17,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(238,238,238,1)), color-stop(9%,rgba(238,238,238,1)), color-stop(9%,rgba(204,204,204,1)), color-stop(50%,rgba(238,238,238,1)), color-stop(72%,rgba(204,204,204,1)), color-stop(100%,rgba(17,17,17,1)));
background: -webkit-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(238,238,238,1) 50%,rgba(204,204,204,1) 72%,rgba(17,17,17,1) 100%);
background: -o-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(238,238,238,1) 50%,rgba(204,204,204,1) 72%,rgba(17,17,17,1) 100%);
background: -ms-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(238,238,238,1) 50%,rgba(204,204,204,1) 72%,rgba(17,17,17,1) 100%);
background: linear-gradient(to bottom,  rgba(238,238,238,1) 0%,rgba(238,238,238,1) 9%,rgba(204,204,204,1) 9%,rgba(238,238,238,1) 50%,rgba(204,204,204,1) 72%,rgba(17,17,17,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#111111',GradientType=0 );

}

.lockDigitContainer.depressed .lockDigitPrev
{
  background: rgb(0,0,0);
background: -moz-linear-gradient(top,  rgba(0,0,0,1) 0%, rgba(204,204,204,1) 90%, rgba(51,51,51,1) 90%, rgba(51,51,51,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,1)), color-stop(90%,rgba(204,204,204,1)), color-stop(90%,rgba(51,51,51,1)), color-stop(100%,rgba(51,51,51,1)));
background: -webkit-linear-gradient(top,  rgba(0,0,0,1) 0%,rgba(204,204,204,1) 90%,rgba(51,51,51,1) 90%,rgba(51,51,51,1) 100%);
background: -o-linear-gradient(top,  rgba(0,0,0,1) 0%,rgba(204,204,204,1) 90%,rgba(51,51,51,1) 90%,rgba(51,51,51,1) 100%);
background: -ms-linear-gradient(top,  rgba(0,0,0,1) 0%,rgba(204,204,204,1) 90%,rgba(51,51,51,1) 90%,rgba(51,51,51,1) 100%);
background: linear-gradient(to bottom,  rgba(0,0,0,1) 0%,rgba(204,204,204,1) 90%,rgba(51,51,51,1) 90%,rgba(51,51,51,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#333333',GradientType=0 );

}
.lockDigitContainer.depressed .lockDigitNext
{
background: rgb(204,204,204);
background: -moz-linear-gradient(top,  rgba(204,204,204,1) 0%, rgba(204,204,204,1) 9%, rgba(170,170,170,1) 9%, rgba(0,0,0,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(204,204,204,1)), color-stop(9%,rgba(204,204,204,1)), color-stop(9%,rgba(170,170,170,1)), color-stop(100%,rgba(0,0,0,1)));
background: -webkit-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(0,0,0,1) 100%);
background: -o-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(0,0,0,1) 100%);
background: -ms-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(0,0,0,1) 100%);
background: linear-gradient(to bottom,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(0,0,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#000000',GradientType=0 );
}

.lockDigitContainer.depressed .lockDigitCur
{
  background: rgb(204,204,204);
background: -moz-linear-gradient(top,  rgba(204,204,204,1) 0%, rgba(204,204,204,1) 9%, rgba(170,170,170,1) 9%, rgba(204,204,204,1) 50%, rgba(170,170,170,1) 72%, rgba(0,0,0,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(204,204,204,1)), color-stop(9%,rgba(204,204,204,1)), color-stop(9%,rgba(170,170,170,1)), color-stop(50%,rgba(204,204,204,1)), color-stop(72%,rgba(170,170,170,1)), color-stop(100%,rgba(0,0,0,1)));
background: -webkit-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(204,204,204,1) 50%,rgba(170,170,170,1) 72%,rgba(0,0,0,1) 100%);
background: -o-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(204,204,204,1) 50%,rgba(170,170,170,1) 72%,rgba(0,0,0,1) 100%);
background: -ms-linear-gradient(top,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(204,204,204,1) 50%,rgba(170,170,170,1) 72%,rgba(0,0,0,1) 100%);
background: linear-gradient(to bottom,  rgba(204,204,204,1) 0%,rgba(204,204,204,1) 9%,rgba(170,170,170,1) 9%,rgba(204,204,204,1) 50%,rgba(170,170,170,1) 72%,rgba(0,0,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cccccc', endColorstr='#000000',GradientType=0 );
}

/* --- Forms (Cryogenix) --------------------------------------------------- */

.form-card { /* wrap <form> in this + .box */
  max-width: 920px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-row { display: contents; } /* label and control occupy the grid columns */

.form-label {
  color: var(--text-dim);
  padding-top: .4rem;
  text-align: right;
}
@media (max-width: 720px) {
  .form-label { text-align: left; padding-top: 0; }
}

/* Inputs */
.form-control {
  width: 100%;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  background: var(--bg-elev-1);
  color: var(--text);
  box-shadow: var(--shadow);
}

.form-control::placeholder { color: color-mix(in oklab, var(--text-dim) 80%, transparent); }

/* Make <select> match inputs */
select.form-control {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

/* Textarea grows nicely */
textarea.form-control { min-height: 10rem; resize: vertical; }

/* File inputs (without JS) */
input[type="file"].form-control {
  padding: .35rem .5rem;
}
input[type="file"].form-control::file-selector-button {
  margin-right: .6rem;
  padding: .45rem .7rem;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: calc(var(--radius) - 4px);
  background: var(--colour-strong-steel);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}
input[type="file"].form-control::file-selector-button:hover {
  background: var(--colour-black-pearl);
  color: var(--colour-pale-blue);
}

/* Fieldsets */
fieldset.form-set {
  border: 1px dashed color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--radius);
  padding: .65rem .75rem .7rem;
  background: color-mix(in oklab, var(--bg-elev-1) 80%, transparent);
}
legend.form-legend {
  padding: 0 .35rem;
  color: var(--accent-2);
  font-weight: 600;
}

/* Inline help */
.hint {
  margin-top: .25rem;
  font-size: .9rem;
  color: var(--text-dim);
}

/* Actions */
.form-actions {
  display: flex;
  gap: .6rem;
  justify-content: end;
  margin-top: .4rem;
}
@media (max-width: 720px) { .form-actions { justify-content: start; } }

.button {
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  background: var(--colour-strong-steel);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.button:hover { background: var(--colour-black-pearl); color: var(--accent); }

/* Required asterisk (optional) */
.required::after { content: " *"; color: #ff5b5b; }


/* --- Article view (Cryogenix) ------------------------------------------ */
.article { background: var(--bg-elev-1); padding-bottom: 1rem; } /* subtle step up */

.article-head {
  padding: .75rem .9rem .5rem;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
}

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  font-size: .9rem; color: var(--text-dim);
  align-items: center;
}
.breadcrumbs a { color: var(--text-dim); text-decoration: underline; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: .6; padding: 0 .2rem; }

.article-title { margin: .25rem 0 0; }
.article-title a { color: inherit; text-decoration: none; }

.article-meta {
  margin-top: .25rem;
  font-size: 1.2rem;
  color: var(--text);
}

.article-meta.author {
  margin-left: 1rem;
}
.article-meta .dot { margin: 0 .35rem; opacity: .5; }

/* Markdown body (“prose”) */
.prose {
  padding: .9rem .9rem 1rem;
  /* background: var(--bg); */
  background: #232222;
  border-radius: 10px;
}

.prose p { margin: .7rem 0; }
.prose :where(ul, ol) { padding-left: 1.2rem; margin: .6rem 0; }
.prose li { margin: .25rem 0; }
.prose blockquote {
  margin: .8rem 0; padding: .55rem .75rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--bg-elev-1) 78%, transparent);
  border-radius: 8px;
}
.prose img {
  display: block; margin: .85rem auto;
  max-width: min(860px, 100%); height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.prose code { padding: .1rem .35rem; border-radius: 6px; background: #111a; }
.prose pre { margin: .9rem 0; } /* your global .code styling remains in effect */
.prose table {
  width: 100%; border-collapse: collapse; overflow-x: auto; display: block;
}
.prose th, .prose td { border-bottom: 1px solid #263041; padding: .5rem .6rem; }

/* Attachments list */
.attachments {
  list-style: none; margin: .75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem;
}
.attachments li a {
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .6rem;
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}
.attachments li a::before { content: "📎"; opacity: .9; }
.attachments li a:hover { background: var(--colour-black-pearl); color: var(--accent); }

/* “Edit” drawer on article */
.article-tools details {
  margin-top: .8rem;
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  /* border-radius: 10px; */
  padding: .5rem .6rem;
}
.article-tools summary { cursor: pointer; color: var(--text-dim); }


/* --- High-contrast code ------------------------------------------------- */

/* Inline code in paragraphs/lists */
.prose :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
  color: #eaf2ff;
  background: #0b1220;                       /* darker chip */
  border: 1px solid #2a3b58;
  border-radius: 6px;
  padding: .12rem .35rem;
}

/* Block code */
.prose pre {
  margin: .9rem 0;
  border-radius: 12px;
  overflow: auto;
  background: linear-gradient(195deg, #0a0f17, #2b3a58);
  border: 1px solid #1c2b44;
  box-shadow: var(--shadow);
  position: relative;
}

/* optional accent rail like before */
.prose pre::before {
  content: "";
  position: absolute; inset: 0 0 0 0;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  pointer-events: none;
}

.prose pre code {
  display: block;
  color: #e7ecf7;
  line-height: 1.45;
  padding: .85rem 1rem;
  background: transparent; /* inherit from pre */
  white-space: pre;         /* keep hard wraps; change to pre-wrap if you prefer */
}

/* Tables inside code (rare) */
.prose pre table { display: table; width: auto; }

/* Selection inside code — brighter */
.prose pre code::selection { background: rgba(110, 160, 255, .25); }

/* Optional: tighter contrast for super-dark theme
   Add `prose--contrast` to the container if you want it even punchier */
.prose.prose--contrast pre {
  /* background: linear-gradient(195deg, #05070c, #373737); */
  background: #373737;
  border-color: #13223b;
}
.prose.prose--contrast :not(pre) > code {
  /* background: #08101c; border-color: #1c2c48; */
  background: #373737;
  border-color: #6d6565;
}


/* Intro media block */
.media {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap);
  align-items: center;
}
.media img {
  width: 150px; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .media { grid-template-columns: 1fr; text-align: center; }
  .media img { margin-inline: auto; }
}
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }

/* Home page helpers */
.home-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

.list { list-style: none; margin: .35rem 0 0; padding: 0; }
.list li { margin: .3rem 0; }

.rank-grid {
  list-style: none; padding: 0; margin: .4rem 0 0;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  text-align: center;
}
.rank-grid li {
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 10px;
  padding: .5rem .6rem;
  box-shadow: var(--shadow);
}
.rank-grid img { height: 32px; vertical-align: middle; }
.rank-grid span { display: block; margin-top: .35rem; font-size: .9rem; color: var(--text-dim); }

/* --- Home/WELCOME tuning ----------------------------------------------- */

/* A simple stack wrapper to space boxes vertically */
.welcome-stack { max-width: 1200px; margin: 0 auto; padding-inline: clamp(12px, 3vw, 28px); }
.welcome-stack > .box {
  margin-block: clamp(18px, 3.2vw, 30px);   /* more vertical space between panels */
  padding: clamp(.95rem, 1.4vw, 1.25rem);   /* a touch more internal padding */
}

/* Optional width helpers so you can mix narrow/wide cards */
.box--narrow { max-width: 980px;  margin-inline: auto; }
.box--wide   { max-width: 1200px; margin-inline: auto; }

/* Grid spacing for the 2-column “Recent” area */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 3vw, 42px);
  row-gap: clamp(14px, 2.2vw, 22px);
}
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }

/* Lists: bigger type and a clearer left margin */
.list {
  list-style: none;
  margin: .4rem 0 0 1.1rem;         /* larger left margin */
  padding: 0;
  font-size: clamp(1rem, 0.25vw + 1rem, 1.15rem);  /* bump size slightly */
  line-height: 1.45;
}
.list li { margin: .45rem 0; }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }

/* Tighten headings above lists */
.home-grid h3 { margin: 0 0 .35rem; }


/* --- Bootcamp ----------------------------------------------------------- */
.page-stack { max-width: 980px; margin: 0 auto; padding-inline: clamp(12px, 3vw, 28px); }
.page-stack > .box { margin-block: clamp(18px, 3.2vw, 30px); }

/* Principles card */
.principles { background: var(--bg-elev-1); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-radius: var(--radius); padding: .75rem .9rem; }
.principles ul { margin: .4rem 0 0 1.1rem; }
.principles li { margin: .35rem 0; font-size: 1rem; }

/* Use the form styles we introduced earlier; add light tweaks */
.form-card { max-width: 980px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 180px 1fr; gap: clamp(10px, 2vw, 18px); align-items: start; }
@media (max-width: 720px){ .form-grid { grid-template-columns: 1fr; } }
.form-row { display: contents; }
.form-label { color: var(--text-dim); padding-top: .4rem; text-align: right; }
@media (max-width: 720px){ .form-label { text-align: left; padding-top: 0; } }
.form-control { width: 100%; padding: .6rem .75rem; border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent); background: var(--bg-elev-1);
  color: var(--text); box-shadow: var(--shadow); }
.form-control::placeholder { color: color-mix(in oklab, var(--text-dim) 80%, transparent); }
.form-actions { display: flex; gap: .6rem; justify-content: start; margin-top: .2rem; }
.button { display: inline-block; padding: .6rem .95rem; border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); background: var(--colour-strong-steel);
  color: #fff; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; }
.button:hover { background: var(--colour-black-pearl); color: var(--accent); }

/* CAPTCHA block */
.captcha-box { display: grid; gap: .5rem; align-items: center; }
.captcha-img { width: 180px; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.hint { margin-top: .25rem; font-size: .9rem; color: var(--text-dim); }


/* --- History page ------------------------------------------------------- */
.page-stack { max-width: 980px; margin: 0 auto; padding-inline: clamp(12px,3vw,28px); }
.page-stack > .box { margin-block: clamp(18px,3.2vw,30px); }

.history-hero { padding: .9rem 1rem; }
.history-hero .kicker { color: var(--text-dim); font-size: .95rem; margin: 0 0 .2rem; }

.doc { background: var(--bg); border-radius: 10px; padding: .85rem 1rem; }
.doc p { margin: .65rem 0; }
.doc :where(ul,ol) { padding-left: 1.2rem; margin: .55rem 0; }
.doc li { margin: .25rem 0; }

.resources {
  display: grid; gap: .5rem;
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-radius: var(--radius);
  padding: .6rem .75rem;
}
.resources a { text-decoration: none; color: var(--text); }
.resources a:hover { color: var(--accent); }

/* simple timeline */
.timeline {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  margin-left: .25rem;
}
.tl { margin: .9rem 0 1.1rem; }
.tl .when {
  font-size: .9rem; color: var(--text-dim);
  background: var(--bg-elev-1);
  display: inline-block; padding: .15rem .45rem; border-radius: 6px;
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  margin-left: -1.05rem;
}
.tl h3 { margin: .4rem 0 .15rem; }
.tl p { margin: .35rem 0; }

/* overflow helper (replaces inline style) */
.overflow-x { overflow-x: auto; }

/* headings inside docs */
.doc h2 { margin-top: .6rem; color: var(--accent); }
.doc h3 { margin-top: .5rem; color: var(--accent); font-style: normal; }


/* Retro 88x31 buttons */
.buttonbar-88 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: .5rem;               /* adds breathing room above buttons */
}
.buttonbar-88 a { line-height: 0; }

.buttonbar-88 img {
  width: 88px; height: 31px;       /* lock the classic size */
  image-rendering: pixelated;      /* keep pixel art crisp */
  background: var(--bg-elev-1);
  /* border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-radius: 6px;
  box-shadow: var(--shadow); */
  display: block;
}

.buttonbar-88 a:hover img {
  border-color: var(--accent);
  transform: translateY(-1px);
}


/* --- Forums ------------------------------------------------------------- */
.forum-stack { max-width: 1200px; margin: 0 auto; padding-inline: clamp(12px,3vw,28px); }
.forum-stack > .box { margin-block: clamp(18px,3.2vw,30px); }

.forum-section + .forum-section { margin-top: 1.1rem; }
.forum-section > h3 { margin: 0 0 .4rem; }

.forum-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(8px, 1.2vw, 14px);
}

/* Each forum row becomes a card */
.forum-card {
  display: grid;
  grid-template-columns: 40px 1fr auto minmax(240px, 32%);
  align-items: start;
  gap: .65rem .75rem;
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 12px;
  padding: .6rem .7rem;
  box-shadow: var(--shadow);
}

.forum-icon {
  width: 32px; height: 32px;
  border-radius: 6px; box-shadow: var(--shadow);
}

/* title + desc + badges */
.forum-main h4 { margin: 0; font-size: 1.05rem; padding-left: 0;}
.forum-main h4 a { text-decoration: none; }
.forum-main h4 a:hover { color: var(--accent); }
.forum-desc { margin: .25rem 0 0; color: var(--text-dim); }

/* badges (modes) */
.badges { margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  font-size: .8rem; line-height: 1;
  padding: .25rem .45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  background: color-mix(in oklab, var(--bg-elev-2) 80%, transparent);
  color: var(--text-dim);
}
.badge--ok { color: var(--accent); border-color: var(--accent); }
.badge--locked { color: #ff9d9d; border-color: #ff6b6b; }
.badge--group { color: #c9d4ff; }

/* counts block */
.forum-count { text-align: center; min-width: 92px; }
.forum-count .n { font-size: 1.1rem; font-weight: 700; }
.forum-count .sub { font-size: .8rem; color: var(--text-dim); }

/* latest post */
.forum-latest a { text-decoration: none; }
.forum-latest a:hover { text-decoration: underline; }
.forum-meta { font-size: .85rem; color: var(--text-dim); margin-top: .2rem; }

/* responsive stacking */
@media (max-width: 900px) {
  .forum-card {
    grid-template-columns: 32px 1fr;
  }
  .forum-count { grid-column: 2; justify-self: start; margin-top: .25rem; }
  .forum-latest { grid-column: 1 / -1; }
}

/* header */
.forum-hero {
  display: grid; grid-template-columns: 64px 1fr; gap: .75rem; align-items: start;
}
.forum-logo { width: 32px; height: 32px; border-radius: 10px; box-shadow: var(--shadow); }
.forum-title { margin: 0; }
.motd { margin-top: .35rem; }
.motd .motd-title { font-size: .9rem; color: var(--text-dim); margin-bottom: .25rem; }
.motd .doc { padding: .5rem .6rem; }

/* breadcrumbs (reuses your article styles if present) */
.breadcrumbs { display:flex; flex-wrap:wrap; gap:.35rem; font-size:1.2rem; color:var(--text-dim); align-items:center; margin-bottom:.5rem; }
.breadcrumbs a { color:var(--text-dim); text-decoration:none; }
.breadcrumbs a:hover { color:var(--accent); }
.breadcrumbs .sep { opacity:.6; padding:0 .2rem; }

/* thread tree */
.thread-tree { margin-top: .35rem; }
.thread-tree ul { list-style:none; margin:0.5rem; padding-left: 1rem;
  border-left: 2px solid color-mix(in oklab, var(--accent) 24%, transparent); }
.thread-tree > ul { padding-left: 0; border-left: 0; }
/* .thread-item {
  margin: .45rem 0;
  background: var(--bg-elev-1);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 10px;
  padding: .55rem .65rem;
  box-shadow: var(--shadow);
} */
.thread-head { margin: 0 0 .2rem; }
.thread-subject { font-weight: 700; text-decoration: none; }
.thread-subject:hover { text-decoration: underline; }

.thread-meta { font-size:.85rem; color:var(--text-dim); margin-top:.1rem;
  display:flex; gap:.35rem; flex-wrap:wrap; align-items:center; }
.author-badge { vertical-align: text-bottom; border-radius: 3px; }

.thread-body { margin-top: .45rem; }     /* your .prose styles apply inside */

/* form (reuses your global form styles) */
.pager { margin: .4rem 0 .6rem; font-size: .95rem; color: var(--text-dim); }

/* Sered HoF */
.hof-header .hof-badge { height: 28px; vertical-align: middle; margin-right: .4rem; }

/* Generic clean table (reusable) */
.table-clean { width: 100%; border-collapse: collapse; }
.table-clean th, .table-clean td { padding: .55rem .7rem; text-align: left; }
.table-clean thead th {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.table-clean tbody tr { background: var(--bg-elev-1); }
.table-clean tbody tr + tr {
  border-top: 1px solid color-mix(in oklab, var(--accent) 16%, transparent);
}
.hof-table img { vertical-align: middle; }

/* HoF index */
.hof-index .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .5rem;
}

.hof-index .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: .55rem .9rem;
  border-radius: var(--radius);
  background: var(--colour-strong-steel);
  border: 1px solid #333;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.hof-index .button:hover {
  background: var(--colour-black-pearl);
  color: var(--colour-pale-blue);
}
