/* v1.20.0 — corrected shared platform cards for homepage/category/compare views. */
.ed-survey-card{--survey-accent:#00ead8;--survey-button:linear-gradient(105deg,#ff25b0,#ff9140);position:relative;min-width:0;container-type:inline-size;display:flex;flex-direction:column;padding:16px 22px;border:1px solid #19465a;border-radius:24px;background:linear-gradient(145deg,#041426,#000d1c 70%,#010b17);color:#f5f8ff;box-shadow:inset 0 1px 0 #ffffff05;font-family:inherit;font-size:14px;line-height:1.5;overflow:hidden}
.ed-survey-card *{box-sizing:border-box}
.ed-survey-top{display:flex;align-items:center;justify-content:space-between;height:36px;margin:0 -5px 16px}
.ed-survey-top>div{display:flex;gap:6px;align-items:center}
.ed-survey-rank{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#f4f7fb;color:#091425;font-size:18px;font-weight:800;box-shadow:0 1px 4px #0008}
.ed-survey-pill,.ed-survey-pick{display:inline-flex;align-items:center;min-height:30px;padding:5px 13px;border-radius:14px;background:linear-gradient(135deg,#30255f,#2b1b60);border:1px solid #49327c55;color:#fff;font-size:11px;font-weight:850;line-height:1.2;white-space:nowrap}
.ed-survey-pick{background:transparent;border-color:#9d7514;color:#ffdf50;border-radius:11px;padding:5px 10px}
.ed-survey-heading{display:grid;grid-template-columns:84px minmax(0,1fr);gap:20px;align-items:end;min-height:84px}
.ed-survey-logo{width:84px;height:82px;border:1px solid #d9e5ef;border-radius:17px;background:#fff;display:grid;place-items:center;overflow:hidden;padding:10px;box-shadow:0 0 20px #744dff15}
.ed-survey-logo img{display:block;width:100%;height:100%;max-width:100%;max-height:60px;object-fit:contain}
.ed-survey-logo>span{display:none;text-align:center;color:#071019;font-size:14px;font-weight:850;line-height:1.35;overflow-wrap:anywhere;max-width:100%}
.ed-survey-logo.is-fallback>span{display:block}
.ed-survey-logo.is-fallback>img{display:none}
.ed-survey-identity{min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;gap:15px;padding-top:10px}
.ed-survey-context{align-self:flex-start;max-width:100%;padding:6px 11px;border:1px solid var(--survey-accent);border-radius:10px;color:var(--survey-accent);box-shadow:inset 0 0 12px #00edcf0b;font-size:11px;font-weight:800;line-height:1.3;white-space:normal}
.ed-survey-card h3{font-size:23px;font-weight:750;line-height:1.15;letter-spacing:-.025em;margin:0;color:#f6f8ff;overflow-wrap:anywhere}
.ed-survey-rating{height:64px;border:1px solid #29465e;border-radius:12px;background:linear-gradient(135deg,#061426,#09192a);text-align:center;display:flex;flex-direction:column;justify-content:center;gap:0}
.ed-survey-rating strong{font-size:22px;line-height:1.25;font-weight:600}.ed-survey-rating strong span{color:#ffd34e;font-size:27px;vertical-align:-1px}.ed-survey-rating small{font-size:12px;color:#b6d0e5}
.ed-survey-card .ed-survey-description{margin:14px 0 17px;min-height:48px;color:#c7dbea;font-size:14px;line-height:1.7}
.ed-survey-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;border-top:1px solid #203442;padding-top:17px;min-height:85px}
.ed-survey-fact{display:flex;gap:10px;align-items:flex-start;min-width:0}.ed-survey-fact>div{min-width:0;padding-top:2px}
.ed-survey-icon{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border:1px solid #007eb2;border-radius:11px;background:radial-gradient(circle,#0a3151,#031322);color:#a6dfff;box-shadow:inset 0 0 0 3px #001425}
.ed-survey-icon svg{width:25px;height:25px}.ed-survey-icon-cash{border-color:#a3279e;color:#ffb4ed;background:radial-gradient(circle,#4b1750,#190d29)}
.ed-survey-fact small{display:block;font-size:10px;line-height:1.4;color:#b7d2e7;margin-bottom:4px}.ed-survey-fact b{display:block;font-size:12px;line-height:1.45;font-weight:750;overflow-wrap:anywhere;color:#f4f7ff}
.ed-survey-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;padding:0;margin:20px 0 22px;min-height:22px}.ed-survey-benefits li{display:flex;gap:5px;align-items:center;font-size:11px;line-height:1.4;color:#cce2ef;min-width:0}.ed-survey-benefits svg{width:20px;height:20px;flex:0 0 20px;color:#00f1d5}
.ed-survey-actions{display:grid;gap:10px;margin-top:auto}.ed-survey-primary,.ed-survey-guide{display:flex;justify-content:center;align-items:center;text-align:center;text-decoration:none;line-height:1.35;transition:filter .15s;overflow-wrap:anywhere}
.ed-survey-primary{min-height:56px;padding:12px 14px;border-radius:14px;background:var(--survey-button);border:1px solid #ffffff20;color:#fff;font-size:16px;font-weight:750}
.ed-survey-guide{min-height:48px;padding:10px 12px;border-radius:14px;border:1px solid #216386;background:#00122680;color:#d4f2ff;font-size:13px;font-weight:700}
.ed-survey-primary:hover,.ed-survey-guide:hover{filter:brightness(1.12)}.ed-survey-card a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ed-survey-brand-ipsos-isay{--survey-button:linear-gradient(105deg,#7300ee,#304678)}
.ed-survey-brand-hiving{--survey-accent:#b441ff;--survey-button:linear-gradient(100deg,#0056ed,#0076ff)}
.ed-survey-brand-opiday{--survey-accent:#ff48c7;--survey-button:linear-gradient(105deg,#f123dc,#a23aef)}
.ed-survey-brand-surveylama{--survey-button:linear-gradient(105deg,#00d6d4,#00a898)}
.ed-survey-brand-five-surveys{--survey-button:linear-gradient(105deg,#b0e943,#00c979)}
.ed-survey-brand-five-surveys .ed-survey-primary{color:#001c14}
.ed-survey-brand-ipsos-isay .ed-survey-logo{background:linear-gradient(135deg,#fff,#bbffe9)}
.ed-survey-brand-hiving .ed-survey-logo{background:linear-gradient(135deg,#e1eaff,#90bbff)}
.ed-survey-brand-opiday .ed-survey-logo{background:linear-gradient(135deg,#ac2cf7,#7024ec);border-color:#b56aff}
.ed-survey-brand-surveylama .ed-survey-logo{background:linear-gradient(135deg,#00e4d6,#00aaa7);border-color:#15d6d0;padding:3px}
.ed-survey-brand-surveylama .ed-survey-logo>span{font-size:12px}
.ed-survey-featured{border-color:#a57b15;box-shadow:0 0 18px #f5b7000c}.ed-survey-featured .ed-survey-rank{background:linear-gradient(135deg,#ffed83,#ffb820);color:#111}.ed-survey-featured .ed-survey-icon-cash{border-color:#9f7519;color:#ffdc72;background:#2e2609}
.ed-platform-card-grid:has(>.ed-survey-card),.ed-compare-cards:has(>.ed-survey-card){gap:20px}
@container (max-width:420px){.ed-survey-heading{grid-template-columns:72px minmax(0,1fr);gap:13px}.ed-survey-logo{width:72px;height:78px}.ed-survey-card h3{font-size:20px}.ed-survey-context{font-size:9px;padding:5px 7px}.ed-survey-icon{width:30px;height:34px;flex-basis:30px}.ed-survey-icon svg{width:22px;height:22px}.ed-survey-fact{gap:6px}.ed-survey-facts{gap:8px}.ed-survey-fact b{font-size:11px}.ed-survey-benefits{gap:7px}.ed-survey-benefits li{font-size:10px}.ed-survey-primary{font-size:14px}}
@container (max-width:310px){.ed-survey-heading{grid-template-columns:60px minmax(0,1fr);gap:10px}.ed-survey-logo{width:60px;height:66px;padding:6px}.ed-survey-card h3{font-size:18px}.ed-survey-identity{gap:10px}.ed-survey-rating{height:58px}.ed-survey-rating small{font-size:10px}.ed-survey-fact{flex-direction:column}.ed-survey-benefits{grid-template-columns:1fr;gap:7px}.ed-survey-benefits li{font-size:12px}}
@media(max-width:600px){.ed-survey-card{padding:16px 18px;border-radius:22px}}

/* Scale the reference anatomy to the existing site shell without changing it. */
@container (max-width:420px){.ed-survey-top{height:32px;margin-bottom:14px}.ed-survey-rank{width:32px;height:32px;font-size:17px}.ed-survey-heading{min-height:76px;grid-template-columns:76px minmax(0,1fr);gap:16px}.ed-survey-logo{width:76px;height:76px}.ed-survey-context{font-size:10px}.ed-survey-card h3{font-size:21px}.ed-survey-card .ed-survey-description{min-height:44px;font-size:13px;margin:12px 0 15px}.ed-survey-facts{min-height:76px;padding-top:15px}.ed-survey-benefits{margin:18px 0 20px;min-height:20px}.ed-survey-primary{min-height:50px;font-size:14px}.ed-survey-guide{min-height:44px;font-size:12px}.ed-survey-actions{gap:9px}}
@container (max-width:310px){.ed-survey-heading{grid-template-columns:60px minmax(0,1fr);gap:10px}.ed-survey-logo{width:60px;height:66px}.ed-survey-card h3{font-size:18px}.ed-survey-context{font-size:9px}.ed-survey-benefits{grid-template-columns:1fr}}

.ed-survey-logo>span{word-break:normal;overflow-wrap:normal;font-size:13px}.ed-survey-brand-surveylama .ed-survey-logo>span{white-space:nowrap;font-size:10px;letter-spacing:-.45px}.ed-survey-brand-ipsos-isay .ed-survey-logo>span{max-width:45px;font-size:17px}.ed-survey-brand-surveoo .ed-survey-logo>span{font-size:12px}
.ed-survey-card[hidden]{display:none!important}

.ed-survey-logo.is-fallback{padding:6px}.ed-survey-logo>span{min-width:0;width:100%;overflow-wrap:anywhere}.ed-survey-brand-kingopinion .ed-survey-logo>span{font-size:10px}
@media(min-width:1181px){.ed-offer-grid-five>.ed-survey-card{grid-column:span 2}}
.ed-survey-brand-surveylama .ed-survey-logo.is-fallback{padding:2px}@container(max-width:310px){.ed-survey-brand-surveylama .ed-survey-logo>span{font-size:9px}}

/* Homepage: equal tracks for survey and other platform cards, including the last row. */
#top-offers .ed-offer-grid-five{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch}
#top-offers .ed-offer-grid-five>article{grid-column:auto;min-width:0}
#top-offers .ed-offer-grid-five>.ed-offer-card{display:flex;flex-direction:column}
#top-offers .ed-offer-grid-five>.ed-offer-card>.ed-card-cta{margin-top:auto}
@media(max-width:1180px){#top-offers .ed-offer-grid-five{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#top-offers .ed-offer-grid-five{grid-template-columns:minmax(0,1fr)}}

/* v1.20.0 homepage card repair: one consistent component, no empty rating box, no clipped facts. */
.ed-survey-fact b{white-space:normal;overflow:visible;text-overflow:clip;word-break:normal;overflow-wrap:anywhere}
.ed-survey-benefits li span{min-width:0;overflow-wrap:anywhere}
#top-offers .ed-survey-card{height:100%;min-height:0}
#top-offers .ed-survey-description{min-height:0}
#top-offers .ed-survey-benefits{min-height:0}
@media(max-width:640px){#top-offers .ed-survey-facts{grid-template-columns:1fr;gap:10px}#top-offers .ed-survey-benefits{grid-template-columns:1fr}}
