/* *********************************** */
/* *** BASE TYPOGRAPHY RESTORE ******* */
/* *********************************** */

/* Give body a readable base */
html {
  font-size: 100%; /* 16px default; keep if you like */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #111;
}

/* Heading scale – mobile-first */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* You can base these on rem so they respond to browser text size */
h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

h5, h6 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* Slightly larger on wider screens */
@media (min-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
}

#show-toggle {
  font-size: 1rem;
  color: darkred;
}

/* Base spacing for paragraphs / sections */

p {
  margin-bottom: 0.75rem;
}

section + section,
article + article {
  margin-top: 1.5rem;
}

/* Restore list styles and indentation */
ul, ol,
li li ul,
li li ol {
  margin-left: 1.5rem;   /* indent bullets */
}
li ul,
li ol {
  margin-left: 1.25rem;
}

/* Bullet removed as now toggling between.
ul {
  list-style-type: disc;
} */
ol {
  list-style-type: decimal;
}
.alpha {
  list-style-type: lower-alpha;
}
.roman {
  list-style-type: lower-roman;
}
.blanks {
  list-style-type: '[ ] ';
}

li + li {   /* space between list items */
  margin-top: 0.25rem;
}


/* *********************************** */
/* *** OWN STYLES ******************** */
/* *********************************** */

body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  line-height: 1.5;
  padding: 1.5rem;
  max-width: 95%;
  margin: 0 auto;
}

#instructions {
  margin-block: 1.5rem;
  outline: 0.3rem darkred outset;
  padding: 1rem;
}

em {
  font-style: italic;
}

main section {
  margin-block: 2rem;
}

#today .form-row {
  margin-block: 0.5rem;    /* space between questions */
}

#today label {
  margin-bottom: 0.25rem;
  display: block;          /* form fields start on new row */
  font-weight: bold;
}

#today .examples {
  font-size: 0.8rem;
  color: gray;
}

#today textarea,
#today select,
#today input[type="date"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  color: darkblue;
}

.empty-error {
  border-color: #d9534f; /* gentle red */
}

#empty-error-message {
  display: none;
  color: #b24a4a;  /* darker gentle red */
  font-size: 0.9rem;
}

#redundant-instructions {
  display: none;
}

#prompt button {
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.8rem;
}

#prompt textarea {
  width: 99%;
  height: 10rem;
}

.agent.task,
.slow.data {
  max-height: 20rem;
  overflow-y: auto;
  background-color: #fbfbfb;
}

pre {
  font-size: small;
  font-family: monospace;
  white-space: pre-wrap;   /* preserve newlines + wrap long lines */
  word-wrap: break-word;   /* allow breaking long “words” if needed */
  max-width: 96%;
}