body {
    font-family: system-ui, sans-serif;
    font-weight: 400;
    margin: 48px 20px;
    color: #094F6E;
    background: #F5EDC2;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-size: 14pt;
}

@view-transition {
    navigation: auto;
}

a {
    color: #D37700;
    text-decoration: underline;
    transition: text-shadow 200ms;
    font-weight: 600;
}

a:hover {
}

header, footer, .page {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 0px;
}

footer {
    margin-top: 48px;
}

footer small {
    color: #698F9F;
}

.field-caption {
    font-size: 0.75rem;
    color: #698F9F;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.form-field {
    margin-bottom: 1rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header .site-switcher select {
    font: inherit;
    color: inherit;
    max-width: 100%;
}

header {
    padding: 16px 0px;
    max-width: 800px;
    margin-top: 0px;
    margin-bottom: 48px;
    min-height: 64px;
    align-items: center;
    display: flex;
    justify-content: center;
}

header .header-logo {
    width: 160px;
    height: 70px;
    background-image: url('/static/benzoate.webp');
    background-position: left;
    background-size: 160px 70px;
}

header h1 {
    color: #fff;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

header .spacer {
    flex-grow: 1;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

header nav ul li {
    display: inline;
    margin: 0 8px 0 0;
    padding: 8px;
    transition: text-decoration 0.25s;
    border-radius: 4px;
    border-color: #00000000;
    border-width: 2px;
    border-style: solid;
}

header nav ul li.active {
  border-radius: 4px;
  border-color: #D37700;
  background: #D37700;
  border-width: 2px;
  border-style: solid;
}

header nav ul li.active a { 
    text-decoration: none;
    color: #F5EDC2;
}

header nav ul li:not(.active):last-child {
  padding: 8px 0px 8px 8px;
}

.page code {
  background-color: rgba(255, 180, 40, 0.1);
  border: 1px solid #094F6E;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: ui-monospace, monospace;
  box-sizing: border-box;
}

.page pre:has(code) {
  background-color: rgba(255, 180, 40, 0.1);
  border: 1px solid #094F6E;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 1.5em 0;
  overflow-x: auto;
  white-space: pre;
  overflow-wrap: normal;
  word-wrap: normal;
  font-family: ui-monospace, monospace;
  box-sizing: border-box;
  max-width: 100%;
  font-size: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.page pre:has(code) code {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-family: inherit;
  white-space: inherit;
}

.hljs-keyword,
.hljs-built_in,
.hljs-type,
.hljs-literal,
.hljs-symbol,
.hljs-number {
  color: #D37700 !important;           /* Main warm orange for keywords/numbers/etc. */
}

.hljs-string,
.hljs-regexp,
.hljs-link {
  color: #ffaa44 !important;           /* Lighter orange variant for strings – feels related */
}

.hljs-function,
.hljs-title.function_,
.hljs-title.class_ {
  color: #e69500 !important;           /* Slightly darker/deeper for function names */
}

.hljs-comment {
  color: #a16a00 !important;           /* Muted orange-brown for comments */
}

.hljs-meta,
.hljs-doctag,
.hljs-meta .hljs-keyword {
  color: #D37700 !important;
}

.page .secondary {
    color: #698F9F;
}

.page hr {
    border: none;
    background-color: #094F6E;
    color: #094F6E;
    height: 4px;
    margin-top: 8px;
    margin-bottom: 64px;
}

.page hr.post-separator-8 {
  margin-top: 8px;
  margin-bottom: 4px;
  height: 8px;
}

.page hr.post-separator-4 {
  margin-top: 4px;
  margin-bottom: 4px;
  height: 4px;
}

.page hr.post-separator-2 {
  margin-top: 4px;
  margin-bottom: 4px;
  height: 2px;
}

.meta {
  font-size: 0.8em;
  font-family: ui-monospace, monospace;
}

.page p {
    margin-top: 16px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.page h1 {
    font-weight: 700;
    font-size: 24pt;
    margin-top: 32px;
    letter-spacing: -0.0125em;
    font-family: ui-serif, serif;
}

.page h2 {
    font-weight: 700;
    font-size: 20pt;
    margin-top: 48px;
    margin-bottom: 0;
}


.page ul {
  list-style: none;
  line-height: 1.4;
}

.page ul li {
  margin-bottom: 8px;
}

.page ul li::before {
  content: "•";
  color: #094F6E;
  font-weight: bold; 
  display: inline-block; 
  width: 1em; 
  margin-left: -1em; 
}

.page ul li li::before {
  content: "◦";
  color: #094F6E;
  font-weight: light;
  display: inline-block;
  width: 1em; 
  margin-left: -1em;
}

.error {
    background: #E8C1A3;
    padding: 8px 12px;
    border: solid 1px #AE0C27;
    color: #AE0C27;
    border-radius: 8px;
    corner-shape: squircle;
}

.warning {
    background: #F5E58B;
    padding: 8px 12px;
    border: solid 1px #807011;
    color: #807011;
    border-radius: 8px;
    corner-shape: squircle;
}

.message {
    background: #AEBDA8;
    padding: 8px 12px;
    border: solid 1px #094F6E;
    color: #094F6E;
    border-radius: 8px;
    corner-shape: squircle;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.users-table th,
.users-table td {
    text-align: left;
    padding: 0.5rem 0.75rem 0.5rem 0;
    vertical-align: top;
}

.users-table th:last-child,
.users-table td:last-child {
    text-align: right;
    padding-right: 0;
}

.page img {
    max-width: 100%;
}

.page p img.center-image {
  display: block;
  margin-left: auto;
  margin-right: auto;  
}

@media screen and (max-width: 540px) {
    header, footer, .page {
        padding: 0;
        margin-bottom: 0;
    }

    header {
        display: block;
    }
    header nav {
        clear: all;
    }
    header .spacer {
        flex-grow: none;
    }
    header nav ul {
        display: flex
    }
    header nav ul li {
        display: inline;
        margin: 16px 0;
        padding: 8px;
        width: 100%;
        text-align: center;
    }
    header nav ul li.active {
        border-radius: 200px;
    }
}

@media print {
  body {
    text-shadow: none !important;
    font-family: Helvetica, ui-sans-serif, sans-serif;
    font-size: 10pt;
    background: none;
    color: #000;
  }
  header {
    display: none;
  }
  footer {
    display: none;
  }
  
  .page hr {
      border-top: solid 1px #000;
  }
  
  .page hr.post-separator-8 {
    border-top: solid 8px #000;
    height: 0;
  }
  
  .page hr.post-separator-4 {
    border-top: solid 4px #000;
    height: 0;
  }
  
  .page hr.post-separator-2 {
    border-top: solid 2px #000;
    height: 0;
  }

  .page h1 {
      font-weight: 300;
      font-size: 14pt;
      margin-top: 8px;
  }
  
  .page h2 {
      font-weight: 300;
      font-size: 12pt;
      margin-top: 8px;
      margin-bottom: 0;
  }
  header h1 {
      font-size: 14pt;
      font-weight: 300;
  }
  .page code {
      background-color: transparent;
      padding: 0;
      border: none;
      font-family: ui-monospace, monospace;
  }
  a {
      color: #000;
      text-decoration: underline;
      font-weight: 600;
  }
  .pagination {
    display: none;
  }
}
