/* MicroBiome Bank — fejezet-oldal stílus (a mbb_engine renderelt osztályaihoz) */
:root{--green:#2D5A3D;--teal:#045767;--teal-med:#1A7A7A;--ink:#1a2620;--gray:#6b7770;--cream:#F7F6F3;--cream2:#EEECE6;--warm:#F1E9DB;--white:#fff;--serif:'Cinzel',Georgia,serif;--sans:'Raleway',system-ui,sans-serif;--acc:#2D5A3D;--acc2:#16332a}
*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--cream);line-height:1.75;-webkit-font-smoothing:antialiased}
a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}
.wrap{max-width:820px;margin:0 auto;padding:0 24px}
.wrap-wide{max-width:1180px;margin:0 auto;padding:0 24px}
/* nav */
#hdr{position:fixed;top:0;left:0;right:0;z-index:100;padding:14px 0;transition:.35s;background:rgba(247,246,243,.85);backdrop-filter:blur(10px)}
#hdr.sc{background:rgba(247,246,243,.95);backdrop-filter:blur(12px);box-shadow:0 4px 26px -14px rgba(0,0,0,.15);padding:9px 0}
.nav{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:.5em;font-family:var(--serif);font-weight:600;color:var(--green);font-size:1.1rem}
.brand img{height:40px;width:auto}
.nav-links{display:flex;gap:1.4rem;font-size:.88rem;font-weight:500}.nav-links a{color:var(--ink)}.nav-links a:hover{color:var(--green);text-decoration:none}
/* breadcrumb */
.crumb{padding:96px 0 0;font-size:.82rem;color:var(--gray)}
.crumb a{color:var(--gray)}.crumb a:hover{color:var(--green)}
.crumb span{margin:0 .4em;opacity:.5}
/* chapter header */
.chapter-wrap{padding:24px 24px 80px}
.chapter-header{margin:18px 0 30px}
.chapter-num-display{font-family:var(--serif);font-size:.95rem;color:var(--teal-med);font-weight:600;letter-spacing:.05em}
.chapter-main-title,h1.chapter-main-title{font-family:var(--serif);font-weight:500;font-size:clamp(1.9rem,4vw,2.7rem);color:var(--green);line-height:1.15;margin:.15em 0 .3em}
.chapter-deck{font-family:var(--serif);font-size:1.15rem;color:var(--gray);font-style:italic;max-width:60ch}
.chapter-divider{height:3px;width:60px;border-radius:3px;background:linear-gradient(90deg,var(--teal-med),var(--green));margin:22px 0 0}
/* hero meta */
.hero-meta{display:flex;flex-wrap:wrap;gap:10px 22px;background:var(--white);border-radius:14px;padding:18px 22px;margin:0 0 30px;box-shadow:0 12px 40px -30px rgba(4,87,103,.4);font-size:.9rem}
.hero-meta-item strong{color:var(--green)}
.stars{color:#e0a92a;letter-spacing:2px}
/* body text */
.body-text,.chapter-wrap p{font-size:1.02rem;color:var(--ink);margin:0 0 1.1em}
.body-text.anecdote,.anecdote{color:var(--gray)}
.subsection-title{font-family:var(--serif);font-weight:500;font-size:1.5rem;color:var(--green);margin:1.8em 0 .5em}
.subsubsection-title{font-family:var(--sans);font-weight:700;font-size:1.05rem;color:var(--teal);margin:1.3em 0 .35em}
.body-list{margin:.4em 0 1.2em 1.3em}.body-list li{margin-bottom:.5em}
/* task blocks */
.task-block,.kitchen-block{border-radius:14px;padding:22px 24px;margin:24px 0;background:var(--white);box-shadow:0 12px 40px -30px rgba(0,0,0,.3);border-left:4px solid var(--teal-med)}
.task-block.goal{border-left-color:#2f9e5f;background:linear-gradient(135deg,rgba(47,158,95,.06),transparent)}
.task-block.danger{border-left-color:#d24b4b;background:linear-gradient(135deg,rgba(210,75,75,.06),transparent)}
.task-block.warning{border-left-color:#e0a92a;background:linear-gradient(135deg,rgba(224,169,42,.08),transparent)}
.task-block.myth{border-left-color:#8a6cc0;background:linear-gradient(135deg,rgba(138,108,192,.07),transparent)}
.task-block.note{border-left-color:var(--gray)}
.kitchen-block{border-left-color:#c98a3a;background:linear-gradient(135deg,rgba(201,138,58,.07),transparent)}
.task-label{font-family:var(--sans);font-weight:700;font-size:.95rem;color:var(--ink);margin-bottom:.5em;display:block}
.task-content .body-list{margin-top:.4em}
.myth-item{margin:.7em 0;font-size:.96rem}
.myth-claim{display:block;font-weight:600;color:#8a6cc0;margin-bottom:.15em}
/* clinical deepening (callout) */
.callout,.task-block.clinical{border-left-color:var(--teal)}
/* references */
.ref-link{color:var(--teal);font-weight:600}
h3.subsection-title + p .ref-link,.ref-link{text-decoration:none}
/* glossary term */
.gloss,.gloss-term{border-bottom:1px dotted var(--teal-med);cursor:help;font-weight:600}
sup.gloss-sup{color:var(--teal-med);font-size:.7em}
/* prev/next + related */
.chap-foot{border-top:1px solid rgba(0,0,0,.1);margin-top:40px;padding-top:26px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.chap-foot a{display:inline-flex;align-items:center;gap:.5em;font-weight:600;color:var(--green);padding:.7em 1.3em;border:1.5px solid rgba(45,90,61,.25);border-radius:100px;transition:.2s}
.chap-foot a:hover{background:var(--green);color:#fff;text-decoration:none}
.backlink{display:inline-flex;align-items:center;gap:.5em;font-weight:600;color:var(--teal);margin:0 0 8px}
/* author box */
.authorbox{display:flex;align-items:center;gap:14px;background:var(--white);border-radius:14px;padding:18px 22px;margin:30px 0 0;box-shadow:0 12px 40px -30px rgba(4,87,103,.4)}
.authorbox .av{width:46px;height:46px;border-radius:50%;flex:none;background:linear-gradient(135deg,var(--teal-med),var(--green));color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:600}
.authorbox .meta{font-size:.86rem;color:var(--gray)}.authorbox .meta strong{color:var(--ink);font-family:var(--sans)}
/* footer */
footer{background:#111;color:rgba(238,236,230,.6);padding:40px 0;text-align:center;font-size:.85rem}
footer a{color:rgba(238,236,230,.85)}
img{max-width:100%;height:auto;border-radius:12px}
figure{margin:1.5em 0}figcaption{font-size:.85rem;color:var(--gray);text-align:center;margin-top:.5em}
@media(max-width:700px){.nav-links{display:none}.hero-meta{flex-direction:column;gap:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
