/* -----------------------------
   1. DESIGN TOKENS
----------------------------- */
:root {
  --font-main: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --bg-main: #f7faf9;
  --bg-card: #ffffff;
  --bg-soft: #eef6f3;

  --text-main: #0b1220;
  --text-muted: #A4B1B1;
  --text-light: #7b8790;

  --brand: #12b76a;
  --brand-soft: #e6f4ef;
  --brand-accent: #00a79d;

  --border: #dde6e9;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 6px 20px rgba(11,18,32,0.06);
  --shadow-card: 0 10px 30px rgba(11,18,32,0.08);

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 36px;
  --space-xl: 64px;
}

/* -----------------------------
   2. BASE RESET
----------------------------- */
* {
  box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Layout Fix */
html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: auto !important;  /* ← FIX: Allow horizontal scroll (required for tables) */
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
}


  .top-nav a {
  margin-left: 18px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  }
/* Headings */
h1 {
    font-size: 1.2rem;
    text-align: left;
    margin: 1rem 0;
    color: #004c4c;
}

h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: #004c4c;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 9px 10px;
    border-bottom: 1px solid #afafaf;
}

h3 {
    text-align: left;
    margin-bottom: 3px !important;
    color: #004c4c;
    font-size: 1rem;
}

.divh3 {
    display: flex;
    align-items: center;
}

.divh3 h3 {
    margin-right: 10px;
}
.sa-dates{font-size: 0.875rem;color: #6b7280;margin: 0.25rem 0 1rem;}
.fnt18 {
    font-size: 18px;
    font-weight: 700;
}

/* MAIN PAGE CONTAINER */
.container {
    max-width: 100%;
    width: 99%;
    margin: auto;
    padding: 0px .5%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* FIX: Disable flex for main content area (critical for tables) */
.container[role="main"],
main.container {
    display: block !important;
}

/* SECTIONS */
section {
    padding: 13px;
    margin: 4px 0 13px;
    border-radius: 10px;
    box-shadow: 0 0 20px -3px rgba(47,46,126,.73);
    width: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* BREADCRUMBS */
nav[aria-label=Breadcrumb] ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

nav[aria-label=Breadcrumb] li::after {
    content: "›";
    margin-left: .5rem;
    color: #666;
}

nav[aria-label=Breadcrumb] li:last-child::after {
    content: "";
}

nav[aria-label=Breadcrumb] a {
    text-decoration: none;
    color: #0a5c5a;
	font-size: 0.9rem;
}

nav[aria-label=Breadcrumb] strong {
    font-weight: 500;
    color: #444;
}

.logo {
    width: 85px;
    height: auto;
}

/* NAVIGATION */
#menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
a {
  color: var(--brand);
  text-decoration: none;
}
.nav-links a {
    font-size: 15px;
    color: #fff;
    padding: 6px 10px;
    background-color: #006666;
    border-radius: 6px;
    text-decoration: none;
    transition: background .3s ease;
}

.nav-links a:hover {
    background-color: #008080;
}

/* DEFAULT TABLES */
table, #tbl {
    width: 100%;
    border-collapse: collapse;
    margin: .8rem 0;
}

th, td {
    padding: 7px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

@media (min-width: 768px) {
    th, td { padding: 12px; }
}

/* LISTS */
ul {
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: .5rem;
}

ol {
    padding-left: 1rem;
    padding-right: 1rem;
}

ol li {
    margin-bottom: .5rem;
}
#cf-orientation {
  background: linear-gradient(160deg, var(--brand-soft), #ffffff);
  padding: 13px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.no-shadow section{
  box-shadow: none;
  transition: none;
}
/* FORMS */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}


input[type=text], input[type=email], input[type=tel], select, textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 14px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input:focus, select:focus, textarea:focus {
    border-color: #5b9bd5;
    outline: none;
}

textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #5b9bd5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .3s ease;
}

.submit-btn:hover {
    background-color: #3d8ac7;
}

/* BLOCKQUOTES, NOTES, FIGURES */
.highlight {
    background-color: #f9f9f9;
    padding: 10px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.note {
    color: red;
    font-style: italic;
}

/* Ensure images inside article are always centered, consistently across browsers */
.sa-figure {
    display: block !important;
    text-align: center !important;
    margin: 1.5rem 0 !important;
}

.sa-figure img {
    display: inline-block !important;
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* ------------------------------
   CleanFormulation RESPONSIVE TABLE FIX
------------------------------ */

/* Table wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1rem 0;
    display: block;
}

/* Table minimum width */
.table-wrapper table {
    min-width: 600px !important;
}

/* Override nowrap to keep table readable on mobile */
.data-table th,
.data-table td {
    white-space: normal !important; /* ← FIX */
}

/* Remove section padding so table fills width */
section .table-wrapper {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

/* Optional mobile scrollbar */
.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 8px;
}section .table-wrapper {
    margin-left: -10px !important;
    margin-right: -10px !important;
    width: calc(100% + 20px) !important;
}

/* -----------------------------------------------------------
   CleanFormulation - PROFESSIONAL RESEARCH-STYLE FOOTER
------------------------------------------------------------ */

#site-footer {
  background: #0a1f1f;
  color: #dde5e5;
  padding: 48px 0 32px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Inner container */
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: 320px repeat(3, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  }
/* Brand section */
.footer-brand .footer-logo {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 12px 0 8px;
  font-weight: 700;
}

.footer-brand p {
  color: #cfd8d8;
  line-height: 1.6;
  font-size: .95rem;
  margin-bottom: 16px;
}

/* Contact area */
.footer-brand .contact p {
  margin: 4px 0;
  color: #c1cdcd;
}

.footer-brand a {
  color: #9fe0e0;
  text-decoration: none;
}

.footer-brand a:hover {
  text-decoration: underline;
}

/* Social icons */
.social a {
  display: inline-block;
  margin-right: 10px;
  opacity: .8;
  transition: opacity .25s ease;
}

.social a:hover {
  opacity: 1;
}

/* Navigation columns */
.footer-nav h4,
.newsletter h4,
.mini-sitemap h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.footer-nav ul,
.mini-sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.mini-sitemap li {
  margin: 6px 0;
}

.footer-nav a,
.mini-sitemap a {
  color: #cfe7e7;
  text-decoration: none;
  font-size: .95rem;
  transition: color .25s ease;
}

.footer-nav a:hover,
.mini-sitemap a:hover {
  color: #9fe0e0;
}

/* Newsletter area */
.newsletter p {
  color: #c1cdcd;
  font-size: .95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-form input[type="email"] {
  padding: 10px 12px;
  border: 1px solid #506b6b;
  border-radius: 6px;
  background: #e9efef;
  font-size: .95rem;
  min-width: 220px;
  color: #122;
}

.subscribe-btn {
  background: #0b8454;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  transition: background .25s ease;
}

.subscribe-btn:hover {
  background: #096b44;
}


/* -----------------------------
   8. KNOWLEDGE DOMAINS
----------------------------- */
#cf-knowledge-domains .cf-domain-block {
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px dashed var(--border);
}

/* Lower legal section */
.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-legal {
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

.footer-legal p {
  color: #b9c7c7;
  font-size: .9rem;
  margin: 6px 0;
}

.footer-legal a {
  color: #9fe0e0;
}

/* Utility */
.muted {
  color: #a1aeae;
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  #site-footer {
    padding: 36px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
  }

  .subscribe-btn {
    width: 100%;
  }
}

/* Jump Links Navigation */
.sa-jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 5px 0 0;
  margin: 18px 0 7px;
  background: #f4f8f8;
  border: 1px solid #d6e5e5;
  border-radius: 8px;
  list-style: none;
}

.sa-jump-links li {
  display: inline-flex;
  align-items: center;
  list-style: none;
}

/* Arrow Symbol */
.sa-jump-links li::before {
  content: "›";
  font-size: 18px;
  color: #004c4c;
  margin-left: 4px;
  margin-top: 1px;
  font-weight: 700;
}

.sa-jump-links a {
  color: #004c4c;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background .25s ease, color .25s ease;
}

.sa-jump-links a:hover,
.sa-jump-links a:focus {
  background: #004c4c;
  color: #ffffff;
}

.header-utilities {
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
}

.resources-dropdown {
  position: relative;
   padding-bottom: 0.5rem;
}

.resources-toggle {
  background: none;
  border: none;
  color: #1f4f4a;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
}

.resources-toggle .caret {
  margin-left: 0rem;
  font-size: 0.85em;
}

.resources-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid #e2e8e5;
  border-radius: 6px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.resources-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #1f4f4a;
  text-decoration: none;
  white-space: nowrap;
}

.resources-menu li a:hover {
  background: #f3f7f6;
}

/* Hover interaction */
.resources-dropdown:hover .resources-menu {
  display: block;
}


#header{padding: 13px;
  margin: 4px 0 13px;
  border-radius: 10px;
  box-shadow: 0 0 20px -3px rgba(47,46,126,.73);
  width: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
  }
  
  
  /* Skip to Main Content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 10px 16px;
  background: #DBDBDB;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
  transition: top 0.25s ease;
}

/* Show when focused (keyboard tab) */
.skip-link:focus {
  top: 10px;
  outline: 3px solid #cceaea;
}
.sa-method-note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a4a4a;
  background: #f5f7f8;
  padding: 0.65rem 1rem;
  border-left: 3px solid #c7d1d8;
  border-radius: 4px;
  margin: 1rem 0 1.5rem;
}

p {
   margin-bottom: 10px;
}
-----------------------------------------------

/* -----------------------------
   10. FOOTER (HARMONIZED)
----------------------------- */
#site-footer {
  background: #0b1220;
  color: #e6edf3;
  margin-top: var(--space-xl);
}

#site-footer a {
  color: #a7f3d0;
}

.footer-inner {
  max-width: 1120px;
  margin: auto;
  padding: var(--space-xl) var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.footer-nav h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-legal {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: #9aa4af;
}

/* -----------------------------
   11. ACCESSIBILITY
----------------------------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* -----------------------------
   12. RESPONSIVE
----------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.1rem; }
  .top-nav { margin-top: var(--space-sm); }
  #cf-orientation { padding: var(--space-lg); }
}

/* CleanFormulation Diagram Container */

.cf-diagram {
  margin: 2rem 0;
  text-align: center;
}

.cf-diagram img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e2e2;
  background: #ffffff;
}

.cf-diagram figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Ingredient Grid */

.cf-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.cf-ingredient-grid li {
  margin: 0;
}

.cf-ingredient-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: #0f3d3e;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.cf-ingredient-grid a:hover {
  background: #eef4ff;
  border-color: #1f3c88;
  transform: translateY(-2px);
}

.cf-ingredient-grid .arrow {
  font-size: 0.9rem;
  opacity: 0.6;
}
