/* "If your bite doesn't feel right" (tmj-grinding-and-full-arch-implants, #if-wrong): owner-approved and locked 2026-10-29 (Daniel: "approved.  give
   to lead to then give to claude for publish then ask for next assignment"; Codex if-wrong v002, final simple list). Site placement of the locked
   style.css: every rule scoped to .dio-if-wrong, the h1/h2 rules restyle the h3/h4, the review shell, review note, body rules, page media rule and
   @font-face dropped (fonts.css supplies Nunito Sans). The arch band masks the site's own assets/arch-tile.svg (resolved from this stylesheet's
   folder). Values are unchanged. Clinical review stays awaiting sign-off, separate from this design approval. */
.dio-if-wrong .iw-figure{margin:0;container-type:inline-size;color:#2f4452;font-family:"Avenir Next",Avenir,"Nunito Sans",system-ui,sans-serif}
.dio-if-wrong .iw-figure *{box-sizing:border-box}
.dio-if-wrong .iw-stage{background:#f5f7f7;overflow:hidden;clip-path:polygon(20px 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%,0 20px)}
.dio-if-wrong .iw-heading{position:relative;isolation:isolate;overflow:hidden;padding:22px 28px 20px;background:#e8eff3;border-bottom:1px solid #cad5da}
.dio-if-wrong .iw-heading .iw-title{position:relative;margin:0;font-size:30px;line-height:1.25;font-weight:500;letter-spacing:-.025em}
.dio-if-wrong .iw-arch{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  -webkit-mask-image:url(../../arch-tile.svg),linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.10) 40%,rgba(0,0,0,.45) 72%,#000);
  mask-image:url(../../arch-tile.svg),linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.10) 40%,rgba(0,0,0,.45) 72%,#000);
  -webkit-mask-size:179.4px 179.4px,100% 100%;mask-size:179.4px 179.4px,100% 100%;-webkit-mask-repeat:repeat,no-repeat;mask-repeat:repeat,no-repeat;
  -webkit-mask-composite:source-in;mask-composite:intersect}
/* resting state is the end frame: steel lines, the orange crest already past */
.dio-if-wrong .iw-arch>i{position:absolute;inset:0;background:linear-gradient(115deg,rgba(76,114,136,.20) 0%,rgba(76,114,136,.20) 30%,rgba(76,114,136,.34) 40%,rgba(237,135,60,.55) 47%,rgba(76,114,136,.30) 54%,rgba(76,114,136,.20) 64%,rgba(76,114,136,.20) 100%);background-size:300% 100%;background-position:0 0}
.dio-if-wrong .iw-figure.iw-in:not(.iw-still) .iw-arch>i{animation:iw-header-wave 4.4s cubic-bezier(.45,.05,.35,1) .2s 1 both;animation-play-state:var(--iw-play-state,paused)}
@keyframes iw-header-wave{from{background-position:100% 0}to{background-position:0 0}}

.dio-if-wrong .iw-content{padding:25px 36px 30px}
.dio-if-wrong .iw-intro{font-size:18px;line-height:1.5;color:#506875;margin:0 0 20px;font-weight:400}
.dio-if-wrong .iw-checks{list-style:none;margin:0;padding:0}
.dio-if-wrong .iw-checks>li{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:18px;padding:24px 0;border-top:1px solid #d4dee3}
.dio-if-wrong .iw-number{font-size:20px;line-height:1.4;font-weight:500;color:#4c7288;padding-top:1px}
.dio-if-wrong .iw-label{font-size:15px;line-height:1.4;font-weight:500;color:#506875;margin:0 0 8px}
.dio-if-wrong .iw-checks h4{font-size:23px;line-height:1.3;font-weight:500;letter-spacing:-.018em;margin:0}
.dio-if-wrong .iw-explanation{font-size:19px;line-height:1.5;font-weight:400;margin:9px 0 0;color:#506875;max-width:50ch}
.dio-if-wrong .iw-close{margin:1px 0 0;padding:20px 0 0;border-top:1px solid #d4dee3;font-size:20px;line-height:1.4;font-weight:500}
.dio-if-wrong .iw-figure figcaption{margin:18px 18px 0;text-align:center;color:#506875;font-size:15px;line-height:1.5;font-weight:400}
.dio-if-wrong .iw-figure figcaption p{margin:0}.dio-if-wrong .iw-figure #iw-disclaimer{margin-top:5px}
@container(max-width:560px){.dio-if-wrong .iw-stage{clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px)}.dio-if-wrong .iw-heading .iw-title{font-size:26px;line-height:1.2}.dio-if-wrong .iw-content{padding:24px 26px 28px}.dio-if-wrong .iw-intro{font-size:17px;margin-bottom:20px}.dio-if-wrong .iw-checks>li{grid-template-columns:22px minmax(0,1fr);gap:12px;padding:22px 0}.dio-if-wrong .iw-number{font-size:19px}.dio-if-wrong .iw-label{font-size:14px}.dio-if-wrong .iw-checks h4{font-size:22px;line-height:1.35}.dio-if-wrong .iw-explanation{font-size:18px;line-height:1.5}.dio-if-wrong .iw-close{font-size:19px}.dio-if-wrong .iw-figure figcaption{margin:17px 10px 0;font-size:15px}}
@container(max-width:340px){.dio-if-wrong .iw-heading .iw-title{font-size:25px}.dio-if-wrong .iw-content{padding:24px 22px 26px}.dio-if-wrong .iw-checks>li{grid-template-columns:19px minmax(0,1fr);gap:11px}.dio-if-wrong .iw-checks h4{font-size:21px}}
@media(prefers-reduced-motion:reduce){.dio-if-wrong .iw-figure *{animation:none!important;transition:none!important}}
html.reduce-motion .dio-if-wrong .iw-figure *,html.dio-alive-off .dio-if-wrong .iw-figure *{animation:none!important;transition:none!important}
.dio-if-wrong .iw-figure.iw-still .iw-arch>i,html.reduce-motion .dio-if-wrong .iw-figure .iw-arch>i,html.dio-alive-off .dio-if-wrong .iw-figure .iw-arch>i{animation:none!important;background-position:0 0}
@media print{.dio-if-wrong .iw-stage{clip-path:none}}

.dio-if-wrong .iw-title .iw-phrase{white-space:nowrap}

/* site guards: answer-body rules (section.part p/li, .ans-anim figcaption) must not reach in */
.dio-if-wrong h3,.dio-if-wrong h4{font-family:inherit;color:#2f4452;text-transform:none}
.dio-if-wrong .iw-checks>li{margin:0;list-style:none}
.dio-if-wrong .iw-figure figcaption{padding:0;background:none}
/* Replay / Still view controls restored 2026-11-11 (Daniel: animations get pause or replay; GPT 21:37Z). One row above the figure, right side,
   wrapping on narrow widths, outside the title band; button look, focus ring and print rule follow the adapters that already ship controls. */
.dio-if-wrong .iw-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0 0 12px;padding:0}
.dio-if-wrong .iw-controls[hidden]{display:none}
/* 2026-11-11 audit: the controls take the finish of the site's animation toggle (2px steel border, 6px corners, ink focus ring) so every animation's controls match */
.dio-if-wrong .iw-controls button{font:500 14px/1.2 'Avenir Next',Avenir,'Nunito Sans',system-ui,sans-serif;min-height:44px;min-width:82px;margin:0;padding:10px 16px;background:#fff;color:#203846;border:2px solid #4c7288;border-radius:6px;cursor:pointer}
.dio-if-wrong .iw-controls button:hover{background:#f1f5f6}.dio-if-wrong .iw-controls button:focus-visible{outline:3px solid #203846;outline-offset:2px}.dio-if-wrong .iw-controls button[aria-pressed=true]{background:#e6edf0}.dio-if-wrong .iw-controls button:disabled{opacity:.55;cursor:default}
.dio-if-wrong .iw-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media print{.dio-if-wrong .iw-controls{display:none!important}}
