*{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#FBF8F4;--surface:#FFFFFF;--surface2:#F3EDE4;--border:#E0D5C7;--text:#2C1A0E;--text-muted:#6B5A4C;--accent:#8B5E3C;--accent-light:#D4A574;--accent-hover:#6D4830;--green:#4A7C59;--green-light:#E8F0EA;--red:#B85C5C;--red-light:#F8EAEA;--yellow:#C49A3C;--yellow-light:#FBF5E6;--shadow:0 2px 8px rgba(44,26,14,.08);--shadow-lg:0 8px 32px rgba(44,26,14,.12);--radius:12px;--radius-sm:8px;--font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;backdrop-filter:blur(8px);background:rgba(255,255,255,.92)}
.header-inner{max-width:1100px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-weight:700;font-size:1.1rem}
.logo span{white-space:nowrap}
.main-nav{display:flex;gap:24px}
.main-nav a{color:var(--text-muted);text-decoration:none;font-size:.9rem;font-weight:500;transition:color .2s}
.main-nav a:hover{color:var(--accent)}
.hero{background:linear-gradient(135deg,#F3EDE4 0%,#FBF8F4 60%,#EDE6DB 100%);padding:60px 20px 48px;text-align:center}
.hero-content{max-width:680px;margin:0 auto}
.hero h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;line-height:1.2;color:var(--text);margin-bottom:12px}
.hero-sub{font-size:1.1rem;color:var(--text-muted);margin-bottom:28px;max-width:520px;margin-left:auto;margin-right:auto}
.search-wrap{position:relative;max-width:480px;margin:0 auto 24px}
#search-input{width:100%;padding:14px 44px 14px 18px;border:2px solid var(--border);border-radius:50px;font-size:1rem;background:var(--surface);color:var(--text);transition:border-color .2s,box-shadow .2s}
#search-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(139,94,60,.15)}
.search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;font-size:1.2rem;color:var(--text-muted);cursor:pointer;padding:6px 10px;border-radius:50%}
.search-clear:hover{background:var(--surface2)}
.category-filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.cat-btn{padding:8px 16px;border:1px solid var(--border);border-radius:50px;background:var(--surface);color:var(--text-muted);font-size:.82rem;cursor:pointer;transition:all .2s;font-family:var(--font);font-weight:500}
.cat-btn:hover{border-color:var(--accent-light);color:var(--accent)}
.cat-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.cat-btn[aria-selected="true"]{background:var(--accent);color:#fff;border-color:var(--accent)}
.reference-section{max-width:1100px;margin:0 auto;padding:36px 20px}
.results-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
#result-count{font-size:.9rem;color:var(--text-muted);font-weight:500}
.btn-print{padding:8px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;font-size:.85rem;color:var(--text-muted);transition:all .2s;font-family:var(--font)}
.btn-print:hover{border-color:var(--accent);color:var(--accent)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.item-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;transition:box-shadow .2s,border-color .2s;cursor:pointer;position:relative}
.item-card:hover{box-shadow:var(--shadow);border-color:var(--accent-light)}
.item-card:focus{outline:2px solid var(--accent);outline-offset:2px}
.item-card[hidden]{display:none}
.card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.card-name{font-weight:700;font-size:1rem;color:var(--text)}
.card-cat{font-size:.75rem;color:var(--text-muted);background:var(--surface2);padding:3px 10px;border-radius:50px;white-space:nowrap;margin-left:8px}
.timeline-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:.85rem}
.timeline-label{width:60px;color:var(--text-muted);font-size:.8rem;text-align:right;flex-shrink:0}
.timeline-bar-wrap{flex:1;height:10px;background:var(--surface2);border-radius:5px;overflow:hidden;position:relative}
.timeline-bar{height:100%;border-radius:5px;transition:width .4s}
.timeline-bar.unopened{background:linear-gradient(90deg,var(--green),var(--accent-light))}
.timeline-bar.opened{background:linear-gradient(90deg,var(--accent-light),var(--yellow))}
.timeline-val{font-weight:600;font-size:.82rem;min-width:50px;color:var(--text)}
.card-note{font-size:.82rem;color:var(--text-muted);margin-top:10px;line-height:1.5}
.no-results{text-align:center;padding:40px;color:var(--text-muted)}
.myths-section{max-width:1100px;margin:0 auto;padding:48px 20px}
.myths-section h2,.sensory-section h2,.tips-section h2,.sources-section h2{font-size:1.6rem;font-weight:700;margin-bottom:8px;color:var(--text)}
.section-intro{color:var(--text-muted);margin-bottom:28px;max-width:600px}
.myth-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-bottom:24px}
.myth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;text-align:center}
.myth-icon{font-size:2rem;margin-bottom:12px}
.myth-card h3{font-size:1rem;margin-bottom:8px;color:var(--text)}
.myth-card p{font-size:.88rem;color:var(--text-muted);line-height:1.5}
.myth-callout{background:var(--green-light);border:1px solid rgba(74,124,89,.2);border-radius:var(--radius);padding:20px 24px;font-size:.92rem;color:var(--text);line-height:1.6}
.sensory-section{max-width:1100px;margin:0 auto;padding:48px 20px}
.sensory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.sensory-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.sensory-card summary{padding:18px 20px;cursor:pointer;font-weight:600;display:flex;align-items:center;gap:10px;list-style:none;font-size:.95rem}
.sensory-card summary::-webkit-details-marker{display:none}
.sensory-card summary::after{content:'▸';margin-left:auto;transition:transform .2s;color:var(--text-muted)}
.sensory-card[open] summary::after{transform:rotate(90deg)}
.sensory-card summary:hover{background:var(--surface2)}
.summary-icon{font-size:1.3rem}
.sensory-card ul{padding:0 20px 18px 52px}
.sensory-card li{font-size:.88rem;color:var(--text-muted);margin-bottom:8px;line-height:1.5}
.tips-section{max-width:1100px;margin:0 auto;padding:48px 20px}
.tips-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.tip-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.tip-card h3{font-size:1rem;margin-bottom:10px;color:var(--accent)}
.tip-card p{font-size:.88rem;color:var(--text-muted);line-height:1.6}
.sources-section{max-width:1100px;margin:0 auto;padding:48px 20px 60px}
.sources-section p{font-size:.92rem;color:var(--text-muted);line-height:1.7;margin-bottom:12px}
.last-updated{font-size:.82rem;color:var(--text-muted);margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.modal[hidden]{display:none}
.modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}
.modal-overlay{position:absolute;inset:0;background:rgba(44,26,14,.4);backdrop-filter:blur(3px)}
.modal-content{position:relative;background:var(--surface);border-radius:var(--radius);max-width:600px;width:92%;max-height:85vh;overflow-y:auto;padding:32px;box-shadow:var(--shadow-lg);z-index:1}
.modal-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--text-muted);padding:4px 8px;border-radius:50%;transition:background .2s}
.modal-close:hover{background:var(--surface2)}
.modal-title{font-size:1.3rem;font-weight:700;margin-bottom:4px}
.modal-cat{display:inline-block;font-size:.78rem;color:var(--text-muted);background:var(--surface2);padding:3px 10px;border-radius:50px;margin-bottom:20px}
.detail-section{margin-bottom:20px}
.detail-section h3{font-size:.95rem;font-weight:600;margin-bottom:8px;color:var(--accent)}
.detail-section p,.detail-section li{font-size:.9rem;color:var(--text-muted);line-height:1.6}
.detail-section ul{padding-left:20px}
.detail-section li{margin-bottom:4px}
.storage-tag{display:inline-block;font-size:.78rem;padding:4px 12px;border-radius:50px;margin:4px 4px 4px 0}
.storage-tag.cool{background:var(--green-light);color:var(--green)}
.storage-tag.warn{background:var(--yellow-light);color:var(--yellow)}
.storage-tag.danger{background:var(--red-light);color:var(--red)}
.site-footer{background:var(--surface);border-top:1px solid var(--border);padding:24px 20px}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer-nav{display:flex;gap:20px}
.footer-nav a{color:var(--text-muted);text-decoration:none;font-size:.85rem;transition:color .2s}
.footer-nav a:hover{color:var(--accent)}
.footer-copy{font-size:.82rem;color:var(--text-muted)}
.footer-copy a{color:var(--accent);text-decoration:none}
@media(max-width:640px){
.header-inner{flex-wrap:wrap;height:auto;padding:12px 16px;gap:10px}
.main-nav{gap:14px;width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:4px}
.main-nav a{font-size:.82rem}
.hero{padding:40px 16px 32px}
.card-grid,.myth-grid,.sensory-grid,.tips-grid{grid-template-columns:1fr}
.results-meta{flex-direction:column;gap:10px;align-items:flex-start}
.footer-inner{flex-direction:column;align-items:flex-start}
}
@media print{
.site-header,.site-footer,.hero,.category-filters,.btn-print,.sources-section,.myths-section,.tips-section,.sensory-section{display:none!important}
.reference-section{padding:0}
.card-grid{grid-template-columns:repeat(2,1fr);gap:8px}
.item-card{break-inside:avoid;box-shadow:none;border:1px solid #ccc;padding:12px}
.results-meta{display:block;text-align:center;margin-bottom:16px}
}



/* 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;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
