@import url('https://fonts.cdnfonts.com/css/commodore-64');

/* ==========================================================================
   UNIVERSAL FD CRT STYLESHEET (UNIVERSAL RETRO COMPATIBILITY PACK)
   Optimized for cross-platform physical CRT monitors and high-end FD TVs.
   ========================================================================== */

/* 1. GLOBAL RESET & BASE CONSTRAINTS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #000000;
  scroll-behavior: auto;
}

body {
  background-color: #000000;
  color: #c7a940;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: none;
  font-smoothing: none;
  text-rendering: optimizeSpeed;
  font-family: 'Commodore 64', sans-serif;
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 0.8px;

  /* The body itself is the 4:3 page frame, as in the original layout. */
  width: min(100vw, 1024px);
  height: min(75vw, 768px);
  margin: 0 auto;
  padding: 35px;
  border: 2px dotted #00ff00;
  overflow: auto;
}

/* Let the wrapper fill the framed body without creating a second frame. */
#page-frame {
  width: 100%;
  height: 100%;
}

/* 4. UNIVERSAL VIEWPORT CONTAINER */
.crt-container {
  width: 100%;
  max-width: 1024px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  padding: 35px;
  border: 2px dotted #00ff00;
}

/* 5. HEADINGS & STRUCTURE */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: #00ff00;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  font-weight: bold;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.9rem; }

p, ul, ol {
  margin-bottom: 1.8rem;
}

/* Code blocks */
code, pre, kbd {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  background-color: #0d0d0d;
  color: #d6b445;
  padding: 4px 8px;
  border-radius: 0;
}

pre {
  display: block;
  padding: 16px;
  overflow-x: auto;
  border: 3px solid #222222;
}

/* Links: dotted outline appears only while hovered or focused */
a {
  color: #00ff00;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: 2px dotted transparent;
  outline-offset: 4px;
}

a:hover,
a:focus {
  color: #9aff9a;
  outline-color: #00ff00;
}

/* Navigation */
nav {
  color: #00ff00;
  background-color: #000000;
  border: 2px dotted #00ff00;
}

nav a {
  color: #00ff00;
}

/* General semantic content areas */
header,
main,
section,
article,
aside {
  color: #00ff00;
}

main {
  background-color: #000000;
  border-left: 2px dotted #00ff00;
  border-right: 2px dotted #00ff00;
}

/* Reusable heading/panel styles, if used by the site */
.heading,
.url-info {
  color: #00ff00;
  background-color: #000000;
  border: 2px solid #00ff00;
}

.inner {
  color: #00ff00;
  border: 2px dotted #00ff00;
}

/* Form fields */
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  background-color: #000000;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 6px 10px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #00ff00;
  outline: 1px solid #00ff00;
}

/* Button font size shared across the site's stylesheets */
button,
.button {
  display: inline-block;
  font-family: inherit;
  font-size: 0.850rem;
  font-weight: bold;
  background-color: #d87015;
  color: #111111;
  border: 1.286px dotted transparent;
  padding: 3.858px 7.716px;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: 1.286px dotted transparent;
  outline-offset: 1.929px;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
  background-color: #f58422;
  color: #050505;
  border-color: #00ff00;
  outline-color: #00ff00;
}

button:active,
.button:active {
  background-color: #944605;
  color: #111111;
  border-color: #ffffff;
}

/* Tables */
table {
  border-collapse: collapse;
}

th,
td {
  color: #00ff00;
  background-color: #000000;
  border: 1px solid #00ff00;
}

/* Logos and images */
.logo {
  filter: sepia(100%) hue-rotate(45deg) saturate(10);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem auto;
  filter: sepia(100%) hue-rotate(45deg) saturate(5);
}

/* Footer */
footer {
  color: #00ff00;
  background-color: #000000;
  border: 2px dotted #00ff00;
}

footer p {
  color: #00ff00;
}

/* CRT scanlines. Pointer events remain transparent so the page stays clickable. */
body::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
}

/* Overlay-level button sizing override.
   Keep this at the end so translated overlay styles cannot restore full-size controls. */
body button,
body .button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body a[role="button"],
body [role="button"] {
  font-size: 0.850rem !important;
  line-height: 1.2 !important;
  padding: 3.858px 7.716px !important;
  border-width: 1.286px !important;
  outline-width: 1.286px !important;
  outline-offset: 1.929px !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

/* Restore original overlay spacing; button sizing above must not alter layout margins. */
.container {
  margin: 0 auto 0;
}

.profile .contact .f-row:first-of-type {
  margin-top: 0px;
}

.details-table {
  margin: 2px;
}

.comment-replies {
  margin: 2px;
}
\n