.ces-afc{--teal:#03717e;--blue:#234872;--orange:#ff9900;--ink:#102a43;--muted:#61758a;max-width:1120px;margin:0 auto 48px;font-family:inherit;color:var(--ink)}
.ces-afc *{box-sizing:border-box}.ces-afc__hero{padding:28px 30px;border:1px solid #dbe5ea;border-radius:22px;background:linear-gradient(135deg,#f7fbfc,#fff)}.ces-afc__hero h2{margin:5px 0 8px;font-size:clamp(26px,4vw,42px);line-height:1.12;color:var(--blue)}.ces-afc__hero p{max-width:800px;margin:0;color:#40566b;font-size:17px}.ces-afc__eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:var(--teal)}.ces-afc__freshness{margin-top:15px;font-size:13px;color:#556b7d}.ces-afc__mode{display:flex;gap:8px;margin:20px 0}.ces-afc__mode button{border:1px solid #ccd9df;background:white;border-radius:999px;padding:11px 16px;font-weight:700;color:var(--blue);cursor:pointer}.ces-afc__mode button.is-active{background:var(--blue);color:#fff;border-color:var(--blue)}.ces-afc__grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:20px}.ces-afc__card{border:1px solid #dce6eb;border-radius:20px;background:#fff;padding:24px;box-shadow:0 10px 32px rgba(27,61,79,.06)}.ces-afc__step{margin-bottom:18px}.ces-afc label,.ces-afc__step>label{display:block;font-weight:750;color:#173b55;margin-bottom:7px}.ces-afc input,.ces-afc select{width:100%;padding:12px 13px;border:1px solid #cbd9df;border-radius:10px;background:#fff;color:#163246;font:inherit}.ces-afc input:focus,.ces-afc select:focus{outline:2px solid rgba(3,113,126,.18);border-color:var(--teal)}.ces-afc small{display:block;margin-top:6px;color:var(--muted);line-height:1.45}.ces-afc__suggestion{padding:11px 12px;margin-top:8px;background:#edf9fa;border:1px solid #c6e8eb;border-radius:10px;font-size:14px}.ces-afc__suggestion button{margin-left:8px;border:0;background:var(--teal);color:#fff;border-radius:7px;padding:6px 9px;cursor:pointer}.ces-afc__suggestion button+button{background:#fff;color:var(--blue);border:1px solid #c9d9df}.ces-afc__advanced{border-top:1px solid #e5ecef;padding-top:14px;margin:4px 0 18px}.ces-afc__advanced summary{cursor:pointer;font-weight:700;color:var(--teal)}.ces-afc__dimensions,.ces-afc__advanced-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.ces-afc__advanced-grid{grid-template-columns:repeat(2,1fr)}.ces-afc__advanced label{font-size:13px}.ces-afc__calculate{width:100%;border:0;border-radius:11px;padding:14px 18px;background:var(--orange);color:#111;font-weight:800;font-size:16px;cursor:pointer}.ces-afc__calculate:hover{filter:brightness(.97)}.ces-afc__error{margin-top:12px;padding:10px 12px;background:#fff1f0;border:1px solid #efc1bd;color:#8c261c;border-radius:9px}.ces-afc__results{position:sticky;top:100px;align-self:start}.ces-afc__empty{text-align:center;padding:48px 20px;color:var(--muted)}.ces-afc__empty-icon{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#eef7f8;color:var(--teal);font-size:27px;font-weight:800}.ces-afc__empty h3{color:var(--blue);margin:14px 0 5px}.ces-afc__result-head{padding:18px;border-radius:15px;background:#f0f8f9;margin-bottom:14px}.ces-afc__result-head span{display:block;color:var(--muted);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.ces-afc__result-head strong{display:block;color:var(--teal);font-size:36px;line-height:1.1;margin:4px 0}.ces-afc__result-head small{margin:0}.ces-afc__breakdown>div{display:flex;justify-content:space-between;gap:14px;padding:10px 2px;border-bottom:1px solid #edf1f3}.ces-afc__breakdown span{color:#486075}.ces-afc__breakdown em{font-style:normal;font-size:12px}.ces-afc__breakdown strong{white-space:nowrap}.ces-afc__breakdown .ces-afc__total{padding:13px 8px;background:#fafafa;border-radius:8px;margin-top:6px;border:0}.ces-afc__assumptions{font-size:12px;line-height:1.5;color:#6a7c8b;margin-top:12px}.ces-afc__notes{margin-top:22px;padding:19px 22px;border-radius:16px;background:#f8fafb;border:1px solid #e0e8ec}.ces-afc__notes h3{margin:0 0 7px;color:var(--blue)}.ces-afc__notes p{margin:6px 0;color:#536a7b;font-size:14px;line-height:1.55}.ces-afc__notes a{color:var(--teal);font-weight:700}.ces-afc[hidden],[hidden]{display:none!important}@media(max-width:820px){.ces-afc__grid{grid-template-columns:1fr}.ces-afc__results{position:static}.ces-afc__advanced-grid,.ces-afc__dimensions{grid-template-columns:1fr}.ces-afc__mode{flex-direction:column}.ces-afc__hero,.ces-afc__card{padding:20px}.ces-afc__result-head strong{font-size:31px}}


/* v1.1.0 UX refinements */
.ces-afc__category-search{margin-bottom:8px}
.ces-afc__suggestion{line-height:1.45}
.ces-afc__suggest-list{display:grid;gap:7px;margin:9px 0 5px}
.ces-afc__suggest-choice{display:flex!important;justify-content:space-between;align-items:center;gap:10px;width:100%;margin:0!important;text-align:left!important;background:#fff!important;color:var(--blue)!important;border:1px solid #bad9dd!important;padding:9px 11px!important}
.ces-afc__suggest-choice:hover{border-color:var(--teal)!important;background:#f7fcfc!important}
.ces-afc__suggest-choice small{margin:0;color:var(--teal);font-size:11px;white-space:nowrap}
.ces-afc__dimensions>div,.ces-afc__advanced-grid>div{min-width:0}
.ces-afc__referral-detail,.ces-afc__referral-reason{background:#fbfdfd}
.ces-afc__referral-reason{display:block!important;padding:10px 12px!important}
.ces-afc__referral-reason[hidden]{display:none!important}
.ces-afc__referral-reason span,.ces-afc__referral-reason strong{display:block;white-space:normal!important}
.ces-afc__referral-reason strong{margin-top:4px;font-size:13px;line-height:1.45;color:#40566b}
.ces-afc__source{font-size:12px;line-height:1.5;color:#6a7c8b;margin-top:10px}.ces-afc__source a{color:var(--teal);font-weight:700}
.ces-afc__result-cta{margin-top:16px;padding:14px;border:1px solid #d9e7eb;border-radius:12px;background:#fbfdfd}.ces-afc__result-cta>strong{display:block;margin-bottom:10px;color:var(--blue)}.ces-afc__result-cta>div{display:flex;gap:8px;flex-wrap:wrap}
.ces-afc__button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;border-radius:9px;padding:10px 13px;font-weight:800;font-size:14px}.ces-afc__button--primary{background:var(--teal);color:#fff!important}.ces-afc__button--secondary{background:#fff;color:var(--blue)!important;border:1px solid #c8d8df}
.ces-afc__examples{margin-top:22px;padding:19px 22px;border:1px solid #e0e8ec;border-radius:16px;background:#fff}.ces-afc__examples h3{margin:0 0 8px;color:var(--blue)}.ces-afc__examples ul{margin:0;padding-left:20px;color:#536a7b}.ces-afc__examples li+li{margin-top:5px}
@media(max-width:520px){.ces-afc__result-cta>div{display:grid;grid-template-columns:1fr}.ces-afc__suggest-choice{align-items:flex-start;flex-direction:column}}

/* v1.1.2 content clarity */
.ces-afc__hero-help{margin-top:8px!important;font-weight:650;color:#294a61!important}
.ces-afc__helps{margin:18px 0 0;padding:16px 20px;border:1px solid #dfe9ed;border-radius:14px;background:#fbfdfd}
.ces-afc__helps h3{margin:0 0 6px;color:var(--blue);font-size:18px}
.ces-afc__helps p{margin:0;color:#536a7b;line-height:1.55;font-size:14px}
.ces-afc__info-note{margin-top:12px;padding:12px 13px;border:1px solid #dce8eb;border-radius:10px;background:#f8fbfc;color:#536a7b;font-size:13px;line-height:1.5}
.ces-afc__info-note strong,.ces-afc__info-note span{display:block}
.ces-afc__info-note strong{color:var(--blue);margin-bottom:4px}
.ces-afc__info-note[hidden]{display:none!important}


/* v1.1.3 category chooser + calculator page title */
body.page .prose>article>h1:first-child{font-size:clamp(2.125rem,4vw,3.75rem);line-height:1.06;letter-spacing:-.04em;max-width:1000px;margin-bottom:28px}
.ces-afc__chooser-head,.ces-afc__category-step-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}
.ces-afc__category-step-head label{margin:0}
.ces-afc__chooser-close,.ces-afc__category-cancel{flex:0 0 auto;border:1px solid #c9d9df;background:#fff;color:var(--blue);border-radius:8px;padding:7px 10px;font-weight:750;cursor:pointer}
.ces-afc__chooser-close:hover,.ces-afc__category-cancel:hover{border-color:var(--teal);color:var(--teal)}
.ces-afc__chooser-actions{margin:10px 0 7px}
.ces-afc__manual-choice{margin:0!important;border:1px solid var(--teal)!important;background:#fff!important;color:var(--teal)!important;border-radius:8px!important;padding:9px 11px!important;font-weight:800!important;cursor:pointer}
.ces-afc__manual-choice:hover{background:#f2fbfb!important}
.ces-afc__chooser-empty{margin:8px 0 10px;color:#536a7b;font-size:14px}
.ces-afc__suggest-choice span{min-width:0}
@media(max-width:600px){body.page .prose>article>h1:first-child{font-size:clamp(2rem,10vw,2.4rem);line-height:1.08;letter-spacing:-.035em;margin-bottom:22px}.ces-afc__chooser-head,.ces-afc__category-step-head{align-items:flex-start}.ces-afc__category-step-head label{padding-top:4px}}

/* v1.1.4 compact hero, category loading, tooltip and single combobox */
.ces-afc__hero{padding:18px 24px}
.ces-afc__hero h2{margin:4px 0 7px;font-size:clamp(24px,3.2vw,36px);line-height:1.1}
.ces-afc__hero-help{margin:0!important;font-weight:600;color:#40566b!important;font-size:15px!important}
.ces-afc__freshness{margin-top:9px;font-size:12px}
.ces-afc__mode{margin:14px 0}
.ces-afc__helps{margin:22px 0 0}

.ces-afc__category-loading{display:flex;align-items:center;gap:8px;margin-top:9px;padding:8px 10px;border-radius:9px;background:#f6fbfc;color:#496376;font-size:13px;border:1px solid #dcebed}
.ces-afc__category-loading[hidden]{display:none!important}
.ces-afc__spinner{width:15px;height:15px;border-radius:50%;border:2px solid #c9e1e4;border-top-color:var(--teal);animation:cesAfcSpin .75s linear infinite;flex:0 0 auto}
@keyframes cesAfcSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ces-afc__spinner{animation:none;border-top-color:#c9e1e4;border-right-color:var(--teal)}}

.ces-afc__selected-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ces-afc__selected-copy{min-width:0;line-height:1.45}
.ces-afc__selected-row>[data-change-cat]{flex:0 0 auto;margin:0!important}
.ces-afc__category-meta{display:inline-flex;align-items:center;gap:5px;margin-left:7px;vertical-align:middle;white-space:nowrap}
.ces-afc__source-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;background:#eef4f6;color:#526b7d;font-size:11px;font-weight:800;line-height:1.2}
.ces-afc__source-badge--ai{background:#e8f7f8;color:var(--teal);border:1px solid #bfe4e7}
.ces-afc__source-badge--manual{background:#f3f5f7;color:#526272}
.ces-afc__tooltip-wrap{position:relative;display:inline-flex;align-items:center}
.ces-afc__info-trigger{display:inline-grid!important;place-items:center;width:21px;height:21px;margin:0!important;padding:0!important;border:1px solid #b9d6da!important;border-radius:50%!important;background:#fff!important;color:var(--teal)!important;font:800 12px/1 inherit!important;cursor:help}
.ces-afc__tooltip{position:absolute;z-index:20;left:0;top:calc(100% + 7px);width:min(320px,80vw);padding:9px 10px;border-radius:8px;background:#173b55;color:#fff;font-size:12px;line-height:1.45;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;box-shadow:0 8px 22px rgba(16,42,67,.18)}
.ces-afc__tooltip-wrap:hover .ces-afc__tooltip,.ces-afc__info-trigger:focus+.ces-afc__tooltip,.ces-afc__tooltip-wrap.is-open .ces-afc__tooltip{opacity:1;visibility:visible}

.ces-afc__combobox{position:relative}
.ces-afc__category-combobox{padding-right:48px!important}
.ces-afc__category-toggle{position:absolute;right:5px;top:5px;width:40px;height:calc(100% - 10px);border:0;background:transparent;color:var(--blue);font-size:22px;line-height:1;cursor:pointer;border-radius:7px}
.ces-afc__category-toggle:hover,.ces-afc__category-toggle:focus{background:#f0f7f8;outline:none}
.ces-afc__category-listbox{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);max-height:300px;overflow:auto;padding:6px;background:#fff;border:1px solid #cbd9df;border-radius:10px;box-shadow:0 12px 30px rgba(16,42,67,.14)}
.ces-afc__category-option{display:block;width:100%;border:0;background:#fff;color:#173b55;text-align:left;padding:10px 11px;border-radius:7px;font:inherit;cursor:pointer}
.ces-afc__category-option:hover,.ces-afc__category-option.is-active{background:#eef8f9;color:var(--teal)}
.ces-afc__category-no-match{padding:12px;color:#667b8c;font-size:13px}

@media(max-width:600px){
 .ces-afc__hero{padding:15px 17px}
 .ces-afc__hero h2{font-size:clamp(23px,7vw,30px)}
 .ces-afc__selected-row{flex-direction:column}
 .ces-afc__selected-row>[data-change-cat]{align-self:flex-start}
 .ces-afc__category-meta{margin-left:4px}
 .ces-afc__tooltip{left:auto;right:-8px;width:min(270px,78vw)}
}


/* v1.1.5 compact help text + contextual tips */
.ces-afc__hero{padding:14px 18px!important}.ces-afc__hero h2{margin:4px 0 6px!important;font-size:clamp(22px,3vw,34px)!important}.ces-afc__mode{margin:10px 0 12px!important}.ces-afc__freshness{margin-top:7px!important}.ces-afc__label-with-tip,.ces-afc__result-label-wrap{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.ces-afc__result-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid #edf1f3;font-size:13px;color:#5e7384}.ces-afc__result-links a{color:var(--teal);font-weight:800;text-decoration:none}.ces-afc__result-links a:hover{text-decoration:underline}.ces-afc__result-links span[aria-hidden="true"]{color:#91a2af}.ces-afc__info-note,.ces-afc__result-cta{display:none!important}.ces-afc__helps{margin-top:18px}.ces-afc__notes{margin-top:18px}.ces-afc__examples{margin-top:18px}.ces-afc__tooltip{max-width:min(320px,80vw)}
@media(max-width:600px){.ces-afc__hero{padding:13px 15px!important}.ces-afc__hero h2{font-size:clamp(21px,6.4vw,28px)!important}.ces-afc__result-links{font-size:12px;gap:6px}}


/* v1.1.6 result tooltip polish + compact labels */
.ces-afc__amount-line,.ces-afc__value-with-tip{display:inline-flex;align-items:center;gap:7px;min-width:0}
.ces-afc__result-head .ces-afc__amount-line{margin:4px 0}
.ces-afc__result-head .ces-afc__amount-line strong{margin:0}
.ces-afc__referral-row .ces-afc__value-with-tip{margin-left:auto;justify-content:flex-end}
.ces-afc__tooltip-wrap{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}
.ces-afc__info-trigger{width:20px!important;height:20px!important;min-width:20px!important;border:1px solid #b9d6da!important;background:#fff!important;color:var(--teal)!important;font-size:12px!important;line-height:1!important;box-shadow:none!important}
.ces-afc__tooltip{left:50%!important;right:auto!important;top:calc(100% + 7px)!important;transform:translateX(-50%);width:min(280px,calc(100vw - 32px))!important;max-width:280px!important;padding:10px 11px!important;border:1px solid #d7e3e8!important;border-radius:9px!important;background:#fff!important;color:#334b5f!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important;letter-spacing:0!important;text-transform:none!important;box-shadow:0 8px 22px rgba(16,42,67,.12)!important;white-space:normal!important}
.ces-afc__tooltip:before{content:"";position:absolute;top:-5px;left:50%;width:9px;height:9px;background:#fff;border-left:1px solid #d7e3e8;border-top:1px solid #d7e3e8;transform:translateX(-50%) rotate(45deg)}
.ces-afc__tooltip-wrap:hover .ces-afc__tooltip,.ces-afc__info-trigger:focus+.ces-afc__tooltip,.ces-afc__tooltip-wrap.is-open .ces-afc__tooltip{opacity:1;visibility:visible}
.ces-afc__mode button{font-size:15px!important;padding:11px 16px!important}
@media(max-width:600px){.ces-afc__tooltip{left:auto!important;right:-6px!important;transform:none!important;width:min(260px,calc(100vw - 28px))!important}.ces-afc__tooltip:before{left:auto;right:11px;transform:rotate(45deg)}.ces-afc__mode button{font-size:14px!important;padding:10px 13px!important}}

/* v1.1.7 mobile-safe tooltips */
@media(max-width:700px){
 .ces-afc__tooltip.is-mobile-fixed{position:fixed!important;z-index:99999!important;margin:0!important;box-sizing:border-box!important;width:auto!important;max-width:none!important;left:12px!important;right:12px!important;transform:none!important;text-align:left!important;font-size:12px!important;line-height:1.45!important}
 .ces-afc__tooltip.is-mobile-fixed:before{display:none!important}
}

/* v1.1.9 reliable result positioning */
.ces-afc__result-head{scroll-margin-top:110px}
@media(max-width:820px){.ces-afc__result-head{scroll-margin-top:96px}}


/* v1.1.10 hardened mobile tooltip containment */
@media(max-width:700px){
 .ces-afc__tooltip.is-mobile-fixed{right:auto!important;width:min(280px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .ces-afc__tooltip-wrap:hover .ces-afc__tooltip,.ces-afc__info-trigger:focus+.ces-afc__tooltip{opacity:0!important;visibility:hidden!important}
 .ces-afc__tooltip-wrap.is-open .ces-afc__tooltip{opacity:1!important;visibility:visible!important}
}
