/* Phase 04 — functional, intentionally light/dark-differentiated interactions.
   All rules only apply to Discovery article #143. */
body.postid-143 #tyz-premium-article .tyz-hf-article{
 --hfi-bg:#fcf7ed;--hfi-card:#fffefa;--hfi-input:#ffffff;--hfi-ink:#16364b;
 --hfi-copy:#425d6e;--hfi-gold:#845720;--hfi-border:#d4c4ab;--hfi-track:#e2d4bd;
}
html[data-tyz-theme="dark"] body.postid-143 #tyz-premium-article .tyz-hf-article{
 --hfi-bg:#142f45;--hfi-card:#1b3950;--hfi-input:#0c273d;--hfi-ink:#f2f3ed;
 --hfi-copy:#cedfea;--hfi-gold:#f0ca92;--hfi-border:#56718a;--hfi-track:#304e63;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel{
 padding:clamp(20px,3.1vw,39px)!important;
 margin:clamp(36px,4vw,54px) 0!important;
 border:1px solid var(--hfi-border)!important;border-radius:20px!important;
 background:var(--hfi-bg)!important;color:var(--hfi-copy)!important;
 box-shadow:0 15px 34px rgba(14,31,45,.08)!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-kicker{
 font:800 11px/1.5 Arial,sans-serif!important;letter-spacing:.11em;
 color:var(--hfi-gold)!important;margin-bottom:13px;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel h3{
 color:var(--hfi-ink)!important;font-size:clamp(22px,2vw,29px)!important;
 margin:0 0 12px!important;line-height:1.45!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel p{
 color:var(--hfi-copy)!important;-webkit-text-fill-color:var(--hfi-copy)!important;
 font-size:clamp(13px,1vw,15px)!important;line-height:1.9!important;margin:0 0 16px!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-head{display:flex;justify-content:space-between;align-items:center;gap:24px}
body.postid-143 #tyz-premium-article .tyz-hfi-score{
 flex:none;display:grid;gap:4px;text-align:center;min-width:116px;
 background:var(--hfi-card);border:1px solid var(--hfi-border);border-radius:14px;
 padding:15px;
}
body.postid-143 #tyz-premium-article .tyz-hfi-score strong{
 color:var(--hfi-gold)!important;font:900 clamp(21px,2.1vw,29px)/1.25 Arial,sans-serif!important;direction:ltr
}
body.postid-143 #tyz-premium-article .tyz-hfi-score small{color:var(--hfi-copy);font-size:12px}
body.postid-143 #tyz-premium-article .tyz-hfi-meter{
 height:12px;overflow:hidden;border-radius:99px;background:var(--hfi-track);margin:14px 0;
 border:1px solid var(--hfi-border);
}
body.postid-143 #tyz-premium-article .tyz-hfi-meter>span{
 display:block;width:0%;height:100%;border-radius:99px;
 background:linear-gradient(90deg,#bd884b,#f0c88b);transition:width .25s ease;
}
body.postid-143 #tyz-premium-article .tyz-hfi-checks{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0;
}
body.postid-143 #tyz-premium-article .tyz-hfi-check{
 display:flex;align-items:flex-start;gap:9px;min-width:0;
 background:var(--hfi-card);border:1px solid var(--hfi-border);border-radius:12px;
 padding:14px!important;color:var(--hfi-ink)!important;
 cursor:pointer;line-height:1.6!important;font-size:13px!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-check:has(input:checked){
 border-color:var(--hfi-gold)!important;
 box-shadow:inset 0 0 0 1px var(--hfi-gold);
}
body.postid-143 #tyz-premium-article .tyz-hfi-check input{
 accent-color:#a87532;width:17px;height:17px;margin:3px 0 0;flex:none;cursor:pointer;
}
body.postid-143 #tyz-premium-article .tyz-hfi-check-num{
 font:800 10px/1.7 Arial,sans-serif!important;color:var(--hfi-gold)!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-check-title{
 flex:1;min-width:0;color:var(--hfi-ink)!important;-webkit-text-fill-color:var(--hfi-ink)!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-actions{
 display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel button{
 border-radius:10px!important;border:1px solid var(--hfi-border)!important;
 padding:10px 15px!important;min-height:43px;
 background:var(--hfi-card)!important;color:var(--hfi-ink)!important;
 font:800 13px/1.4 "Cairo",Tahoma,sans-serif!important;
 cursor:pointer;box-shadow:none!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-strong,
body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-primary{
 background:#163a51!important;color:#fff5e7!important;border-color:#163a51!important;
}
html[data-tyz-theme="dark"] body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-strong,
html[data-tyz-theme="dark"] body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-primary{
 background:#efc992!important;color:#162c41!important;border-color:#efc992!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel button:is(:hover,:focus-visible){
 border-color:var(--hfi-gold)!important;filter:brightness(.94);
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel :is(button,input):focus-visible{
 outline:3px solid var(--hfi-gold)!important;outline-offset:3px!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-fields{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:19px 0;
}
body.postid-143 #tyz-premium-article .tyz-hfi-fields label{
 display:flex;flex-direction:column;gap:8px;
 color:var(--hfi-ink)!important;font-size:13px!important;font-weight:800!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-fields input{
 display:block;width:100%;min-width:0;min-height:46px;padding:10px 12px!important;
 border:1px solid var(--hfi-border)!important;border-radius:9px!important;
 background:var(--hfi-input)!important;color:var(--hfi-ink)!important;
 -webkit-text-fill-color:var(--hfi-ink)!important;
 font:600 15px/1.4 Arial,"Cairo",sans-serif!important;box-shadow:none!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-fields input::placeholder{
 color:var(--hfi-copy)!important;opacity:.85!important;-webkit-text-fill-color:var(--hfi-copy)!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-error{
 color:#a82b25!important;-webkit-text-fill-color:#a82b25!important;
 font-weight:750!important;min-height:0;
}
html[data-tyz-theme="dark"] body.postid-143 #tyz-premium-article .tyz-hfi-error{
 color:#ffa8a5!important;-webkit-text-fill-color:#ffa8a5!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-metrics{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:20px 0;
}
body.postid-143 #tyz-premium-article .tyz-hfi-metrics>div{
 min-width:0;display:grid;gap:8px;text-align:center;padding:20px 12px;
 border:1px solid var(--hfi-border);border-radius:13px;background:var(--hfi-card);
}
body.postid-143 #tyz-premium-article .tyz-hfi-metrics small{
 font-size:12px;color:var(--hfi-copy)!important;-webkit-text-fill-color:var(--hfi-copy)!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-metrics strong{
 color:var(--hfi-gold)!important;-webkit-text-fill-color:var(--hfi-gold)!important;
 font:900 clamp(23px,2.6vw,36px)/1.25 Arial,sans-serif!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-calc-footer,
body.postid-143 #tyz-premium-article .tyz-hfi-brief-footer{
 display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
body.postid-143 #tyz-premium-article .tyz-hfi-calc-footer span{
 color:var(--hfi-copy)!important;font-size:13px;line-height:1.8;
}
body.postid-143 #tyz-premium-article .tyz-hfi-brief-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
body.postid-143 #tyz-premium-article .tyz-hfi-status{min-height:0;margin-top:12px!important}
body.postid-143 #tyz-premium-article [data-hfi-copy-fallback]{
 width:100%;height:160px;margin-top:15px;padding:15px;resize:vertical;
 color:var(--hfi-ink);background:var(--hfi-input);border:1px solid var(--hfi-border);
}
@media(max-width:690px){
 body.postid-143 #tyz-premium-article .tyz-hfi-head{align-items:stretch;flex-direction:column;gap:12px}
 body.postid-143 #tyz-premium-article .tyz-hfi-score{min-width:0;grid-template-columns:auto auto;justify-content:center;gap:11px}
 body.postid-143 #tyz-premium-article .tyz-hfi-checks{grid-template-columns:minmax(0,1fr)}
 body.postid-143 #tyz-premium-article .tyz-hfi-fields{grid-template-columns:minmax(0,1fr)}
 body.postid-143 #tyz-premium-article .tyz-hfi-metrics{gap:6px}
 body.postid-143 #tyz-premium-article .tyz-hfi-metrics>div{padding:14px 5px}
 body.postid-143 #tyz-premium-article .tyz-hfi-metrics strong{font-size:clamp(19px,6vw,25px)!important}
 body.postid-143 #tyz-premium-article .tyz-hfi-actions button{flex:1 1 auto}
}
@media(max-width:360px){
 body.postid-143 #tyz-premium-article .tyz-hfi-metrics{grid-template-columns:1fr}
 body.postid-143 #tyz-premium-article .tyz-hfi-metrics>div{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 body.postid-143 #tyz-premium-article .tyz-hfi-meter>span{transition:none!important}
}
/* Compact, discoverable accordion for the 14-question preparation list. */
body.postid-143 #tyz-premium-article .tyz-hfi-drawer{
 margin-top:16px;padding:0;
 border:1px solid var(--hfi-border);border-radius:13px;
 background:var(--hfi-card);
}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer>summary{
 cursor:pointer;position:relative;list-style:none;
 font-weight:850!important;font-size:14px!important;
 color:var(--hfi-ink)!important;-webkit-text-fill-color:var(--hfi-ink)!important;
 padding:16px 45px 16px 17px!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer>summary::-webkit-details-marker{display:none}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer>summary::before{
 content:"+";position:absolute;inset-inline-end:14px;top:50%;transform:translateY(-50%);
 width:27px;height:27px;display:grid;place-items:center;
 border-radius:50%;background:var(--hfi-bg);border:1px solid var(--hfi-border);
 color:var(--hfi-gold)!important;font:900 18px/1 Arial,sans-serif;
}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer[open]>summary::before{content:"−"}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer[open]>summary{
 border-bottom:1px solid var(--hfi-border);
}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer .tyz-hfi-checks{
 padding:14px!important;margin:0!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer .tyz-hfi-actions{
 padding:0 14px 16px!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-drawer>summary:focus-visible{
 outline:3px solid var(--hfi-gold)!important;outline-offset:-3px;
}
/* Explicit text-fill for buttons: legacy article prose sets WebKit text fill on descendants. */
html[data-tyz-theme="light"] body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-primary,
html[data-tyz-theme="light"] body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-strong{
 -webkit-text-fill-color:#fff5e7!important;
}
html[data-tyz-theme="dark"] body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-primary,
html[data-tyz-theme="dark"] body.postid-143 #tyz-premium-article .tyz-hfi-panel button.tyz-hfi-strong{
 -webkit-text-fill-color:#162c41!important;
}
body.postid-143 #tyz-premium-article .tyz-hfi-panel button:not(.tyz-hfi-primary):not(.tyz-hfi-strong){
 -webkit-text-fill-color:var(--hfi-ink)!important;
}
/* Ready for the real, verified YouTube URL; does not appear until set. */
body.postid-143 #tyz-premium-article .tyz-hfi-video{
 margin:0 0 30px;padding:clamp(20px,2.5vw,29px);border-radius:20px;
 border:1px solid #c59a64;background:linear-gradient(130deg,#102b42,#1d4156);
 box-shadow:0 19px 39px rgba(8,26,41,.20);
}
body.postid-143 #tyz-premium-article .tyz-hfi-video .tyz-hfi-kicker{
 color:#e9c48b!important;font:800 10px/1.5 Arial,sans-serif;letter-spacing:.12em;
}
body.postid-143 #tyz-premium-article .tyz-hfi-video h2{
 font-size:clamp(23px,2vw,31px);color:#fff5e7!important;
 margin:9px 0 10px;line-height:1.5;
}
body.postid-143 #tyz-premium-article .tyz-hfi-video p{color:#d9e7f1!important;margin:0 0 16px;line-height:1.9}
body.postid-143 #tyz-premium-article .tyz-hfi-video-frame{
 position:relative;aspect-ratio:16/9;border-radius:14px;
 background:#091421;border:1px solid rgba(230,188,130,.34);overflow:hidden;
}
body.postid-143 #tyz-premium-article .tyz-hfi-video-frame iframe{
 width:100%!important;height:100%!important;position:absolute;inset:0;border:0;
}
/* WordPress wpautop inserts line-break nodes between inline <label>s;
 * remove their grid participation so all 3 calculator fields align correctly. */
body.postid-143 #tyz-premium-article .tyz-hfi-fields>br,
body.postid-143 #tyz-premium-article .tyz-hfi-brief-footer>br,
body.postid-143 #tyz-premium-article .tyz-hfi-calc-footer>br{
 display:none!important;
}

/* GEO/AEO V5: visible, citation-friendly answer and definitions.
 * Style is scoped to post 143; dark/light visual parity preserved. */
body.postid-143 #tyz-premium-article .tyz-hf-ai-answer{
 position:relative;margin:32px 0 40px;
 padding:clamp(22px,2.9vw,36px)!important;
 background:var(--hfi-bg)!important;color:var(--hfi-copy)!important;
 border:1px solid var(--hfi-border)!important;border-radius:19px!important;
 border-inline-start:4px solid var(--hfi-gold)!important;
 box-shadow:0 16px 35px rgba(17,35,49,.10);
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-answer__label{
 display:block;margin:0 0 12px;color:var(--hfi-gold)!important;
 font:800 10px/1.5 Arial,sans-serif!important;letter-spacing:.1em;direction:ltr;text-align:right;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-answer h2,
body.postid-143 #tyz-premium-article .tyz-hf-ai-references h2{
 color:var(--hfi-ink)!important;font-size:clamp(23px,2vw,31px)!important;
 margin:5px 0 16px!important;line-height:1.5!important;
 padding:0!important;border:0!important;
}
body.postid-143 #tyz-premium-article :is(.tyz-hf-ai-answer,.tyz-hf-ai-references) h2::before{display:none!important}
body.postid-143 #tyz-premium-article :is(.tyz-hf-ai-answer,.tyz-hf-ai-references) p,
body.postid-143 #tyz-premium-article :is(.tyz-hf-ai-answer,.tyz-hf-ai-references) li,
body.postid-143 #tyz-premium-article .tyz-hf-ai-definition{
 color:var(--hfi-copy)!important;-webkit-text-fill-color:var(--hfi-copy)!important;
 font-size:clamp(14px,1.05vw,16px)!important;line-height:2!important;
}
body.postid-143 #tyz-premium-article :is(.tyz-hf-ai-answer,.tyz-hf-ai-references) strong,
body.postid-143 #tyz-premium-article .tyz-hf-ai-definition strong{
 color:var(--hfi-ink)!important;-webkit-text-fill-color:var(--hfi-ink)!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-answer ul{
 display:grid;gap:9px;list-style:none;margin:19px 0 12px!important;padding:0!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-answer li{
 padding:12px 17px!important;border-radius:10px;
 background:var(--hfi-card)!important;border:1px solid var(--hfi-border)!important;
 margin:0!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-answer p.tyz-hf-ai-answer__note{
 font-size:12px!important;color:var(--hfi-copy)!important;margin:13px 0 0!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix{
 margin:25px 0!important;max-width:100%;overflow-x:auto;
 border:1px solid var(--hfi-border);border-radius:15px;
 background:var(--hfi-card);scrollbar-width:thin;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix table{
 width:100%;min-width:560px;border:0;border-collapse:collapse;
 background:var(--hfi-card)!important;color:var(--hfi-copy)!important;
 font-size:clamp(13px,1vw,15px)!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix caption{
 padding:16px 20px;text-align:right;font-weight:850;
 color:var(--hfi-ink)!important;background:var(--hfi-bg)!important;
 caption-side:top;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix thead{
 background:var(--hfi-bg)!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix :is(th,td){
 padding:13px 16px!important;text-align:right!important;
 color:var(--hfi-copy)!important;-webkit-text-fill-color:var(--hfi-copy)!important;
 border-bottom:1px solid var(--hfi-border)!important;
 line-height:1.85!important;vertical-align:top;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix th{
 color:var(--hfi-ink)!important;-webkit-text-fill-color:var(--hfi-ink)!important;
 font-weight:850;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix tbody tr:last-child :is(th,td){border-bottom:0!important}
body.postid-143 #tyz-premium-article .tyz-hf-ai-definition{
 border-inline-start:3px solid var(--hfi-gold)!important;
 padding:13px 19px!important;margin:23px 0!important;
 border-radius:8px;background:var(--hfi-bg)!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-references{
 padding:clamp(20px,2.3vw,31px)!important;margin:41px 0!important;
 background:var(--hfi-bg)!important;border:1px solid var(--hfi-border)!important;
 border-radius:17px!important;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-references ul{padding-inline-start:24px!important}
body.postid-143 #tyz-premium-article .tyz-hf-ai-references li{margin-bottom:12px!important}
body.postid-143 #tyz-premium-article .tyz-hf-ai-references a{
 color:var(--hfi-gold)!important;-webkit-text-fill-color:var(--hfi-gold)!important;
 text-decoration:underline!important;text-underline-offset:4px;
}
body.postid-143 #tyz-premium-article .tyz-hf-ai-references a:is(:hover,:focus-visible){
 text-decoration-thickness:2px!important;
}
body.postid-143 #tyz-premium-article :is(.tyz-hf-ai-references a,.tyz-hf-ai-matrix):focus-visible{
 outline:3px solid var(--hfi-gold)!important;outline-offset:3px;
}
@media(max-width:690px){
 body.postid-143 #tyz-premium-article .tyz-hf-ai-answer{padding:19px!important}
 body.postid-143 #tyz-premium-article .tyz-hf-ai-matrix{scrollbar-width:thin}
}
