/* MR F3-A HOME ONLY — isolated selectors; inherited light theme stays intact. */
body .mrcv2 .mrf3-hero {
  overflow:visible !important; position:relative !important; z-index:100 !important;
  border:1px solid #e2e8f0 !important; border-radius:24px !important;
  background:radial-gradient(circle at 100% 0%,rgba(255,90,31,.085),transparent 34%),#fff !important;
  box-shadow:0 14px 44px rgba(15,23,42,.045) !important;
  padding:27px 30px 22px !important;
}
.mrf3-hero-main{position:relative;z-index:1;}
body .mrcv2 .mrf3-hero .mrcv2-hero-title {
  font-size:clamp(30px,3.5vw,49px) !important; letter-spacing:-.060em !important;
  line-height:1.06 !important; margin:12px 0 8px !important; max-width:none !important;
}
.mrf3-hero .mrcv2-hero-title span{color:#ff5a1f;}
body .mrcv2 .mrf3-hero .mrcv2-hero-text{
  display:block !important; max-width:870px !important; font-size:14px !important;
  margin:0 0 19px !important; line-height:1.55 !important; color:#64748b !important;
}
.mrf3-hero-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;max-width:1120px;}
body .mrcv2 .mrf3-hero .mrcv2-search-wrap{width:100% !important;max-width:none !important;margin:0 !important;z-index:120 !important;position:relative !important;overflow:visible !important;}
body .mrcv2 .mrf3-hero .mrcv2-search{overflow:visible !important;}
body .mrcv2 .mrf3-hero .mrcv2-search input{height:54px !important;border-radius:14px !important;background:#fff !important;box-shadow:0 4px 12px rgba(15,23,42,.025) !important;}
body .mrcv2 .mrf3-hero .mrcv2-autocomplete{z-index:100000 !important;top:60px !important;max-height:min(420px,60vh) !important;overflow-y:auto !important;overscroll-behavior:contain;}
.mrf3-primary-cta{
  display:inline-flex;justify-content:center;align-items:center;gap:12px;
  background:#ff5a1f;color:white !important;border:1px solid #ff5a1f;border-radius:14px;
  min-height:54px;padding:0 25px;font-size:15px;font-weight:900;white-space:nowrap;
  box-shadow:0 8px 18px rgba(255,90,31,.16);text-decoration:none !important;
}
.mrf3-primary-cta:hover{background:#e54b11;color:white !important;}
.mrf3-primary-cta:focus-visible,.mrf3-filter:focus-visible,.mrf3-case-card:focus-visible,.mrf3-quick-link:focus-visible{outline:3px solid #fdba74;outline-offset:3px;}
.mrf3-hero-bottom{display:flex;flex-wrap:wrap;gap:9px 23px;margin-top:13px;font-size:11px;color:#64748b;font-weight:700;}
.mrf3-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 0;}
.mrf3-quick-link{
  display:flex;align-items:center;gap:12px;min-width:0;padding:16px 17px;
  text-decoration:none !important;border:1px solid #e2e8f0;border-radius:18px;background:#fff;
  transition:border-color .18s,transform .18s,box-shadow .18s;
}
.mrf3-quick-link:hover{border-color:#ffc4af;box-shadow:0 12px 26px rgba(15,23,42,.055);transform:translateY(-2px);}
.mrf3-quick-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:#fff2ec;font-size:21px;}
.mrf3-quick-copy{display:grid;gap:2px;min-width:0;}
.mrf3-quick-copy strong{color:#111c33;font-weight:900;font-size:14px;line-height:1.3;}
.mrf3-quick-copy small{color:#64748b;font-weight:650;font-size:11px;line-height:1.45;}
.mrf3-arrow{color:#ff5a1f;font-size:22px;font-weight:900;margin-left:auto;flex:none;}
body .mrcv2 .mrf3-recent{margin-top:16px !important;padding:24px !important;border-radius:23px !important;}
body .mrcv2 .mrf3-recent .mrcv2-title{font-size:27px !important;}
.mrf3-eyebrow{color:#f15a26;letter-spacing:.12em;font-size:10px;font-weight:900;display:inline-block;margin-bottom:7px;}
.mrf3-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0 17px;}
.mrf3-filter{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:0 15px;border-radius:999px;color:#52637c !important;border:1px solid #e0e7ef;text-decoration:none !important;font-size:12px;font-weight:850;transition:background .2s,color .2s;}
.mrf3-filter:hover{border-color:#fda987;color:#e84d15 !important;}
.mrf3-filter.is-active{background:#ff5a1f;color:#fff !important;border-color:#ff5a1f;box-shadow:0 5px 11px rgba(255,90,31,.14);}
.mrf3-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.mrf3-case-card{
  display:flex;flex-direction:column;gap:0;min-width:0;min-height:275px;
  padding:18px;border:1px solid #e3eaf3;border-radius:18px;background:#fff;
  color:#172035 !important;text-decoration:none !important;transition:transform .2s,box-shadow .2s,border-color .2s;
}
.mrf3-case-card:hover{border-color:#ffbda4;box-shadow:0 15px 31px rgba(15,23,42,.075);transform:translateY(-2px);}
.mrf3-case-business{display:flex;align-items:center;gap:11px;min-height:49px;min-width:0;}
.mrf3-case-business img,.mrf3-case-fallback{width:46px;height:46px;flex:0 0 46px;object-fit:cover;border-radius:13px;border:1px solid #edf0f5;}
.mrf3-case-fallback{display:grid;place-items:center;color:#ff5a1f;background:#fff1e8;font-size:12px;font-weight:950;}
.mrf3-case-business-copy{display:grid;gap:3px;min-width:0;}
.mrf3-case-business-copy strong{font-size:13px;line-height:1.3;font-weight:850;color:#162139;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mrf3-case-business-copy small{font-size:11px;line-height:1.35;font-weight:650;color:#8493a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.mrf3-case-topic{margin:16px 0 7px;width:fit-content;max-width:100%;border-radius:7px;background:#fff2eb;color:#d44b19;padding:5px 8px;font-size:10px;line-height:1.2;font-weight:850;}
.mrf3-case-title{margin-top:14px;font-size:15px;color:#0f172a;font-weight:950;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mrf3-case-topic + .mrf3-case-title{margin-top:0;}
.mrf3-case-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-top:7px;color:#66778f;font-size:12px;line-height:1.55;font-weight:600;}
.mrf3-case-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:14px;}
.mrf3-case-read{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:900;color:#fa5820;white-space:nowrap;}
.mrf3-empty{display:flex;flex-direction:column;gap:10px;grid-column:1/-1;background:#f8fafc;border:1px dashed #dce3ec;border-radius:14px;padding:24px;color:#64748b;font-size:13px;}
.mrf3-empty strong{font-weight:900;font-size:16px;color:#101c31;}
.mrf3-empty a{color:#ee541b;font-weight:900;}
.mrf3-case-disclaimer{font-size:10px;color:#94a3b8;line-height:1.5;margin:13px 0 0;}
/* Compact process now follows the feed and categories, not the hero. */
body .mrcv2 .mrf3-process-section{margin-top:16px !important;padding:19px 20px !important;border-radius:21px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-process-head{margin-bottom:10px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-title{font-size:21px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-subtitle{font-size:12px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-step{min-height:116px !important;padding:12px !important;border-radius:14px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-step-icon{width:34px !important;height:34px !important;border-radius:11px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-step-icon svg{width:17px !important;height:17px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-step-top{margin-bottom:7px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-step strong{font-size:12.5px !important;}
body .mrcv2 .mrf3-process-section .mrcv2-step p{font-size:11px !important;line-height:1.4 !important;margin-top:4px !important;}
/* Nearby groups: first category visible; rest expand by native details/summary. */
.mrf3-nearby-group > summary{list-style:none;cursor:pointer;}
.mrf3-nearby-group > summary::-webkit-details-marker{display:none;}
.mrf3-nearby-group .mrcv2-count > span{display:inline-block;transition:transform .2s;}
.mrf3-nearby-group[open] .mrcv2-count > span{transform:rotate(180deg);}
.mrf3-nearby-group > summary:focus-visible{outline:3px solid #ffbb99;outline-offset:2px;}
body .mrcv2 .mrf3-nearby .mrcv2-place-rail,
body .mrcv2 .mrf3-discovery .mrcv2-place-rail{
  display:flex !important;flex-wrap:nowrap !important;overflow-x:auto !important;gap:12px !important;
  scroll-snap-type:x proximity;padding:8px 2px 10px;scrollbar-width:thin;
}
body .mrcv2 .mrf3-nearby .mrcv2-place,
body .mrcv2 .mrf3-discovery .mrcv2-place{flex:0 0 208px !important;min-width:208px !important;scroll-snap-align:start;}
body .mrcv2 .mrf3-discovery .mrcv2-group{margin-top:12px !important;}
body .mrcv2 .mrf3-nearby .mrcv2-group{margin-top:11px !important;}
body .mrcv2 .mrf3-nearby .mrcv2-group-list{gap:10px !important;}
body .mrcv2 .mrf3-nearby .mrcv2-group-head{padding:13px 15px !important;}
body .mrcv2 .mrf3-nearby .mrcv2-group-title h3{font-size:16px !important;}
body .mrcv2 .mrf3-nearby .mrcv2-group-title p{font-size:11px !important;}
body .mrcv2 .mrf3-nearby .mrcv2-group .mrcv2-place-rail{margin:0 11px 7px;}
/* Ad frames: avoid padded empty-looking label-only containers, keep creatives unchanged. */
body .mrcv2 .mrcv2-ad-band{min-height:0 !important;padding:0 !important;margin-top:16px !important;margin-bottom:18px !important;}
body .mrcv2 .mrcv2-ad-band:has(.mrpd-ad-frame:empty){display:none !important;}
@media(max-width:1030px){
 .mrf3-quick-links{gap:8px;}
 .mrf3-quick-link{padding:12px;gap:8px;}
 .mrf3-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:768px){
 body .mrcv2 .mrf3-hero{padding:18px 15px !important;border-radius:19px !important;}
 body .mrcv2 .mrf3-hero .mrcv2-hero-title{font-size:clamp(29px,7.8vw,40px) !important;}
 .mrf3-hero-controls{grid-template-columns:1fr;gap:10px;}
 .mrf3-primary-cta{width:100%;min-height:48px;padding:0 13px;font-size:14px;}
 .mrf3-hero-bottom{font-size:10px;gap:6px 12px;}
 .mrf3-quick-links{grid-template-columns:1fr;gap:8px;}
 .mrf3-quick-link{padding:11px 12px;border-radius:14px;}
 .mrf3-quick-icon{width:39px;height:39px;border-radius:11px;font-size:18px;}
 body .mrcv2 .mrf3-recent{padding:16px 13px !important;border-radius:19px !important;}
 .mrf3-filters{gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;}
 .mrf3-filter{white-space:nowrap;flex:0 0 auto;font-size:11px;padding:0 11px;min-height:36px;}
 .mrf3-case-grid{grid-template-columns:1fr;gap:9px;}
 .mrf3-case-card{min-height:220px;padding:15px;border-radius:15px;}
 body .mrcv2 .mrf3-process-section{padding:15px !important;}
 body .mrcv2 .mrf3-process-section .mrcv2-process{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:7px !important;}
 body .mrcv2 .mrf3-process-section .mrcv2-step{min-height:124px !important;padding:10px !important;}
}
@media(max-width:400px){
 .mrf3-quick-copy strong{font-size:12.5px;}
 body .mrcv2 .mrf3-process-section .mrcv2-process{grid-template-columns:1fr !important;}
 body .mrcv2 .mrf3-hero .mrcv2-hero-title{font-size:29px !important;}
}
/* F3 responsive contract guards against older global form/shell width rules. */
body .mrcv2 .mrcv2-shell{box-sizing:border-box !important;}
body .mrcv2 .mrf3-hero .mrcv2-search input{
 display:block !important;width:100% !important;max-width:100% !important;
 min-width:0 !important;box-sizing:border-box !important;padding:0 48px !important;margin:0 !important;
}
body .mrcv2 .mrf3-hero .mrf3-primary-cta{
 box-sizing:border-box !important;max-width:100% !important;min-width:0 !important;
}
body .mrcv2 .mrf3-recent .mrf3-head{
 display:flex !important;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px;
}
@media(max-width:768px){
 body .mrcv2 .mrf3-recent .mrf3-head{display:block !important;}
}
body .mrcv2 .mrf3-hero .mrcv2-search-icon{
 position:absolute !important;left:17px !important;top:50% !important;transform:translateY(-50%) !important;
 z-index:3 !important;pointer-events:none;font-size:20px !important;line-height:1 !important;
}
body .mrcv2 .mrf3-hero .mrcv2-search-clear{
 position:absolute !important;right:10px !important;top:50% !important;transform:translateY(-50%) !important;
 z-index:3 !important;
}
