/* Extend the site's tf-* components; the child theme owns palette and typography. */
body.tfx-managed #main-content .container{width:min(92%,1180px);max-width:1180px;padding-top:58px;padding-bottom:36px}
body.tfx-managed #left-area{float:none;width:100%;padding-right:0!important;padding-bottom:0}
body.tfx-managed #main-content .container:before{display:none}
body.tfx-managed .entry-content{padding-top:0!important}
.tfx-theme{color:var(--tf-ink);max-width:1180px;margin:0 auto}
.tfx-theme *{box-sizing:border-box}
.tfx-theme h2,.tfx-theme h3{border:0!important;padding-top:0!important}
.tfx-theme h3{margin:12px 0 16px!important}
.tfx-theme p,.tfx-theme li{max-width:none!important}
.tfx-theme a:not(.tf-button){text-underline-offset:3px}
.tfx-theme .tfx-page-hero h1{color:var(--tf-white)!important;font-size:clamp(34px,4.4vw,56px)!important;line-height:1.06!important;margin:10px 0 20px!important;padding:0!important;border:0!important}
.tfx-theme .tf-calc-hero h1{max-width:26ch}
.tfx-theme .tf-calc-hero .tf-button-secondary{color:var(--tf-white)!important}
.tfx-theme .tf-tool-hero figure figcaption{color:rgba(255,255,255,.6);font-size:12px;line-height:1.5;margin-top:10px}
.tfx-theme .tf-setup-links{margin:20px 0 28px;padding:20px 24px;border:1px solid #c9dee4;border-left:4px solid #00818a;border-radius:6px;background:#f1f7f8;color:#18394a}
.tfx-theme .tf-setup-links strong{display:block;font-size:19px;margin-bottom:8px}
.tfx-theme .tf-setup-links p{margin:10px 0 0;line-height:1.65;padding:0}
.tfx-breadcrumbs{font-size:13px;color:var(--tf-muted);margin:0 0 22px}
.tfx-breadcrumbs ol{display:flex;gap:7px 12px;flex-wrap:wrap;list-style:none!important;margin:0!important;padding:0!important}
.tfx-breadcrumbs li{margin:0!important;line-height:1.5}
.tfx-breadcrumbs li+li:before{content:'/';color:var(--tf-muted);margin-right:12px}
.tfx-theme .tf-toc ul{columns:2;column-gap:34px}
.tfx-theme .tf-toc li{break-inside:avoid;margin:0 0 8px}
.tfx-theme h2[id],#tfx-calculator{scroll-margin-top:28px}
.tfx-input-table{display:table!important;margin-bottom:0!important}
.tfx-input-table caption{text-align:left;font-size:14px;color:var(--tf-muted);padding:0 0 12px}
.tfx-input-table th{width:50%}
.tfx-theme .tf-table-wrap{overflow-x:auto;max-width:100%}
.tfx-theme code{overflow-wrap:anywhere;white-space:normal}
.tfx-checksum{display:block;padding:16px;margin:14px 0;background:var(--tf-soft);border:1px solid var(--tf-line);border-radius:10px}
.tfx-faq{border-top:1px solid var(--tf-line);padding:17px 0}
.tfx-faq summary{font-weight:750;cursor:pointer;color:var(--tf-ink)}
.tfx-faq p{margin:14px 0 0!important;padding:0}
.tfx-theme .tf-card{margin:0}
.tfx-directory{margin:26px 0}
.tfx-directory .tf-card{display:flex;flex-direction:column}
.tfx-directory .tf-button{align-self:flex-start;margin-top:auto}
.tfx-library{margin-top:34px}
.tfx-theme .tf-byline{margin:24px 0}
.tfx-theme [hidden]{display:none!important}
.tfx-nav{display:flex;flex-wrap:wrap;gap:10px 20px;margin:24px 0;font-size:14px}
.tfx-paths{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}
.tfx-paths a{background:var(--tf-teal);border:1px solid var(--tf-teal);border-radius:10px;color:var(--tf-navy)!important;display:inline-flex;font-size:14px;font-weight:800;justify-content:center;line-height:1.25;padding:13px 18px;text-decoration:none!important}
.tfx-paths a:hover{background:#45dfce}
.tfx-footer{padding:20px 24px;text-align:center;background:var(--tf-navy);color:var(--tf-muted);font-size:13px}
.tfx-footer a{color:#c7ebe3;text-decoration:underline;text-underline-offset:3px}
.tfx-partner-disclosure p{margin:10px 0 0;padding:0}
/* Calculator fields extend the theme's existing card/result pattern. */
.tfx-form h2{margin:12px 0 24px!important}
.tfx-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}
.tfx-theme label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:750;min-width:0;color:var(--tf-ink)}
.tfx-theme input,.tfx-theme select,.tfx-theme textarea{font-family:inherit;font-size:16px;font-weight:600;line-height:1.4;width:100%;min-width:0;min-height:48px;border:1px solid #b9cbd5;background:#f7fafb;border-radius:9px;padding:12px;color:var(--tf-ink)}
.tfx-theme textarea{min-height:150px;resize:vertical}
.tfx-theme label small{font-size:12px;font-weight:400;line-height:1.5;color:var(--tf-muted)}
.tfx-theme input:focus-visible,.tfx-theme select:focus-visible,.tfx-theme textarea:focus-visible{outline:3px solid var(--tf-teal-dark);outline-offset:3px}
.tfx-form button{border:1px solid var(--tf-teal);border-radius:10px;min-height:48px;padding:13px 20px;background:var(--tf-teal);color:var(--tf-navy);font:inherit;font-size:15px;font-weight:800;cursor:pointer;display:inline-block;margin:18px 12px 0 0}
.tfx-form button:hover{background:#45dfce}
.tfx-form .tfx-secondary{background:#e5f6f3;border-color:#b4e6df;color:#075f57}
.tfx-form button:disabled{opacity:.6;cursor:wait}
.tfx-result{margin:26px 0 12px;padding:0;background:var(--tf-panel);border-radius:14px;overflow:hidden;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px}
.tfx-result>div{padding:23px;background:#0b2135;min-width:0}
.tfx-result strong{display:block;color:#6ae7d7;font-size:clamp(23px,2.6vw,32px);line-height:1.35;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tfx-result span{font-size:14px;color:#c4d5e0;display:block}
.tfx-error{color:#85201c;border-left:4px solid #b33430;background:#fff0ef;padding:14px;margin-top:20px}
.tfx-source,.tfx-theme .tf-disclaimer{font-size:13px;color:var(--tf-muted)}
.tfx-status{font-size:14px;margin:12px 0!important;color:var(--tf-muted)}
.tfx-full{grid-column:1/-1}
/* HFM creative: native card spacing with the broker's official black/red identity. */
.tfx-hfm-ad{box-sizing:border-box;max-width:100%;margin:32px 0;border:1px solid #26313b;border-top:3px solid #cd0511;border-radius:var(--tf-radius,18px);background:#000;color:#fff;overflow:hidden;box-shadow:var(--tf-shadow,0 18px 48px rgba(7,17,31,.12));font-family:inherit}
.tfx-hfm-ad *{box-sizing:border-box}
.tfx-hfm-ad .tfx-hfm-ad-label{margin:0!important;padding:16px 24px 0!important;color:#d1d7de!important;font-size:12px!important;font-weight:650;line-height:1.5!important;letter-spacing:.08em;text-transform:uppercase}
.tfx-hfm-ad-main{display:grid;grid-template-columns:220px minmax(0,1fr) 180px;gap:24px;align-items:center;padding:0 28px 16px 12px}
.tfx-hfm-ad-brand{min-width:0}
.tfx-hfm-ad .tfx-hfm-ad-brand img{display:block;width:220px;max-width:100%;height:auto;margin:0;border:0;border-radius:0;box-shadow:none;object-fit:contain}
.tfx-hfm-ad .tfx-hfm-ad-copy h2{color:#fff!important;font-size:clamp(25px,2.4vw,31px)!important;font-weight:800!important;line-height:1.16!important;margin:0 0 12px!important;padding:0!important;border:0!important;letter-spacing:-.02em}
#page-container .tfx-hfm-ad .tfx-hfm-ad-copy h2{color:#fff!important}
.tfx-hfm-ad .tfx-hfm-ad-copy p{font-size:15px!important;color:#cbd3dc!important;line-height:1.65!important;margin:0!important;padding:0!important;max-width:43ch!important}
.tfx-hfm-ad-actions{display:flex;flex-direction:column;gap:13px;align-items:stretch;text-align:center}
.tfx-hfm-ad a.tfx-hfm-ad-button{display:flex;gap:20px;align-items:center;justify-content:center;min-height:48px;padding:14px 18px;background:#cd0511;color:#fff!important;border:1px solid #cd0511;border-radius:10px;font-size:16px!important;font-weight:800;line-height:1.25;text-decoration:none!important;white-space:nowrap;transition:background .15s ease}
.tfx-hfm-ad a.tfx-hfm-ad-button:hover{background:#a9000a;border-color:#a9000a}
.tfx-hfm-ad .tfx-hfm-ad-review{font-size:13px!important;line-height:1.5;color:#d1d7de!important;text-decoration:underline!important;text-underline-offset:3px}
.tfx-hfm-ad-details{padding:16px 24px 18px;border-top:1px solid #2d333b;background:#11161d}
.tfx-hfm-ad .tfx-hfm-ad-details p{margin:0!important;padding:0!important;line-height:1.6!important;max-width:none!important}
.tfx-hfm-ad .tfx-hfm-ad-risk{font-size:14px!important;color:#fff!important}
.tfx-hfm-ad .tfx-hfm-ad-region{font-size:13px!important;color:#d1d7de!important;margin-top:5px!important}
.tfx-hfm-ad .tfx-hfm-ad-disclosure{font-size:13px!important;color:#b9c4d0!important;margin-top:8px!important}
.tfx-hfm-ad .tfx-hfm-ad-details a{color:inherit!important;text-decoration:underline!important;text-underline-offset:3px}
.tfx-hfm-ad a:focus-visible{outline:3px solid #fff;outline-offset:4px}
.tfx-hfm-ad--compact .tfx-hfm-ad-main{grid-template-columns:1fr;gap:10px;padding:0 20px 24px}
.tfx-hfm-ad--compact .tfx-hfm-ad-brand img{width:210px;margin:0 auto}
.tfx-hfm-ad--compact .tfx-hfm-ad-copy h2{font-size:25px!important}
.tfx-hfm-ad--compact .tfx-hfm-ad-actions{margin-top:10px}
.tfx-hfm-ad--compact .tfx-hfm-ad-details{padding:16px 20px}
@media(max-width:980px){.tfx-hfm-ad-main{grid-template-columns:170px minmax(0,1fr);gap:16px;padding:0 24px 22px 12px}.tfx-hfm-ad-actions{grid-column:2}.tfx-hfm-ad--compact .tfx-hfm-ad-actions{grid-column:auto}}
@media(max-width:600px){.tfx-hfm-ad-main{grid-template-columns:1fr;gap:12px;padding:0 22px 24px}.tfx-hfm-ad .tfx-hfm-ad-brand img{width:180px;margin:0 auto}.tfx-hfm-ad .tfx-hfm-ad-copy h2{font-size:27px!important}.tfx-hfm-ad-actions{grid-column:1;margin-top:8px}.tfx-hfm-ad-details{padding:16px 22px 18px}}
@media(max-width:980px){.tfx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tfx-result{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body.tfx-managed #main-content .container{padding-top:28px}.tfx-theme .tfx-page-hero h1{font-size:34px!important}.tfx-theme .tf-toc ul{columns:1}.tfx-grid,.tfx-result{grid-template-columns:1fr}.tfx-theme .tf-setup-links{padding:20px}.tfx-paths{flex-direction:column}.tfx-form button{width:100%;margin-right:0}.tfx-breadcrumbs li:last-child{max-width:100%;overflow-wrap:anywhere}}
