html, body { margin: 0; padding: 0; background: #eee; font-family: sans-serif; color: #444; line-height: 1.35em; }
p { line-height: 1.35em; }
a { color: #66d; text-decoration: none; }

#lv0 { min-height: 100vh; display: flex; flex-direction: column; align-items: stretch; }
li { margin: 0 0 0.75em; max-width: 620px; }

.regular h1 { margin: 130px 0 1em; color: #555; }

h2 { margin: 1.4em 0 0.5em; color: #c93; font-weight: 600; font-size: 1.3em;}
h2 + p { margin-top: 0; }

header.banner { background: url(/images/vqQrFK7iGwkQYqC1VVOPjPEI.webp) no-repeat center center; background-size: cover; height: 400px; display: flex; justify-content: center; align-items: center; position: relative; }
header.banner div { position: absolute; bottom: 16px; width: 100%; }
header.banner h1 { color: white; font-size: clamp(1em, 9vw, 3em); text-shadow: 0 0 4px #000; max-width: 800px; padding: 0 20px; margin: 0 auto; line-height: 1.2em; }

main.regular { max-width: 800px; padding: 0 20px; margin: 0 auto; }
.intro { margin: 2em 0; font-style: italic; color: #666;}
.big-intro { margin: 2em 0; font-size: 1.4em; color: #666; }

main.regular img {
  margin: 0 -20px;
  width: 100vw;
}

/* New figure styles */
main.regular figure {
  margin: 0 -20px;
  width: 100vw;
}

main.regular figure img {
  margin: 0;
  width: 100%;
}

main.regular figcaption {
  padding: 8px 20px;
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  text-align: center;
  line-height: 2em;
}

@media (min-width: 841px) {
  main.regular img,
  main.regular figure {
    width: 800px;
    margin: 0;
    border-radius: 8px;
  }

  main.regular figure img {
    border-radius: 8px 8px 0 0;
  }
}

@media (min-width: 1100px) {
  main.regular img,
  main.regular figure {
    float: right;
    margin: 0 clamp(-200px, calc(0px - (100vw - 920px)/2), 0px) 20px 40px;
    width: 500px;
  }

  /* Center the main content including the offset image */
  main.regular:has(img), 
  main.regular:has(figure),
  header.banner h1.img {
    margin-left: calc(50% - 400px + clamp(-100px, calc(0px - (50vw - 460px)/2), 0px));
  }
}

.box-grid {
  max-width: 1280px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.box {
  border-radius: 6px;
  background: white;
  height: 100%;
}
.box.wide { grid-column: span 2; }
.box.gray img { filter: grayscale(1); }
.box img { height: 300px; width: 100%; display: block; object-fit: cover; border-radius: 8px 8px 0 0; }
.box h3 { margin: 15px 15px 10px; }
.box p { margin: 0 15px 15px; }

.box-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  background: white;
  border-radius: 6px;
  cursor: pointer;
}
.box-grid a:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Striped table rows */
table.granite tbody tr:nth-child(even):not(.section-header) {
  background-color: #f9f9f9;
}

/* Section header styling for tables */
table.granite .section-header {
  background-color: #ffa !important;
  color: #444;
}

table.granite .section-header td {
  padding: 10px !important;
  text-align: left !important;
  font-weight: bold;
  font-size: 1.1em;
}

/* Links within section headers */
table.granite .section-header a {
  float: right;
  font-size: 0.9em;
  color: #44b;
  text-decoration: none;
}

table.granite .section-header a:hover {
  color: #66d;
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .box-grid { grid-template-columns: 1fr 1fr; }
  .box.wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  .box-grid { grid-template-columns: 1fr; }
}

/* Reference sheet styling */
.paper {
  background: white;
  width: 960px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 40px 20px 60px;
  margin: 91px auto -60px;
}

.paper h1 { line-height: 1.2em; margin-bottom: 0; }
.paper h2 { margin: 0.5em 0 1.5em; }
.paper table { max-width: 600px; }
.hscroll { overflow: auto; margin-top: 3em;}

.pto-sketch img { width: 800px; max-width: 100%; display: block;}
.pto-sketch table { width: 600px; max-width: 100%; margin-top: 3em; }
.pto-sketch .hscroll { margin-top: 3em; }
.pto-sketch .hscroll>table { margin-top: 0; }

/* Granite table style - base table styling */
table.granite {
  font-size: 14px;
  border: none;
  border-collapse: collapse;
  width: 100%;
}

table.granite th {
  background: #444;
  color: white;
  padding: 6px 12px;
  font-weight: normal;
  text-align: left;
}

table.granite td {
  padding: 3px 12px;
  border-bottom: 1px solid #ccc;
}

table.granite tfoot td {
  background: #ffa;
  padding: 6px 12px;
}


/* Common table styles, used for all table styles */
#root th.center, #root td.center { text-align: center; width: 1px; white-space: nowrap; }
#root th.right, #root td.right { text-align: right; width: 1px; white-space: nowrap; }
#root th.left, #root td.left { text-align: left; width: 1px; white-space: nowrap; }
