/* NCR SCCA Event Results Stylesheet
   Designed for standalone AXWare / HTML result files
   Update the color variables below if you want exact brand matches
*/

:root {
  --ncr-bg: #0f1115;
  --ncr-surface: #171b22;
  --ncr-surface-2: #1d2430;
  --ncr-border: #2b3342;
  --ncr-text: #000;
  --ncr-muted: #a9b3c1;
  --ncr-accent: #c62828;
  --ncr-accent-hover: #e03a3a;
  --ncr-highlight: #ffd166;
  --ncr-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --ncr-radius: 16px;
  --ncr-max-width: 1240px;
}

/* Base page */
html {
  background: var(--ncr-bg);
}

body {
  margin: 0 auto;
  max-width: var(--ncr-max-width);
  padding: 28px 20px 56px;
  background:
    linear-gradient(180deg, rgba(198,40,40,0.08) 0%, rgba(198,40,40,0.00) 160px),
    var(--ncr-bg);
  color: var(--ncr-text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* If AXWare outputs plain text or PRE blocks */
pre {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* General links */
a {
  color: var(--ncr-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--ncr-accent-hover);
  text-decoration: underline;
}

/* If the file is mostly plain body text, make it feel like a card */
body > pre,
body > table,
body > center,
body > div,
body > p {
  background: var(--ncr-surface);
  border: 1px solid var(--ncr-border);
  border-radius: var(--ncr-radius);
  box-shadow: var(--ncr-shadow);
}

/* PRE layout */
body > pre {
  padding: 28px;
  overflow-x: auto;
}

/* Paragraph / generic text spacing */
p,
div,
center {
  color: var(--ncr-text);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px 0;
  background: var(--ncr-surface);
  border: 1px solid var(--ncr-border);
  border-radius: var(--ncr-radius);
  overflow: hidden;
  box-shadow: var(--ncr-shadow);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ncr-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: linear-gradient(180deg, var(--ncr-surface-2), #151922);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

tr:hover td {
  background: rgba(198, 40, 40, 0.07);
}

/* Headings if present */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 14px;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--ncr-highlight);
}

h3, h4 {
  font-weight: 700;
}

/* Old-school AXWare output sometimes uses <font> tags */
font {
  color: inherit !important;
}

/* Horizontal rules */
hr {
  border: 0;
  border-top: 1px solid var(--ncr-border);
  margin: 24px 0;
}

/* Emphasis for class names / totals when bold tags exist */
b,
strong {
  color: #ffffff;
  font-weight: 800;
}

/* Monospace alignment help for text-result pages */
tt,
code,
kbd,
samp {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color: #f8fafc;
}

/* Small screens */
@media (max-width: 900px) {
  body {
    padding: 16px 12px 32px;
    font-size: 14px;
  }

  body > pre {
    padding: 18px 16px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  th,
  td {
    padding: 10px 9px;
    font-size: 13px;
  }
}

/* Very small screens */
@media (max-width: 640px) {
  body {
    padding: 10px 8px 20px;
  }

  body > pre,
  table {
    border-radius: 12px;
  }

  body > pre {
    padding: 14px 12px;
    font-size: 12px;
  }
}