/* FEMAG Gastronomic Application Experience · Chipa pilot v0.2 / release 0.9.25 */
.fcs-page--chipa .fcs-chipa-contextual{background:#fffaf0;color:#17191f;padding-block:clamp(2.4rem,5.7vw,5.3rem);scroll-margin-top:95px}
.fcs-chipa-contextual__head{max-width:860px;margin-bottom:1.5rem}
.fcs-chipa-contextual__head h2{color:#252d6f;font-size:clamp(2rem,4vw,3.7rem);line-height:1.08;letter-spacing:-.045em;margin:.75rem 0 .9rem}
.fcs-chipa-contextual__head .fcs-lead{max-width:75ch;margin:0;font-size:clamp(1rem,1.4vw,1.18rem);line-height:1.55}
.fcs-chipa-contextual__problem-buttons{display:flex;flex-wrap:wrap;gap:.65rem;margin:1.4rem 0 1.05rem}
.fcs-page--chipa button.fcs-chipa-contextual__problem{font:inherit;line-height:1.3;min-height:50px;cursor:pointer;background:#fff;border:1px solid #bfc6d6;color:#252d6f;font-weight:700;border-radius:13px;padding:.8rem 1.2rem;transition:background .15s ease,border-color .15s ease}
.fcs-page--chipa button.fcs-chipa-contextual__problem[aria-pressed="true"]{background:#252d6f;border-color:#252d6f;color:#fff}
.fcs-page--chipa button.fcs-chipa-contextual__problem:hover{border-color:#252d6f}
.fcs-chipa-contextual__response{background:#eef0f8;border:1px solid #d6dceb;border-radius:16px;padding:1.2rem 1.4rem;max-width:900px;min-height:108px}
.fcs-chipa-contextual__response>strong{display:block;font-size:1.04rem;line-height:1.45;color:#252d6f}
.fcs-chipa-contextual__response>p{line-height:1.52;margin:.4rem 0 0}
.fcs-chipa-contextual__priorities{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.9rem}
.fcs-chipa-contextual__priorities:empty{display:none}
.fcs-page--chipa button.fcs-chipa-contextual__jump{padding:.5rem .75rem;border:1px solid #ccd1df;border-radius:10px;cursor:pointer;font:inherit;font-size:.88rem;font-weight:650;background:#fff;color:#252d6f;min-height:44px}
.fcs-page--chipa button.fcs-chipa-contextual__jump:hover{border-color:#252d6f}
.fcs-chipa-contextual__variables{margin-top:2.7rem;scroll-margin-top:105px}
.fcs-chipa-contextual__variables>h3{font-size:clamp(1.45rem,2.6vw,2.2rem);line-height:1.2;letter-spacing:-.025em;color:#252d6f;margin:0 0 .5rem}
.fcs-chipa-contextual__variables>p{max-width:75ch;margin:0 0 1.4rem;color:#595f68;line-height:1.5}
.fcs-chipa-contextual__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;align-items:start}
.fcs-chipa-contextual__factor{background:#fff;border:1px solid #d8dce5;border-radius:17px;overflow:hidden;scroll-margin-top:105px;min-width:0}
.fcs-chipa-contextual__factor[open]{border-color:#252d6f}
.fcs-chipa-contextual__factor>summary{list-style:none;cursor:pointer;min-height:106px;padding:1.25rem;display:flex;align-items:center;justify-content:space-between;gap:.9rem}
.fcs-chipa-contextual__factor>summary::-webkit-details-marker,.fcs-chipa-contextual__science>summary::-webkit-details-marker{display:none}
.fcs-chipa-contextual__factor>summary strong{display:block;color:#252d6f;font-size:1.04rem;line-height:1.35}
.fcs-chipa-contextual__factor>summary small{display:block;margin-top:.45rem;color:#60646b;font-size:.9rem;line-height:1.46;font-weight:400}
.fcs-chipa-contextual__plus{color:#252d6f;font-weight:700;font-size:1.3rem;flex:none}
.fcs-chipa-contextual__factor[open] .fcs-chipa-contextual__plus{transform:rotate(45deg)}
.fcs-chipa-contextual__factor-content{padding:1.05rem 1.25rem 1.25rem;border-top:1px solid #e6e7ed}
.fcs-chipa-contextual__factor-content h4{font-size:.86rem;line-height:1.4;color:#252d6f;margin:0 0 .35rem;font-weight:800}
.fcs-chipa-contextual__factor-content p{font-size:.93rem;line-height:1.55;margin:.25rem 0 0}
.fcs-chipa-contextual__factor-content ul{padding-left:1.2rem;margin:.45rem 0 1.1rem}
.fcs-chipa-contextual__factor-content li{font-size:.93rem;line-height:1.5;margin:.3rem 0}
.fcs-chipa-contextual__factor-content>div+div{margin-top:1rem}
.fcs-chipa-contextual__context{border-left:3px solid #252d6f;background:#f3f4fa;border-radius:8px;padding:.75rem .9rem;margin-top:.5rem}
.fcs-chipa-contextual__context strong{font-size:.83rem;color:#252d6f}
.fcs-chipa-contextual.is-ready .fcs-chipa-contextual__context{display:none}
.fcs-chipa-contextual.is-ready .fcs-chipa-contextual__context.is-active{display:block}
.fcs-chipa-contextual.is-ready:not(.has-selection) .fcs-chipa-contextual__context-list{display:none}
.fcs-chipa-contextual__science{border-top:1px solid #e6e7ec;margin-top:1rem;padding-top:1rem}
.fcs-chipa-contextual__science>summary{cursor:pointer;font-size:.91rem;font-weight:750;color:#252d6f}
.fcs-chipa-contextual__science p{margin:.6rem 0}
.fcs-chipa-contextual__science small{font-size:.81rem;color:#555c68}
.fcs-chipa-contextual__note{font-size:.86rem;color:#5e6269;line-height:1.5;margin:1.5rem 0 0;max-width:820px}
.fcs-chipa-contextual__problem:focus-visible,.fcs-chipa-contextual__jump:focus-visible,.fcs-chipa-contextual__factor>summary:focus-visible,.fcs-chipa-contextual__science>summary:focus-visible{outline:3px solid #cf1020;outline-offset:3px}
.fcs-page--chipa .fcs-chipa-advanced{padding-block:1.5rem 2.7rem}
.fcs-chipa-advanced__drawer{background:#f7f8fb;border:1px solid #d8dce5;border-radius:18px;overflow:hidden}
.fcs-chipa-advanced__drawer>summary{list-style:none;cursor:pointer;display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1.2rem 1.4rem}
.fcs-chipa-advanced__drawer>summary::-webkit-details-marker{display:none}
.fcs-chipa-advanced__drawer>summary strong{display:block;color:#252d6f;font-weight:750}
.fcs-chipa-advanced__drawer>summary small{display:block;color:#646b78;margin-top:.3rem}
.fcs-chipa-advanced__drawer[open]>summary>span:last-child{transform:rotate(45deg)}
.fcs-chipa-advanced__drawer>summary:focus-visible{outline:3px solid #cf1020;outline-offset:-3px}
.fcs-chipa-advanced__content{padding:0 1.4rem 1.4rem}
.fcs-chipa-advanced__content>.fcs-chipa-diagnostic{margin-top:1rem}
@media(max-width:760px){.fcs-chipa-contextual__grid{grid-template-columns:1fr}.fcs-chipa-contextual__factor>summary{min-height:84px;padding:1rem}.fcs-chipa-contextual__factor-content{padding:1rem}.fcs-chipa-contextual__response{padding:1rem}.fcs-chipa-contextual__head{margin-bottom:1.1rem}}
@media(max-width:380px){.fcs-chipa-contextual__problem-buttons{display:grid;grid-template-columns:1fr}.fcs-chipa-contextual__problem{width:100%}}
@media(prefers-reduced-motion:reduce){.fcs-page--chipa button.fcs-chipa-contextual__problem{transition:none}}

/* No-JS fallback: factors and their contextual notes remain readable; inert controls disappear. */
.fcs-chipa-contextual:not(.is-ready) .fcs-chipa-contextual__problem-buttons,
.fcs-chipa-contextual:not(.is-ready) .fcs-chipa-contextual__response{display:none}
.fcs-chipa-contextual__priority-label{align-self:center;margin-right:.25rem;color:#252d6f;font-size:.88rem;font-weight:700}
