/* R-models LAB / light homepage sections v2
   Deliberately close to the approved calm, airy reference.
   Scope: ONLY #sets, #manufacturers, #blog on .rm-h1. */
.rmodels-theme .rm-h1 .rm-soft-sets,
.rmodels-theme .rm-h1 .rm-soft-manufacturers,
.rmodels-theme .rm-h1 .rm-soft-editorial{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:24px 24px 26px;
  border:1px solid #d9e3ef;
  border-radius:18px;
  background:#fbfcfe;
  box-shadow:0 3px 12px rgba(31,62,105,.03);
}
.rmodels-theme .rm-h1 .rm-soft-sets{background:#fafcff}
.rmodels-theme .rm-h1 .rm-soft-manufacturers{background:#fff}
.rmodels-theme .rm-h1 .rm-soft-editorial{background:#f9fbff}
.rm-h1 .rm-soft-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 20px;
  min-width:0;
  margin:0 0 16px;
}
.rm-h1 .rm-soft-heading>div{min-width:0}
.rm-h1 .rm-soft-kicker{
  display:block;
  margin-bottom:6px;
  font-weight:800;
  font-size:10px;
  line-height:14px;
  letter-spacing:.11em;
  color:#456fa6;
}
.rm-h1 .rm-soft-heading h2,
.rmodels-theme .rm-h1 .rm-soft-heading h2{
  margin:0 0 4px;
  color:#173556;
  font-size:24px;
  line-height:1.18;
  letter-spacing:-.03em;
  font-weight:800;
}
.rm-h1 .rm-soft-heading p{
  color:#66788b;
  font-size:13px;
  line-height:20px;
  margin:0;
}
.rm-h1 .rm-soft-all-brands{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:none;
  color:#205caa;
  font-weight:750;
  font-size:13px;
  line-height:20px;
  padding:5px 1px;
}
.rm-h1 .rm-soft-all-brands:hover{color:#e66a22;text-decoration:underline}
/* Three lightweight pastel curation tiles */
.rm-h1 .rm-soft-curations{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.rm-h1 .rm-soft-curation{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  min-height:210px;
  padding:18px 18px 16px;
  border:1px solid #dbe6f2;
  border-radius:16px;
  background:#edf4fc;
  color:#17334f;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.rm-h1 .rm-soft-curation:hover{
  transform:translateY(-2px);
  border-color:#bfd2e6;
  box-shadow:0 6px 14px rgba(34,67,109,.06);
}
.rm-h1 .rm-soft-curation--detail{
  background:#edf5f1;
  border-color:#dbe7df;
}
.rm-h1 .rm-soft-curation--gift{
  background:#fbf1e7;
  border-color:#eadccd;
}
.rm-h1 .rm-soft-icon{
  width:40px;
  height:40px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.45);
  color:#2f6ba7;
}
.rm-h1 .rm-soft-curation--detail .rm-soft-icon{background:#e1f3e9;color:#40886b}
.rm-h1 .rm-soft-curation--gift .rm-soft-icon{background:#fff0d9;color:#c28a45}
.rm-h1 .rm-soft-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rm-h1 .rm-soft-curation--start .rm-soft-icon svg{fill:currentColor;stroke:none}
.rm-h1 .rm-soft-curation-body{
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  flex:1;
  gap:6px;
  width:100%;
  min-width:0;
}
.rm-h1 .rm-soft-card-eyebrow{
  display:block;
  color:#6d7d8f;
  font-size:10px;
  font-weight:850;
  line-height:14px;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.rm-h1 .rm-soft-curation strong{
  display:block;
  color:#143456;
  font-weight:800;
  font-size:18px;
  line-height:23px;
  letter-spacing:-.025em;
}
.rm-h1 .rm-soft-card-summary{
  max-width:270px;
  font-size:12px;
  line-height:19px;
  color:#5c6f81;
}
.rm-h1 .rm-soft-card-link{
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin-top:auto;
  padding-top:8px;
  color:#1d5ca9;
  font-size:12px;
  font-weight:800;
  line-height:18px;
}
.rm-h1 .rm-soft-curation--detail .rm-soft-card-link{color:#397f64}
.rm-h1 .rm-soft-curation--gift .rm-soft-card-link{color:#ac702f}
/* Original logo assets from each manufacturer's site */
.rm-h1 .rm-soft-brands{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.rm-h1 .rm-soft-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:7px;
  min-height:160px;
  min-width:0;
  padding:17px 14px 15px;
  border:1px solid #e0e9f3;
  background:#fff;
  border-radius:13px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.rm-h1 .rm-soft-brand:hover{transform:translateY(-2px);border-color:#a7c4e3;box-shadow:0 6px 16px rgba(33,69,116,.075)}
.rm-h1 .rm-soft-brand-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:81px;
  padding:4px;
}
.rm-h1 .rm-soft-brand-logo img{
  display:block;
  width:auto;
  height:auto;
  max-width:min(160px,100%);
  max-height:73px;
  object-fit:contain;
  object-position:center;
}
.rm-h1 .rm-soft-brand-logo img[src$="academy.png"]{max-height:66px}
.rm-h1 .rm-soft-brand-logo img[src$="italeri.png"]{max-height:72px}
.rm-h1 .rm-soft-brand-logo img[src$="zvezda.svg"]{max-height:74px}
.rm-h1 .rm-soft-brand-name{font-size:17px;font-weight:750;color:#18324e}
.rm-h1 .rm-soft-brand-title{font-size:13px;font-weight:800;color:#334b66;line-height:19px}
.rm-h1 .rm-soft-brand-link{font-size:11px;font-weight:750;line-height:17px;color:#356eac}
/* Editorial cards: small thumbnails rather than large decorative banners */
.rm-h1 .rm-soft-stories{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}
.rm-h1 .rm-soft-story{
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:15px;
  min-width:0;
  min-height:168px;
  padding:16px;
  background:#fff;
  border:1px solid #e1eaf4;
  border-radius:13px;
  box-shadow:0 3px 10px rgba(38,71,114,.035);
}
.rm-h1 .rm-soft-story-art{
  display:block;
  width:100px;
  height:108px;
  border-radius:9px;
  overflow:hidden;
  background:#eef3f9;
}
.rm-h1 .rm-soft-story-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.rm-h1 .rm-soft-story-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}
.rm-h1 .rm-soft-story h3{
  font-size:16px;
  font-weight:800;
  line-height:21px;
  color:#213a58;
}
.rm-h1 .rm-soft-story h3 a:hover{color:#1f62ba}
.rm-h1 .rm-soft-story p{
  color:#657588;
  font-size:11px;
  line-height:17px;
  margin:0;
  flex:1;
}
.rm-h1 .rm-soft-story-link{font-size:12px;line-height:18px;font-weight:800;color:#2c64aa;margin-top:auto}
.rm-h1 .rm-soft-story-link:hover{text-decoration:underline;color:#de6726}
/* breakpoints */
@media(max-width:1100px){
  .rmodels-theme .rm-h1 .rm-soft-sets,
  .rmodels-theme .rm-h1 .rm-soft-manufacturers,
  .rmodels-theme .rm-h1 .rm-soft-editorial{padding:23px}
  .rm-h1 .rm-soft-story{grid-template-columns:75px minmax(0,1fr);padding:12px;gap:12px}
  .rm-h1 .rm-soft-story-art{width:75px;height:95px}
}
@media(min-width:768px) and (max-width:899px){
  .rm-h1 .rm-soft-curations,.rm-h1 .rm-soft-stories{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .rmodels-theme .rm-h1 .rm-soft-sets,
  .rmodels-theme .rm-h1 .rm-soft-manufacturers,
  .rmodels-theme .rm-h1 .rm-soft-editorial{padding:19px 17px;border-radius:14px}
  .rm-h1 .rm-soft-heading{margin-bottom:14px;gap:8px}
  .rm-h1 .rm-soft-heading h2{font-size:22px;line-height:26px}
  .rm-h1 .rm-soft-heading p{font-size:12px;line-height:18px}
  .rm-h1 .rm-soft-curations{grid-template-columns:minmax(0,1fr);gap:11px}
  .rm-h1 .rm-soft-curation{min-height:185px;padding:16px;gap:12px}
  .rm-h1 .rm-soft-curation strong{font-size:18px;line-height:22px}
  .rm-h1 .rm-soft-card-summary{font-size:12px;line-height:18px}
  .rm-h1 .rm-soft-brands{grid-template-columns:minmax(0,1fr);gap:11px}
  .rm-h1 .rm-soft-brand{min-height:136px;padding:13px}
  .rm-h1 .rm-soft-brand-logo{height:67px}
  .rm-h1 .rm-soft-brand-logo img{max-height:61px}
  .rm-h1 .rm-soft-stories{grid-template-columns:minmax(0,1fr);gap:11px}
  .rm-h1 .rm-soft-story{grid-template-columns:87px minmax(0,1fr);min-height:145px;padding:12px}
  .rm-h1 .rm-soft-story-art{width:87px;height:98px}
  .rm-h1 .rm-soft-all-brands{font-size:12px;padding-top:0}
}
@media(max-width:350px){
  .rmodels-theme .rm-h1 .rm-soft-sets,
  .rmodels-theme .rm-h1 .rm-soft-manufacturers,
  .rmodels-theme .rm-h1 .rm-soft-editorial{padding:14px}
  .rm-h1 .rm-soft-story{grid-template-columns:70px minmax(0,1fr);gap:10px;padding:10px}
  .rm-h1 .rm-soft-story-art{width:70px;height:100px}
  .rm-h1 .rm-soft-story h3{font-size:14px;line-height:19px}
}
@media(prefers-reduced-motion:reduce){
  .rm-h1 .rm-soft-curation,.rm-h1 .rm-soft-brand{transition:none}
}

/* User-approved compact spacing, scoped to curated section. */
.rmodels-theme .rm-h1 .rm-soft-sets{margin-bottom:20px}


/* R-models LAB: illustrated modeler collections (real store imagery).
   Each product photo remains intact; illustrations do not imply bundling. */
.rmodels-theme .rm-h1 .rm-soft-sets{padding:28px 28px 30px;background:#f9fbff}
.rm-h1 .rm-soft-curations{gap:14px}
.rm-h1 .rm-soft-curation.rm-illustrated-curation{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:326px;
  padding:24px 20px 20px;
  overflow:hidden;
  border-radius:18px;
  border:1px solid #d7e5f5;
  background:linear-gradient(135deg,#e8f2fe,#f3f8ff);
  box-shadow:0 9px 22px rgba(20,65,115,.09);
  transform:translateZ(0);
}
.rm-h1 .rm-soft-curation--detail.rm-illustrated-curation{background:linear-gradient(132deg,#e9f7f0,#f3fbf6);border-color:#d5e9de}
.rm-h1 .rm-soft-curation--gift.rm-illustrated-curation{background:linear-gradient(132deg,#fff1e5,#fff8f0);border-color:#f0dfce}
.rm-h1 .rm-soft-curation.rm-illustrated-curation:hover{
  transform:translateY(-3px);
  border-color:#a6c4e4;
  box-shadow:0 14px 30px rgba(22,62,112,.14);
}
.rm-h1 .rm-illustrated-media{
  display:block;
  position:absolute;
  z-index:0;
  top:0;
  right:-4%;
  bottom:0;
  width:54%;
  overflow:hidden;
  pointer-events:none;
}
.rm-h1 .rm-illustrated-media img{
  position:absolute;
  display:block;
  height:112%;
  width:118%;
  max-width:none;
  object-fit:contain;
  top:-6%;
  left:-4%;
  filter:drop-shadow(0 9px 14px rgba(30,65,92,.08));
}
.rm-h1 .rm-illustrated-curation .rm-soft-icon{position:relative;z-index:1;box-shadow:0 3px 11px rgba(24,66,118,.07)}
.rm-h1 .rm-illustrated-curation .rm-soft-curation-body{
  position:relative;
  z-index:1;
  width:53%;
  flex:1;
  margin-top:18px;
  gap:9px;
}
.rm-h1 .rm-illustrated-curation .rm-soft-curation-body strong{
  font-size:clamp(18px,1.46vw,21px);
  line-height:1.2;
  letter-spacing:-.02em;
}
.rm-h1 .rm-illustrated-curation .rm-soft-card-summary{
  max-width:200px;
  font-size:12px;
  line-height:18px;
  color:#435a73;
}
.rm-h1 .rm-illustrated-curation .rm-soft-card-note{
  max-width:198px;
  font-size:10px;
  line-height:14px;
  color:#637792;
}
.rm-h1 .rm-illustrated-curation .rm-soft-card-link{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:39px;
  gap:7px;
  border-radius:9px;
  padding:9px 11px;
  text-align:center;
  font-size:11px;
  line-height:17px;
  color:#fff;
  background:#1765bb;
  box-shadow:0 4px 11px rgba(24,92,165,.16);
}
.rm-h1 .rm-soft-curation--detail.rm-illustrated-curation .rm-soft-card-link{color:#fff;background:#268069;box-shadow:0 4px 11px rgba(32,118,93,.13)}
.rm-h1 .rm-soft-curation--gift.rm-illustrated-curation .rm-soft-card-link{color:#fff;background:#dc732c;box-shadow:0 4px 11px rgba(159,85,39,.16)}
.rm-h1 .rm-illustrated-curation:focus-visible{outline:3px solid #2b77cb;outline-offset:3px}
@media (min-width:768px) and (max-width:1199px){
  .rm-h1 .rm-soft-curations{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rm-h1 .rm-soft-curation.rm-illustrated-curation{min-height:315px}
  .rm-h1 .rm-illustrated-media{width:52%;right:0}
  .rm-h1 .rm-illustrated-curation .rm-soft-curation-body{width:53%}
}
@media (max-width:767px){
  .rmodels-theme .rm-h1 .rm-soft-sets{padding:19px 16px 21px}
  .rm-h1 .rm-soft-curations{grid-template-columns:minmax(0,1fr);gap:13px}
  .rm-h1 .rm-soft-curation.rm-illustrated-curation{
    min-height:380px;
    padding:17px 18px 17px;
    border-radius:16px;
  }
  .rm-h1 .rm-illustrated-media{
    top:auto;bottom:0;right:-2%;
    height:57%;width:80%;
  }
  .rm-h1 .rm-illustrated-media img{height:117%;top:-10%;width:110%;left:-4%}
  .rm-h1 .rm-illustrated-curation .rm-soft-curation-body{
    flex:1;width:100%;margin-top:10px;gap:6px;
  }
  .rm-h1 .rm-illustrated-curation .rm-soft-curation-body strong{font-size:21px;line-height:25px}
  .rm-h1 .rm-illustrated-curation .rm-soft-card-summary{max-width:290px}
  .rm-h1 .rm-illustrated-curation .rm-soft-card-note{max-width:190px}
  .rm-h1 .rm-illustrated-curation .rm-soft-card-link{
    margin-top:auto;align-self:flex-start;min-height:40px;
    padding:10px 13px;
  }
}
@media (max-width:359px){
  .rm-h1 .rm-soft-curation.rm-illustrated-curation{min-height:385px;padding:15px}
  .rm-h1 .rm-illustrated-media{width:78%;height:54%}
}
@media (prefers-reduced-motion:reduce){.rm-h1 .rm-soft-curation.rm-illustrated-curation{transition:none}}

/* Keep a clear separation between the copy and real product imagery. */
@media(min-width:768px){
 .rm-h1 .rm-illustrated-curation .rm-soft-curation-body{width:48%}
 .rm-h1 .rm-illustrated-curation .rm-soft-card-summary{max-width:100%}
 .rm-h1 .rm-illustrated-media{right:-1%;width:50%}
}
