/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.6;color:#2c2416;background:#fdfaf3;min-height:100vh;display:flex;flex-direction:column}
img,svg{display:block;max-width:100%}
a{color:#b45f2a;text-decoration:none;transition:color .2s}
a:hover{color:#8b4513;text-decoration:underline}

/* ===== SKIP LINK ===== */
.skip-link{position:absolute;top:-100px;left:8px;background:#2c2416;color:#fff;padding:.5em 1em;z-index:1000;border-radius:0 0 6px 6px;font-weight:600}
.skip-link:focus{top:0}

/* ===== CONTAINER ===== */
.container{max-width:960px;margin:0 auto;padding:0 1.25rem}

/* ===== HEADER ===== */
.site-header{background:#fff;border-bottom:2px solid #e7d7c1;position:sticky;top:0;z-index:50;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-top:.75rem;padding-bottom:.75rem}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.3rem;color:#3e2f1c}
.logo svg{color:#b45f2a}
.site-header nav{display:flex;gap:1.25rem;flex-wrap:wrap}
.site-header nav a{font-weight:600;font-size:.95rem;color:#5c4a32}
.site-header nav a:hover{color:#b45f2a;text-decoration:none}

/* ===== HERO ===== */
.hero{background:linear-gradient(135deg,#fef6e8 0%,#faead7 100%);padding:3rem 0 2.5rem;text-align:center;border-bottom:1px solid #e7d7c1}
.hero h1{font-size:clamp(2rem,6vw,2.8rem);font-weight:800;color:#3e2f1c;line-height:1.2;margin-bottom:.75rem}
.hero-sub{font-size:1.15rem;color:#5c4a32;max-width:640px;margin:0 auto;line-height:1.6}

/* ===== SECTIONS ===== */
section{padding:2.5rem 0}
section h2{font-size:1.7rem;font-weight:700;color:#3e2f1c;margin-bottom:.5rem}
.section-desc{color:#5c4a32;margin-bottom:1.5rem;font-size:1.05rem}

/* ===== CONVERTER CARD ===== */
.converter{background:#fff;border-bottom:1px solid #e7d7c1}
.converter-card{background:#fff;border:1px solid #e7d7c1;border-radius:14px;padding:1.75rem;box-shadow:0 4px 16px rgba(0,0,0,.04);max-width:700px;margin:0 auto}
.field-group{margin-bottom:1.25rem}
.field-group label{display:block;font-weight:600;color:#3e2f1c;margin-bottom:.35rem;font-size:.95rem}
.field-group select,.field-group input{width:100%;padding:.7em .9em;font-size:1rem;border:1.5px solid #d4c4aa;border-radius:8px;background:#fefcf7;color:#2c2416;font-family:inherit;transition:border-color .2s}
.field-group select:focus,.field-group input:focus{outline:none;border-color:#b45f2a;box-shadow:0 0 0 3px rgba(180,95,42,.12)}
.input-with-unit{display:flex;gap:.5rem}
.input-with-unit input{flex:1}
.input-with-unit select{width:auto;min-width:100px}

/* ===== RESULTS GRID ===== */
.results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;margin-top:1.5rem}
.result-item{background:#fef6e8;border-radius:10px;padding:1rem .75rem;text-align:center;border:1px solid #f0e0c8}
.result-label{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#7a6640;margin-bottom:.3rem;font-weight:600}
.result-value{display:block;font-size:1.5rem;font-weight:700;color:#3e2f1c}

/* ===== TABLE ===== */
.chart-section{background:#fdfaf3}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:1rem}
.jar-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:500px}
.jar-table thead{background:#3e2f1c;color:#fff}
.jar-table th{padding:.7em .9em;text-align:left;font-weight:600;font-size:.85rem;text-transform:uppercase;letter-spacing:.03em}
.jar-table td{padding:.65em .9em;border-bottom:1px solid #e7d7c1}
.jar-table tbody tr:nth-child(even){background:#fef9f1}
.jar-table tbody tr:hover{background:#faead7}
.chart-note{font-size:.88rem;color:#7a6640;font-style:italic}

/* ===== BATCH ===== */
.batch-section{background:#fff;border-top:1px solid #e7d7c1}
.batch-card{background:#fff;border:1px solid #e7d7c1;border-radius:14px;padding:1.75rem;box-shadow:0 4px 16px rgba(0,0,0,.04);max-width:700px;margin:0 auto}
.batch-result{text-align:center;margin-top:1.5rem;padding:1.25rem;background:#fef6e8;border-radius:12px;border:1px solid #f0e0c8}
.batch-number{display:block;font-size:3rem;font-weight:800;color:#b45f2a;line-height:1.1}
.batch-label{display:block;font-size:1.1rem;color:#3e2f1c;font-weight:600;margin:.25rem 0}
.batch-extra{display:block;font-size:.88rem;color:#7a6640;margin-top:.35rem}

/* ===== WHY SECTION ===== */
.why-section{background:#fef6e8;border-top:1px solid #e7d7c1}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-top:1.25rem}
.why-card{background:#fff;border:1px solid #e7d7c1;border-radius:12px;padding:1.5rem}
.why-card h3{font-size:1.15rem;color:#3e2f1c;margin-bottom:.5rem;font-weight:700}
.why-card p{color:#5c4a32;font-size:.95rem;line-height:1.6}

/* ===== FOOTER ===== */
.site-footer{background:#3e2f1c;color:#d4c4aa;padding:1.5rem 0;margin-top:auto;text-align:center;font-size:.9rem}
.site-footer .container{display:flex;flex-direction:column;gap:.5rem;align-items:center}
.footer-links{display:flex;gap:.6rem;align-items:center}
.footer-links a{color:#faead7;font-weight:600}
.footer-links a:hover{color:#fff}
.footer-links span{color:#7a6640}
.footer-copy{font-size:.82rem;color:#a08c6e}

/* ===== RESPONSIVE ===== */
@media(max-width:600px){
  .site-header .container{flex-direction:column;gap:.5rem}
  .site-header nav{gap:.8rem;justify-content:center}
  .hero{padding:2rem 0 1.5rem}
  .converter-card,.batch-card{padding:1.25rem}
  .results-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:1fr}
  .batch-number{font-size:2.4rem}
}

@media(max-width:400px){
  .results-grid{grid-template-columns:1fr}
  .input-with-unit{flex-direction:column}
  .input-with-unit select{width:100%}
}

/* ===== UTILITY ===== */
[hidden]{display:none!important}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
