:root {
  --radius: 0.625rem;

  --background: #f9fafb;
  --foreground: #101828;       /* dark text, matches doit.com body text */

  --card: #ffffff;
  --card-foreground: #101828;


  --primary: #0066CC;
  --primary-hover: #0055B3;
  --primary-subtle: rgba(0, 102, 204, 0.1);

  --border: #e5e5e5;
}

/* Body */

body {
  margin: 0;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  text-align: center;
}

/* Card container */

.card {
  margin: 0 auto 1.5rem auto;
  max-width: 85%;
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.08);
}

/* Form elements */

label {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

textarea {
  width: 50%;
  min-height: 10rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Button */

button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  background-color: var(--primary);
  color: white;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background-color: var(--primary-hover);   /* darker brand pink */
}

/* Results area */

.results {
  margin: 1rem auto 0 auto;
  text-align: left;
}

/* Tables inside results */

.results table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden; /* keep rounded corners */
  background-color: var(--card);
  color: var(--card-foreground);
}

.results th,
.results td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.results thead {
  background-color: #f9fafb;   /* light gray section background */
  color: #101828;
}

.results tbody tr:nth-child(even) {
  background-color: #f3f4f6;
}

.results tbody tr:hover {
  background-color: #e5e7eb;
}

/* Misc elements */

hr {
  margin: 1.5rem auto;
  max-width: 800px;
  border: 0;
  border-top: 1px solid var(--border);
}

sub {
  display: block;
  margin-top: 0.5rem;
  color: #6a7282;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}