.fxm-quiz-header{gap:1rem;flex-wrap:wrap}
.fxm-quiz-return{display:inline-flex;align-items:center;min-height:44px;color:var(--ivory)}
.fxm-quiz-hero{background:var(--deep);color:var(--ivory)}
.fxm-quiz-hero .eyebrow{color:var(--champagne)}
.fxm-quiz-hero p:last-child{max-width:58ch}
.fxm-quiz-section{max-width:74rem;margin-inline:auto}
#fxm-trade-quiz{max-width:44rem}
.fxm-quiz-fieldset{margin:1.25rem 0 0;padding:1rem;border:1px solid #c9b699;border-radius:.25rem;min-inline-size:0}
.fxm-quiz-fieldset legend{font-weight:700;padding-inline:.4rem}
.fxm-quiz-fieldset p{margin:0 0 .6rem}
.fxm-quiz-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.35rem,1fr));gap:.5rem}
.fxm-quiz-notes label{display:flex;align-items:center;gap:.55rem;min-height:44px;margin:0;padding:.45rem .6rem;background:#fffdf8;border:1px solid #ddd0bc;font-weight:400}
.fxm-quiz-notes input{width:1.15rem;height:1.15rem;flex:none;accent-color:var(--green)}
.fxm-quiz-reset{border:0;background:none;color:var(--green);font:inherit;text-decoration:underline;cursor:pointer;min-height:44px}
.fxm-quiz-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.fxm-quiz-match{background:#fffdf8;border:1px solid #ddd0bc;border-radius:.3rem;padding:1.2rem;overflow-wrap:anywhere}
.fxm-quiz-match h3,.fxm-quiz-match p{margin:.2rem 0 .7rem}
.fxm-quiz-match a{display:inline-flex;align-items:center;min-height:44px}
.fxm-quiz-disclaimer{margin-top:1.5rem;padding:1rem;background:#eee7dc}
.fxm-quiz-disclaimer .button{color:var(--green);background:#fffdf8}
.fxm-quiz-header a:focus-visible,.fxm-quiz-section :is(a,button,input,select):focus-visible{outline:3px solid #956046;outline-offset:3px}

[hidden]{display:none!important}
.fxm-quiz-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border:1px solid #ddd0bc}
.fxm-quiz-editorial{position:relative;display:flex;align-items:end;min-height:30rem;margin:0;background:var(--deep);color:var(--ivory);isolation:isolate;overflow:hidden}
.fxm-quiz-editorial img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.fxm-quiz-editorial::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#071a13 5%,#071a1366 50%,transparent 75%);z-index:-1}
.fxm-quiz-editorial figcaption{display:grid;gap:.55rem;padding:clamp(1.35rem,4vw,3rem);max-width:35ch}
.fxm-quiz-editorial strong{font:inherit;font-family:Georgia,serif;font-size:clamp(1.9rem,4vw,3rem);line-height:1.1}
.fxm-quiz-editorial .eyebrow{color:var(--champagne)}
.fxm-quiz-panel{background:#fffdf8;padding:clamp(1.35rem,4vw,3rem);min-width:0}
.fxm-quiz-panel h1,.fxm-quiz-panel h2{margin:.4rem 0 .8rem}
.fxm-quiz-map{list-style:none;counter-reset:fxm-steps;margin:1.8rem 0;padding:0;display:grid;gap:.65rem}
.fxm-quiz-map li{counter-increment:fxm-steps;display:grid;grid-template-columns:2.25rem minmax(0,1fr);column-gap:.65rem;align-items:start}
.fxm-quiz-map li::before{content:counter(fxm-steps,decimal-leading-zero);grid-row:span 2;border:1px solid #ab795a;border-radius:50%;display:grid;place-items:center;min-height:2.25rem;color:var(--green);font-weight:700}
.fxm-quiz-map li span,.fxm-quiz-privacy{font-size:.92rem}
.fxm-quiz-controls{margin-top:1.25rem;display:flex;flex-wrap:wrap;gap:.75rem}
#fxm-quiz-outcome{margin-top:1.8rem}
@media(max-width:48rem){.fxm-quiz-layout{grid-template-columns:1fr}.fxm-quiz-editorial{min-height:clamp(16rem,56vw,26rem)}}


/* Keep the questions and Begin action visible earlier on phone and tablet. */
.fxm-quiz-page .fxm-quiz-section{max-width:72rem;padding:clamp(.65rem,3.4vw,2.5rem) clamp(.65rem,3.8vw,2.65rem)}
.fxm-quiz-page .fxm-quiz-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:stretch;border:1px solid #bd9478;border-radius:1.1rem;overflow:hidden}
.fxm-quiz-page .fxm-quiz-layout :is(.fxm-quiz-editorial,.fxm-quiz-panel){border:0;border-radius:0}
.fxm-quiz-page .fxm-quiz-editorial{min-height:0}
.fxm-quiz-page .fxm-quiz-editorial strong{font-family:"House Roman",Georgia,serif}
.fxm-quiz-page .fxm-quiz-panel{padding:clamp(1rem,2.6vw,2rem)}
.fxm-quiz-page .fxm-quiz-panel h1{font:400 clamp(2.05rem,4.6vw,3.48rem)/1.08 "House Roman",Georgia,serif;margin:.38rem 0 .67rem}
.fxm-quiz-page .fxm-quiz-panel h2{font-size:clamp(1.55rem,3.4vw,2.5rem);line-height:1.14}
.fxm-quiz-page .fxm-quiz-map{margin:.88rem 0;gap:.48rem}
.fxm-quiz-page .fxm-quiz-map li{grid-template-columns:1.9rem minmax(0,1fr)}
.fxm-quiz-page .fxm-quiz-map li::before{min-height:1.9rem}
.fxm-quiz-page button#fxm-quiz-begin{margin-top:.4rem;min-height:46px}
@media(max-width:760px){
 .fxm-quiz-page .fxm-quiz-layout{grid-template-columns:minmax(0,1fr)}
 .fxm-quiz-page .fxm-quiz-editorial{min-height:0;aspect-ratio:3;align-items:end}
 .fxm-quiz-page .fxm-quiz-editorial figcaption{padding:.5rem .72rem;gap:.06rem}
 .fxm-quiz-page .fxm-quiz-editorial :is(figcaption span:not(.eyebrow),figcaption .eyebrow){display:none}
 .fxm-quiz-page .fxm-quiz-editorial strong{font-size:clamp(1.4rem,5.2vw,2rem)}
}

/* The MSA quiz's compact quarter-width note rail and picture-led choices, in FXM colours. */
.fxm-quiz-page .fxm-quiz-layout{grid-template-columns:minmax(205px,25%) minmax(0,1fr);align-items:start;background:#fbf6ed}
.fxm-quiz-page .fxm-quiz-layout .fxm-quiz-editorial{display:flex;flex-direction:column;align-items:center;min-height:0;position:relative;padding:18px 16px;text-align:center;background:linear-gradient(140deg,#1b3a31,#123027);border-right:1px solid #c89c81}
.fxm-quiz-page .fxm-quiz-editorial::after{display:none}
.fxm-quiz-page .fxm-quiz-editorial>img{position:static;inset:auto;z-index:auto;display:block;width:min(100%,210px);height:auto;max-height:210px;object-fit:contain;object-position:center;border-radius:12px;background:#fbefe2}
.fxm-quiz-page .fxm-quiz-editorial figcaption{max-width:28ch;padding:.7rem 0 0;gap:.34rem;text-align:center}
.fxm-quiz-page .fxm-quiz-editorial figcaption .eyebrow{color:#e2ac90;text-transform:uppercase}
.fxm-quiz-page .fxm-quiz-editorial strong{font:400 clamp(19px,2.1vw,24px)/1.2 "House Roman",Georgia,serif;text-align:center}
.fxm-quiz-page .fxm-quiz-orbit{display:flex;justify-content:center;gap:.28rem;flex-wrap:wrap;margin:.55rem auto 0}
.fxm-quiz-page .fxm-quiz-orbit img{position:static;z-index:auto;width:35px;height:35px;border:1px solid #c6977e;border-radius:50%;object-fit:cover;background:#f9ede0}
.fxm-quiz-page .fxm-quiz-panel{padding:clamp(21px,4vw,48px) clamp(16px,3vw,32px) 24px}
.fxm-quiz-page .fxm-quiz-panel h1,.fxm-quiz-page .fxm-quiz-panel h2{font:400 clamp(28px,2.5vw,36px)/1.16 "House Roman",Georgia,serif}
.fxm-quiz-page .fxm-quiz-panel p{line-height:1.58}
.fxm-quiz-page .fxm-quiz-panel a:not(.button){color:#754631;text-decoration-color:#a5765b}
.fxm-quiz-page .fxm-quiz-panel :is(a,button,input,select):focus-visible{outline:2px solid #9b6a52;outline-offset:3px}
.fxm-quiz-page .fxm-quiz-panel .button.primary{color:#fff7ec;background:#163e30;border-color:#163e30}
.fxm-quiz-page .fxm-quiz-panel .button.primary:hover{color:#fff7ec;background:#23523f;border-color:#23523f}
.fxm-quiz-page .fxm-quiz-panel a.button:not(.primary),.fxm-quiz-page .fxm-quiz-reset{color:#634531}
.fxm-quiz-page .fxm-quiz-meter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 .72rem}
.fxm-quiz-page .fxm-quiz-meter span{height:3px;border-radius:3px;background:#e3cdbc}
.fxm-quiz-page .fxm-quiz-meter[data-step="1"] span:first-child,.fxm-quiz-page .fxm-quiz-meter[data-step="2"] span:nth-child(-n+2),.fxm-quiz-page .fxm-quiz-meter[data-step="3"] span{background:#2a604c}
.fxm-quiz-page .fxm-quiz-notes{grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px}
.fxm-quiz-page .fxm-quiz-notes label{position:relative;display:grid;grid-template-rows:auto auto;place-items:center;gap:.25rem;text-align:center;min-height:70px;padding:.65rem .38rem;background:#f9f3ea;border:1px solid #caa995;border-radius:.68rem;cursor:pointer;color:#16382c}
.fxm-quiz-page .fxm-quiz-notes label:has(input:checked){background:#e0ede3;border-color:#40705b}
.fxm-quiz-page .fxm-quiz-notes label:has(input:focus-visible){outline:2px solid #865b45;outline-offset:2px}
.fxm-quiz-page .fxm-quiz-notes label:has(img){padding-top:1.7rem}
.fxm-quiz-page .fxm-quiz-notes label:has(img) input{position:absolute;top:.4rem;right:.42rem}
.fxm-quiz-page .fxm-quiz-notes label img{display:block;width:52px;height:52px;object-fit:cover;border-radius:50%}
.fxm-quiz-page .fxm-quiz-notes label span{font-size:.84rem;line-height:1.28}
.fxm-quiz-page .fxm-quiz-result-bottle{display:block;width:68px;height:68px;object-fit:contain;border-radius:.5rem}
@media(max-width:760px){
 .fxm-quiz-page .fxm-quiz-layout{grid-template-columns:1fr}
 .fxm-quiz-page .fxm-quiz-layout .fxm-quiz-editorial{border-right:0;border-bottom:1px solid #c89c81;aspect-ratio:auto;display:grid;grid-template-columns:66px 1fr;gap:.48rem .8rem;padding:.72rem .85rem;text-align:left}
 .fxm-quiz-page .fxm-quiz-editorial>img{grid-row:1/3;width:66px;height:66px}
 .fxm-quiz-page .fxm-quiz-editorial figcaption{text-align:left;margin:0;padding:0;grid-area:1/2;max-width:none}
 .fxm-quiz-page .fxm-quiz-editorial strong{font-size:19px;text-align:left}
 .fxm-quiz-page .fxm-quiz-orbit{justify-content:start;grid-area:2/2;margin:0}
 .fxm-quiz-page .fxm-quiz-orbit img{width:26px;height:26px}
 .fxm-quiz-page .fxm-quiz-panel{padding:18px}
 .fxm-quiz-page .fxm-quiz-notes{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Native radio groups, presented as touch-friendly choices instead of dropdowns. */
.fxm-quiz-page .fxm-quiz-choices{margin:.8rem 0 1.1rem;padding:0;border:0;min-inline-size:0}
.fxm-quiz-page .fxm-quiz-choices legend{margin:0 0 .5rem;padding:0;color:#18372a;font-size:.94rem;font-weight:700}
.fxm-quiz-page .fxm-quiz-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.fxm-quiz-page .fxm-quiz-choices-family .fxm-quiz-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fxm-quiz-page .fxm-quiz-choice-grid label{position:relative;display:flex;min-width:0;margin:0;padding:0;cursor:pointer}
.fxm-quiz-page .fxm-quiz-choice-grid input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fxm-quiz-page .fxm-quiz-choice-grid span{display:grid;place-items:center;min-height:46px;width:100%;padding:.52rem .6rem;border:1px solid #b48165;border-radius:.42rem;background:#fffaf3;color:#18372a;text-align:center;font-size:.9rem;font-weight:500;line-height:1.28;overflow-wrap:anywhere}
.fxm-quiz-page .fxm-quiz-choice-grid input:checked+span{background:#173c30;color:#fff4e8;border-color:#173c30;font-weight:700;box-shadow:inset 0 0 0 1px #cfaa8f}
.fxm-quiz-page .fxm-quiz-choice-grid input:focus-visible+span{outline:2px solid #86553e;outline-offset:2px}
@media(max-width:480px){
 .fxm-quiz-page .fxm-quiz-choices-goal .fxm-quiz-choice-grid{grid-template-columns:minmax(0,1fr)}
 .fxm-quiz-page .fxm-quiz-choice-grid span{padding:.5rem .4rem}
}
@media(max-width:360px){
 .fxm-quiz-page .fxm-quiz-choices-family .fxm-quiz-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(forced-colors:active){
 .fxm-quiz-page .fxm-quiz-choice-grid input:checked+span{border:2px solid Highlight;color:Highlight}
}

/* One accessible touch target per note, with a clear selected state on iOS. */
.fxm-quiz-page .fxm-quiz-fieldset{border:0;padding:0;margin:1.35rem 0 0}
.fxm-quiz-page .fxm-quiz-fieldset legend{padding:0;font-size:.94rem;color:#18372a}
.fxm-quiz-page #fxm-quiz-note-count{color:#526357;font-size:.83rem;margin:.14rem 0 .52rem}
.fxm-quiz-page .fxm-quiz-notes label{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:54px;padding:.44rem .24rem .52rem;gap:.2rem;-webkit-tap-highlight-color:transparent}
.fxm-quiz-page .fxm-quiz-notes label:has(img){padding-top:.44rem;min-height:72px}
.fxm-quiz-page .fxm-quiz-notes label input,.fxm-quiz-page .fxm-quiz-notes label:has(img) input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fxm-quiz-page .fxm-quiz-notes label img{width:34px;height:34px;pointer-events:none}
.fxm-quiz-page .fxm-quiz-notes label span{display:grid;place-items:center;min-height:1.2em;overflow-wrap:anywhere;font-weight:600;color:#17382c}
.fxm-quiz-page .fxm-quiz-notes label:has(input:checked){background:#173c30;color:#fff4e8;border-color:#173c30;box-shadow:inset 0 0 0 1px #cfaa8f}
.fxm-quiz-page .fxm-quiz-notes label input:checked~span{color:#fff4e8;text-decoration:underline;text-underline-offset:.18em}
.fxm-quiz-page .fxm-quiz-notes label input:checked~span::after{content:'';position:absolute;right:.3rem;top:.32rem;width:.48rem;height:.25rem;border-left:2px solid #fff4e8;border-bottom:2px solid #fff4e8;transform:rotate(-45deg);pointer-events:none}
.fxm-quiz-page #fxm-quiz-outcome{margin:0;min-width:0;color:#18372a}
.fxm-quiz-page #fxm-quiz-outcome-title,.fxm-quiz-page #fxm-quiz-title-2{scroll-margin-top:clamp(90px,13vw,120px)}
.fxm-quiz-page #fxm-quiz-status{padding:.55rem .75rem;border-inline-start:2px solid #b48165;background:#f4eade;color:#18372a}
.fxm-quiz-page #fxm-quiz-edit-results{display:inline-flex;align-items:center;padding:.5rem 0}
@media(forced-colors:active){.fxm-quiz-page .fxm-quiz-notes label:has(input:checked){border:2px solid Highlight}}

/* MSA's recommendation geometry: title and bottle beside the explanation; stack on phones. */
.fxm-quiz-page .fxm-quiz-choices legend{margin-bottom:.65rem}
.fxm-quiz-page #fxm-quiz-outcome[data-result-mode=matched]{
 display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
 column-gap:clamp(18px,3vw,28px);row-gap:12px;align-items:start
}
.fxm-quiz-page .fxm-quiz-result-intro{min-width:0;grid-area:1/1}
.fxm-quiz-page .fxm-quiz-result-intro>.eyebrow{margin:0 0 .55rem;color:#855139;font-size:.68rem;font-weight:700;letter-spacing:.13em}
.fxm-quiz-page .fxm-quiz-result-intro h2{margin:0 0 .6rem;color:#173c30}
.fxm-quiz-page .fxm-quiz-answer-summary{display:flex;flex-wrap:wrap;gap:.42rem;list-style:none;padding:0;margin:.65rem 0}
.fxm-quiz-page .fxm-quiz-answer-summary li{margin:0;padding:.2rem .62rem;border:1px solid #c7a18a;border-radius:99px;color:#183b2e;background:#faf0e6;font-size:.82rem}
.fxm-quiz-page #fxm-quiz-outcome[data-result-mode=matched] #fxm-quiz-results{display:contents}
.fxm-quiz-page .fxm-quiz-match-primary{
 grid-area:2/1;display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center;padding:.75rem;
 background:#ecdfd1;border:1px solid #caab96;border-radius:.7rem;color:#173c30
}
.fxm-quiz-page .fxm-quiz-match-primary .fxm-quiz-result-bottle{order:-2;width:min(100%,252px);height:clamp(165px,25vw,240px);margin:0 auto .35rem;object-fit:contain;background:#f6e9db}
.fxm-quiz-page .fxm-quiz-match-primary .fxm-quiz-primary-kicker{order:-1;margin:.28rem 0 .18rem;font-size:.68rem;letter-spacing:.09em;color:#7d4b35}
.fxm-quiz-page .fxm-quiz-match-primary h3{margin:.1rem 0 .35rem;font:400 clamp(22px,2.25vw,30px)/1.2 "House Roman",Georgia,serif}
.fxm-quiz-page .fxm-quiz-match-primary p{margin:0;font-size:.87rem}
.fxm-quiz-page .fxm-quiz-result-rationale{grid-area:1/2/3/3;min-width:0;color:#18372a}
.fxm-quiz-page .fxm-quiz-result-rationale h3{margin:.1rem 0 .45rem;font:400 clamp(20px,2.1vw,25px)/1.24 "House Roman",Georgia,serif;color:#80513b}
.fxm-quiz-page .fxm-quiz-result-rationale section{margin:0 0 .95rem;padding:0 0 .75rem;border-bottom:1px solid #d5b49e}
.fxm-quiz-page .fxm-quiz-result-rationale p{margin:.35rem 0;font-size:.94rem}
@media(max-width:600px){
 .fxm-quiz-page #fxm-quiz-outcome[data-result-mode=matched]{grid-template-columns:minmax(0,1fr);row-gap:16px}
 .fxm-quiz-page .fxm-quiz-result-intro,.fxm-quiz-page .fxm-quiz-match-primary,.fxm-quiz-page .fxm-quiz-result-rationale{grid-area:auto}
 .fxm-quiz-page .fxm-quiz-result-next{order:2}
 .fxm-quiz-page .fxm-quiz-match-primary{width:min(100%,320px);margin-inline:auto}
 .fxm-quiz-page .fxm-quiz-match-primary .fxm-quiz-result-bottle{height:210px}
}

.fxm-quiz-page #fxm-quiz-outcome[data-result-mode=matched] #fxm-quiz-status{border:0;background:transparent;margin:.35rem 0;padding:0;color:#526357;font-size:.82rem}
.fxm-quiz-page .fxm-quiz-disclaimer{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem 1.15rem}
.fxm-quiz-page .fxm-quiz-disclaimer .button{min-height:46px;display:inline-flex;align-items:center;background:#163e30;color:#fff7ec;border-color:#163e30}
.fxm-quiz-page .fxm-quiz-disclaimer p{margin:0;font-size:.9rem;flex:1 1 13rem}
