/* goat-trauma.org: the original look (white page, Verdana, the 483px sliced masthead),
   minus the tables-for-layout, and readable on a phone. */
:root {
  --text: #111;
  --muted: #666;
  --link: #00c;
  --visited: #551a8b;
  --rule: #ddd;
  --measure: 46rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 16px;
  background: #fff;
  color: var(--text);
  font: 1rem/1.55 Verdana, Arial, Helvetica, sans-serif;
}
a { color: var(--link); }
a:visited { color: var(--visited); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 4px 8px; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead: absolutely placed slices on a 483x268 canvas, in percentages so it scales. */
.masthead { margin: 0 auto; max-width: 483px; padding-top: 8px; }
.slices { position: relative; width: 100%; aspect-ratio: 483 / 268; }
.slices .s {
  position: absolute;
  left: calc(var(--x) / 483 * 100%);
  top: calc(var(--y) / 268 * 100%);
  width: calc(var(--w) / 483 * 100%);
  line-height: 0;
}
.slices img { display: block; width: 100%; height: auto; }
.slices a img + img { display: none; }
.slices a:hover img:first-child, .slices a:focus-visible img:first-child { display: none; }
.slices a:hover img + img, .slices a:focus-visible img + img { display: block; }
.slices a:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

main, .blotter, footer { max-width: var(--measure); margin: 0 auto; }
main { padding: 2.5rem 0 1rem; overflow-wrap: anywhere; }  /* long bare URLs in the text */
h1 { font-size: 1.9rem; line-height: 1.25; text-align: center; margin: 0 0 1.5rem; }
h2 { font-size: 1.4rem; line-height: 1.3; text-align: center; margin: 2rem 0 1rem; }
.c { text-align: center; }
blockquote { margin: 1rem 0 1rem 1.5rem; }

/* Legacy image+caption tables: side by side when there is room, stacked on phones. */
main table { border-collapse: collapse; margin: 1rem auto; }
main td { padding: .5rem; vertical-align: top; }
/* max-width:100% inside an auto-layout table shrinks the image to nothing; show it at its
   own size while the cells sit side by side, and let it scale once they stack. */
main td img { max-width: none; }
@media (max-width: 600px) {
  main table, main tbody, main tr, main td { display: block; width: auto !important; }
  main td { padding: .25rem 0; }
  main td img { max-width: 100%; }
  main tr { margin-bottom: 1rem; }
}

form fieldset { border: 1px solid var(--rule); padding: 1rem; min-width: 0; }  /* default is min-content */
form label { display: block; font-weight: bold; margin-top: 1rem; }
form input, form select { font: inherit; max-width: 100%; }
.notice { border: 1px solid #c90; background: #fff8e1; padding: .75rem 1rem; }

.blotter { border-top: 1px solid var(--rule); padding: 1rem 0; }
.blotter h2 { font-size: 1rem; margin: .5rem 0 1rem; }
.blotter ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .4rem 1.25rem;
  font-size: .85rem;
}

footer { color: var(--muted); font-size: .7rem; text-align: center; padding: 1.5rem 0 2rem; }
