 <style>
    /* Reset & base */
    *, *::before, *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #222;
      line-height: 1.6;
      font-size: 16px;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    a {
      color: #0077cc;
      text-decoration: none;
    }

    a:hover, a:focus {
      text-decoration: underline;
      outline: none;
    }

    header.site-header {
      background-color: #f7f9fc;
      padding: 10px 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-bottom: 1px solid #ddd;
    }

    header.site-header img {
      height: 50px;
      width: 50px;
    }

    nav.calculator-nav {
      background-color: #e9f1fb;
      border-bottom: 1px solid #c4d9f7;
    }

    nav.calculator-nav ul {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      margin: 0;
      padding: 0.5rem 1rem;
      gap: 0.75rem;
    }

    nav.calculator-nav li {
      margin: 0;
    }

    nav.calculator-nav a {
      padding: 0.5rem 1rem;
      display: inline-block;
      font-weight: 600;
      border-radius: 6px;
      transition: background-color 0.3s ease;
    }

    nav.calculator-nav a:hover,
    nav.calculator-nav a:focus,
    nav.calculator-nav a.active {
      background-color: #0077cc;
      color: #fff;
      outline-offset: 2px;
      outline: 2px solid #005fa3;
    }

    main {
      flex-grow: 1;
      max-width: 900px;
      margin: 2rem auto;
      padding: 0 1rem;
    }

    h1, h2, h3 {
      color: #0d2b47;
      margin-top: 1.5rem;
      margin-bottom: 1rem;
      line-height: 1.2;
    }

    h1 {
      font-size: 2rem;
      text-align: center;
    }

    h2 {
      font-size: 1.5rem;
      border-bottom: 2px solid #0077cc;
      padding-bottom: 0.25rem;
    }

    h3 {
      font-size: 1.25rem;
      margin-top: 1.25rem;
    }

    p, li {
      font-size: 1rem;
      margin-bottom: 0.75rem;
      color: #333;
    }

    ul, ol {
      margin-left: 1.25rem;
      margin-bottom: 1rem;
    }

    .page-subtitle {
      text-align: center;
      font-style: italic;
      color: #555;
      max-width: 600px;
      margin: 0 auto 1.5rem auto;
    }

    .test-method-entry {
      margin-bottom: 1.5rem;
      padding-left: 1rem;
      border-left: 3px solid #0077cc;
      background: #f0f7ff;
      border-radius: 5px;
    }

    footer {
      background-color: #f7f9fc;
      border-top: 1px solid #ddd;
      padding: 1rem;
      font-size: 0.9rem;
      text-align: center;
      color: #555;
    }

    .footer-content {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
      nav.calculator-nav ul {
        flex-direction: column;
        align-items: center;
      }

      main {
        margin: 1.5rem auto;
        padding: 0 0.75rem;
      }
    }

    @media (max-width: 480px) {
      h1 {
        font-size: 1.5rem;
      }

      h2 {
        font-size: 1.25rem;
      }

      h3 {
        font-size: 1.1rem;
      }

      body {
        font-size: 15px;
      }
    }
/* Nav bar */
.calculator-nav {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.calculator-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}
.calculator-nav li {
    flex: 0 1 auto;
}
.calculator-nav a {
    text-decoration: none;
    font-size: 1rem;
    color: #0077cc;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.calculator-nav a:hover,
.calculator-nav a.active {
    background-color: #e6f4ff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-date {
  font-size: 0.9em;
  color: #888;
}
.article-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}
.read-more:hover {
  text-decoration: underline;
}
.calculator-nav ul li a {
    display: block;
    color: #336699; /* Dark blue text */
    text-align: center;
    padding: 12px 20px; /* Adjust padding for a more button-like feel */
    text-decoration: none;
    border-radius: 6px; /* Rounded corners for each nav item */
    background-color: #e9ecef; /* Light grey background for items */
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    font-weight: 500; /* Slightly bolder text */
    border: 1px solid transparent; /* Prepare for hover border */
}

.calculator-nav ul li a:hover {
    background-color: #d0d9e0; /* Slightly darker on hover */
    color: #1d4263; /* Darker text on hover */
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.calculator-nav ul li a.active {
    background-color: #336699; /* Primary color for active link */
    color: white;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) inset; /* Inner shadow for active state */
}
header {
    text-align: center;
    margin-bottom: 20px;
    color: #336699;
}
section {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
section h2 {
    margin-top: 0;
    color: #336699;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
#disclaimer p, #final-reminders p {
    margin: 5px 0;
    font-size: 0.9em;
}
#disclaimer {
    background-color: #ffebeb;
    border-left: 5px solid red;
}
#final-reminders {
    background-color: #e6f7ff;
    border-left: 5px solid #1890ff;
}
fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 10px 15px;
}
fieldset legend {
    font-weight: bold;
    color: #555;
}
#thcForm div, #methForm div, #opiatesForm div, #amphetaminesForm div { /* Apply to all forms */
    margin-bottom: 10px;
}
#thcForm label, #methForm label, #opiatesForm label, #amphetaminesForm label { /* Apply to all forms */
    display: inline-block;
    margin-right: 10px;
    min-width: 120px; 
}
#thcForm input[type="radio"] + label, 
#methForm input[type="radio"] + label,
#opiatesForm input[type="radio"] + label,
#amphetaminesForm input[type="radio"] + label { /* Apply to all forms */
    min-width: auto; 
}
#thcForm input[type="number"], #thcForm input[type="text"],
#methForm input[type="number"], #methForm input[type="text"],
#opiatesForm input[type="number"], #opiatesForm input[type="text"],
#amphetaminesForm input[type="number"], #amphetaminesForm input[type="text"] { /* Apply to all forms */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
#calculateBtn { /* This ID will be on all calculate buttons */
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #336699;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#calculateBtn:hover {
    background-color: #275a80;
}

#results-section div { 
    margin-bottom: 8px;
}

#results-section .test-result {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #007bff; 
    margin-top: 10px; 
}

#results-section .test-result strong {
    display: inline-block;
    margin-right: 5px;
}
#results-section .test-result span {
    white-space: pre-wrap; 
}


#results-section .primary-result { 
    font-weight: bold;
    font-size: 1.05em;
    color: #005700; 
    background-color: #e6ffe6; 
    border-left: 5px solid #006400; 
}
#results-section .primary-result strong {
    color: #004d00;
}
.test-method-entry {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #eee; /* Subtle left border for distinction */
}

.test-method-entry h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #336699; /* Consistent with other H2s if desired, or a slightly different shade */
}

.sources-list {
    list-style-type: disc; /* Or square, or none if you prefer */
    padding-left: 20px;
}

.sources-list li {
    margin-bottom: 8px;
}
/* Footer Styles */
footer {
    background-color: #333; /* Dark background for footer */
    color: #f4f4f4; /* Light text color */
    text-align: center;
    padding: 20px 0;
    margin-top: 30px; /* Space above the footer */
    font-size: 0.9em;
}

.footer-content {
    width: 90%;
    max-width: 950px; /* Consistent with your .container max-width */
    margin: 0 auto; /* Center the content within the footer */
}

.footer-content p {
    margin: 10px 0;
}

.footer-content a {
    color: #a0c4ff; /* Light blue for links in footer, adjust as needed */
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}
/* End of footer */

.kofi-button-container {
    margin: 15px 0; /* Space around the Ko-fi button */
}

/* If your Ko-fi button is an image or needs specific centering and it's not already centered by Ko-fi's script */
.kofi-button-container img, 
.kofi-button-container iframe,
.kofi-button-container .kofi-button-common-style-class-from-kofi { /* Replace with actual class if Ko-fi uses one */
    display: inline-block !important; /* Or block, then margin: 0 auto; if it's a block element */
    vertical-align: middle;
}
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f5f6fa;
  color: #333;
}

h1 {
  text-align: left;
  margin-bottom: 40px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.article-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-date {
  font-size: 0.9em;
  color: #888;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}
/* Header with Logo */
.site-header {
  background-color: #fff;
  padding: 20px 20px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  align-items: flex;
}

.logo-link {
  display: flex;
  align-items: flex;
  text-decoration: none;
}

.site-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
}

.visually-hidden {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
